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