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