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