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