]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
x86-64/ELF: clear src_mask for all reloc types
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9589edb8
AB
12021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * guile/guile-internal.h (gdbscm_safe_source_script): Change
4 function return type.
5 * guile/guile.c (gdbscm_source_script): Update to handle change in
6 gdbscm_safe_source_script.
7 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
8 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
9 type.
10
ec66d6ea
SM
112021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
12
13 * inferior.h (class inferior) <args>: Change type to
14 unique_xmalloc_ptr.
15 * inferior.c (inferior::~inferior): Don't free args.
16 * infcmd.c (get_inferior_args): Adjust.
17 (set_inferior_args): Adjust.
18
0618ecf6
AB
192021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
20
21 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
22 breakpoint locations when the breakpoint actually has a location.
23
79aabb73
TBA
242021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
25
26 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
27 * mi/mi-cmds.c: Change the binding of "-break-condition" to
28 mi_cmd_break_condition.
29 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
30 * breakpoint.h (set_breakpoint_condition): Declare a new
31 overload.
32 * breakpoint.c (set_breakpoint_condition): New overloaded function
33 extracted out from ...
34 (condition_command): ... this.
35 * NEWS: Mention the change.
36
10e578d7
TBA
372021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
38
39 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
40 '--force-condition' flag to force the condition in the
41 '-break-insert' and '-dprintf-insert' commands.
42 * NEWS: Mention the change.
43
225bda24
TV
442021-05-04 Tom de Vries <tdevries@suse.de>
45
46 PR guile/27806
47 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
48 memory functions.
49
b8efb248
TT
502021-04-30 Tom Tromey <tom@tromey.com>
51
52 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
53 (add_signatured_type_cu_to_table): Remove.
54 (create_debug_type_hash_table): Assume dwo_file is non-null.
55 (create_debug_types_hash_table): Update comment.
56 (create_all_type_units): Remove.
57 (sort_tu_by_abbrev_offset): Update comment.
58 (build_type_psymtabs): Rename from build_type_psymtabs_1.
59 (build_type_psymtabs): Remove.
60 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
61 Update.
62 (read_comp_units_from_section): Add types_htab, section_kind
63 parameters.
64 (create_all_comp_units): Read type units.
65
91eea9cc
TT
662021-04-30 Tom Tromey <tom@tromey.com>
67
68 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
69 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
70 <get_cu>: Now inline.
71 <all_type_units>: Remove.
72 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
73 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
74 (dwarf2_per_bfd::get_tu): Remove.
75 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
76 (create_signatured_type_table_from_index)
77 (create_signatured_type_table_from_debug_names)
78 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
79 (dwarf2_base_index_functions::expand_all_symtabs)
80 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
81 (dwarf2_base_index_functions::map_symbol_filenames)
82 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
83 (add_signatured_type_cu_to_table, create_all_type_units)
84 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
85 (create_all_comp_units): Update.
86 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
87 (write_debug_names): Update.
88
0d305d5c
TT
892021-04-30 Tom Tromey <tom@tromey.com>
90
91 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
92 allocate_signatured_type>: Change return type.
93 <all_comp_units, all_type_units>: Hold unique pointers.
94 (struct dwarf2_per_cu_data): Add constructor and initializers.
95 (struct signatured_type): Derive from dwarf2_per_cu_data.
96 * dwarf2/read.c (type_unit_group): Derive from
97 dwarf2_per_cu_data.
98 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
99 (dwarf2_per_bfd::get_tu)
100 (dwarf2_per_bfd::allocate_signatured_type)
101 (dwarf2_per_bfd::allocate_signatured_type)
102 (create_cu_from_index_list, create_cus_from_index_list)
103 (create_signatured_type_table_from_index)
104 (create_signatured_type_table_from_debug_names)
105 (create_addrmap_from_aranges)
106 (dwarf2_base_index_functions::find_last_source_symtab)
107 (dw_expand_symtabs_matching_file_matcher)
108 (dwarf2_gdb_index::expand_symtabs_matching)
109 (dwarf2_base_index_functions::map_symbol_filenames)
110 (create_cus_from_debug_names_list)
111 (dw2_debug_names_iterator::next)
112 (dwarf2_debug_names_index::expand_symtabs_matching)
113 (create_debug_type_hash_table, add_type_unit)
114 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
115 Update.
116 (allocate_type_unit_groups_table): Use delete.
117 (create_type_unit_group): Change return type. Use new.
118 (get_type_unit_group, build_type_psymtabs_1)
119 (build_type_psymtab_dependencies)
120 (process_skeletonless_type_unit, set_partial_user)
121 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
122 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
123 (read_signatured_type): Update.
124 (dwarf2_find_containing_comp_unit): Change type of
125 'all_comp_units'.
126 (run_test): Update.
127 (dwarf2_per_bfd::allocate_per_cu)
128 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
129 Use new.
130 (add_signatured_type_cu_to_table): Update.
131 * dwarf2/index-write.c (write_one_signatured_type)
132 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
133 (write_debug_names): Update.
134
1bee48c7
TT
1352021-04-30 Tom Tromey <tromey@adacore.com>
136
137 * nat/windows-nat.h (get_image_name): Don't declare.
138 * nat/windows-nat.c (get_image_name): Now static.
139
e228ef97
TT
1402021-04-30 Tom Tromey <tromey@adacore.com>
141
142 * windows-nat.c (windows_nat::handle_load_dll): Update.
143 (windows_nat_target::get_windows_debug_event): Call
144 dll_loaded_event.
145 (windows_add_all_dlls, windows_add_dll): Move to
146 nat/windows-nat.c.
147 * nat/windows-nat.h (handle_load_dll): Change parameters.
148 (dll_loaded_event, windows_add_all_dlls): Declare.
149 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
150 from windows-nat.c.
151 (dll_loaded_event): New function.
152
de071872
TT
1532021-04-30 Tom Tromey <tromey@adacore.com>
154
155 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
156 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
157 Declare.
158 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
159 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
160
9e439f00
TT
1612021-04-30 Tom Tromey <tromey@adacore.com>
162
163 * windows-nat.c: Move code to nat/windows-nat.[ch].
164 (_initialize_windows_nat): Call initialize_loadable.
165 * nat/windows-nat.h (AdjustTokenPrivileges)
166 (DebugActiveProcessStop, DebugBreakProcess)
167 (DebugSetProcessKillOnExit, EnumProcessModules)
168 (EnumProcessModulesEx, GetModuleInformation)
169 (GetModuleFileNameExA, GetModuleFileNameExW)
170 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
171 (GetCurrentConsoleFont, Wow64SuspendThread)
172 (Wow64GetThreadContext, Wow64SetThreadContext)
173 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
174 (AdjustTokenPrivileges_ftype)
175 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
176 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
177 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
178 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
179 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
180 (GetConsoleFontSize_ftype)
181 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
182 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
183 (Wow64GetThreadSelectorEntry_ftype): Likewise.
184 (initialize_loadable): Declare.
185 * nat/windows-nat.c (AdjustTokenPrivileges)
186 (DebugActiveProcessStop, DebugBreakProcess)
187 (DebugSetProcessKillOnExit, EnumProcessModules)
188 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
189 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
190 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
191 (Wow64GetThreadContext, Wow64SetThreadContext)
192 (Wow64GetThreadSelectorEntry): Define.
193 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
194 from windows-nat.c.
195 (initialize_loadable): Likewise, and rename.
196
1053c638
TT
1972021-04-30 Tom Tromey <tromey@adacore.com>
198
199 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
200 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
201 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
202 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
203 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
204 (bad): New template functions.
205 (_initialize_loadable): Update.
206
2869ac4b
TT
2072021-04-30 Tom Tromey <tromey@adacore.com>
208
209 * ada-lang.c (ada_index_type): Use ada_check_typedef.
210
e197dfae
SM
2112021-04-29 Simon Marchi <simon.marchi@efficios.com>
212
213 * auto-load.h: Split namespace declaration.
214
89ba430c
SM
2152021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
216
217 * infrun.c (save_waitstatus): Move variables to inner scope.
218
8eb82ba1
AB
2192021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
220
221 * NEWS: Fix typo and stray full stop.
222
db2534b7
TT
2232021-04-28 Tom Tromey <tromey@adacore.com>
224
225 * ada-exp.y (primary): Use new type for null pointer.
226 * ada-lang.c (ada_type_match): Remove "may_deref"
227 parameter. Handle null pointer.
228 (ada_args_match): Update.
229 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
230 Handle null pointer.
231
edeaceda
AB
2322021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
233
234 * NEWS: Mention new commands.
235 * python/python.c (python_ignore_environment): New static global.
236 (show_python_ignore_environment): New function.
237 (set_python_ignore_environment): New function.
238 (python_dont_write_bytecode): New static global.
239 (show_python_dont_write_bytecode): New function.
240 (set_python_dont_write_bytecode): New function.
241 (_initialize_python): Register new commands.
242
041ca48e
AB
2432021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
244
245 * extension-priv.h (struct extension_language_ops): Rename
246 'finish_initialization' to 'initialize'.
247 * extension.c (finish_ext_lang_initialization): Renamed to...
248 (ext_lang_initialization): ...this, update comment, and updated
249 the calls to reflect the change in struct extension_language_ops.
250 * extension.h (finish_ext_lang_initialization): Renamed to...
251 (ext_lang_initialization): ...this.
252 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
253 (gdbscm_initialize): ...this, update comment at definition.
254 (guile_extension_ops): Update.
255 * main.c (captured_main_1): Update call to
256 finish_ext_lang_initialization.
257 * python/python.c (gdbpy_finish_initialization): Rename to...
258 (gdbpy_initialize): ...this, update comment at definition, and
259 update call to do_finish_initialization.
260 (python_extension_ops): Update.
261 (do_finish_initialization): Rename to...
262 (do_initialize): ...this, and update comment.
263
1178f01a
AB
2642021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
265
266 * main.c (captured_main_1): Add a call to
267 finish_ext_lang_initialization.
268 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
269
880ae75a
AB
2702021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
271
272 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
273 (gdbscm_finish_initialization): Add code moved from
274 _initialize_guile.
275 (_initialize_guile): Move code to gdbscm_finish_initialization.
276 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
277 _initialize_scm_arch.
278 (_initialize_scm_arch): New function.
279 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
280 into _initialize_scm_block.
281 (_initialize_scm_block): New function.
282 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
283 into _initialize_scm_frame.
284 (_initialize_scm_frame): New function.
285 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
286 into _initialize_scm_objfile.
287 (_initialize_scm_objfile): New function.
288 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
289 code into _initialize_scm_progspace.
290 (_initialize_scm_progspace): New function.
291 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
292 into _initialize_scm_symbol.
293 (_initialize_scm_symbol): New function.
294 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
295 into _initialize_scm_symtab.
296 (_initialize_scm_symtab): New function.
297 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
298 _initialize_scm_type.
299 (_initialize_scm_type): New function.
300
8e3685bf
AB
3012021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
302
303 * python/py-arch.c (_initialize_py_arch): New function.
304 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
305 * python/py-block.c (_initialize_py_block): New function.
306 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
307 * python/py-inferior.c (_initialize_py_inferior): New function.
308 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
309 * python/py-objfile.c (_initialize_py_objfile): New function.
310 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
311 * python/py-progspace.c (_initialize_py_progspace): New function.
312 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
313 * python/py-registers.c (_initialize_py_registers): New function.
314 (gdbpy_initialize_registers): Move code to
315 _initialize_py_registers.
316 * python/py-symbol.c (_initialize_py_symbol): New function.
317 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
318 * python/py-symtab.c (_initialize_py_symtab): New function.
319 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
320 * python/py-type.c (_initialize_py_type): New function.
321 (gdbpy_initialize_types): Move code to _initialize_py_type.
322 * python/py-unwind.c (_initialize_py_unwind): New function.
323 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
324 * python/python.c (_initialize_python): Move call to
325 do_start_initialization to gdbpy_finish_initialization.
326 (gdbpy_finish_initialization): Add call to
327 do_start_initialization.
328
913832e9
AB
3292021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
330
331 * extension.c (struct scoped_default_signal): New struct.
332 (scoped_default_sigint): New typedef.
333 (finish_ext_lang_initialization): Make use of
334 scoped_default_sigint.
335
a3b5ef3e
AB
3362021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
337
338 * main.c (captured_main_1): Don't pass argument to gdb_init.
339 * top.c (gdb_init): Remove unused argument, and add header
340 comment.
341 * top.h (gdb_init): Remove argument.
342
b9f90c72
LM
3432021-04-27 Luis Machado <luis.machado@linaro.org>
344
345 * psymtab.c (psymbol_functions::dump): Output newline.
346 Remove wrap.
347 * symmisc.c (dump_objfile): Likewise.
348
2c473def
MW
3492021-04-27 Michael Weghorn <m.weghorn@posteo.de>
350 Simon Marchi <simon.marchi@polymtl.ca>
351
352 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
353 when attaching the 'auto_load_new_objfile' observer, so
354 other observers can specify it as a dependency.
355 * gdb/auto-load.h (struct token): Declare
356 'auto_load_new_objfile_observer_token' as token to be used
357 for the 'auto_load_new_objfile' observer.
358 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
359 'python_new_objfile' observer depend on 'auto_load_new_objfile'
360 observer, so it gets notified after the latter.
361
9a6e099f
MW
3622021-04-27 Michael Weghorn <m.weghorn@posteo.de>
363 Simon Marchi <simon.marchi@polymtl.ca>
364
365 * unittests/observable-selftests.c (dependency_test_counters):
366 New.
367 (observer_token0, observer_token1, observer_token2,
368 observer_token3, observer_token4, observer_token5): New.
369 (struct dependency_observer_data): New struct.
370 (observer_dependency_test_callback): New function.
371 (test_observers): New.
372 (run_dependency_test): New function.
373 (test_dependency): New.
374 (_initialize_observer_selftest): Register dependency test.
375
bea3329b
SM
3762021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
377
378 PR gdb/27773
379 * cli/cli-dump.c (dump_binary_file): Check result of
380 gdb_fopen_cloexec.
381
c290cb01
ST
3822021-04-25 Sergei Trofimovich <siarheit@google.com>
383
384 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
385 by passing `process_stratum_target*` parameter.
386
fbb46296
LS
3872021-04-25 Lancelot Six <lsix@lancelotsix.com>
388
389 PR gdb/22640
390 * typeprint.h (struct type_print_options): Add print_in_hex
391 flag.
392 (struct print_offset_data): Add print_in_hex flag, add a
393 constructor accepting a type_print_options* argument.
394 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
395 default value for print_in_hex.
396 (print_offset_data::indentation): Allow more horizontal space.
397 (print_offset_data::print_offset_data): Add ctor.
398 (print_offset_data::maybe_print_hole, print_offset_data::update):
399 Handle the print_in_hex flag.
400 (whatis_exp): Handle 'x' and 'd' flags.
401 (print_offsets_and_sizes_in_hex): Declare.
402 (set_print_offsets_and_sizes_in_hex): Create.
403 (show_print_offsets_and_sizes_in_hex): Create.
404 (_initialize_typeprint): Update help message for the ptype
405 command, register the 'set print type hex' and 'show print type
406 hex' commands.
407 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
408 (c_type_print_base): Construct the print_offset_data
409 object using the type_print_optons parameter.
410 * rust-lang.c (rust_language::print_type): Construct the
411 print_offset_data object using the type_print_optons parameter.
412 * NEWS: Mention the new flags of the ptype command.
413
18bbba46
LS
4142021-04-25 Lancelot Six <lsix@lancelotsix.com>
415
416 * typeprint.h (struct type_print_options): Move before
417 print_offset_data.
418
77393c9b
JB
4192021-04-25 Joel Brobecker <brobecker@adacore.com>
420
421 GDB 10.2 released.
422
98c897e3
SM
4232021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
424
425 * observable.c (observer_debug): Change to bool.
426
9fc29955
AB
4272021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
428
429 * dwarf2/read.c: Add 'unordered_set' include.
430 (dwarf2_base_index_functions::map_symbol_filenames): Replace
431 'visited' hash table with 'qfn_cache' unordered_set. Remove use
432 of per_Bfd->filenames_cache cache, and use function local
433 filenames_cache instead. Reindent.
434 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
435
0406545d
SM
4362021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
437
438 * breakpoint.c (iterate_over_bp_locations): Change callback to
439 function view, remove data parameter.
440 * breakpoint.h (iterate_over_bp_locations): Likewise.
441 * record-full.c (record_full_sync_record_breakpoints): Remove
442 data parameter.
443
432ce4cf
TT
4442021-04-22 Tom Tromey <tom@tromey.com>
445
446 * c-typeprint.c (c_type_print_base_struct_union): Use
447 print_spaces_filtered_with_print_options.
448
e25d6d93
SM
4492021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
450
451 PR gdb/27757
452 * python/py-type.c (typy_range): Check that bounds are constant
453 before accessing them as such.
454 * guile/scm-type.c (gdbscm_type_range): Likewise.
455
4efeb0d3
TBA
4562021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
457
458 * Makefile.in (COMMON_SFILES): Remove continuations.c.
459 * inferior.c (inferior::add_continuation): New method, adapted
460 from 'add_inferior_continuation'.
461 (inferior::do_all_continuations): New method, adapted from
462 'do_all_inferior_continuations'.
463 (inferior::~inferior): Clear the list of continuations directly.
464 * inferior.h (class inferior) <continuations>: Rename into...
465 <m_continuations>: ...this and make private.
466 * continuations.c: Remove.
467 * continuations.h: Remove.
468 * event-top.c: Don't include "continuations.h".
469
470 Update the users below.
471 * inf-loop.c (inferior_event_handler)
472 * infcmd.c (attach_command)
473 (notice_new_inferior): Update.
474
c4c493de
TBA
4752021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
476
477 * inferior.h (class inferior) <continuations>: Change the type
478 to be an std::list of std::function's.
479 Update the references and uses below.
480 * continuations.c (struct continuation): Delete.
481 (make_continuation): Delete.
482 (do_my_continuations_1): Delete.
483 (do_my_continuations): Delete.
484 (discard_my_continuations_1): Delete.
485 (discard_my_continuations): Delete.
486 (add_inferior_continuation): Update.
487 (do_all_inferior_continuations): Update.
488 (discard_all_inferior_continuations): Update.
489 * continuations.h (add_inferior_continuation): Update to take
490 an std::function as the parameter.
491 * infcmd.c (struct attach_command_continuation_args): Delete.
492 (attach_command_continuation): Delete.
493 (attach_command_continuation_free_args): Delete.
494 (attach_command): Update.
495 (notice_new_inferior): Update.
496
1194676e
TBA
4972021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
498
499 * continuations.h: Update the general comment.
500 * inferior.h (class inferior) <continuations>: Update the comment.
501 * interps.c: Do not include "continuations.h".
502
35682f0a
TBA
5032021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
504
505 * continuations.h (do_all_inferior_continuations): Remove the 'err'
506 parameter. Update the references below.
507 * continuations.c (do_my_continuations_1)
508 (do_my_continuations)
509 (do_all_inferior_continuations): Update.
510 * inf-loop.c (inferior_event_handler): Update.
511 * infcmd.c (attach_command_continuation): Update.
512
6fee5eee
TBA
5132021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
514
515 * infcmd.c (attach_post_wait): Update the function comment.
516
27d0790a
TBA
5172021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
518
519 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
520 Update the references below.
521 (struct attach_command_continuation_args)
522 (attach_command_continuation)
523 (attach_command_continuation_free_args)
524 (attach_command)
525 (notice_new_inferior): Update to remove the reference to 'args'.
526
c39ebbf4
TV
5272021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
528 Tom de Vries <tdevries@suse.de>
529
530 PR remote/27710
531 * remote.c (remote_target_is_non_stop_p): New function.
532 * remote.h (remote_target_is_non_stop_p): Declare.
533 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
534 to check non-stopness using notif_state->remote rather current target.
535
22f80c0f
TT
5362021-04-22 Tom Tromey <tom@tromey.com>
537
538 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
539 (struct typed_val_int) <val>: Now ULONGEST.
540 (rust_parser::parse_array_type): Remove negative check.
541 (rust_lex_int_test): Change 'value' to ULONGEST.
542
05f3c0f0
AB
5432021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
544
545 * arch-utils.c (default_addressable_memory_unit_size): Return a
546 value based on bfd's bits per byte.
547
7e7a35fb
TT
5482021-04-21 Tom Tromey <tom@tromey.com>
549
550 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
551 unsigned char.
552 (struct dwarf2_per_cu_data): Rearrange.
553 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
554 unsigned char.
555 (struct comp_unit_head): Rearrange.
556 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
557
ff507520
TV
5582021-04-21 Tom de Vries <tdevries@suse.de>
559
560 PR build/27681
561 * configure.ac: Remove --without-included-regex/--with-included-regex.
562 * config.in: Regenerate.
563 * configure: Regenerate.
564 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
565
10a636cc
TBA
5662021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
567
568 * breakpoint.h (create_breakpoint): Add a new parameter,
569 'force_condition'.
570 * breakpoint.c (create_breakpoint): Use the 'force_condition'
571 argument when 'parse_extra' is false to check if the condition
572 is invalid at all of the breakpoint locations.
573 Update the users below.
574 (break_command_1)
575 (dprintf_command)
576 (trace_command)
577 (ftrace_command)
578 (strace_command)
579 (create_tracepoint_from_upload): Update.
580 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
581 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
582 * python/py-breakpoint.c (bppy_init): Update.
583 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
584
85c88e2a
TBA
5852021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
586
587 * breakpoint.c (print_one_breakpoint_location): Display "N" for
588 disabled-by-condition locations on MI-like output.
589 (breakpoint_1): Do not display the disabled-by-condition footnote
590 if the output is MI-like.
591
fd34472c
FC
5922021-04-21 Frederic Cambus <fred@statdns.com>
593
594 * syscalls/update-netbsd.sh: Fix script name display in usage, and
595 update year range in generated copyright notices.
596
184dcd81
FW
5972021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
598
599 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
600 qualifier_seq_noopt.
601
525174e8
FW
6022021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
603
604 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
605
f5dc2ee3
AB
6062021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
607
608 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
609 (producer_is_icc): Replace use of std::regex with gdb's
610 compiled_regex.
611
42c2c694
TT
6122021-04-17 Tom Tromey <tom@tromey.com>
613
614 PR gdb/23743:
615 * dwarf2/read.c (class offset_view): New.
616 (struct symbol_table_slot): Remove.
617 (struct mapped_index) <symbol_table, constant_pool>: Change type.
618 <symbol_name_index, symbol_vec_index>: New methods.
619 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
620 Rewrite.
621 (read_gdb_index_from_buffer): Update.
622 (struct dw2_symtab_iterator) <vec>: Change type.
623 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
624 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
625 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
626 <append_array, append_offset>: New methods.
627 (write_hash_table, add_address_entry, write_gdbindex_1)
628 (write_debug_names): Update.
629 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
630
da314dd3
TT
6312021-04-17 Tom Tromey <tom@tromey.com>
632
633 * dwarf2/index-write.c (write_psymtabs_to_index): Check
634 partial_symtabs.
635
0b7b2c2a
TT
6362021-04-17 Tom Tromey <tom@tromey.com>
637
638 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
639 from map_matching_symbols. Change parameters.
640 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
641 Rename from map_matching_symbols. Change parameters.
642 * dwarf2/read.c (struct dwarf2_gdb_index)
643 <expand_matching_symbols>: Rename from map_matching_symbols.
644 Change parameters.
645 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
646 Rename from map_matching_symbols. Change parameters.
647 (dwarf2_gdb_index::expand_matching_symbols): Rename from
648 dw2_map_matching_symbols. Change parameters.
649 (dwarf2_gdb_index::expand_matching_symbols): Remove old
650 implementation.
651 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
652 map_matching_symbols. Change parameters.
653 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
654 from map_matching_symbols. Change parameters.
655 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
656 map_matching_symbols. Change parameters.
657 * ada-lang.c (map_matching_symbols): New function.
658 (add_nonlocal_symbols): Update.
659
90160b57
TT
6602021-04-17 Tom Tromey <tom@tromey.com>
661
662 * quick-symbol.h (struct quick_symbol_functions)
663 <expand_symtabs_with_fullname>: Remove.
664 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
665 Remove.
666 * psympriv.h (struct psymbol_functions)
667 <expand_symtabs_with_fullname>: Remove.
668 * dwarf2/read.c (struct dwarf2_base_index_functions)
669 <expand_symtabs_with_fullname>: Remove.
670 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
671 Remove.
672 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
673 Update comment.
674 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
675 Rewrite.
676
7089bd88
TT
6772021-04-17 Tom Tromey <tom@tromey.com>
678
679 * symfile-debug.c (objfile::expand_symtabs_for_function):
680 Rewrite.
681 * quick-symbol.h (struct quick_symbol_functions)
682 <expand_symtabs_for_function>: Remove.
683 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
684 Remove.
685 * psympriv.h (struct psymbol_functions)
686 <expand_symtabs_for_function>: Remove.
687 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
688 Update comment.
689 * dwarf2/read.c (struct dwarf2_gdb_index)
690 <expand_symtabs_for_function>: Remove.
691 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
692 Remove.
693 (find_slot_in_mapped_hash): Remove.
694 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
695 (dw2_symtab_iter_init): Remove one overload.
696 (dwarf2_gdb_index::expand_symtabs_for_function)
697 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
698
536a40f3
TT
6992021-04-17 Tom Tromey <tom@tromey.com>
700
701 * symfile-debug.c (objfile::map_symtabs_matching_filename):
702 Rewrite.
703 * quick-symbol.h (struct quick_symbol_functions)
704 <map_symtabs_matching_filename>: Remove.
705 * psymtab.c (partial_map_expand_apply)
706 (psymbol_functions::map_symtabs_matching_filename): Remove.
707 * psympriv.h (struct psymbol_functions)
708 <map_symtabs_matching_filename>: Remove.
709 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
710 Update comment.
711 * dwarf2/read.c (struct dwarf2_base_index_functions)
712 <map_symtabs_matching_filename>: Remove.
713 (dw2_map_expand_apply)
714 (dwarf2_base_index_functions::map_symtabs_matching_filename):
715 Remove.
716
84d865e3
TT
7172021-04-17 Tom Tromey <tom@tromey.com>
718
719 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
720 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
721 Remove.
722 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
723 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
724 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
725 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
726 Remove.
727 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
728 (dwarf2_gdb_index::lookup_symbol)
729 (dwarf2_debug_names_index::lookup_symbol): Remove.
730
3bfa51a7
TT
7312021-04-17 Tom Tromey <tom@tromey.com>
732
733 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
734 * symmisc.c (maintenance_expand_symtabs): Update.
735 * symfile.c (expand_symtabs_matching): Update.
736 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
737 parameter.
738 * quick-symbol.h (struct quick_symbol_functions)
739 <expand_symtabs_matching>: Add 'domain' parameter.
740 * psymtab.c (recursively_search_psymtabs)
741 (psymbol_functions::expand_symtabs_matching): Add 'domain'
742 parameter.
743 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
744 Add 'domain' parameter.
745 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
746 'domain' parameter.
747 * linespec.c (iterate_over_all_matching_symtabs): Update.
748 * dwarf2/read.c (struct dwarf2_gdb_index)
749 <expand_symtabs_matching>: Add 'domain' parameter.
750 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
751 'domain' parameter.
752 (dw2_expand_symtabs_matching)
753 (dwarf2_gdb_index::expand_symtabs_matching)
754 (dw2_debug_names_iterator)
755 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
756 parameter.
757
03a8ea51
TT
7582021-04-17 Tom Tromey <tom@tromey.com>
759
760 * symtab.c (global_symbol_searcher::expand_symtabs)
761 (default_collect_symbol_completion_matches_break_on): Update.
762 * symmisc.c (maintenance_expand_symtabs): Update.
763 * symfile.h (expand_symtabs_matching): Add search_flags
764 parameter.
765 * symfile.c (expand_symtabs_matching): Add search_flags
766 parameter.
767 * symfile-debug.c (objfile::expand_symtabs_matching): Add
768 search_flags parameter.
769 * quick-symbol.h (struct quick_symbol_functions)
770 <expand_symtabs_matching>: Add search_flags parameter.
771 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
772 * psymtab.c (recursively_search_psymtabs)
773 (psymbol_functions::expand_symtabs_matching): Add search_flags
774 parameter.
775 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
776 Add search_flags parameter.
777 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
778 search_flags parameter.
779 * linespec.c (iterate_over_all_matching_symtabs): Update.
780 * dwarf2/read.c (struct dwarf2_gdb_index)
781 <expand_symtabs_matching>: Add search_flags parameter.
782 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
783 search_flags parameter.
784 (dw2_map_matching_symbols): Update.
785 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
786 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
787 parameter.
788 (dw2_debug_names_iterator): Change block_index to search flags.
789 <m_block_index>: Likewise.
790 (dw2_debug_names_iterator::next)
791 (dwarf2_debug_names_index::lookup_symbol)
792 (dwarf2_debug_names_index::expand_symtabs_for_function)
793 (dwarf2_debug_names_index::map_matching_symbols)
794 (dwarf2_debug_names_index::map_matching_symbols): Update.
795 (dwarf2_debug_names_index::expand_symtabs_matching): Add
796 search_flags parameter.
797 * ada-lang.c (ada_add_global_exceptions)
798 (collect_symbol_completion_matches): Update.
799
df35e626
TT
8002021-04-17 Tom Tromey <tom@tromey.com>
801
802 * symtab.c (default_collect_symbol_completion_matches_break_on):
803 Update.
804 * symfile.h (expand_symtabs_matching): Return bool.
805 * symfile.c (expand_symtabs_matching): Return bool.
806 * symfile-debug.c (objfile::expand_symtabs_matching): Return
807 bool.
808 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
809 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
810 bool.
811 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
812 bool.
813 * psympriv.h (struct psymbol_functions)
814 <expand_symtabs_matching>: Return bool.
815 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
816 bool.
817 * dwarf2/read.c (struct dwarf2_gdb_index)
818 <expand_symtabs_matching>: Return bool.
819 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
820 Return bool.
821 (dw2_expand_symtabs_matching_symbol): Return bool.
822 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
823 (dw2_expand_symtabs_matching)
824 (dwarf2_gdb_index::expand_symtabs_matching)
825 (dwarf2_debug_names_index::expand_symtabs_matching)
826 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
827
e357e990
TT
8282021-04-17 Tom Tromey <tom@tromey.com>
829
830 * quick-symbol.h (enum block_search_flag_values): New.
831 (block_search_flags): New enum flags type.
832
3cbc7ac3
TT
8332021-04-16 Tom Tromey <tom@tromey.com>
834
835 * rust-parse.c: New file.
836 * rust-exp.y: Remove.
837 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
838 (SFILES): Remove rust-exp.y.
839 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
840
1b6b755e
LM
8412021-04-16 Luis Machado <luis.machado@linaro.org>
842
843 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
844
c45ecc9d
JB
8452021-04-15 John Baldwin <jhb@FreeBSD.org>
846
847 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
848 use throughout file.
849
a15a276b
TT
8502021-04-15 Tom Tromey <tromey@adacore.com>
851
852 * ada-valprint.c (ada_value_print_array): Handle optimized-out
853 arrays.
854
644a2e75
TT
8552021-04-15 Tom Tromey <tromey@adacore.com>
856
857 * printcmd.c (print_variable_and_value): Use
858 common_val_print_checked.
859
9e5e03df
TT
8602021-04-15 Tom Tromey <tromey@adacore.com>
861
862 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
863 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
864 Update.
865 * p-exp.y (variable): Update.
866 * m2-exp.y (variable): Update.
867 * go-exp.y (variable): Update.
868 * expprint.c (dump_for_expression): New overload.
869 * expop.h (check_objfile): New overload.
870 (check_constant): New overload.
871 (class var_value_operation): Use block_symbol.
872 <get_symbol>: Rewrite.
873 * eval.c (var_value_operation::evaluate)
874 (var_value_operation::evaluate_funcall)
875 (var_value_operation::evaluate_for_address)
876 (var_value_operation::evaluate_for_address)
877 (var_value_operation::evaluate_with_coercion)
878 (var_value_operation::evaluate_for_sizeof)
879 (var_value_operation::evaluate_for_cast): Update.
880 * d-exp.y (PrimaryExpression): Update.
881 * c-exp.y (variable): Update.
882 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
883 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
884 (ada_var_value_operation::evaluate)
885 (ada_var_value_operation::resolve)
886 (ada_funcall_operation::resolve): Update.
887 * ada-exp.y (write_var_from_sym, write_object_renaming)
888 (write_ambiguous_var, write_var_or_type, write_name_assoc)
889 (maybe_overload): Update.
890 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
891
5809fbf2
TT
8922021-04-15 Tom Tromey <tom@tromey.com>
893 Andrew Burgess <andrew.burgess@embecosm.com>
894
895 * NEWS: Add entry.
896 * main.c (captured_main_1): Call check_quiet_mode.
897 * top.c (startup_quiet): New global.
898 (check_quiet_mode): New function.
899 (show_startup_quiet): New function.
900 (init_main): Register new command.
901 * top.h (check_quiet_mode): Declare.
902
92e4e97a
AB
9032021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
904
905 PR cli/25956
906 * NEWS: Mention new early init files and command line options.
907 * config.in: Regenerate.
908 * configure: Regenerate.
909 * configure.ac: Define GDBEARLYINIT.
910 * main.c (get_earlyinit_files): New function.
911 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
912 CMDARG_EARLYINIT_COMMAND.
913 (captured_main_1): Add support for new command line flags, and for
914 processing startup files.
915 (print_gdb_help): Include startup files in the output.
916
54b4dcc5
AB
9172021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
918
919 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
920 (relocate_file_path_maybe_in_datadir): ...this.
921 (class gdb_initfile_finder): New class.
922 (get_init_files): Now uses gdb_initfile_finder.
923 (print_gdb_help): Print 'None found' when there are no init files.
924
34dc0f95
TBA
9252021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
926
927 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
928 corresponding child of the abstract DIE when iterating the
929 children of the concrete DIE.
930
329534fd
TV
9312021-04-13 Tom de Vries <tdevries@suse.de>
932
933 * ui-style.c (read_semi_number, extended_color): Change idx parameter
934 type to regoff_t *.
935
d9d2ef05
LM
9362021-04-13 Luis Machado <luis.machado@linaro.org>
937
938 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
939 hex values.
940
c8a37944
WS
9412021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
942
943 * rs6000-tdep.c: Add support for single-stepping of
944 prefixed instructions.
945
b722acca
WS
9462021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
947
e3d528d7
WS
948 PR gdb/27525
949 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
950 handle the addpcis/lnia instruction.
951
9522021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
953
b722acca
WS
954 * MAINTAINERS (Write After Approval): Add myself.
955
6ba4cb84
CL
9562021-4-12 Carl Love <cel@us.ibm.com>
957
958 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
959 (rs6000_builtin_type_vec128): Add append_composite_type_field for
960 float128.
961
d4717483
SM
9622021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
963
964 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
965 * nat/windows-nat.h: Likewise.
966
b3885679
EZ
9672021-04-10 Eli Zaretskii <eliz@gnu.org>
968
969 * windows-nat.c (windows_nat::handle_load_dll): Call
970 windows_add_dll if get_image_name failed to glean the name of the
971 DLL by using the lpImageName pointer.
972 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
973 (windows_add_dll): Now does what windows_add_all_dlls did before,
974 but also accepts an argument LOAD_ADDR, which, if non-NULL,
975 specifies the address where the DLL was loaded into the inferior,
976 and looks for the single DLL loaded at that address.
977
1ef6a596
LM
9782021-04-09 Luis Machado <luis.machado@linaro.org>
979
980 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
981
83a559f7
DQ
9822021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
983
984 * darwin-nat.c (darwin_nat_target::resume): Remove status
985 variable.
986
16e311ab
FW
9872021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
988
989 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
990 prologue end for Intel compilers.
991 * amd64-tdep.c (amd64_skip_prologue): Likewise.
992 * producer.c (producer_is_icc_ge_19): New function.
993 * producer.h (producer_is_icc_ge_19): New declaration.
994
fbb3bcfc
FW
9952021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
996
997 * producer.c: (producer_is_icc): Update for new version scheme.
998 (producer_parsing_tests): Update names and expected results.
999 * producer.h: (producer_is_icc): Update comment accordingly.
1000
e97007b6
SM
10012021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1002
1003 * target.h (struct target_ops) <follow_fork>: Return void.
1004 (target_follow_fork): Likewise.
1005 * target.c (default_follow_fork): Likewise.
1006 (target_follow_fork): Likewise.
1007 * infrun.c (follow_fork_inferior): Adjust.
1008 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1009 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1010 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1011 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1012 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1013 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1014 * remote.c (class remote_target) <follow_fork>: Likewise.
1015 (remote_target::follow_fork): Likewise.
1016 * target-delegates.c: Re-generate.
1017
dc2b480f
WP
10182021-04-07 Weimin Pan <weimin.pan@oracle.com>
1019
1020 * ctfread.c (fetch_tid_type): New function, use throughout file.
1021 (read_forward_type): New function.
1022 (read_type_record): Call read_forward_type.
1023
0a703a4c
AB
10242021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1025
1026 * f-exp.h (class fortran_structop_operation): New class.
1027 * f-exp.y (exp): Create fortran_structop_operation instead of the
1028 generic structop_operation.
1029 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1030 expression as EVAL_NORMAL if the result type was dynamic so we can
1031 extract the actual array bounds.
1032 (fortran_structop_operation::evaluate): New function.
1033
10342021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1035
1036 * eval.c (evaluate_subexp_standard): Remove
1037 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1038 STRUCTOP_PTR.
1039
30ab3586
AB
10402021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1041
1042 * valops.c (value_cast): Call value_deeply_equal before performing
1043 any cast.
1044
5e18990f
AB
10452021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1046
1047 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1048 the function.
1049
56d467f4
CT
10502021-04-07 Caroline Tice <cmtice@google.com>
1051
1052 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1053 the search paths used resolve relative location of .dwo file.
1054
1fd999d9
AB
10552021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1056
1057 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1058 assert.
1059 (dwarf2_section_info::get_file_name): Add an assert.
1060 (dwarf2_section_info::read_string): Display a minimal, sane error
1061 when the dwarf2_section_info is not associated with a bfd section.
1062
79c02443
AB
10632021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1064
1065 * top.c (staged_gdb_datadir): Update comment.
1066 (set_gdb_datadir): Copy the value of gdb_datadir back into
1067 staged_datadir.
1068 (init_main): Initialise staged_gdb_datadir.
1069
340d00fb
TV
10702021-04-06 Tom de Vries <tdevries@suse.de>
1071
1072 PR breakpoints/25884
1073 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1074 stepping range.
1075
d811a7cf
TV
10762021-04-06 Tom de Vries <tdevries@suse.de>
1077
1078 PR tui/27680
1079 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1080 to style.parse.
1081
306b445a
SM
10822021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1083
1084 * avr-tdep.c (avr_frame_unwind_cache): Use
1085 trad_frame_saved_reg::is_addr.
1086
9161c89a
SM
10872021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1088
1089 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1090 adjust callers.
1091
0072c873
SM
10922021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1093
1094 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1095 objfile parameter for objfile_per_bfd_storage, adjust callers.
1096 (struct standard_psymtab) <standard_psymtab>: Likewise.
1097 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1098 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1099 * ctfread.c (struct ctf_psymtab): Likewise.
1100 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1101 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1102 (dwarf2_create_include_psymtab): Likewise.
1103 * objfiles.h (struct objfile_per_bfd_storage)
1104 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1105 <get_bfd>: New method.
1106 <m_bfd>: New field.
1107 * objfiles.c (get_objfile_bfd_data): Adjust.
1108
9984dd99
SM
11092021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1110
1111 * psymtab.c (partial_symtab::partial_symtab): Change
1112 last_objfile_name to be an std::string.
1113 * symfile.c (allocate_symtab): Likewise.
1114
4a4f97c1
SM
11152021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1116
1117 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1118 methods.
1119 (struct objfile) <intern>: Use
1120 objfile::objfile_per_bfd_storage::intern.
1121
0672875f
SM
11222021-04-01 Simon Marchi <simon.marchi@efficios.com>
1123
1124 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1125 with type::is_flag_enum.
1126
9902b327
SM
11272021-04-01 Simon Marchi <simon.marchi@efficios.com>
1128
1129 * gdbtypes.h (struct type) <is_flag_enum,
1130 set_is_flag_enum>: New methods.
1131 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1132 write call sites to use type::set_is_flag_enum.
1133
3bc440a2
SM
11342021-04-01 Simon Marchi <simon.marchi@efficios.com>
1135
1136 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1137 with type::is_declared_class.
1138
aa70e35c
SM
11392021-04-01 Simon Marchi <simon.marchi@efficios.com>
1140
1141 * gdbtypes.h (struct type) <is_declared_class,
1142 set_is_declared_class>: New methods.
1143 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1144 write call sites to use type::set_is_declared_class.
1145
bfb9f5dc
BS
11462021-02-28 Boris Staletic <boris.staletic@gmail.com>
1147
1148 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1149 to avoid deprecation warnings.
1150
733f5eea
ML
11512021-04-01 Martin Liska <mliska@suse.cz>
1152
1153 * cp-name-parser.y: Use startswith instead of strncmp.
1154 * m2-exp.y: Likewise.
1155 * macroexp.c (substitute_args): Likewise.
1156 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1157 * rust-exp.y: Likewise.
1158
af82f89d
TT
11592021-03-31 Tom Tromey <tom@tromey.com>
1160
1161 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1162 with dw2_map_matching_symbols.
1163 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1164 dw2_expand_symtabs_matching.
1165
3570682a
TT
11662021-03-31 Tom Tromey <tromey@adacore.com>
1167
1168 * dwarf2/stringify.h: Fix typo.
1169
8a91fbdf
SM
11702021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1171
1172 PR gdb/27541
1173 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1174 with objfiles using READNOW.
1175
9f67fc59
TT
11762021-03-29 Tom Tromey <tromey@adacore.com>
1177
1178 * top.c (check_frame_language_change): Update.
1179 * language.c (language_info): Remove parameter.
1180 * language.h (language_info): Remove parameter.
1181
9b8ffbf4
LM
11822021-03-29 Luis Machado <luis.machado@linaro.org>
1183
1184 * compile/compile.c (get_args): Don't add empty argv entries.
1185
25b48839
RO
11862021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1187
1188 gdb:
1189 * procfs.c (procfs_target::attach): Define inf.
1190 Use it.
1191 (procfs_target::create_inferior): Likewise.
1192
edc02ceb
TT
11932021-03-28 Tom Tromey <tom@tromey.com>
1194
1195 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1196 (elf_symfile_read): Simplify.
1197 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1198 (make_lazy_dwarf_reader): New function.
1199 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1200 (dwarf2_initialize_objfile): Return void. Remove index_kind
1201 parameter. Push on 'qf' list.
1202 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1203 type. Remove 'index_kind' parameter.
1204 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1205
6e23d91a
TT
12062021-03-27 Tom Tromey <tom@tromey.com>
1207
1208 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1209
594b8948
TT
12102021-03-27 Tom Tromey <tom@tromey.com>
1211
1212 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1213
efe1ecd8
LS
12142021-03-26 Lancelot Six <lsix@lancelotsix.com>
1215
1216 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1217 rid of 'local'.
1218
f4655dee
TT
12192021-03-26 Tom Tromey <tom@tromey.com>
1220
1221 * symtab.c (struct output_source_filename_data): Add 'output'
1222 method and operator().
1223 (output_source_filename_data::output): Rename from
1224 output_source_filename.
1225 (output_partial_symbol_filename): Remove.
1226 (info_sources_command): Update.
1227 (struct add_partial_filename_data): Add operator().
1228 (add_partial_filename_data::operator()): Rename from
1229 maybe_add_partial_symtab_filename.
1230 (make_source_files_completion_list): Update.
1231 * symfile.c (quick_symbol_functions): Update.
1232 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1233 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1234 'need_fullname'. Remove 'data' parameter.
1235 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1236 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1237 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1238 Change type of 'fun' and 'need_fullname'. Remove 'data'
1239 parameter.
1240 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1241 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1242 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1243 parameter.
1244 (mi_cmd_file_list_exec_source_files): Update.
1245 * dwarf2/read.c
1246 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1247
2315bb2d
TT
12482021-03-26 Tom Tromey <tom@tromey.com>
1249
1250 * ada-lang.c (struct match_data): Add operator().
1251 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1252 (callback): Remove 'callback'.
1253
e2cd5ca4
TT
12542021-03-26 Tom Tromey <tom@tromey.com>
1255
1256 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1257 call make_ignore_params once.
1258
cd43f63e
TT
12592021-03-26 Tom Tromey <tom@tromey.com>
1260
1261 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1262 "user" check.
1263
b4b1a226
SM
12642021-03-26 Simon Marchi <simon.marchi@efficios.com>
1265 Pedro Alves <pedro@palves.net>
1266
1267 * async-event.c: Include "infrun.h".
1268 (async_event_handler_marked): New.
1269 * async-event.h (async_event_handler_marked): Declare.
1270 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1271 inferior before calling target method. Don't commit-resumed if
1272 target_has_pending_events is true.
1273 * remote.c (remote_target::has_pending_events): New.
1274 * target-delegates.c: Regenerate.
1275 * target.c (target_has_pending_events): New.
1276 * target.h (target_ops::has_pending_events): New target method.
1277 (target_has_pending_events): New.
1278
1192f124
SM
12792021-03-26 Simon Marchi <simon.marchi@efficios.com>
1280 Pedro Alves <pedro@palves.net>
1281
1282 * infcmd.c (run_command_1, attach_command, detach_command)
1283 (interrupt_target_1): Use scoped_disable_commit_resumed.
1284 * infrun.c (do_target_resume): Remove
1285 target_commit_resume call.
1286 (commit_resume_all_targets): Remove.
1287 (maybe_set_commit_resumed_all_targets): New.
1288 (maybe_call_commit_resumed_all_targets): New.
1289 (enable_commit_resumed): New.
1290 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1291 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1292 (scoped_disable_commit_resumed::reset)
1293 (scoped_disable_commit_resumed::reset_and_commit)
1294 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1295 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1296 New.
1297 (proceed): Use scoped_disable_commit_resumed and
1298 maybe_call_commit_resumed_all_targets.
1299 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1300 * infrun.h (struct scoped_disable_commit_resumed): New.
1301 (maybe_call_commit_resumed_all_process_targets): New.
1302 (struct scoped_enable_commit_resumed): New.
1303 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1304 * process-stratum-target.h (class process_stratum_target):
1305 <commit_resumed_state>: New.
1306 * record-full.c (record_full_wait_1): Change commit_resumed_state
1307 around calling commit_resumed.
1308 * remote.c (class remote_target) <commit_resume>: Rename to...
1309 <commit_resumed>: ... this.
1310 (struct stop_reply): Move up.
1311 (remote_target::commit_resume): Rename to...
1312 (remote_target::commit_resumed): ... this. Check if there is any
1313 thread pending vCont resume.
1314 (remote_target::remote_stop_ns): Generate stop replies for resumed
1315 but pending vCont threads.
1316 (remote_target::wait_ns): Add gdb_assert.
1317 * target-delegates.c: Regenerate.
1318 * target.c (target_wait, target_resume): Assert that the current
1319 process_stratum target isn't in commit-resumed state.
1320 (defer_target_commit_resume): Remove.
1321 (target_commit_resume): Remove.
1322 (target_commit_resumed): New.
1323 (make_scoped_defer_target_commit_resume): Remove.
1324 (target_stop): Assert that the current process_stratum target
1325 isn't in commit-resumed state.
1326 * target.h (struct target_ops) <commit_resume>: Rename to ...
1327 <commit_resumed>: ... this.
1328 (target_commit_resume): Remove.
1329 (target_commit_resumed): New.
1330 (make_scoped_defer_target_commit_resume): Remove.
1331 * top.c (wait_sync_command_done): Use
1332 scoped_enable_commit_resumed.
1333
e5b9b39f
PA
13342021-03-26 Pedro Alves <pedro@palves.net>
1335
1336 * target.c (target_always_non_stop_p): Also check whether the
1337 target can async.
1338
bab287cd
TT
13392021-03-26 Tom Tromey <tom@tromey.com>
1340
1341 * dwarf2/read.c (dwarf2_read_debug_names)
1342 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
1343 (dw2_debug_names_iterator::next, create_type_unit_group):
1344 Simplify.
1345
eff4f69d
PA
13462021-03-25 Pedro Alves <pedro@palves.net>
1347
1348 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
1349 around setting the breakpoint.
1350
323fd5b9
PA
13512021-03-25 Pedro Alves <pedro@palves.net>
1352
1353 * remote.c
1354 (remote_target::check_pending_events_prevent_wildcard_vcont):
1355 Check whether the event's ptid is not null_ptid before looking up
1356 the corresponding inferior.
1357
d3cbca38
CD
13582021-03-24 Changbin Du <changbin.du@gmail.com>
1359
1360 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
1361 read_code.
1362
328d42d8
SM
13632021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1364
1365 * target.h (current_top_target): Remove, make callers use the
1366 current inferior instead.
1367 * target.c (current_top_target): Remove.
1368
d777bf0d
SM
13692021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1370
1371 * target.h (target_shortname): Change to function declaration.
1372 (target_longname): Likewise.
1373 (target_attach_no_wait): Likewise.
1374 (target_post_attach): Likewise.
1375 (target_prepare_to_store): Likewise.
1376 (target_supports_enable_disable_tracepoint): Likewise.
1377 (target_supports_string_tracing): Likewise.
1378 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
1379 (target_supports_dumpcore): Likewise.
1380 (target_dumpcore): Likewise.
1381 (target_can_run_breakpoint_commands): Likewise.
1382 (target_files_info): Likewise.
1383 (target_post_startup_inferior): Likewise.
1384 (target_insert_fork_catchpoint): Likewise.
1385 (target_remove_fork_catchpoint): Likewise.
1386 (target_insert_vfork_catchpoint): Likewise.
1387 (target_remove_vfork_catchpoint): Likewise.
1388 (target_insert_exec_catchpoint): Likewise.
1389 (target_remove_exec_catchpoint): Likewise.
1390 (target_set_syscall_catchpoint): Likewise.
1391 (target_rcmd): Likewise.
1392 (target_can_lock_scheduler): Likewise.
1393 (target_can_async_p): Likewise.
1394 (target_is_async_p): Likewise.
1395 (target_execution_direction): Likewise.
1396 (target_extra_thread_info): Likewise.
1397 (target_pid_to_exec_file): Likewise.
1398 (target_thread_architecture): Likewise.
1399 (target_find_memory_regions): Likewise.
1400 (target_make_corefile_notes): Likewise.
1401 (target_get_bookmark): Likewise.
1402 (target_goto_bookmark): Likewise.
1403 (target_stopped_by_watchpoint): Likewise.
1404 (target_stopped_by_sw_breakpoint): Likewise.
1405 (target_supports_stopped_by_sw_breakpoint): Likewise.
1406 (target_stopped_by_hw_breakpoint): Likewise.
1407 (target_supports_stopped_by_hw_breakpoint): Likewise.
1408 (target_have_steppable_watchpoint): Likewise.
1409 (target_can_use_hardware_watchpoint): Likewise.
1410 (target_region_ok_for_hw_watchpoint): Likewise.
1411 (target_can_do_single_step): Likewise.
1412 (target_insert_watchpoint): Likewise.
1413 (target_remove_watchpoint): Likewise.
1414 (target_insert_hw_breakpoint): Likewise.
1415 (target_remove_hw_breakpoint): Likewise.
1416 (target_can_accel_watchpoint_condition): Likewise.
1417 (target_can_execute_reverse): Likewise.
1418 (target_get_ada_task_ptid): Likewise.
1419 (target_filesystem_is_local): Likewise.
1420 (target_trace_init): Likewise.
1421 (target_download_tracepoint): Likewise.
1422 (target_can_download_tracepoint): Likewise.
1423 (target_download_trace_state_variable): Likewise.
1424 (target_enable_tracepoint): Likewise.
1425 (target_disable_tracepoint): Likewise.
1426 (target_trace_start): Likewise.
1427 (target_trace_set_readonly_regions): Likewise.
1428 (target_get_trace_status): Likewise.
1429 (target_get_tracepoint_status): Likewise.
1430 (target_trace_stop): Likewise.
1431 (target_trace_find): Likewise.
1432 (target_get_trace_state_variable_value): Likewise.
1433 (target_save_trace_data): Likewise.
1434 (target_upload_tracepoints): Likewise.
1435 (target_upload_trace_state_variables): Likewise.
1436 (target_get_raw_trace_data): Likewise.
1437 (target_get_min_fast_tracepoint_insn_len): Likewise.
1438 (target_set_disconnected_tracing): Likewise.
1439 (target_set_circular_trace_buffer): Likewise.
1440 (target_set_trace_buffer_size): Likewise.
1441 (target_set_trace_notes): Likewise.
1442 (target_get_tib_address): Likewise.
1443 (target_set_permissions): Likewise.
1444 (target_static_tracepoint_marker_at): Likewise.
1445 (target_static_tracepoint_markers_by_strid): Likewise.
1446 (target_traceframe_info): Likewise.
1447 (target_use_agent): Likewise.
1448 (target_can_use_agent): Likewise.
1449 (target_augmented_libraries_svr4_read): Likewise.
1450 (target_log_command): Likewise.
1451 * target.c (target_shortname): New.
1452 (target_longname): New.
1453 (target_attach_no_wait): New.
1454 (target_post_attach): New.
1455 (target_prepare_to_store): New.
1456 (target_supports_enable_disable_tracepoint): New.
1457 (target_supports_string_tracing): New.
1458 (target_supports_evaluation_of_breakpoint_conditions): New.
1459 (target_supports_dumpcore): New.
1460 (target_dumpcore): New.
1461 (target_can_run_breakpoint_commands): New.
1462 (target_files_info): New.
1463 (target_post_startup_inferior): New.
1464 (target_insert_fork_catchpoint): New.
1465 (target_remove_fork_catchpoint): New.
1466 (target_insert_vfork_catchpoint): New.
1467 (target_remove_vfork_catchpoint): New.
1468 (target_insert_exec_catchpoint): New.
1469 (target_remove_exec_catchpoint): New.
1470 (target_set_syscall_catchpoint): New.
1471 (target_rcmd): New.
1472 (target_can_lock_scheduler): New.
1473 (target_can_async_p): New.
1474 (target_is_async_p): New.
1475 (target_execution_direction): New.
1476 (target_extra_thread_info): New.
1477 (target_pid_to_exec_file): New.
1478 (target_thread_architecture): New.
1479 (target_find_memory_regions): New.
1480 (target_make_corefile_notes): New.
1481 (target_get_bookmark): New.
1482 (target_goto_bookmark): New.
1483 (target_stopped_by_watchpoint): New.
1484 (target_stopped_by_sw_breakpoint): New.
1485 (target_supports_stopped_by_sw_breakpoint): New.
1486 (target_stopped_by_hw_breakpoint): New.
1487 (target_supports_stopped_by_hw_breakpoint): New.
1488 (target_have_steppable_watchpoint): New.
1489 (target_can_use_hardware_watchpoint): New.
1490 (target_region_ok_for_hw_watchpoint): New.
1491 (target_can_do_single_step): New.
1492 (target_insert_watchpoint): New.
1493 (target_remove_watchpoint): New.
1494 (target_insert_hw_breakpoint): New.
1495 (target_remove_hw_breakpoint): New.
1496 (target_can_accel_watchpoint_condition): New.
1497 (target_can_execute_reverse): New.
1498 (target_get_ada_task_ptid): New.
1499 (target_filesystem_is_local): New.
1500 (target_trace_init): New.
1501 (target_download_tracepoint): New.
1502 (target_can_download_tracepoint): New.
1503 (target_download_trace_state_variable): New.
1504 (target_enable_tracepoint): New.
1505 (target_disable_tracepoint): New.
1506 (target_trace_start): New.
1507 (target_trace_set_readonly_regions): New.
1508 (target_get_trace_status): New.
1509 (target_get_tracepoint_status): New.
1510 (target_trace_stop): New.
1511 (target_trace_find): New.
1512 (target_get_trace_state_variable_value): New.
1513 (target_save_trace_data): New.
1514 (target_upload_tracepoints): New.
1515 (target_upload_trace_state_variables): New.
1516 (target_get_raw_trace_data): New.
1517 (target_get_min_fast_tracepoint_insn_len): New.
1518 (target_set_disconnected_tracing): New.
1519 (target_set_circular_trace_buffer): New.
1520 (target_set_trace_buffer_size): New.
1521 (target_set_trace_notes): New.
1522 (target_get_tib_address): New.
1523 (target_set_permissions): New.
1524 (target_static_tracepoint_marker_at): New.
1525 (target_static_tracepoint_markers_by_strid): New.
1526 (target_traceframe_info): New.
1527 (target_use_agent): New.
1528 (target_can_use_agent): New.
1529 (target_augmented_libraries_svr4_read): New.
1530 (target_log_command): New.
1531 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
1532 * infrun.c (set_schedlock_func): Adjust.
1533 * mi/mi-main.c (exec_reverse_continue): Adjust.
1534 * reverse.c (exec_reverse_once): Adjust.
1535 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
1536 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
1537 * remote-sim.c (gdbsim_target::detach): Adjust.
1538 (gdbsim_target::files_info): Adjust.
1539
b64f703b
TT
15402021-03-24 Tom Tromey <tom@tromey.com>
1541
1542 * dwarf2/read.c (dw2_map_matching_symbols): Update.
1543 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
1544 (check_match, dw2_expand_symtabs_matching)
1545 (dwarf2_debug_names_index::map_matching_symbols)
1546 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
1547
68f115f8
KS
15482021-03-24 Keith Seitz <keiths@redhat.com>
1549
1550 * compile/compile-cplus-types.c
1551 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
1552 thinko.
1553
41c0087b
SM
15542021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1555
1556 * gdbarch.sh (gdbarch_data_registry): Make static.
1557 * gdbarch.c: Re-generate.
1558
ce192338
LM
15592021-03-24 Luis Machado <luis.machado@linaro.org>
1560
1561 * NEWS: Mention memory tagging changes.
1562
bef382e6
LM
15632021-03-24 Luis Machado <luis.machado@linaro.org>
1564
1565 * printcmd.c (decode_format): Handle the 'm' modifier.
1566 (do_examine): Display allocation tags when required/supported.
1567 (should_validate_memtags): New function.
1568 (print_command_1): Display memory tag mismatches.
1569 * valprint.c (show_memory_tag_violations): New function.
1570 (value_print_option_defs): Add new option "memory-tag-violations".
1571 (user_print_options) <memory_tag_violations>: Initialize to 1.
1572 * valprint.h (struct format_data) <print_tags>: New field.
1573 (value_print_options) <memory_tag_violations>: New field.
1574
48136e00
LM
15752021-03-24 Luis Machado <luis.machado@linaro.org>
1576
1577 * printcmd.c: Include gdbsupport/rsp-low.h.
1578 (memory_tag_list): New static global.
1579 (process_print_command_args): Factored out of
1580 print_command_1.
1581 (print_command_1): Use process_print_command_args.
1582 (show_addr_not_tagged, show_memory_tagging_unsupported)
1583 (memory_tag_command, memory_tag_print_tag_command)
1584 (memory_tag_print_logical_tag_command)
1585 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
1586 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
1587 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
1588 functions.
1589 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
1590
ffcc2a15
LM
15912021-03-24 Luis Machado <luis.machado@linaro.org>
1592
1593 * aarch64-linux-tdep.c
1594 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
1595 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
1596
cf44c9fa
LM
15972021-03-24 Luis Machado <luis.machado@linaro.org>
1598
1599 * aarch64-linux-tdep.c
1600 (aarch64_linux_report_signal_info): New function.
1601 (aarch64_linux_init_abi): Register
1602 aarch64_linux_report_signal_info as the report_signal_info hook.
1603 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
1604 (SEGV_MTESERR): Define.
1605
b4a7d4fc
LM
16062021-03-24 Luis Machado <luis.machado@linaro.org>
1607
1608 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
1609 (aarch64_linux_ltag_tests): New function.
1610 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
1611
c7782e50
LM
16122021-03-24 Luis Machado <luis.machado@linaro.org>
1613
1614 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
1615 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
1616 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
1617 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
1618 functions.
1619 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
1620 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
1621 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
1622 (aarch64_linux_get_ltag): New functions.
1623 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
1624 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
1625 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
1626 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
1627
1e735120
LM
16282021-03-24 Luis Machado <luis.machado@linaro.org>
1629
1630 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
1631 bit.
1632 (struct smaps_data): New struct.
1633 (decode_vmflags): Handle the 'mt' flag.
1634 (parse_smaps_data): New function, refactored from
1635 linux_find_memory_regions_full.
1636 (linux_address_in_memtag_page): New function.
1637 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
1638 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
1639
93e447c6
LM
16402021-03-24 Luis Machado <luis.machado@linaro.org>
1641
1642 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
1643 instead of char arrays.
1644
4601818e
LM
16452021-03-24 Luis Machado <luis.machado@linaro.org>
1646
1647 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
1648 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
1649 nat/aarch64-mte-linux-ptrace.h.
1650 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
1651 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
1652 override.
1653 <fetch_memtags>: New method override.
1654 <store_memtags>: New method override.
1655 (aarch64_linux_nat_target::supports_memory_tagging): New method.
1656 (aarch64_linux_nat_target::fetch_memtags): New method.
1657 (aarch64_linux_nat_target::store_memtags): New method.
1658 * arch/aarch64-mte-linux.c: New file.
1659 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
1660 (AARCH64_MTE_GRANULE_SIZE): Define.
1661 (aarch64_memtag_type): New enum.
1662 (aarch64_mte_get_tag_granules): New prototype.
1663 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
1664 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
1665 * nat/aarch64-mte-linux-ptrace.c: New file.
1666 * nat/aarch64-mte-linux-ptrace.h: New file.
1667
3f3bd8b8
LM
16682021-03-24 Luis Machado <luis.machado@linaro.org>
1669
1670 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
1671 * nat/aarch64-mte-linux-ptrace.h: New file.
1672
5e984dbf
LM
16732021-03-24 Luis Machado <luis.machado@linaro.org>
1674
1675 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
1676 (store_mteregs_to_thread): New function.
1677 (aarch64_linux_nat_target::fetch_registers): Update to call
1678 fetch_mteregs_from_thread.
1679 (aarch64_linux_nat_target::store_registers): Update to call
1680 store_mteregs_to_thread.
1681 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
1682 (aarch64_cannot_store_register): Handle MTE registers.
1683 (aarch64_gdbarch_init): Initialize and setup MTE registers.
1684 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
1685 <has_mte>: New method.
1686 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
1687
c1bd443b
LM
16882021-03-24 Luis Machado <luis.machado@linaro.org>
1689
1690 * aarch64-linux-nat.c
1691 (aarch64_linux_nat_target::read_description): Take MTE flag into
1692 account.
1693 Slight refactor to hwcap flag checking.
1694 * aarch64-linux-tdep.c
1695 (aarch64_linux_core_read_description): Likewise.
1696 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
1697 MTE.
1698 (aarch64_read_description): Add mte_p parameter and update to use it.
1699 Update the documentation.
1700 (aarch64_gdbarch_init): Update call to aarch64_read_description.
1701 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
1702 * arch/aarch64.c: Include ../features/aarch64-mte.c.
1703 (aarch64_create_target_description): Add mte_p parameter and update
1704 the code to use it.
1705 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
1706 parameter.
1707 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
1708 * features/aarch64-mte.c: New file, generated.
1709 * features/aarch64-mte.xml: New file.
1710
04245125
LM
17112021-03-24 Luis Machado <luis.machado@linaro.org>
1712
1713 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
1714 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
1715 * aarch64-linux-tdep.c: Likewise
1716 * arch/aarch64-mte-linux.h: New file.
1717
754487e2
LM
17182021-03-24 Luis Machado <luis.machado@linaro.org>
1719
1720 * remote: Include gdbsupport/selftest.h.
1721 (test_memory_tagging_functions): New function.
1722 (_initialize_remote): Register test_memory_tagging_functions.
1723
2c2e7f87
LM
17242021-03-24 Luis Machado <luis.machado@linaro.org>
1725
1726 * remote.c (PACKET_memory_tagging_feature): New enum.
1727 (remote_memory_tagging_p): New function.
1728 (remote_protocol_features): New "memory-tagging" entry.
1729 (remote_target::remote_query_supported): Handle memory tagging
1730 support.
1731 (remote_target::supports_memory_tagging): Implement.
1732 (create_fetch_memtags_request, parse_fetch_memtags_reply)
1733 (create_store_memtags_request): New functions.
1734 (remote_target::fetch_memtags): Implement.
1735 (remote_target::store_memtags): Implement.
1736 (_initialize_remote): Add new "memory-tagging-feature"
1737 config command.
1738
c193949e
LM
17392021-03-24 Luis Machado <luis.machado@linaro.org>
1740
1741 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
1742 (default_memtag_matches_p, default_set_memtags)
1743 (default_get_memtag): New functions.
1744 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
1745 (default_memtag_matches_p, default_set_memtags)
1746 (default_get_memtag): New prototypes.
1747 * gdbarch.c: Regenerate.
1748 * gdbarch.h: Regenerate.
1749 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
1750 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
1751 (enum memtag_type): New enum.
1752
dbe692af
LM
17532021-03-24 Luis Machado <luis.machado@linaro.org>
1754
1755 * remote.c (remote_target) <supports_memory_tagging>: New method
1756 override.
1757 <fetch_memtags>: New method override.
1758 <store_memtags>: New method override.
1759 (remote_target::supports_memory_tagging): New method.
1760 (remote_target::fetch_memtags): New method.
1761 (remote_target::store_memtags): New method.
1762 * target-delegates.c: Regenerate.
1763 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
1764 method.
1765 <fetch_memtags>: New virtual method.
1766 <store_memtags>: New virtual method.
1767 (target_supports_memory_tagging): Define.
1768 (target_fetch_memtags): Define.
1769 (target_store_memtags): Define.
1770 * target-debug.h (target_debug_print_size_t)
1771 (target_debug_print_const_gdb_byte_vector_r)
1772 (target_debug_print_gdb_byte_vector_r): New functions.
1773
66848ebc
SM
17742021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1775
1776 * target.h (target_longname): Remove.
1777
c8fbd44a
SM
17782021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1779
1780 * target.h (target_is_pushed): Remove, update callers to use
1781 inferior::target_is_pushed instead.
1782 * target.c (target_is_pushed): Remove.
1783
02980c56
SM
17842021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1785
1786 * target.h (push_target): Remove, update callers to use
1787 inferior::push_target.
1788 * target.c (push_target): Remove.
1789 * inferior.h (class inferior) <push_target>: New overload.
1790
fadf6add
SM
17912021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1792
1793 * target.h (unpush_target): Remove, update all callers
1794 to use `inferior::unpush_target` instead.
1795 (struct target_unpusher) <operator()>: Just declare.
1796 * target.c (unpush_target): Remove.
1797 (target_unpusher::operator()): New.
1798
702cf3f5
AB
17992021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1800
1801 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
1802 error.
1803 (process_full_comp_unit): Validate the top-level tag before
1804 processing the first DIE.
1805 (read_func_scope): Ensure we have a valid builder.
1806
46fec642
AB
18072021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1808
1809 * objc-lang.c (objc_demangle): Renamed to
1810 objc_language::demangle_symbol, and moved later in the file.
1811 (objc_language::sniff_from_mangled_name): Call demangle_symbol
1812 member function.
1813 (objc_language::demangle_symbol): Defined outside of class
1814 declaration. The definition is the old objc_demangle with NULL
1815 changed to nullptr, and if conditions relating to nullptr pointers
1816 or null character checks made explicit.
1817 * objc-lang.h (objc_demangle): Delete declaration.
1818
08dedd66
ML
18192021-03-22 Martin Liska <mliska@suse.cz>
1820
1821 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
1822 (_initialize_arm_tdep): Likewise.
1823
eb36a3eb
TT
18242021-03-20 Tom Tromey <tom@tromey.com>
1825
1826 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
1827 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1828 * psymtab.h (make_psymbol_functions): Don't declare.
1829 * psymtab.c (make_psymbol_functions): Remove.
1830 (maintenance_print_psymbols): Update.
1831 * psympriv.h (struct psymbol_functions): Add no-argument
1832 constructor.
1833 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
1834 <partial_symtabs>: Remove.
1835 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
1836 * elfread.c (read_partial_symbols): Update.
1837 (elf_symfile_read): Remove check for existing partial symbols.
1838 Don't clear "qf".
1839 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
1840 partial symbols.
1841 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
1842 partial symtabs.
1843 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
1844 parameter.
1845 * dbxread.c (dbx_symfile_read): Create partial symtabs.
1846 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
1847
e1114590
TT
18482021-03-20 Tom Tromey <tom@tromey.com>
1849
1850 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1851 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1852 * symfile-debug.c (objfile::has_partial_symbols)
1853 (objfile::find_last_source_symtab)
1854 (objfile::forget_cached_source_info)
1855 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1856 (objfile::print_stats, objfile::dump)
1857 (objfile::expand_symtabs_for_function)
1858 (objfile::expand_all_symtabs)
1859 (objfile::expand_symtabs_with_fullname)
1860 (objfile::map_matching_symbols)
1861 (objfile::expand_symtabs_matching)
1862 (objfile::find_pc_sect_compunit_symtab)
1863 (objfile::map_symbol_filenames)
1864 (objfile::find_compunit_symtab_by_address)
1865 (objfile::lookup_global_symbol_language)
1866 (objfile::require_partial_symbols): Update.
1867 * psymtab.c (maintenance_print_psymbols)
1868 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1869 * objfiles.h (struct objfile) <qf>: Now a forward_list.
1870 * objfiles.c (objfile_relocate1): Update.
1871 * elfread.c (elf_symfile_read): Update.
1872
de909f0b
TT
18732021-03-20 Tom Tromey <tom@tromey.com>
1874
1875 * objfiles.h (struct objfile) <psymtabs>: Remove method.
1876
caf8c1e5
TT
18772021-03-20 Tom Tromey <tom@tromey.com>
1878
1879 * psymtab.c (psymbol_functions::count_psyms): Rename.
1880 (psymbol_functions::print_stats): Update.
1881 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
1882 method.
1883
3aa31ce7
TT
18842021-03-20 Tom Tromey <tom@tromey.com>
1885
1886 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
1887 (psymbol_functions::find_pc_sect_psymtab): Rename.
1888 (psymbol_functions::find_pc_sect_compunit_symtab)
1889 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
1890 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
1891 Declare new method.
1892 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
1893
7b249e47
TT
18942021-03-20 Tom Tromey <tom@tromey.com>
1895
1896 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
1897 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
1898 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
1899 parameter.
1900 (add_psymbol_to_bcache): Remove.
1901 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
1902 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
1903 Likewise.
1904 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
1905 <add_psymbol>: Likewise.
1906 (standard_psymtab, legacy_psymtab): Likewise.
1907 * mdebugread.c (parse_partial_symbols): Update.
1908 (handle_psymbol_enumerators): Add partial_symtabs parameter.
1909 (handle_psymbol_enumerators): Update.
1910 (new_psymtab): Add partial_symtabs parameter.
1911 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
1912 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
1913 parameter.
1914 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
1915 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
1916 Update.
1917 * dbxread.c (read_dbx_symtab): Update.
1918 (start_psymtab): Add partial_symtabs parameter.
1919 (dbx_end_psymtab): Update.
1920 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
1921 (ctf_psymtab): Add partial_symtabs parameter.
1922 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
1923 Update.
1924 (scan_partial_symbols): Add partial_symtabs parameter.
1925 (scan_partial_symbols, elfctf_build_psymtabs)
1926 (ctf_psymtab_add_enums): Update.
1927
d1eef86d
TT
19282021-03-20 Tom Tromey <tom@tromey.com>
1929
1930 * symfile.c (read_symbols): Use objfile method.
1931 * symfile-debug.c (objfile::require_partial_symbols): New method.
1932 * psymtab.h (require_partial_symbols): Don't declare.
1933 * psymtab.c (require_partial_symbols): Use objfile method. Now
1934 static.
1935 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
1936 (psymbol_functions::lookup_symbol)
1937 (psymbol_functions::lookup_global_symbol_language)
1938 (psymbol_functions::find_last_source_symtab)
1939 (psymbol_functions::forget_cached_source_info)
1940 (psymbol_functions::print_stats)
1941 (psymbol_functions::expand_symtabs_for_function)
1942 (psymbol_functions::expand_all_symtabs)
1943 (psymbol_functions::expand_symtabs_with_fullname)
1944 (psymbol_functions::map_symbol_filenames)
1945 (psymbol_functions::map_matching_symbols)
1946 (psymbol_functions::expand_symtabs_matching)
1947 (psymbol_functions::find_compunit_symtab_by_address)
1948 (maintenance_print_psymbols, maintenance_info_psymtabs)
1949 (maintenance_check_psymtabs): Update.
1950 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
1951 new method.
1952
eb00e468
TT
19532021-03-20 Tom Tromey <tom@tromey.com>
1954
1955 * xcoffread.c (xcoff_sym_fns): Update.
1956 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
1957 * symfile-debug.c (objfile::has_partial_symbols): Use
1958 can_lazily_read_symbols.
1959 (debug_sym_read_psymbols): Remove.
1960 (debug_sym_fns, install_symfile_debug_logging): Update.
1961 * quick-symbol.h (struct quick_symbol_functions)
1962 <can_lazily_read_symbols, read_partial_symbols>: New methods.
1963 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
1964 * mipsread.c (ecoff_sym_fns): Update.
1965 * machoread.c (macho_sym_fns): Update.
1966 * elfread.c (struct lazy_dwarf_reader): New.
1967 (elf_symfile_read): Update.
1968 (read_psyms): Now a method of lazy_dwarf_reader.
1969 (elf_sym_fns): Update.
1970 (elf_sym_fns_lazy_psyms): Remove.
1971 * dbxread.c (aout_sym_fns): Update.
1972 * coffread.c (coff_sym_fns): Update.
1973
b29b98cf
TT
19742021-03-20 Tom Tromey <tom@tromey.com>
1975
1976 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
1977 (reread_symbols): Move reset_psymtabs call later.
1978 * objfiles.c (objfile::objfile): Don't initialize
1979 partial_symtabs.
1980
17d66340
TT
19812021-03-20 Tom Tromey <tom@tromey.com>
1982
1983 * dwarf2/read.c (dwarf2_build_psymtabs): Call
1984 set_partial_symtabs.
1985 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1986 * psymtab.h (make_psymbol_functions): Add partial_symtabs
1987 parameter.
1988 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
1989 parameter.
1990 (psymbol_functions::find_pc_sect_compunit_symtab)
1991 (psymbol_functions::print_stats, psymbol_functions::dump)
1992 (psymbol_functions::has_symbols): Update.
1993 (make_psymbol_functions, dump_psymtab_addrmap): Add
1994 partial_symtabs parameter.
1995 (maintenance_print_psymbols): Update.
1996 (psymbol_functions::expand_symtabs_matching): Update.
1997 * psympriv.h (struct psymbol_functions): Add constructor.
1998 <m_partial_symtabs>: New member.
1999 <set_partial_symtabs>: New method.
2000
84685904
TT
20012021-03-20 Tom Tromey <tom@tromey.com>
2002
2003 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2004 parameter.
2005 (process_psymtab_comp_unit_reader)
2006 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2007 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2008 Reference psymtabs via per_bfd.
2009
79cc99f6
TT
20102021-03-20 Tom Tromey <tom@tromey.com>
2011
2012 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2013 Remove.
2014 (add_address_entry): Remove objfile parameter.
2015 (add_address_entry_worker): Update.
2016 (write_address_map): Replace objfile parameter with per_bfd.
2017 (write_gdbindex, write_psymtabs_to_index): Update.
2018
4829711b
TT
20192021-03-20 Tom Tromey <tom@tromey.com>
2020
2021 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2022 print_bcache parameter.
2023 * symfile-debug.c (objfile::print_stats): Add print_bcache
2024 parameter.
2025 * quick-symbol.h (struct quick_symbol_functions)
2026 <print_stats>: Add print_bcache parameter.
2027 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2028 code to psymtab.c.
2029 (print_objfile_statistics): Move psymtab code to psymtab.c.
2030 * psymtab.c (count_psyms): Move from symmisc.c.
2031 (psymbol_functions::print_stats): Print partial symbol and bcache
2032 statistics. Add print_bcache parameter.
2033 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2034 (struct objfile) <print_stats>: Add print_bcache parameter.
2035 * maint.c (maintenance_print_statistics): Update.
2036
efd7398e
TT
20372021-03-20 Tom Tromey <tom@tromey.com>
2038
2039 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2040 member.
2041 * dwarf2/read.c (create_addrmap_from_index)
2042 (create_addrmap_from_aranges): Set per_bfd addrmap.
2043 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2044 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2045 per_bfd addrmap.
2046 (dwarf2_read_debug_names): Don't set partial_symtabs.
2047 (dwarf2_initialize_objfile): Likewise.
2048
51962708
TT
20492021-03-20 Tom Tromey <tom@tromey.com>
2050
2051 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2052 earlier.
2053
484b1090
TT
20542021-03-20 Tom Tromey <tom@tromey.com>
2055
2056 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2057 (~psymtab_discarder, keep): Update.
2058 <m_objfile>: Remove.
2059 <m_partial_symtabs>: New member.
2060 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2061
7e9c0476
TT
20622021-03-20 Tom Tromey <tom@tromey.com>
2063
2064 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2065 (xcoff_end_psymtab): Update.
2066 (scan_xcoff_symtab): Add partial_symtabs parameter.
2067 (xcoff_initial_scan): Update.
2068 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2069 * mdebugread.c (mdebug_build_psymtabs): Update.
2070 (parse_partial_symbols): Add partial_symtabs parameter.
2071 * dbxread.c (dbx_symfile_read): Update.
2072 (read_dbx_symtab): Add partial_symtabs parameter.
2073 (read_dbx_symtab): Update.
2074 (dbx_end_psymtab): Add partial_symtabs parameter.
2075
75336a5a
TT
20762021-03-20 Tom Tromey <tom@tromey.com>
2077
2078 * quick-symbol.h (struct quick_symbol_functions)
2079 <relocated>: New method.
2080 * psymtab.h (struct psymbol_functions) <relocated>: New
2081 method.
2082 <fill_psymbol_map>: Declare method.
2083 <m_psymbol_map>: New member.
2084 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2085 (psymbol_functions::find_compunit_symtab_by_address): Update.
2086 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2087 (struct objfile) <psymbol_map>: Remove.
2088 * objfiles.c (objfile_relocate1): Update.
2089
39298a5d
TT
20902021-03-20 Tom Tromey <tom@tromey.com>
2091
2092 * psympriv.h (struct psymbol_functions): New.
2093 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2094 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2095 (objfile::lookup_global_symbol_language): Update.
2096 * quick-symbol.h (struct quick_symbol_functions): Convert function
2097 pointers to methods. Add virtual destructor.
2098 (quick_symbol_functions_up): New typedef.
2099 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2100 (dwarf2_debug_names_functions): Don't declare.
2101 (make_psymbol_functions): Declare.
2102 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2103 (psymbol_functions::find_pc_sect_compunit_symtab)
2104 (psymbol_functions::lookup_symbol)
2105 (psymbol_functions::lookup_global_symbol_language)
2106 (psymbol_functions::find_last_source_symtab)
2107 (psymbol_functions::forget_cached_source_info)
2108 (psymbol_functions::print_stats, psymbol_functions::dump)
2109 (psymbol_functions::expand_symtabs_for_function)
2110 (psymbol_functions::expand_all_symtabs)
2111 (psymbol_functions::expand_symtabs_with_fullname)
2112 (psymbol_functions::map_symbol_filenames)
2113 (psymbol_functions::map_matching_symbols)
2114 (psymbol_functions::expand_symtabs_matching)
2115 (psymbol_functions::has_symbols)
2116 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2117 (psym_functions): Remove.
2118 (make_psymbol_functions): New function.
2119 * objfiles.h (struct objfile) <qf>: Change type.
2120 * elfread.c (elf_symfile_read): Update.
2121 * dwarf2/read.c (struct dwarf2_base_index_functions)
2122 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2123 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2124 (dwarf2_base_index_functions::find_last_source_symtab)
2125 (dwarf2_base_index_functions::forget_cached_source_info)
2126 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2127 (dwarf2_gdb_index::lookup_symbol)
2128 (dwarf2_base_index_functions::print_stats)
2129 (dwarf2_gdb_index::dump)
2130 (dwarf2_gdb_index::expand_symtabs_for_function)
2131 (dwarf2_base_index_functions::expand_all_symtabs)
2132 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2133 Rename.
2134 (dwarf2_gdb_index::map_matching_symbols): New method.
2135 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2136 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2137 (dwarf2_base_index_functions::map_symbol_filenames)
2138 (dwarf2_base_index_functions::has_symbols): Rename.
2139 (dwarf2_gdb_index_functions): Remove.
2140 (dwarf2_debug_names_index::lookup_symbol)
2141 (dwarf2_debug_names_index::dump)
2142 (dwarf2_debug_names_index::expand_symtabs_for_function)
2143 (dwarf2_debug_names_index::map_matching_symbols)
2144 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2145 (dwarf2_debug_names_functions): Remove.
2146 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2147 Declare.
2148
5c3f1e5b
TT
21492021-03-20 Tom Tromey <tom@tromey.com>
2150
2151 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2152 null.
2153 * xcoffread.c (xcoff_sym_fns): Update.
2154 * symfile.h (struct sym_fns) <qf>: Remove.
2155 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2156 * symfile-debug.c (objfile::has_partial_symbols)
2157 (objfile::find_last_source_symtab)
2158 (objfile::forget_cached_source_info)
2159 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2160 (objfile::print_stats, objfile::dump)
2161 (objfile::expand_symtabs_for_function)
2162 (objfile::expand_all_symtabs)
2163 (objfile::expand_symtabs_with_fullname)
2164 (objfile::map_matching_symbols)
2165 (objfile::expand_symtabs_matching)
2166 (objfile::find_pc_sect_compunit_symtab)
2167 (objfile::map_symbol_filenames)
2168 (objfile::find_compunit_symtab_by_address)
2169 (objfile::lookup_global_symbol_language, debug_sym_fns)
2170 (install_symfile_debug_logging): Update.
2171 * objfiles.h (struct objfile) <qf>: New member.
2172 * mipsread.c (ecoff_sym_fns): Update.
2173 * machoread.c (macho_sym_fns): Update.
2174 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2175 Don't declare.
2176 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2177 * dbxread.c (aout_sym_fns): Update.
2178 * coffread.c (coff_sym_fns): Update.
2179
9b99dcc8
TT
21802021-03-20 Tom Tromey <tom@tromey.com>
2181
2182 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2183 (expand_symtabs_file_matcher_ftype)
2184 (expand_symtabs_symbol_matcher_ftype)
2185 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2186 Move to quick-symbol.h.
2187 * quick-symbol.h: New file.
2188
4d080b46
TT
21892021-03-20 Tom Tromey <tom@tromey.com>
2190
2191 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2192 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2193 (basic_lookup_transparent_type_quick)
2194 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2195 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2196 Update.
2197 * symmisc.c (print_objfile_statistics, dump_objfile)
2198 (maintenance_expand_symtabs): Update.
2199 * symfile.c (symbol_file_add_with_addrs)
2200 (expand_symtabs_matching, map_symbol_filenames): Update.
2201 * symfile-debug.c (objfile::has_partial_symbols)
2202 (objfile::find_last_source_symtab)
2203 (objfile::forget_cached_source_info)
2204 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2205 (objfile::print_stats, objfile::dump)
2206 (objfile::expand_symtabs_for_function)
2207 (objfile::expand_all_symtabs)
2208 (objfile::expand_symtabs_with_fullname)
2209 (objfile::map_matching_symbols)
2210 (objfile::expand_symtabs_matching)
2211 (objfile::find_pc_sect_compunit_symtab)
2212 (objfile::map_symbol_filenames)
2213 (objfile::find_compunit_symtab_by_address)
2214 (objfile::lookup_global_symbol_language): New methods.
2215 (debug_sym_quick_functions): Remove.
2216 (debug_sym_fns, install_symfile_debug_logging): Update.
2217 * source.c (forget_cached_source_info_for_objfile)
2218 (select_source_symtab): Update.
2219 * objfiles.h (struct objfile): Add methods corresponding to
2220 quick_symbol_functions.
2221 * objfiles.c (objfile::has_partial_symbols): Move to
2222 symfile-debug.c.
2223 * linespec.c (iterate_over_all_matching_symtabs): Update.
2224 * cp-support.c (add_symbol_overload_list_qualified): Update.
2225 * ada-lang.c (add_nonlocal_symbols): Update.
2226
fae2120b
TT
22272021-03-20 Tom Tromey <tom@tromey.com>
2228
2229 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2230 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2231 bool.
2232 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2233 * psymtab.c (psym_has_symbols): Return bool.
2234 * objfiles.c (objfile::has_partial_symbols): Return bool.
2235 * dwarf2/read.c (dw2_has_symbols): Return bool.
2236
a8ad4f3c
TT
22372021-03-20 Tom Tromey <tom@tromey.com>
2238
2239 * symfile.c (read_symbols): Update.
2240 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2241 (objfile_has_partial_symbols): Don't declare.
2242 * objfiles.c (objfile::has_partial_symbols): Rename from
2243 objfile_has_partial_symbols.
2244 (objfile_has_symbols, have_partial_symbols): Update.
2245 * elfread.c (elf_symfile_read): Update.
2246 * dwarf2/read.c (dwarf2_has_info): Update.
2247 * coffread.c (coff_symfile_read): Update.
2248
70182375
TT
22492021-03-20 Tom Tromey <tom@tromey.com>
2250
2251 * coffread.c: Include dwarf2/public.h.
2252 * dwarf2/frame.c: Include dwarf2/public.h.
2253 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2254 * dwarf2/public.h: New file.
2255 * dwarf2/read.c: Include dwarf2/public.h.
2256 * elfread.c: Include dwarf2/public.h.
2257 * machoread.c: Include dwarf2/public.h.
2258 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2259 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2260 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2261 * xcoffread.c: Include dwarf2/public.h.
2262
18038e63
TT
22632021-03-20 Tom Tromey <tom@tromey.com>
2264
2265 * symfile.h (enum dwarf2_section_enum)
2266 (dwarf2_get_section_info): Move to dwarf2/read.h.
2267 * dwarf2/read.h (enum dwarf2_section_enum)
2268 (dwarf2_get_section_info): Move from symfile.h.
2269
219f56b4
PA
22702021-03-19 Pedro Alves <pedro@palves.net>
2271
2272 * thread.c (any_thread_of_inferior): Check if there's a selected
2273 thread before calling inferior_thread().
2274
15310fd4
TT
22752021-03-18 Tom Tromey <tromey@adacore.com>
2276
2277 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2278 get_DW_UT_name.
2279 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2280 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2281
763b8efd
AB
22822021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2283
2284 * python/py-param.c (get_set_value): Update header comment.
2285
f058c521
SM
22862021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2287
2288 * infrun.c (check_multi_target_resumption): Remove argument to
2289 all_non_exited_inferiors.
2290
383228bc
CB
22912021-03-16 Christian Biesinger <cbiesinger@google.com>
2292
2293 * windows-nat.c (windows_init_thread_list): Add message to
2294 debug log.
2295
7807d76a
AB
22962021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2297
2298 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2299 well as PyLong_Check for Python 2.
2300
675da9a5
TT
23012021-03-15 Tom Tromey <tromey@adacore.com>
2302
2303 PR build/27579:
2304 * rust-exp.y (maker_map): Use gdb::hash_enum.
2305 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2306
4800761a
SM
23072021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2308
2309 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2310 end of debug print.
2311
eb5dd737
SM
23122021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2313
2314 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
2315 parameter, adjust caller.
2316
6813ceb0
TT
23172021-03-15 Tom Tromey <tromey@adacore.com>
2318
2319 * ada-exp.y (simple_exp): Always push a result for unary '+'.
2320
3b5c4de0
TT
23212021-03-15 Tom Tromey <tromey@adacore.com>
2322
2323 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
2324 ada_ensure_varsize_limit.
2325
c04da66c
TT
23262021-03-15 Tom Tromey <tromey@adacore.com>
2327
2328 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
2329 fixed-point.
2330 * ada-exp.y (maybe_overload): New function.
2331 (ada_wrap_overload): New function.
2332 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
2333 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
2334 (or_else_exp, xor_exp, primary): Update.
2335
9863c3b5
TT
23362021-03-15 Tom Tromey <tromey@adacore.com>
2337
2338 PR ada/27545:
2339 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
2340 call for tagged type.
2341
1ac74522
TT
23422021-03-15 Tom Tromey <tromey@adacore.com>
2343
2344 * ada-exp.y (exp1): Handle resolution of the right hand side of an
2345 assignment.
2346
207582c0
TT
23472021-03-15 Tom Tromey <tromey@adacore.com>
2348
2349 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
2350 container.
2351 (ada_assign_operation::evaluate): Update.
2352 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
2353 Change return type.
2354
8d624a9d
FW
23552021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
2356
2357 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
2358
ba6a0ef3
AB
23592021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
2360
2361 * python/python.c (gdbpy_source_objfile_script): Use
2362 make_scoped_restore to restore gdbpy_current_objfile.
2363 (gdbpy_execute_objfile_script): Likewise.
2364
7c290a04
TT
23652021-03-14 Tom Tromey <tom@tromey.com>
2366
2367 * dwarf2/read.c (read_attribute_value): Use cu_header
2368 consistently.
2369
0280fdcc
TT
23702021-03-14 Tom Tromey <tom@tromey.com>
2371
2372 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
2373 (peek_die_abbrev): Use reader.abfd.
2374
a9f172c6
TT
23752021-03-14 Tom Tromey <tom@tromey.com>
2376
2377 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
2378 m_header_read_in.
2379
7c32eebb
TT
23802021-03-13 Tom Tromey <tom@tromey.com>
2381
2382 * dwarf2/read.c (struct partial_die_info): Update.
2383 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
2384 (load_partial_dies, partial_die_info::partial_die_info): Update.
2385 * dwarf2/abbrev.h (lookup_abbrev): Constify.
2386
27012aba
TT
23872021-03-13 Tom Tromey <tom@tromey.com>
2388
2389 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
2390
fece451c
CB
23912021-03-12 Christian Biesinger <cbiesinger@google.com>
2392
2393 PR threads/27239
2394 * cp-support.c: Use scoped_segv_handler_restore.
2395 * event-top.c (thread_local_segv_handler): Made static.
2396 (scoped_segv_handler_restore::scoped_segv_handler_restore):
2397 New function.
2398 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
2399 function.
2400 * event-top.h (class scoped_segv_handler_restore): New class.
2401 (thread_local_segv_handler): Removed.
2402
7056f312
TT
24032021-03-10 Tom Tromey <tromey@adacore.com>
2404
2405 * parser-defs.h (parser_state): Change completion to bool.
2406 <parse_completion>: Likewise.
2407 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2408 (ada_resolve_variable, ada_resolve_function): Update.
2409 * ada-lang.c (ada_find_operator_symbol): Change
2410 parse_completion to bool.
2411 (ada_resolve_funcall, ada_resolve_variable)
2412 (ada_resolve_function): Likewise.
2413
ccdc02ed
TT
24142021-03-09 Tom Tromey <tromey@adacore.com>
2415
2416 * eval.c (operation::evaluate_funcall): Use function formal
2417 parameter types when evaluating.
2418
fbb1aace
AB
24192021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2420
2421 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
2422 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
2423 and owner to m_owner.
2424
611aa09d
FW
24252021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
2426
2427 * f-exp.h (eval_op_f_loc): Declare.
2428 (expr::fortran_loc_operation): New typedef.
2429 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
2430 UNOP_INTRINSIC.
2431 (f77_keywords): Add LOC keyword.
2432 * f-lang.c (eval_op_f_loc): New function.
2433 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
2434
eef32f59
AB
24352021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2436
2437 * f-exp.h (eval_op_f_array_shape): Declare.
2438 (fortran_array_shape_operation): New type.
2439 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
2440 UNOP_INTRINSIC.
2441 (f77_keywords): Add "shape" keyword.
2442 * f-lang.c (fortran_array_shape): New function.
2443 (eval_op_f_array_shape): New function.
2444 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
2445
7ba155b3
AB
24462021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2447
2448 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
2449 of this function.
2450 (expr::fortran_array_size_1arg): New type.
2451 (expr::fortran_array_size_2arg): Likewise.
2452 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
2453 UNOP_OR_BINOP_INTRINSIC.
2454 (f77_keywords): Add "size" keyword.
2455 * f-lang.c (fortran_array_size): New function.
2456 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
2457 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
2458
e14816a8
AB
24592021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2460
2461 * f-exp.h (eval_op_f_rank): Declare.
2462 (expr::fortran_rank_operation): New typedef.
2463 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
2464 UNOP_INTRINSIC.
2465 (f77_keywords): Add "rank" keyword.
2466 * f-lang.c (eval_op_f_rank): New function.
2467 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
2468
3dd93bf8
TT
24692021-03-08 Tom Tromey <tom@tromey.com>
2470
2471 * printcmd.c (set_command): Remove null check.
2472 * value.c (init_if_undefined_command): Remove null check.
2473
9c79936b
TT
24742021-03-08 Tom Tromey <tom@tromey.com>
2475
2476 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2477 Update.
2478 * p-exp.y (variable): Update.
2479 * go-exp.y (variable): Update.
2480 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
2481 Remove overload for objfile.
2482 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
2483 parameter.
2484 (check_objfile): Likewise.
2485 (dump_for_expression): Likewise. Remove overload for objfile.
2486 (class var_msym_value_operation): Use bound_minimal_symbol.
2487 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
2488 parameter.
2489 (var_msym_value_operation::evaluate_for_address)
2490 (var_msym_value_operation::evaluate_for_sizeof)
2491 (var_msym_value_operation::evaluate_for_cast): Update.
2492 * d-exp.y (PrimaryExpression): Update.
2493 * c-exp.y (variable): Update.
2494 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
2495 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2496 Update.
2497 * ada-exp.y (write_var_or_type): Update.
2498
40d07d07
TT
24992021-03-08 Tom Tromey <tom@tromey.com>
2500
2501 * parser-defs.h (exp_uses_objfile): Return bool.
2502 * parse.c (exp_uses_objfile): Return bool.
2503
0b2b0b82
TT
25042021-03-08 Tom Tromey <tom@tromey.com>
2505
2506 * value.h (eval_skip_value): Don't declare.
2507 * opencl-lang.c (eval_opencl_assign): Update.
2508 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
2509 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2510 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
2511 * expression.h (enum noside) <EVAL_SKIP>: Remove.
2512 * expop.h (typeof_operation::evaluate)
2513 (decltype_operation::evaluate, unop_addr_operation::evaluate)
2514 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
2515 (cxx_cast_operation::evaluate): Update.
2516 * eval.c (eval_skip_value): Remove.
2517 (eval_op_scope, eval_op_var_entry_value)
2518 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
2519 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
2520 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
2521 (eval_op_binary, eval_op_subscript, eval_op_equal)
2522 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
2523 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
2524 (eval_op_complement, eval_op_lognot, eval_op_ind)
2525 (eval_op_memval, eval_op_preinc, eval_op_predec)
2526 (eval_op_postinc, eval_op_postdec, eval_op_type)
2527 (eval_binop_assign_modify, eval_op_objc_msgcall)
2528 (eval_multi_subscript, logical_and_operation::evaluate)
2529 (logical_or_operation::evaluate, array_operation::evaluate)
2530 (operation::evaluate_for_cast)
2531 (var_msym_value_operation::evaluate_for_cast)
2532 (var_value_operation::evaluate_for_cast): Update.
2533 * c-lang.c (c_string_operation::evaluate): Update.
2534 * c-exp.h (objc_nsstring_operation::evaluate)
2535 (objc_selector_operation::evaluate): Update.
2536 * ada-lang.c (ada_assign_operation::evaluate)
2537 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
2538 (ada_atr_size): Update.
2539
96db551d
TT
25402021-03-08 Tom Tromey <tom@tromey.com>
2541
2542 * eval.c: Merge "namespace" scopes.
2543
ce284361
TT
25442021-03-08 Tom Tromey <tom@tromey.com>
2545
2546 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
2547 <release>: Inline.
2548 * parse.c (expr_builder::expr_builder, expr_builder::release):
2549 Remove.
2550
b9d06571
TT
25512021-03-08 Tom Tromey <tom@tromey.com>
2552
2553 * parse.c (expression::expression, expression::~expression):
2554 Remove.
2555 * expression.h (struct expression): Inline constructor. Remove
2556 destructor.
2557
79ab486e
TT
25582021-03-08 Tom Tromey <tom@tromey.com>
2559
2560 * std-operator.def (BINOP_END): Remove.
2561 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
2562 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
2563 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
2564 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
2565 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
2566 BINOP_END.
2567
48fa6f23
TT
25682021-03-08 Tom Tromey <tom@tromey.com>
2569
2570 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
2571
43f542e3
TT
25722021-03-08 Tom Tromey <tom@tromey.com>
2573
2574 * std-operator.def (OP_EXTENDED0): Remove.
2575
5d9ba982
TT
25762021-03-08 Tom Tromey <tom@tromey.com>
2577
2578 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
2579 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
2580 Remove.
2581
d357570d
TT
25822021-03-08 Tom Tromey <tom@tromey.com>
2583
2584 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
2585 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
2586
0922dc84
TT
25872021-03-08 Tom Tromey <tom@tromey.com>
2588
2589 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
2590 * ada-lang.c (ada_binop_minmax): Update.
2591 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2592 Use BINOP_MIN and BINOP_MAX.
2593
1eaebe02
TT
25942021-03-08 Tom Tromey <tom@tromey.com>
2595
2596 * value.h (evaluate_subexp_with_coercion): Don't declare.
2597 * parse.c (exp_descriptor_standard): Remove.
2598 (expr_builder::expr_builder, expr_builder::release): Update.
2599 (expression::expression): Remove size_t parameter.
2600 (expression::~expression): Simplify.
2601 (expression::resize): Remove.
2602 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2603 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2604 (write_exp_elt_longcst, write_exp_elt_floatcst)
2605 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2606 (write_exp_string_vector, write_exp_bitstring): Remove.
2607 * p-lang.h (class pascal_language) <opcode_print_table,
2608 op_print_tab>: Remove.
2609 * p-lang.c (pascal_language::op_print_tab): Remove.
2610 * opencl-lang.c (class opencl_language) <opcode_print_table>:
2611 Remove.
2612 * objc-lang.c (objc_op_print_tab): Remove.
2613 (class objc_language) <opcode_print_table>: Remove.
2614 * m2-lang.h (class m2_language) <opcode_print_table,
2615 op_print_tab>: Remove.
2616 * m2-lang.c (m2_language::op_print_tab): Remove.
2617 * language.h (struct language_defn) <post_parser, expression_ops,
2618 opcode_print_table>: Remove.
2619 * language.c (language_defn::expression_ops)
2620 (auto_or_unknown_language::opcode_print_table): Remove.
2621 * go-lang.h (class go_language) <opcode_print_table,
2622 op_print_tab>: Remove.
2623 * go-lang.c (go_language::op_print_tab): Remove.
2624 * f-lang.h (class f_language) <opcode_print_table>: Remove
2625 <op_print_tab>: Remove.
2626 * f-lang.c (f_language::op_print_tab): Remove.
2627 * expression.h (union exp_element): Remove.
2628 (struct expression): Remove size_t parameter from constructor.
2629 <resize>: Remove.
2630 <first_opcode>: Update.
2631 <nelts, elts>: Remove.
2632 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
2633 (evaluate_subexp_standard, print_expression, op_string)
2634 (dump_raw_expression): Don't declare.
2635 * expprint.c (print_expression, print_subexp)
2636 (print_subexp_funcall, print_subexp_standard, op_string)
2637 (dump_raw_expression, dump_subexp, dump_subexp_body)
2638 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
2639 (dump_prefix_expression): Update.
2640 * eval.c (evaluate_subexp): Remove.
2641 (evaluate_expression, evaluate_type): Update.
2642 (evaluate_subexpression_type): Remove.
2643 (fetch_subexp_value): Remove "pc" parameter. Update.
2644 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
2645 (evaluate_subexp_standard, evaluate_subexp_for_address)
2646 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
2647 (evaluate_subexp_for_cast): Remove.
2648 (parse_and_eval_type): Update.
2649 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2650 * d-lang.c (d_op_print_tab): Remove.
2651 (class d_language) <opcode_print_table>: Remove.
2652 * c-lang.h (c_op_print_tab): Don't declare.
2653 * c-lang.c (c_op_print_tab): Remove.
2654 (class c_language, class cplus_language, class asm_language, class
2655 minimal_language) <opcode_print_table>: Remove.
2656 * breakpoint.c (update_watchpoint, watchpoint_check)
2657 (watchpoint_exp_is_const, watch_command_1): Update.
2658 * ax-gdb.h (union exp_element): Don't declare.
2659 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
2660 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
2661 (gen_expr_binop_rest): Remove.
2662 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
2663 * ada-lang.c (ada_op_print_tab): Remove.
2664 (class ada_language) <post_parser, opcode_print_table>: Remove.
2665
f2a98603
TT
26662021-03-08 Tom Tromey <tom@tromey.com>
2667
2668 * go-lang.c (go_language::expression_ops): Don't declare.
2669 * go-lang.h (class go_language) <expression_ops>: Remove.
2670 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
2671 Remove.
2672 (class opencl_language) <expression_ops>: Remove.
2673 * d-lang.c (class d_language) <expression_ops>: Remove.
2674 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
2675 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
2676 (class c_language, class cplus_language, class asm_language)
2677 (class minimal_language) <expression_ops>: Remove.
2678
d3c54a1c
TT
26792021-03-08 Tom Tromey <tom@tromey.com>
2680
2681 * ada-lang.c (resolve_subexp, replace_operator_with_call)
2682 (evaluate_subexp_type, assign_aggregate)
2683 (aggregate_assign_positional, aggregate_assign_from_choices)
2684 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
2685 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
2686 (ada_operator_check, ada_forward_operator_length)
2687 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
2688 Remove.
2689 (post_parser): Update.
2690 (class ada_language) <expresssion_ops>: Remove.
2691
5871f0a3
TT
26922021-03-08 Tom Tromey <tom@tromey.com>
2693
2694 * m2-lang.h (class m2_language) <expresssion_ops,
2695 exp_descriptor_modula2>: Remove.
2696 * m2-lang.c (evaluate_subexp_modula2)
2697 (m2_language::exp_descriptor_modula2): Remove.
2698
a99be8c1
TT
26992021-03-08 Tom Tromey <tom@tromey.com>
2700
2701 * f-lang.h (class f_language) <expresssion_ops>: Remove.
2702 <exp_descriptor_tab>: Remove.
2703 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
2704 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
2705 (print_subexp_f, dump_subexp_body_f, operator_check_f)
2706 (f_language::exp_descriptor_tab, fortran_prepare_argument):
2707 Remove.
2708
aa1da9ed
TT
27092021-03-08 Tom Tromey <tom@tromey.com>
2710
2711 * rust-lang.h (class rust_language) <expression_ops,
2712 exp_descriptor_tab>: Remove.
2713 * rust-lang.c (rust_evaluate_funcall): Remove.
2714 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
2715 EVAL_SKIP.
2716 (rust_evaluate_subexp): Remove.
2717 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
2718 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
2719 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
2720
08a057e6
TT
27212021-03-08 Tom Tromey <tom@tromey.com>
2722
2723 * ada-exp.y: Create operations.
2724 (empty_stoken): Remove.
2725 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
2726 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
2727 (components): New global.
2728 (push_component, choice_component, pop_component, pop_components):
2729 New functions.
2730 (associations): New global
2731 (push_association, pop_association, pop_associations): New
2732 functions.
2733 (ada_parse): Update.
2734 (write_var_from_sym, write_int): Create operations.
2735 (write_exp_op_with_string): Remove.
2736 (write_object_renaming, write_selectors, write_ambiguous_var)
2737 (write_var_or_type, write_name_assoc): Create operations.
2738 * ada-lang.h (ada_index_type): Declare.
2739 * ada-lang.c (ada_index_type): No longer static.
2740
d308ba78
TT
27412021-03-08 Tom Tromey <tom@tromey.com>
2742
2743 * f-exp.y: Create operations.
2744 (f_language::parser): Update.
2745
f1b8ceef
TT
27462021-03-08 Tom Tromey <tom@tromey.com>
2747
2748 * m2-exp.y: Create operations.
2749 (m2_language::parser): Update.
2750
3163898e
TT
27512021-03-08 Tom Tromey <tom@tromey.com>
2752
2753 * p-exp.y: Create operations.
2754 (pascal_language::parser): Update.
2755
9412fdcc
TT
27562021-03-08 Tom Tromey <tom@tromey.com>
2757
2758 * d-exp.y: Create operations.
2759 (d_parse): Update.
2760
bb4e0574
TT
27612021-03-08 Tom Tromey <tom@tromey.com>
2762
2763 * go-exp.y: Create operations.
2764 (go_language::parser): Update.
2765
d182f279
TT
27662021-03-08 Tom Tromey <tom@tromey.com>
2767
2768 * objc-lang.c (end_msglist): Create operations.
2769 * c-exp.y: Change parser to create operations.
2770 (write_destructor_name): Remove.
2771 (c_parse): Update.
2772
c1299a23
TT
27732021-03-08 Tom Tromey <tom@tromey.com>
2774
2775 * rust-exp.y: Create operations.
2776 (rust_parser::convert_params_to_expression): Change return type.
2777 (binop_maker_ftype): New typedef.
2778 (maker_map): New global.
2779 (rust_parser::convert_ast_to_expression): Change return type.
2780 (rust_language::parser): Update.
2781 (_initialize_rust_exp): Initialize maker_map.
2782
4c5e7a93
TT
27832021-03-08 Tom Tromey <tom@tromey.com>
2784
2785 * stap-probe.c (binop_maker_ftype): New typedef.
2786 (stap_maker_map): New global.
2787 (stap_make_binop): New function.
2788 (stap_parse_register_operand): Return operation_up.
2789 (stap_parse_single_operand, stap_parse_argument_conditionally)
2790 (stap_parse_argument_1): Likewise.
2791 (stap_parse_argument): Create operations.
2792 (stap_probe::parse_arguments): Update.
2793 (_initialize_stap_probe): Initialize stap_maker_map.
2794 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
2795 type.
2796 * i386-tdep.h (i386_stap_parse_special_token): Change return
2797 type.
2798 * i386-tdep.c (i386_stap_parse_special_token_triplet)
2799 (i386_stap_parse_special_token_three_arg_disp)
2800 (i386_stap_parse_special_token): Change return type.
2801 * gdbarch.sh (stap_parse_special_token): Change return type.
2802 * gdbarch.c: Rebuild.
2803 * gdbarch.h: Rebuild.
2804 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
2805 type.
2806 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
2807 return type.
2808
482ddd69
TT
28092021-03-08 Tom Tromey <tom@tromey.com>
2810
2811 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
2812 * gdbarch.h: Rebuild.
2813 * gdbarch.c: Rebuild.
2814 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2815 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
2816 return type.
2817 (amd64_dtrace_parse_probe_argument): Update.
2818
8227d9e2
TT
28192021-03-08 Tom Tromey <tom@tromey.com>
2820
2821 * parser-defs.h (struct parser_state) <push, push_new,
2822 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
2823 wrap2>: New methods.
2824 <m_operations>: New member.
2825 * parse.c (parser_state::push_c_string)
2826 (parser_state::push_symbol, parser_state::push_dollar): New
2827 methods.
2828
4933522d
TT
28292021-03-08 Tom Tromey <tom@tromey.com>
2830
2831 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
2832 New member.
2833 (struct parser_state) <mark_struct_expression>: New method.
2834 * parse.c (parser_state::mark_struct_expression): Update assert.
2835 (parser_state::mark_struct_expression): New method.
2836 (parser_state::mark_completion_tag): Update assert.
2837 (parse_expression_for_completion): Handle expout_last_op.
2838
413403fc
TT
28392021-03-08 Tom Tromey <tom@tromey.com>
2840
2841 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
2842 now in superclass.
2843 * value.h (fetch_subexp_value): Add "op" parameter.
2844 * value.c (init_if_undefined_command): Update.
2845 * tracepoint.c (validate_actionline, encode_actions_1): Update.
2846 * stap-probe.c (stap_probe::compile_to_ax): Update.
2847 * printcmd.c (set_command): Update.
2848 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
2849 Update.
2850 * parser-defs.h (struct expr_builder) <set_operation>: New
2851 method.
2852 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
2853 * expression.h (struct expression) <first_opcode>: Update.
2854 <op>: New member.
2855 * expprint.c (dump_raw_expression, dump_prefix_expression):
2856 Update.
2857 * expop.h (class var_value_operation) <get_symbol>: New method.
2858 (class register_operation) <get_name>: New method.
2859 (class equal_operation): No longer a typedef, now a subclass.
2860 (class unop_memval_operation) <get_type>: New method.
2861 (class assign_operation) <get_lhs>: New method.
2862 (class unop_cast_operation) <get_type>: New method.
2863 * eval.c (evaluate_expression, evaluate_type)
2864 (evaluate_subexpression_type): Update.
2865 (fetch_subexp_value): Add "op" parameter.
2866 (parse_and_eval_type): Update.
2867 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2868 * breakpoint.c (update_watchpoint, watchpoint_check)
2869 (watchpoint_exp_is_const, watch_command_1): Update.
2870 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
2871 Update.
2872
b0f9164c
TT
28732021-03-08 Tom Tromey <tom@tromey.com>
2874
2875 * ada-lang.c (ada_value_binop): Do not use op_string.
2876
a88c4354
TT
28772021-03-08 Tom Tromey <tom@tromey.com>
2878
2879 * expprint.c (dump_for_expression): New overload.
2880 * expop.h (check_objfile, dump_for_expression): Declare new
2881 overloads.
2882 * ada-lang.c (check_objfile): New overload.
2883 (assign_component, ada_aggregate_component::uses_objfile)
2884 (ada_aggregate_component::dump, ada_aggregate_component::assign)
2885 (ada_aggregate_component::assign_aggregate)
2886 (ada_positional_component::uses_objfile)
2887 (ada_positional_component::dump, ada_positional_component::assign)
2888 (ada_discrete_range_association::uses_objfile)
2889 (ada_discrete_range_association::dump)
2890 (ada_discrete_range_association::assign)
2891 (ada_name_association::uses_objfile, ada_name_association::dump)
2892 (ada_name_association::assign)
2893 (ada_choices_component::uses_objfile, ada_choices_component::dump)
2894 (ada_choices_component::assign)
2895 (ada_others_component::uses_objfile, ada_others_component::dump)
2896 (ada_others_component::assign, ada_assign_operation::evaluate):
2897 New methods.
2898 * ada-exp.h (ada_string_operation) <get_name>: New method.
2899 (class ada_assign_operation): New.
2900 (class ada_component): New.
2901 (ada_component_up): New typedef.
2902 (class ada_aggregate_operation, class ada_aggregate_component)
2903 (class ada_positional_component, class ada_others_component)
2904 (class ada_association): New.
2905 (ada_association_up): New typedef.
2906 (class ada_choices_component)
2907 (class ada_discrete_range_association)
2908 (class ada_name_association): New.
2909
d8a4ed8a
TT
29102021-03-08 Tom Tromey <tom@tromey.com>
2911
2912 * ada-lang.c (ada_var_value_operation::resolve)
2913 (ada_funcall_operation::resolve)
2914 (ada_ternop_slice_operation::resolve): New methods.
2915 * ada-exp.h (struct ada_resolvable): New.
2916 (class ada_var_value_operation): Derive from ada_resolvable.
2917 <get_block, resolve>: New methods.
2918 (class ada_funcall_operation): Derive from ada_resolvable.
2919 <resolve>: New method.
2920 (class ada_ternop_slice_operation): Derive from ada_resolvable.
2921 <resolve>: New method.
2922
efe3af2f
TT
29232021-03-08 Tom Tromey <tom@tromey.com>
2924
2925 * ada-lang.c (ada_funcall_operation::evaluate): New method.
2926 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
2927 method.
2928 (class ada_funcall_operation): New.
2929
ebc06ad8
TT
29302021-03-08 Tom Tromey <tom@tromey.com>
2931
2932 * ada-lang.c (ada_structop_operation::evaluate): New method.
2933 * ada-exp.h (class ada_structop_operation): New.
2934
e8c33fa1
TT
29352021-03-08 Tom Tromey <tom@tromey.com>
2936
2937 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
2938 * ada-exp.h (class ada_unop_ind_operation): New.
2939
065ec826
TT
29402021-03-08 Tom Tromey <tom@tromey.com>
2941
2942 * ada-lang.c (ada_binop_exp): No longer static.
2943 * ada-exp.h (ada_binop_exp_operation): New typedef.
2944
9e99f48f
TT
29452021-03-08 Tom Tromey <tom@tromey.com>
2946
2947 * ada-lang.c (ada_val_atr): No longer static.
2948 (ada_atr_val_operation::evaluate): New method.
2949 * ada-exp.h (class ada_atr_val_operation): New.
2950
7631cf6c
TT
29512021-03-08 Tom Tromey <tom@tromey.com>
2952
2953 * ada-lang.c (ada_pos_atr): No longer static.
2954 * ada-exp.h (ada_pos_operation): New typedef.
2955
7992accc
TT
29562021-03-08 Tom Tromey <tom@tromey.com>
2957
2958 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
2959 parameters.
2960 (ada_evaluate_subexp): Use it.
2961
6ad3b8bf
TT
29622021-03-08 Tom Tromey <tom@tromey.com>
2963
2964 * ada-lang.c (ada_binop_minmax): No longer static.
2965 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2966 New typedefs.
2967
3f4a0053
TT
29682021-03-08 Tom Tromey <tom@tromey.com>
2969
2970 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2971 New method.
2972 * ada-exp.h (class ada_var_msym_value_operation): New.
2973
99a3b1e7
TT
29742021-03-08 Tom Tromey <tom@tromey.com>
2975
2976 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2977 (ada_var_value_operation::evaluate): New methods.
2978 * ada-exp.h (class ada_var_value_operation): New.
2979
60fa02ca
TT
29802021-03-08 Tom Tromey <tom@tromey.com>
2981
2982 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
2983 * ada-exp.h (class ada_unop_atr_operation): New.
2984
82c3886e
TT
29852021-03-08 Tom Tromey <tom@tromey.com>
2986
2987 * ada-lang.c (ada_binop_in_bounds): No longer static.
2988 * ada-exp.h (class ada_binop_in_bounds_operation): New.
2989
1b1ebfab
TT
29902021-03-08 Tom Tromey <tom@tromey.com>
2991
2992 * ada-lang.c (ada_ternop_slice): No longer static.
2993 * ada-exp.h (class ada_ternop_slice_operation): New.
2994
039e4b76
TT
29952021-03-08 Tom Tromey <tom@tromey.com>
2996
2997 * ada-exp.h (ada_bitwise_operation): New template class.
2998 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
2999 (ada_bitwise_xor_operation): New typedefs.
3000
6e8fb7b7
TT
30012021-03-08 Tom Tromey <tom@tromey.com>
3002
3003 * ada-lang.c (ada_equal_binop): No longer static.
3004 * ada-exp.h (class ada_binop_equal_operation): New.
3005
d9e7db06
TT
30062021-03-08 Tom Tromey <tom@tromey.com>
3007
3008 * ada-lang.c (ada_mult_binop): No longer static.
3009 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3010 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3011
73796c73
TT
30122021-03-08 Tom Tromey <tom@tromey.com>
3013
3014 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3015 * ada-exp.h (class ada_binop_addsub_operation): New.
3016
cd9a3148
TT
30172021-03-08 Tom Tromey <tom@tromey.com>
3018
3019 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3020 (ada_resolve_variable): Declare.
3021 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3022 (ada_resolve_variable): New functions.
3023 (resolve_subexp): Update.
3024
cf12b17f
TT
30252021-03-08 Tom Tromey <tom@tromey.com>
3026
3027 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3028 method.
3029 * c-exp.h (class opencl_ternop_cond_operation): New.
3030
944fd3b8
TT
30312021-03-08 Tom Tromey <tom@tromey.com>
3032
3033 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3034 method.
3035 * c-exp.h (class opencl_logical_binop_operation): New.
3036
33b79214
TT
30372021-03-08 Tom Tromey <tom@tromey.com>
3038
3039 * opencl-lang.c (opencl_structop_operation::evaluate): New
3040 method.
3041 * c-exp.h (class opencl_structop_operation): New.
3042
2492ba36
TT
30432021-03-08 Tom Tromey <tom@tromey.com>
3044
3045 * opencl-lang.c (opencl_logical_not): No longer static. Change
3046 parameters.
3047 (evaluate_subexp_opencl): Update.
3048 * c-exp.h (opencl_notequal_operation): New typedef.
3049
a88c3c8d
TT
30502021-03-08 Tom Tromey <tom@tromey.com>
3051
3052 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3053 static. Change parameters.
3054 (eval_opencl_assign): No longer static. Add "op" parameter.
3055 (evaluate_subexp_opencl): Update.
3056 * c-exp.h (opencl_binop_operation): New template class.
3057 (opencl_assign_operation, opencl_equal_operation)
3058 (opencl_notequal_operation, opencl_less_operation)
3059 (opencl_gtr_operation, opencl_geq_operation)
3060 (opencl_leq_operation): New typedefs.
3061
e9677704
TT
30622021-03-08 Tom Tromey <tom@tromey.com>
3063
3064 * opencl-lang.c (opencl_value_cast): No longer static.
3065 * c-exp.h (opencl_cast_type_operation): New typedef.
3066
f403a4e4
TT
30672021-03-08 Tom Tromey <tom@tromey.com>
3068
3069 * f-exp.h (eval_op_f_allocated): Declare.
3070 (fortran_allocated_operation): New typedef.
3071 * f-lang.c (eval_op_f_allocated): No longer static.
3072
eb4c9271
TT
30732021-03-08 Tom Tromey <tom@tromey.com>
3074
3075 * f-lang.c (eval_op_f_associated): New functions.
3076 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3077 typedefs.
3078
58a76c72
TT
30792021-03-08 Tom Tromey <tom@tromey.com>
3080
3081 * f-lang.c (fortran_bound_1arg::evaluate)
3082 (fortran_bound_2arg::evaluate): New methods.
3083 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3084 New.
3085
2f98abe1
TT
30862021-03-08 Tom Tromey <tom@tromey.com>
3087
3088 * expop.h (class unop_addr_operation) <get_expression>: New
3089 method.
3090 * f-lang.c (fortran_undetermined::value_subarray)
3091 (fortran_undetermined::evaluate): New methods.
3092 (fortran_prepare_argument): New overload.
3093 * f-exp.h (class fortran_range_operation)
3094 (class fortran_undetermined): New classes.
3095
638fd74a
TT
30962021-03-08 Tom Tromey <tom@tromey.com>
3097
3098 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3099 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3100 method.
3101
a00b7254
TT
31022021-03-08 Tom Tromey <tom@tromey.com>
3103
3104 * expression.h (class operation) <evaluate_funcall>: New methods.
3105 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3106 (class var_value_operation) <evaluate_funcall>: New method.
3107 (class structop_base_operation) <evaluate_funcall>: New method.
3108 (class var_msym_value_operation) <evaluate_funcall>: New method.
3109 (class structop_member_base): New class.
3110 (class structop_member_operation): Derive from
3111 structop_member_base.
3112 (class structop_mptr_operation): Derive from
3113 structop_member_base.
3114 (class funcall_operation): New class.
3115 * eval.c (operation::evaluate_funcall)
3116 (var_value_operation::evaluate_funcall)
3117 (scope_operation::evaluate_funcall)
3118 (structop_member_base::evaluate_funcall)
3119 (structop_base_operation::evaluate_funcall): New methods.
3120
1c02eb30
TT
31212021-03-08 Tom Tromey <tom@tromey.com>
3122
3123 * expop.h (class array_operation): New.
3124 * eval.c (array_operation::evaluate_struct_tuple)
3125 (array_operation::evaluate): New methods.
3126
e4479080
TT
31272021-03-08 Tom Tromey <tom@tromey.com>
3128
3129 * expop.h (class adl_func_operation): New.
3130 * eval.c (adl_func_operation::evaluate): New method.
3131
95d49dfb
TT
31322021-03-08 Tom Tromey <tom@tromey.com>
3133
3134 * ada-lang.c (ada_unop_in_range): No longer static.
3135 * ada-exp.h (class ada_unop_range_operation): New.
3136
7c15d377
TT
31372021-03-08 Tom Tromey <tom@tromey.com>
3138
3139 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3140 No longer static.
3141 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3142 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3143
5019124b
TT
31442021-03-08 Tom Tromey <tom@tromey.com>
3145
3146 * expop.h (class logical_and_operation)
3147 (class logical_or_operation): New.
3148 * eval.c (logical_and_operation::evaluate)
3149 (logical_or_operation::evaluate): New methods.
3150 * ax-gdb.c (logical_and_operation::do_generate_ax)
3151 (logical_or_operation::do_generate_ax): New methods.
3152
2bc9b40c
TT
31532021-03-08 Tom Tromey <tom@tromey.com>
3154
3155 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3156 static.
3157 * m2-exp.h: New file.
3158
5947d337
TT
31592021-03-08 Tom Tromey <tom@tromey.com>
3160
3161 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3162 * rust-exp.h (class rust_aggregate_operation): New.
3163
e4407a20
TT
31642021-03-08 Tom Tromey <tom@tromey.com>
3165
3166 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3167 No longer static.
3168 * rust-exp.h (class rust_struct_anon): New.
3169 (class rust_structop): New.
3170
9db6b6dd
TT
31712021-03-08 Tom Tromey <tom@tromey.com>
3172
3173 * rust-lang.c (rust_range): No longer static.
3174 * rust-exp.h (class rust_range_operation): New.
3175
6ce1ad67
TT
31762021-03-08 Tom Tromey <tom@tromey.com>
3177
3178 * rust-lang.c (rust_subscript): No longer static.
3179 * rust-exp.h (class rust_subscript_operation): New.
3180
11dd3dce
TT
31812021-03-08 Tom Tromey <tom@tromey.com>
3182
3183 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3184 parameter.
3185 (rust_evaluate_subexp): Update.
3186 * rust-exp.h (class rust_unop_ind_operation): New.
3187
6fab4359
TT
31882021-03-08 Tom Tromey <tom@tromey.com>
3189
3190 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3191 longer static. Add "opcode" parameter.
3192 (rust_evaluate_subexp): Update.
3193 * rust-exp.h: New file.
3194
9dcd3e29
TT
31952021-03-08 Tom Tromey <tom@tromey.com>
3196
3197 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3198 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3199 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3200 (evaluate_subexp_f): Update.
3201 * f-exp.h: New file.
3202
fc715eb2
TT
32032021-03-08 Tom Tromey <tom@tromey.com>
3204
3205 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3206 * ada-exp.h (class ada_ternop_range_operation): New.
3207
cc6bd32e
TT
32082021-03-08 Tom Tromey <tom@tromey.com>
3209
3210 * ada-lang.c (ada_qual_operation::evaluate): New method.
3211 * ada-exp.h (class ada_qual_operation): New.
3212
42fecb61
TT
32132021-03-08 Tom Tromey <tom@tromey.com>
3214
3215 * ada-lang.c (ada_string_operation::evaluate): New method.
3216 * ada-exp.h (class ada_string_operation): New.
3217
03070ee9
TT
32182021-03-08 Tom Tromey <tom@tromey.com>
3219
3220 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3221 * ada-exp.h: New file.
3222
821e72d7
TT
32232021-03-08 Tom Tromey <tom@tromey.com>
3224
3225 * expop.h (class multi_subscript_operation): New.
3226 * eval.c (multi_subscript_operation::evaluate): New method.
3227
085734dd
TT
32282021-03-08 Tom Tromey <tom@tromey.com>
3229
3230 * eval.c (objc_msgcall_operation::evaluate): New method.
3231 * c-exp.h (class objc_msgcall_operation): New.
3232
e82a5afc
TT
32332021-03-08 Tom Tromey <tom@tromey.com>
3234
3235 * expop.h (class var_value_operation): New.
3236 * eval.c (var_value_operation::evaluate)
3237 (var_value_operation::evaluate_for_address)
3238 (var_value_operation::evaluate_with_coercion)
3239 (var_value_operation::evaluate_for_sizeof)
3240 (var_value_operation::evaluate_for_cast): New methods.
3241 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3242
d9ad79d8
TT
32432021-03-08 Tom Tromey <tom@tromey.com>
3244
3245 * expop.h (cxx_cast_ftype): New typedef.
3246 (cxx_cast_operation): New template.
3247 (dynamic_cast_operation, reinterpret_cast_operation): New
3248 typedefs.
3249
292382f4
TT
32502021-03-08 Tom Tromey <tom@tromey.com>
3251
3252 * expop.h (class unop_cast_type_operation): New.
3253 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3254 method.
3255
165a813a
TT
32562021-03-08 Tom Tromey <tom@tromey.com>
3257
3258 * expop.h (class unop_cast_operation): New.
3259 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3260
e5946e16
TT
32612021-03-08 Tom Tromey <tom@tromey.com>
3262
3263 * expop.h (class assign_modify_operation): New.
3264 * eval.c (eval_binop_assign_modify): No longer static.
3265 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3266
40786782
TT
32672021-03-08 Tom Tromey <tom@tromey.com>
3268
3269 * expop.h (class assign_operation): New.
3270 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3271
44b675c8
TT
32722021-03-08 Tom Tromey <tom@tromey.com>
3273
3274 * expop.h (class type_instance_operation): New.
3275 * eval.c (type_instance_operation::evaluate): New method.
3276
f6b42326
TT
32772021-03-08 Tom Tromey <tom@tromey.com>
3278
3279 * expop.h (class op_this_operation): New.
3280 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3281
cbc18219
TT
32822021-03-08 Tom Tromey <tom@tromey.com>
3283
3284 * expop.h (class unop_memval_operation)
3285 (class unop_memval_type_operation): New.
3286 * eval.c (eval_op_memval): No longer static.
3287 (unop_memval_operation::evaluate_for_address)
3288 (unop_memval_type_operation::evaluate_for_address)
3289 (unop_memval_operation::evaluate_for_sizeof)
3290 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3291 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3292 (unop_memval_type_operation::do_generate_ax): New methods.
3293
ae4bb61e
TT
32942021-03-08 Tom Tromey <tom@tromey.com>
3295
3296 * expop.h (class unop_alignof_operation): New.
3297 * eval.c (eval_op_alignof): No longer static.
3298
85d23bda
TT
32992021-03-08 Tom Tromey <tom@tromey.com>
3300
3301 * expop.h (class unop_sizeof_operation): New.
3302 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3303
14aff815
TT
33042021-03-08 Tom Tromey <tom@tromey.com>
3305
3306 * expop.h (class unop_addr_operation): New.
3307 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3308
929f3aa7
TT
33092021-03-08 Tom Tromey <tom@tromey.com>
3310
3311 * expop.h (class typeid_operation): New.
3312
0af8829e
TT
33132021-03-08 Tom Tromey <tom@tromey.com>
3314
3315 * expop.h (class decltype_operation): New.
3316
4efc574c
TT
33172021-03-08 Tom Tromey <tom@tromey.com>
3318
3319 * expop.h (class typeof_operation): New.
3320
5b5f5140
TT
33212021-03-08 Tom Tromey <tom@tromey.com>
3322
3323 * expop.h (class type_operation): New.
3324 * eval.c (eval_op_type): No longer static.
3325
876469ff
TT
33262021-03-08 Tom Tromey <tom@tromey.com>
3327
3328 * expop.h (class unop_ind_base_operation)
3329 (class unop_ind_operation): New.
3330 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
3331 (unop_ind_base_operation::evaluate_for_address)
3332 (unop_ind_base_operation::evaluate_for_sizeof): New method.
3333 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
3334
6d89e296
TT
33352021-03-08 Tom Tromey <tom@tromey.com>
3336
3337 * expop.h (unop_incr_operation): New template.
3338 (preinc_operation, predec_operation, postinc_operation)
3339 (postdec_operation): New typedefs.
3340 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
3341 (eval_op_postdec): No longer static.
3342
9307d17b
TT
33432021-03-08 Tom Tromey <tom@tromey.com>
3344
3345 * expop.h (unary_ftype): New typedef.
3346 (unop_operation, usual_ax_binop_operation): New templates.
3347 (unary_plus_operation, unary_neg_operation)
3348 (unary_complement_operation, unary_logical_not_operation): New
3349 typedefs.
3350 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
3351 (eval_op_lognot): No longer static.
3352 * ax-gdb.c (gen_expr_unop): New function.
3353
ae64ba58
TT
33542021-03-08 Tom Tromey <tom@tromey.com>
3355
3356 * ax-gdb.c (comma_operation::do_generate_ax): New method.
3357
d4eff4c1
TT
33582021-03-08 Tom Tromey <tom@tromey.com>
3359
3360 * expop.h (class repeat_operation): New.
3361 * eval.c (eval_op_repeat): No longer static. Remove "op"
3362 parameter.
3363 (evaluate_subexp_standard): Update.
3364 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
3365
46916f2b
TT
33662021-03-08 Tom Tromey <tom@tromey.com>
3367
3368 * expop.h (class comparison_operation): New.
3369 (equal_operation, notequal_operation, less_operation)
3370 (gtr_operation, geq_operation, leq_operation): New typedefs.
3371 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
3372 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
3373
224d6424
TT
33742021-03-08 Tom Tromey <tom@tromey.com>
3375
3376 * expop.h (class subscript_operation): New.
3377 * eval.c (eval_op_subscript): No longer static.
3378
373907ff
TT
33792021-03-08 Tom Tromey <tom@tromey.com>
3380
3381 * expop.h (class binop_operation, class usual_ax_binop_operation):
3382 New.
3383 (exp_operation, intdiv_operation, mod_operation, mul_operation)
3384 (div_operation, rem_operation, lsh_operation, rsh_operation)
3385 (bitwise_and_operation, bitwise_ior_operation)
3386 (bitwise_xor_operation): New typedefs.
3387 * eval.c (eval_op_binary): No longer static.
3388
5133d78b
TT
33892021-03-08 Tom Tromey <tom@tromey.com>
3390
3391 * expop.h (class sub_operation): New.
3392 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
3393 (evaluate_subexp_standard): Update.
3394
a94323b6
TT
33952021-03-08 Tom Tromey <tom@tromey.com>
3396
3397 * expop.h (class add_operation): New.
3398 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
3399 (evaluate_subexp_standard): Update.
3400
e51e26a0
TT
34012021-03-08 Tom Tromey <tom@tromey.com>
3402
3403 * expop.h (class concat_operation): New.
3404 * eval.c (eval_op_concat): No longer static. Remove "op"
3405 parameter.
3406 (evaluate_subexp_standard): Update.
3407
07f724a8
TT
34082021-03-08 Tom Tromey <tom@tromey.com>
3409
3410 * expop.h (class structop_member_operation)
3411 (class structop_mptr_operation): New.
3412 * eval.c (eval_op_member): No longer static.
3413
ab0609be
TT
34142021-03-08 Tom Tromey <tom@tromey.com>
3415
3416 * expop.h (class structop_ptr_operation): New.
3417 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
3418 parameter.
3419
808b22cf
TT
34202021-03-08 Tom Tromey <tom@tromey.com>
3421
3422 * expop.h (class structop_base_operation)
3423 (class structop_operation): New.
3424 * eval.c (eval_op_structop_struct): No longer static.
3425
8cfd3e95
TT
34262021-03-08 Tom Tromey <tom@tromey.com>
3427
3428 * expop.h (class complex_operation): New.
3429
09db3700
TT
34302021-03-08 Tom Tromey <tom@tromey.com>
3431
3432 * eval.c (eval_op_objc_selector): No longer static.
3433 * c-exp.h (class objc_selector_operation): New.
3434
06dc61b9
TT
34352021-03-08 Tom Tromey <tom@tromey.com>
3436
3437 * eval.c: Include c-exp.h.
3438 * c-exp.h (class objc_nsstring_operation): New.
3439
72d0a711
TT
34402021-03-08 Tom Tromey <tom@tromey.com>
3441
3442 * c-lang.c (c_string_operation::evaluate): New method.
3443 * c-exp.h: New file.
3444
9186293f
TT
34452021-03-08 Tom Tromey <tom@tromey.com>
3446
3447 * expop.h (class ternop_cond_operation): New.
3448 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
3449
1594e0bb
TT
34502021-03-08 Tom Tromey <tom@tromey.com>
3451
3452 * expop.h (class ternop_slice_operation): New.
3453 * eval.c (eval_op_ternop): No longer static.
3454
b50db09f
TT
34552021-03-08 Tom Tromey <tom@tromey.com>
3456
3457 * expop.h (class string_operation): New.
3458 * eval.c (eval_op_string): No longer static.
3459
e6e01e16
TT
34602021-03-08 Tom Tromey <tom@tromey.com>
3461
3462 * expop.h (class internalvar_operation): New.
3463 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
3464
e6985c5e
TT
34652021-03-08 Tom Tromey <tom@tromey.com>
3466
3467 * expop.h (class bool_operation): New.
3468
55bdbff8
TT
34692021-03-08 Tom Tromey <tom@tromey.com>
3470
3471 * expop.h (class register_operation): New.
3472 * eval.c (eval_op_register): No longer static.
3473 * ax-gdb.c (register_operation::do_generate_ax): New method.
3474
247d935b
TT
34752021-03-08 Tom Tromey <tom@tromey.com>
3476
3477 * expop.h (class last_operation): New.
3478
17679395
TT
34792021-03-08 Tom Tromey <tom@tromey.com>
3480
3481 * expop.h (class func_static_var_operation): New.
3482 * eval.c (eval_op_func_static_var): No longer static.
3483
b5cc3923
TT
34842021-03-08 Tom Tromey <tom@tromey.com>
3485
3486 * expop.h (class var_entry_value_operation): New.
3487 * eval.c (eval_op_var_entry_value): No longer static.
3488
0c8effa3
TT
34892021-03-08 Tom Tromey <tom@tromey.com>
3490
3491 * expression.h (class operation) <set_outermost>: New method.
3492 * expop.h (class var_msym_value_operation): New.
3493 * eval.c (eval_op_var_msym_value): No longer static.
3494 (var_msym_value_operation::evaluate_for_address)
3495 (var_msym_value_operation::evaluate_for_sizeof)
3496 (var_msym_value_operation::evaluate_for_cast): New methods.
3497 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
3498 method.
3499
d336c29e
TT
35002021-03-08 Tom Tromey <tom@tromey.com>
3501
3502 * expop.h (class long_const_operation): New.
3503 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
3504
d5ab122c
TT
35052021-03-08 Tom Tromey <tom@tromey.com>
3506
3507 * expop.h (class scope_operation): New.
3508 * eval.c (eval_op_scope): No longer static.
3509 (scope_operation::evaluate_for_address): New method.
3510 * ax-gdb.c (scope_operation::do_generate_ax): New method.
3511
cae26a0c
TT
35122021-03-08 Tom Tromey <tom@tromey.com>
3513
3514 * expprint.c (float_const_operation::dump): New method.
3515 * expop.h (float_data): New typedef.
3516 (class float_const_operation): New.
3517
75f9892d
TT
35182021-03-08 Tom Tromey <tom@tromey.com>
3519
3520 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
3521 * ax-gdb.c (gen_expr_binop): New function.
3522 (gen_expr_structop): Likewise.
3523
de401988
TT
35242021-03-08 Tom Tromey <tom@tromey.com>
3525
3526 * expprint.c (expr::dump_for_expression): New functions.
3527 * expop.h (dump_for_expression): New overloads.
3528 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
3529 Update.
3530
e2803273
TT
35312021-03-08 Tom Tromey <tom@tromey.com>
3532
3533 * expression.h (expr::operation): New class.
3534 (expr::make_operation): New function.
3535 (expr::operation_up): New typedef.
3536 * expop.h: New file.
3537 * eval.c (operation::evaluate_for_cast)
3538 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
3539 New methods.
3540 * ax-gdb.c (operation::generate_ax): New method.
3541
e18c58f2
TT
35422021-03-08 Tom Tromey <tom@tromey.com>
3543
3544 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
3545 (gen_expr_binop_rest): New overload.
3546
c0d7ed8c
TT
35472021-03-08 Tom Tromey <tom@tromey.com>
3548
3549 * eval.c (eval_multi_subscript): New function.
3550 (evaluate_subexp_standard): Use it.
3551
dd5fd283
TT
35522021-03-08 Tom Tromey <tom@tromey.com>
3553
3554 * ada-lang.c (ada_binop_exp): New function.
3555 (ada_evaluate_subexp): Use it.
3556
3848abd6
TT
35572021-03-08 Tom Tromey <tom@tromey.com>
3558
3559 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
3560 parameters.
3561 (ada_evaluate_subexp): Use it.
3562
38dc70cf
TT
35632021-03-08 Tom Tromey <tom@tromey.com>
3564
3565 * ada-lang.c (ada_binop_minmax): New function.
3566 (ada_evaluate_subexp): Use it.
3567
b84564fc
TT
35682021-03-08 Tom Tromey <tom@tromey.com>
3569
3570 * ada-lang.c (ada_unop_atr): New function.
3571 (ada_evaluate_subexp): Use it.
3572
b467efaa
TT
35732021-03-08 Tom Tromey <tom@tromey.com>
3574
3575 * ada-lang.c (ada_binop_in_bounds): New function.
3576 (ada_evaluate_subexp): Use it.
3577
5ce19db8
TT
35782021-03-08 Tom Tromey <tom@tromey.com>
3579
3580 * ada-lang.c (ada_ternop_slice): New function.
3581 (ada_evaluate_subexp): Use it.
3582
214b13ac
TT
35832021-03-08 Tom Tromey <tom@tromey.com>
3584
3585 * ada-lang.c (ada_equal_binop): New function.
3586 (ada_evaluate_subexp): Use it.
3587
faa1dfd7
TT
35882021-03-08 Tom Tromey <tom@tromey.com>
3589
3590 * ada-lang.c (ada_mult_binop): New function.
3591 (ada_evaluate_subexp): Use it.
3592
d05e24e6
TT
35932021-03-08 Tom Tromey <tom@tromey.com>
3594
3595 * ada-lang.c (ada_abs): New function.
3596 (ada_evaluate_subexp): Use it.
3597
68c75735
TT
35982021-03-08 Tom Tromey <tom@tromey.com>
3599
3600 * ada-lang.c (ada_atr_size): New function.
3601 (ada_evaluate_subexp): Use it.
3602
020dbabe
TT
36032021-03-08 Tom Tromey <tom@tromey.com>
3604
3605 * ada-lang.c (ada_atr_tag): New function.
3606 (ada_evaluate_subexp): Use it.
3607
7efc87ff
TT
36082021-03-08 Tom Tromey <tom@tromey.com>
3609
3610 * ada-lang.c (ada_unop_in_range): New function.
3611 (ada_evaluate_subexp): Use it.
3612
82390ab8
TT
36132021-03-08 Tom Tromey <tom@tromey.com>
3614
3615 * ada-lang.c (ada_unop_neg): New function.
3616 (ada_evaluate_subexp): Use it.
3617
62d4bd94
TT
36182021-03-08 Tom Tromey <tom@tromey.com>
3619
3620 * ada-lang.c (eval_ternop_in_range): New function.
3621 (ada_evaluate_subexp): Use it.
3622
3634f669
TT
36232021-03-08 Tom Tromey <tom@tromey.com>
3624
3625 * opencl-lang.c (eval_opencl_assign): New function.
3626 (evaluate_subexp_opencl): Use it.
3627
5e80600e
TT
36282021-03-08 Tom Tromey <tom@tromey.com>
3629
3630 * eval.c (eval_op_objc_msgcall): New function.
3631 (evaluate_subexp_standard): Use it.
3632
fb5ba2ab
TT
36332021-03-08 Tom Tromey <tom@tromey.com>
3634
3635 * eval.c (eval_binop_assign_modify): New function.
3636 (evaluate_subexp_standard): Use it.
3637
a49881f7
TT
36382021-03-08 Tom Tromey <tom@tromey.com>
3639
3640 * m2-lang.c (eval_op_m2_subscript): New function.
3641 (evaluate_subexp_modula2): Use it.
3642
41bdced5
TT
36432021-03-08 Tom Tromey <tom@tromey.com>
3644
3645 * m2-lang.c (eval_op_m2_high): New function.
3646 (evaluate_subexp_modula2): Use it.
3647
13ea014a
TT
36482021-03-08 Tom Tromey <tom@tromey.com>
3649
3650 * eval.c (evaluate_subexp_for_address_base): New function.
3651 (evaluate_subexp_for_address): Use it.
3652 (evaluate_subexp_for_sizeof_base): New function.
3653 (evaluate_subexp_for_sizeof): Use it.
3654
1fa41fc7
TT
36552021-03-08 Tom Tromey <tom@tromey.com>
3656
3657 * rust-lang.c (eval_op_rust_structop): New function.
3658 (rust_evaluate_subexp): Use it.
3659
575cae23
TT
36602021-03-08 Tom Tromey <tom@tromey.com>
3661
3662 * rust-lang.c (eval_op_rust_struct_anon): New function.
3663 (rust_evaluate_subexp): Use it.
3664
05104233
TT
36652021-03-08 Tom Tromey <tom@tromey.com>
3666
3667 * rust-lang.c (eval_op_rust_array): New function.
3668 (rust_evaluate_subexp): Use it.
3669
6fa9831f
TT
36702021-03-08 Tom Tromey <tom@tromey.com>
3671
3672 * rust-lang.c (eval_op_rust_complement): New function.
3673 (rust_evaluate_subexp): Use it.
3674
d123f9e4
TT
36752021-03-08 Tom Tromey <tom@tromey.com>
3676
3677 * rust-lang.c (eval_op_rust_ind): New function.
3678 (rust_evaluate_subexp): Use it.
3679
984af2cb
TT
36802021-03-08 Tom Tromey <tom@tromey.com>
3681
3682 * rust-lang.c (rust_subscript): Change parameters.
3683 (rust_evaluate_subexp): Update.
3684
d148f803
TT
36852021-03-08 Tom Tromey <tom@tromey.com>
3686
3687 * rust-lang.c (rust_range): Change parameters.
3688 (rust_evaluate_subexp): Update.
3689
9cbd1c20
TT
36902021-03-08 Tom Tromey <tom@tromey.com>
3691
3692 * f-lang.c (eval_op_f_allocated): New function.
3693 (evaluate_subexp_f): Use it.
3694
3c18c49c
TT
36952021-03-08 Tom Tromey <tom@tromey.com>
3696
3697 * f-lang.c (fortran_require_array): New function.
3698 (evaluate_subexp_f): Use it.
3699
216f6fcb
TT
37002021-03-08 Tom Tromey <tom@tromey.com>
3701
3702 * f-lang.c (eval_op_f_kind): New function.
3703 (evaluate_subexp_f): Use it.
3704
00f2db6f
TT
37052021-03-08 Tom Tromey <tom@tromey.com>
3706
3707 * f-lang.c (eval_op_f_cmplx): New function.
3708 (evaluate_subexp_f): Use it.
3709
93b2b5fa
TT
37102021-03-08 Tom Tromey <tom@tromey.com>
3711
3712 * f-lang.c (eval_op_f_modulo): New function.
3713 (evaluate_subexp_f): Use it.
3714
9f1a1f3c
TT
37152021-03-08 Tom Tromey <tom@tromey.com>
3716
3717 * f-lang.c (eval_op_f_floor): New function.
3718 (evaluate_subexp_f): Use it.
3719
3dc41f3c
TT
37202021-03-08 Tom Tromey <tom@tromey.com>
3721
3722 * f-lang.c (eval_op_f_ceil): New function.
3723 (evaluate_subexp_f): Use it.
3724
e08109f2
TT
37252021-03-08 Tom Tromey <tom@tromey.com>
3726
3727 * f-lang.c (eval_op_f_mod): New function.
3728 (evaluate_subexp_f): Use it.
3729
cc05c68e
TT
37302021-03-08 Tom Tromey <tom@tromey.com>
3731
3732 * f-lang.c (eval_op_f_abs): New function.
3733 (evaluate_subexp_f): Use it.
3734
aec95807
TT
37352021-03-08 Tom Tromey <tom@tromey.com>
3736
3737 * eval.c (eval_op_type): New function.
3738 (evaluate_subexp_standard): Use it.
3739
a220ead5
TT
37402021-03-08 Tom Tromey <tom@tromey.com>
3741
3742 * eval.c (eval_op_postdec): New function.
3743 (evaluate_subexp_standard): Use it.
3744
abffe116
TT
37452021-03-08 Tom Tromey <tom@tromey.com>
3746
3747 * eval.c (eval_op_postinc): New function.
3748 (evaluate_subexp_standard): Use it.
3749
9e1361b7
TT
37502021-03-08 Tom Tromey <tom@tromey.com>
3751
3752 * eval.c (eval_op_predec): New file.
3753 (evaluate_subexp_standard): Use it.
3754
00f50884
TT
37552021-03-08 Tom Tromey <tom@tromey.com>
3756
3757 * eval.c (eval_op_preinc): New function.
3758 (evaluate_subexp_standard): Use it.
3759
3aef2a07
TT
37602021-03-08 Tom Tromey <tom@tromey.com>
3761
3762 * eval.c (eval_op_memval): New function.
3763 (evaluate_subexp_standard): Use it.
3764
acee9468
TT
37652021-03-08 Tom Tromey <tom@tromey.com>
3766
3767 * eval.c (eval_op_alignof): New function.
3768 (evaluate_subexp_standard): Use it.
3769
786f70ee
TT
37702021-03-08 Tom Tromey <tom@tromey.com>
3771
3772 * eval.c (eval_op_ind): New function.
3773 (evaluate_subexp_standard): Use it.
3774
24338fb9
TT
37752021-03-08 Tom Tromey <tom@tromey.com>
3776
3777 * eval.c (eval_op_lognot): New function.
3778 (evaluate_subexp_standard): Use it.
3779
1f09ec81
TT
37802021-03-08 Tom Tromey <tom@tromey.com>
3781
3782 * eval.c (eval_op_complement): New function.
3783 (evaluate_subexp_standard): Use it.
3784
606d105f
TT
37852021-03-08 Tom Tromey <tom@tromey.com>
3786
3787 * eval.c (eval_op_neg): New function.
3788 (evaluate_subexp_standard): Use it.
3789
39f288be
TT
37902021-03-08 Tom Tromey <tom@tromey.com>
3791
3792 * eval.c (eval_op_plus): New function.
3793 (evaluate_subexp_standard): Use it.
3794
eed70b1c
TT
37952021-03-08 Tom Tromey <tom@tromey.com>
3796
3797 * eval.c (eval_op_repeat): New function.
3798 (evaluate_subexp_standard): Use it.
3799
60cdd487
TT
38002021-03-08 Tom Tromey <tom@tromey.com>
3801
3802 * eval.c (eval_op_leq): New function.
3803 (evaluate_subexp_standard): Use it.
3804
96e3efd9
TT
38052021-03-08 Tom Tromey <tom@tromey.com>
3806
3807 * eval.c (eval_op_geq): New function.
3808 (evaluate_subexp_standard): Use it.
3809
1f78d732
TT
38102021-03-08 Tom Tromey <tom@tromey.com>
3811
3812 * eval.c (eval_op_gtr): New function.
3813 (evaluate_subexp_standard): Use it.
3814
6cad1349
TT
38152021-03-08 Tom Tromey <tom@tromey.com>
3816
3817 * eval.c (eval_op_less): New function.
3818 (evaluate_subexp_standard): Use it.
3819
1fcb3559
TT
38202021-03-08 Tom Tromey <tom@tromey.com>
3821
3822 * eval.c (eval_op_notequal): New function.
3823 (evaluate_subexp_standard): Use it.
3824
0cc96de8
TT
38252021-03-08 Tom Tromey <tom@tromey.com>
3826
3827 * eval.c (eval_op_equal): New function.
3828 (evaluate_subexp_standard): Use it.
3829
288d26bc
TT
38302021-03-08 Tom Tromey <tom@tromey.com>
3831
3832 * eval.c (eval_op_subscript): New function.
3833 (evaluate_subexp_standard): Use it.
3834
7cdcdd02
TT
38352021-03-08 Tom Tromey <tom@tromey.com>
3836
3837 * eval.c (eval_op_binary): New function.
3838 (evaluate_subexp_standard): Use it.
3839
d9790e22
TT
38402021-03-08 Tom Tromey <tom@tromey.com>
3841
3842 * eval.c (eval_op_sub): New function.
3843 (evaluate_subexp_standard): Use it.
3844
aedaf9ac
TT
38452021-03-08 Tom Tromey <tom@tromey.com>
3846
3847 * eval.c (eval_op_add): New function.
3848 (evaluate_subexp_standard): Use it.
3849
b7a96ed2
TT
38502021-03-08 Tom Tromey <tom@tromey.com>
3851
3852 * eval.c (eval_op_member): New function.
3853 (evaluate_subexp_standard): Use it.
3854
fb461aa3
TT
38552021-03-08 Tom Tromey <tom@tromey.com>
3856
3857 * eval.c (eval_op_structop_ptr): New function.
3858 (evaluate_subexp_standard): Use it.
3859
3e96c4fc
TT
38602021-03-08 Tom Tromey <tom@tromey.com>
3861
3862 * eval.c (eval_op_structop_struct): New function.
3863 (evaluate_subexp_standard): Use it.
3864
f960a617
TT
38652021-03-08 Tom Tromey <tom@tromey.com>
3866
3867 * eval.c (eval_op_ternop): New function.
3868 (evaluate_subexp_standard): Use it.
3869
5c2f201e
TT
38702021-03-08 Tom Tromey <tom@tromey.com>
3871
3872 * eval.c (eval_op_concat): New function.
3873 (evaluate_subexp_standard): Use it.
3874
f871bae1
TT
38752021-03-08 Tom Tromey <tom@tromey.com>
3876
3877 * eval.c (eval_op_objc_selector): New function.
3878 (evaluate_subexp_standard): Use it.
3879
14a1c64a
TT
38802021-03-08 Tom Tromey <tom@tromey.com>
3881
3882 * eval.c (eval_op_string): New function.
3883 (evaluate_subexp_standard): Use it.
3884
ffff730b
TT
38852021-03-08 Tom Tromey <tom@tromey.com>
3886
3887 * eval.c (eval_op_register): New function.
3888 (evaluate_subexp_standard): Use it.
3889
9b1d8af6
TT
38902021-03-08 Tom Tromey <tom@tromey.com>
3891
3892 * eval.c (eval_op_func_static_var): New function.
3893 (evaluate_subexp_standard): Use it.
3894
c0df9289
TT
38952021-03-08 Tom Tromey <tom@tromey.com>
3896
3897 * eval.c (eval_op_var_msym_value): New function.
3898 (evaluate_subexp_standard): Use it.
3899
50b98adc
TT
39002021-03-08 Tom Tromey <tom@tromey.com>
3901
3902 * eval.c (eval_op_var_entry_value): New function.
3903 (evaluate_subexp_standard): Use it.
3904
ea2d29f7
TT
39052021-03-08 Tom Tromey <tom@tromey.com>
3906
3907 * eval.c (eval_op_scope): New function.
3908 (evaluate_subexp_standard): Use it.
3909
01573d73
TT
39102021-03-06 Chernov Sergey <klen_s@mail.ru>
3911
3912 PR gdb/27528:
3913 * ada-lang.c (ada_fold_name): Use gdb::to_string.
3914
9938d15a
TT
39152021-03-06 Tom Tromey <tom@tromey.com>
3916
3917 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
3918 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
3919 * dwarf2/read.c (dwarf2_elf_names): No longer static.
3920 (locate_dwz_sections, dwz_search_other_debugdirs)
3921 (dwarf2_get_dwz_file): Move to dwz.c.
3922 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
3923 read.h.
3924 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
3925 (dwarf2_get_dwz_file): Move from read.c.
3926
18035655
TT
39272021-03-06 Tom Tromey <tom@tromey.com>
3928
3929 * debuginfod-support.h: Include scoped_fd.h.
3930
a7308ce0
TT
39312021-03-06 Tom Tromey <tom@tromey.com>
3932
3933 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
3934 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
3935 (get_abbrev_section_for_cu, read_attribute_value)
3936 (get_debug_line_section): Update.
3937 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3938
fbedd546
TT
39392021-03-06 Tom Tromey <tom@tromey.com>
3940
3941 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
3942 method.
3943 * dwarf2/read.c (section_is_p): Remove.
3944 (dwarf2_per_bfd::locate_sections)
3945 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
3946 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
3947 (dwarf2_locate_common_dwp_sections)
3948 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
3949 Update.
3950
c2a62a3d
TT
39512021-03-06 Tom Tromey <tom@tromey.com>
3952
3953 * xcoffread.c: Include sect-names.h.
3954 * symfile.h (struct dwarf2_section_names, struct
3955 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
3956 * dwarf2/sect-names.h: New file, from symfile.h.
3957 * dwarf2/read.c: Include sect-names.h.
3958
4444f407
TT
39592021-03-06 Tom Tromey <tom@tromey.com>
3960
3961 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
3962 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
3963 (abbrev_table::read): Update.
3964 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
3965 (struct abbrev_info): Reformat.
3966 <attrs>: Now an array.
3967 (struct abbrev_table) <alloc_abbrev>: Remove.
3968
dd99cf0c
WP
39692021-03-06 Weimin Pan <weimin.pan@oracle.com>
3970
3971 * ctfread.c (ctf_psymtab_add_enums): New function.
3972 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
3973
844be3f2
WP
39742021-03-06 Weimin Pan <weimin.pan@oracle.com>
3975
3976 * ctfread.c (read_func_kind_type): Set up function arguments.
3977
b2668f28
AB
39782021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3979 Andrew Burgess <andrew.burgess@embecosm.com>
3980
3981 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
3982 includes.
3983 (riscv_csrset): New static global.
3984 (riscv_update_csrmap): New function.
3985 (riscv_iterate_over_regset_sections): Process CSRs.
3986
d782d24b
AB
39872021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3988
3989 * riscv-tdep.c (riscv_feature_name_csr): Define.
3990 (riscv_feature_name_cpu): Define.
3991 (riscv_feature_name_fpu): Define.
3992 (riscv_feature_name_virtual): Define.
3993 (riscv_xreg_feature): Use riscv_feature_name_cpu.
3994 (riscv_freg_feature): Use riscv_feature_name_fpu.
3995 (riscv_virtual_feature): Use riscv_feature_name_virtual.
3996 (riscv_csr_feature): Use riscv_feature_name_csr.
3997 * riscv-tdep.h (riscv_feature_name_csr): Declare.
3998
fb8f3fc0
AB
39992021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4000 Craig Blackmore <craig.blackmore@embecosm.com>
4001
4002 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4003 (ALLDEPFILES): Add riscv-none-tdep.c.
4004 * configure: Regenerate.
4005 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4006 support.
4007 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4008 * elf-none-tdep.c: New file.
4009 * elf-none-tdep.h: New file.
4010 * riscv-none-tdep.c: New file.
4011
95ce627a
AB
40122021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4013 Andrew Burgess <andrew.burgess@embecosm.com>
4014
4015 * corelow.c: Add 'xml-tdesc.h' include.
4016 (core_target::read_description): Load the target description from
4017 the core file when possible.
4018 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4019 note.
4020 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4021 (gcore_elf_make_tdesc_note): New function.
4022 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4023 * linux-tdep.c (linux_make_corefile_notes): Add target description
4024 note.
4025
f3a5df7b
AB
40262021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4027
4028 * Makefile.in (SFILES): Add gcore-elf.c.
4029 (HFILES_NO_SRCDIR): Add gcore-elf.h
4030 * configure: Regenerate.
4031 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4032 support.
4033 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4034 (struct fbsd_collect_regset_section_cb_data): Delete.
4035 (fbsd_collect_regset_section_cb): Delete.
4036 (fbsd_collect_thread_registers): Delete.
4037 (struct fbsd_corefile_thread_data): Delete.
4038 (fbsd_corefile_thread): Delete.
4039 (fbsd_make_corefile_notes): Call
4040 gcore_elf_build_thread_register_notes instead of the now deleted
4041 FreeBSD code.
4042 * gcore-elf.c: New file, the content was moved here from
4043 linux-tdep.c, functions were renamed and given minor cleanup.
4044 * gcore-elf.h: New file.
4045 * gcore.c (gcore_find_signalled_thread): Moved here from
4046 linux-tdep.c and given a new name. Minor cleanups.
4047 * gcore.h (gcore_find_signalled_thread): Declare.
4048 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4049 (struct linux_collect_regset_section_cb_data): Delete.
4050 (linux_collect_regset_section_cb): Delete.
4051 (linux_collect_thread_registers): Delete.
4052 (linux_corefile_thread): Call
4053 gcore_elf_build_thread_register_notes.
4054 (find_signalled_thread): Delete.
4055 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4056
d1e93af6
SM
40572021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4058
4059 PR gdb/27147
4060 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4061 process_stratum_target parameter,
4062 sparc_store_inferior_registers): update callers.
4063 * sparc-nat.c (sparc_fetch_inferior_registers,
4064 sparc_store_inferior_registers): Add process_stratum_target
4065 parameter. Switch current thread before calling
4066 sparc_supply_gregset / sparc_collect_rwindow.
4067 (sparc_store_inferior_registers): Likewise.
4068 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4069 (sparc32obsd_collect_uthread): Likewise.
4070 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4071 Add assertion.
4072 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4073 sparc64obsd_supply_uthread): Add assertion.
4074
1178743e
TT
40752021-03-04 Tom Tromey <tromey@adacore.com>
4076
4077 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4078 (aux_add_nonlocal_symbols): Update.
4079 (ada_add_block_symbols): Change "found_sym" to bool.
4080
1bfa81ac
TT
40812021-03-03 Tom Tromey <tromey@adacore.com>
4082
4083 * ada-lang.c (ada_resolve_function): Update comment.
4084 (is_nonfunction, add_symbols_from_enclosing_procs)
4085 (remove_extra_symbols): Likewise.
4086 (struct match_data): Add constructor, initializers.
4087 (add_nonlocal_symbols): Remove memset.
4088 (aux_add_nonlocal_symbols): Update comment.
4089 (ada_add_block_renamings, add_nonlocal_symbols)
4090 (ada_add_all_symbols): Likewise.
4091 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4092
bbcdf9ab
TT
40932021-03-02 Tom Tromey <tromey@adacore.com>
4094
4095 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4096 (cast_to_gnat_encoded_fixed_point_type): Remove.
4097 (ada_value_cast, ada_evaluate_subexp): Update.
4098 (gnat_encoded_fixed_point_type_info)
4099 (ada_is_gnat_encoded_fixed_point_type)
4100 (gnat_encoded_fixed_point_delta)
4101 (gnat_encoded_fixed_point_scaling_factor): Remove.
4102 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4103 (gnat_encoded_fixed_point_delta)
4104 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4105 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4106 (ada_print_type): Update.
4107 * ada-valprint.c (ada_value_print_num): Update.
4108 * dwarf2/read.c (ada_get_gnat_encoded_number)
4109 (ada_get_gnat_encoded_ratio): New functions.
4110 (finish_fixed_point_type): Use them. Add parameters.
4111 (GNAT_FIXED_POINT_SUFFIX): New define.
4112 (gnat_encoded_fixed_point_type_info): New function.
4113 (read_base_type): Handle gnat encodings.
4114
5f9febe0
TT
41152021-03-02 Tom Tromey <tromey@adacore.com>
4116
4117 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4118 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4119 std::string.
4120 (GROW_VECT): Remove.
4121 (grow_vect): Remove.
4122
d1183b06
TT
41232021-03-02 Tom Tromey <tromey@adacore.com>
4124
4125 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4126 * ada-lang.c (resolve_subexp): Update.
4127 (ada_resolve_function): Accept a vector.
4128 (is_nonfunction, add_defn_to_vec)
4129 (add_symbols_from_enclosing_procs): Likewise.
4130 (num_defns_collected, defns_collected): Remove.
4131 (remove_extra_symbols): Return a vector.
4132 (remove_irrelevant_renamings): Return void.
4133 (ada_add_local_symbols): Accept a vector.
4134 (struct match_data) <obstackp>: Remove.
4135 <resultp>: New member.
4136 (aux_add_nonlocal_symbols): Update.
4137 (ada_add_block_renamings, add_nonlocal_symbols)
4138 (ada_add_all_symbols): Accept a vector.
4139 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4140 vector.
4141 (ada_lookup_symbol): Update.
4142 (ada_add_block_symbols): Accept a vector.
4143 (get_var_value, iterate_over_symbols): Update.
4144 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4145 Update.
4146
886d459f
TT
41472021-03-02 Tom Tromey <tromey@adacore.com>
4148
4149 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4150
bdcccc56
TT
41512021-03-02 Tom Tromey <tromey@adacore.com>
4152
4153 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4154 auto_obstack.
4155 <root>: Initialize.
4156 (ada_pspace_data): Remove destructor.
4157 <sym_cache>: Now a unique_ptr.
4158 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4159 (ada_get_symbol_cache): Use 'new'.
4160 (ada_clear_symbol_cache): Rewrite.
4161
1228719f
TT
41622021-03-02 Tom Tromey <tromey@adacore.com>
4163
4164 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4165 is null.
4166
bb3a4efe
LS
41672021-02-27 Lancelot Six <lsix@lancelotsix.com>
4168
4169 PR gdb/27393
4170 * source.c (add_path): Skip empty dirnames.
4171
26b43ca6 41722021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
4173
4174 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4175 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4176
dffdd8b5
SM
41772021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4178
4179 PR gdb/26861
4180 * target.c (target_mourn_inferior): Only compare pids in
4181 target_mourn_inferior.
4182
64d38fdd
JM
41832021-02-25 Jan Matyas <jmatyas@codasip.com>
4184
4185 PR gdb/26819
4186 * remote.c (remote_target::start_remote): Ensure the single
4187 thread, automatically added for remote targets without the
4188 concept of threading, is initially in set to the "resumed"
4189 state.
4190 * remote.c (remote_target::add_current_inferior_and_thread):
4191 Add return value - return the main thread.
4192
2450ad54
JV
41932021-02-25 Jan Vrany <jan.vrany@labware.com>
4194
4195 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4196 (mi_tsv_created): Likewise.
4197 (mi_tsv_deleted): Likewise.
4198
30c80d88
TV
41992021-02-25 Tom de Vries <tdevries@suse.de>
4200
4201 PR symtab/27354
4202 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4203 section_kind for &dwo_file->sections.info.
4204
68337b8b
AB
42052021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4206
4207 PR fortran/26155
4208 * f-lang.c (fortran_argument_convert): Delete declaration.
4209 (fortran_prepare_argument): New function.
4210 (evaluate_subexp_f): Move logic to new function
4211 fortran_prepare_argument.
4212
faeb9f13
AB
42132021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4214
4215 * f-exp.y (f77_keywords): Add 'associated'.
4216 * f-lang.c (fortran_associated): New function.
4217 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4218 (operator_length_f): Likewise.
4219 (print_unop_or_binop_subexp_f): New function.
4220 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4221 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4222 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4223 (operator_check_f): Likewise.
4224 * std-operator.def: Add FORTRAN_ASSOCIATED.
4225
170f4b23
AB
42262021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4227
4228 * f-exp.y (fortran_operators): Add ".xor.".
4229
aa659cfa
TV
42302021-02-24 Tom de Vries <tdevries@suse.de>
4231
4232 PR symtab/27336
4233 * dwarf2/attribute.c (attribute::form_is_signed): New function
4234 factored out of ...
4235 * dwarf2/attribute.h (attribute::as_signed): ... here.
4236 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4237 (attribute::form_is_signed): Declare.
4238 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4239 for DW_AT_decl_file.
4240
268c77c1
KB
42412021-02-24 Kevin Buettner <kevinb@redhat.com>
4242
4243 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4244 order for <sys/ptrace.h> and <asm/ptrace.h>.
4245
665af52e
KB
42462021-02-24 Kevin Buettner <kevinb@redhat.com>
4247
4248 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4249 <sys/ptrace.h>.
4250
dd80d750
AB
42512021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4252
4253 * exec.c (set_section_command): Move variable declarations into
4254 the function body, and use std::string instead of a fixed size
4255 buffer.
4256
336aa7b7
AB
42572021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4258
4259 * exec.c (exec_target::get_section_table): Delete member function.
4260 (section_table_read_available_memory): Use current_top_target, not
4261 just the exec_ops target.
4262 * target-delegates.c: Regenerate.
4263 * target.c (default_get_section_table): New function.
4264 * target.h (target_ops::get_section_table): Change default
4265 behaviour to call default_get_section_table.
4266 (default_get_section_table): Declare.
4267
02f7d26b
AB
42682021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4269
4270 * exec.c (exec_target::close): Call new clear_target_sections
4271 function.
4272 (program_space::add_target_sections): Update name of member
4273 variable.
4274 (program_space::add_target_sections): Update name of member
4275 variable.
4276 (program_space::remove_target_sections): Likewise.
4277 (exec_one_fork): Use new target_sections member function.
4278 (exec_target::get_section_table): Likewise.
4279 (exec_target::files_info): Likewise.
4280 (set_section_command): Likewise.
4281 (exec_set_section_address): Likewise.
4282 (exec_target::has_memory): Use new target_sections member
4283 function.
4284 * progspace.h (program_space::clear_target_sections): New member
4285 function.
4286 (program_space::target_sections): Rename member variable to
4287 m_target_sections, replace with a new member function.
4288 (program_space::m_target_sections): New member variable.
4289 * solib-dsbt.c (scan_dyntag): Use new member function.
4290 * solib-svr4.c (scan_dyntag): Likewise.
4291
19cf757a
AB
42922021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4293
4294 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4295 return type const.
4296 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4297 (section_table_read_available_memory): Make local const.
4298 (exec_target::xfer_partial): Make local const.
4299 (print_section_info): Make parameter const.
4300 * gdb/exec.h (print_section_info): Likewise.
4301 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4302 const.
4303 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4304 Likewise.
4305 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4306 Likewise.
4307 * gdb/s390-tdep.c (s390_load): Likewise.
4308 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4309 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4310 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4311 Rename to...
4312 (target_debug_print_const_target_section_table_p): ...this.
4313 * gdb/target-delegates.c: Regenerate.
4314 * gdb/target.c (target_get_section_table): Make return type const.
4315 (target_section_by_addr): Likewise. Also make some locals const.
4316 (memory_xfer_partial_1): Make some locals const.
4317 * gdb/target.h (struct target_ops) <get_section_table>: Make
4318 return type const.
4319 (target_section_by_addr): Likewise.
4320 (target_get_section_table): Likewise.
4321
02a79309
AB
43222021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4323
4324 * NEWS: Mention new 'maint info target-sections' command.
4325 * maint.c (maintenance_info_target_sections): New function.
4326 (_initialize_maint_cmds): Register new command.
4327
895b7b4e
AB
43282021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4329
4330 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
4331 (riscv_features_from_bfd): ...this. Change parameter type to
4332 'bfd*', and update as required.
4333 (riscv_find_default_target_description): Update call to
4334 riscv_features_from_bfd. Select a default xlen based on
4335 info.bfd_arch_info.
4336 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
4337
bc3c0632
AB
43382021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4339
4340 * eval.c (evaluate_subexp_standard): Call value_ind for points to
4341 dynamic types in UNOP_IND.
4342
08ac5771
SM
43432021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4344
4345 PR gdb/26828
4346 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
4347 Instantiate queue.
4348 (~dwarf2_queue_guard): Clear queue.
4349 (queue_comp_unit): Assert that queue is
4350 instantiated.
4351 (process_queue): Adjust.
4352 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
4353
616c069a
SM
43542021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4355
4356 PR gdb/26828
4357 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
4358 to decide whether or not to enqueue it for expansion.
4359 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
4360 after calling maybe_queue_comp_unit.
4361
897608ed
SM
43622021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4363
4364 * linux-nat.c (linux_nat_filter_event): Return void.
4365
15908a11
TT
43662021-02-22 Tom Tromey <tromey@adacore.com>
4367
4368 * solib-svr4.c (enable_break): Update.
4369 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
4370 type.
4371 (target_bfd_reopen): Change parameter type.
4372 * bfd-target.h (target_bfd_reopen): Change parameter type.
4373
f53fc427
SM
43742021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4375
4376 * thread.c (add_thread_silent): Add assert.
4377 (find_thread_ptid): Add assert.
4378
de146e19
SM
43792021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4380
4381 PR gdb/27435
4382 * inf-ptrace.c (struct target_unpusher): Move to target.h.
4383 (target_unpush_up): Likewise.
4384 * procfs.c (procfs_target::attach): Push target early. Use
4385 target_unpush_up to unpush target in case of error.
4386 * target.h (struct target_unpusher): Move here.
4387 (target_unpush_up): Likewise.
4388
8488c357
KB
43892021-02-19 Kevin Buettner <kevinb@redhat.com>
4390
4391 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
4392 (which in turn includes <gnulib/config.h>) before include
4393 of <signal.h>.
4394
5a9f5403
NC
43952021-02-19 Nelson Chu <nelson.chu@sifive.com>
4396
4397 PR 27158
4398 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
4399 (decode_j_type_insn): Likewise.
4400 (decode_cj_type_insn): Likewise.
4401 (decode_b_type_insn): Likewise.
4402 (decode): Likewise.
4403
26f53cd3
TT
44042021-02-18 Tom Tromey <tom@tromey.com>
4405
4406 * expression.h (struct expression) <evaluate>: Declare method.
4407 * eval.c (evaluate_subexp): Simplify.
4408 (expression::evaluate): New method.
4409 (evaluate_expression, evaluate_type): Use expression::evaluate.
4410
6a780b67
KB
44112021-02-17 Kevin Buettner <kevinb@redhat.com>
4412
4413 * ada-lang.c (ada_fold_name): Check for non-empty string prior
4414 to accessing it.
4415 (ada_lookup_name_info): Likewise.
4416
adeab0c5
MF
44172021-02-13 Mike Frysinger <vapier@gentoo.org>
4418
4419 * aclocal.m4: Regenerate.
4420
089436f7
TV
44212021-02-12 Tom de Vries <tdevries@suse.de>
4422
4423 PR threads/26228
4424 * linux-nat.c (lin_thread_get_thread_signals): Remove.
4425 (lin_thread_signals): New static var.
4426 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4427 New function.
4428 * linux-nat.h (lin_thread_get_thread_signals): Remove.
4429 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4430 Declare.
4431 * linux-thread-db.c (check_thread_signals): Use
4432 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
4433
96df3e28
AB
44342021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4435
4436 * f-exp.y (f77_keywords): Add allocated.
4437 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
4438 (operator_length_f): Likewise.
4439 (print_subexp_f): Likewise.
4440 (dump_subexp_body_f): Likewise.
4441 (operator_check_f): Likewise.
4442 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
4443
05f68f52
TV
44442021-02-11 Tom de Vries <tdevries@suse.de>
4445
4446 PR symtab/27353
4447 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
4448 Return true for DW_FORM_strx.
4449
b260f8d6
TT
44502021-02-11 Tom Tromey <tromey@adacore.com>
4451
4452 PR gdb/27383:
4453 * parse.c (write_exp_symbol_reference): Write sym.block.
4454
bf3386f0
AB
44552021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4456
4457 * NEWS: Mention changes to 'maint info sections'.
4458 * maint.c (match_substring): Return a bool, fix whitespace issue.
4459 (struct single_bfd_flag_info): New struct.
4460 (bfd_flag_info): New static global.
4461 (match_bfd_flags): Return a bool, use bfd_flag_info.
4462 (print_bfd_flags): Use bfd_flag_info.
4463 (maint_print_section_info): Delete trailing whitespace.
4464 (struct maint_info_sections_opts): New struct.
4465 (maint_info_sections_option_defs): New static global.
4466 (maint_info_sections_completer): New function.
4467 (maintenance_info_sections): Use option parsing mechanism.
4468 (_initialize_maint_cmds): Update command help text for 'maint info
4469 sections' and register a command completer.
4470
4790db14
AB
44712021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4472
4473 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
4474 functionality merged into...
4475 (maint_print_all_sections): ...this new function.
4476 (maintenance_info_sections): Make use of maint_print_all_sections,
4477 allow all objects to be printed even where there's no executable.
4478
1db66e34
AB
44792021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4480
4481 * breakpoint.c (resolve_sal_pc): Make use of
4482 bound_minimal_symbol::obj_section.
4483 * maint.c (maintenance_translate_address): Likewise.
4484 * minsyms.c (minimal_symbol_upper_bound): Likewise.
4485 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
4486 member function.
4487 * printcmd.c (info_address_command): Make use of
4488 bound_minimal_symbol::obj_section.
4489
18b8df43
AM
44902021-02-11 Alan Modra <amodra@gmail.com>
4491
4492 * arm-symbian-tdep.c: Delete.
4493 * NEWS: Mention arm-symbian removal.
4494 * Makefile.in: Remove arm-symbian-tdep entries.
4495 * configure.tgt: Remove arm*-*-symbianelf*.
4496 * doc/gdb.texinfo: Remove mention of SymbianOS.
4497 * osabi.c (gdb_osabi_names): Remove "Symbian".
4498 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
4499 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
4500 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
4501 handling.
4502 * testsuite/gdb.base/dup-sect.exp: Likewise.
4503 * testsuite/gdb.base/long_long.exp: Likewise.
4504 * testsuite/gdb.base/solib-weak.exp: Likewise.
4505 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
4506 * testsuite/gdb.python/py-section-script.exp: Likewise.
4507 * testsuite/lib/dwarf.exp: Likewise.
4508 * testsuite/lib/gdb.exp: Likewise.
4509
e92c8eb8
AB
45102021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4511
4512 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
4513 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
4514 (one_or_two_args): New pattern.
4515 (f77_keywords): Add lbound and ubound.
4516 * f-lang.c (fortran_bounds_all_dims): New function.
4517 (fortran_bounds_for_dimension): New function.
4518 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
4519 (operator_length_f): Likewise.
4520 (print_subexp_f): Likewise.
4521 (dump_subexp_body_f): Likewise.
4522 (operator_check_f): Likewise.
4523 * std-operator.def (FORTRAN_LBOUND): Define.
4524 (FORTRAN_UBOUND): Define.
4525
a52d653e
AB
45262021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4527
4528 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
4529 and set_section_index member functions where appropriate.
4530 * coffread.c (coff_symtab_read): Likewise.
4531 (process_coff_symbol): Likewise.
4532 * ctfread.c (set_symbol_address): Likewise.
4533 * dwarf2/read.c (add_partial_symbol): Likewise.
4534 (var_decode_location): Likewise.
4535 * language.c: Likewise.
4536 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
4537 (compact_minimal_symbols): Likewise.
4538 (minimal_symbol_upper_bound): Likewise.
4539 * objfiles.c (relocate_one_symbol): Likewise.
4540 * psympriv.h (partial_symbol::obj_section): Likewise.
4541 (partial_symbol::address): Likewise.
4542 * psymtab.c (partial_symtab::add_psymbol): Likewise.
4543 * stabsread.c (scan_file_globals): Likewise.
4544 * symmisc.c (dump_msymbols): Likewise.
4545 * symtab.c (general_symbol_info::obj_section): Likewise.
4546 (fixup_section): Likewise.
4547 (get_msymbol_address): Likewise.
4548 * symtab.h (general_symbol_info::section): Rename to...
4549 (general_symbol_info::m_section): ...this.
4550 (general_symbol_info::set_section_index): New member function.
4551 (general_symbol_info::section_index): Likewise.
4552 (SYMBOL_SECTION): Delete.
4553 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
4554 set_section_index member functions where appropriate.
4555 (MSYMBOL_SECTION): Delete.
4556 (symbol::symbol): Update to initialize 'm_section'.
4557 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
4558 (process_xcoff_symbol): Likewise.
4559
ebbc3a7d
AB
45602021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4561
4562 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
4563 MSYMBOL_OBJ_SECTION.
4564 * findvar.c (language_defn::read_var_value): Likewise.
4565 * infcmd.c (jump_command): Likewise.
4566 * linespec.c (minsym_found): Likewise.
4567 * maint.c (maintenance_translate_address): Likewise.
4568 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
4569 (minimal_symbol_upper_bound): Likewise.
4570 * parse.c (find_minsym_type_and_address): Likewise.
4571 (operator_check_standard): Likewise.
4572 * printcmd.c (info_address_command): Likewise.
4573 * symmisc.c (dump_msymbols): Likewise.
4574 (print_symbol): Likewise.
4575 * symtab.c (general_symbol_info::obj_section): Define new
4576 function.
4577 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
4578 (find_pc_sect_compunit_symtab): Likewise.
4579 (find_function_start_sal): Likewise.
4580 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
4581 MSYMBOL_OBJ_SECTION.
4582 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
4583 function.
4584 (SYMBOL_OBJ_SECTION): Delete.
4585 (MSYMBOL_OBJ_SECTION): Delete.
4586
9bb305b3
TT
45872021-02-09 Tom Tromey <tom@tromey.com>
4588
4589 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
4590
cf2b2075
TV
45912021-02-09 Tom de Vries <tdevries@suse.de>
4592
4593 PR symtab/27341
4594 * dwarf2/read.c (read_array_type): Return NULL when not being able to
4595 construct an array type. Add assert to ensure that element_type is
4596 not being modified.
4597
03642b71
AB
45982021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4599
4600 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
4601 (gcore_collect_regset_section_cb): Delete.
4602 (gcore_collect_thread_registers): Delete.
4603 (gcore_build_thread_register_notes): Delete.
4604 (gcore_find_signalled_thread): Delete.
4605 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
4606 'gdbarch' and 'thread_info' declarations.
4607 (gcore_build_thread_register_notes): Delete declaration.
4608 (gcore_find_signalled_thread): Likewise.
4609 * fbsd-tdep.c: Remove 'gcore.h' include.
4610 (struct fbsd_collect_regset_section_cb_data): New struct.
4611 (fbsd_collect_regset_section_cb): New function.
4612 (fbsd_collect_thread_registers): New function.
4613 (struct fbsd_corefile_thread_data): New struct.
4614 (fbsd_corefile_thread): New function.
4615 (fbsd_make_corefile_notes): Call FreeBSD specific code.
4616 * linux-tdep.c: Remove 'gcore.h' include.
4617 (struct linux_collect_regset_section_cb_data): New struct.
4618 (linux_collect_regset_section_cb): New function.
4619 (linux_collect_thread_registers): New function.
4620 (linux_corefile_thread): Call Linux specific code.
4621 (find_signalled_thread): New function.
4622 (linux_make_corefile_notes): Call find_signalled_thread.
4623
f73e424f
TT
46242021-02-09 Tom Tromey <tromey@adacore.com>
4625
4626 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
4627 not_lval value.
4628 * value.c (value_contents_copy_raw): Now static.
4629 * value.h (value_contents_copy_raw): Don't declare.
4630
a4f0544b
TT
46312021-02-09 Tom Tromey <tromey@adacore.com>
4632
4633 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
4634 fields.
4635
9b3e4b5d
SV
46362021-02-08 Shahab Vahedi <shahab@synopsys.com>
4637
4638 PR tdep/27369
4639 * arc-linux-tdep.c (handle_atomic_sequence): New.
4640 (arc_linux_software_single_step): Call handle_atomic_sequence().
4641
29db1eb3
AB
46422021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4643
4644 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
4645 function.
4646 (REQUIRE_WINDOW): Call is_valid member function.
4647 (REQUIRE_WINDOW_FOR_SETTER): New define.
4648 (gdbpy_tui_is_valid): Call is_valid member function.
4649 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
4650 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
4651 tui_active too.
4652 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
4653 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
4654 the function.
4655
e0c23e11
AB
46562021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4657
4658 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
4659 for the title is not nullptr.
4660
1cf23996
AB
46612021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4662
4663 * tui-layout.c (saved_tui_windows): Delete.
4664 (tui_apply_current_layout): Don't make use of saved_tui_windows,
4665 call new get_windows member function instead.
4666 (tui_get_window_by_name): Check in tui_windows.
4667 (tui_layout_window::apply): Don't add to tui_windows.
4668 * tui-layout.h (tui_layout_base::get_windows): New member function.
4669 (tui_layout_window::get_windows): Likewise.
4670 (tui_layout_split::get_windows): Likewise.
4671
a53a2657
AB
46722021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4673
4674 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
4675 of the window objects.
4676
2708dbbd
AB
46772021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4678
4679 * python/python.c (gdbpy_print_stack): Reformat an error message.
4680
cd074e04
AB
46812021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4682
4683 * tui/tui-interp.c (tui_command_line_handler): New function.
4684 (tui_interp::resume): Register tui_command_line_handler as the
4685 input_handler.
4686 * tui/tui-io.c (tui_inject_newline_into_command_window): New
4687 function.
4688 (tui_getc_1): Delete handling of '\n' and '\r'.
4689 * tui-io.h (tui_inject_newline_into_command_window): Declare.
4690
4cf28e91
HD
46912021-02-07 Hannes Domani <ssbssa@yahoo.de>
4692
4693 * tui/tui-regs.c (tui_data_window::display_registers_from):
4694 Mark invisible register sub windows.
4695 (tui_data_window::check_register_values): Ignore invisible
4696 register sub windows.
4697
3537bc23
HD
46982021-02-07 Hannes Domani <ssbssa@yahoo.de>
4699
4700 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
4701 n_spaces with a negative value.
4702
5fc2d6aa
HD
47032021-02-07 Hannes Domani <ssbssa@yahoo.de>
4704
4705 * tui/tui-regs.c (tui_data_window::display_registers_from):
4706 Add refresh_window call.
4707
83962f83
HD
47082021-02-07 Hannes Domani <ssbssa@yahoo.de>
4709
4710 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
4711
0110ec82
SM
47122021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
4713
4714 * symmisc.c (std_in, std_out, std_err): Remove.
4715 (_initialize_symmisc): Don't set std_in, std_out and std_err.
4716
7c6944ab
TV
47172021-02-05 Tom de Vries <tdevries@suse.de>
4718
4719 PR breakpoints/27330
4720 * breakpoint.c (create_exception_master_breakpoint): Handle case that
4721 glibc object file has debug info.
4722
e77b0004
TV
47232021-02-05 Tom de Vries <tdevries@suse.de>
4724
4725 PR symtab/27333
4726 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
4727
0e857c82
TV
47282021-02-05 Tom de Vries <tdevries@suse.de>
4729
4730 PR breakpoints/27313
4731 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
4732 syscall numbers.
4733
bdfea17e
TT
47342021-02-05 Tom Tromey <tom@tromey.com>
4735
4736 * compile/compile-c-support.c (get_compile_context)
4737 (c_get_compile_context, cplus_get_compile_context): Change return
4738 type.
4739 * language.c (language_defn::get_compile_instance): New method.
4740 * language.h (language_defn::get_compile_instance): Change return
4741 type. No longer inline.
4742 * c-lang.c (c_language::get_compile_instance): Change return type.
4743 (cplus_language::get_compile_instance): Change return type.
4744 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
4745 Change return type.
4746 * compile/compile.c (compile_to_object): Update.
4747
1b30f421
TT
47482021-02-05 Tom Tromey <tom@tromey.com>
4749
4750 * parser-defs.h (write_exp_symbol_reference): Declare.
4751 * parse.c (write_exp_symbol_reference): New function.
4752 * p-exp.y (variable): Use write_exp_symbol_reference.
4753 * m2-exp.y (variable): Use write_exp_symbol_reference.
4754 * f-exp.y (variable): Use write_exp_symbol_reference.
4755 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
4756 * c-exp.y (variable): Use write_exp_symbol_reference.
4757
ae710496
TV
47582021-02-05 Tom de Vries <tdevries@suse.de>
4759
4760 PR exp/27265
4761 * valarith.c (complex_binop): Throw an error if complex type can't
4762 be created.
4763
d3b54e63
TV
47642021-02-05 Tom de Vries <tdevries@suse.de>
4765
4766 PR symtab/27307
4767 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
4768 return.
4769
fc9a13fb
TV
47702021-02-05 Tom de Vries <tdevries@suse.de>
4771
4772 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
4773
04b4939b
MF
47742021-02-04 Mike Frysinger <vapier@gentoo.org>
4775
4776 * configure.tgt (riscv*-*-*): Set gdb_sim.
4777
6ff267e1
SM
47782021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
4779
4780 * target.c (target_is_non_stop_p): Return bool.
4781 * target.h (target_is_non_stop_p): Return bool.
4782
fdbc5215
SM
47832021-02-04 Simon Marchi <simon.marchi@efficios.com>
4784
4785 * record-full.c (record_full_async_inferior_event_handler):
4786 Don't clear async event handler.
4787 (record_full_base_target::wait): Clear async event handler at
4788 beginning.
4789
85d3ad8e
SM
47902021-02-04 Simon Marchi <simon.marchi@efficios.com>
4791
4792 * record-btrace.c (record_btrace_handle_async_inferior_event):
4793 Don't clear async event handler.
4794 (record_btrace_target::wait): Clear async event handler at
4795 beginning.
4796
baa8575b
SM
47972021-02-04 Simon Marchi <simon.marchi@efficios.com>
4798
4799 * remote.c (remote_target::wait): Clear async event handler at
4800 beginning, mark if needed at the end.
4801 (remote_async_inferior_event_handler): Don't set or clear async
4802 event handler.
4803
6b36ddeb
SM
48042021-02-04 Simon Marchi <simon.marchi@efficios.com>
4805
4806 * async-event.h (async_event_handler_func): Add documentation.
4807 * async-event.c (check_async_event_handlers): Don't clear
4808 async_event_handler ready flag.
4809 * infrun.c (infrun_async_inferior_event_handler): Clear ready
4810 flag.
4811 * record-btrace.c (record_btrace_handle_async_inferior_event):
4812 Likewise.
4813 * record-full.c (record_full_async_inferior_event_handler):
4814 Likewise.
4815 * remote-notif.c (remote_async_get_pending_events_handler):
4816 Likewise.
4817 * remote.c (remote_async_inferior_event_handler): Likewise.
4818
72d383bb
SM
48192021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
4820
4821 * infrun.c (handle_inferior_event): Move stop_soon variable to
4822 inner scope.
4823
408f6686
PA
48242021-02-03 Pedro Alves <pedro@palves.net>
4825
4826 * infcmd.c (detach_command): Hold strong reference to target, and
4827 if all-stop on entry, restart threads on exit.
4828 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
4829 (restart_stepped_thread): ... this new function. Also handle
4830 trap_expected.
4831 (restart_after_all_stop_detach): New function.
4832 * infrun.h (restart_after_all_stop_detach): Declare.
4833
ac7d717c
PA
48342021-02-03 Pedro Alves <pedro@palves.net>
4835
4836 * infrun.c (struct step_over_info): Initialize fields.
4837 (prepare_for_detach): Handle ongoing in-line step over.
4838
e87f0fe8
PA
48392021-02-03 Pedro Alves <pedro@palves.net>
4840
4841 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
4842 here...
4843 * remote.c (remote_target::remote_detach_1): ... and here ...
4844 * target.c (target_detach): ... instead of here.
4845 * target.h (target_ops::detach): Add comment.
4846
8ff53139
PA
48472021-02-03 Pedro Alves <pedro@palves.net>
4848
4849 * infrun.c (struct wait_one_event): Move higher up.
4850 (prepare_for_detach): Abort in-progress displaced steps instead of
4851 letting them complete.
4852 (handle_one): If the inferior is detaching, don't add the thread
4853 back to the global step-over chain.
4854 (restart_threads): Don't restart threads if detaching.
4855 (handle_signal_stop): Remove inferior::detaching reference.
4856
91475068
PA
48572021-02-03 Pedro Alves <pedro@palves.net>
4858
4859 * infrun.c (prepare_for_detach): Don't release scoped_restore
4860 before returning.
4861
d758e62c
PA
48622021-02-03 Pedro Alves <pedro@palves.net>
4863
4864 * infrun.c (handle_one): New function, factored out from ...
4865 (stop_all_threads): ... here.
4866
b0083dd7
PA
48672021-02-03 Pedro Alves <pedro@palves.net>
4868
4869 * remote.c (remote_notif_stop_ack): Don't error out on
4870 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
4871 (remote_target::discard_pending_stop_replies): Don't delete
4872 in-flight notification; instead, clear its contents.
4873
621cc310
PA
48742021-02-03 Pedro Alves <pedro@palves.net>
4875
4876 * remote.c (extended_remote_target::attach): Set target async in
4877 the target-non-stop path too.
4878
2ab76a18
PA
48792021-02-03 Pedro Alves <pedro@palves.net>
4880
4881 PR gdb/27055
4882 * infrun.c (handle_signal_stop): Move main context_switch call
4883 earlier, before STOP_QUIETLY_NO_SIGSTOP.
4884
2e3773ff
LS
48852021-02-02 Lancelot SIX <lsix@lancelotsix.com>
4886
4887 * NEWS (Changed commands): Add entry for the behavior change of
4888 the inferior command.
4889 * inferior.c (inferior_command): When no argument is given to the
4890 inferior command, display info about the currently selected
4891 inferior.
4892
e57933dc
SM
48932021-02-02 Simon Marchi <simon.marchi@efficios.com>
4894
4895 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
4896 a sect_offset.
4897 (read_attribute_reprocess): Adjust.
4898
2b0c7f41
SM
48992021-02-02 Simon Marchi <simon.marchi@efficios.com>
4900
4901 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
4902 <gnu_ranges_base>: ... this...
4903 <rnglists_base>: ... and this.
4904 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
4905 <gnu_ranges_base>: ... this...
4906 <rnglists_base>: ... and this.
4907 (read_cutu_die_from_dwo): Adjust
4908 (dwarf2_get_pc_bounds): Adjust
4909 (dwarf2_record_block_ranges): Adjust.
4910 (read_full_die_1): Adjust
4911 (partial_die_info::read): Adjust.
4912 (read_rnglist_index): Adjust.
4913
a1c40103
SM
49142021-02-02 Simon Marchi <simon.marchi@efficios.com>
4915
4916 PR gdb/26813
4917 * dwarf2/read.c (read_loclists_rnglists_header): Add
4918 header_offset parameter and use it.
4919 (read_loclist_index): Read header of the current contribution,
4920 not the one at the beginning of the section.
4921 (read_rnglist_index): Likewise.
4922
b1829e1b
SM
49232021-02-02 Simon Marchi <simon.marchi@efficios.com>
4924
4925 PR gdb/26813
4926 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
4927 requires_reprocessing flag.
4928 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
4929 DW_FORM_loclistx.
4930 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
4931 and DW_FORM_loclistx.
4932 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
4933 instead of set_address for DW_FORM_loclistx and
4934 DW_FORM_rnglistx.
4935
0c800c6e
SM
49362021-02-02 Simon Marchi <simon.marchi@efficios.com>
4937
4938 * dwarf2/read.c (read_loclist_index): Remove bound check for
4939 start of offset.
4940 (read_rnglist_index): Likewise.
4941
05787bad
SM
49422021-02-02 Simon Marchi <simon.marchi@efficios.com>
4943
4944 * dwarf2/read.c (read_loclist_index): Add bound check for the end
4945 of the offset.
4946
5e4d9bbc
SM
49472021-02-02 Simon Marchi <simon.marchi@efficios.com>
4948
4949 * dwarf2/read.c (read_rnglist_index): Fix bound check.
4950
a0c1eeba
SM
49512021-02-02 Simon Marchi <simon.marchi@efficios.com>
4952
4953 * dwarf2/read.c (read_loclist_index): Change complaints into
4954 errors.
4955
2bd3e4b8
TV
49562021-02-02 Tom de Vries <tdevries@suse.de>
4957
4958 PR symtab/24620
4959 * dwarf2/index-write.c (write_one_signatured_type): Skip if
4960 psymtab == nullptr.
4961
82a1fd3a
AB
49622021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
4963
4964 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
4965 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
4966 here from linux-tdep.c and given a new name. Minor cleanups.
4967 (gcore_collect_regset_section_cb): Likewise.
4968 (gcore_collect_thread_registers): Likewise.
4969 (gcore_build_thread_register_notes): Likewise.
4970 (gcore_find_signalled_thread): Likewise.
4971 * gcore.h (gcore_build_thread_register_notes): Declare.
4972 (gcore_find_signalled_thread): Declare.
4973 * fbsd-tdep.c: Add 'gcore.h' include.
4974 (struct fbsd_collect_regset_section_cb_data): Delete.
4975 (fbsd_collect_regset_section_cb): Delete.
4976 (fbsd_collect_thread_registers): Delete.
4977 (struct fbsd_corefile_thread_data): Delete.
4978 (fbsd_corefile_thread): Delete.
4979 (fbsd_make_corefile_notes): Call
4980 gcore_build_thread_register_notes instead of the now deleted
4981 FreeBSD code.
4982 * linux-tdep.c: Add 'gcore.h' include.
4983 (struct linux_collect_regset_section_cb_data): Delete.
4984 (linux_collect_regset_section_cb): Delete.
4985 (linux_collect_thread_registers): Delete.
4986 (linux_corefile_thread): Call
4987 gcore_build_thread_register_notes.
4988 (find_signalled_thread): Delete.
4989 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4990
ebde6f2d
TV
49912021-01-29 Tom de Vries <tdevries@suse.de>
4992
4993 PR breakpoints/26063
4994 * infrun.c (process_event_stop_test): Reset
4995 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
4996 changed.
4997
0f93c3a2
AB
49982021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4999
5000 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5001 assert. Extend the header comment.
5002
f237f998
AB
50032021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5004
5005 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5006 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5007 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5008 (tui_locator_win_info_ptr): Delete declaration.
5009 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5010 (tui_disasm_window::set_contents): Fetch state from tui_location
5011 global.
5012 (tui_get_begin_asm_address): Likewise.
5013 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5014 for locator window.
5015 (get_locator_window): Delete.
5016 (initialize_known_windows): Treat locator window just like all the
5017 rest.
5018 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5019 (tui_source_window::set_contents): Fetch state from tui_location
5020 global.
5021 (tui_source_window::showing_source_p): Likewise.
5022 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5023 (_locator): Delete.
5024 (tui_locator_win_info_ptr): Delete.
5025 (tui_locator_window::make_status_line): Fetch state from
5026 tui_location global.
5027 (tui_locator_window::rerender): Remove check of 'handle',
5028 reindent function body.
5029 (tui_locator_window::set_locator_fullname): Delete.
5030 (tui_locator_window::set_locator_info): Delete.
5031 (tui_update_locator_fullname): Delete.
5032 (tui_show_frame_info): Likewise.
5033 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5034 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5035 tui/tui-location.h and renamed to
5036 tui_location_tracker::set_location.
5037 (tui_locator_window::set_locator_fullname): Moved to
5038 tui/tui-location.h and renamed to
5039 tui_location_tracker::set_fullname.
5040 (tui_locator_window::full_name): Delete.
5041 (tui_locator_window::proc_name): Delete.
5042 (tui_locator_window::line_no): Delete.
5043 (tui_locator_window::addr): Delete.
5044 (tui_locator_window::gdbarch): Delete.
5045 (tui_update_locator_fullname): Delete declaration.
5046 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5047 for locator window.
5048 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5049 (tui_display_main): Call function on tui_location directly.
5050 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5051 * tui/tui-location.c: New file.
5052 * tui/tui-location.h: New file.
5053
8ee511af
SM
50542021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5055
5056 * gdbtypes.h (get_type_arch): Rename to...
5057 (struct type) <arch>: ... this, update all users.
5058
6ac37371
SM
50592021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5060
5061 * gdbtypes.h (struct type) <arch>: Rename to...
5062 <arch_owner>: ... this, update all users.
5063 <objfile>: Rename to...
5064 <objfile_owner>: ... this, update all users.
5065
24cf6389
AB
50662021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5067
5068 * gdbcmd.h (execute_command_to_string): Update comment.
5069 * top.c (execute_command_to_string): Update header comment.
5070
2a7f6487
TV
50712021-01-28 Tom de Vries <tdevries@suse.de>
5072
5073 PR breakpoints/27205
5074 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5075 (create_longjmp_master_breakpoint_names): New function, factored out
5076 of ...
5077 (create_longjmp_master_breakpoint): ... here. Only try to install
5078 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5079 breakpoint in libc.so failed.
5080
59b59f08
LS
50812021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5082
5083 PR gdb/27133
5084 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5085 unique_ptr is released when the wrapped pointer is kept for later
5086 use.
5087
807f647c
MM
50882021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5089
5090 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5091 BLR and BR instructions.
5092 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5093 (enum aarch64_masks): New.
5094
4ef367bf
TT
50952021-01-26 Tom Tromey <tromey@adacore.com>
5096
5097 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5098 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5099 (windows_init_thread_list, windows_nat::handle_load_dll)
5100 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5101 (windows_nat_target::resume)
5102 (windows_nat_target::get_windows_debug_event)
5103 (windows_nat_target::interrupt, windows_xfer_memory)
5104 (windows_nat_target::close): Update.
5105 * nat/windows-nat.c (DEBUG_EVENTS): Use
5106 debug_prefixed_printf_cond.
5107 (matching_pending_stop, fetch_pending_stop)
5108 (continue_last_debug_event): Update.
5109
4cb1265b
MS
51102020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5111
5112 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5113 elfcore_write_file_note.
5114
d0cc52bd
SV
51152021-01-26 Shahab Vahedi <shahab@synopsys.com>
5116
5117 * arc-tdep.c (arc_add_reggroups): New function.
5118 (arc_gdbarch_init): Call arc_add_reggroups.
5119
ac3571d9 51202021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
5121
5122 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5123
9f6c202e
TV
51242021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5125 Simon Marchi <simon.marchi@polymtl.ca>
5126 Tom de Vries <tdevries@suse.de>
5127
5128 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5129 DW_AT_ranges.
5130
a625a8c9
TT
51312021-01-25 Tom Tromey <tromey@adacore.com>
5132
5133 * dwarf2/read.c (get_mpz): New function.
5134 (get_dwarf2_rational_constant): Use it.
5135
19184910
TT
51362021-01-25 Tom Tromey <tromey@adacore.com>
5137
5138 * ada-lang.c (resolve_subexp): Handle array context.
5139
b10bae18
TT
51402021-01-23 Tom Tromey <tom@tromey.com>
5141
5142 PR compile/25575
5143 * compile/compile-loc2c.c (note_register): New function.
5144 (pushf_register_address, pushf_register): Use it.
5145
3637a558
TT
51462021-01-23 Tom Tromey <tom@tromey.com>
5147
5148 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5149 Change type of "registers_used".
5150 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5151 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5152 (locexpr_generate_c_location, loclist_generate_c_location): Change
5153 type of "registers_used".
5154 * compile/compile.h (compile_dwarf_expr_to_c)
5155 (compile_dwarf_bounds_to_c): Update.
5156 * compile/compile-loc2c.c (pushf_register_address)
5157 (pushf_register, do_compile_dwarf_expr_to_c)
5158 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5159 of "registers_used".
5160 * compile/compile-c.h (generate_c_for_variable_locations):
5161 Update.
5162 * compile/compile-c-symbols.c (generate_vla_size)
5163 (generate_c_for_for_one_variable): Change type of
5164 "registers_used".
5165 (generate_c_for_variable_locations): Return std::vector.
5166 * compile/compile-c-support.c (generate_register_struct): Change
5167 type of "registers_used".
5168 (compute): Update.
5169
9f7f6cb8
TT
51702021-01-23 Tom Tromey <tom@tromey.com>
5171
5172 * compile/compile-internal.h (class compile_instance)
5173 <set_arguments>: Change return type.
5174 * compile/compile.c (compile_to_object): Remove call to reset.
5175 (compile_instance::set_arguments): Change return type.
5176
dd5ca05f
SM
51772021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5178
5179 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5180 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5181
d3ee35db
LS
51822021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5183
5184 * Makefile.in (SELFTESTS_SRCS): Add
5185 unittests/gdb_tilde_expand-selftests.c.
5186 * unittests/gdb_tilde_expand-selftests.c: New file.
5187
9d2d8a16
AB
51882021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5189
5190 PR cli/25956
5191 * NEWS: Mention new command.
5192 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5193 (version_style): Define.
5194 (cli_style_option::cli_style_option): Add intensity parameter, and
5195 use as appropriate.
5196 (_initialize_cli_style): Register version style set/show commands.
5197 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5198 (version_style): Declare.
5199 * top.c (print_gdb_version): Use version_stype, and styled_string
5200 to print the GDB version string.
5201
e7b43072
AB
52022021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5203
5204 * utils.c (emit_style_escape): Only emit an escape sequence if the
5205 requested style is different than the current applied style.
5206 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5207 current applied_style.
5208 (fputs_styled): Remove is_default check.
5209 (fputs_styled_unfiltered): Likewise.
5210 (vfprintf_styled_no_gdbfmt): Likewise.
5211
2189c312
SM
52122021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5213
5214 * remote.h (remote_debug_printf): New.
5215 (remote_debug_printf_nofunc): New.
5216 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5217 * remote.c: Use above macros throughout file.
5218
02349803
SM
52192021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5220
5221 * remote.h (remote_debug): Change to bool.
5222 * remote.c (remote_debug): Change to bool.
5223 (_initialize_remote): Adjust.
5224
cda09ec9
SM
52252021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5226
5227 * target.h (remote_debug): Move to...
5228 * remote.h (remote_debug): ... here.
5229 * top.c (remote_debug): Move to...
5230 * remote.c (remote_debug): ... here.
5231 * remote-sim.c: Include remote.h.
5232
baf2b57f
SM
52332021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5234
5235 * cli/cli-cmds.c (show_remote_debug): Remove.
5236 (show_remote_timeout): Remove.
5237 (_initialize_cli_cmds): Don't register commands.
5238 * remote.c (show_remote_debug): Move here.
5239 (show_remote_timeout): Move here.
5240 (_initialize_remote): Register commands.
5241
344e9841
SM
52422021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5243
5244 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5245 type::objfile method instead.
5246
30625020
SM
52472021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5248
5249 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5250 use the type::is_objfile_owned method.
5251
5b7d941b
SM
52522021-01-22 Simon Marchi <simon.marchi@efficios.com>
5253
5254 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5255 (TYPE_OWNER): Remove.
5256 (TYPE_OBJFILE): Adjust.
5257 (struct main_type) <flag_objfile_owned>: Rename to...
5258 <m_flag_objfile_owned>: ... this.
5259 <owner>: Rename to...
5260 <m_owner>: ... this.
5261 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5262 methods.
5263 (TYPE_ALLOC): Adjust.
5264 * gdbtypes.c (alloc_type): Adjust.
5265 (alloc_type_arch): Adjust.
5266 (alloc_type_copy): Adjust.
5267 (get_type_arch): Adjust.
5268 (smash_type): Adjust.
5269 (lookup_array_range_type): Adjust.
5270 (recursive_dump_type): Adjust.
5271 (copy_type_recursive): Adjust.
5272 * compile/compile-c-types.c (convert_func): Adjust.
5273 (convert_type_basic): Adjust.
5274 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5275 Adjust.
5276 * language.c
5277 (language_arch_info::type_and_symbol::alloc_type_symbol):
5278 Adjust.
5279
d5d24e12
LM
52802021-01-21 Luis Machado <luis.machado@linaro.org>
5281
5282 * coffread.c (enter_linenos): Passing string to complaint.
5283 * valops.c (value_assign): Make array view.
5284
a59902a7
SM
52852021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5286
5287 * auto-load.h (debug_auto_load): Move here.
5288 (auto_load_debug_printf): New.
5289 * auto-load.c: Use auto_load_debug_printf.
5290 (debug_auto_load): Move to header.
5291 * linux-thread-db.c (try_thread_db_load): Use
5292 auto_load_debug_printf.
5293 * main.c (captured_main_1): Likewise.
5294
d3abc0ce
SM
52952021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5296
5297 * f-valprint.c (f77_array_offset_tbl): Remove.
5298
1e15fcac
SM
52992021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5300
5301 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5302
439706e6
SM
53032021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5304
5305 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5306 of gdb_select.
5307
325d39e4
HD
53082021-01-21 Hannes Domani <ssbssa@yahoo.de>
5309
5310 PR python/19151
5311 * python/py-breakpoint.c (bppy_get_location): Handle
5312 bp_hardware_breakpoint.
5313 (bppy_init): Likewise.
5314 (gdbpy_breakpoint_created): Likewise.
5315
7cb6d92a
SM
53162021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5317
5318 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
5319
d4dd4fca
SM
53202021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5321
5322 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
5323 (_initialize_gdb_bfd): Adjust.
5324
de53369b
SM
53252021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5326
5327 PR gdb/26828
5328 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
5329
17e593e9
SM
53302021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5331
5332 * dwarf2/read.c (follow_die_offset): Add logging.
5333 (dwarf2_per_objfile::age_comp_units): Add logging.
5334
6bd434d6
SM
53352021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5336
5337 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
5338 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
5339 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
5340 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
5341 * arm-tdep.c (struct frame_unwind): Make static.
5342 * auto-load.c (auto_load_safe_path_vec): Make static.
5343 * csky-tdep.c (csky_stub_unwind): Make static.
5344 * gdbarch.c (gdbarch_data_registry): Make static.
5345 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
5346 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
5347 * i386-tdep.c (i386_frame_setup_skip_insns,
5348 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
5349 Make static.
5350 * infrun.c (observer_mode): Make static.
5351 * linux-nat.c (sigchld_action): Make static.
5352 * linux-thread-db.c (thread_db_list): Make static.
5353 * maint-test-options.c (maintenance_test_options_list):
5354 * mep-tdep.c (mep_csr_registers): Make static.
5355 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
5356 (stats): Make static.
5357 * nat/linux-osdata.c (struct osdata_type): Make static.
5358 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
5359 * progspace.c (last_program_space_num): Make static.
5360 * python/py-param.c (struct parm_constant): Remove struct type
5361 name.
5362 (parm_constants): Make static.
5363 * python/py-record-btrace.c (btpy_list_methods): Make static.
5364 * python/py-record.c (recpy_gap_type): Make static.
5365 * record.c (record_goto_cmdlist): Make static.
5366 * regcache.c (regcache_descr_handle): Make static.
5367 * registry.h (DEFINE_REGISTRY): Make definition static.
5368 * symmisc.c (std_in, std_out, std_err): Make static.
5369 * top.c (previous_saved_command_line): Make static.
5370 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
5371 static.
5372 * unittests/command-def-selftests.c (nr_duplicates,
5373 nr_invalid_prefixcmd, lists): Make static.
5374 * unittests/observable-selftests.c (test_notification): Make
5375 static.
5376 * unittests/optional/assignment/1.cc (counter): Make static.
5377 * unittests/optional/assignment/2.cc (counter): Make static.
5378 * unittests/optional/assignment/3.cc (counter): Make static.
5379 * unittests/optional/assignment/4.cc (counter): Make static.
5380 * unittests/optional/assignment/5.cc (counter): Make static.
5381 * unittests/optional/assignment/6.cc (counter): Make static.
5382
a6c11cbb
JS
53832021-01-20 Joel Sherrill <joel@rtems.org>
5384
5385 PR gdb/27219
5386 * remote.c (struct remote_thread_info) <resume_state>: Rename
5387 to...
5388 <get_resume_state>: ... this.
5389 (remote_target::resume): Adjust.
5390 (remote_target::commit_resume): Adjust.
5391 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
5392
6f52fdf4
SDJ
53932021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
5394 Tom Tromey <tom@tromey.com>
5395
5396 * stap-probe.c (stap_parse_single_operand): Handle '!'
5397 operator.
5398 (stap_parse_argument_conditionally): Likewise.
5399 Skip spaces after processing open-parenthesis sub-expression.
5400 (stap_parse_argument_1): Skip spaces after call to
5401 stap_parse_argument_conditionally.
5402 Handle case when right-side expression is a parenthesized
5403 sub-expression.
5404 Skip spaces after call to stap_parse_argument_1.
5405
1c3b85ad
LS
54062021-01-19 Lancelot SIX <lsix@lancelotsix.com>
5407
5408 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
5409
a9a87d35
LM
54102021-01-19 Luis Machado <luis.machado@linaro.org>
5411
5412 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
5413 memory and save data.
5414 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
5415 (trad_frame_set_unknown, trad_frame_set_value_bytes)
5416 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5417 (trad_frame_value_bytes_p): Remove.
5418 (trad_frame_reset_saved_regs): Adjust documentation.
5419 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
5420 constructor and reset the state of the registers.
5421 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5422 (trad_frame_value_bytes_p, trad_frame_set_value)
5423 (trad_frame_set_realreg, trad_frame_set_addr)
5424 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
5425 (trad_frame_set_reg_realreg): Update to call member function.
5426 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
5427 (trad_frame_get_prev_register): Likewise.
5428
5429 * aarch64-tdep.c (aarch64_analyze_prologue)
5430 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
5431 (aarch64_prologue_prev_register): Update to use member functions.
5432 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
5433 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
5434 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
5435 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
5436 (arm_make_epilogue_frame_cache): Likewise.
5437 * avr-tdep.c (avr_frame_unwind_cache)
5438 (avr_frame_prev_register): Likewise.
5439 * cris-tdep.c (cris_scan_prologue): Likewise.
5440 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
5441 * frv-tdep.c (frv_analyze_prologue): Likewise.
5442 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
5443 * lm32-tdep.c (lm32_frame_cache): Likewise.
5444 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5445 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5446 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
5447 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
5448 (reset_saved_regs): Adjust to set realreg.
5449 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
5450 call member functions.
5451 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
5452 * s390-tdep.c (s390_prologue_frame_unwind_cache)
5453 (s390_backchain_frame_unwind_cache): Likewise.
5454 * score-tdep.c (score7_analyze_prologue)
5455 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
5456 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5457 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5458 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5459 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5460 * tilegx-tdep.c (tilegx_analyze_prologue)
5461 (tilegx_frame_cache): Likewise.
5462 * v850-tdep.c (v850_frame_cache): Likewise.
5463 * vax-tdep.c (vax_frame_cache): Likewise.
5464
bdec2917
LM
54652021-01-19 Luis Machado <luis.machado@linaro.org>
5466
5467 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
5468 of buffer + length.
5469 (put_frame_register_bytes): Likewise.
5470 Adjust documentation.
5471 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
5472 (safe_frame_unwind_memory): Likewise.
5473 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
5474 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
5475 gdb::array_view.
5476 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
5477 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
5478 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
5479 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
5480 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
5481 * dwarf2/loc.c (rw_pieced_value): Likewise.
5482 * hppa-tdep.c (hppa_frame_cache): Likewise.
5483 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
5484 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
5485 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5486 (i386_linux_rt_sigtramp_start): Likewise.
5487 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
5488 * i386-tdep.c (i386_register_to_value): Likewise.
5489 * i387-tdep.c (i387_register_to_value): Likewise.
5490 * ia64-tdep.c (ia64_register_to_value): Likewise.
5491 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
5492 (m32r_linux_rt_sigtramp_start): Likewise.
5493 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
5494 * m68k-tdep.c (m68k_register_to_value): Likewise.
5495 * mips-tdep.c (mips_register_to_value)
5496 (mips_value_to_register): Likewise.
5497 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
5498 (ppcfbsd_sigtramp_frame_cache): Likewise.
5499 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
5500 (ppcobsd_sigtramp_frame_cache): Likewise.
5501 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
5502 (rs6000_register_to_value): Likewise.
5503 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5504 * tramp-frame.c (tramp_frame_start): Likewise.
5505 * valops.c (value_assign): Likewise.
5506
ccbe4c82
LM
55072021-01-19 Luis Machado <luis.machado@linaro.org>
5508
5509 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
5510 array_view.
5511 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
5512 instead of buffer and size.
5513 (trad_frame_set_reg_value_bytes): Likewise.
5514 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
5515 (trad_frame_set_value_bytes): Likewise.
5516
0e7620dc
MF
55172021-01-18 Mike Frysinger <vapier@gentoo.org>
5518
5519 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
5520
6a9ad81c
AB
55212021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
5522
5523 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
5524 (riscv_fbsd_gregset): Use riscv_supply_regset.
5525 (riscv_fbsd_fpregset): Likewise.
5526 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
5527 (riscv_linux_fregset): Likewise.
5528 * riscv-tdep.c (riscv_supply_regset): Define new function.
5529 * riscv-tdep.h (riscv_supply_regset): Declare new function.
5530
d3d7d1ba
TV
55312021-01-18 Tom de Vries <tdevries@suse.de>
5532
5533 PR tdep/27172
5534 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
5535 New macro.
5536 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
5537 for SEGV_BNDERR.
5538
aa2838cc
SM
55392021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5540
5541 * remote.c (class remote_target) <remote_hostio_send_command,
5542 remote_hostio_parse_result>: Constify parameter.
5543 (remote_hostio_parse_result): Likewise.
5544 (remote_target::remote_hostio_send_command): Adjust.
5545 (remote_target::remote_hostio_pread_vFile): Adjust.
5546 (remote_target::fileio_readlink): Adjust.
5547 (remote_target::fileio_fstat): Adjust.
5548
b5c8f22d
SM
55492021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5550
5551 * remote.c (remote_target::start_remote): Move wait_status to
5552 narrower scope.
5553
e3b2741b
SM
55542021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5555
5556 * remote.c (class remote_target):
5557 <add_current_inferior_and_thread>: Constify parameter.
5558 (stop_reply_extract_thread): Likewise.
5559 (remote_target::get_current_thread): Likewise.
5560 (remote_target::add_current_inferior_and_thread): Likewise.
5561
cecb1912
SM
55622021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5563
5564 * remote.c (class remote_target)
5565 <remote_unpack_thread_info_response,
5566 parse_threadlist_response>: Constify parameter and/or return
5567 value and or local variable.
5568 (stub_unpack_int): Likewise.
5569 (unpack_nibble): Likewise.
5570 (unpack_byte): Likewise.
5571 (unpack_int): Likewise.
5572 (unpack_string): Likewise.
5573 (unpack_threadid): Likewise.
5574 (remote_target::remote_unpack_thread_info_response): Likewise.
5575 (remote_target::parse_threadlist_response): Likewise.
5576
5a11fff0
AB
55772021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
5578
5579 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
5580
17e89137
LS
55812021-01-14 Lancelot Six <lsix@lancelotsix.com>
5582
5583 * MAINTAINERS (Write After Approval): Add myself.
5584
58eadc4b
BE
55852021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5586
5587 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
5588 because is_trivially_default_constructible was first implemented with
5589 gcc-5.
5590
5fae2a2c
TV
55912021-01-14 Tom de Vries <tdevries@suse.de>
5592
5593 PR breakpoints/27151
5594 * objfiles.h (in_plt_section): Handle .plt.sec.
5595
8f66807b
AB
55962021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5597
5598 PR gdb/26819
5599 * remote.c
5600 (remote_target::select_thread_for_ambiguous_stop_reply): New
5601 member function.
5602 (remote_target::process_stop_reply): Call
5603 select_thread_for_ambiguous_stop_reply.
5604
bd497355
SM
56052021-01-13 Simon Marchi <simon.marchi@efficios.com>
5606
5607 * record-btrace.c (class record_btrace_target): Remove.
5608 (record_btrace_target::commit_resume): Remove.
5609 * record-full.c (class record_full_target): Remove.
5610 (record_full_target::commit_resume): Remove.
5611
c9d22089
SM
56122021-01-13 Simon Marchi <simon.marchi@efficios.com>
5613
5614 * remote.c (enum class resume_state): New.
5615 (struct resumed_pending_vcont_info): New.
5616 (struct remote_thread_info) <resume_state, set_not_resumed,
5617 set_resumed_pending_vcont, resumed_pending_vcont_info,
5618 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
5619 New.
5620 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
5621 (remote_target::remote_add_thread): Adjust.
5622 (remote_target::process_initial_stop_replies): Adjust.
5623 (remote_target::resume): Adjust.
5624 (remote_target::commit_resume): Rely on state in
5625 remote_thread_info and not on tp->executing.
5626 (remote_target::process_stop_reply): Adjust.
5627
d8d1feb4
SM
56282021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5629
5630 * arc-tdep.h (arc_debug_printf): New.
5631 * arc-tdep.c: Use arc_debug_printf.
5632 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
5633 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
5634 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
5635
fb0f5031
SM
56362021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5637
5638 * arc-tdep.h (arc_debug): Change type to bool.
5639 * arc-tdep.c (arc_debug): Change type to bool.
5640 (arc_analyze_prologue): Adjust.
5641 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
5642 * arc-linux-nat.c (ps_get_thread_area): Adjust.
5643
5bf7e91b
SM
56442021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5645
5646 * auto-load.c (auto_load_objfile_script_1): Use bool.
5647 (execute_script_contents): Use bool.
5648
db972fce
SM
56492021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5650
5651 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
5652 comment here.
5653 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
5654 comment to header.
5655 * extension-priv.h (struct extension_language_script_ops)
5656 <auto_load_enabled>: Return bool.
5657 * extension.h (ext_lang_auto_load_enabled): Return bool, move
5658 comment here.
5659 * extension.c (ext_lang_auto_load_enabled): Return bool, move
5660 comment to header.
5661 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
5662 move comment here.
5663 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
5664 move comment to header.
5665 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
5666 move comment here.
5667 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
5668 move comment to header.
5669
5e12f48f
SM
56702021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5671
5672 * auto-load.h (file_is_auto_load_safe): Change return type to
5673 bool, move comment here.
5674 * auto-load.c (file_is_auto_load_safe): Change return type and
5675 advice_printed to bool. Move comment to header.
5676
54ca9002
SM
56772021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5678
5679 * jit.c (jit_debug_printf): New, use throughout file.
5680
24a7f1b5
SM
56812021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5682
5683 * infrun.c (normal_stop): Fix indentation.
5684
fe7a351a
SM
56852021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5686
5687 * top.h (readnow_symbol_files, readnever_symbol_files): Move
5688 declarations to ...
5689 * symfile.h: ... here.
5690 * symfile.c: Update doc.
5691
16e9019e
SM
56922021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5693
5694 * target.h (baud_rate, serial_parity): Move declarations...
5695 * serial.h: ... here.
5696 * main.c: Include serial.h.
5697 * serial.c (baud_rate, serial_parity): Update doc.
5698
b2f2ae0d
SM
56992021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5700
5701 * top.c (pre_init_ui_hook): Remove.
5702
5291fe3c
SP
57032021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5704
5705 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
5706 (aarch64_vnv_type): Add "bf" type in h field of v registers.
5707 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
5708 * features/aarch64-fpu.xml: Add bfloat16 type.
5709
ce38f5ed
AB
57102021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5711
5712 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
5713
7c654b71
AB
57142021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5715
5716 * f-exp.y (dot_ops): Rename to...
5717 (fortran_operators): ...this. Add a header comment. Add symbol
5718 based operators.
5719 (yylex): Update to use fortran_operators not dot_ops. Remove
5720 special handling for '**', this is now included in
5721 fortran_operators.
5722
c6185dce
SM
57232021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5724
5725 * arch/aarch64-insn.h (aarch64_debug_printf): New.
5726 * arch/aarch64-insn.c: Use aarch64_debug_printf.
5727 * aarch64-tdep.c: Use aarch64_debug_printf.
5728
eef401dc
SM
57292021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5730
5731 * solib-aix.c (solib_aix_debug_printf): New, use throughout
5732 file.
5733
062eaacb
SM
57342021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5735
5736 * jit.c (jit_debug): Change type to bool.
5737 (_initialize_jit): Adjust.
5738
54585eee
TT
57392021-01-09 Tom Tromey <tom@tromey.com>
5740
5741 PR compile/23672
5742 * compile/compile.c (compile_to_object): Avoid crash when
5743 osabi_triplet_regexp returns NULL.
5744
bc167b6b
TT
57452021-01-09 Tom Tromey <tom@tromey.com>
5746
5747 * tracepoint.h (class collection_list) <append_exp>: Take a
5748 std::string.
5749 * tracepoint.c (collection_list::append_exp): Take a std::string.
5750 (encode_actions_1): Update.
5751
8fc48b79
TT
57522021-01-08 Tom Tromey <tromey@adacore.com>
5753
5754 * parse.c (parse_expression): Add void_context_p parameter. Use
5755 parse_exp_in_context.
5756 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
5757 parse_expression.
5758 (print_command, call_command): Update.
5759 * expression.h (parse_expression): Add void_context_p parameter.
5760
3c8c6de2
AB
57612021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5762
5763 * value.c (set_value_component_location): Adjust the VALUE_LVAL
5764 for internalvar components that have a dynamic location.
5765
1940319c
TV
57662021-01-08 Tom de Vries <tdevries@suse.de>
5767
5768 PR gdb/26881
5769 * breakpoint.c (create_exception_master_breakpoint_probe)
5770 (create_exception_master_breakpoint_hook): Factor out
5771 of ...
5772 (create_exception_master_breakpoint): ... here. Only try to install
5773 the master exception breakpoint in objfile.debug using the
5774 _Unwind_DebugHook method, if the install using probes in objfile
5775 failed.
5776
e3436813
AB
57772021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5778
5779 * f-lang.c (fortran_value_subarray): Call value_from_component.
5780
e904f56d
MF
57812021-01-07 Mike Frysinger <vapier@gentoo.org>
5782
5783 * remote-sim.c: Include memory-map.h.
5784 (gdbsim_target): Define memory_map override.
5785 (gdbsim_target::memory_map): Define.
5786
959d6a67
TT
57872021-01-07 Tom Tromey <tromey@adacore.com>
5788
5789 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
5790
d4813f10
TT
57912021-01-07 Tom Tromey <tromey@adacore.com>
5792
5793 * ada-lang.c (add_component_interval): Start loop using vector's
5794 updated size.
5795
b49180ac
TT
57962021-01-06 Tom Tromey <tromey@adacore.com>
5797
5798 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
5799 Do not cast result.
5800 * valarith.c (fixed_point_binop): Handle multiplication
5801 and division specially.
5802 * valops.c (value_to_gdb_mpq): New function.
5803 (value_cast_to_fixed_point): Use it.
5804
55195361
HD
58052021-01-05 Hannes Domani <ssbssa@yahoo.de>
5806
5807 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5808 Call wnoutrefresh instead of tui_win_info::refresh_window.
5809
1b6d4bb2
HD
58102021-01-05 Hannes Domani <ssbssa@yahoo.de>
5811
5812 * tui/tui-source.c (tui_source_window::show_line_number):
5813 Redraw second space after line number.
5814
b5ff370e
HD
58152021-01-05 Hannes Domani <ssbssa@yahoo.de>
5816
5817 PR tui/26927
5818 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5819 Fix source pad size in prefresh.
5820 (tui_source_window_base::show_source_content): Grow source pad
5821 if necessary.
5822
c68ea49f
MF
58232021-01-04 Mike Frysinger <vapier@gentoo.org>
5824
5825 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
5826 (bfin_frame_align): Use align_down.
5827
e4ad960a
TV
58282021-01-04 Tom de Vries <tdevries@suse.de>
5829
5830 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
5831 terminators that do not terminate anything.
5832
3ec3145c
SM
58332021-01-04 Simon Marchi <simon.marchi@efficios.com>
5834
5835 * debug.c (debug_print_depth): New.
5836 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
5837 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
5838 * infrun.c (start_step_over): Use
5839 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5840 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
5841 INFRUN_SCOPED_DEBUG_START_END.
5842 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5843
e71daf80
SM
58442021-01-04 Simon Marchi <simon.marchi@efficios.com>
5845
5846 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
5847
335709bc
SM
58482021-01-04 Simon Marchi <simon.marchi@efficios.com>
5849
5850 * utils.c (vfprintf_unfiltered): Print timestamp only when
5851 previous debug output ended with a newline.
5852
098caef4
LM
58532021-01-04 Luis Machado <luis.machado@linaro.org>
5854
5855 Update all users of trad_frame_saved_reg to use the new member
5856 functions.
5857
5858 Remote all struct keywords from declarations of trad_frame_saved_reg
5859 types, except on forward declarations.
5860
5861 * aarch64-tdep.c: Update.
5862 * alpha-mdebug-tdep.c: Update.
5863 * alpha-tdep.c: Update.
5864 * arc-tdep.c: Update.
5865 * arm-tdep.c: Update.
5866 * avr-tdep.c: Update.
5867 * cris-tdep.c: Update.
5868 * csky-tdep.c: Update.
5869 * frv-tdep.c: Update.
5870 * hppa-linux-tdep.c: Update.
5871 * hppa-tdep.c: Update.
5872 * hppa-tdep.h: Update.
5873 * lm32-tdep.c: Update.
5874 * m32r-linux-tdep.c: Update.
5875 * m32r-tdep.c: Update.
5876 * m68hc11-tdep.c: Update.
5877 * mips-tdep.c: Update.
5878 * moxie-tdep.c: Update.
5879 * riscv-tdep.c: Update.
5880 * rs6000-tdep.c: Update.
5881 * s390-linux-tdep.c: Update.
5882 * s390-tdep.c: Update.
5883 * score-tdep.c: Update.
5884 * sparc-netbsd-tdep.c: Update.
5885 * sparc-sol2-tdep.c: Update.
5886 * sparc64-fbsd-tdep.c: Update.
5887 * sparc64-netbsd-tdep.c: Update.
5888 * sparc64-obsd-tdep.c: Update.
5889 * sparc64-sol2-tdep.c: Update.
5890 * tilegx-tdep.c: Update.
5891 * v850-tdep.c: Update.
5892 * vax-tdep.c: Update.
5893
5894 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
5895 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
5896
5897 * trad-frame.c: Update.
5898 Remove TF_REG_* enum.
5899 (trad_frame_alloc_saved_regs): Add a static assertion to check for
5900 a trivially-constructible struct.
5901 (trad_frame_reset_saved_regs): Adjust to use member function.
5902 (trad_frame_value_p): Likewise.
5903 (trad_frame_addr_p): Likewise.
5904 (trad_frame_realreg_p): Likewise.
5905 (trad_frame_value_bytes_p): Likewise.
5906 (trad_frame_set_value): Likewise.
5907 (trad_frame_set_realreg): Likewise.
5908 (trad_frame_set_addr): Likewise.
5909 (trad_frame_set_unknown): Likewise.
5910 (trad_frame_set_value_bytes): Likewise.
5911 (trad_frame_get_prev_register): Likewise.
5912 * trad-frame.h: Update.
5913 (trad_frame_saved_reg_kind): New enum.
5914 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
5915 <m_kind, m_reg>: New member fields.
5916 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
5917 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
5918 <is_addr, is_unknown, is_value_bytes>: New member functions.
5919
9898e882
SM
59202021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
5921
5922 * target-float.c: Fix typos.
5923
b66b4e65
HD
59242021-01-02 Hannes Domani <ssbssa@yahoo.de>
5925
5926 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
5927
b5b5650a
JB
59282021-01-01 Joel Brobecker <brobecker@adacore.com>
5929
5930 * gdbarch.sh: Update copyright year range.
5931
3666a048
JB
59322021-01-01 Joel Brobecker <brobecker@adacore.com>
5933
5934 Update copyright year range in copyright header of all GDB files.
5935
ff7e39b6
JB
59362021-01-01 Joel Brobecker <brobecker@adacore.com>
5937
5938 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
5939 to the list of directories to update.
5940
2b47c078
JB
59412021-01-01 Joel Brobecker <brobecker@adacore.com>
5942
5943 * top.c (print_gdb_version): Update copyright year.
5944
9e5e03df 59452021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 5946
476923f1 5947 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 5948
476923f1 5949For older changes see ChangeLog-2020.
c906108c
SS
5950\f
5951Local Variables:
5952mode: change-log
5953left-margin: 8
5954fill-column: 74
5955version-control: never
57da7796 5956coding: utf-8
c906108c 5957End: