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