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