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