]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Document new "x" and "print" memory tagging extensions
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
bef382e6
LM
12021-03-24 Luis Machado <luis.machado@linaro.org>
2
3 * printcmd.c (decode_format): Handle the 'm' modifier.
4 (do_examine): Display allocation tags when required/supported.
5 (should_validate_memtags): New function.
6 (print_command_1): Display memory tag mismatches.
7 * valprint.c (show_memory_tag_violations): New function.
8 (value_print_option_defs): Add new option "memory-tag-violations".
9 (user_print_options) <memory_tag_violations>: Initialize to 1.
10 * valprint.h (struct format_data) <print_tags>: New field.
11 (value_print_options) <memory_tag_violations>: New field.
12
48136e00
LM
132021-03-24 Luis Machado <luis.machado@linaro.org>
14
15 * printcmd.c: Include gdbsupport/rsp-low.h.
16 (memory_tag_list): New static global.
17 (process_print_command_args): Factored out of
18 print_command_1.
19 (print_command_1): Use process_print_command_args.
20 (show_addr_not_tagged, show_memory_tagging_unsupported)
21 (memory_tag_command, memory_tag_print_tag_command)
22 (memory_tag_print_logical_tag_command)
23 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
24 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
25 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
26 functions.
27 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
28
ffcc2a15
LM
292021-03-24 Luis Machado <luis.machado@linaro.org>
30
31 * aarch64-linux-tdep.c
32 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
33 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
34
cf44c9fa
LM
352021-03-24 Luis Machado <luis.machado@linaro.org>
36
37 * aarch64-linux-tdep.c
38 (aarch64_linux_report_signal_info): New function.
39 (aarch64_linux_init_abi): Register
40 aarch64_linux_report_signal_info as the report_signal_info hook.
41 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
42 (SEGV_MTESERR): Define.
43
b4a7d4fc
LM
442021-03-24 Luis Machado <luis.machado@linaro.org>
45
46 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
47 (aarch64_linux_ltag_tests): New function.
48 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
49
c7782e50
LM
502021-03-24 Luis Machado <luis.machado@linaro.org>
51
52 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
53 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
54 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
55 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
56 functions.
57 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
58 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
59 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
60 (aarch64_linux_get_ltag): New functions.
61 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
62 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
63 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
64 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
65
1e735120
LM
662021-03-24 Luis Machado <luis.machado@linaro.org>
67
68 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
69 bit.
70 (struct smaps_data): New struct.
71 (decode_vmflags): Handle the 'mt' flag.
72 (parse_smaps_data): New function, refactored from
73 linux_find_memory_regions_full.
74 (linux_address_in_memtag_page): New function.
75 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
76 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
77
93e447c6
LM
782021-03-24 Luis Machado <luis.machado@linaro.org>
79
80 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
81 instead of char arrays.
82
4601818e
LM
832021-03-24 Luis Machado <luis.machado@linaro.org>
84
85 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
86 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
87 nat/aarch64-mte-linux-ptrace.h.
88 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
89 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
90 override.
91 <fetch_memtags>: New method override.
92 <store_memtags>: New method override.
93 (aarch64_linux_nat_target::supports_memory_tagging): New method.
94 (aarch64_linux_nat_target::fetch_memtags): New method.
95 (aarch64_linux_nat_target::store_memtags): New method.
96 * arch/aarch64-mte-linux.c: New file.
97 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
98 (AARCH64_MTE_GRANULE_SIZE): Define.
99 (aarch64_memtag_type): New enum.
100 (aarch64_mte_get_tag_granules): New prototype.
101 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
102 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
103 * nat/aarch64-mte-linux-ptrace.c: New file.
104 * nat/aarch64-mte-linux-ptrace.h: New file.
105
3f3bd8b8
LM
1062021-03-24 Luis Machado <luis.machado@linaro.org>
107
108 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
109 * nat/aarch64-mte-linux-ptrace.h: New file.
110
5e984dbf
LM
1112021-03-24 Luis Machado <luis.machado@linaro.org>
112
113 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
114 (store_mteregs_to_thread): New function.
115 (aarch64_linux_nat_target::fetch_registers): Update to call
116 fetch_mteregs_from_thread.
117 (aarch64_linux_nat_target::store_registers): Update to call
118 store_mteregs_to_thread.
119 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
120 (aarch64_cannot_store_register): Handle MTE registers.
121 (aarch64_gdbarch_init): Initialize and setup MTE registers.
122 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
123 <has_mte>: New method.
124 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
125
c1bd443b
LM
1262021-03-24 Luis Machado <luis.machado@linaro.org>
127
128 * aarch64-linux-nat.c
129 (aarch64_linux_nat_target::read_description): Take MTE flag into
130 account.
131 Slight refactor to hwcap flag checking.
132 * aarch64-linux-tdep.c
133 (aarch64_linux_core_read_description): Likewise.
134 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
135 MTE.
136 (aarch64_read_description): Add mte_p parameter and update to use it.
137 Update the documentation.
138 (aarch64_gdbarch_init): Update call to aarch64_read_description.
139 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
140 * arch/aarch64.c: Include ../features/aarch64-mte.c.
141 (aarch64_create_target_description): Add mte_p parameter and update
142 the code to use it.
143 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
144 parameter.
145 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
146 * features/aarch64-mte.c: New file, generated.
147 * features/aarch64-mte.xml: New file.
148
04245125
LM
1492021-03-24 Luis Machado <luis.machado@linaro.org>
150
151 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
152 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
153 * aarch64-linux-tdep.c: Likewise
154 * arch/aarch64-mte-linux.h: New file.
155
754487e2
LM
1562021-03-24 Luis Machado <luis.machado@linaro.org>
157
158 * remote: Include gdbsupport/selftest.h.
159 (test_memory_tagging_functions): New function.
160 (_initialize_remote): Register test_memory_tagging_functions.
161
2c2e7f87
LM
1622021-03-24 Luis Machado <luis.machado@linaro.org>
163
164 * remote.c (PACKET_memory_tagging_feature): New enum.
165 (remote_memory_tagging_p): New function.
166 (remote_protocol_features): New "memory-tagging" entry.
167 (remote_target::remote_query_supported): Handle memory tagging
168 support.
169 (remote_target::supports_memory_tagging): Implement.
170 (create_fetch_memtags_request, parse_fetch_memtags_reply)
171 (create_store_memtags_request): New functions.
172 (remote_target::fetch_memtags): Implement.
173 (remote_target::store_memtags): Implement.
174 (_initialize_remote): Add new "memory-tagging-feature"
175 config command.
176
c193949e
LM
1772021-03-24 Luis Machado <luis.machado@linaro.org>
178
179 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
180 (default_memtag_matches_p, default_set_memtags)
181 (default_get_memtag): New functions.
182 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
183 (default_memtag_matches_p, default_set_memtags)
184 (default_get_memtag): New prototypes.
185 * gdbarch.c: Regenerate.
186 * gdbarch.h: Regenerate.
187 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
188 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
189 (enum memtag_type): New enum.
190
dbe692af
LM
1912021-03-24 Luis Machado <luis.machado@linaro.org>
192
193 * remote.c (remote_target) <supports_memory_tagging>: New method
194 override.
195 <fetch_memtags>: New method override.
196 <store_memtags>: New method override.
197 (remote_target::supports_memory_tagging): New method.
198 (remote_target::fetch_memtags): New method.
199 (remote_target::store_memtags): New method.
200 * target-delegates.c: Regenerate.
201 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
202 method.
203 <fetch_memtags>: New virtual method.
204 <store_memtags>: New virtual method.
205 (target_supports_memory_tagging): Define.
206 (target_fetch_memtags): Define.
207 (target_store_memtags): Define.
208 * target-debug.h (target_debug_print_size_t)
209 (target_debug_print_const_gdb_byte_vector_r)
210 (target_debug_print_gdb_byte_vector_r): New functions.
211
66848ebc
SM
2122021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
213
214 * target.h (target_longname): Remove.
215
c8fbd44a
SM
2162021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
217
218 * target.h (target_is_pushed): Remove, update callers to use
219 inferior::target_is_pushed instead.
220 * target.c (target_is_pushed): Remove.
221
02980c56
SM
2222021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
223
224 * target.h (push_target): Remove, update callers to use
225 inferior::push_target.
226 * target.c (push_target): Remove.
227 * inferior.h (class inferior) <push_target>: New overload.
228
fadf6add
SM
2292021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
230
231 * target.h (unpush_target): Remove, update all callers
232 to use `inferior::unpush_target` instead.
233 (struct target_unpusher) <operator()>: Just declare.
234 * target.c (unpush_target): Remove.
235 (target_unpusher::operator()): New.
236
702cf3f5
AB
2372021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
238
239 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
240 error.
241 (process_full_comp_unit): Validate the top-level tag before
242 processing the first DIE.
243 (read_func_scope): Ensure we have a valid builder.
244
46fec642
AB
2452021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
246
247 * objc-lang.c (objc_demangle): Renamed to
248 objc_language::demangle_symbol, and moved later in the file.
249 (objc_language::sniff_from_mangled_name): Call demangle_symbol
250 member function.
251 (objc_language::demangle_symbol): Defined outside of class
252 declaration. The definition is the old objc_demangle with NULL
253 changed to nullptr, and if conditions relating to nullptr pointers
254 or null character checks made explicit.
255 * objc-lang.h (objc_demangle): Delete declaration.
256
08dedd66
ML
2572021-03-22 Martin Liska <mliska@suse.cz>
258
259 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
260 (_initialize_arm_tdep): Likewise.
261
eb36a3eb
TT
2622021-03-20 Tom Tromey <tom@tromey.com>
263
264 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
265 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
266 * psymtab.h (make_psymbol_functions): Don't declare.
267 * psymtab.c (make_psymbol_functions): Remove.
268 (maintenance_print_psymbols): Update.
269 * psympriv.h (struct psymbol_functions): Add no-argument
270 constructor.
271 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
272 <partial_symtabs>: Remove.
273 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
274 * elfread.c (read_partial_symbols): Update.
275 (elf_symfile_read): Remove check for existing partial symbols.
276 Don't clear "qf".
277 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
278 partial symbols.
279 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
280 partial symtabs.
281 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
282 parameter.
283 * dbxread.c (dbx_symfile_read): Create partial symtabs.
284 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
285
e1114590
TT
2862021-03-20 Tom Tromey <tom@tromey.com>
287
288 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
289 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
290 * symfile-debug.c (objfile::has_partial_symbols)
291 (objfile::find_last_source_symtab)
292 (objfile::forget_cached_source_info)
293 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
294 (objfile::print_stats, objfile::dump)
295 (objfile::expand_symtabs_for_function)
296 (objfile::expand_all_symtabs)
297 (objfile::expand_symtabs_with_fullname)
298 (objfile::map_matching_symbols)
299 (objfile::expand_symtabs_matching)
300 (objfile::find_pc_sect_compunit_symtab)
301 (objfile::map_symbol_filenames)
302 (objfile::find_compunit_symtab_by_address)
303 (objfile::lookup_global_symbol_language)
304 (objfile::require_partial_symbols): Update.
305 * psymtab.c (maintenance_print_psymbols)
306 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
307 * objfiles.h (struct objfile) <qf>: Now a forward_list.
308 * objfiles.c (objfile_relocate1): Update.
309 * elfread.c (elf_symfile_read): Update.
310
de909f0b
TT
3112021-03-20 Tom Tromey <tom@tromey.com>
312
313 * objfiles.h (struct objfile) <psymtabs>: Remove method.
314
caf8c1e5
TT
3152021-03-20 Tom Tromey <tom@tromey.com>
316
317 * psymtab.c (psymbol_functions::count_psyms): Rename.
318 (psymbol_functions::print_stats): Update.
319 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
320 method.
321
3aa31ce7
TT
3222021-03-20 Tom Tromey <tom@tromey.com>
323
324 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
325 (psymbol_functions::find_pc_sect_psymtab): Rename.
326 (psymbol_functions::find_pc_sect_compunit_symtab)
327 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
328 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
329 Declare new method.
330 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
331
7b249e47
TT
3322021-03-20 Tom Tromey <tom@tromey.com>
333
334 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
335 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
336 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
337 parameter.
338 (add_psymbol_to_bcache): Remove.
339 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
340 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
341 Likewise.
342 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
343 <add_psymbol>: Likewise.
344 (standard_psymtab, legacy_psymtab): Likewise.
345 * mdebugread.c (parse_partial_symbols): Update.
346 (handle_psymbol_enumerators): Add partial_symtabs parameter.
347 (handle_psymbol_enumerators): Update.
348 (new_psymtab): Add partial_symtabs parameter.
349 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
350 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
351 parameter.
352 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
353 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
354 Update.
355 * dbxread.c (read_dbx_symtab): Update.
356 (start_psymtab): Add partial_symtabs parameter.
357 (dbx_end_psymtab): Update.
358 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
359 (ctf_psymtab): Add partial_symtabs parameter.
360 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
361 Update.
362 (scan_partial_symbols): Add partial_symtabs parameter.
363 (scan_partial_symbols, elfctf_build_psymtabs)
364 (ctf_psymtab_add_enums): Update.
365
d1eef86d
TT
3662021-03-20 Tom Tromey <tom@tromey.com>
367
368 * symfile.c (read_symbols): Use objfile method.
369 * symfile-debug.c (objfile::require_partial_symbols): New method.
370 * psymtab.h (require_partial_symbols): Don't declare.
371 * psymtab.c (require_partial_symbols): Use objfile method. Now
372 static.
373 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
374 (psymbol_functions::lookup_symbol)
375 (psymbol_functions::lookup_global_symbol_language)
376 (psymbol_functions::find_last_source_symtab)
377 (psymbol_functions::forget_cached_source_info)
378 (psymbol_functions::print_stats)
379 (psymbol_functions::expand_symtabs_for_function)
380 (psymbol_functions::expand_all_symtabs)
381 (psymbol_functions::expand_symtabs_with_fullname)
382 (psymbol_functions::map_symbol_filenames)
383 (psymbol_functions::map_matching_symbols)
384 (psymbol_functions::expand_symtabs_matching)
385 (psymbol_functions::find_compunit_symtab_by_address)
386 (maintenance_print_psymbols, maintenance_info_psymtabs)
387 (maintenance_check_psymtabs): Update.
388 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
389 new method.
390
eb00e468
TT
3912021-03-20 Tom Tromey <tom@tromey.com>
392
393 * xcoffread.c (xcoff_sym_fns): Update.
394 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
395 * symfile-debug.c (objfile::has_partial_symbols): Use
396 can_lazily_read_symbols.
397 (debug_sym_read_psymbols): Remove.
398 (debug_sym_fns, install_symfile_debug_logging): Update.
399 * quick-symbol.h (struct quick_symbol_functions)
400 <can_lazily_read_symbols, read_partial_symbols>: New methods.
401 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
402 * mipsread.c (ecoff_sym_fns): Update.
403 * machoread.c (macho_sym_fns): Update.
404 * elfread.c (struct lazy_dwarf_reader): New.
405 (elf_symfile_read): Update.
406 (read_psyms): Now a method of lazy_dwarf_reader.
407 (elf_sym_fns): Update.
408 (elf_sym_fns_lazy_psyms): Remove.
409 * dbxread.c (aout_sym_fns): Update.
410 * coffread.c (coff_sym_fns): Update.
411
b29b98cf
TT
4122021-03-20 Tom Tromey <tom@tromey.com>
413
414 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
415 (reread_symbols): Move reset_psymtabs call later.
416 * objfiles.c (objfile::objfile): Don't initialize
417 partial_symtabs.
418
17d66340
TT
4192021-03-20 Tom Tromey <tom@tromey.com>
420
421 * dwarf2/read.c (dwarf2_build_psymtabs): Call
422 set_partial_symtabs.
423 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
424 * psymtab.h (make_psymbol_functions): Add partial_symtabs
425 parameter.
426 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
427 parameter.
428 (psymbol_functions::find_pc_sect_compunit_symtab)
429 (psymbol_functions::print_stats, psymbol_functions::dump)
430 (psymbol_functions::has_symbols): Update.
431 (make_psymbol_functions, dump_psymtab_addrmap): Add
432 partial_symtabs parameter.
433 (maintenance_print_psymbols): Update.
434 (psymbol_functions::expand_symtabs_matching): Update.
435 * psympriv.h (struct psymbol_functions): Add constructor.
436 <m_partial_symtabs>: New member.
437 <set_partial_symtabs>: New method.
438
84685904
TT
4392021-03-20 Tom Tromey <tom@tromey.com>
440
441 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
442 parameter.
443 (process_psymtab_comp_unit_reader)
444 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
445 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
446 Reference psymtabs via per_bfd.
447
79cc99f6
TT
4482021-03-20 Tom Tromey <tom@tromey.com>
449
450 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
451 Remove.
452 (add_address_entry): Remove objfile parameter.
453 (add_address_entry_worker): Update.
454 (write_address_map): Replace objfile parameter with per_bfd.
455 (write_gdbindex, write_psymtabs_to_index): Update.
456
4829711b
TT
4572021-03-20 Tom Tromey <tom@tromey.com>
458
459 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
460 print_bcache parameter.
461 * symfile-debug.c (objfile::print_stats): Add print_bcache
462 parameter.
463 * quick-symbol.h (struct quick_symbol_functions)
464 <print_stats>: Add print_bcache parameter.
465 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
466 code to psymtab.c.
467 (print_objfile_statistics): Move psymtab code to psymtab.c.
468 * psymtab.c (count_psyms): Move from symmisc.c.
469 (psymbol_functions::print_stats): Print partial symbol and bcache
470 statistics. Add print_bcache parameter.
471 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
472 (struct objfile) <print_stats>: Add print_bcache parameter.
473 * maint.c (maintenance_print_statistics): Update.
474
efd7398e
TT
4752021-03-20 Tom Tromey <tom@tromey.com>
476
477 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
478 member.
479 * dwarf2/read.c (create_addrmap_from_index)
480 (create_addrmap_from_aranges): Set per_bfd addrmap.
481 (dwarf2_read_gdb_index): Don't set partial_symtabs.
482 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
483 per_bfd addrmap.
484 (dwarf2_read_debug_names): Don't set partial_symtabs.
485 (dwarf2_initialize_objfile): Likewise.
486
51962708
TT
4872021-03-20 Tom Tromey <tom@tromey.com>
488
489 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
490 earlier.
491
484b1090
TT
4922021-03-20 Tom Tromey <tom@tromey.com>
493
494 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
495 (~psymtab_discarder, keep): Update.
496 <m_objfile>: Remove.
497 <m_partial_symtabs>: New member.
498 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
499
7e9c0476
TT
5002021-03-20 Tom Tromey <tom@tromey.com>
501
502 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
503 (xcoff_end_psymtab): Update.
504 (scan_xcoff_symtab): Add partial_symtabs parameter.
505 (xcoff_initial_scan): Update.
506 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
507 * mdebugread.c (mdebug_build_psymtabs): Update.
508 (parse_partial_symbols): Add partial_symtabs parameter.
509 * dbxread.c (dbx_symfile_read): Update.
510 (read_dbx_symtab): Add partial_symtabs parameter.
511 (read_dbx_symtab): Update.
512 (dbx_end_psymtab): Add partial_symtabs parameter.
513
75336a5a
TT
5142021-03-20 Tom Tromey <tom@tromey.com>
515
516 * quick-symbol.h (struct quick_symbol_functions)
517 <relocated>: New method.
518 * psymtab.h (struct psymbol_functions) <relocated>: New
519 method.
520 <fill_psymbol_map>: Declare method.
521 <m_psymbol_map>: New member.
522 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
523 (psymbol_functions::find_compunit_symtab_by_address): Update.
524 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
525 (struct objfile) <psymbol_map>: Remove.
526 * objfiles.c (objfile_relocate1): Update.
527
39298a5d
TT
5282021-03-20 Tom Tromey <tom@tromey.com>
529
530 * psympriv.h (struct psymbol_functions): New.
531 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
532 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
533 (objfile::lookup_global_symbol_language): Update.
534 * quick-symbol.h (struct quick_symbol_functions): Convert function
535 pointers to methods. Add virtual destructor.
536 (quick_symbol_functions_up): New typedef.
537 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
538 (dwarf2_debug_names_functions): Don't declare.
539 (make_psymbol_functions): Declare.
540 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
541 (psymbol_functions::find_pc_sect_compunit_symtab)
542 (psymbol_functions::lookup_symbol)
543 (psymbol_functions::lookup_global_symbol_language)
544 (psymbol_functions::find_last_source_symtab)
545 (psymbol_functions::forget_cached_source_info)
546 (psymbol_functions::print_stats, psymbol_functions::dump)
547 (psymbol_functions::expand_symtabs_for_function)
548 (psymbol_functions::expand_all_symtabs)
549 (psymbol_functions::expand_symtabs_with_fullname)
550 (psymbol_functions::map_symbol_filenames)
551 (psymbol_functions::map_matching_symbols)
552 (psymbol_functions::expand_symtabs_matching)
553 (psymbol_functions::has_symbols)
554 (psymbol_functions::find_compunit_symtab_by_address): Rename.
555 (psym_functions): Remove.
556 (make_psymbol_functions): New function.
557 * objfiles.h (struct objfile) <qf>: Change type.
558 * elfread.c (elf_symfile_read): Update.
559 * dwarf2/read.c (struct dwarf2_base_index_functions)
560 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
561 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
562 (dwarf2_base_index_functions::find_last_source_symtab)
563 (dwarf2_base_index_functions::forget_cached_source_info)
564 (dwarf2_base_index_functions::map_symtabs_matching_filename)
565 (dwarf2_gdb_index::lookup_symbol)
566 (dwarf2_base_index_functions::print_stats)
567 (dwarf2_gdb_index::dump)
568 (dwarf2_gdb_index::expand_symtabs_for_function)
569 (dwarf2_base_index_functions::expand_all_symtabs)
570 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
571 Rename.
572 (dwarf2_gdb_index::map_matching_symbols): New method.
573 (dwarf2_gdb_index::expand_symtabs_matching): New method.
574 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
575 (dwarf2_base_index_functions::map_symbol_filenames)
576 (dwarf2_base_index_functions::has_symbols): Rename.
577 (dwarf2_gdb_index_functions): Remove.
578 (dwarf2_debug_names_index::lookup_symbol)
579 (dwarf2_debug_names_index::dump)
580 (dwarf2_debug_names_index::expand_symtabs_for_function)
581 (dwarf2_debug_names_index::map_matching_symbols)
582 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
583 (dwarf2_debug_names_functions): Remove.
584 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
585 Declare.
586
5c3f1e5b
TT
5872021-03-20 Tom Tromey <tom@tromey.com>
588
589 * psymtab.c (require_partial_symbols): Check that 'sf' is not
590 null.
591 * xcoffread.c (xcoff_sym_fns): Update.
592 * symfile.h (struct sym_fns) <qf>: Remove.
593 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
594 * symfile-debug.c (objfile::has_partial_symbols)
595 (objfile::find_last_source_symtab)
596 (objfile::forget_cached_source_info)
597 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
598 (objfile::print_stats, objfile::dump)
599 (objfile::expand_symtabs_for_function)
600 (objfile::expand_all_symtabs)
601 (objfile::expand_symtabs_with_fullname)
602 (objfile::map_matching_symbols)
603 (objfile::expand_symtabs_matching)
604 (objfile::find_pc_sect_compunit_symtab)
605 (objfile::map_symbol_filenames)
606 (objfile::find_compunit_symtab_by_address)
607 (objfile::lookup_global_symbol_language, debug_sym_fns)
608 (install_symfile_debug_logging): Update.
609 * objfiles.h (struct objfile) <qf>: New member.
610 * mipsread.c (ecoff_sym_fns): Update.
611 * machoread.c (macho_sym_fns): Update.
612 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
613 Don't declare.
614 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
615 * dbxread.c (aout_sym_fns): Update.
616 * coffread.c (coff_sym_fns): Update.
617
9b99dcc8
TT
6182021-03-20 Tom Tromey <tom@tromey.com>
619
620 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
621 (expand_symtabs_file_matcher_ftype)
622 (expand_symtabs_symbol_matcher_ftype)
623 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
624 Move to quick-symbol.h.
625 * quick-symbol.h: New file.
626
4d080b46
TT
6272021-03-20 Tom Tromey <tom@tromey.com>
628
629 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
630 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
631 (basic_lookup_transparent_type_quick)
632 (find_pc_sect_compunit_symtab, find_symbol_at_address)
633 (find_line_symtab, global_symbol_searcher::expand_symtabs):
634 Update.
635 * symmisc.c (print_objfile_statistics, dump_objfile)
636 (maintenance_expand_symtabs): Update.
637 * symfile.c (symbol_file_add_with_addrs)
638 (expand_symtabs_matching, map_symbol_filenames): Update.
639 * symfile-debug.c (objfile::has_partial_symbols)
640 (objfile::find_last_source_symtab)
641 (objfile::forget_cached_source_info)
642 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
643 (objfile::print_stats, objfile::dump)
644 (objfile::expand_symtabs_for_function)
645 (objfile::expand_all_symtabs)
646 (objfile::expand_symtabs_with_fullname)
647 (objfile::map_matching_symbols)
648 (objfile::expand_symtabs_matching)
649 (objfile::find_pc_sect_compunit_symtab)
650 (objfile::map_symbol_filenames)
651 (objfile::find_compunit_symtab_by_address)
652 (objfile::lookup_global_symbol_language): New methods.
653 (debug_sym_quick_functions): Remove.
654 (debug_sym_fns, install_symfile_debug_logging): Update.
655 * source.c (forget_cached_source_info_for_objfile)
656 (select_source_symtab): Update.
657 * objfiles.h (struct objfile): Add methods corresponding to
658 quick_symbol_functions.
659 * objfiles.c (objfile::has_partial_symbols): Move to
660 symfile-debug.c.
661 * linespec.c (iterate_over_all_matching_symtabs): Update.
662 * cp-support.c (add_symbol_overload_list_qualified): Update.
663 * ada-lang.c (add_nonlocal_symbols): Update.
664
fae2120b
TT
6652021-03-20 Tom Tromey <tom@tromey.com>
666
667 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
668 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
669 bool.
670 * symfile-debug.c (debug_qf_has_symbols): Return bool.
671 * psymtab.c (psym_has_symbols): Return bool.
672 * objfiles.c (objfile::has_partial_symbols): Return bool.
673 * dwarf2/read.c (dw2_has_symbols): Return bool.
674
a8ad4f3c
TT
6752021-03-20 Tom Tromey <tom@tromey.com>
676
677 * symfile.c (read_symbols): Update.
678 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
679 (objfile_has_partial_symbols): Don't declare.
680 * objfiles.c (objfile::has_partial_symbols): Rename from
681 objfile_has_partial_symbols.
682 (objfile_has_symbols, have_partial_symbols): Update.
683 * elfread.c (elf_symfile_read): Update.
684 * dwarf2/read.c (dwarf2_has_info): Update.
685 * coffread.c (coff_symfile_read): Update.
686
70182375
TT
6872021-03-20 Tom Tromey <tom@tromey.com>
688
689 * coffread.c: Include dwarf2/public.h.
690 * dwarf2/frame.c: Include dwarf2/public.h.
691 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
692 * dwarf2/public.h: New file.
693 * dwarf2/read.c: Include dwarf2/public.h.
694 * elfread.c: Include dwarf2/public.h.
695 * machoread.c: Include dwarf2/public.h.
696 * symfile.h (dwarf2_has_info, enum dw_index_kind)
697 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
698 (dwarf2_build_frame_info): Move to dwarf2/public.h.
699 * xcoffread.c: Include dwarf2/public.h.
700
18038e63
TT
7012021-03-20 Tom Tromey <tom@tromey.com>
702
703 * symfile.h (enum dwarf2_section_enum)
704 (dwarf2_get_section_info): Move to dwarf2/read.h.
705 * dwarf2/read.h (enum dwarf2_section_enum)
706 (dwarf2_get_section_info): Move from symfile.h.
707
219f56b4
PA
7082021-03-19 Pedro Alves <pedro@palves.net>
709
710 * thread.c (any_thread_of_inferior): Check if there's a selected
711 thread before calling inferior_thread().
712
15310fd4
TT
7132021-03-18 Tom Tromey <tromey@adacore.com>
714
715 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
716 get_DW_UT_name.
717 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
718 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
719
763b8efd
AB
7202021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
721
722 * python/py-param.c (get_set_value): Update header comment.
723
f058c521
SM
7242021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
725
726 * infrun.c (check_multi_target_resumption): Remove argument to
727 all_non_exited_inferiors.
728
383228bc
CB
7292021-03-16 Christian Biesinger <cbiesinger@google.com>
730
731 * windows-nat.c (windows_init_thread_list): Add message to
732 debug log.
733
7807d76a
AB
7342021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
735
736 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
737 well as PyLong_Check for Python 2.
738
675da9a5
TT
7392021-03-15 Tom Tromey <tromey@adacore.com>
740
741 PR build/27579:
742 * rust-exp.y (maker_map): Use gdb::hash_enum.
743 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
744
4800761a
SM
7452021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
746
747 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
748 end of debug print.
749
eb5dd737
SM
7502021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
751
752 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
753 parameter, adjust caller.
754
6813ceb0
TT
7552021-03-15 Tom Tromey <tromey@adacore.com>
756
757 * ada-exp.y (simple_exp): Always push a result for unary '+'.
758
3b5c4de0
TT
7592021-03-15 Tom Tromey <tromey@adacore.com>
760
761 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
762 ada_ensure_varsize_limit.
763
c04da66c
TT
7642021-03-15 Tom Tromey <tromey@adacore.com>
765
766 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
767 fixed-point.
768 * ada-exp.y (maybe_overload): New function.
769 (ada_wrap_overload): New function.
770 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
771 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
772 (or_else_exp, xor_exp, primary): Update.
773
9863c3b5
TT
7742021-03-15 Tom Tromey <tromey@adacore.com>
775
776 PR ada/27545:
777 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
778 call for tagged type.
779
1ac74522
TT
7802021-03-15 Tom Tromey <tromey@adacore.com>
781
782 * ada-exp.y (exp1): Handle resolution of the right hand side of an
783 assignment.
784
207582c0
TT
7852021-03-15 Tom Tromey <tromey@adacore.com>
786
787 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
788 container.
789 (ada_assign_operation::evaluate): Update.
790 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
791 Change return type.
792
8d624a9d
FW
7932021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
794
795 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
796
ba6a0ef3
AB
7972021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
798
799 * python/python.c (gdbpy_source_objfile_script): Use
800 make_scoped_restore to restore gdbpy_current_objfile.
801 (gdbpy_execute_objfile_script): Likewise.
802
7c290a04
TT
8032021-03-14 Tom Tromey <tom@tromey.com>
804
805 * dwarf2/read.c (read_attribute_value): Use cu_header
806 consistently.
807
0280fdcc
TT
8082021-03-14 Tom Tromey <tom@tromey.com>
809
810 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
811 (peek_die_abbrev): Use reader.abfd.
812
a9f172c6
TT
8132021-03-14 Tom Tromey <tom@tromey.com>
814
815 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
816 m_header_read_in.
817
7c32eebb
TT
8182021-03-13 Tom Tromey <tom@tromey.com>
819
820 * dwarf2/read.c (struct partial_die_info): Update.
821 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
822 (load_partial_dies, partial_die_info::partial_die_info): Update.
823 * dwarf2/abbrev.h (lookup_abbrev): Constify.
824
27012aba
TT
8252021-03-13 Tom Tromey <tom@tromey.com>
826
827 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
828
fece451c
CB
8292021-03-12 Christian Biesinger <cbiesinger@google.com>
830
831 PR threads/27239
832 * cp-support.c: Use scoped_segv_handler_restore.
833 * event-top.c (thread_local_segv_handler): Made static.
834 (scoped_segv_handler_restore::scoped_segv_handler_restore):
835 New function.
836 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
837 function.
838 * event-top.h (class scoped_segv_handler_restore): New class.
839 (thread_local_segv_handler): Removed.
840
7056f312
TT
8412021-03-10 Tom Tromey <tromey@adacore.com>
842
843 * parser-defs.h (parser_state): Change completion to bool.
844 <parse_completion>: Likewise.
845 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
846 (ada_resolve_variable, ada_resolve_function): Update.
847 * ada-lang.c (ada_find_operator_symbol): Change
848 parse_completion to bool.
849 (ada_resolve_funcall, ada_resolve_variable)
850 (ada_resolve_function): Likewise.
851
ccdc02ed
TT
8522021-03-09 Tom Tromey <tromey@adacore.com>
853
854 * eval.c (operation::evaluate_funcall): Use function formal
855 parameter types when evaluating.
856
fbb1aace
AB
8572021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
858
859 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
860 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
861 and owner to m_owner.
862
611aa09d
FW
8632021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
864
865 * f-exp.h (eval_op_f_loc): Declare.
866 (expr::fortran_loc_operation): New typedef.
867 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
868 UNOP_INTRINSIC.
869 (f77_keywords): Add LOC keyword.
870 * f-lang.c (eval_op_f_loc): New function.
871 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
872
eef32f59
AB
8732021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
874
875 * f-exp.h (eval_op_f_array_shape): Declare.
876 (fortran_array_shape_operation): New type.
877 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
878 UNOP_INTRINSIC.
879 (f77_keywords): Add "shape" keyword.
880 * f-lang.c (fortran_array_shape): New function.
881 (eval_op_f_array_shape): New function.
882 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
883
7ba155b3
AB
8842021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
885
886 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
887 of this function.
888 (expr::fortran_array_size_1arg): New type.
889 (expr::fortran_array_size_2arg): Likewise.
890 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
891 UNOP_OR_BINOP_INTRINSIC.
892 (f77_keywords): Add "size" keyword.
893 * f-lang.c (fortran_array_size): New function.
894 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
895 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
896
e14816a8
AB
8972021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
898
899 * f-exp.h (eval_op_f_rank): Declare.
900 (expr::fortran_rank_operation): New typedef.
901 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
902 UNOP_INTRINSIC.
903 (f77_keywords): Add "rank" keyword.
904 * f-lang.c (eval_op_f_rank): New function.
905 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
906
3dd93bf8
TT
9072021-03-08 Tom Tromey <tom@tromey.com>
908
909 * printcmd.c (set_command): Remove null check.
910 * value.c (init_if_undefined_command): Remove null check.
911
9c79936b
TT
9122021-03-08 Tom Tromey <tom@tromey.com>
913
914 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
915 Update.
916 * p-exp.y (variable): Update.
917 * go-exp.y (variable): Update.
918 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
919 Remove overload for objfile.
920 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
921 parameter.
922 (check_objfile): Likewise.
923 (dump_for_expression): Likewise. Remove overload for objfile.
924 (class var_msym_value_operation): Use bound_minimal_symbol.
925 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
926 parameter.
927 (var_msym_value_operation::evaluate_for_address)
928 (var_msym_value_operation::evaluate_for_sizeof)
929 (var_msym_value_operation::evaluate_for_cast): Update.
930 * d-exp.y (PrimaryExpression): Update.
931 * c-exp.y (variable): Update.
932 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
933 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
934 Update.
935 * ada-exp.y (write_var_or_type): Update.
936
40d07d07
TT
9372021-03-08 Tom Tromey <tom@tromey.com>
938
939 * parser-defs.h (exp_uses_objfile): Return bool.
940 * parse.c (exp_uses_objfile): Return bool.
941
0b2b0b82
TT
9422021-03-08 Tom Tromey <tom@tromey.com>
943
944 * value.h (eval_skip_value): Don't declare.
945 * opencl-lang.c (eval_opencl_assign): Update.
946 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
947 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
948 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
949 * expression.h (enum noside) <EVAL_SKIP>: Remove.
950 * expop.h (typeof_operation::evaluate)
951 (decltype_operation::evaluate, unop_addr_operation::evaluate)
952 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
953 (cxx_cast_operation::evaluate): Update.
954 * eval.c (eval_skip_value): Remove.
955 (eval_op_scope, eval_op_var_entry_value)
956 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
957 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
958 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
959 (eval_op_binary, eval_op_subscript, eval_op_equal)
960 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
961 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
962 (eval_op_complement, eval_op_lognot, eval_op_ind)
963 (eval_op_memval, eval_op_preinc, eval_op_predec)
964 (eval_op_postinc, eval_op_postdec, eval_op_type)
965 (eval_binop_assign_modify, eval_op_objc_msgcall)
966 (eval_multi_subscript, logical_and_operation::evaluate)
967 (logical_or_operation::evaluate, array_operation::evaluate)
968 (operation::evaluate_for_cast)
969 (var_msym_value_operation::evaluate_for_cast)
970 (var_value_operation::evaluate_for_cast): Update.
971 * c-lang.c (c_string_operation::evaluate): Update.
972 * c-exp.h (objc_nsstring_operation::evaluate)
973 (objc_selector_operation::evaluate): Update.
974 * ada-lang.c (ada_assign_operation::evaluate)
975 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
976 (ada_atr_size): Update.
977
96db551d
TT
9782021-03-08 Tom Tromey <tom@tromey.com>
979
980 * eval.c: Merge "namespace" scopes.
981
ce284361
TT
9822021-03-08 Tom Tromey <tom@tromey.com>
983
984 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
985 <release>: Inline.
986 * parse.c (expr_builder::expr_builder, expr_builder::release):
987 Remove.
988
b9d06571
TT
9892021-03-08 Tom Tromey <tom@tromey.com>
990
991 * parse.c (expression::expression, expression::~expression):
992 Remove.
993 * expression.h (struct expression): Inline constructor. Remove
994 destructor.
995
79ab486e
TT
9962021-03-08 Tom Tromey <tom@tromey.com>
997
998 * std-operator.def (BINOP_END): Remove.
999 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
1000 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
1001 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
1002 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
1003 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
1004 BINOP_END.
1005
48fa6f23
TT
10062021-03-08 Tom Tromey <tom@tromey.com>
1007
1008 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
1009
43f542e3
TT
10102021-03-08 Tom Tromey <tom@tromey.com>
1011
1012 * std-operator.def (OP_EXTENDED0): Remove.
1013
5d9ba982
TT
10142021-03-08 Tom Tromey <tom@tromey.com>
1015
1016 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
1017 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
1018 Remove.
1019
d357570d
TT
10202021-03-08 Tom Tromey <tom@tromey.com>
1021
1022 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
1023 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
1024
0922dc84
TT
10252021-03-08 Tom Tromey <tom@tromey.com>
1026
1027 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
1028 * ada-lang.c (ada_binop_minmax): Update.
1029 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
1030 Use BINOP_MIN and BINOP_MAX.
1031
1eaebe02
TT
10322021-03-08 Tom Tromey <tom@tromey.com>
1033
1034 * value.h (evaluate_subexp_with_coercion): Don't declare.
1035 * parse.c (exp_descriptor_standard): Remove.
1036 (expr_builder::expr_builder, expr_builder::release): Update.
1037 (expression::expression): Remove size_t parameter.
1038 (expression::~expression): Simplify.
1039 (expression::resize): Remove.
1040 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
1041 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
1042 (write_exp_elt_longcst, write_exp_elt_floatcst)
1043 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
1044 (write_exp_string_vector, write_exp_bitstring): Remove.
1045 * p-lang.h (class pascal_language) <opcode_print_table,
1046 op_print_tab>: Remove.
1047 * p-lang.c (pascal_language::op_print_tab): Remove.
1048 * opencl-lang.c (class opencl_language) <opcode_print_table>:
1049 Remove.
1050 * objc-lang.c (objc_op_print_tab): Remove.
1051 (class objc_language) <opcode_print_table>: Remove.
1052 * m2-lang.h (class m2_language) <opcode_print_table,
1053 op_print_tab>: Remove.
1054 * m2-lang.c (m2_language::op_print_tab): Remove.
1055 * language.h (struct language_defn) <post_parser, expression_ops,
1056 opcode_print_table>: Remove.
1057 * language.c (language_defn::expression_ops)
1058 (auto_or_unknown_language::opcode_print_table): Remove.
1059 * go-lang.h (class go_language) <opcode_print_table,
1060 op_print_tab>: Remove.
1061 * go-lang.c (go_language::op_print_tab): Remove.
1062 * f-lang.h (class f_language) <opcode_print_table>: Remove
1063 <op_print_tab>: Remove.
1064 * f-lang.c (f_language::op_print_tab): Remove.
1065 * expression.h (union exp_element): Remove.
1066 (struct expression): Remove size_t parameter from constructor.
1067 <resize>: Remove.
1068 <first_opcode>: Update.
1069 <nelts, elts>: Remove.
1070 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
1071 (evaluate_subexp_standard, print_expression, op_string)
1072 (dump_raw_expression): Don't declare.
1073 * expprint.c (print_expression, print_subexp)
1074 (print_subexp_funcall, print_subexp_standard, op_string)
1075 (dump_raw_expression, dump_subexp, dump_subexp_body)
1076 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
1077 (dump_prefix_expression): Update.
1078 * eval.c (evaluate_subexp): Remove.
1079 (evaluate_expression, evaluate_type): Update.
1080 (evaluate_subexpression_type): Remove.
1081 (fetch_subexp_value): Remove "pc" parameter. Update.
1082 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
1083 (evaluate_subexp_standard, evaluate_subexp_for_address)
1084 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
1085 (evaluate_subexp_for_cast): Remove.
1086 (parse_and_eval_type): Update.
1087 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
1088 * d-lang.c (d_op_print_tab): Remove.
1089 (class d_language) <opcode_print_table>: Remove.
1090 * c-lang.h (c_op_print_tab): Don't declare.
1091 * c-lang.c (c_op_print_tab): Remove.
1092 (class c_language, class cplus_language, class asm_language, class
1093 minimal_language) <opcode_print_table>: Remove.
1094 * breakpoint.c (update_watchpoint, watchpoint_check)
1095 (watchpoint_exp_is_const, watch_command_1): Update.
1096 * ax-gdb.h (union exp_element): Don't declare.
1097 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
1098 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
1099 (gen_expr_binop_rest): Remove.
1100 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
1101 * ada-lang.c (ada_op_print_tab): Remove.
1102 (class ada_language) <post_parser, opcode_print_table>: Remove.
1103
f2a98603
TT
11042021-03-08 Tom Tromey <tom@tromey.com>
1105
1106 * go-lang.c (go_language::expression_ops): Don't declare.
1107 * go-lang.h (class go_language) <expression_ops>: Remove.
1108 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
1109 Remove.
1110 (class opencl_language) <expression_ops>: Remove.
1111 * d-lang.c (class d_language) <expression_ops>: Remove.
1112 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
1113 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
1114 (class c_language, class cplus_language, class asm_language)
1115 (class minimal_language) <expression_ops>: Remove.
1116
d3c54a1c
TT
11172021-03-08 Tom Tromey <tom@tromey.com>
1118
1119 * ada-lang.c (resolve_subexp, replace_operator_with_call)
1120 (evaluate_subexp_type, assign_aggregate)
1121 (aggregate_assign_positional, aggregate_assign_from_choices)
1122 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
1123 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
1124 (ada_operator_check, ada_forward_operator_length)
1125 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
1126 Remove.
1127 (post_parser): Update.
1128 (class ada_language) <expresssion_ops>: Remove.
1129
5871f0a3
TT
11302021-03-08 Tom Tromey <tom@tromey.com>
1131
1132 * m2-lang.h (class m2_language) <expresssion_ops,
1133 exp_descriptor_modula2>: Remove.
1134 * m2-lang.c (evaluate_subexp_modula2)
1135 (m2_language::exp_descriptor_modula2): Remove.
1136
a99be8c1
TT
11372021-03-08 Tom Tromey <tom@tromey.com>
1138
1139 * f-lang.h (class f_language) <expresssion_ops>: Remove.
1140 <exp_descriptor_tab>: Remove.
1141 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
1142 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
1143 (print_subexp_f, dump_subexp_body_f, operator_check_f)
1144 (f_language::exp_descriptor_tab, fortran_prepare_argument):
1145 Remove.
1146
aa1da9ed
TT
11472021-03-08 Tom Tromey <tom@tromey.com>
1148
1149 * rust-lang.h (class rust_language) <expression_ops,
1150 exp_descriptor_tab>: Remove.
1151 * rust-lang.c (rust_evaluate_funcall): Remove.
1152 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
1153 EVAL_SKIP.
1154 (rust_evaluate_subexp): Remove.
1155 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
1156 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
1157 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
1158
08a057e6
TT
11592021-03-08 Tom Tromey <tom@tromey.com>
1160
1161 * ada-exp.y: Create operations.
1162 (empty_stoken): Remove.
1163 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
1164 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
1165 (components): New global.
1166 (push_component, choice_component, pop_component, pop_components):
1167 New functions.
1168 (associations): New global
1169 (push_association, pop_association, pop_associations): New
1170 functions.
1171 (ada_parse): Update.
1172 (write_var_from_sym, write_int): Create operations.
1173 (write_exp_op_with_string): Remove.
1174 (write_object_renaming, write_selectors, write_ambiguous_var)
1175 (write_var_or_type, write_name_assoc): Create operations.
1176 * ada-lang.h (ada_index_type): Declare.
1177 * ada-lang.c (ada_index_type): No longer static.
1178
d308ba78
TT
11792021-03-08 Tom Tromey <tom@tromey.com>
1180
1181 * f-exp.y: Create operations.
1182 (f_language::parser): Update.
1183
f1b8ceef
TT
11842021-03-08 Tom Tromey <tom@tromey.com>
1185
1186 * m2-exp.y: Create operations.
1187 (m2_language::parser): Update.
1188
3163898e
TT
11892021-03-08 Tom Tromey <tom@tromey.com>
1190
1191 * p-exp.y: Create operations.
1192 (pascal_language::parser): Update.
1193
9412fdcc
TT
11942021-03-08 Tom Tromey <tom@tromey.com>
1195
1196 * d-exp.y: Create operations.
1197 (d_parse): Update.
1198
bb4e0574
TT
11992021-03-08 Tom Tromey <tom@tromey.com>
1200
1201 * go-exp.y: Create operations.
1202 (go_language::parser): Update.
1203
d182f279
TT
12042021-03-08 Tom Tromey <tom@tromey.com>
1205
1206 * objc-lang.c (end_msglist): Create operations.
1207 * c-exp.y: Change parser to create operations.
1208 (write_destructor_name): Remove.
1209 (c_parse): Update.
1210
c1299a23
TT
12112021-03-08 Tom Tromey <tom@tromey.com>
1212
1213 * rust-exp.y: Create operations.
1214 (rust_parser::convert_params_to_expression): Change return type.
1215 (binop_maker_ftype): New typedef.
1216 (maker_map): New global.
1217 (rust_parser::convert_ast_to_expression): Change return type.
1218 (rust_language::parser): Update.
1219 (_initialize_rust_exp): Initialize maker_map.
1220
4c5e7a93
TT
12212021-03-08 Tom Tromey <tom@tromey.com>
1222
1223 * stap-probe.c (binop_maker_ftype): New typedef.
1224 (stap_maker_map): New global.
1225 (stap_make_binop): New function.
1226 (stap_parse_register_operand): Return operation_up.
1227 (stap_parse_single_operand, stap_parse_argument_conditionally)
1228 (stap_parse_argument_1): Likewise.
1229 (stap_parse_argument): Create operations.
1230 (stap_probe::parse_arguments): Update.
1231 (_initialize_stap_probe): Initialize stap_maker_map.
1232 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
1233 type.
1234 * i386-tdep.h (i386_stap_parse_special_token): Change return
1235 type.
1236 * i386-tdep.c (i386_stap_parse_special_token_triplet)
1237 (i386_stap_parse_special_token_three_arg_disp)
1238 (i386_stap_parse_special_token): Change return type.
1239 * gdbarch.sh (stap_parse_special_token): Change return type.
1240 * gdbarch.c: Rebuild.
1241 * gdbarch.h: Rebuild.
1242 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
1243 type.
1244 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
1245 return type.
1246
482ddd69
TT
12472021-03-08 Tom Tromey <tom@tromey.com>
1248
1249 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
1250 * gdbarch.h: Rebuild.
1251 * gdbarch.c: Rebuild.
1252 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
1253 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
1254 return type.
1255 (amd64_dtrace_parse_probe_argument): Update.
1256
8227d9e2
TT
12572021-03-08 Tom Tromey <tom@tromey.com>
1258
1259 * parser-defs.h (struct parser_state) <push, push_new,
1260 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
1261 wrap2>: New methods.
1262 <m_operations>: New member.
1263 * parse.c (parser_state::push_c_string)
1264 (parser_state::push_symbol, parser_state::push_dollar): New
1265 methods.
1266
4933522d
TT
12672021-03-08 Tom Tromey <tom@tromey.com>
1268
1269 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
1270 New member.
1271 (struct parser_state) <mark_struct_expression>: New method.
1272 * parse.c (parser_state::mark_struct_expression): Update assert.
1273 (parser_state::mark_struct_expression): New method.
1274 (parser_state::mark_completion_tag): Update assert.
1275 (parse_expression_for_completion): Handle expout_last_op.
1276
413403fc
TT
12772021-03-08 Tom Tromey <tom@tromey.com>
1278
1279 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
1280 now in superclass.
1281 * value.h (fetch_subexp_value): Add "op" parameter.
1282 * value.c (init_if_undefined_command): Update.
1283 * tracepoint.c (validate_actionline, encode_actions_1): Update.
1284 * stap-probe.c (stap_probe::compile_to_ax): Update.
1285 * printcmd.c (set_command): Update.
1286 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
1287 Update.
1288 * parser-defs.h (struct expr_builder) <set_operation>: New
1289 method.
1290 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
1291 * expression.h (struct expression) <first_opcode>: Update.
1292 <op>: New member.
1293 * expprint.c (dump_raw_expression, dump_prefix_expression):
1294 Update.
1295 * expop.h (class var_value_operation) <get_symbol>: New method.
1296 (class register_operation) <get_name>: New method.
1297 (class equal_operation): No longer a typedef, now a subclass.
1298 (class unop_memval_operation) <get_type>: New method.
1299 (class assign_operation) <get_lhs>: New method.
1300 (class unop_cast_operation) <get_type>: New method.
1301 * eval.c (evaluate_expression, evaluate_type)
1302 (evaluate_subexpression_type): Update.
1303 (fetch_subexp_value): Add "op" parameter.
1304 (parse_and_eval_type): Update.
1305 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
1306 * breakpoint.c (update_watchpoint, watchpoint_check)
1307 (watchpoint_exp_is_const, watch_command_1): Update.
1308 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
1309 Update.
1310
b0f9164c
TT
13112021-03-08 Tom Tromey <tom@tromey.com>
1312
1313 * ada-lang.c (ada_value_binop): Do not use op_string.
1314
a88c4354
TT
13152021-03-08 Tom Tromey <tom@tromey.com>
1316
1317 * expprint.c (dump_for_expression): New overload.
1318 * expop.h (check_objfile, dump_for_expression): Declare new
1319 overloads.
1320 * ada-lang.c (check_objfile): New overload.
1321 (assign_component, ada_aggregate_component::uses_objfile)
1322 (ada_aggregate_component::dump, ada_aggregate_component::assign)
1323 (ada_aggregate_component::assign_aggregate)
1324 (ada_positional_component::uses_objfile)
1325 (ada_positional_component::dump, ada_positional_component::assign)
1326 (ada_discrete_range_association::uses_objfile)
1327 (ada_discrete_range_association::dump)
1328 (ada_discrete_range_association::assign)
1329 (ada_name_association::uses_objfile, ada_name_association::dump)
1330 (ada_name_association::assign)
1331 (ada_choices_component::uses_objfile, ada_choices_component::dump)
1332 (ada_choices_component::assign)
1333 (ada_others_component::uses_objfile, ada_others_component::dump)
1334 (ada_others_component::assign, ada_assign_operation::evaluate):
1335 New methods.
1336 * ada-exp.h (ada_string_operation) <get_name>: New method.
1337 (class ada_assign_operation): New.
1338 (class ada_component): New.
1339 (ada_component_up): New typedef.
1340 (class ada_aggregate_operation, class ada_aggregate_component)
1341 (class ada_positional_component, class ada_others_component)
1342 (class ada_association): New.
1343 (ada_association_up): New typedef.
1344 (class ada_choices_component)
1345 (class ada_discrete_range_association)
1346 (class ada_name_association): New.
1347
d8a4ed8a
TT
13482021-03-08 Tom Tromey <tom@tromey.com>
1349
1350 * ada-lang.c (ada_var_value_operation::resolve)
1351 (ada_funcall_operation::resolve)
1352 (ada_ternop_slice_operation::resolve): New methods.
1353 * ada-exp.h (struct ada_resolvable): New.
1354 (class ada_var_value_operation): Derive from ada_resolvable.
1355 <get_block, resolve>: New methods.
1356 (class ada_funcall_operation): Derive from ada_resolvable.
1357 <resolve>: New method.
1358 (class ada_ternop_slice_operation): Derive from ada_resolvable.
1359 <resolve>: New method.
1360
efe3af2f
TT
13612021-03-08 Tom Tromey <tom@tromey.com>
1362
1363 * ada-lang.c (ada_funcall_operation::evaluate): New method.
1364 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
1365 method.
1366 (class ada_funcall_operation): New.
1367
ebc06ad8
TT
13682021-03-08 Tom Tromey <tom@tromey.com>
1369
1370 * ada-lang.c (ada_structop_operation::evaluate): New method.
1371 * ada-exp.h (class ada_structop_operation): New.
1372
e8c33fa1
TT
13732021-03-08 Tom Tromey <tom@tromey.com>
1374
1375 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
1376 * ada-exp.h (class ada_unop_ind_operation): New.
1377
065ec826
TT
13782021-03-08 Tom Tromey <tom@tromey.com>
1379
1380 * ada-lang.c (ada_binop_exp): No longer static.
1381 * ada-exp.h (ada_binop_exp_operation): New typedef.
1382
9e99f48f
TT
13832021-03-08 Tom Tromey <tom@tromey.com>
1384
1385 * ada-lang.c (ada_val_atr): No longer static.
1386 (ada_atr_val_operation::evaluate): New method.
1387 * ada-exp.h (class ada_atr_val_operation): New.
1388
7631cf6c
TT
13892021-03-08 Tom Tromey <tom@tromey.com>
1390
1391 * ada-lang.c (ada_pos_atr): No longer static.
1392 * ada-exp.h (ada_pos_operation): New typedef.
1393
7992accc
TT
13942021-03-08 Tom Tromey <tom@tromey.com>
1395
1396 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
1397 parameters.
1398 (ada_evaluate_subexp): Use it.
1399
6ad3b8bf
TT
14002021-03-08 Tom Tromey <tom@tromey.com>
1401
1402 * ada-lang.c (ada_binop_minmax): No longer static.
1403 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
1404 New typedefs.
1405
3f4a0053
TT
14062021-03-08 Tom Tromey <tom@tromey.com>
1407
1408 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
1409 New method.
1410 * ada-exp.h (class ada_var_msym_value_operation): New.
1411
99a3b1e7
TT
14122021-03-08 Tom Tromey <tom@tromey.com>
1413
1414 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1415 (ada_var_value_operation::evaluate): New methods.
1416 * ada-exp.h (class ada_var_value_operation): New.
1417
60fa02ca
TT
14182021-03-08 Tom Tromey <tom@tromey.com>
1419
1420 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
1421 * ada-exp.h (class ada_unop_atr_operation): New.
1422
82c3886e
TT
14232021-03-08 Tom Tromey <tom@tromey.com>
1424
1425 * ada-lang.c (ada_binop_in_bounds): No longer static.
1426 * ada-exp.h (class ada_binop_in_bounds_operation): New.
1427
1b1ebfab
TT
14282021-03-08 Tom Tromey <tom@tromey.com>
1429
1430 * ada-lang.c (ada_ternop_slice): No longer static.
1431 * ada-exp.h (class ada_ternop_slice_operation): New.
1432
039e4b76
TT
14332021-03-08 Tom Tromey <tom@tromey.com>
1434
1435 * ada-exp.h (ada_bitwise_operation): New template class.
1436 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
1437 (ada_bitwise_xor_operation): New typedefs.
1438
6e8fb7b7
TT
14392021-03-08 Tom Tromey <tom@tromey.com>
1440
1441 * ada-lang.c (ada_equal_binop): No longer static.
1442 * ada-exp.h (class ada_binop_equal_operation): New.
1443
d9e7db06
TT
14442021-03-08 Tom Tromey <tom@tromey.com>
1445
1446 * ada-lang.c (ada_mult_binop): No longer static.
1447 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
1448 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
1449
73796c73
TT
14502021-03-08 Tom Tromey <tom@tromey.com>
1451
1452 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
1453 * ada-exp.h (class ada_binop_addsub_operation): New.
1454
cd9a3148
TT
14552021-03-08 Tom Tromey <tom@tromey.com>
1456
1457 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1458 (ada_resolve_variable): Declare.
1459 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
1460 (ada_resolve_variable): New functions.
1461 (resolve_subexp): Update.
1462
cf12b17f
TT
14632021-03-08 Tom Tromey <tom@tromey.com>
1464
1465 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
1466 method.
1467 * c-exp.h (class opencl_ternop_cond_operation): New.
1468
944fd3b8
TT
14692021-03-08 Tom Tromey <tom@tromey.com>
1470
1471 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
1472 method.
1473 * c-exp.h (class opencl_logical_binop_operation): New.
1474
33b79214
TT
14752021-03-08 Tom Tromey <tom@tromey.com>
1476
1477 * opencl-lang.c (opencl_structop_operation::evaluate): New
1478 method.
1479 * c-exp.h (class opencl_structop_operation): New.
1480
2492ba36
TT
14812021-03-08 Tom Tromey <tom@tromey.com>
1482
1483 * opencl-lang.c (opencl_logical_not): No longer static. Change
1484 parameters.
1485 (evaluate_subexp_opencl): Update.
1486 * c-exp.h (opencl_notequal_operation): New typedef.
1487
a88c3c8d
TT
14882021-03-08 Tom Tromey <tom@tromey.com>
1489
1490 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
1491 static. Change parameters.
1492 (eval_opencl_assign): No longer static. Add "op" parameter.
1493 (evaluate_subexp_opencl): Update.
1494 * c-exp.h (opencl_binop_operation): New template class.
1495 (opencl_assign_operation, opencl_equal_operation)
1496 (opencl_notequal_operation, opencl_less_operation)
1497 (opencl_gtr_operation, opencl_geq_operation)
1498 (opencl_leq_operation): New typedefs.
1499
e9677704
TT
15002021-03-08 Tom Tromey <tom@tromey.com>
1501
1502 * opencl-lang.c (opencl_value_cast): No longer static.
1503 * c-exp.h (opencl_cast_type_operation): New typedef.
1504
f403a4e4
TT
15052021-03-08 Tom Tromey <tom@tromey.com>
1506
1507 * f-exp.h (eval_op_f_allocated): Declare.
1508 (fortran_allocated_operation): New typedef.
1509 * f-lang.c (eval_op_f_allocated): No longer static.
1510
eb4c9271
TT
15112021-03-08 Tom Tromey <tom@tromey.com>
1512
1513 * f-lang.c (eval_op_f_associated): New functions.
1514 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
1515 typedefs.
1516
58a76c72
TT
15172021-03-08 Tom Tromey <tom@tromey.com>
1518
1519 * f-lang.c (fortran_bound_1arg::evaluate)
1520 (fortran_bound_2arg::evaluate): New methods.
1521 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
1522 New.
1523
2f98abe1
TT
15242021-03-08 Tom Tromey <tom@tromey.com>
1525
1526 * expop.h (class unop_addr_operation) <get_expression>: New
1527 method.
1528 * f-lang.c (fortran_undetermined::value_subarray)
1529 (fortran_undetermined::evaluate): New methods.
1530 (fortran_prepare_argument): New overload.
1531 * f-exp.h (class fortran_range_operation)
1532 (class fortran_undetermined): New classes.
1533
638fd74a
TT
15342021-03-08 Tom Tromey <tom@tromey.com>
1535
1536 * rust-lang.c (rust_structop::evaluate_funcall): New method.
1537 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
1538 method.
1539
a00b7254
TT
15402021-03-08 Tom Tromey <tom@tromey.com>
1541
1542 * expression.h (class operation) <evaluate_funcall>: New methods.
1543 * expop.h (class scope_operation) <evaluate_funcall>: New method.
1544 (class var_value_operation) <evaluate_funcall>: New method.
1545 (class structop_base_operation) <evaluate_funcall>: New method.
1546 (class var_msym_value_operation) <evaluate_funcall>: New method.
1547 (class structop_member_base): New class.
1548 (class structop_member_operation): Derive from
1549 structop_member_base.
1550 (class structop_mptr_operation): Derive from
1551 structop_member_base.
1552 (class funcall_operation): New class.
1553 * eval.c (operation::evaluate_funcall)
1554 (var_value_operation::evaluate_funcall)
1555 (scope_operation::evaluate_funcall)
1556 (structop_member_base::evaluate_funcall)
1557 (structop_base_operation::evaluate_funcall): New methods.
1558
1c02eb30
TT
15592021-03-08 Tom Tromey <tom@tromey.com>
1560
1561 * expop.h (class array_operation): New.
1562 * eval.c (array_operation::evaluate_struct_tuple)
1563 (array_operation::evaluate): New methods.
1564
e4479080
TT
15652021-03-08 Tom Tromey <tom@tromey.com>
1566
1567 * expop.h (class adl_func_operation): New.
1568 * eval.c (adl_func_operation::evaluate): New method.
1569
95d49dfb
TT
15702021-03-08 Tom Tromey <tom@tromey.com>
1571
1572 * ada-lang.c (ada_unop_in_range): No longer static.
1573 * ada-exp.h (class ada_unop_range_operation): New.
1574
7c15d377
TT
15752021-03-08 Tom Tromey <tom@tromey.com>
1576
1577 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
1578 No longer static.
1579 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
1580 (ada_atr_size_operation, ada_abs_operation): New typedefs.
1581
5019124b
TT
15822021-03-08 Tom Tromey <tom@tromey.com>
1583
1584 * expop.h (class logical_and_operation)
1585 (class logical_or_operation): New.
1586 * eval.c (logical_and_operation::evaluate)
1587 (logical_or_operation::evaluate): New methods.
1588 * ax-gdb.c (logical_and_operation::do_generate_ax)
1589 (logical_or_operation::do_generate_ax): New methods.
1590
2bc9b40c
TT
15912021-03-08 Tom Tromey <tom@tromey.com>
1592
1593 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
1594 static.
1595 * m2-exp.h: New file.
1596
5947d337
TT
15972021-03-08 Tom Tromey <tom@tromey.com>
1598
1599 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
1600 * rust-exp.h (class rust_aggregate_operation): New.
1601
e4407a20
TT
16022021-03-08 Tom Tromey <tom@tromey.com>
1603
1604 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
1605 No longer static.
1606 * rust-exp.h (class rust_struct_anon): New.
1607 (class rust_structop): New.
1608
9db6b6dd
TT
16092021-03-08 Tom Tromey <tom@tromey.com>
1610
1611 * rust-lang.c (rust_range): No longer static.
1612 * rust-exp.h (class rust_range_operation): New.
1613
6ce1ad67
TT
16142021-03-08 Tom Tromey <tom@tromey.com>
1615
1616 * rust-lang.c (rust_subscript): No longer static.
1617 * rust-exp.h (class rust_subscript_operation): New.
1618
11dd3dce
TT
16192021-03-08 Tom Tromey <tom@tromey.com>
1620
1621 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
1622 parameter.
1623 (rust_evaluate_subexp): Update.
1624 * rust-exp.h (class rust_unop_ind_operation): New.
1625
6fab4359
TT
16262021-03-08 Tom Tromey <tom@tromey.com>
1627
1628 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
1629 longer static. Add "opcode" parameter.
1630 (rust_evaluate_subexp): Update.
1631 * rust-exp.h: New file.
1632
9dcd3e29
TT
16332021-03-08 Tom Tromey <tom@tromey.com>
1634
1635 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
1636 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
1637 (eval_op_f_kind): No longer static. Add "opcode" parameter.
1638 (evaluate_subexp_f): Update.
1639 * f-exp.h: New file.
1640
fc715eb2
TT
16412021-03-08 Tom Tromey <tom@tromey.com>
1642
1643 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
1644 * ada-exp.h (class ada_ternop_range_operation): New.
1645
cc6bd32e
TT
16462021-03-08 Tom Tromey <tom@tromey.com>
1647
1648 * ada-lang.c (ada_qual_operation::evaluate): New method.
1649 * ada-exp.h (class ada_qual_operation): New.
1650
42fecb61
TT
16512021-03-08 Tom Tromey <tom@tromey.com>
1652
1653 * ada-lang.c (ada_string_operation::evaluate): New method.
1654 * ada-exp.h (class ada_string_operation): New.
1655
03070ee9
TT
16562021-03-08 Tom Tromey <tom@tromey.com>
1657
1658 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
1659 * ada-exp.h: New file.
1660
821e72d7
TT
16612021-03-08 Tom Tromey <tom@tromey.com>
1662
1663 * expop.h (class multi_subscript_operation): New.
1664 * eval.c (multi_subscript_operation::evaluate): New method.
1665
085734dd
TT
16662021-03-08 Tom Tromey <tom@tromey.com>
1667
1668 * eval.c (objc_msgcall_operation::evaluate): New method.
1669 * c-exp.h (class objc_msgcall_operation): New.
1670
e82a5afc
TT
16712021-03-08 Tom Tromey <tom@tromey.com>
1672
1673 * expop.h (class var_value_operation): New.
1674 * eval.c (var_value_operation::evaluate)
1675 (var_value_operation::evaluate_for_address)
1676 (var_value_operation::evaluate_with_coercion)
1677 (var_value_operation::evaluate_for_sizeof)
1678 (var_value_operation::evaluate_for_cast): New methods.
1679 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
1680
d9ad79d8
TT
16812021-03-08 Tom Tromey <tom@tromey.com>
1682
1683 * expop.h (cxx_cast_ftype): New typedef.
1684 (cxx_cast_operation): New template.
1685 (dynamic_cast_operation, reinterpret_cast_operation): New
1686 typedefs.
1687
292382f4
TT
16882021-03-08 Tom Tromey <tom@tromey.com>
1689
1690 * expop.h (class unop_cast_type_operation): New.
1691 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
1692 method.
1693
165a813a
TT
16942021-03-08 Tom Tromey <tom@tromey.com>
1695
1696 * expop.h (class unop_cast_operation): New.
1697 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
1698
e5946e16
TT
16992021-03-08 Tom Tromey <tom@tromey.com>
1700
1701 * expop.h (class assign_modify_operation): New.
1702 * eval.c (eval_binop_assign_modify): No longer static.
1703 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
1704
40786782
TT
17052021-03-08 Tom Tromey <tom@tromey.com>
1706
1707 * expop.h (class assign_operation): New.
1708 * ax-gdb.c (assign_operation::do_generate_ax): New method.
1709
44b675c8
TT
17102021-03-08 Tom Tromey <tom@tromey.com>
1711
1712 * expop.h (class type_instance_operation): New.
1713 * eval.c (type_instance_operation::evaluate): New method.
1714
f6b42326
TT
17152021-03-08 Tom Tromey <tom@tromey.com>
1716
1717 * expop.h (class op_this_operation): New.
1718 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
1719
cbc18219
TT
17202021-03-08 Tom Tromey <tom@tromey.com>
1721
1722 * expop.h (class unop_memval_operation)
1723 (class unop_memval_type_operation): New.
1724 * eval.c (eval_op_memval): No longer static.
1725 (unop_memval_operation::evaluate_for_address)
1726 (unop_memval_type_operation::evaluate_for_address)
1727 (unop_memval_operation::evaluate_for_sizeof)
1728 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
1729 * ax-gdb.c (unop_memval_operation::do_generate_ax)
1730 (unop_memval_type_operation::do_generate_ax): New methods.
1731
ae4bb61e
TT
17322021-03-08 Tom Tromey <tom@tromey.com>
1733
1734 * expop.h (class unop_alignof_operation): New.
1735 * eval.c (eval_op_alignof): No longer static.
1736
85d23bda
TT
17372021-03-08 Tom Tromey <tom@tromey.com>
1738
1739 * expop.h (class unop_sizeof_operation): New.
1740 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
1741
14aff815
TT
17422021-03-08 Tom Tromey <tom@tromey.com>
1743
1744 * expop.h (class unop_addr_operation): New.
1745 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
1746
929f3aa7
TT
17472021-03-08 Tom Tromey <tom@tromey.com>
1748
1749 * expop.h (class typeid_operation): New.
1750
0af8829e
TT
17512021-03-08 Tom Tromey <tom@tromey.com>
1752
1753 * expop.h (class decltype_operation): New.
1754
4efc574c
TT
17552021-03-08 Tom Tromey <tom@tromey.com>
1756
1757 * expop.h (class typeof_operation): New.
1758
5b5f5140
TT
17592021-03-08 Tom Tromey <tom@tromey.com>
1760
1761 * expop.h (class type_operation): New.
1762 * eval.c (eval_op_type): No longer static.
1763
876469ff
TT
17642021-03-08 Tom Tromey <tom@tromey.com>
1765
1766 * expop.h (class unop_ind_base_operation)
1767 (class unop_ind_operation): New.
1768 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
1769 (unop_ind_base_operation::evaluate_for_address)
1770 (unop_ind_base_operation::evaluate_for_sizeof): New method.
1771 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
1772
6d89e296
TT
17732021-03-08 Tom Tromey <tom@tromey.com>
1774
1775 * expop.h (unop_incr_operation): New template.
1776 (preinc_operation, predec_operation, postinc_operation)
1777 (postdec_operation): New typedefs.
1778 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
1779 (eval_op_postdec): No longer static.
1780
9307d17b
TT
17812021-03-08 Tom Tromey <tom@tromey.com>
1782
1783 * expop.h (unary_ftype): New typedef.
1784 (unop_operation, usual_ax_binop_operation): New templates.
1785 (unary_plus_operation, unary_neg_operation)
1786 (unary_complement_operation, unary_logical_not_operation): New
1787 typedefs.
1788 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
1789 (eval_op_lognot): No longer static.
1790 * ax-gdb.c (gen_expr_unop): New function.
1791
ae64ba58
TT
17922021-03-08 Tom Tromey <tom@tromey.com>
1793
1794 * ax-gdb.c (comma_operation::do_generate_ax): New method.
1795
d4eff4c1
TT
17962021-03-08 Tom Tromey <tom@tromey.com>
1797
1798 * expop.h (class repeat_operation): New.
1799 * eval.c (eval_op_repeat): No longer static. Remove "op"
1800 parameter.
1801 (evaluate_subexp_standard): Update.
1802 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
1803
46916f2b
TT
18042021-03-08 Tom Tromey <tom@tromey.com>
1805
1806 * expop.h (class comparison_operation): New.
1807 (equal_operation, notequal_operation, less_operation)
1808 (gtr_operation, geq_operation, leq_operation): New typedefs.
1809 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
1810 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
1811
224d6424
TT
18122021-03-08 Tom Tromey <tom@tromey.com>
1813
1814 * expop.h (class subscript_operation): New.
1815 * eval.c (eval_op_subscript): No longer static.
1816
373907ff
TT
18172021-03-08 Tom Tromey <tom@tromey.com>
1818
1819 * expop.h (class binop_operation, class usual_ax_binop_operation):
1820 New.
1821 (exp_operation, intdiv_operation, mod_operation, mul_operation)
1822 (div_operation, rem_operation, lsh_operation, rsh_operation)
1823 (bitwise_and_operation, bitwise_ior_operation)
1824 (bitwise_xor_operation): New typedefs.
1825 * eval.c (eval_op_binary): No longer static.
1826
5133d78b
TT
18272021-03-08 Tom Tromey <tom@tromey.com>
1828
1829 * expop.h (class sub_operation): New.
1830 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
1831 (evaluate_subexp_standard): Update.
1832
a94323b6
TT
18332021-03-08 Tom Tromey <tom@tromey.com>
1834
1835 * expop.h (class add_operation): New.
1836 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
1837 (evaluate_subexp_standard): Update.
1838
e51e26a0
TT
18392021-03-08 Tom Tromey <tom@tromey.com>
1840
1841 * expop.h (class concat_operation): New.
1842 * eval.c (eval_op_concat): No longer static. Remove "op"
1843 parameter.
1844 (evaluate_subexp_standard): Update.
1845
07f724a8
TT
18462021-03-08 Tom Tromey <tom@tromey.com>
1847
1848 * expop.h (class structop_member_operation)
1849 (class structop_mptr_operation): New.
1850 * eval.c (eval_op_member): No longer static.
1851
ab0609be
TT
18522021-03-08 Tom Tromey <tom@tromey.com>
1853
1854 * expop.h (class structop_ptr_operation): New.
1855 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
1856 parameter.
1857
808b22cf
TT
18582021-03-08 Tom Tromey <tom@tromey.com>
1859
1860 * expop.h (class structop_base_operation)
1861 (class structop_operation): New.
1862 * eval.c (eval_op_structop_struct): No longer static.
1863
8cfd3e95
TT
18642021-03-08 Tom Tromey <tom@tromey.com>
1865
1866 * expop.h (class complex_operation): New.
1867
09db3700
TT
18682021-03-08 Tom Tromey <tom@tromey.com>
1869
1870 * eval.c (eval_op_objc_selector): No longer static.
1871 * c-exp.h (class objc_selector_operation): New.
1872
06dc61b9
TT
18732021-03-08 Tom Tromey <tom@tromey.com>
1874
1875 * eval.c: Include c-exp.h.
1876 * c-exp.h (class objc_nsstring_operation): New.
1877
72d0a711
TT
18782021-03-08 Tom Tromey <tom@tromey.com>
1879
1880 * c-lang.c (c_string_operation::evaluate): New method.
1881 * c-exp.h: New file.
1882
9186293f
TT
18832021-03-08 Tom Tromey <tom@tromey.com>
1884
1885 * expop.h (class ternop_cond_operation): New.
1886 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
1887
1594e0bb
TT
18882021-03-08 Tom Tromey <tom@tromey.com>
1889
1890 * expop.h (class ternop_slice_operation): New.
1891 * eval.c (eval_op_ternop): No longer static.
1892
b50db09f
TT
18932021-03-08 Tom Tromey <tom@tromey.com>
1894
1895 * expop.h (class string_operation): New.
1896 * eval.c (eval_op_string): No longer static.
1897
e6e01e16
TT
18982021-03-08 Tom Tromey <tom@tromey.com>
1899
1900 * expop.h (class internalvar_operation): New.
1901 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
1902
e6985c5e
TT
19032021-03-08 Tom Tromey <tom@tromey.com>
1904
1905 * expop.h (class bool_operation): New.
1906
55bdbff8
TT
19072021-03-08 Tom Tromey <tom@tromey.com>
1908
1909 * expop.h (class register_operation): New.
1910 * eval.c (eval_op_register): No longer static.
1911 * ax-gdb.c (register_operation::do_generate_ax): New method.
1912
247d935b
TT
19132021-03-08 Tom Tromey <tom@tromey.com>
1914
1915 * expop.h (class last_operation): New.
1916
17679395
TT
19172021-03-08 Tom Tromey <tom@tromey.com>
1918
1919 * expop.h (class func_static_var_operation): New.
1920 * eval.c (eval_op_func_static_var): No longer static.
1921
b5cc3923
TT
19222021-03-08 Tom Tromey <tom@tromey.com>
1923
1924 * expop.h (class var_entry_value_operation): New.
1925 * eval.c (eval_op_var_entry_value): No longer static.
1926
0c8effa3
TT
19272021-03-08 Tom Tromey <tom@tromey.com>
1928
1929 * expression.h (class operation) <set_outermost>: New method.
1930 * expop.h (class var_msym_value_operation): New.
1931 * eval.c (eval_op_var_msym_value): No longer static.
1932 (var_msym_value_operation::evaluate_for_address)
1933 (var_msym_value_operation::evaluate_for_sizeof)
1934 (var_msym_value_operation::evaluate_for_cast): New methods.
1935 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
1936 method.
1937
d336c29e
TT
19382021-03-08 Tom Tromey <tom@tromey.com>
1939
1940 * expop.h (class long_const_operation): New.
1941 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
1942
d5ab122c
TT
19432021-03-08 Tom Tromey <tom@tromey.com>
1944
1945 * expop.h (class scope_operation): New.
1946 * eval.c (eval_op_scope): No longer static.
1947 (scope_operation::evaluate_for_address): New method.
1948 * ax-gdb.c (scope_operation::do_generate_ax): New method.
1949
cae26a0c
TT
19502021-03-08 Tom Tromey <tom@tromey.com>
1951
1952 * expprint.c (float_const_operation::dump): New method.
1953 * expop.h (float_data): New typedef.
1954 (class float_const_operation): New.
1955
75f9892d
TT
19562021-03-08 Tom Tromey <tom@tromey.com>
1957
1958 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
1959 * ax-gdb.c (gen_expr_binop): New function.
1960 (gen_expr_structop): Likewise.
1961
de401988
TT
19622021-03-08 Tom Tromey <tom@tromey.com>
1963
1964 * expprint.c (expr::dump_for_expression): New functions.
1965 * expop.h (dump_for_expression): New overloads.
1966 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
1967 Update.
1968
e2803273
TT
19692021-03-08 Tom Tromey <tom@tromey.com>
1970
1971 * expression.h (expr::operation): New class.
1972 (expr::make_operation): New function.
1973 (expr::operation_up): New typedef.
1974 * expop.h: New file.
1975 * eval.c (operation::evaluate_for_cast)
1976 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
1977 New methods.
1978 * ax-gdb.c (operation::generate_ax): New method.
1979
e18c58f2
TT
19802021-03-08 Tom Tromey <tom@tromey.com>
1981
1982 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
1983 (gen_expr_binop_rest): New overload.
1984
c0d7ed8c
TT
19852021-03-08 Tom Tromey <tom@tromey.com>
1986
1987 * eval.c (eval_multi_subscript): New function.
1988 (evaluate_subexp_standard): Use it.
1989
dd5fd283
TT
19902021-03-08 Tom Tromey <tom@tromey.com>
1991
1992 * ada-lang.c (ada_binop_exp): New function.
1993 (ada_evaluate_subexp): Use it.
1994
3848abd6
TT
19952021-03-08 Tom Tromey <tom@tromey.com>
1996
1997 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
1998 parameters.
1999 (ada_evaluate_subexp): Use it.
2000
38dc70cf
TT
20012021-03-08 Tom Tromey <tom@tromey.com>
2002
2003 * ada-lang.c (ada_binop_minmax): New function.
2004 (ada_evaluate_subexp): Use it.
2005
b84564fc
TT
20062021-03-08 Tom Tromey <tom@tromey.com>
2007
2008 * ada-lang.c (ada_unop_atr): New function.
2009 (ada_evaluate_subexp): Use it.
2010
b467efaa
TT
20112021-03-08 Tom Tromey <tom@tromey.com>
2012
2013 * ada-lang.c (ada_binop_in_bounds): New function.
2014 (ada_evaluate_subexp): Use it.
2015
5ce19db8
TT
20162021-03-08 Tom Tromey <tom@tromey.com>
2017
2018 * ada-lang.c (ada_ternop_slice): New function.
2019 (ada_evaluate_subexp): Use it.
2020
214b13ac
TT
20212021-03-08 Tom Tromey <tom@tromey.com>
2022
2023 * ada-lang.c (ada_equal_binop): New function.
2024 (ada_evaluate_subexp): Use it.
2025
faa1dfd7
TT
20262021-03-08 Tom Tromey <tom@tromey.com>
2027
2028 * ada-lang.c (ada_mult_binop): New function.
2029 (ada_evaluate_subexp): Use it.
2030
d05e24e6
TT
20312021-03-08 Tom Tromey <tom@tromey.com>
2032
2033 * ada-lang.c (ada_abs): New function.
2034 (ada_evaluate_subexp): Use it.
2035
68c75735
TT
20362021-03-08 Tom Tromey <tom@tromey.com>
2037
2038 * ada-lang.c (ada_atr_size): New function.
2039 (ada_evaluate_subexp): Use it.
2040
020dbabe
TT
20412021-03-08 Tom Tromey <tom@tromey.com>
2042
2043 * ada-lang.c (ada_atr_tag): New function.
2044 (ada_evaluate_subexp): Use it.
2045
7efc87ff
TT
20462021-03-08 Tom Tromey <tom@tromey.com>
2047
2048 * ada-lang.c (ada_unop_in_range): New function.
2049 (ada_evaluate_subexp): Use it.
2050
82390ab8
TT
20512021-03-08 Tom Tromey <tom@tromey.com>
2052
2053 * ada-lang.c (ada_unop_neg): New function.
2054 (ada_evaluate_subexp): Use it.
2055
62d4bd94
TT
20562021-03-08 Tom Tromey <tom@tromey.com>
2057
2058 * ada-lang.c (eval_ternop_in_range): New function.
2059 (ada_evaluate_subexp): Use it.
2060
3634f669
TT
20612021-03-08 Tom Tromey <tom@tromey.com>
2062
2063 * opencl-lang.c (eval_opencl_assign): New function.
2064 (evaluate_subexp_opencl): Use it.
2065
5e80600e
TT
20662021-03-08 Tom Tromey <tom@tromey.com>
2067
2068 * eval.c (eval_op_objc_msgcall): New function.
2069 (evaluate_subexp_standard): Use it.
2070
fb5ba2ab
TT
20712021-03-08 Tom Tromey <tom@tromey.com>
2072
2073 * eval.c (eval_binop_assign_modify): New function.
2074 (evaluate_subexp_standard): Use it.
2075
a49881f7
TT
20762021-03-08 Tom Tromey <tom@tromey.com>
2077
2078 * m2-lang.c (eval_op_m2_subscript): New function.
2079 (evaluate_subexp_modula2): Use it.
2080
41bdced5
TT
20812021-03-08 Tom Tromey <tom@tromey.com>
2082
2083 * m2-lang.c (eval_op_m2_high): New function.
2084 (evaluate_subexp_modula2): Use it.
2085
13ea014a
TT
20862021-03-08 Tom Tromey <tom@tromey.com>
2087
2088 * eval.c (evaluate_subexp_for_address_base): New function.
2089 (evaluate_subexp_for_address): Use it.
2090 (evaluate_subexp_for_sizeof_base): New function.
2091 (evaluate_subexp_for_sizeof): Use it.
2092
1fa41fc7
TT
20932021-03-08 Tom Tromey <tom@tromey.com>
2094
2095 * rust-lang.c (eval_op_rust_structop): New function.
2096 (rust_evaluate_subexp): Use it.
2097
575cae23
TT
20982021-03-08 Tom Tromey <tom@tromey.com>
2099
2100 * rust-lang.c (eval_op_rust_struct_anon): New function.
2101 (rust_evaluate_subexp): Use it.
2102
05104233
TT
21032021-03-08 Tom Tromey <tom@tromey.com>
2104
2105 * rust-lang.c (eval_op_rust_array): New function.
2106 (rust_evaluate_subexp): Use it.
2107
6fa9831f
TT
21082021-03-08 Tom Tromey <tom@tromey.com>
2109
2110 * rust-lang.c (eval_op_rust_complement): New function.
2111 (rust_evaluate_subexp): Use it.
2112
d123f9e4
TT
21132021-03-08 Tom Tromey <tom@tromey.com>
2114
2115 * rust-lang.c (eval_op_rust_ind): New function.
2116 (rust_evaluate_subexp): Use it.
2117
984af2cb
TT
21182021-03-08 Tom Tromey <tom@tromey.com>
2119
2120 * rust-lang.c (rust_subscript): Change parameters.
2121 (rust_evaluate_subexp): Update.
2122
d148f803
TT
21232021-03-08 Tom Tromey <tom@tromey.com>
2124
2125 * rust-lang.c (rust_range): Change parameters.
2126 (rust_evaluate_subexp): Update.
2127
9cbd1c20
TT
21282021-03-08 Tom Tromey <tom@tromey.com>
2129
2130 * f-lang.c (eval_op_f_allocated): New function.
2131 (evaluate_subexp_f): Use it.
2132
3c18c49c
TT
21332021-03-08 Tom Tromey <tom@tromey.com>
2134
2135 * f-lang.c (fortran_require_array): New function.
2136 (evaluate_subexp_f): Use it.
2137
216f6fcb
TT
21382021-03-08 Tom Tromey <tom@tromey.com>
2139
2140 * f-lang.c (eval_op_f_kind): New function.
2141 (evaluate_subexp_f): Use it.
2142
00f2db6f
TT
21432021-03-08 Tom Tromey <tom@tromey.com>
2144
2145 * f-lang.c (eval_op_f_cmplx): New function.
2146 (evaluate_subexp_f): Use it.
2147
93b2b5fa
TT
21482021-03-08 Tom Tromey <tom@tromey.com>
2149
2150 * f-lang.c (eval_op_f_modulo): New function.
2151 (evaluate_subexp_f): Use it.
2152
9f1a1f3c
TT
21532021-03-08 Tom Tromey <tom@tromey.com>
2154
2155 * f-lang.c (eval_op_f_floor): New function.
2156 (evaluate_subexp_f): Use it.
2157
3dc41f3c
TT
21582021-03-08 Tom Tromey <tom@tromey.com>
2159
2160 * f-lang.c (eval_op_f_ceil): New function.
2161 (evaluate_subexp_f): Use it.
2162
e08109f2
TT
21632021-03-08 Tom Tromey <tom@tromey.com>
2164
2165 * f-lang.c (eval_op_f_mod): New function.
2166 (evaluate_subexp_f): Use it.
2167
cc05c68e
TT
21682021-03-08 Tom Tromey <tom@tromey.com>
2169
2170 * f-lang.c (eval_op_f_abs): New function.
2171 (evaluate_subexp_f): Use it.
2172
aec95807
TT
21732021-03-08 Tom Tromey <tom@tromey.com>
2174
2175 * eval.c (eval_op_type): New function.
2176 (evaluate_subexp_standard): Use it.
2177
a220ead5
TT
21782021-03-08 Tom Tromey <tom@tromey.com>
2179
2180 * eval.c (eval_op_postdec): New function.
2181 (evaluate_subexp_standard): Use it.
2182
abffe116
TT
21832021-03-08 Tom Tromey <tom@tromey.com>
2184
2185 * eval.c (eval_op_postinc): New function.
2186 (evaluate_subexp_standard): Use it.
2187
9e1361b7
TT
21882021-03-08 Tom Tromey <tom@tromey.com>
2189
2190 * eval.c (eval_op_predec): New file.
2191 (evaluate_subexp_standard): Use it.
2192
00f50884
TT
21932021-03-08 Tom Tromey <tom@tromey.com>
2194
2195 * eval.c (eval_op_preinc): New function.
2196 (evaluate_subexp_standard): Use it.
2197
3aef2a07
TT
21982021-03-08 Tom Tromey <tom@tromey.com>
2199
2200 * eval.c (eval_op_memval): New function.
2201 (evaluate_subexp_standard): Use it.
2202
acee9468
TT
22032021-03-08 Tom Tromey <tom@tromey.com>
2204
2205 * eval.c (eval_op_alignof): New function.
2206 (evaluate_subexp_standard): Use it.
2207
786f70ee
TT
22082021-03-08 Tom Tromey <tom@tromey.com>
2209
2210 * eval.c (eval_op_ind): New function.
2211 (evaluate_subexp_standard): Use it.
2212
24338fb9
TT
22132021-03-08 Tom Tromey <tom@tromey.com>
2214
2215 * eval.c (eval_op_lognot): New function.
2216 (evaluate_subexp_standard): Use it.
2217
1f09ec81
TT
22182021-03-08 Tom Tromey <tom@tromey.com>
2219
2220 * eval.c (eval_op_complement): New function.
2221 (evaluate_subexp_standard): Use it.
2222
606d105f
TT
22232021-03-08 Tom Tromey <tom@tromey.com>
2224
2225 * eval.c (eval_op_neg): New function.
2226 (evaluate_subexp_standard): Use it.
2227
39f288be
TT
22282021-03-08 Tom Tromey <tom@tromey.com>
2229
2230 * eval.c (eval_op_plus): New function.
2231 (evaluate_subexp_standard): Use it.
2232
eed70b1c
TT
22332021-03-08 Tom Tromey <tom@tromey.com>
2234
2235 * eval.c (eval_op_repeat): New function.
2236 (evaluate_subexp_standard): Use it.
2237
60cdd487
TT
22382021-03-08 Tom Tromey <tom@tromey.com>
2239
2240 * eval.c (eval_op_leq): New function.
2241 (evaluate_subexp_standard): Use it.
2242
96e3efd9
TT
22432021-03-08 Tom Tromey <tom@tromey.com>
2244
2245 * eval.c (eval_op_geq): New function.
2246 (evaluate_subexp_standard): Use it.
2247
1f78d732
TT
22482021-03-08 Tom Tromey <tom@tromey.com>
2249
2250 * eval.c (eval_op_gtr): New function.
2251 (evaluate_subexp_standard): Use it.
2252
6cad1349
TT
22532021-03-08 Tom Tromey <tom@tromey.com>
2254
2255 * eval.c (eval_op_less): New function.
2256 (evaluate_subexp_standard): Use it.
2257
1fcb3559
TT
22582021-03-08 Tom Tromey <tom@tromey.com>
2259
2260 * eval.c (eval_op_notequal): New function.
2261 (evaluate_subexp_standard): Use it.
2262
0cc96de8
TT
22632021-03-08 Tom Tromey <tom@tromey.com>
2264
2265 * eval.c (eval_op_equal): New function.
2266 (evaluate_subexp_standard): Use it.
2267
288d26bc
TT
22682021-03-08 Tom Tromey <tom@tromey.com>
2269
2270 * eval.c (eval_op_subscript): New function.
2271 (evaluate_subexp_standard): Use it.
2272
7cdcdd02
TT
22732021-03-08 Tom Tromey <tom@tromey.com>
2274
2275 * eval.c (eval_op_binary): New function.
2276 (evaluate_subexp_standard): Use it.
2277
d9790e22
TT
22782021-03-08 Tom Tromey <tom@tromey.com>
2279
2280 * eval.c (eval_op_sub): New function.
2281 (evaluate_subexp_standard): Use it.
2282
aedaf9ac
TT
22832021-03-08 Tom Tromey <tom@tromey.com>
2284
2285 * eval.c (eval_op_add): New function.
2286 (evaluate_subexp_standard): Use it.
2287
b7a96ed2
TT
22882021-03-08 Tom Tromey <tom@tromey.com>
2289
2290 * eval.c (eval_op_member): New function.
2291 (evaluate_subexp_standard): Use it.
2292
fb461aa3
TT
22932021-03-08 Tom Tromey <tom@tromey.com>
2294
2295 * eval.c (eval_op_structop_ptr): New function.
2296 (evaluate_subexp_standard): Use it.
2297
3e96c4fc
TT
22982021-03-08 Tom Tromey <tom@tromey.com>
2299
2300 * eval.c (eval_op_structop_struct): New function.
2301 (evaluate_subexp_standard): Use it.
2302
f960a617
TT
23032021-03-08 Tom Tromey <tom@tromey.com>
2304
2305 * eval.c (eval_op_ternop): New function.
2306 (evaluate_subexp_standard): Use it.
2307
5c2f201e
TT
23082021-03-08 Tom Tromey <tom@tromey.com>
2309
2310 * eval.c (eval_op_concat): New function.
2311 (evaluate_subexp_standard): Use it.
2312
f871bae1
TT
23132021-03-08 Tom Tromey <tom@tromey.com>
2314
2315 * eval.c (eval_op_objc_selector): New function.
2316 (evaluate_subexp_standard): Use it.
2317
14a1c64a
TT
23182021-03-08 Tom Tromey <tom@tromey.com>
2319
2320 * eval.c (eval_op_string): New function.
2321 (evaluate_subexp_standard): Use it.
2322
ffff730b
TT
23232021-03-08 Tom Tromey <tom@tromey.com>
2324
2325 * eval.c (eval_op_register): New function.
2326 (evaluate_subexp_standard): Use it.
2327
9b1d8af6
TT
23282021-03-08 Tom Tromey <tom@tromey.com>
2329
2330 * eval.c (eval_op_func_static_var): New function.
2331 (evaluate_subexp_standard): Use it.
2332
c0df9289
TT
23332021-03-08 Tom Tromey <tom@tromey.com>
2334
2335 * eval.c (eval_op_var_msym_value): New function.
2336 (evaluate_subexp_standard): Use it.
2337
50b98adc
TT
23382021-03-08 Tom Tromey <tom@tromey.com>
2339
2340 * eval.c (eval_op_var_entry_value): New function.
2341 (evaluate_subexp_standard): Use it.
2342
ea2d29f7
TT
23432021-03-08 Tom Tromey <tom@tromey.com>
2344
2345 * eval.c (eval_op_scope): New function.
2346 (evaluate_subexp_standard): Use it.
2347
01573d73
TT
23482021-03-06 Chernov Sergey <klen_s@mail.ru>
2349
2350 PR gdb/27528:
2351 * ada-lang.c (ada_fold_name): Use gdb::to_string.
2352
9938d15a
TT
23532021-03-06 Tom Tromey <tom@tromey.com>
2354
2355 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
2356 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
2357 * dwarf2/read.c (dwarf2_elf_names): No longer static.
2358 (locate_dwz_sections, dwz_search_other_debugdirs)
2359 (dwarf2_get_dwz_file): Move to dwz.c.
2360 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
2361 read.h.
2362 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
2363 (dwarf2_get_dwz_file): Move from read.c.
2364
18035655
TT
23652021-03-06 Tom Tromey <tom@tromey.com>
2366
2367 * debuginfod-support.h: Include scoped_fd.h.
2368
a7308ce0
TT
23692021-03-06 Tom Tromey <tom@tromey.com>
2370
2371 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
2372 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
2373 (get_abbrev_section_for_cu, read_attribute_value)
2374 (get_debug_line_section): Update.
2375 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2376
fbedd546
TT
23772021-03-06 Tom Tromey <tom@tromey.com>
2378
2379 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
2380 method.
2381 * dwarf2/read.c (section_is_p): Remove.
2382 (dwarf2_per_bfd::locate_sections)
2383 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
2384 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
2385 (dwarf2_locate_common_dwp_sections)
2386 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
2387 Update.
2388
c2a62a3d
TT
23892021-03-06 Tom Tromey <tom@tromey.com>
2390
2391 * xcoffread.c: Include sect-names.h.
2392 * symfile.h (struct dwarf2_section_names, struct
2393 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
2394 * dwarf2/sect-names.h: New file, from symfile.h.
2395 * dwarf2/read.c: Include sect-names.h.
2396
4444f407
TT
23972021-03-06 Tom Tromey <tom@tromey.com>
2398
2399 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
2400 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
2401 (abbrev_table::read): Update.
2402 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
2403 (struct abbrev_info): Reformat.
2404 <attrs>: Now an array.
2405 (struct abbrev_table) <alloc_abbrev>: Remove.
2406
dd99cf0c
WP
24072021-03-06 Weimin Pan <weimin.pan@oracle.com>
2408
2409 * ctfread.c (ctf_psymtab_add_enums): New function.
2410 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
2411
844be3f2
WP
24122021-03-06 Weimin Pan <weimin.pan@oracle.com>
2413
2414 * ctfread.c (read_func_kind_type): Set up function arguments.
2415
b2668f28
AB
24162021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2417 Andrew Burgess <andrew.burgess@embecosm.com>
2418
2419 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
2420 includes.
2421 (riscv_csrset): New static global.
2422 (riscv_update_csrmap): New function.
2423 (riscv_iterate_over_regset_sections): Process CSRs.
2424
d782d24b
AB
24252021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2426
2427 * riscv-tdep.c (riscv_feature_name_csr): Define.
2428 (riscv_feature_name_cpu): Define.
2429 (riscv_feature_name_fpu): Define.
2430 (riscv_feature_name_virtual): Define.
2431 (riscv_xreg_feature): Use riscv_feature_name_cpu.
2432 (riscv_freg_feature): Use riscv_feature_name_fpu.
2433 (riscv_virtual_feature): Use riscv_feature_name_virtual.
2434 (riscv_csr_feature): Use riscv_feature_name_csr.
2435 * riscv-tdep.h (riscv_feature_name_csr): Declare.
2436
fb8f3fc0
AB
24372021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2438 Craig Blackmore <craig.blackmore@embecosm.com>
2439
2440 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
2441 (ALLDEPFILES): Add riscv-none-tdep.c.
2442 * configure: Regenerate.
2443 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
2444 support.
2445 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
2446 * elf-none-tdep.c: New file.
2447 * elf-none-tdep.h: New file.
2448 * riscv-none-tdep.c: New file.
2449
95ce627a
AB
24502021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2451 Andrew Burgess <andrew.burgess@embecosm.com>
2452
2453 * corelow.c: Add 'xml-tdesc.h' include.
2454 (core_target::read_description): Load the target description from
2455 the core file when possible.
2456 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
2457 note.
2458 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
2459 (gcore_elf_make_tdesc_note): New function.
2460 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
2461 * linux-tdep.c (linux_make_corefile_notes): Add target description
2462 note.
2463
f3a5df7b
AB
24642021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2465
2466 * Makefile.in (SFILES): Add gcore-elf.c.
2467 (HFILES_NO_SRCDIR): Add gcore-elf.h
2468 * configure: Regenerate.
2469 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
2470 support.
2471 * fbsd-tdep.c: Add 'gcore-elf.h' include.
2472 (struct fbsd_collect_regset_section_cb_data): Delete.
2473 (fbsd_collect_regset_section_cb): Delete.
2474 (fbsd_collect_thread_registers): Delete.
2475 (struct fbsd_corefile_thread_data): Delete.
2476 (fbsd_corefile_thread): Delete.
2477 (fbsd_make_corefile_notes): Call
2478 gcore_elf_build_thread_register_notes instead of the now deleted
2479 FreeBSD code.
2480 * gcore-elf.c: New file, the content was moved here from
2481 linux-tdep.c, functions were renamed and given minor cleanup.
2482 * gcore-elf.h: New file.
2483 * gcore.c (gcore_find_signalled_thread): Moved here from
2484 linux-tdep.c and given a new name. Minor cleanups.
2485 * gcore.h (gcore_find_signalled_thread): Declare.
2486 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
2487 (struct linux_collect_regset_section_cb_data): Delete.
2488 (linux_collect_regset_section_cb): Delete.
2489 (linux_collect_thread_registers): Delete.
2490 (linux_corefile_thread): Call
2491 gcore_elf_build_thread_register_notes.
2492 (find_signalled_thread): Delete.
2493 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2494
d1e93af6
SM
24952021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
2496
2497 PR gdb/27147
2498 * sparc-nat.h (sparc_fetch_inferior_registers): Add
2499 process_stratum_target parameter,
2500 sparc_store_inferior_registers): update callers.
2501 * sparc-nat.c (sparc_fetch_inferior_registers,
2502 sparc_store_inferior_registers): Add process_stratum_target
2503 parameter. Switch current thread before calling
2504 sparc_supply_gregset / sparc_collect_rwindow.
2505 (sparc_store_inferior_registers): Likewise.
2506 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
2507 (sparc32obsd_collect_uthread): Likewise.
2508 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
2509 Add assertion.
2510 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
2511 sparc64obsd_supply_uthread): Add assertion.
2512
1178743e
TT
25132021-03-04 Tom Tromey <tromey@adacore.com>
2514
2515 * ada-lang.c (struct match_data) <found_sym>: Now bool.
2516 (aux_add_nonlocal_symbols): Update.
2517 (ada_add_block_symbols): Change "found_sym" to bool.
2518
1bfa81ac
TT
25192021-03-03 Tom Tromey <tromey@adacore.com>
2520
2521 * ada-lang.c (ada_resolve_function): Update comment.
2522 (is_nonfunction, add_symbols_from_enclosing_procs)
2523 (remove_extra_symbols): Likewise.
2524 (struct match_data): Add constructor, initializers.
2525 (add_nonlocal_symbols): Remove memset.
2526 (aux_add_nonlocal_symbols): Update comment.
2527 (ada_add_block_renamings, add_nonlocal_symbols)
2528 (ada_add_all_symbols): Likewise.
2529 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
2530
bbcdf9ab
TT
25312021-03-02 Tom Tromey <tromey@adacore.com>
2532
2533 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
2534 (cast_to_gnat_encoded_fixed_point_type): Remove.
2535 (ada_value_cast, ada_evaluate_subexp): Update.
2536 (gnat_encoded_fixed_point_type_info)
2537 (ada_is_gnat_encoded_fixed_point_type)
2538 (gnat_encoded_fixed_point_delta)
2539 (gnat_encoded_fixed_point_scaling_factor): Remove.
2540 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
2541 (gnat_encoded_fixed_point_delta)
2542 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
2543 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
2544 (ada_print_type): Update.
2545 * ada-valprint.c (ada_value_print_num): Update.
2546 * dwarf2/read.c (ada_get_gnat_encoded_number)
2547 (ada_get_gnat_encoded_ratio): New functions.
2548 (finish_fixed_point_type): Use them. Add parameters.
2549 (GNAT_FIXED_POINT_SUFFIX): New define.
2550 (gnat_encoded_fixed_point_type_info): New function.
2551 (read_base_type): Handle gnat encodings.
2552
5f9febe0
TT
25532021-03-02 Tom Tromey <tromey@adacore.com>
2554
2555 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
2556 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
2557 std::string.
2558 (GROW_VECT): Remove.
2559 (grow_vect): Remove.
2560
d1183b06
TT
25612021-03-02 Tom Tromey <tromey@adacore.com>
2562
2563 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
2564 * ada-lang.c (resolve_subexp): Update.
2565 (ada_resolve_function): Accept a vector.
2566 (is_nonfunction, add_defn_to_vec)
2567 (add_symbols_from_enclosing_procs): Likewise.
2568 (num_defns_collected, defns_collected): Remove.
2569 (remove_extra_symbols): Return a vector.
2570 (remove_irrelevant_renamings): Return void.
2571 (ada_add_local_symbols): Accept a vector.
2572 (struct match_data) <obstackp>: Remove.
2573 <resultp>: New member.
2574 (aux_add_nonlocal_symbols): Update.
2575 (ada_add_block_renamings, add_nonlocal_symbols)
2576 (ada_add_all_symbols): Accept a vector.
2577 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
2578 vector.
2579 (ada_lookup_symbol): Update.
2580 (ada_add_block_symbols): Accept a vector.
2581 (get_var_value, iterate_over_symbols): Update.
2582 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
2583 Update.
2584
886d459f
TT
25852021-03-02 Tom Tromey <tromey@adacore.com>
2586
2587 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
2588
bdcccc56
TT
25892021-03-02 Tom Tromey <tromey@adacore.com>
2590
2591 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
2592 auto_obstack.
2593 <root>: Initialize.
2594 (ada_pspace_data): Remove destructor.
2595 <sym_cache>: Now a unique_ptr.
2596 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
2597 (ada_get_symbol_cache): Use 'new'.
2598 (ada_clear_symbol_cache): Rewrite.
2599
1228719f
TT
26002021-03-02 Tom Tromey <tromey@adacore.com>
2601
2602 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
2603 is null.
2604
bb3a4efe
LS
26052021-02-27 Lancelot Six <lsix@lancelotsix.com>
2606
2607 PR gdb/27393
2608 * source.c (add_path): Skip empty dirnames.
2609
26b43ca6 26102021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
2611
2612 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
2613 include order for <sys/ptrace.h> and <asm/ptrace.h>.
2614
dffdd8b5
SM
26152021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
2616
2617 PR gdb/26861
2618 * target.c (target_mourn_inferior): Only compare pids in
2619 target_mourn_inferior.
2620
64d38fdd
JM
26212021-02-25 Jan Matyas <jmatyas@codasip.com>
2622
2623 PR gdb/26819
2624 * remote.c (remote_target::start_remote): Ensure the single
2625 thread, automatically added for remote targets without the
2626 concept of threading, is initially in set to the "resumed"
2627 state.
2628 * remote.c (remote_target::add_current_inferior_and_thread):
2629 Add return value - return the main thread.
2630
2450ad54
JV
26312021-02-25 Jan Vrany <jan.vrany@labware.com>
2632
2633 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
2634 (mi_tsv_created): Likewise.
2635 (mi_tsv_deleted): Likewise.
2636
30c80d88
TV
26372021-02-25 Tom de Vries <tdevries@suse.de>
2638
2639 PR symtab/27354
2640 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
2641 section_kind for &dwo_file->sections.info.
2642
68337b8b
AB
26432021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2644
2645 PR fortran/26155
2646 * f-lang.c (fortran_argument_convert): Delete declaration.
2647 (fortran_prepare_argument): New function.
2648 (evaluate_subexp_f): Move logic to new function
2649 fortran_prepare_argument.
2650
faeb9f13
AB
26512021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2652
2653 * f-exp.y (f77_keywords): Add 'associated'.
2654 * f-lang.c (fortran_associated): New function.
2655 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
2656 (operator_length_f): Likewise.
2657 (print_unop_or_binop_subexp_f): New function.
2658 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
2659 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
2660 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
2661 (operator_check_f): Likewise.
2662 * std-operator.def: Add FORTRAN_ASSOCIATED.
2663
170f4b23
AB
26642021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2665
2666 * f-exp.y (fortran_operators): Add ".xor.".
2667
aa659cfa
TV
26682021-02-24 Tom de Vries <tdevries@suse.de>
2669
2670 PR symtab/27336
2671 * dwarf2/attribute.c (attribute::form_is_signed): New function
2672 factored out of ...
2673 * dwarf2/attribute.h (attribute::as_signed): ... here.
2674 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
2675 (attribute::form_is_signed): Declare.
2676 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
2677 for DW_AT_decl_file.
2678
268c77c1
KB
26792021-02-24 Kevin Buettner <kevinb@redhat.com>
2680
2681 * nat/aarch64-linux-hw-point.c: Add comment regarding include
2682 order for <sys/ptrace.h> and <asm/ptrace.h>.
2683
665af52e
KB
26842021-02-24 Kevin Buettner <kevinb@redhat.com>
2685
2686 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
2687 <sys/ptrace.h>.
2688
dd80d750
AB
26892021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2690
2691 * exec.c (set_section_command): Move variable declarations into
2692 the function body, and use std::string instead of a fixed size
2693 buffer.
2694
336aa7b7
AB
26952021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2696
2697 * exec.c (exec_target::get_section_table): Delete member function.
2698 (section_table_read_available_memory): Use current_top_target, not
2699 just the exec_ops target.
2700 * target-delegates.c: Regenerate.
2701 * target.c (default_get_section_table): New function.
2702 * target.h (target_ops::get_section_table): Change default
2703 behaviour to call default_get_section_table.
2704 (default_get_section_table): Declare.
2705
02f7d26b
AB
27062021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2707
2708 * exec.c (exec_target::close): Call new clear_target_sections
2709 function.
2710 (program_space::add_target_sections): Update name of member
2711 variable.
2712 (program_space::add_target_sections): Update name of member
2713 variable.
2714 (program_space::remove_target_sections): Likewise.
2715 (exec_one_fork): Use new target_sections member function.
2716 (exec_target::get_section_table): Likewise.
2717 (exec_target::files_info): Likewise.
2718 (set_section_command): Likewise.
2719 (exec_set_section_address): Likewise.
2720 (exec_target::has_memory): Use new target_sections member
2721 function.
2722 * progspace.h (program_space::clear_target_sections): New member
2723 function.
2724 (program_space::target_sections): Rename member variable to
2725 m_target_sections, replace with a new member function.
2726 (program_space::m_target_sections): New member variable.
2727 * solib-dsbt.c (scan_dyntag): Use new member function.
2728 * solib-svr4.c (scan_dyntag): Likewise.
2729
19cf757a
AB
27302021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2731
2732 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
2733 return type const.
2734 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
2735 (section_table_read_available_memory): Make local const.
2736 (exec_target::xfer_partial): Make local const.
2737 (print_section_info): Make parameter const.
2738 * gdb/exec.h (print_section_info): Likewise.
2739 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
2740 const.
2741 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
2742 Likewise.
2743 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
2744 Likewise.
2745 * gdb/s390-tdep.c (s390_load): Likewise.
2746 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
2747 * gdb/solib-svr4.c (scan_dyntag): Likewise.
2748 * gdb/target-debug.h (target_debug_print_target_section_table_p):
2749 Rename to...
2750 (target_debug_print_const_target_section_table_p): ...this.
2751 * gdb/target-delegates.c: Regenerate.
2752 * gdb/target.c (target_get_section_table): Make return type const.
2753 (target_section_by_addr): Likewise. Also make some locals const.
2754 (memory_xfer_partial_1): Make some locals const.
2755 * gdb/target.h (struct target_ops) <get_section_table>: Make
2756 return type const.
2757 (target_section_by_addr): Likewise.
2758 (target_get_section_table): Likewise.
2759
02a79309
AB
27602021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2761
2762 * NEWS: Mention new 'maint info target-sections' command.
2763 * maint.c (maintenance_info_target_sections): New function.
2764 (_initialize_maint_cmds): Register new command.
2765
895b7b4e
AB
27662021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2767
2768 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
2769 (riscv_features_from_bfd): ...this. Change parameter type to
2770 'bfd*', and update as required.
2771 (riscv_find_default_target_description): Update call to
2772 riscv_features_from_bfd. Select a default xlen based on
2773 info.bfd_arch_info.
2774 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
2775
bc3c0632
AB
27762021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2777
2778 * eval.c (evaluate_subexp_standard): Call value_ind for points to
2779 dynamic types in UNOP_IND.
2780
08ac5771
SM
27812021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2782
2783 PR gdb/26828
2784 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
2785 Instantiate queue.
2786 (~dwarf2_queue_guard): Clear queue.
2787 (queue_comp_unit): Assert that queue is
2788 instantiated.
2789 (process_queue): Adjust.
2790 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
2791
616c069a
SM
27922021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2793
2794 PR gdb/26828
2795 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
2796 to decide whether or not to enqueue it for expansion.
2797 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
2798 after calling maybe_queue_comp_unit.
2799
897608ed
SM
28002021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2801
2802 * linux-nat.c (linux_nat_filter_event): Return void.
2803
15908a11
TT
28042021-02-22 Tom Tromey <tromey@adacore.com>
2805
2806 * solib-svr4.c (enable_break): Update.
2807 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
2808 type.
2809 (target_bfd_reopen): Change parameter type.
2810 * bfd-target.h (target_bfd_reopen): Change parameter type.
2811
f53fc427
SM
28122021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2813
2814 * thread.c (add_thread_silent): Add assert.
2815 (find_thread_ptid): Add assert.
2816
de146e19
SM
28172021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2818
2819 PR gdb/27435
2820 * inf-ptrace.c (struct target_unpusher): Move to target.h.
2821 (target_unpush_up): Likewise.
2822 * procfs.c (procfs_target::attach): Push target early. Use
2823 target_unpush_up to unpush target in case of error.
2824 * target.h (struct target_unpusher): Move here.
2825 (target_unpush_up): Likewise.
2826
8488c357
KB
28272021-02-19 Kevin Buettner <kevinb@redhat.com>
2828
2829 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
2830 (which in turn includes <gnulib/config.h>) before include
2831 of <signal.h>.
2832
5a9f5403
NC
28332021-02-19 Nelson Chu <nelson.chu@sifive.com>
2834
2835 PR 27158
2836 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
2837 (decode_j_type_insn): Likewise.
2838 (decode_cj_type_insn): Likewise.
2839 (decode_b_type_insn): Likewise.
2840 (decode): Likewise.
2841
26f53cd3
TT
28422021-02-18 Tom Tromey <tom@tromey.com>
2843
2844 * expression.h (struct expression) <evaluate>: Declare method.
2845 * eval.c (evaluate_subexp): Simplify.
2846 (expression::evaluate): New method.
2847 (evaluate_expression, evaluate_type): Use expression::evaluate.
2848
6a780b67
KB
28492021-02-17 Kevin Buettner <kevinb@redhat.com>
2850
2851 * ada-lang.c (ada_fold_name): Check for non-empty string prior
2852 to accessing it.
2853 (ada_lookup_name_info): Likewise.
2854
adeab0c5
MF
28552021-02-13 Mike Frysinger <vapier@gentoo.org>
2856
2857 * aclocal.m4: Regenerate.
2858
089436f7
TV
28592021-02-12 Tom de Vries <tdevries@suse.de>
2860
2861 PR threads/26228
2862 * linux-nat.c (lin_thread_get_thread_signals): Remove.
2863 (lin_thread_signals): New static var.
2864 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2865 New function.
2866 * linux-nat.h (lin_thread_get_thread_signals): Remove.
2867 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2868 Declare.
2869 * linux-thread-db.c (check_thread_signals): Use
2870 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
2871
96df3e28
AB
28722021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2873
2874 * f-exp.y (f77_keywords): Add allocated.
2875 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
2876 (operator_length_f): Likewise.
2877 (print_subexp_f): Likewise.
2878 (dump_subexp_body_f): Likewise.
2879 (operator_check_f): Likewise.
2880 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
2881
05f68f52
TV
28822021-02-11 Tom de Vries <tdevries@suse.de>
2883
2884 PR symtab/27353
2885 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
2886 Return true for DW_FORM_strx.
2887
b260f8d6
TT
28882021-02-11 Tom Tromey <tromey@adacore.com>
2889
2890 PR gdb/27383:
2891 * parse.c (write_exp_symbol_reference): Write sym.block.
2892
bf3386f0
AB
28932021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2894
2895 * NEWS: Mention changes to 'maint info sections'.
2896 * maint.c (match_substring): Return a bool, fix whitespace issue.
2897 (struct single_bfd_flag_info): New struct.
2898 (bfd_flag_info): New static global.
2899 (match_bfd_flags): Return a bool, use bfd_flag_info.
2900 (print_bfd_flags): Use bfd_flag_info.
2901 (maint_print_section_info): Delete trailing whitespace.
2902 (struct maint_info_sections_opts): New struct.
2903 (maint_info_sections_option_defs): New static global.
2904 (maint_info_sections_completer): New function.
2905 (maintenance_info_sections): Use option parsing mechanism.
2906 (_initialize_maint_cmds): Update command help text for 'maint info
2907 sections' and register a command completer.
2908
4790db14
AB
29092021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2910
2911 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
2912 functionality merged into...
2913 (maint_print_all_sections): ...this new function.
2914 (maintenance_info_sections): Make use of maint_print_all_sections,
2915 allow all objects to be printed even where there's no executable.
2916
1db66e34
AB
29172021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2918
2919 * breakpoint.c (resolve_sal_pc): Make use of
2920 bound_minimal_symbol::obj_section.
2921 * maint.c (maintenance_translate_address): Likewise.
2922 * minsyms.c (minimal_symbol_upper_bound): Likewise.
2923 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
2924 member function.
2925 * printcmd.c (info_address_command): Make use of
2926 bound_minimal_symbol::obj_section.
2927
18b8df43
AM
29282021-02-11 Alan Modra <amodra@gmail.com>
2929
2930 * arm-symbian-tdep.c: Delete.
2931 * NEWS: Mention arm-symbian removal.
2932 * Makefile.in: Remove arm-symbian-tdep entries.
2933 * configure.tgt: Remove arm*-*-symbianelf*.
2934 * doc/gdb.texinfo: Remove mention of SymbianOS.
2935 * osabi.c (gdb_osabi_names): Remove "Symbian".
2936 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
2937 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
2938 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
2939 handling.
2940 * testsuite/gdb.base/dup-sect.exp: Likewise.
2941 * testsuite/gdb.base/long_long.exp: Likewise.
2942 * testsuite/gdb.base/solib-weak.exp: Likewise.
2943 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
2944 * testsuite/gdb.python/py-section-script.exp: Likewise.
2945 * testsuite/lib/dwarf.exp: Likewise.
2946 * testsuite/lib/gdb.exp: Likewise.
2947
e92c8eb8
AB
29482021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2949
2950 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
2951 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
2952 (one_or_two_args): New pattern.
2953 (f77_keywords): Add lbound and ubound.
2954 * f-lang.c (fortran_bounds_all_dims): New function.
2955 (fortran_bounds_for_dimension): New function.
2956 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
2957 (operator_length_f): Likewise.
2958 (print_subexp_f): Likewise.
2959 (dump_subexp_body_f): Likewise.
2960 (operator_check_f): Likewise.
2961 * std-operator.def (FORTRAN_LBOUND): Define.
2962 (FORTRAN_UBOUND): Define.
2963
a52d653e
AB
29642021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2965
2966 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
2967 and set_section_index member functions where appropriate.
2968 * coffread.c (coff_symtab_read): Likewise.
2969 (process_coff_symbol): Likewise.
2970 * ctfread.c (set_symbol_address): Likewise.
2971 * dwarf2/read.c (add_partial_symbol): Likewise.
2972 (var_decode_location): Likewise.
2973 * language.c: Likewise.
2974 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
2975 (compact_minimal_symbols): Likewise.
2976 (minimal_symbol_upper_bound): Likewise.
2977 * objfiles.c (relocate_one_symbol): Likewise.
2978 * psympriv.h (partial_symbol::obj_section): Likewise.
2979 (partial_symbol::address): Likewise.
2980 * psymtab.c (partial_symtab::add_psymbol): Likewise.
2981 * stabsread.c (scan_file_globals): Likewise.
2982 * symmisc.c (dump_msymbols): Likewise.
2983 * symtab.c (general_symbol_info::obj_section): Likewise.
2984 (fixup_section): Likewise.
2985 (get_msymbol_address): Likewise.
2986 * symtab.h (general_symbol_info::section): Rename to...
2987 (general_symbol_info::m_section): ...this.
2988 (general_symbol_info::set_section_index): New member function.
2989 (general_symbol_info::section_index): Likewise.
2990 (SYMBOL_SECTION): Delete.
2991 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
2992 set_section_index member functions where appropriate.
2993 (MSYMBOL_SECTION): Delete.
2994 (symbol::symbol): Update to initialize 'm_section'.
2995 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
2996 (process_xcoff_symbol): Likewise.
2997
ebbc3a7d
AB
29982021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2999
3000 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
3001 MSYMBOL_OBJ_SECTION.
3002 * findvar.c (language_defn::read_var_value): Likewise.
3003 * infcmd.c (jump_command): Likewise.
3004 * linespec.c (minsym_found): Likewise.
3005 * maint.c (maintenance_translate_address): Likewise.
3006 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
3007 (minimal_symbol_upper_bound): Likewise.
3008 * parse.c (find_minsym_type_and_address): Likewise.
3009 (operator_check_standard): Likewise.
3010 * printcmd.c (info_address_command): Likewise.
3011 * symmisc.c (dump_msymbols): Likewise.
3012 (print_symbol): Likewise.
3013 * symtab.c (general_symbol_info::obj_section): Define new
3014 function.
3015 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
3016 (find_pc_sect_compunit_symtab): Likewise.
3017 (find_function_start_sal): Likewise.
3018 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
3019 MSYMBOL_OBJ_SECTION.
3020 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
3021 function.
3022 (SYMBOL_OBJ_SECTION): Delete.
3023 (MSYMBOL_OBJ_SECTION): Delete.
3024
9bb305b3
TT
30252021-02-09 Tom Tromey <tom@tromey.com>
3026
3027 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
3028
cf2b2075
TV
30292021-02-09 Tom de Vries <tdevries@suse.de>
3030
3031 PR symtab/27341
3032 * dwarf2/read.c (read_array_type): Return NULL when not being able to
3033 construct an array type. Add assert to ensure that element_type is
3034 not being modified.
3035
03642b71
AB
30362021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
3037
3038 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
3039 (gcore_collect_regset_section_cb): Delete.
3040 (gcore_collect_thread_registers): Delete.
3041 (gcore_build_thread_register_notes): Delete.
3042 (gcore_find_signalled_thread): Delete.
3043 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
3044 'gdbarch' and 'thread_info' declarations.
3045 (gcore_build_thread_register_notes): Delete declaration.
3046 (gcore_find_signalled_thread): Likewise.
3047 * fbsd-tdep.c: Remove 'gcore.h' include.
3048 (struct fbsd_collect_regset_section_cb_data): New struct.
3049 (fbsd_collect_regset_section_cb): New function.
3050 (fbsd_collect_thread_registers): New function.
3051 (struct fbsd_corefile_thread_data): New struct.
3052 (fbsd_corefile_thread): New function.
3053 (fbsd_make_corefile_notes): Call FreeBSD specific code.
3054 * linux-tdep.c: Remove 'gcore.h' include.
3055 (struct linux_collect_regset_section_cb_data): New struct.
3056 (linux_collect_regset_section_cb): New function.
3057 (linux_collect_thread_registers): New function.
3058 (linux_corefile_thread): Call Linux specific code.
3059 (find_signalled_thread): New function.
3060 (linux_make_corefile_notes): Call find_signalled_thread.
3061
f73e424f
TT
30622021-02-09 Tom Tromey <tromey@adacore.com>
3063
3064 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
3065 not_lval value.
3066 * value.c (value_contents_copy_raw): Now static.
3067 * value.h (value_contents_copy_raw): Don't declare.
3068
a4f0544b
TT
30692021-02-09 Tom Tromey <tromey@adacore.com>
3070
3071 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
3072 fields.
3073
9b3e4b5d
SV
30742021-02-08 Shahab Vahedi <shahab@synopsys.com>
3075
3076 PR tdep/27369
3077 * arc-linux-tdep.c (handle_atomic_sequence): New.
3078 (arc_linux_software_single_step): Call handle_atomic_sequence().
3079
29db1eb3
AB
30802021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3081
3082 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
3083 function.
3084 (REQUIRE_WINDOW): Call is_valid member function.
3085 (REQUIRE_WINDOW_FOR_SETTER): New define.
3086 (gdbpy_tui_is_valid): Call is_valid member function.
3087 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
3088 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
3089 tui_active too.
3090 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
3091 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
3092 the function.
3093
e0c23e11
AB
30942021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3095
3096 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
3097 for the title is not nullptr.
3098
1cf23996
AB
30992021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3100
3101 * tui-layout.c (saved_tui_windows): Delete.
3102 (tui_apply_current_layout): Don't make use of saved_tui_windows,
3103 call new get_windows member function instead.
3104 (tui_get_window_by_name): Check in tui_windows.
3105 (tui_layout_window::apply): Don't add to tui_windows.
3106 * tui-layout.h (tui_layout_base::get_windows): New member function.
3107 (tui_layout_window::get_windows): Likewise.
3108 (tui_layout_split::get_windows): Likewise.
3109
a53a2657
AB
31102021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3111
3112 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
3113 of the window objects.
3114
2708dbbd
AB
31152021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3116
3117 * python/python.c (gdbpy_print_stack): Reformat an error message.
3118
cd074e04
AB
31192021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3120
3121 * tui/tui-interp.c (tui_command_line_handler): New function.
3122 (tui_interp::resume): Register tui_command_line_handler as the
3123 input_handler.
3124 * tui/tui-io.c (tui_inject_newline_into_command_window): New
3125 function.
3126 (tui_getc_1): Delete handling of '\n' and '\r'.
3127 * tui-io.h (tui_inject_newline_into_command_window): Declare.
3128
4cf28e91
HD
31292021-02-07 Hannes Domani <ssbssa@yahoo.de>
3130
3131 * tui/tui-regs.c (tui_data_window::display_registers_from):
3132 Mark invisible register sub windows.
3133 (tui_data_window::check_register_values): Ignore invisible
3134 register sub windows.
3135
3537bc23
HD
31362021-02-07 Hannes Domani <ssbssa@yahoo.de>
3137
3138 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
3139 n_spaces with a negative value.
3140
5fc2d6aa
HD
31412021-02-07 Hannes Domani <ssbssa@yahoo.de>
3142
3143 * tui/tui-regs.c (tui_data_window::display_registers_from):
3144 Add refresh_window call.
3145
83962f83
HD
31462021-02-07 Hannes Domani <ssbssa@yahoo.de>
3147
3148 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
3149
0110ec82
SM
31502021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
3151
3152 * symmisc.c (std_in, std_out, std_err): Remove.
3153 (_initialize_symmisc): Don't set std_in, std_out and std_err.
3154
7c6944ab
TV
31552021-02-05 Tom de Vries <tdevries@suse.de>
3156
3157 PR breakpoints/27330
3158 * breakpoint.c (create_exception_master_breakpoint): Handle case that
3159 glibc object file has debug info.
3160
e77b0004
TV
31612021-02-05 Tom de Vries <tdevries@suse.de>
3162
3163 PR symtab/27333
3164 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
3165
0e857c82
TV
31662021-02-05 Tom de Vries <tdevries@suse.de>
3167
3168 PR breakpoints/27313
3169 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
3170 syscall numbers.
3171
bdfea17e
TT
31722021-02-05 Tom Tromey <tom@tromey.com>
3173
3174 * compile/compile-c-support.c (get_compile_context)
3175 (c_get_compile_context, cplus_get_compile_context): Change return
3176 type.
3177 * language.c (language_defn::get_compile_instance): New method.
3178 * language.h (language_defn::get_compile_instance): Change return
3179 type. No longer inline.
3180 * c-lang.c (c_language::get_compile_instance): Change return type.
3181 (cplus_language::get_compile_instance): Change return type.
3182 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
3183 Change return type.
3184 * compile/compile.c (compile_to_object): Update.
3185
1b30f421
TT
31862021-02-05 Tom Tromey <tom@tromey.com>
3187
3188 * parser-defs.h (write_exp_symbol_reference): Declare.
3189 * parse.c (write_exp_symbol_reference): New function.
3190 * p-exp.y (variable): Use write_exp_symbol_reference.
3191 * m2-exp.y (variable): Use write_exp_symbol_reference.
3192 * f-exp.y (variable): Use write_exp_symbol_reference.
3193 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
3194 * c-exp.y (variable): Use write_exp_symbol_reference.
3195
ae710496
TV
31962021-02-05 Tom de Vries <tdevries@suse.de>
3197
3198 PR exp/27265
3199 * valarith.c (complex_binop): Throw an error if complex type can't
3200 be created.
3201
d3b54e63
TV
32022021-02-05 Tom de Vries <tdevries@suse.de>
3203
3204 PR symtab/27307
3205 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
3206 return.
3207
fc9a13fb
TV
32082021-02-05 Tom de Vries <tdevries@suse.de>
3209
3210 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
3211
04b4939b
MF
32122021-02-04 Mike Frysinger <vapier@gentoo.org>
3213
3214 * configure.tgt (riscv*-*-*): Set gdb_sim.
3215
6ff267e1
SM
32162021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
3217
3218 * target.c (target_is_non_stop_p): Return bool.
3219 * target.h (target_is_non_stop_p): Return bool.
3220
fdbc5215
SM
32212021-02-04 Simon Marchi <simon.marchi@efficios.com>
3222
3223 * record-full.c (record_full_async_inferior_event_handler):
3224 Don't clear async event handler.
3225 (record_full_base_target::wait): Clear async event handler at
3226 beginning.
3227
85d3ad8e
SM
32282021-02-04 Simon Marchi <simon.marchi@efficios.com>
3229
3230 * record-btrace.c (record_btrace_handle_async_inferior_event):
3231 Don't clear async event handler.
3232 (record_btrace_target::wait): Clear async event handler at
3233 beginning.
3234
baa8575b
SM
32352021-02-04 Simon Marchi <simon.marchi@efficios.com>
3236
3237 * remote.c (remote_target::wait): Clear async event handler at
3238 beginning, mark if needed at the end.
3239 (remote_async_inferior_event_handler): Don't set or clear async
3240 event handler.
3241
6b36ddeb
SM
32422021-02-04 Simon Marchi <simon.marchi@efficios.com>
3243
3244 * async-event.h (async_event_handler_func): Add documentation.
3245 * async-event.c (check_async_event_handlers): Don't clear
3246 async_event_handler ready flag.
3247 * infrun.c (infrun_async_inferior_event_handler): Clear ready
3248 flag.
3249 * record-btrace.c (record_btrace_handle_async_inferior_event):
3250 Likewise.
3251 * record-full.c (record_full_async_inferior_event_handler):
3252 Likewise.
3253 * remote-notif.c (remote_async_get_pending_events_handler):
3254 Likewise.
3255 * remote.c (remote_async_inferior_event_handler): Likewise.
3256
72d383bb
SM
32572021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
3258
3259 * infrun.c (handle_inferior_event): Move stop_soon variable to
3260 inner scope.
3261
408f6686
PA
32622021-02-03 Pedro Alves <pedro@palves.net>
3263
3264 * infcmd.c (detach_command): Hold strong reference to target, and
3265 if all-stop on entry, restart threads on exit.
3266 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
3267 (restart_stepped_thread): ... this new function. Also handle
3268 trap_expected.
3269 (restart_after_all_stop_detach): New function.
3270 * infrun.h (restart_after_all_stop_detach): Declare.
3271
ac7d717c
PA
32722021-02-03 Pedro Alves <pedro@palves.net>
3273
3274 * infrun.c (struct step_over_info): Initialize fields.
3275 (prepare_for_detach): Handle ongoing in-line step over.
3276
e87f0fe8
PA
32772021-02-03 Pedro Alves <pedro@palves.net>
3278
3279 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
3280 here...
3281 * remote.c (remote_target::remote_detach_1): ... and here ...
3282 * target.c (target_detach): ... instead of here.
3283 * target.h (target_ops::detach): Add comment.
3284
8ff53139
PA
32852021-02-03 Pedro Alves <pedro@palves.net>
3286
3287 * infrun.c (struct wait_one_event): Move higher up.
3288 (prepare_for_detach): Abort in-progress displaced steps instead of
3289 letting them complete.
3290 (handle_one): If the inferior is detaching, don't add the thread
3291 back to the global step-over chain.
3292 (restart_threads): Don't restart threads if detaching.
3293 (handle_signal_stop): Remove inferior::detaching reference.
3294
91475068
PA
32952021-02-03 Pedro Alves <pedro@palves.net>
3296
3297 * infrun.c (prepare_for_detach): Don't release scoped_restore
3298 before returning.
3299
d758e62c
PA
33002021-02-03 Pedro Alves <pedro@palves.net>
3301
3302 * infrun.c (handle_one): New function, factored out from ...
3303 (stop_all_threads): ... here.
3304
b0083dd7
PA
33052021-02-03 Pedro Alves <pedro@palves.net>
3306
3307 * remote.c (remote_notif_stop_ack): Don't error out on
3308 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
3309 (remote_target::discard_pending_stop_replies): Don't delete
3310 in-flight notification; instead, clear its contents.
3311
621cc310
PA
33122021-02-03 Pedro Alves <pedro@palves.net>
3313
3314 * remote.c (extended_remote_target::attach): Set target async in
3315 the target-non-stop path too.
3316
2ab76a18
PA
33172021-02-03 Pedro Alves <pedro@palves.net>
3318
3319 PR gdb/27055
3320 * infrun.c (handle_signal_stop): Move main context_switch call
3321 earlier, before STOP_QUIETLY_NO_SIGSTOP.
3322
2e3773ff
LS
33232021-02-02 Lancelot SIX <lsix@lancelotsix.com>
3324
3325 * NEWS (Changed commands): Add entry for the behavior change of
3326 the inferior command.
3327 * inferior.c (inferior_command): When no argument is given to the
3328 inferior command, display info about the currently selected
3329 inferior.
3330
e57933dc
SM
33312021-02-02 Simon Marchi <simon.marchi@efficios.com>
3332
3333 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
3334 a sect_offset.
3335 (read_attribute_reprocess): Adjust.
3336
2b0c7f41
SM
33372021-02-02 Simon Marchi <simon.marchi@efficios.com>
3338
3339 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
3340 <gnu_ranges_base>: ... this...
3341 <rnglists_base>: ... and this.
3342 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
3343 <gnu_ranges_base>: ... this...
3344 <rnglists_base>: ... and this.
3345 (read_cutu_die_from_dwo): Adjust
3346 (dwarf2_get_pc_bounds): Adjust
3347 (dwarf2_record_block_ranges): Adjust.
3348 (read_full_die_1): Adjust
3349 (partial_die_info::read): Adjust.
3350 (read_rnglist_index): Adjust.
3351
a1c40103
SM
33522021-02-02 Simon Marchi <simon.marchi@efficios.com>
3353
3354 PR gdb/26813
3355 * dwarf2/read.c (read_loclists_rnglists_header): Add
3356 header_offset parameter and use it.
3357 (read_loclist_index): Read header of the current contribution,
3358 not the one at the beginning of the section.
3359 (read_rnglist_index): Likewise.
3360
b1829e1b
SM
33612021-02-02 Simon Marchi <simon.marchi@efficios.com>
3362
3363 PR gdb/26813
3364 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
3365 requires_reprocessing flag.
3366 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
3367 DW_FORM_loclistx.
3368 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
3369 and DW_FORM_loclistx.
3370 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
3371 instead of set_address for DW_FORM_loclistx and
3372 DW_FORM_rnglistx.
3373
0c800c6e
SM
33742021-02-02 Simon Marchi <simon.marchi@efficios.com>
3375
3376 * dwarf2/read.c (read_loclist_index): Remove bound check for
3377 start of offset.
3378 (read_rnglist_index): Likewise.
3379
05787bad
SM
33802021-02-02 Simon Marchi <simon.marchi@efficios.com>
3381
3382 * dwarf2/read.c (read_loclist_index): Add bound check for the end
3383 of the offset.
3384
5e4d9bbc
SM
33852021-02-02 Simon Marchi <simon.marchi@efficios.com>
3386
3387 * dwarf2/read.c (read_rnglist_index): Fix bound check.
3388
a0c1eeba
SM
33892021-02-02 Simon Marchi <simon.marchi@efficios.com>
3390
3391 * dwarf2/read.c (read_loclist_index): Change complaints into
3392 errors.
3393
2bd3e4b8
TV
33942021-02-02 Tom de Vries <tdevries@suse.de>
3395
3396 PR symtab/24620
3397 * dwarf2/index-write.c (write_one_signatured_type): Skip if
3398 psymtab == nullptr.
3399
82a1fd3a
AB
34002021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
3401
3402 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
3403 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
3404 here from linux-tdep.c and given a new name. Minor cleanups.
3405 (gcore_collect_regset_section_cb): Likewise.
3406 (gcore_collect_thread_registers): Likewise.
3407 (gcore_build_thread_register_notes): Likewise.
3408 (gcore_find_signalled_thread): Likewise.
3409 * gcore.h (gcore_build_thread_register_notes): Declare.
3410 (gcore_find_signalled_thread): Declare.
3411 * fbsd-tdep.c: Add 'gcore.h' include.
3412 (struct fbsd_collect_regset_section_cb_data): Delete.
3413 (fbsd_collect_regset_section_cb): Delete.
3414 (fbsd_collect_thread_registers): Delete.
3415 (struct fbsd_corefile_thread_data): Delete.
3416 (fbsd_corefile_thread): Delete.
3417 (fbsd_make_corefile_notes): Call
3418 gcore_build_thread_register_notes instead of the now deleted
3419 FreeBSD code.
3420 * linux-tdep.c: Add 'gcore.h' include.
3421 (struct linux_collect_regset_section_cb_data): Delete.
3422 (linux_collect_regset_section_cb): Delete.
3423 (linux_collect_thread_registers): Delete.
3424 (linux_corefile_thread): Call
3425 gcore_build_thread_register_notes.
3426 (find_signalled_thread): Delete.
3427 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
3428
ebde6f2d
TV
34292021-01-29 Tom de Vries <tdevries@suse.de>
3430
3431 PR breakpoints/26063
3432 * infrun.c (process_event_stop_test): Reset
3433 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
3434 changed.
3435
0f93c3a2
AB
34362021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3437
3438 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
3439 assert. Extend the header comment.
3440
f237f998
AB
34412021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3442
3443 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
3444 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
3445 * tui/tui-data.h (TUI_STATUS_WIN): Define.
3446 (tui_locator_win_info_ptr): Delete declaration.
3447 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
3448 (tui_disasm_window::set_contents): Fetch state from tui_location
3449 global.
3450 (tui_get_begin_asm_address): Likewise.
3451 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
3452 for locator window.
3453 (get_locator_window): Delete.
3454 (initialize_known_windows): Treat locator window just like all the
3455 rest.
3456 * tui/tui-source.c: Add 'tui/tui-location.h' include.
3457 (tui_source_window::set_contents): Fetch state from tui_location
3458 global.
3459 (tui_source_window::showing_source_p): Likewise.
3460 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
3461 (_locator): Delete.
3462 (tui_locator_win_info_ptr): Delete.
3463 (tui_locator_window::make_status_line): Fetch state from
3464 tui_location global.
3465 (tui_locator_window::rerender): Remove check of 'handle',
3466 reindent function body.
3467 (tui_locator_window::set_locator_fullname): Delete.
3468 (tui_locator_window::set_locator_info): Delete.
3469 (tui_update_locator_fullname): Delete.
3470 (tui_show_frame_info): Likewise.
3471 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
3472 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
3473 tui/tui-location.h and renamed to
3474 tui_location_tracker::set_location.
3475 (tui_locator_window::set_locator_fullname): Moved to
3476 tui/tui-location.h and renamed to
3477 tui_location_tracker::set_fullname.
3478 (tui_locator_window::full_name): Delete.
3479 (tui_locator_window::proc_name): Delete.
3480 (tui_locator_window::line_no): Delete.
3481 (tui_locator_window::addr): Delete.
3482 (tui_locator_window::gdbarch): Delete.
3483 (tui_update_locator_fullname): Delete declaration.
3484 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
3485 for locator window.
3486 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
3487 (tui_display_main): Call function on tui_location directly.
3488 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
3489 * tui/tui-location.c: New file.
3490 * tui/tui-location.h: New file.
3491
8ee511af
SM
34922021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
3493
3494 * gdbtypes.h (get_type_arch): Rename to...
3495 (struct type) <arch>: ... this, update all users.
3496
6ac37371
SM
34972021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
3498
3499 * gdbtypes.h (struct type) <arch>: Rename to...
3500 <arch_owner>: ... this, update all users.
3501 <objfile>: Rename to...
3502 <objfile_owner>: ... this, update all users.
3503
24cf6389
AB
35042021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3505
3506 * gdbcmd.h (execute_command_to_string): Update comment.
3507 * top.c (execute_command_to_string): Update header comment.
3508
2a7f6487
TV
35092021-01-28 Tom de Vries <tdevries@suse.de>
3510
3511 PR breakpoints/27205
3512 * breakpoint.c (create_longjmp_master_breakpoint_probe)
3513 (create_longjmp_master_breakpoint_names): New function, factored out
3514 of ...
3515 (create_longjmp_master_breakpoint): ... here. Only try to install
3516 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
3517 breakpoint in libc.so failed.
3518
59b59f08
LS
35192021-01-27 Lancelot SIX <lsix@lancelotsix.com>
3520
3521 PR gdb/27133
3522 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
3523 unique_ptr is released when the wrapped pointer is kept for later
3524 use.
3525
807f647c
MM
35262021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
3527
3528 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
3529 BLR and BR instructions.
3530 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
3531 (enum aarch64_masks): New.
3532
4ef367bf
TT
35332021-01-26 Tom Tromey <tromey@adacore.com>
3534
3535 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
3536 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
3537 (windows_init_thread_list, windows_nat::handle_load_dll)
3538 (windows_nat::handle_unload_dll, windows_nat_target::resume)
3539 (windows_nat_target::resume)
3540 (windows_nat_target::get_windows_debug_event)
3541 (windows_nat_target::interrupt, windows_xfer_memory)
3542 (windows_nat_target::close): Update.
3543 * nat/windows-nat.c (DEBUG_EVENTS): Use
3544 debug_prefixed_printf_cond.
3545 (matching_pending_stop, fetch_pending_stop)
3546 (continue_last_debug_event): Update.
3547
4cb1265b
MS
35482020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
3549
3550 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
3551 elfcore_write_file_note.
3552
d0cc52bd
SV
35532021-01-26 Shahab Vahedi <shahab@synopsys.com>
3554
3555 * arc-tdep.c (arc_add_reggroups): New function.
3556 (arc_gdbarch_init): Call arc_add_reggroups.
3557
ac3571d9 35582021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
3559
3560 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
3561
9f6c202e
TV
35622021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
3563 Simon Marchi <simon.marchi@polymtl.ca>
3564 Tom de Vries <tdevries@suse.de>
3565
3566 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
3567 DW_AT_ranges.
3568
a625a8c9
TT
35692021-01-25 Tom Tromey <tromey@adacore.com>
3570
3571 * dwarf2/read.c (get_mpz): New function.
3572 (get_dwarf2_rational_constant): Use it.
3573
19184910
TT
35742021-01-25 Tom Tromey <tromey@adacore.com>
3575
3576 * ada-lang.c (resolve_subexp): Handle array context.
3577
b10bae18
TT
35782021-01-23 Tom Tromey <tom@tromey.com>
3579
3580 PR compile/25575
3581 * compile/compile-loc2c.c (note_register): New function.
3582 (pushf_register_address, pushf_register): Use it.
3583
3637a558
TT
35842021-01-23 Tom Tromey <tom@tromey.com>
3585
3586 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
3587 Change type of "registers_used".
3588 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
3589 * dwarf2/loc.c (dwarf2_compile_property_to_c)
3590 (locexpr_generate_c_location, loclist_generate_c_location): Change
3591 type of "registers_used".
3592 * compile/compile.h (compile_dwarf_expr_to_c)
3593 (compile_dwarf_bounds_to_c): Update.
3594 * compile/compile-loc2c.c (pushf_register_address)
3595 (pushf_register, do_compile_dwarf_expr_to_c)
3596 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
3597 of "registers_used".
3598 * compile/compile-c.h (generate_c_for_variable_locations):
3599 Update.
3600 * compile/compile-c-symbols.c (generate_vla_size)
3601 (generate_c_for_for_one_variable): Change type of
3602 "registers_used".
3603 (generate_c_for_variable_locations): Return std::vector.
3604 * compile/compile-c-support.c (generate_register_struct): Change
3605 type of "registers_used".
3606 (compute): Update.
3607
9f7f6cb8
TT
36082021-01-23 Tom Tromey <tom@tromey.com>
3609
3610 * compile/compile-internal.h (class compile_instance)
3611 <set_arguments>: Change return type.
3612 * compile/compile.c (compile_to_object): Remove call to reset.
3613 (compile_instance::set_arguments): Change return type.
3614
dd5ca05f
SM
36152021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
3616
3617 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
3618 * gdbtypes.h (struct type) <set_owner>: Add asserts.
3619
d3ee35db
LS
36202021-01-23 Lancelot SIX <lsix@lancelotsix.com>
3621
3622 * Makefile.in (SELFTESTS_SRCS): Add
3623 unittests/gdb_tilde_expand-selftests.c.
3624 * unittests/gdb_tilde_expand-selftests.c: New file.
3625
9d2d8a16
AB
36262021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3627
3628 PR cli/25956
3629 * NEWS: Mention new command.
3630 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
3631 (version_style): Define.
3632 (cli_style_option::cli_style_option): Add intensity parameter, and
3633 use as appropriate.
3634 (_initialize_cli_style): Register version style set/show commands.
3635 * cli/cli-style.h (cli_style_option): Add intensity parameter.
3636 (version_style): Declare.
3637 * top.c (print_gdb_version): Use version_stype, and styled_string
3638 to print the GDB version string.
3639
e7b43072
AB
36402021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3641
3642 * utils.c (emit_style_escape): Only emit an escape sequence if the
3643 requested style is different than the current applied style.
3644 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
3645 current applied_style.
3646 (fputs_styled): Remove is_default check.
3647 (fputs_styled_unfiltered): Likewise.
3648 (vfprintf_styled_no_gdbfmt): Likewise.
3649
2189c312
SM
36502021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3651
3652 * remote.h (remote_debug_printf): New.
3653 (remote_debug_printf_nofunc): New.
3654 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
3655 * remote.c: Use above macros throughout file.
3656
02349803
SM
36572021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3658
3659 * remote.h (remote_debug): Change to bool.
3660 * remote.c (remote_debug): Change to bool.
3661 (_initialize_remote): Adjust.
3662
cda09ec9
SM
36632021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3664
3665 * target.h (remote_debug): Move to...
3666 * remote.h (remote_debug): ... here.
3667 * top.c (remote_debug): Move to...
3668 * remote.c (remote_debug): ... here.
3669 * remote-sim.c: Include remote.h.
3670
baf2b57f
SM
36712021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3672
3673 * cli/cli-cmds.c (show_remote_debug): Remove.
3674 (show_remote_timeout): Remove.
3675 (_initialize_cli_cmds): Don't register commands.
3676 * remote.c (show_remote_debug): Move here.
3677 (show_remote_timeout): Move here.
3678 (_initialize_remote): Register commands.
3679
344e9841
SM
36802021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3681
3682 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
3683 type::objfile method instead.
3684
30625020
SM
36852021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3686
3687 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
3688 use the type::is_objfile_owned method.
3689
5b7d941b
SM
36902021-01-22 Simon Marchi <simon.marchi@efficios.com>
3691
3692 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
3693 (TYPE_OWNER): Remove.
3694 (TYPE_OBJFILE): Adjust.
3695 (struct main_type) <flag_objfile_owned>: Rename to...
3696 <m_flag_objfile_owned>: ... this.
3697 <owner>: Rename to...
3698 <m_owner>: ... this.
3699 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
3700 methods.
3701 (TYPE_ALLOC): Adjust.
3702 * gdbtypes.c (alloc_type): Adjust.
3703 (alloc_type_arch): Adjust.
3704 (alloc_type_copy): Adjust.
3705 (get_type_arch): Adjust.
3706 (smash_type): Adjust.
3707 (lookup_array_range_type): Adjust.
3708 (recursive_dump_type): Adjust.
3709 (copy_type_recursive): Adjust.
3710 * compile/compile-c-types.c (convert_func): Adjust.
3711 (convert_type_basic): Adjust.
3712 * compile/compile-cplus-types.c (compile_cplus_convert_func):
3713 Adjust.
3714 * language.c
3715 (language_arch_info::type_and_symbol::alloc_type_symbol):
3716 Adjust.
3717
d5d24e12
LM
37182021-01-21 Luis Machado <luis.machado@linaro.org>
3719
3720 * coffread.c (enter_linenos): Passing string to complaint.
3721 * valops.c (value_assign): Make array view.
3722
a59902a7
SM
37232021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3724
3725 * auto-load.h (debug_auto_load): Move here.
3726 (auto_load_debug_printf): New.
3727 * auto-load.c: Use auto_load_debug_printf.
3728 (debug_auto_load): Move to header.
3729 * linux-thread-db.c (try_thread_db_load): Use
3730 auto_load_debug_printf.
3731 * main.c (captured_main_1): Likewise.
3732
d3abc0ce
SM
37332021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3734
3735 * f-valprint.c (f77_array_offset_tbl): Remove.
3736
1e15fcac
SM
37372021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3738
3739 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
3740
439706e6
SM
37412021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3742
3743 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
3744 of gdb_select.
3745
325d39e4
HD
37462021-01-21 Hannes Domani <ssbssa@yahoo.de>
3747
3748 PR python/19151
3749 * python/py-breakpoint.c (bppy_get_location): Handle
3750 bp_hardware_breakpoint.
3751 (bppy_init): Likewise.
3752 (gdbpy_breakpoint_created): Likewise.
3753
7cb6d92a
SM
37542021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3755
3756 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
3757
d4dd4fca
SM
37582021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3759
3760 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
3761 (_initialize_gdb_bfd): Adjust.
3762
de53369b
SM
37632021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3764
3765 PR gdb/26828
3766 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
3767
17e593e9
SM
37682021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3769
3770 * dwarf2/read.c (follow_die_offset): Add logging.
3771 (dwarf2_per_objfile::age_comp_units): Add logging.
3772
6bd434d6
SM
37732021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3774
3775 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
3776 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
3777 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
3778 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
3779 * arm-tdep.c (struct frame_unwind): Make static.
3780 * auto-load.c (auto_load_safe_path_vec): Make static.
3781 * csky-tdep.c (csky_stub_unwind): Make static.
3782 * gdbarch.c (gdbarch_data_registry): Make static.
3783 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
3784 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
3785 * i386-tdep.c (i386_frame_setup_skip_insns,
3786 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
3787 Make static.
3788 * infrun.c (observer_mode): Make static.
3789 * linux-nat.c (sigchld_action): Make static.
3790 * linux-thread-db.c (thread_db_list): Make static.
3791 * maint-test-options.c (maintenance_test_options_list):
3792 * mep-tdep.c (mep_csr_registers): Make static.
3793 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
3794 (stats): Make static.
3795 * nat/linux-osdata.c (struct osdata_type): Make static.
3796 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
3797 * progspace.c (last_program_space_num): Make static.
3798 * python/py-param.c (struct parm_constant): Remove struct type
3799 name.
3800 (parm_constants): Make static.
3801 * python/py-record-btrace.c (btpy_list_methods): Make static.
3802 * python/py-record.c (recpy_gap_type): Make static.
3803 * record.c (record_goto_cmdlist): Make static.
3804 * regcache.c (regcache_descr_handle): Make static.
3805 * registry.h (DEFINE_REGISTRY): Make definition static.
3806 * symmisc.c (std_in, std_out, std_err): Make static.
3807 * top.c (previous_saved_command_line): Make static.
3808 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
3809 static.
3810 * unittests/command-def-selftests.c (nr_duplicates,
3811 nr_invalid_prefixcmd, lists): Make static.
3812 * unittests/observable-selftests.c (test_notification): Make
3813 static.
3814 * unittests/optional/assignment/1.cc (counter): Make static.
3815 * unittests/optional/assignment/2.cc (counter): Make static.
3816 * unittests/optional/assignment/3.cc (counter): Make static.
3817 * unittests/optional/assignment/4.cc (counter): Make static.
3818 * unittests/optional/assignment/5.cc (counter): Make static.
3819 * unittests/optional/assignment/6.cc (counter): Make static.
3820
a6c11cbb
JS
38212021-01-20 Joel Sherrill <joel@rtems.org>
3822
3823 PR gdb/27219
3824 * remote.c (struct remote_thread_info) <resume_state>: Rename
3825 to...
3826 <get_resume_state>: ... this.
3827 (remote_target::resume): Adjust.
3828 (remote_target::commit_resume): Adjust.
3829 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
3830
6f52fdf4
SDJ
38312021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
3832 Tom Tromey <tom@tromey.com>
3833
3834 * stap-probe.c (stap_parse_single_operand): Handle '!'
3835 operator.
3836 (stap_parse_argument_conditionally): Likewise.
3837 Skip spaces after processing open-parenthesis sub-expression.
3838 (stap_parse_argument_1): Skip spaces after call to
3839 stap_parse_argument_conditionally.
3840 Handle case when right-side expression is a parenthesized
3841 sub-expression.
3842 Skip spaces after call to stap_parse_argument_1.
3843
1c3b85ad
LS
38442021-01-19 Lancelot SIX <lsix@lancelotsix.com>
3845
3846 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
3847
a9a87d35
LM
38482021-01-19 Luis Machado <luis.machado@linaro.org>
3849
3850 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
3851 memory and save data.
3852 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
3853 (trad_frame_set_unknown, trad_frame_set_value_bytes)
3854 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3855 (trad_frame_value_bytes_p): Remove.
3856 (trad_frame_reset_saved_regs): Adjust documentation.
3857 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
3858 constructor and reset the state of the registers.
3859 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3860 (trad_frame_value_bytes_p, trad_frame_set_value)
3861 (trad_frame_set_realreg, trad_frame_set_addr)
3862 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
3863 (trad_frame_set_reg_realreg): Update to call member function.
3864 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
3865 (trad_frame_get_prev_register): Likewise.
3866
3867 * aarch64-tdep.c (aarch64_analyze_prologue)
3868 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
3869 (aarch64_prologue_prev_register): Update to use member functions.
3870 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
3871 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
3872 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
3873 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
3874 (arm_make_epilogue_frame_cache): Likewise.
3875 * avr-tdep.c (avr_frame_unwind_cache)
3876 (avr_frame_prev_register): Likewise.
3877 * cris-tdep.c (cris_scan_prologue): Likewise.
3878 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
3879 * frv-tdep.c (frv_analyze_prologue): Likewise.
3880 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
3881 * lm32-tdep.c (lm32_frame_cache): Likewise.
3882 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3883 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3884 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
3885 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
3886 (reset_saved_regs): Adjust to set realreg.
3887 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
3888 call member functions.
3889 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
3890 * s390-tdep.c (s390_prologue_frame_unwind_cache)
3891 (s390_backchain_frame_unwind_cache): Likewise.
3892 * score-tdep.c (score7_analyze_prologue)
3893 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
3894 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
3895 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3896 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
3897 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3898 * tilegx-tdep.c (tilegx_analyze_prologue)
3899 (tilegx_frame_cache): Likewise.
3900 * v850-tdep.c (v850_frame_cache): Likewise.
3901 * vax-tdep.c (vax_frame_cache): Likewise.
3902
bdec2917
LM
39032021-01-19 Luis Machado <luis.machado@linaro.org>
3904
3905 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
3906 of buffer + length.
3907 (put_frame_register_bytes): Likewise.
3908 Adjust documentation.
3909 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
3910 (safe_frame_unwind_memory): Likewise.
3911 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
3912 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
3913 gdb::array_view.
3914 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
3915 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
3916 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3917 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
3918 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
3919 * dwarf2/loc.c (rw_pieced_value): Likewise.
3920 * hppa-tdep.c (hppa_frame_cache): Likewise.
3921 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
3922 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
3923 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3924 (i386_linux_rt_sigtramp_start): Likewise.
3925 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3926 * i386-tdep.c (i386_register_to_value): Likewise.
3927 * i387-tdep.c (i387_register_to_value): Likewise.
3928 * ia64-tdep.c (ia64_register_to_value): Likewise.
3929 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
3930 (m32r_linux_rt_sigtramp_start): Likewise.
3931 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
3932 * m68k-tdep.c (m68k_register_to_value): Likewise.
3933 * mips-tdep.c (mips_register_to_value)
3934 (mips_value_to_register): Likewise.
3935 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
3936 (ppcfbsd_sigtramp_frame_cache): Likewise.
3937 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
3938 (ppcobsd_sigtramp_frame_cache): Likewise.
3939 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
3940 (rs6000_register_to_value): Likewise.
3941 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3942 * tramp-frame.c (tramp_frame_start): Likewise.
3943 * valops.c (value_assign): Likewise.
3944
ccbe4c82
LM
39452021-01-19 Luis Machado <luis.machado@linaro.org>
3946
3947 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
3948 array_view.
3949 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
3950 instead of buffer and size.
3951 (trad_frame_set_reg_value_bytes): Likewise.
3952 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
3953 (trad_frame_set_value_bytes): Likewise.
3954
0e7620dc
MF
39552021-01-18 Mike Frysinger <vapier@gentoo.org>
3956
3957 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
3958
6a9ad81c
AB
39592021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
3960
3961 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
3962 (riscv_fbsd_gregset): Use riscv_supply_regset.
3963 (riscv_fbsd_fpregset): Likewise.
3964 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
3965 (riscv_linux_fregset): Likewise.
3966 * riscv-tdep.c (riscv_supply_regset): Define new function.
3967 * riscv-tdep.h (riscv_supply_regset): Declare new function.
3968
d3d7d1ba
TV
39692021-01-18 Tom de Vries <tdevries@suse.de>
3970
3971 PR tdep/27172
3972 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
3973 New macro.
3974 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
3975 for SEGV_BNDERR.
3976
aa2838cc
SM
39772021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3978
3979 * remote.c (class remote_target) <remote_hostio_send_command,
3980 remote_hostio_parse_result>: Constify parameter.
3981 (remote_hostio_parse_result): Likewise.
3982 (remote_target::remote_hostio_send_command): Adjust.
3983 (remote_target::remote_hostio_pread_vFile): Adjust.
3984 (remote_target::fileio_readlink): Adjust.
3985 (remote_target::fileio_fstat): Adjust.
3986
b5c8f22d
SM
39872021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3988
3989 * remote.c (remote_target::start_remote): Move wait_status to
3990 narrower scope.
3991
e3b2741b
SM
39922021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3993
3994 * remote.c (class remote_target):
3995 <add_current_inferior_and_thread>: Constify parameter.
3996 (stop_reply_extract_thread): Likewise.
3997 (remote_target::get_current_thread): Likewise.
3998 (remote_target::add_current_inferior_and_thread): Likewise.
3999
cecb1912
SM
40002021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4001
4002 * remote.c (class remote_target)
4003 <remote_unpack_thread_info_response,
4004 parse_threadlist_response>: Constify parameter and/or return
4005 value and or local variable.
4006 (stub_unpack_int): Likewise.
4007 (unpack_nibble): Likewise.
4008 (unpack_byte): Likewise.
4009 (unpack_int): Likewise.
4010 (unpack_string): Likewise.
4011 (unpack_threadid): Likewise.
4012 (remote_target::remote_unpack_thread_info_response): Likewise.
4013 (remote_target::parse_threadlist_response): Likewise.
4014
5a11fff0
AB
40152021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
4016
4017 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
4018
17e89137
LS
40192021-01-14 Lancelot Six <lsix@lancelotsix.com>
4020
4021 * MAINTAINERS (Write After Approval): Add myself.
4022
58eadc4b
BE
40232021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
4024
4025 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
4026 because is_trivially_default_constructible was first implemented with
4027 gcc-5.
4028
5fae2a2c
TV
40292021-01-14 Tom de Vries <tdevries@suse.de>
4030
4031 PR breakpoints/27151
4032 * objfiles.h (in_plt_section): Handle .plt.sec.
4033
8f66807b
AB
40342021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
4035
4036 PR gdb/26819
4037 * remote.c
4038 (remote_target::select_thread_for_ambiguous_stop_reply): New
4039 member function.
4040 (remote_target::process_stop_reply): Call
4041 select_thread_for_ambiguous_stop_reply.
4042
bd497355
SM
40432021-01-13 Simon Marchi <simon.marchi@efficios.com>
4044
4045 * record-btrace.c (class record_btrace_target): Remove.
4046 (record_btrace_target::commit_resume): Remove.
4047 * record-full.c (class record_full_target): Remove.
4048 (record_full_target::commit_resume): Remove.
4049
c9d22089
SM
40502021-01-13 Simon Marchi <simon.marchi@efficios.com>
4051
4052 * remote.c (enum class resume_state): New.
4053 (struct resumed_pending_vcont_info): New.
4054 (struct remote_thread_info) <resume_state, set_not_resumed,
4055 set_resumed_pending_vcont, resumed_pending_vcont_info,
4056 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
4057 New.
4058 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
4059 (remote_target::remote_add_thread): Adjust.
4060 (remote_target::process_initial_stop_replies): Adjust.
4061 (remote_target::resume): Adjust.
4062 (remote_target::commit_resume): Rely on state in
4063 remote_thread_info and not on tp->executing.
4064 (remote_target::process_stop_reply): Adjust.
4065
d8d1feb4
SM
40662021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4067
4068 * arc-tdep.h (arc_debug_printf): New.
4069 * arc-tdep.c: Use arc_debug_printf.
4070 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
4071 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
4072 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
4073
fb0f5031
SM
40742021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4075
4076 * arc-tdep.h (arc_debug): Change type to bool.
4077 * arc-tdep.c (arc_debug): Change type to bool.
4078 (arc_analyze_prologue): Adjust.
4079 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
4080 * arc-linux-nat.c (ps_get_thread_area): Adjust.
4081
5bf7e91b
SM
40822021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4083
4084 * auto-load.c (auto_load_objfile_script_1): Use bool.
4085 (execute_script_contents): Use bool.
4086
db972fce
SM
40872021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4088
4089 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
4090 comment here.
4091 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
4092 comment to header.
4093 * extension-priv.h (struct extension_language_script_ops)
4094 <auto_load_enabled>: Return bool.
4095 * extension.h (ext_lang_auto_load_enabled): Return bool, move
4096 comment here.
4097 * extension.c (ext_lang_auto_load_enabled): Return bool, move
4098 comment to header.
4099 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
4100 move comment here.
4101 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
4102 move comment to header.
4103 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
4104 move comment here.
4105 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
4106 move comment to header.
4107
5e12f48f
SM
41082021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4109
4110 * auto-load.h (file_is_auto_load_safe): Change return type to
4111 bool, move comment here.
4112 * auto-load.c (file_is_auto_load_safe): Change return type and
4113 advice_printed to bool. Move comment to header.
4114
54ca9002
SM
41152021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4116
4117 * jit.c (jit_debug_printf): New, use throughout file.
4118
24a7f1b5
SM
41192021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4120
4121 * infrun.c (normal_stop): Fix indentation.
4122
fe7a351a
SM
41232021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4124
4125 * top.h (readnow_symbol_files, readnever_symbol_files): Move
4126 declarations to ...
4127 * symfile.h: ... here.
4128 * symfile.c: Update doc.
4129
16e9019e
SM
41302021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4131
4132 * target.h (baud_rate, serial_parity): Move declarations...
4133 * serial.h: ... here.
4134 * main.c: Include serial.h.
4135 * serial.c (baud_rate, serial_parity): Update doc.
4136
b2f2ae0d
SM
41372021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4138
4139 * top.c (pre_init_ui_hook): Remove.
4140
5291fe3c
SP
41412021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4142
4143 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
4144 (aarch64_vnv_type): Add "bf" type in h field of v registers.
4145 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
4146 * features/aarch64-fpu.xml: Add bfloat16 type.
4147
ce38f5ed
AB
41482021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
4149
4150 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
4151
7c654b71
AB
41522021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
4153
4154 * f-exp.y (dot_ops): Rename to...
4155 (fortran_operators): ...this. Add a header comment. Add symbol
4156 based operators.
4157 (yylex): Update to use fortran_operators not dot_ops. Remove
4158 special handling for '**', this is now included in
4159 fortran_operators.
4160
c6185dce
SM
41612021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4162
4163 * arch/aarch64-insn.h (aarch64_debug_printf): New.
4164 * arch/aarch64-insn.c: Use aarch64_debug_printf.
4165 * aarch64-tdep.c: Use aarch64_debug_printf.
4166
eef401dc
SM
41672021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4168
4169 * solib-aix.c (solib_aix_debug_printf): New, use throughout
4170 file.
4171
062eaacb
SM
41722021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4173
4174 * jit.c (jit_debug): Change type to bool.
4175 (_initialize_jit): Adjust.
4176
54585eee
TT
41772021-01-09 Tom Tromey <tom@tromey.com>
4178
4179 PR compile/23672
4180 * compile/compile.c (compile_to_object): Avoid crash when
4181 osabi_triplet_regexp returns NULL.
4182
bc167b6b
TT
41832021-01-09 Tom Tromey <tom@tromey.com>
4184
4185 * tracepoint.h (class collection_list) <append_exp>: Take a
4186 std::string.
4187 * tracepoint.c (collection_list::append_exp): Take a std::string.
4188 (encode_actions_1): Update.
4189
8fc48b79
TT
41902021-01-08 Tom Tromey <tromey@adacore.com>
4191
4192 * parse.c (parse_expression): Add void_context_p parameter. Use
4193 parse_exp_in_context.
4194 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
4195 parse_expression.
4196 (print_command, call_command): Update.
4197 * expression.h (parse_expression): Add void_context_p parameter.
4198
3c8c6de2
AB
41992021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
4200
4201 * value.c (set_value_component_location): Adjust the VALUE_LVAL
4202 for internalvar components that have a dynamic location.
4203
1940319c
TV
42042021-01-08 Tom de Vries <tdevries@suse.de>
4205
4206 PR gdb/26881
4207 * breakpoint.c (create_exception_master_breakpoint_probe)
4208 (create_exception_master_breakpoint_hook): Factor out
4209 of ...
4210 (create_exception_master_breakpoint): ... here. Only try to install
4211 the master exception breakpoint in objfile.debug using the
4212 _Unwind_DebugHook method, if the install using probes in objfile
4213 failed.
4214
e3436813
AB
42152021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
4216
4217 * f-lang.c (fortran_value_subarray): Call value_from_component.
4218
e904f56d
MF
42192021-01-07 Mike Frysinger <vapier@gentoo.org>
4220
4221 * remote-sim.c: Include memory-map.h.
4222 (gdbsim_target): Define memory_map override.
4223 (gdbsim_target::memory_map): Define.
4224
959d6a67
TT
42252021-01-07 Tom Tromey <tromey@adacore.com>
4226
4227 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
4228
d4813f10
TT
42292021-01-07 Tom Tromey <tromey@adacore.com>
4230
4231 * ada-lang.c (add_component_interval): Start loop using vector's
4232 updated size.
4233
b49180ac
TT
42342021-01-06 Tom Tromey <tromey@adacore.com>
4235
4236 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
4237 Do not cast result.
4238 * valarith.c (fixed_point_binop): Handle multiplication
4239 and division specially.
4240 * valops.c (value_to_gdb_mpq): New function.
4241 (value_cast_to_fixed_point): Use it.
4242
55195361
HD
42432021-01-05 Hannes Domani <ssbssa@yahoo.de>
4244
4245 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
4246 Call wnoutrefresh instead of tui_win_info::refresh_window.
4247
1b6d4bb2
HD
42482021-01-05 Hannes Domani <ssbssa@yahoo.de>
4249
4250 * tui/tui-source.c (tui_source_window::show_line_number):
4251 Redraw second space after line number.
4252
b5ff370e
HD
42532021-01-05 Hannes Domani <ssbssa@yahoo.de>
4254
4255 PR tui/26927
4256 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
4257 Fix source pad size in prefresh.
4258 (tui_source_window_base::show_source_content): Grow source pad
4259 if necessary.
4260
c68ea49f
MF
42612021-01-04 Mike Frysinger <vapier@gentoo.org>
4262
4263 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
4264 (bfin_frame_align): Use align_down.
4265
e4ad960a
TV
42662021-01-04 Tom de Vries <tdevries@suse.de>
4267
4268 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
4269 terminators that do not terminate anything.
4270
3ec3145c
SM
42712021-01-04 Simon Marchi <simon.marchi@efficios.com>
4272
4273 * debug.c (debug_print_depth): New.
4274 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
4275 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
4276 * infrun.c (start_step_over): Use
4277 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
4278 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
4279 INFRUN_SCOPED_DEBUG_START_END.
4280 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
4281
e71daf80
SM
42822021-01-04 Simon Marchi <simon.marchi@efficios.com>
4283
4284 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
4285
335709bc
SM
42862021-01-04 Simon Marchi <simon.marchi@efficios.com>
4287
4288 * utils.c (vfprintf_unfiltered): Print timestamp only when
4289 previous debug output ended with a newline.
4290
098caef4
LM
42912021-01-04 Luis Machado <luis.machado@linaro.org>
4292
4293 Update all users of trad_frame_saved_reg to use the new member
4294 functions.
4295
4296 Remote all struct keywords from declarations of trad_frame_saved_reg
4297 types, except on forward declarations.
4298
4299 * aarch64-tdep.c: Update.
4300 * alpha-mdebug-tdep.c: Update.
4301 * alpha-tdep.c: Update.
4302 * arc-tdep.c: Update.
4303 * arm-tdep.c: Update.
4304 * avr-tdep.c: Update.
4305 * cris-tdep.c: Update.
4306 * csky-tdep.c: Update.
4307 * frv-tdep.c: Update.
4308 * hppa-linux-tdep.c: Update.
4309 * hppa-tdep.c: Update.
4310 * hppa-tdep.h: Update.
4311 * lm32-tdep.c: Update.
4312 * m32r-linux-tdep.c: Update.
4313 * m32r-tdep.c: Update.
4314 * m68hc11-tdep.c: Update.
4315 * mips-tdep.c: Update.
4316 * moxie-tdep.c: Update.
4317 * riscv-tdep.c: Update.
4318 * rs6000-tdep.c: Update.
4319 * s390-linux-tdep.c: Update.
4320 * s390-tdep.c: Update.
4321 * score-tdep.c: Update.
4322 * sparc-netbsd-tdep.c: Update.
4323 * sparc-sol2-tdep.c: Update.
4324 * sparc64-fbsd-tdep.c: Update.
4325 * sparc64-netbsd-tdep.c: Update.
4326 * sparc64-obsd-tdep.c: Update.
4327 * sparc64-sol2-tdep.c: Update.
4328 * tilegx-tdep.c: Update.
4329 * v850-tdep.c: Update.
4330 * vax-tdep.c: Update.
4331
4332 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
4333 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
4334
4335 * trad-frame.c: Update.
4336 Remove TF_REG_* enum.
4337 (trad_frame_alloc_saved_regs): Add a static assertion to check for
4338 a trivially-constructible struct.
4339 (trad_frame_reset_saved_regs): Adjust to use member function.
4340 (trad_frame_value_p): Likewise.
4341 (trad_frame_addr_p): Likewise.
4342 (trad_frame_realreg_p): Likewise.
4343 (trad_frame_value_bytes_p): Likewise.
4344 (trad_frame_set_value): Likewise.
4345 (trad_frame_set_realreg): Likewise.
4346 (trad_frame_set_addr): Likewise.
4347 (trad_frame_set_unknown): Likewise.
4348 (trad_frame_set_value_bytes): Likewise.
4349 (trad_frame_get_prev_register): Likewise.
4350 * trad-frame.h: Update.
4351 (trad_frame_saved_reg_kind): New enum.
4352 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
4353 <m_kind, m_reg>: New member fields.
4354 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
4355 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
4356 <is_addr, is_unknown, is_value_bytes>: New member functions.
4357
9898e882
SM
43582021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
4359
4360 * target-float.c: Fix typos.
4361
b66b4e65
HD
43622021-01-02 Hannes Domani <ssbssa@yahoo.de>
4363
4364 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
4365
b5b5650a
JB
43662021-01-01 Joel Brobecker <brobecker@adacore.com>
4367
4368 * gdbarch.sh: Update copyright year range.
4369
3666a048
JB
43702021-01-01 Joel Brobecker <brobecker@adacore.com>
4371
4372 Update copyright year range in copyright header of all GDB files.
4373
ff7e39b6
JB
43742021-01-01 Joel Brobecker <brobecker@adacore.com>
4375
4376 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
4377 to the list of directories to update.
4378
2b47c078
JB
43792021-01-01 Joel Brobecker <brobecker@adacore.com>
4380
4381 * top.c (print_gdb_version): Update copyright year.
4382
476923f1 43832021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 4384
476923f1 4385 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 4386
476923f1 4387For older changes see ChangeLog-2020.
c906108c
SS
4388\f
4389Local Variables:
4390mode: change-log
4391left-margin: 8
4392fill-column: 74
4393version-control: never
57da7796 4394coding: utf-8
c906108c 4395End: