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