]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
AArch64: Add target description/feature for MTE registers
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c1bd443b
LM
12021-03-24 Luis Machado <luis.machado@linaro.org>
2
3 * aarch64-linux-nat.c
4 (aarch64_linux_nat_target::read_description): Take MTE flag into
5 account.
6 Slight refactor to hwcap flag checking.
7 * aarch64-linux-tdep.c
8 (aarch64_linux_core_read_description): Likewise.
9 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
10 MTE.
11 (aarch64_read_description): Add mte_p parameter and update to use it.
12 Update the documentation.
13 (aarch64_gdbarch_init): Update call to aarch64_read_description.
14 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
15 * arch/aarch64.c: Include ../features/aarch64-mte.c.
16 (aarch64_create_target_description): Add mte_p parameter and update
17 the code to use it.
18 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
19 parameter.
20 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
21 * features/aarch64-mte.c: New file, generated.
22 * features/aarch64-mte.xml: New file.
23
04245125
LM
242021-03-24 Luis Machado <luis.machado@linaro.org>
25
26 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
27 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
28 * aarch64-linux-tdep.c: Likewise
29 * arch/aarch64-mte-linux.h: New file.
30
754487e2
LM
312021-03-24 Luis Machado <luis.machado@linaro.org>
32
33 * remote: Include gdbsupport/selftest.h.
34 (test_memory_tagging_functions): New function.
35 (_initialize_remote): Register test_memory_tagging_functions.
36
2c2e7f87
LM
372021-03-24 Luis Machado <luis.machado@linaro.org>
38
39 * remote.c (PACKET_memory_tagging_feature): New enum.
40 (remote_memory_tagging_p): New function.
41 (remote_protocol_features): New "memory-tagging" entry.
42 (remote_target::remote_query_supported): Handle memory tagging
43 support.
44 (remote_target::supports_memory_tagging): Implement.
45 (create_fetch_memtags_request, parse_fetch_memtags_reply)
46 (create_store_memtags_request): New functions.
47 (remote_target::fetch_memtags): Implement.
48 (remote_target::store_memtags): Implement.
49 (_initialize_remote): Add new "memory-tagging-feature"
50 config command.
51
c193949e
LM
522021-03-24 Luis Machado <luis.machado@linaro.org>
53
54 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
55 (default_memtag_matches_p, default_set_memtags)
56 (default_get_memtag): New functions.
57 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
58 (default_memtag_matches_p, default_set_memtags)
59 (default_get_memtag): New prototypes.
60 * gdbarch.c: Regenerate.
61 * gdbarch.h: Regenerate.
62 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
63 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
64 (enum memtag_type): New enum.
65
dbe692af
LM
662021-03-24 Luis Machado <luis.machado@linaro.org>
67
68 * remote.c (remote_target) <supports_memory_tagging>: New method
69 override.
70 <fetch_memtags>: New method override.
71 <store_memtags>: New method override.
72 (remote_target::supports_memory_tagging): New method.
73 (remote_target::fetch_memtags): New method.
74 (remote_target::store_memtags): New method.
75 * target-delegates.c: Regenerate.
76 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
77 method.
78 <fetch_memtags>: New virtual method.
79 <store_memtags>: New virtual method.
80 (target_supports_memory_tagging): Define.
81 (target_fetch_memtags): Define.
82 (target_store_memtags): Define.
83 * target-debug.h (target_debug_print_size_t)
84 (target_debug_print_const_gdb_byte_vector_r)
85 (target_debug_print_gdb_byte_vector_r): New functions.
86
66848ebc
SM
872021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
88
89 * target.h (target_longname): Remove.
90
c8fbd44a
SM
912021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
92
93 * target.h (target_is_pushed): Remove, update callers to use
94 inferior::target_is_pushed instead.
95 * target.c (target_is_pushed): Remove.
96
02980c56
SM
972021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
98
99 * target.h (push_target): Remove, update callers to use
100 inferior::push_target.
101 * target.c (push_target): Remove.
102 * inferior.h (class inferior) <push_target>: New overload.
103
fadf6add
SM
1042021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
105
106 * target.h (unpush_target): Remove, update all callers
107 to use `inferior::unpush_target` instead.
108 (struct target_unpusher) <operator()>: Just declare.
109 * target.c (unpush_target): Remove.
110 (target_unpusher::operator()): New.
111
702cf3f5
AB
1122021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
113
114 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
115 error.
116 (process_full_comp_unit): Validate the top-level tag before
117 processing the first DIE.
118 (read_func_scope): Ensure we have a valid builder.
119
46fec642
AB
1202021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
121
122 * objc-lang.c (objc_demangle): Renamed to
123 objc_language::demangle_symbol, and moved later in the file.
124 (objc_language::sniff_from_mangled_name): Call demangle_symbol
125 member function.
126 (objc_language::demangle_symbol): Defined outside of class
127 declaration. The definition is the old objc_demangle with NULL
128 changed to nullptr, and if conditions relating to nullptr pointers
129 or null character checks made explicit.
130 * objc-lang.h (objc_demangle): Delete declaration.
131
08dedd66
ML
1322021-03-22 Martin Liska <mliska@suse.cz>
133
134 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
135 (_initialize_arm_tdep): Likewise.
136
eb36a3eb
TT
1372021-03-20 Tom Tromey <tom@tromey.com>
138
139 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
140 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
141 * psymtab.h (make_psymbol_functions): Don't declare.
142 * psymtab.c (make_psymbol_functions): Remove.
143 (maintenance_print_psymbols): Update.
144 * psympriv.h (struct psymbol_functions): Add no-argument
145 constructor.
146 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
147 <partial_symtabs>: Remove.
148 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
149 * elfread.c (read_partial_symbols): Update.
150 (elf_symfile_read): Remove check for existing partial symbols.
151 Don't clear "qf".
152 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
153 partial symbols.
154 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
155 partial symtabs.
156 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
157 parameter.
158 * dbxread.c (dbx_symfile_read): Create partial symtabs.
159 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
160
e1114590
TT
1612021-03-20 Tom Tromey <tom@tromey.com>
162
163 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
164 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
165 * symfile-debug.c (objfile::has_partial_symbols)
166 (objfile::find_last_source_symtab)
167 (objfile::forget_cached_source_info)
168 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
169 (objfile::print_stats, objfile::dump)
170 (objfile::expand_symtabs_for_function)
171 (objfile::expand_all_symtabs)
172 (objfile::expand_symtabs_with_fullname)
173 (objfile::map_matching_symbols)
174 (objfile::expand_symtabs_matching)
175 (objfile::find_pc_sect_compunit_symtab)
176 (objfile::map_symbol_filenames)
177 (objfile::find_compunit_symtab_by_address)
178 (objfile::lookup_global_symbol_language)
179 (objfile::require_partial_symbols): Update.
180 * psymtab.c (maintenance_print_psymbols)
181 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
182 * objfiles.h (struct objfile) <qf>: Now a forward_list.
183 * objfiles.c (objfile_relocate1): Update.
184 * elfread.c (elf_symfile_read): Update.
185
de909f0b
TT
1862021-03-20 Tom Tromey <tom@tromey.com>
187
188 * objfiles.h (struct objfile) <psymtabs>: Remove method.
189
caf8c1e5
TT
1902021-03-20 Tom Tromey <tom@tromey.com>
191
192 * psymtab.c (psymbol_functions::count_psyms): Rename.
193 (psymbol_functions::print_stats): Update.
194 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
195 method.
196
3aa31ce7
TT
1972021-03-20 Tom Tromey <tom@tromey.com>
198
199 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
200 (psymbol_functions::find_pc_sect_psymtab): Rename.
201 (psymbol_functions::find_pc_sect_compunit_symtab)
202 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
203 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
204 Declare new method.
205 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
206
7b249e47
TT
2072021-03-20 Tom Tromey <tom@tromey.com>
208
209 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
210 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
211 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
212 parameter.
213 (add_psymbol_to_bcache): Remove.
214 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
215 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
216 Likewise.
217 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
218 <add_psymbol>: Likewise.
219 (standard_psymtab, legacy_psymtab): Likewise.
220 * mdebugread.c (parse_partial_symbols): Update.
221 (handle_psymbol_enumerators): Add partial_symtabs parameter.
222 (handle_psymbol_enumerators): Update.
223 (new_psymtab): Add partial_symtabs parameter.
224 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
225 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
226 parameter.
227 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
228 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
229 Update.
230 * dbxread.c (read_dbx_symtab): Update.
231 (start_psymtab): Add partial_symtabs parameter.
232 (dbx_end_psymtab): Update.
233 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
234 (ctf_psymtab): Add partial_symtabs parameter.
235 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
236 Update.
237 (scan_partial_symbols): Add partial_symtabs parameter.
238 (scan_partial_symbols, elfctf_build_psymtabs)
239 (ctf_psymtab_add_enums): Update.
240
d1eef86d
TT
2412021-03-20 Tom Tromey <tom@tromey.com>
242
243 * symfile.c (read_symbols): Use objfile method.
244 * symfile-debug.c (objfile::require_partial_symbols): New method.
245 * psymtab.h (require_partial_symbols): Don't declare.
246 * psymtab.c (require_partial_symbols): Use objfile method. Now
247 static.
248 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
249 (psymbol_functions::lookup_symbol)
250 (psymbol_functions::lookup_global_symbol_language)
251 (psymbol_functions::find_last_source_symtab)
252 (psymbol_functions::forget_cached_source_info)
253 (psymbol_functions::print_stats)
254 (psymbol_functions::expand_symtabs_for_function)
255 (psymbol_functions::expand_all_symtabs)
256 (psymbol_functions::expand_symtabs_with_fullname)
257 (psymbol_functions::map_symbol_filenames)
258 (psymbol_functions::map_matching_symbols)
259 (psymbol_functions::expand_symtabs_matching)
260 (psymbol_functions::find_compunit_symtab_by_address)
261 (maintenance_print_psymbols, maintenance_info_psymtabs)
262 (maintenance_check_psymtabs): Update.
263 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
264 new method.
265
eb00e468
TT
2662021-03-20 Tom Tromey <tom@tromey.com>
267
268 * xcoffread.c (xcoff_sym_fns): Update.
269 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
270 * symfile-debug.c (objfile::has_partial_symbols): Use
271 can_lazily_read_symbols.
272 (debug_sym_read_psymbols): Remove.
273 (debug_sym_fns, install_symfile_debug_logging): Update.
274 * quick-symbol.h (struct quick_symbol_functions)
275 <can_lazily_read_symbols, read_partial_symbols>: New methods.
276 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
277 * mipsread.c (ecoff_sym_fns): Update.
278 * machoread.c (macho_sym_fns): Update.
279 * elfread.c (struct lazy_dwarf_reader): New.
280 (elf_symfile_read): Update.
281 (read_psyms): Now a method of lazy_dwarf_reader.
282 (elf_sym_fns): Update.
283 (elf_sym_fns_lazy_psyms): Remove.
284 * dbxread.c (aout_sym_fns): Update.
285 * coffread.c (coff_sym_fns): Update.
286
b29b98cf
TT
2872021-03-20 Tom Tromey <tom@tromey.com>
288
289 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
290 (reread_symbols): Move reset_psymtabs call later.
291 * objfiles.c (objfile::objfile): Don't initialize
292 partial_symtabs.
293
17d66340
TT
2942021-03-20 Tom Tromey <tom@tromey.com>
295
296 * dwarf2/read.c (dwarf2_build_psymtabs): Call
297 set_partial_symtabs.
298 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
299 * psymtab.h (make_psymbol_functions): Add partial_symtabs
300 parameter.
301 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
302 parameter.
303 (psymbol_functions::find_pc_sect_compunit_symtab)
304 (psymbol_functions::print_stats, psymbol_functions::dump)
305 (psymbol_functions::has_symbols): Update.
306 (make_psymbol_functions, dump_psymtab_addrmap): Add
307 partial_symtabs parameter.
308 (maintenance_print_psymbols): Update.
309 (psymbol_functions::expand_symtabs_matching): Update.
310 * psympriv.h (struct psymbol_functions): Add constructor.
311 <m_partial_symtabs>: New member.
312 <set_partial_symtabs>: New method.
313
84685904
TT
3142021-03-20 Tom Tromey <tom@tromey.com>
315
316 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
317 parameter.
318 (process_psymtab_comp_unit_reader)
319 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
320 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
321 Reference psymtabs via per_bfd.
322
79cc99f6
TT
3232021-03-20 Tom Tromey <tom@tromey.com>
324
325 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
326 Remove.
327 (add_address_entry): Remove objfile parameter.
328 (add_address_entry_worker): Update.
329 (write_address_map): Replace objfile parameter with per_bfd.
330 (write_gdbindex, write_psymtabs_to_index): Update.
331
4829711b
TT
3322021-03-20 Tom Tromey <tom@tromey.com>
333
334 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
335 print_bcache parameter.
336 * symfile-debug.c (objfile::print_stats): Add print_bcache
337 parameter.
338 * quick-symbol.h (struct quick_symbol_functions)
339 <print_stats>: Add print_bcache parameter.
340 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
341 code to psymtab.c.
342 (print_objfile_statistics): Move psymtab code to psymtab.c.
343 * psymtab.c (count_psyms): Move from symmisc.c.
344 (psymbol_functions::print_stats): Print partial symbol and bcache
345 statistics. Add print_bcache parameter.
346 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
347 (struct objfile) <print_stats>: Add print_bcache parameter.
348 * maint.c (maintenance_print_statistics): Update.
349
efd7398e
TT
3502021-03-20 Tom Tromey <tom@tromey.com>
351
352 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
353 member.
354 * dwarf2/read.c (create_addrmap_from_index)
355 (create_addrmap_from_aranges): Set per_bfd addrmap.
356 (dwarf2_read_gdb_index): Don't set partial_symtabs.
357 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
358 per_bfd addrmap.
359 (dwarf2_read_debug_names): Don't set partial_symtabs.
360 (dwarf2_initialize_objfile): Likewise.
361
51962708
TT
3622021-03-20 Tom Tromey <tom@tromey.com>
363
364 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
365 earlier.
366
484b1090
TT
3672021-03-20 Tom Tromey <tom@tromey.com>
368
369 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
370 (~psymtab_discarder, keep): Update.
371 <m_objfile>: Remove.
372 <m_partial_symtabs>: New member.
373 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
374
7e9c0476
TT
3752021-03-20 Tom Tromey <tom@tromey.com>
376
377 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
378 (xcoff_end_psymtab): Update.
379 (scan_xcoff_symtab): Add partial_symtabs parameter.
380 (xcoff_initial_scan): Update.
381 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
382 * mdebugread.c (mdebug_build_psymtabs): Update.
383 (parse_partial_symbols): Add partial_symtabs parameter.
384 * dbxread.c (dbx_symfile_read): Update.
385 (read_dbx_symtab): Add partial_symtabs parameter.
386 (read_dbx_symtab): Update.
387 (dbx_end_psymtab): Add partial_symtabs parameter.
388
75336a5a
TT
3892021-03-20 Tom Tromey <tom@tromey.com>
390
391 * quick-symbol.h (struct quick_symbol_functions)
392 <relocated>: New method.
393 * psymtab.h (struct psymbol_functions) <relocated>: New
394 method.
395 <fill_psymbol_map>: Declare method.
396 <m_psymbol_map>: New member.
397 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
398 (psymbol_functions::find_compunit_symtab_by_address): Update.
399 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
400 (struct objfile) <psymbol_map>: Remove.
401 * objfiles.c (objfile_relocate1): Update.
402
39298a5d
TT
4032021-03-20 Tom Tromey <tom@tromey.com>
404
405 * psympriv.h (struct psymbol_functions): New.
406 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
407 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
408 (objfile::lookup_global_symbol_language): Update.
409 * quick-symbol.h (struct quick_symbol_functions): Convert function
410 pointers to methods. Add virtual destructor.
411 (quick_symbol_functions_up): New typedef.
412 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
413 (dwarf2_debug_names_functions): Don't declare.
414 (make_psymbol_functions): Declare.
415 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
416 (psymbol_functions::find_pc_sect_compunit_symtab)
417 (psymbol_functions::lookup_symbol)
418 (psymbol_functions::lookup_global_symbol_language)
419 (psymbol_functions::find_last_source_symtab)
420 (psymbol_functions::forget_cached_source_info)
421 (psymbol_functions::print_stats, psymbol_functions::dump)
422 (psymbol_functions::expand_symtabs_for_function)
423 (psymbol_functions::expand_all_symtabs)
424 (psymbol_functions::expand_symtabs_with_fullname)
425 (psymbol_functions::map_symbol_filenames)
426 (psymbol_functions::map_matching_symbols)
427 (psymbol_functions::expand_symtabs_matching)
428 (psymbol_functions::has_symbols)
429 (psymbol_functions::find_compunit_symtab_by_address): Rename.
430 (psym_functions): Remove.
431 (make_psymbol_functions): New function.
432 * objfiles.h (struct objfile) <qf>: Change type.
433 * elfread.c (elf_symfile_read): Update.
434 * dwarf2/read.c (struct dwarf2_base_index_functions)
435 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
436 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
437 (dwarf2_base_index_functions::find_last_source_symtab)
438 (dwarf2_base_index_functions::forget_cached_source_info)
439 (dwarf2_base_index_functions::map_symtabs_matching_filename)
440 (dwarf2_gdb_index::lookup_symbol)
441 (dwarf2_base_index_functions::print_stats)
442 (dwarf2_gdb_index::dump)
443 (dwarf2_gdb_index::expand_symtabs_for_function)
444 (dwarf2_base_index_functions::expand_all_symtabs)
445 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
446 Rename.
447 (dwarf2_gdb_index::map_matching_symbols): New method.
448 (dwarf2_gdb_index::expand_symtabs_matching): New method.
449 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
450 (dwarf2_base_index_functions::map_symbol_filenames)
451 (dwarf2_base_index_functions::has_symbols): Rename.
452 (dwarf2_gdb_index_functions): Remove.
453 (dwarf2_debug_names_index::lookup_symbol)
454 (dwarf2_debug_names_index::dump)
455 (dwarf2_debug_names_index::expand_symtabs_for_function)
456 (dwarf2_debug_names_index::map_matching_symbols)
457 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
458 (dwarf2_debug_names_functions): Remove.
459 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
460 Declare.
461
5c3f1e5b
TT
4622021-03-20 Tom Tromey <tom@tromey.com>
463
464 * psymtab.c (require_partial_symbols): Check that 'sf' is not
465 null.
466 * xcoffread.c (xcoff_sym_fns): Update.
467 * symfile.h (struct sym_fns) <qf>: Remove.
468 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
469 * symfile-debug.c (objfile::has_partial_symbols)
470 (objfile::find_last_source_symtab)
471 (objfile::forget_cached_source_info)
472 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
473 (objfile::print_stats, objfile::dump)
474 (objfile::expand_symtabs_for_function)
475 (objfile::expand_all_symtabs)
476 (objfile::expand_symtabs_with_fullname)
477 (objfile::map_matching_symbols)
478 (objfile::expand_symtabs_matching)
479 (objfile::find_pc_sect_compunit_symtab)
480 (objfile::map_symbol_filenames)
481 (objfile::find_compunit_symtab_by_address)
482 (objfile::lookup_global_symbol_language, debug_sym_fns)
483 (install_symfile_debug_logging): Update.
484 * objfiles.h (struct objfile) <qf>: New member.
485 * mipsread.c (ecoff_sym_fns): Update.
486 * machoread.c (macho_sym_fns): Update.
487 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
488 Don't declare.
489 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
490 * dbxread.c (aout_sym_fns): Update.
491 * coffread.c (coff_sym_fns): Update.
492
9b99dcc8
TT
4932021-03-20 Tom Tromey <tom@tromey.com>
494
495 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
496 (expand_symtabs_file_matcher_ftype)
497 (expand_symtabs_symbol_matcher_ftype)
498 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
499 Move to quick-symbol.h.
500 * quick-symbol.h: New file.
501
4d080b46
TT
5022021-03-20 Tom Tromey <tom@tromey.com>
503
504 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
505 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
506 (basic_lookup_transparent_type_quick)
507 (find_pc_sect_compunit_symtab, find_symbol_at_address)
508 (find_line_symtab, global_symbol_searcher::expand_symtabs):
509 Update.
510 * symmisc.c (print_objfile_statistics, dump_objfile)
511 (maintenance_expand_symtabs): Update.
512 * symfile.c (symbol_file_add_with_addrs)
513 (expand_symtabs_matching, map_symbol_filenames): Update.
514 * symfile-debug.c (objfile::has_partial_symbols)
515 (objfile::find_last_source_symtab)
516 (objfile::forget_cached_source_info)
517 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
518 (objfile::print_stats, objfile::dump)
519 (objfile::expand_symtabs_for_function)
520 (objfile::expand_all_symtabs)
521 (objfile::expand_symtabs_with_fullname)
522 (objfile::map_matching_symbols)
523 (objfile::expand_symtabs_matching)
524 (objfile::find_pc_sect_compunit_symtab)
525 (objfile::map_symbol_filenames)
526 (objfile::find_compunit_symtab_by_address)
527 (objfile::lookup_global_symbol_language): New methods.
528 (debug_sym_quick_functions): Remove.
529 (debug_sym_fns, install_symfile_debug_logging): Update.
530 * source.c (forget_cached_source_info_for_objfile)
531 (select_source_symtab): Update.
532 * objfiles.h (struct objfile): Add methods corresponding to
533 quick_symbol_functions.
534 * objfiles.c (objfile::has_partial_symbols): Move to
535 symfile-debug.c.
536 * linespec.c (iterate_over_all_matching_symtabs): Update.
537 * cp-support.c (add_symbol_overload_list_qualified): Update.
538 * ada-lang.c (add_nonlocal_symbols): Update.
539
fae2120b
TT
5402021-03-20 Tom Tromey <tom@tromey.com>
541
542 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
543 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
544 bool.
545 * symfile-debug.c (debug_qf_has_symbols): Return bool.
546 * psymtab.c (psym_has_symbols): Return bool.
547 * objfiles.c (objfile::has_partial_symbols): Return bool.
548 * dwarf2/read.c (dw2_has_symbols): Return bool.
549
a8ad4f3c
TT
5502021-03-20 Tom Tromey <tom@tromey.com>
551
552 * symfile.c (read_symbols): Update.
553 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
554 (objfile_has_partial_symbols): Don't declare.
555 * objfiles.c (objfile::has_partial_symbols): Rename from
556 objfile_has_partial_symbols.
557 (objfile_has_symbols, have_partial_symbols): Update.
558 * elfread.c (elf_symfile_read): Update.
559 * dwarf2/read.c (dwarf2_has_info): Update.
560 * coffread.c (coff_symfile_read): Update.
561
70182375
TT
5622021-03-20 Tom Tromey <tom@tromey.com>
563
564 * coffread.c: Include dwarf2/public.h.
565 * dwarf2/frame.c: Include dwarf2/public.h.
566 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
567 * dwarf2/public.h: New file.
568 * dwarf2/read.c: Include dwarf2/public.h.
569 * elfread.c: Include dwarf2/public.h.
570 * machoread.c: Include dwarf2/public.h.
571 * symfile.h (dwarf2_has_info, enum dw_index_kind)
572 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
573 (dwarf2_build_frame_info): Move to dwarf2/public.h.
574 * xcoffread.c: Include dwarf2/public.h.
575
18038e63
TT
5762021-03-20 Tom Tromey <tom@tromey.com>
577
578 * symfile.h (enum dwarf2_section_enum)
579 (dwarf2_get_section_info): Move to dwarf2/read.h.
580 * dwarf2/read.h (enum dwarf2_section_enum)
581 (dwarf2_get_section_info): Move from symfile.h.
582
219f56b4
PA
5832021-03-19 Pedro Alves <pedro@palves.net>
584
585 * thread.c (any_thread_of_inferior): Check if there's a selected
586 thread before calling inferior_thread().
587
15310fd4
TT
5882021-03-18 Tom Tromey <tromey@adacore.com>
589
590 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
591 get_DW_UT_name.
592 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
593 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
594
763b8efd
AB
5952021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
596
597 * python/py-param.c (get_set_value): Update header comment.
598
f058c521
SM
5992021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
600
601 * infrun.c (check_multi_target_resumption): Remove argument to
602 all_non_exited_inferiors.
603
383228bc
CB
6042021-03-16 Christian Biesinger <cbiesinger@google.com>
605
606 * windows-nat.c (windows_init_thread_list): Add message to
607 debug log.
608
7807d76a
AB
6092021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
610
611 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
612 well as PyLong_Check for Python 2.
613
675da9a5
TT
6142021-03-15 Tom Tromey <tromey@adacore.com>
615
616 PR build/27579:
617 * rust-exp.y (maker_map): Use gdb::hash_enum.
618 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
619
4800761a
SM
6202021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
621
622 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
623 end of debug print.
624
eb5dd737
SM
6252021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
626
627 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
628 parameter, adjust caller.
629
6813ceb0
TT
6302021-03-15 Tom Tromey <tromey@adacore.com>
631
632 * ada-exp.y (simple_exp): Always push a result for unary '+'.
633
3b5c4de0
TT
6342021-03-15 Tom Tromey <tromey@adacore.com>
635
636 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
637 ada_ensure_varsize_limit.
638
c04da66c
TT
6392021-03-15 Tom Tromey <tromey@adacore.com>
640
641 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
642 fixed-point.
643 * ada-exp.y (maybe_overload): New function.
644 (ada_wrap_overload): New function.
645 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
646 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
647 (or_else_exp, xor_exp, primary): Update.
648
9863c3b5
TT
6492021-03-15 Tom Tromey <tromey@adacore.com>
650
651 PR ada/27545:
652 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
653 call for tagged type.
654
1ac74522
TT
6552021-03-15 Tom Tromey <tromey@adacore.com>
656
657 * ada-exp.y (exp1): Handle resolution of the right hand side of an
658 assignment.
659
207582c0
TT
6602021-03-15 Tom Tromey <tromey@adacore.com>
661
662 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
663 container.
664 (ada_assign_operation::evaluate): Update.
665 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
666 Change return type.
667
8d624a9d
FW
6682021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
669
670 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
671
ba6a0ef3
AB
6722021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
673
674 * python/python.c (gdbpy_source_objfile_script): Use
675 make_scoped_restore to restore gdbpy_current_objfile.
676 (gdbpy_execute_objfile_script): Likewise.
677
7c290a04
TT
6782021-03-14 Tom Tromey <tom@tromey.com>
679
680 * dwarf2/read.c (read_attribute_value): Use cu_header
681 consistently.
682
0280fdcc
TT
6832021-03-14 Tom Tromey <tom@tromey.com>
684
685 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
686 (peek_die_abbrev): Use reader.abfd.
687
a9f172c6
TT
6882021-03-14 Tom Tromey <tom@tromey.com>
689
690 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
691 m_header_read_in.
692
7c32eebb
TT
6932021-03-13 Tom Tromey <tom@tromey.com>
694
695 * dwarf2/read.c (struct partial_die_info): Update.
696 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
697 (load_partial_dies, partial_die_info::partial_die_info): Update.
698 * dwarf2/abbrev.h (lookup_abbrev): Constify.
699
27012aba
TT
7002021-03-13 Tom Tromey <tom@tromey.com>
701
702 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
703
fece451c
CB
7042021-03-12 Christian Biesinger <cbiesinger@google.com>
705
706 PR threads/27239
707 * cp-support.c: Use scoped_segv_handler_restore.
708 * event-top.c (thread_local_segv_handler): Made static.
709 (scoped_segv_handler_restore::scoped_segv_handler_restore):
710 New function.
711 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
712 function.
713 * event-top.h (class scoped_segv_handler_restore): New class.
714 (thread_local_segv_handler): Removed.
715
7056f312
TT
7162021-03-10 Tom Tromey <tromey@adacore.com>
717
718 * parser-defs.h (parser_state): Change completion to bool.
719 <parse_completion>: Likewise.
720 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
721 (ada_resolve_variable, ada_resolve_function): Update.
722 * ada-lang.c (ada_find_operator_symbol): Change
723 parse_completion to bool.
724 (ada_resolve_funcall, ada_resolve_variable)
725 (ada_resolve_function): Likewise.
726
ccdc02ed
TT
7272021-03-09 Tom Tromey <tromey@adacore.com>
728
729 * eval.c (operation::evaluate_funcall): Use function formal
730 parameter types when evaluating.
731
fbb1aace
AB
7322021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
733
734 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
735 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
736 and owner to m_owner.
737
611aa09d
FW
7382021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
739
740 * f-exp.h (eval_op_f_loc): Declare.
741 (expr::fortran_loc_operation): New typedef.
742 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
743 UNOP_INTRINSIC.
744 (f77_keywords): Add LOC keyword.
745 * f-lang.c (eval_op_f_loc): New function.
746 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
747
eef32f59
AB
7482021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
749
750 * f-exp.h (eval_op_f_array_shape): Declare.
751 (fortran_array_shape_operation): New type.
752 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
753 UNOP_INTRINSIC.
754 (f77_keywords): Add "shape" keyword.
755 * f-lang.c (fortran_array_shape): New function.
756 (eval_op_f_array_shape): New function.
757 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
758
7ba155b3
AB
7592021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
760
761 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
762 of this function.
763 (expr::fortran_array_size_1arg): New type.
764 (expr::fortran_array_size_2arg): Likewise.
765 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
766 UNOP_OR_BINOP_INTRINSIC.
767 (f77_keywords): Add "size" keyword.
768 * f-lang.c (fortran_array_size): New function.
769 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
770 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
771
e14816a8
AB
7722021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
773
774 * f-exp.h (eval_op_f_rank): Declare.
775 (expr::fortran_rank_operation): New typedef.
776 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
777 UNOP_INTRINSIC.
778 (f77_keywords): Add "rank" keyword.
779 * f-lang.c (eval_op_f_rank): New function.
780 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
781
3dd93bf8
TT
7822021-03-08 Tom Tromey <tom@tromey.com>
783
784 * printcmd.c (set_command): Remove null check.
785 * value.c (init_if_undefined_command): Remove null check.
786
9c79936b
TT
7872021-03-08 Tom Tromey <tom@tromey.com>
788
789 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
790 Update.
791 * p-exp.y (variable): Update.
792 * go-exp.y (variable): Update.
793 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
794 Remove overload for objfile.
795 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
796 parameter.
797 (check_objfile): Likewise.
798 (dump_for_expression): Likewise. Remove overload for objfile.
799 (class var_msym_value_operation): Use bound_minimal_symbol.
800 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
801 parameter.
802 (var_msym_value_operation::evaluate_for_address)
803 (var_msym_value_operation::evaluate_for_sizeof)
804 (var_msym_value_operation::evaluate_for_cast): Update.
805 * d-exp.y (PrimaryExpression): Update.
806 * c-exp.y (variable): Update.
807 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
808 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
809 Update.
810 * ada-exp.y (write_var_or_type): Update.
811
40d07d07
TT
8122021-03-08 Tom Tromey <tom@tromey.com>
813
814 * parser-defs.h (exp_uses_objfile): Return bool.
815 * parse.c (exp_uses_objfile): Return bool.
816
0b2b0b82
TT
8172021-03-08 Tom Tromey <tom@tromey.com>
818
819 * value.h (eval_skip_value): Don't declare.
820 * opencl-lang.c (eval_opencl_assign): Update.
821 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
822 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
823 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
824 * expression.h (enum noside) <EVAL_SKIP>: Remove.
825 * expop.h (typeof_operation::evaluate)
826 (decltype_operation::evaluate, unop_addr_operation::evaluate)
827 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
828 (cxx_cast_operation::evaluate): Update.
829 * eval.c (eval_skip_value): Remove.
830 (eval_op_scope, eval_op_var_entry_value)
831 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
832 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
833 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
834 (eval_op_binary, eval_op_subscript, eval_op_equal)
835 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
836 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
837 (eval_op_complement, eval_op_lognot, eval_op_ind)
838 (eval_op_memval, eval_op_preinc, eval_op_predec)
839 (eval_op_postinc, eval_op_postdec, eval_op_type)
840 (eval_binop_assign_modify, eval_op_objc_msgcall)
841 (eval_multi_subscript, logical_and_operation::evaluate)
842 (logical_or_operation::evaluate, array_operation::evaluate)
843 (operation::evaluate_for_cast)
844 (var_msym_value_operation::evaluate_for_cast)
845 (var_value_operation::evaluate_for_cast): Update.
846 * c-lang.c (c_string_operation::evaluate): Update.
847 * c-exp.h (objc_nsstring_operation::evaluate)
848 (objc_selector_operation::evaluate): Update.
849 * ada-lang.c (ada_assign_operation::evaluate)
850 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
851 (ada_atr_size): Update.
852
96db551d
TT
8532021-03-08 Tom Tromey <tom@tromey.com>
854
855 * eval.c: Merge "namespace" scopes.
856
ce284361
TT
8572021-03-08 Tom Tromey <tom@tromey.com>
858
859 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
860 <release>: Inline.
861 * parse.c (expr_builder::expr_builder, expr_builder::release):
862 Remove.
863
b9d06571
TT
8642021-03-08 Tom Tromey <tom@tromey.com>
865
866 * parse.c (expression::expression, expression::~expression):
867 Remove.
868 * expression.h (struct expression): Inline constructor. Remove
869 destructor.
870
79ab486e
TT
8712021-03-08 Tom Tromey <tom@tromey.com>
872
873 * std-operator.def (BINOP_END): Remove.
874 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
875 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
876 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
877 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
878 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
879 BINOP_END.
880
48fa6f23
TT
8812021-03-08 Tom Tromey <tom@tromey.com>
882
883 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
884
43f542e3
TT
8852021-03-08 Tom Tromey <tom@tromey.com>
886
887 * std-operator.def (OP_EXTENDED0): Remove.
888
5d9ba982
TT
8892021-03-08 Tom Tromey <tom@tromey.com>
890
891 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
892 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
893 Remove.
894
d357570d
TT
8952021-03-08 Tom Tromey <tom@tromey.com>
896
897 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
898 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
899
0922dc84
TT
9002021-03-08 Tom Tromey <tom@tromey.com>
901
902 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
903 * ada-lang.c (ada_binop_minmax): Update.
904 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
905 Use BINOP_MIN and BINOP_MAX.
906
1eaebe02
TT
9072021-03-08 Tom Tromey <tom@tromey.com>
908
909 * value.h (evaluate_subexp_with_coercion): Don't declare.
910 * parse.c (exp_descriptor_standard): Remove.
911 (expr_builder::expr_builder, expr_builder::release): Update.
912 (expression::expression): Remove size_t parameter.
913 (expression::~expression): Simplify.
914 (expression::resize): Remove.
915 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
916 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
917 (write_exp_elt_longcst, write_exp_elt_floatcst)
918 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
919 (write_exp_string_vector, write_exp_bitstring): Remove.
920 * p-lang.h (class pascal_language) <opcode_print_table,
921 op_print_tab>: Remove.
922 * p-lang.c (pascal_language::op_print_tab): Remove.
923 * opencl-lang.c (class opencl_language) <opcode_print_table>:
924 Remove.
925 * objc-lang.c (objc_op_print_tab): Remove.
926 (class objc_language) <opcode_print_table>: Remove.
927 * m2-lang.h (class m2_language) <opcode_print_table,
928 op_print_tab>: Remove.
929 * m2-lang.c (m2_language::op_print_tab): Remove.
930 * language.h (struct language_defn) <post_parser, expression_ops,
931 opcode_print_table>: Remove.
932 * language.c (language_defn::expression_ops)
933 (auto_or_unknown_language::opcode_print_table): Remove.
934 * go-lang.h (class go_language) <opcode_print_table,
935 op_print_tab>: Remove.
936 * go-lang.c (go_language::op_print_tab): Remove.
937 * f-lang.h (class f_language) <opcode_print_table>: Remove
938 <op_print_tab>: Remove.
939 * f-lang.c (f_language::op_print_tab): Remove.
940 * expression.h (union exp_element): Remove.
941 (struct expression): Remove size_t parameter from constructor.
942 <resize>: Remove.
943 <first_opcode>: Update.
944 <nelts, elts>: Remove.
945 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
946 (evaluate_subexp_standard, print_expression, op_string)
947 (dump_raw_expression): Don't declare.
948 * expprint.c (print_expression, print_subexp)
949 (print_subexp_funcall, print_subexp_standard, op_string)
950 (dump_raw_expression, dump_subexp, dump_subexp_body)
951 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
952 (dump_prefix_expression): Update.
953 * eval.c (evaluate_subexp): Remove.
954 (evaluate_expression, evaluate_type): Update.
955 (evaluate_subexpression_type): Remove.
956 (fetch_subexp_value): Remove "pc" parameter. Update.
957 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
958 (evaluate_subexp_standard, evaluate_subexp_for_address)
959 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
960 (evaluate_subexp_for_cast): Remove.
961 (parse_and_eval_type): Update.
962 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
963 * d-lang.c (d_op_print_tab): Remove.
964 (class d_language) <opcode_print_table>: Remove.
965 * c-lang.h (c_op_print_tab): Don't declare.
966 * c-lang.c (c_op_print_tab): Remove.
967 (class c_language, class cplus_language, class asm_language, class
968 minimal_language) <opcode_print_table>: Remove.
969 * breakpoint.c (update_watchpoint, watchpoint_check)
970 (watchpoint_exp_is_const, watch_command_1): Update.
971 * ax-gdb.h (union exp_element): Don't declare.
972 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
973 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
974 (gen_expr_binop_rest): Remove.
975 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
976 * ada-lang.c (ada_op_print_tab): Remove.
977 (class ada_language) <post_parser, opcode_print_table>: Remove.
978
f2a98603
TT
9792021-03-08 Tom Tromey <tom@tromey.com>
980
981 * go-lang.c (go_language::expression_ops): Don't declare.
982 * go-lang.h (class go_language) <expression_ops>: Remove.
983 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
984 Remove.
985 (class opencl_language) <expression_ops>: Remove.
986 * d-lang.c (class d_language) <expression_ops>: Remove.
987 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
988 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
989 (class c_language, class cplus_language, class asm_language)
990 (class minimal_language) <expression_ops>: Remove.
991
d3c54a1c
TT
9922021-03-08 Tom Tromey <tom@tromey.com>
993
994 * ada-lang.c (resolve_subexp, replace_operator_with_call)
995 (evaluate_subexp_type, assign_aggregate)
996 (aggregate_assign_positional, aggregate_assign_from_choices)
997 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
998 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
999 (ada_operator_check, ada_forward_operator_length)
1000 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
1001 Remove.
1002 (post_parser): Update.
1003 (class ada_language) <expresssion_ops>: Remove.
1004
5871f0a3
TT
10052021-03-08 Tom Tromey <tom@tromey.com>
1006
1007 * m2-lang.h (class m2_language) <expresssion_ops,
1008 exp_descriptor_modula2>: Remove.
1009 * m2-lang.c (evaluate_subexp_modula2)
1010 (m2_language::exp_descriptor_modula2): Remove.
1011
a99be8c1
TT
10122021-03-08 Tom Tromey <tom@tromey.com>
1013
1014 * f-lang.h (class f_language) <expresssion_ops>: Remove.
1015 <exp_descriptor_tab>: Remove.
1016 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
1017 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
1018 (print_subexp_f, dump_subexp_body_f, operator_check_f)
1019 (f_language::exp_descriptor_tab, fortran_prepare_argument):
1020 Remove.
1021
aa1da9ed
TT
10222021-03-08 Tom Tromey <tom@tromey.com>
1023
1024 * rust-lang.h (class rust_language) <expression_ops,
1025 exp_descriptor_tab>: Remove.
1026 * rust-lang.c (rust_evaluate_funcall): Remove.
1027 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
1028 EVAL_SKIP.
1029 (rust_evaluate_subexp): Remove.
1030 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
1031 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
1032 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
1033
08a057e6
TT
10342021-03-08 Tom Tromey <tom@tromey.com>
1035
1036 * ada-exp.y: Create operations.
1037 (empty_stoken): Remove.
1038 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
1039 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
1040 (components): New global.
1041 (push_component, choice_component, pop_component, pop_components):
1042 New functions.
1043 (associations): New global
1044 (push_association, pop_association, pop_associations): New
1045 functions.
1046 (ada_parse): Update.
1047 (write_var_from_sym, write_int): Create operations.
1048 (write_exp_op_with_string): Remove.
1049 (write_object_renaming, write_selectors, write_ambiguous_var)
1050 (write_var_or_type, write_name_assoc): Create operations.
1051 * ada-lang.h (ada_index_type): Declare.
1052 * ada-lang.c (ada_index_type): No longer static.
1053
d308ba78
TT
10542021-03-08 Tom Tromey <tom@tromey.com>
1055
1056 * f-exp.y: Create operations.
1057 (f_language::parser): Update.
1058
f1b8ceef
TT
10592021-03-08 Tom Tromey <tom@tromey.com>
1060
1061 * m2-exp.y: Create operations.
1062 (m2_language::parser): Update.
1063
3163898e
TT
10642021-03-08 Tom Tromey <tom@tromey.com>
1065
1066 * p-exp.y: Create operations.
1067 (pascal_language::parser): Update.
1068
9412fdcc
TT
10692021-03-08 Tom Tromey <tom@tromey.com>
1070
1071 * d-exp.y: Create operations.
1072 (d_parse): Update.
1073
bb4e0574
TT
10742021-03-08 Tom Tromey <tom@tromey.com>
1075
1076 * go-exp.y: Create operations.
1077 (go_language::parser): Update.
1078
d182f279
TT
10792021-03-08 Tom Tromey <tom@tromey.com>
1080
1081 * objc-lang.c (end_msglist): Create operations.
1082 * c-exp.y: Change parser to create operations.
1083 (write_destructor_name): Remove.
1084 (c_parse): Update.
1085
c1299a23
TT
10862021-03-08 Tom Tromey <tom@tromey.com>
1087
1088 * rust-exp.y: Create operations.
1089 (rust_parser::convert_params_to_expression): Change return type.
1090 (binop_maker_ftype): New typedef.
1091 (maker_map): New global.
1092 (rust_parser::convert_ast_to_expression): Change return type.
1093 (rust_language::parser): Update.
1094 (_initialize_rust_exp): Initialize maker_map.
1095
4c5e7a93
TT
10962021-03-08 Tom Tromey <tom@tromey.com>
1097
1098 * stap-probe.c (binop_maker_ftype): New typedef.
1099 (stap_maker_map): New global.
1100 (stap_make_binop): New function.
1101 (stap_parse_register_operand): Return operation_up.
1102 (stap_parse_single_operand, stap_parse_argument_conditionally)
1103 (stap_parse_argument_1): Likewise.
1104 (stap_parse_argument): Create operations.
1105 (stap_probe::parse_arguments): Update.
1106 (_initialize_stap_probe): Initialize stap_maker_map.
1107 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
1108 type.
1109 * i386-tdep.h (i386_stap_parse_special_token): Change return
1110 type.
1111 * i386-tdep.c (i386_stap_parse_special_token_triplet)
1112 (i386_stap_parse_special_token_three_arg_disp)
1113 (i386_stap_parse_special_token): Change return type.
1114 * gdbarch.sh (stap_parse_special_token): Change return type.
1115 * gdbarch.c: Rebuild.
1116 * gdbarch.h: Rebuild.
1117 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
1118 type.
1119 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
1120 return type.
1121
482ddd69
TT
11222021-03-08 Tom Tromey <tom@tromey.com>
1123
1124 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
1125 * gdbarch.h: Rebuild.
1126 * gdbarch.c: Rebuild.
1127 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
1128 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
1129 return type.
1130 (amd64_dtrace_parse_probe_argument): Update.
1131
8227d9e2
TT
11322021-03-08 Tom Tromey <tom@tromey.com>
1133
1134 * parser-defs.h (struct parser_state) <push, push_new,
1135 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
1136 wrap2>: New methods.
1137 <m_operations>: New member.
1138 * parse.c (parser_state::push_c_string)
1139 (parser_state::push_symbol, parser_state::push_dollar): New
1140 methods.
1141
4933522d
TT
11422021-03-08 Tom Tromey <tom@tromey.com>
1143
1144 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
1145 New member.
1146 (struct parser_state) <mark_struct_expression>: New method.
1147 * parse.c (parser_state::mark_struct_expression): Update assert.
1148 (parser_state::mark_struct_expression): New method.
1149 (parser_state::mark_completion_tag): Update assert.
1150 (parse_expression_for_completion): Handle expout_last_op.
1151
413403fc
TT
11522021-03-08 Tom Tromey <tom@tromey.com>
1153
1154 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
1155 now in superclass.
1156 * value.h (fetch_subexp_value): Add "op" parameter.
1157 * value.c (init_if_undefined_command): Update.
1158 * tracepoint.c (validate_actionline, encode_actions_1): Update.
1159 * stap-probe.c (stap_probe::compile_to_ax): Update.
1160 * printcmd.c (set_command): Update.
1161 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
1162 Update.
1163 * parser-defs.h (struct expr_builder) <set_operation>: New
1164 method.
1165 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
1166 * expression.h (struct expression) <first_opcode>: Update.
1167 <op>: New member.
1168 * expprint.c (dump_raw_expression, dump_prefix_expression):
1169 Update.
1170 * expop.h (class var_value_operation) <get_symbol>: New method.
1171 (class register_operation) <get_name>: New method.
1172 (class equal_operation): No longer a typedef, now a subclass.
1173 (class unop_memval_operation) <get_type>: New method.
1174 (class assign_operation) <get_lhs>: New method.
1175 (class unop_cast_operation) <get_type>: New method.
1176 * eval.c (evaluate_expression, evaluate_type)
1177 (evaluate_subexpression_type): Update.
1178 (fetch_subexp_value): Add "op" parameter.
1179 (parse_and_eval_type): Update.
1180 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
1181 * breakpoint.c (update_watchpoint, watchpoint_check)
1182 (watchpoint_exp_is_const, watch_command_1): Update.
1183 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
1184 Update.
1185
b0f9164c
TT
11862021-03-08 Tom Tromey <tom@tromey.com>
1187
1188 * ada-lang.c (ada_value_binop): Do not use op_string.
1189
a88c4354
TT
11902021-03-08 Tom Tromey <tom@tromey.com>
1191
1192 * expprint.c (dump_for_expression): New overload.
1193 * expop.h (check_objfile, dump_for_expression): Declare new
1194 overloads.
1195 * ada-lang.c (check_objfile): New overload.
1196 (assign_component, ada_aggregate_component::uses_objfile)
1197 (ada_aggregate_component::dump, ada_aggregate_component::assign)
1198 (ada_aggregate_component::assign_aggregate)
1199 (ada_positional_component::uses_objfile)
1200 (ada_positional_component::dump, ada_positional_component::assign)
1201 (ada_discrete_range_association::uses_objfile)
1202 (ada_discrete_range_association::dump)
1203 (ada_discrete_range_association::assign)
1204 (ada_name_association::uses_objfile, ada_name_association::dump)
1205 (ada_name_association::assign)
1206 (ada_choices_component::uses_objfile, ada_choices_component::dump)
1207 (ada_choices_component::assign)
1208 (ada_others_component::uses_objfile, ada_others_component::dump)
1209 (ada_others_component::assign, ada_assign_operation::evaluate):
1210 New methods.
1211 * ada-exp.h (ada_string_operation) <get_name>: New method.
1212 (class ada_assign_operation): New.
1213 (class ada_component): New.
1214 (ada_component_up): New typedef.
1215 (class ada_aggregate_operation, class ada_aggregate_component)
1216 (class ada_positional_component, class ada_others_component)
1217 (class ada_association): New.
1218 (ada_association_up): New typedef.
1219 (class ada_choices_component)
1220 (class ada_discrete_range_association)
1221 (class ada_name_association): New.
1222
d8a4ed8a
TT
12232021-03-08 Tom Tromey <tom@tromey.com>
1224
1225 * ada-lang.c (ada_var_value_operation::resolve)
1226 (ada_funcall_operation::resolve)
1227 (ada_ternop_slice_operation::resolve): New methods.
1228 * ada-exp.h (struct ada_resolvable): New.
1229 (class ada_var_value_operation): Derive from ada_resolvable.
1230 <get_block, resolve>: New methods.
1231 (class ada_funcall_operation): Derive from ada_resolvable.
1232 <resolve>: New method.
1233 (class ada_ternop_slice_operation): Derive from ada_resolvable.
1234 <resolve>: New method.
1235
efe3af2f
TT
12362021-03-08 Tom Tromey <tom@tromey.com>
1237
1238 * ada-lang.c (ada_funcall_operation::evaluate): New method.
1239 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
1240 method.
1241 (class ada_funcall_operation): New.
1242
ebc06ad8
TT
12432021-03-08 Tom Tromey <tom@tromey.com>
1244
1245 * ada-lang.c (ada_structop_operation::evaluate): New method.
1246 * ada-exp.h (class ada_structop_operation): New.
1247
e8c33fa1
TT
12482021-03-08 Tom Tromey <tom@tromey.com>
1249
1250 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
1251 * ada-exp.h (class ada_unop_ind_operation): New.
1252
065ec826
TT
12532021-03-08 Tom Tromey <tom@tromey.com>
1254
1255 * ada-lang.c (ada_binop_exp): No longer static.
1256 * ada-exp.h (ada_binop_exp_operation): New typedef.
1257
9e99f48f
TT
12582021-03-08 Tom Tromey <tom@tromey.com>
1259
1260 * ada-lang.c (ada_val_atr): No longer static.
1261 (ada_atr_val_operation::evaluate): New method.
1262 * ada-exp.h (class ada_atr_val_operation): New.
1263
7631cf6c
TT
12642021-03-08 Tom Tromey <tom@tromey.com>
1265
1266 * ada-lang.c (ada_pos_atr): No longer static.
1267 * ada-exp.h (ada_pos_operation): New typedef.
1268
7992accc
TT
12692021-03-08 Tom Tromey <tom@tromey.com>
1270
1271 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
1272 parameters.
1273 (ada_evaluate_subexp): Use it.
1274
6ad3b8bf
TT
12752021-03-08 Tom Tromey <tom@tromey.com>
1276
1277 * ada-lang.c (ada_binop_minmax): No longer static.
1278 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
1279 New typedefs.
1280
3f4a0053
TT
12812021-03-08 Tom Tromey <tom@tromey.com>
1282
1283 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
1284 New method.
1285 * ada-exp.h (class ada_var_msym_value_operation): New.
1286
99a3b1e7
TT
12872021-03-08 Tom Tromey <tom@tromey.com>
1288
1289 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1290 (ada_var_value_operation::evaluate): New methods.
1291 * ada-exp.h (class ada_var_value_operation): New.
1292
60fa02ca
TT
12932021-03-08 Tom Tromey <tom@tromey.com>
1294
1295 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
1296 * ada-exp.h (class ada_unop_atr_operation): New.
1297
82c3886e
TT
12982021-03-08 Tom Tromey <tom@tromey.com>
1299
1300 * ada-lang.c (ada_binop_in_bounds): No longer static.
1301 * ada-exp.h (class ada_binop_in_bounds_operation): New.
1302
1b1ebfab
TT
13032021-03-08 Tom Tromey <tom@tromey.com>
1304
1305 * ada-lang.c (ada_ternop_slice): No longer static.
1306 * ada-exp.h (class ada_ternop_slice_operation): New.
1307
039e4b76
TT
13082021-03-08 Tom Tromey <tom@tromey.com>
1309
1310 * ada-exp.h (ada_bitwise_operation): New template class.
1311 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
1312 (ada_bitwise_xor_operation): New typedefs.
1313
6e8fb7b7
TT
13142021-03-08 Tom Tromey <tom@tromey.com>
1315
1316 * ada-lang.c (ada_equal_binop): No longer static.
1317 * ada-exp.h (class ada_binop_equal_operation): New.
1318
d9e7db06
TT
13192021-03-08 Tom Tromey <tom@tromey.com>
1320
1321 * ada-lang.c (ada_mult_binop): No longer static.
1322 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
1323 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
1324
73796c73
TT
13252021-03-08 Tom Tromey <tom@tromey.com>
1326
1327 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
1328 * ada-exp.h (class ada_binop_addsub_operation): New.
1329
cd9a3148
TT
13302021-03-08 Tom Tromey <tom@tromey.com>
1331
1332 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1333 (ada_resolve_variable): Declare.
1334 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
1335 (ada_resolve_variable): New functions.
1336 (resolve_subexp): Update.
1337
cf12b17f
TT
13382021-03-08 Tom Tromey <tom@tromey.com>
1339
1340 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
1341 method.
1342 * c-exp.h (class opencl_ternop_cond_operation): New.
1343
944fd3b8
TT
13442021-03-08 Tom Tromey <tom@tromey.com>
1345
1346 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
1347 method.
1348 * c-exp.h (class opencl_logical_binop_operation): New.
1349
33b79214
TT
13502021-03-08 Tom Tromey <tom@tromey.com>
1351
1352 * opencl-lang.c (opencl_structop_operation::evaluate): New
1353 method.
1354 * c-exp.h (class opencl_structop_operation): New.
1355
2492ba36
TT
13562021-03-08 Tom Tromey <tom@tromey.com>
1357
1358 * opencl-lang.c (opencl_logical_not): No longer static. Change
1359 parameters.
1360 (evaluate_subexp_opencl): Update.
1361 * c-exp.h (opencl_notequal_operation): New typedef.
1362
a88c3c8d
TT
13632021-03-08 Tom Tromey <tom@tromey.com>
1364
1365 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
1366 static. Change parameters.
1367 (eval_opencl_assign): No longer static. Add "op" parameter.
1368 (evaluate_subexp_opencl): Update.
1369 * c-exp.h (opencl_binop_operation): New template class.
1370 (opencl_assign_operation, opencl_equal_operation)
1371 (opencl_notequal_operation, opencl_less_operation)
1372 (opencl_gtr_operation, opencl_geq_operation)
1373 (opencl_leq_operation): New typedefs.
1374
e9677704
TT
13752021-03-08 Tom Tromey <tom@tromey.com>
1376
1377 * opencl-lang.c (opencl_value_cast): No longer static.
1378 * c-exp.h (opencl_cast_type_operation): New typedef.
1379
f403a4e4
TT
13802021-03-08 Tom Tromey <tom@tromey.com>
1381
1382 * f-exp.h (eval_op_f_allocated): Declare.
1383 (fortran_allocated_operation): New typedef.
1384 * f-lang.c (eval_op_f_allocated): No longer static.
1385
eb4c9271
TT
13862021-03-08 Tom Tromey <tom@tromey.com>
1387
1388 * f-lang.c (eval_op_f_associated): New functions.
1389 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
1390 typedefs.
1391
58a76c72
TT
13922021-03-08 Tom Tromey <tom@tromey.com>
1393
1394 * f-lang.c (fortran_bound_1arg::evaluate)
1395 (fortran_bound_2arg::evaluate): New methods.
1396 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
1397 New.
1398
2f98abe1
TT
13992021-03-08 Tom Tromey <tom@tromey.com>
1400
1401 * expop.h (class unop_addr_operation) <get_expression>: New
1402 method.
1403 * f-lang.c (fortran_undetermined::value_subarray)
1404 (fortran_undetermined::evaluate): New methods.
1405 (fortran_prepare_argument): New overload.
1406 * f-exp.h (class fortran_range_operation)
1407 (class fortran_undetermined): New classes.
1408
638fd74a
TT
14092021-03-08 Tom Tromey <tom@tromey.com>
1410
1411 * rust-lang.c (rust_structop::evaluate_funcall): New method.
1412 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
1413 method.
1414
a00b7254
TT
14152021-03-08 Tom Tromey <tom@tromey.com>
1416
1417 * expression.h (class operation) <evaluate_funcall>: New methods.
1418 * expop.h (class scope_operation) <evaluate_funcall>: New method.
1419 (class var_value_operation) <evaluate_funcall>: New method.
1420 (class structop_base_operation) <evaluate_funcall>: New method.
1421 (class var_msym_value_operation) <evaluate_funcall>: New method.
1422 (class structop_member_base): New class.
1423 (class structop_member_operation): Derive from
1424 structop_member_base.
1425 (class structop_mptr_operation): Derive from
1426 structop_member_base.
1427 (class funcall_operation): New class.
1428 * eval.c (operation::evaluate_funcall)
1429 (var_value_operation::evaluate_funcall)
1430 (scope_operation::evaluate_funcall)
1431 (structop_member_base::evaluate_funcall)
1432 (structop_base_operation::evaluate_funcall): New methods.
1433
1c02eb30
TT
14342021-03-08 Tom Tromey <tom@tromey.com>
1435
1436 * expop.h (class array_operation): New.
1437 * eval.c (array_operation::evaluate_struct_tuple)
1438 (array_operation::evaluate): New methods.
1439
e4479080
TT
14402021-03-08 Tom Tromey <tom@tromey.com>
1441
1442 * expop.h (class adl_func_operation): New.
1443 * eval.c (adl_func_operation::evaluate): New method.
1444
95d49dfb
TT
14452021-03-08 Tom Tromey <tom@tromey.com>
1446
1447 * ada-lang.c (ada_unop_in_range): No longer static.
1448 * ada-exp.h (class ada_unop_range_operation): New.
1449
7c15d377
TT
14502021-03-08 Tom Tromey <tom@tromey.com>
1451
1452 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
1453 No longer static.
1454 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
1455 (ada_atr_size_operation, ada_abs_operation): New typedefs.
1456
5019124b
TT
14572021-03-08 Tom Tromey <tom@tromey.com>
1458
1459 * expop.h (class logical_and_operation)
1460 (class logical_or_operation): New.
1461 * eval.c (logical_and_operation::evaluate)
1462 (logical_or_operation::evaluate): New methods.
1463 * ax-gdb.c (logical_and_operation::do_generate_ax)
1464 (logical_or_operation::do_generate_ax): New methods.
1465
2bc9b40c
TT
14662021-03-08 Tom Tromey <tom@tromey.com>
1467
1468 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
1469 static.
1470 * m2-exp.h: New file.
1471
5947d337
TT
14722021-03-08 Tom Tromey <tom@tromey.com>
1473
1474 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
1475 * rust-exp.h (class rust_aggregate_operation): New.
1476
e4407a20
TT
14772021-03-08 Tom Tromey <tom@tromey.com>
1478
1479 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
1480 No longer static.
1481 * rust-exp.h (class rust_struct_anon): New.
1482 (class rust_structop): New.
1483
9db6b6dd
TT
14842021-03-08 Tom Tromey <tom@tromey.com>
1485
1486 * rust-lang.c (rust_range): No longer static.
1487 * rust-exp.h (class rust_range_operation): New.
1488
6ce1ad67
TT
14892021-03-08 Tom Tromey <tom@tromey.com>
1490
1491 * rust-lang.c (rust_subscript): No longer static.
1492 * rust-exp.h (class rust_subscript_operation): New.
1493
11dd3dce
TT
14942021-03-08 Tom Tromey <tom@tromey.com>
1495
1496 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
1497 parameter.
1498 (rust_evaluate_subexp): Update.
1499 * rust-exp.h (class rust_unop_ind_operation): New.
1500
6fab4359
TT
15012021-03-08 Tom Tromey <tom@tromey.com>
1502
1503 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
1504 longer static. Add "opcode" parameter.
1505 (rust_evaluate_subexp): Update.
1506 * rust-exp.h: New file.
1507
9dcd3e29
TT
15082021-03-08 Tom Tromey <tom@tromey.com>
1509
1510 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
1511 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
1512 (eval_op_f_kind): No longer static. Add "opcode" parameter.
1513 (evaluate_subexp_f): Update.
1514 * f-exp.h: New file.
1515
fc715eb2
TT
15162021-03-08 Tom Tromey <tom@tromey.com>
1517
1518 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
1519 * ada-exp.h (class ada_ternop_range_operation): New.
1520
cc6bd32e
TT
15212021-03-08 Tom Tromey <tom@tromey.com>
1522
1523 * ada-lang.c (ada_qual_operation::evaluate): New method.
1524 * ada-exp.h (class ada_qual_operation): New.
1525
42fecb61
TT
15262021-03-08 Tom Tromey <tom@tromey.com>
1527
1528 * ada-lang.c (ada_string_operation::evaluate): New method.
1529 * ada-exp.h (class ada_string_operation): New.
1530
03070ee9
TT
15312021-03-08 Tom Tromey <tom@tromey.com>
1532
1533 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
1534 * ada-exp.h: New file.
1535
821e72d7
TT
15362021-03-08 Tom Tromey <tom@tromey.com>
1537
1538 * expop.h (class multi_subscript_operation): New.
1539 * eval.c (multi_subscript_operation::evaluate): New method.
1540
085734dd
TT
15412021-03-08 Tom Tromey <tom@tromey.com>
1542
1543 * eval.c (objc_msgcall_operation::evaluate): New method.
1544 * c-exp.h (class objc_msgcall_operation): New.
1545
e82a5afc
TT
15462021-03-08 Tom Tromey <tom@tromey.com>
1547
1548 * expop.h (class var_value_operation): New.
1549 * eval.c (var_value_operation::evaluate)
1550 (var_value_operation::evaluate_for_address)
1551 (var_value_operation::evaluate_with_coercion)
1552 (var_value_operation::evaluate_for_sizeof)
1553 (var_value_operation::evaluate_for_cast): New methods.
1554 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
1555
d9ad79d8
TT
15562021-03-08 Tom Tromey <tom@tromey.com>
1557
1558 * expop.h (cxx_cast_ftype): New typedef.
1559 (cxx_cast_operation): New template.
1560 (dynamic_cast_operation, reinterpret_cast_operation): New
1561 typedefs.
1562
292382f4
TT
15632021-03-08 Tom Tromey <tom@tromey.com>
1564
1565 * expop.h (class unop_cast_type_operation): New.
1566 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
1567 method.
1568
165a813a
TT
15692021-03-08 Tom Tromey <tom@tromey.com>
1570
1571 * expop.h (class unop_cast_operation): New.
1572 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
1573
e5946e16
TT
15742021-03-08 Tom Tromey <tom@tromey.com>
1575
1576 * expop.h (class assign_modify_operation): New.
1577 * eval.c (eval_binop_assign_modify): No longer static.
1578 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
1579
40786782
TT
15802021-03-08 Tom Tromey <tom@tromey.com>
1581
1582 * expop.h (class assign_operation): New.
1583 * ax-gdb.c (assign_operation::do_generate_ax): New method.
1584
44b675c8
TT
15852021-03-08 Tom Tromey <tom@tromey.com>
1586
1587 * expop.h (class type_instance_operation): New.
1588 * eval.c (type_instance_operation::evaluate): New method.
1589
f6b42326
TT
15902021-03-08 Tom Tromey <tom@tromey.com>
1591
1592 * expop.h (class op_this_operation): New.
1593 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
1594
cbc18219
TT
15952021-03-08 Tom Tromey <tom@tromey.com>
1596
1597 * expop.h (class unop_memval_operation)
1598 (class unop_memval_type_operation): New.
1599 * eval.c (eval_op_memval): No longer static.
1600 (unop_memval_operation::evaluate_for_address)
1601 (unop_memval_type_operation::evaluate_for_address)
1602 (unop_memval_operation::evaluate_for_sizeof)
1603 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
1604 * ax-gdb.c (unop_memval_operation::do_generate_ax)
1605 (unop_memval_type_operation::do_generate_ax): New methods.
1606
ae4bb61e
TT
16072021-03-08 Tom Tromey <tom@tromey.com>
1608
1609 * expop.h (class unop_alignof_operation): New.
1610 * eval.c (eval_op_alignof): No longer static.
1611
85d23bda
TT
16122021-03-08 Tom Tromey <tom@tromey.com>
1613
1614 * expop.h (class unop_sizeof_operation): New.
1615 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
1616
14aff815
TT
16172021-03-08 Tom Tromey <tom@tromey.com>
1618
1619 * expop.h (class unop_addr_operation): New.
1620 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
1621
929f3aa7
TT
16222021-03-08 Tom Tromey <tom@tromey.com>
1623
1624 * expop.h (class typeid_operation): New.
1625
0af8829e
TT
16262021-03-08 Tom Tromey <tom@tromey.com>
1627
1628 * expop.h (class decltype_operation): New.
1629
4efc574c
TT
16302021-03-08 Tom Tromey <tom@tromey.com>
1631
1632 * expop.h (class typeof_operation): New.
1633
5b5f5140
TT
16342021-03-08 Tom Tromey <tom@tromey.com>
1635
1636 * expop.h (class type_operation): New.
1637 * eval.c (eval_op_type): No longer static.
1638
876469ff
TT
16392021-03-08 Tom Tromey <tom@tromey.com>
1640
1641 * expop.h (class unop_ind_base_operation)
1642 (class unop_ind_operation): New.
1643 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
1644 (unop_ind_base_operation::evaluate_for_address)
1645 (unop_ind_base_operation::evaluate_for_sizeof): New method.
1646 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
1647
6d89e296
TT
16482021-03-08 Tom Tromey <tom@tromey.com>
1649
1650 * expop.h (unop_incr_operation): New template.
1651 (preinc_operation, predec_operation, postinc_operation)
1652 (postdec_operation): New typedefs.
1653 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
1654 (eval_op_postdec): No longer static.
1655
9307d17b
TT
16562021-03-08 Tom Tromey <tom@tromey.com>
1657
1658 * expop.h (unary_ftype): New typedef.
1659 (unop_operation, usual_ax_binop_operation): New templates.
1660 (unary_plus_operation, unary_neg_operation)
1661 (unary_complement_operation, unary_logical_not_operation): New
1662 typedefs.
1663 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
1664 (eval_op_lognot): No longer static.
1665 * ax-gdb.c (gen_expr_unop): New function.
1666
ae64ba58
TT
16672021-03-08 Tom Tromey <tom@tromey.com>
1668
1669 * ax-gdb.c (comma_operation::do_generate_ax): New method.
1670
d4eff4c1
TT
16712021-03-08 Tom Tromey <tom@tromey.com>
1672
1673 * expop.h (class repeat_operation): New.
1674 * eval.c (eval_op_repeat): No longer static. Remove "op"
1675 parameter.
1676 (evaluate_subexp_standard): Update.
1677 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
1678
46916f2b
TT
16792021-03-08 Tom Tromey <tom@tromey.com>
1680
1681 * expop.h (class comparison_operation): New.
1682 (equal_operation, notequal_operation, less_operation)
1683 (gtr_operation, geq_operation, leq_operation): New typedefs.
1684 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
1685 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
1686
224d6424
TT
16872021-03-08 Tom Tromey <tom@tromey.com>
1688
1689 * expop.h (class subscript_operation): New.
1690 * eval.c (eval_op_subscript): No longer static.
1691
373907ff
TT
16922021-03-08 Tom Tromey <tom@tromey.com>
1693
1694 * expop.h (class binop_operation, class usual_ax_binop_operation):
1695 New.
1696 (exp_operation, intdiv_operation, mod_operation, mul_operation)
1697 (div_operation, rem_operation, lsh_operation, rsh_operation)
1698 (bitwise_and_operation, bitwise_ior_operation)
1699 (bitwise_xor_operation): New typedefs.
1700 * eval.c (eval_op_binary): No longer static.
1701
5133d78b
TT
17022021-03-08 Tom Tromey <tom@tromey.com>
1703
1704 * expop.h (class sub_operation): New.
1705 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
1706 (evaluate_subexp_standard): Update.
1707
a94323b6
TT
17082021-03-08 Tom Tromey <tom@tromey.com>
1709
1710 * expop.h (class add_operation): New.
1711 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
1712 (evaluate_subexp_standard): Update.
1713
e51e26a0
TT
17142021-03-08 Tom Tromey <tom@tromey.com>
1715
1716 * expop.h (class concat_operation): New.
1717 * eval.c (eval_op_concat): No longer static. Remove "op"
1718 parameter.
1719 (evaluate_subexp_standard): Update.
1720
07f724a8
TT
17212021-03-08 Tom Tromey <tom@tromey.com>
1722
1723 * expop.h (class structop_member_operation)
1724 (class structop_mptr_operation): New.
1725 * eval.c (eval_op_member): No longer static.
1726
ab0609be
TT
17272021-03-08 Tom Tromey <tom@tromey.com>
1728
1729 * expop.h (class structop_ptr_operation): New.
1730 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
1731 parameter.
1732
808b22cf
TT
17332021-03-08 Tom Tromey <tom@tromey.com>
1734
1735 * expop.h (class structop_base_operation)
1736 (class structop_operation): New.
1737 * eval.c (eval_op_structop_struct): No longer static.
1738
8cfd3e95
TT
17392021-03-08 Tom Tromey <tom@tromey.com>
1740
1741 * expop.h (class complex_operation): New.
1742
09db3700
TT
17432021-03-08 Tom Tromey <tom@tromey.com>
1744
1745 * eval.c (eval_op_objc_selector): No longer static.
1746 * c-exp.h (class objc_selector_operation): New.
1747
06dc61b9
TT
17482021-03-08 Tom Tromey <tom@tromey.com>
1749
1750 * eval.c: Include c-exp.h.
1751 * c-exp.h (class objc_nsstring_operation): New.
1752
72d0a711
TT
17532021-03-08 Tom Tromey <tom@tromey.com>
1754
1755 * c-lang.c (c_string_operation::evaluate): New method.
1756 * c-exp.h: New file.
1757
9186293f
TT
17582021-03-08 Tom Tromey <tom@tromey.com>
1759
1760 * expop.h (class ternop_cond_operation): New.
1761 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
1762
1594e0bb
TT
17632021-03-08 Tom Tromey <tom@tromey.com>
1764
1765 * expop.h (class ternop_slice_operation): New.
1766 * eval.c (eval_op_ternop): No longer static.
1767
b50db09f
TT
17682021-03-08 Tom Tromey <tom@tromey.com>
1769
1770 * expop.h (class string_operation): New.
1771 * eval.c (eval_op_string): No longer static.
1772
e6e01e16
TT
17732021-03-08 Tom Tromey <tom@tromey.com>
1774
1775 * expop.h (class internalvar_operation): New.
1776 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
1777
e6985c5e
TT
17782021-03-08 Tom Tromey <tom@tromey.com>
1779
1780 * expop.h (class bool_operation): New.
1781
55bdbff8
TT
17822021-03-08 Tom Tromey <tom@tromey.com>
1783
1784 * expop.h (class register_operation): New.
1785 * eval.c (eval_op_register): No longer static.
1786 * ax-gdb.c (register_operation::do_generate_ax): New method.
1787
247d935b
TT
17882021-03-08 Tom Tromey <tom@tromey.com>
1789
1790 * expop.h (class last_operation): New.
1791
17679395
TT
17922021-03-08 Tom Tromey <tom@tromey.com>
1793
1794 * expop.h (class func_static_var_operation): New.
1795 * eval.c (eval_op_func_static_var): No longer static.
1796
b5cc3923
TT
17972021-03-08 Tom Tromey <tom@tromey.com>
1798
1799 * expop.h (class var_entry_value_operation): New.
1800 * eval.c (eval_op_var_entry_value): No longer static.
1801
0c8effa3
TT
18022021-03-08 Tom Tromey <tom@tromey.com>
1803
1804 * expression.h (class operation) <set_outermost>: New method.
1805 * expop.h (class var_msym_value_operation): New.
1806 * eval.c (eval_op_var_msym_value): No longer static.
1807 (var_msym_value_operation::evaluate_for_address)
1808 (var_msym_value_operation::evaluate_for_sizeof)
1809 (var_msym_value_operation::evaluate_for_cast): New methods.
1810 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
1811 method.
1812
d336c29e
TT
18132021-03-08 Tom Tromey <tom@tromey.com>
1814
1815 * expop.h (class long_const_operation): New.
1816 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
1817
d5ab122c
TT
18182021-03-08 Tom Tromey <tom@tromey.com>
1819
1820 * expop.h (class scope_operation): New.
1821 * eval.c (eval_op_scope): No longer static.
1822 (scope_operation::evaluate_for_address): New method.
1823 * ax-gdb.c (scope_operation::do_generate_ax): New method.
1824
cae26a0c
TT
18252021-03-08 Tom Tromey <tom@tromey.com>
1826
1827 * expprint.c (float_const_operation::dump): New method.
1828 * expop.h (float_data): New typedef.
1829 (class float_const_operation): New.
1830
75f9892d
TT
18312021-03-08 Tom Tromey <tom@tromey.com>
1832
1833 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
1834 * ax-gdb.c (gen_expr_binop): New function.
1835 (gen_expr_structop): Likewise.
1836
de401988
TT
18372021-03-08 Tom Tromey <tom@tromey.com>
1838
1839 * expprint.c (expr::dump_for_expression): New functions.
1840 * expop.h (dump_for_expression): New overloads.
1841 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
1842 Update.
1843
e2803273
TT
18442021-03-08 Tom Tromey <tom@tromey.com>
1845
1846 * expression.h (expr::operation): New class.
1847 (expr::make_operation): New function.
1848 (expr::operation_up): New typedef.
1849 * expop.h: New file.
1850 * eval.c (operation::evaluate_for_cast)
1851 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
1852 New methods.
1853 * ax-gdb.c (operation::generate_ax): New method.
1854
e18c58f2
TT
18552021-03-08 Tom Tromey <tom@tromey.com>
1856
1857 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
1858 (gen_expr_binop_rest): New overload.
1859
c0d7ed8c
TT
18602021-03-08 Tom Tromey <tom@tromey.com>
1861
1862 * eval.c (eval_multi_subscript): New function.
1863 (evaluate_subexp_standard): Use it.
1864
dd5fd283
TT
18652021-03-08 Tom Tromey <tom@tromey.com>
1866
1867 * ada-lang.c (ada_binop_exp): New function.
1868 (ada_evaluate_subexp): Use it.
1869
3848abd6
TT
18702021-03-08 Tom Tromey <tom@tromey.com>
1871
1872 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
1873 parameters.
1874 (ada_evaluate_subexp): Use it.
1875
38dc70cf
TT
18762021-03-08 Tom Tromey <tom@tromey.com>
1877
1878 * ada-lang.c (ada_binop_minmax): New function.
1879 (ada_evaluate_subexp): Use it.
1880
b84564fc
TT
18812021-03-08 Tom Tromey <tom@tromey.com>
1882
1883 * ada-lang.c (ada_unop_atr): New function.
1884 (ada_evaluate_subexp): Use it.
1885
b467efaa
TT
18862021-03-08 Tom Tromey <tom@tromey.com>
1887
1888 * ada-lang.c (ada_binop_in_bounds): New function.
1889 (ada_evaluate_subexp): Use it.
1890
5ce19db8
TT
18912021-03-08 Tom Tromey <tom@tromey.com>
1892
1893 * ada-lang.c (ada_ternop_slice): New function.
1894 (ada_evaluate_subexp): Use it.
1895
214b13ac
TT
18962021-03-08 Tom Tromey <tom@tromey.com>
1897
1898 * ada-lang.c (ada_equal_binop): New function.
1899 (ada_evaluate_subexp): Use it.
1900
faa1dfd7
TT
19012021-03-08 Tom Tromey <tom@tromey.com>
1902
1903 * ada-lang.c (ada_mult_binop): New function.
1904 (ada_evaluate_subexp): Use it.
1905
d05e24e6
TT
19062021-03-08 Tom Tromey <tom@tromey.com>
1907
1908 * ada-lang.c (ada_abs): New function.
1909 (ada_evaluate_subexp): Use it.
1910
68c75735
TT
19112021-03-08 Tom Tromey <tom@tromey.com>
1912
1913 * ada-lang.c (ada_atr_size): New function.
1914 (ada_evaluate_subexp): Use it.
1915
020dbabe
TT
19162021-03-08 Tom Tromey <tom@tromey.com>
1917
1918 * ada-lang.c (ada_atr_tag): New function.
1919 (ada_evaluate_subexp): Use it.
1920
7efc87ff
TT
19212021-03-08 Tom Tromey <tom@tromey.com>
1922
1923 * ada-lang.c (ada_unop_in_range): New function.
1924 (ada_evaluate_subexp): Use it.
1925
82390ab8
TT
19262021-03-08 Tom Tromey <tom@tromey.com>
1927
1928 * ada-lang.c (ada_unop_neg): New function.
1929 (ada_evaluate_subexp): Use it.
1930
62d4bd94
TT
19312021-03-08 Tom Tromey <tom@tromey.com>
1932
1933 * ada-lang.c (eval_ternop_in_range): New function.
1934 (ada_evaluate_subexp): Use it.
1935
3634f669
TT
19362021-03-08 Tom Tromey <tom@tromey.com>
1937
1938 * opencl-lang.c (eval_opencl_assign): New function.
1939 (evaluate_subexp_opencl): Use it.
1940
5e80600e
TT
19412021-03-08 Tom Tromey <tom@tromey.com>
1942
1943 * eval.c (eval_op_objc_msgcall): New function.
1944 (evaluate_subexp_standard): Use it.
1945
fb5ba2ab
TT
19462021-03-08 Tom Tromey <tom@tromey.com>
1947
1948 * eval.c (eval_binop_assign_modify): New function.
1949 (evaluate_subexp_standard): Use it.
1950
a49881f7
TT
19512021-03-08 Tom Tromey <tom@tromey.com>
1952
1953 * m2-lang.c (eval_op_m2_subscript): New function.
1954 (evaluate_subexp_modula2): Use it.
1955
41bdced5
TT
19562021-03-08 Tom Tromey <tom@tromey.com>
1957
1958 * m2-lang.c (eval_op_m2_high): New function.
1959 (evaluate_subexp_modula2): Use it.
1960
13ea014a
TT
19612021-03-08 Tom Tromey <tom@tromey.com>
1962
1963 * eval.c (evaluate_subexp_for_address_base): New function.
1964 (evaluate_subexp_for_address): Use it.
1965 (evaluate_subexp_for_sizeof_base): New function.
1966 (evaluate_subexp_for_sizeof): Use it.
1967
1fa41fc7
TT
19682021-03-08 Tom Tromey <tom@tromey.com>
1969
1970 * rust-lang.c (eval_op_rust_structop): New function.
1971 (rust_evaluate_subexp): Use it.
1972
575cae23
TT
19732021-03-08 Tom Tromey <tom@tromey.com>
1974
1975 * rust-lang.c (eval_op_rust_struct_anon): New function.
1976 (rust_evaluate_subexp): Use it.
1977
05104233
TT
19782021-03-08 Tom Tromey <tom@tromey.com>
1979
1980 * rust-lang.c (eval_op_rust_array): New function.
1981 (rust_evaluate_subexp): Use it.
1982
6fa9831f
TT
19832021-03-08 Tom Tromey <tom@tromey.com>
1984
1985 * rust-lang.c (eval_op_rust_complement): New function.
1986 (rust_evaluate_subexp): Use it.
1987
d123f9e4
TT
19882021-03-08 Tom Tromey <tom@tromey.com>
1989
1990 * rust-lang.c (eval_op_rust_ind): New function.
1991 (rust_evaluate_subexp): Use it.
1992
984af2cb
TT
19932021-03-08 Tom Tromey <tom@tromey.com>
1994
1995 * rust-lang.c (rust_subscript): Change parameters.
1996 (rust_evaluate_subexp): Update.
1997
d148f803
TT
19982021-03-08 Tom Tromey <tom@tromey.com>
1999
2000 * rust-lang.c (rust_range): Change parameters.
2001 (rust_evaluate_subexp): Update.
2002
9cbd1c20
TT
20032021-03-08 Tom Tromey <tom@tromey.com>
2004
2005 * f-lang.c (eval_op_f_allocated): New function.
2006 (evaluate_subexp_f): Use it.
2007
3c18c49c
TT
20082021-03-08 Tom Tromey <tom@tromey.com>
2009
2010 * f-lang.c (fortran_require_array): New function.
2011 (evaluate_subexp_f): Use it.
2012
216f6fcb
TT
20132021-03-08 Tom Tromey <tom@tromey.com>
2014
2015 * f-lang.c (eval_op_f_kind): New function.
2016 (evaluate_subexp_f): Use it.
2017
00f2db6f
TT
20182021-03-08 Tom Tromey <tom@tromey.com>
2019
2020 * f-lang.c (eval_op_f_cmplx): New function.
2021 (evaluate_subexp_f): Use it.
2022
93b2b5fa
TT
20232021-03-08 Tom Tromey <tom@tromey.com>
2024
2025 * f-lang.c (eval_op_f_modulo): New function.
2026 (evaluate_subexp_f): Use it.
2027
9f1a1f3c
TT
20282021-03-08 Tom Tromey <tom@tromey.com>
2029
2030 * f-lang.c (eval_op_f_floor): New function.
2031 (evaluate_subexp_f): Use it.
2032
3dc41f3c
TT
20332021-03-08 Tom Tromey <tom@tromey.com>
2034
2035 * f-lang.c (eval_op_f_ceil): New function.
2036 (evaluate_subexp_f): Use it.
2037
e08109f2
TT
20382021-03-08 Tom Tromey <tom@tromey.com>
2039
2040 * f-lang.c (eval_op_f_mod): New function.
2041 (evaluate_subexp_f): Use it.
2042
cc05c68e
TT
20432021-03-08 Tom Tromey <tom@tromey.com>
2044
2045 * f-lang.c (eval_op_f_abs): New function.
2046 (evaluate_subexp_f): Use it.
2047
aec95807
TT
20482021-03-08 Tom Tromey <tom@tromey.com>
2049
2050 * eval.c (eval_op_type): New function.
2051 (evaluate_subexp_standard): Use it.
2052
a220ead5
TT
20532021-03-08 Tom Tromey <tom@tromey.com>
2054
2055 * eval.c (eval_op_postdec): New function.
2056 (evaluate_subexp_standard): Use it.
2057
abffe116
TT
20582021-03-08 Tom Tromey <tom@tromey.com>
2059
2060 * eval.c (eval_op_postinc): New function.
2061 (evaluate_subexp_standard): Use it.
2062
9e1361b7
TT
20632021-03-08 Tom Tromey <tom@tromey.com>
2064
2065 * eval.c (eval_op_predec): New file.
2066 (evaluate_subexp_standard): Use it.
2067
00f50884
TT
20682021-03-08 Tom Tromey <tom@tromey.com>
2069
2070 * eval.c (eval_op_preinc): New function.
2071 (evaluate_subexp_standard): Use it.
2072
3aef2a07
TT
20732021-03-08 Tom Tromey <tom@tromey.com>
2074
2075 * eval.c (eval_op_memval): New function.
2076 (evaluate_subexp_standard): Use it.
2077
acee9468
TT
20782021-03-08 Tom Tromey <tom@tromey.com>
2079
2080 * eval.c (eval_op_alignof): New function.
2081 (evaluate_subexp_standard): Use it.
2082
786f70ee
TT
20832021-03-08 Tom Tromey <tom@tromey.com>
2084
2085 * eval.c (eval_op_ind): New function.
2086 (evaluate_subexp_standard): Use it.
2087
24338fb9
TT
20882021-03-08 Tom Tromey <tom@tromey.com>
2089
2090 * eval.c (eval_op_lognot): New function.
2091 (evaluate_subexp_standard): Use it.
2092
1f09ec81
TT
20932021-03-08 Tom Tromey <tom@tromey.com>
2094
2095 * eval.c (eval_op_complement): New function.
2096 (evaluate_subexp_standard): Use it.
2097
606d105f
TT
20982021-03-08 Tom Tromey <tom@tromey.com>
2099
2100 * eval.c (eval_op_neg): New function.
2101 (evaluate_subexp_standard): Use it.
2102
39f288be
TT
21032021-03-08 Tom Tromey <tom@tromey.com>
2104
2105 * eval.c (eval_op_plus): New function.
2106 (evaluate_subexp_standard): Use it.
2107
eed70b1c
TT
21082021-03-08 Tom Tromey <tom@tromey.com>
2109
2110 * eval.c (eval_op_repeat): New function.
2111 (evaluate_subexp_standard): Use it.
2112
60cdd487
TT
21132021-03-08 Tom Tromey <tom@tromey.com>
2114
2115 * eval.c (eval_op_leq): New function.
2116 (evaluate_subexp_standard): Use it.
2117
96e3efd9
TT
21182021-03-08 Tom Tromey <tom@tromey.com>
2119
2120 * eval.c (eval_op_geq): New function.
2121 (evaluate_subexp_standard): Use it.
2122
1f78d732
TT
21232021-03-08 Tom Tromey <tom@tromey.com>
2124
2125 * eval.c (eval_op_gtr): New function.
2126 (evaluate_subexp_standard): Use it.
2127
6cad1349
TT
21282021-03-08 Tom Tromey <tom@tromey.com>
2129
2130 * eval.c (eval_op_less): New function.
2131 (evaluate_subexp_standard): Use it.
2132
1fcb3559
TT
21332021-03-08 Tom Tromey <tom@tromey.com>
2134
2135 * eval.c (eval_op_notequal): New function.
2136 (evaluate_subexp_standard): Use it.
2137
0cc96de8
TT
21382021-03-08 Tom Tromey <tom@tromey.com>
2139
2140 * eval.c (eval_op_equal): New function.
2141 (evaluate_subexp_standard): Use it.
2142
288d26bc
TT
21432021-03-08 Tom Tromey <tom@tromey.com>
2144
2145 * eval.c (eval_op_subscript): New function.
2146 (evaluate_subexp_standard): Use it.
2147
7cdcdd02
TT
21482021-03-08 Tom Tromey <tom@tromey.com>
2149
2150 * eval.c (eval_op_binary): New function.
2151 (evaluate_subexp_standard): Use it.
2152
d9790e22
TT
21532021-03-08 Tom Tromey <tom@tromey.com>
2154
2155 * eval.c (eval_op_sub): New function.
2156 (evaluate_subexp_standard): Use it.
2157
aedaf9ac
TT
21582021-03-08 Tom Tromey <tom@tromey.com>
2159
2160 * eval.c (eval_op_add): New function.
2161 (evaluate_subexp_standard): Use it.
2162
b7a96ed2
TT
21632021-03-08 Tom Tromey <tom@tromey.com>
2164
2165 * eval.c (eval_op_member): New function.
2166 (evaluate_subexp_standard): Use it.
2167
fb461aa3
TT
21682021-03-08 Tom Tromey <tom@tromey.com>
2169
2170 * eval.c (eval_op_structop_ptr): New function.
2171 (evaluate_subexp_standard): Use it.
2172
3e96c4fc
TT
21732021-03-08 Tom Tromey <tom@tromey.com>
2174
2175 * eval.c (eval_op_structop_struct): New function.
2176 (evaluate_subexp_standard): Use it.
2177
f960a617
TT
21782021-03-08 Tom Tromey <tom@tromey.com>
2179
2180 * eval.c (eval_op_ternop): New function.
2181 (evaluate_subexp_standard): Use it.
2182
5c2f201e
TT
21832021-03-08 Tom Tromey <tom@tromey.com>
2184
2185 * eval.c (eval_op_concat): New function.
2186 (evaluate_subexp_standard): Use it.
2187
f871bae1
TT
21882021-03-08 Tom Tromey <tom@tromey.com>
2189
2190 * eval.c (eval_op_objc_selector): New function.
2191 (evaluate_subexp_standard): Use it.
2192
14a1c64a
TT
21932021-03-08 Tom Tromey <tom@tromey.com>
2194
2195 * eval.c (eval_op_string): New function.
2196 (evaluate_subexp_standard): Use it.
2197
ffff730b
TT
21982021-03-08 Tom Tromey <tom@tromey.com>
2199
2200 * eval.c (eval_op_register): New function.
2201 (evaluate_subexp_standard): Use it.
2202
9b1d8af6
TT
22032021-03-08 Tom Tromey <tom@tromey.com>
2204
2205 * eval.c (eval_op_func_static_var): New function.
2206 (evaluate_subexp_standard): Use it.
2207
c0df9289
TT
22082021-03-08 Tom Tromey <tom@tromey.com>
2209
2210 * eval.c (eval_op_var_msym_value): New function.
2211 (evaluate_subexp_standard): Use it.
2212
50b98adc
TT
22132021-03-08 Tom Tromey <tom@tromey.com>
2214
2215 * eval.c (eval_op_var_entry_value): New function.
2216 (evaluate_subexp_standard): Use it.
2217
ea2d29f7
TT
22182021-03-08 Tom Tromey <tom@tromey.com>
2219
2220 * eval.c (eval_op_scope): New function.
2221 (evaluate_subexp_standard): Use it.
2222
01573d73
TT
22232021-03-06 Chernov Sergey <klen_s@mail.ru>
2224
2225 PR gdb/27528:
2226 * ada-lang.c (ada_fold_name): Use gdb::to_string.
2227
9938d15a
TT
22282021-03-06 Tom Tromey <tom@tromey.com>
2229
2230 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
2231 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
2232 * dwarf2/read.c (dwarf2_elf_names): No longer static.
2233 (locate_dwz_sections, dwz_search_other_debugdirs)
2234 (dwarf2_get_dwz_file): Move to dwz.c.
2235 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
2236 read.h.
2237 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
2238 (dwarf2_get_dwz_file): Move from read.c.
2239
18035655
TT
22402021-03-06 Tom Tromey <tom@tromey.com>
2241
2242 * debuginfod-support.h: Include scoped_fd.h.
2243
a7308ce0
TT
22442021-03-06 Tom Tromey <tom@tromey.com>
2245
2246 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
2247 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
2248 (get_abbrev_section_for_cu, read_attribute_value)
2249 (get_debug_line_section): Update.
2250 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2251
fbedd546
TT
22522021-03-06 Tom Tromey <tom@tromey.com>
2253
2254 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
2255 method.
2256 * dwarf2/read.c (section_is_p): Remove.
2257 (dwarf2_per_bfd::locate_sections)
2258 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
2259 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
2260 (dwarf2_locate_common_dwp_sections)
2261 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
2262 Update.
2263
c2a62a3d
TT
22642021-03-06 Tom Tromey <tom@tromey.com>
2265
2266 * xcoffread.c: Include sect-names.h.
2267 * symfile.h (struct dwarf2_section_names, struct
2268 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
2269 * dwarf2/sect-names.h: New file, from symfile.h.
2270 * dwarf2/read.c: Include sect-names.h.
2271
4444f407
TT
22722021-03-06 Tom Tromey <tom@tromey.com>
2273
2274 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
2275 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
2276 (abbrev_table::read): Update.
2277 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
2278 (struct abbrev_info): Reformat.
2279 <attrs>: Now an array.
2280 (struct abbrev_table) <alloc_abbrev>: Remove.
2281
dd99cf0c
WP
22822021-03-06 Weimin Pan <weimin.pan@oracle.com>
2283
2284 * ctfread.c (ctf_psymtab_add_enums): New function.
2285 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
2286
844be3f2
WP
22872021-03-06 Weimin Pan <weimin.pan@oracle.com>
2288
2289 * ctfread.c (read_func_kind_type): Set up function arguments.
2290
b2668f28
AB
22912021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2292 Andrew Burgess <andrew.burgess@embecosm.com>
2293
2294 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
2295 includes.
2296 (riscv_csrset): New static global.
2297 (riscv_update_csrmap): New function.
2298 (riscv_iterate_over_regset_sections): Process CSRs.
2299
d782d24b
AB
23002021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2301
2302 * riscv-tdep.c (riscv_feature_name_csr): Define.
2303 (riscv_feature_name_cpu): Define.
2304 (riscv_feature_name_fpu): Define.
2305 (riscv_feature_name_virtual): Define.
2306 (riscv_xreg_feature): Use riscv_feature_name_cpu.
2307 (riscv_freg_feature): Use riscv_feature_name_fpu.
2308 (riscv_virtual_feature): Use riscv_feature_name_virtual.
2309 (riscv_csr_feature): Use riscv_feature_name_csr.
2310 * riscv-tdep.h (riscv_feature_name_csr): Declare.
2311
fb8f3fc0
AB
23122021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2313 Craig Blackmore <craig.blackmore@embecosm.com>
2314
2315 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
2316 (ALLDEPFILES): Add riscv-none-tdep.c.
2317 * configure: Regenerate.
2318 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
2319 support.
2320 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
2321 * elf-none-tdep.c: New file.
2322 * elf-none-tdep.h: New file.
2323 * riscv-none-tdep.c: New file.
2324
95ce627a
AB
23252021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2326 Andrew Burgess <andrew.burgess@embecosm.com>
2327
2328 * corelow.c: Add 'xml-tdesc.h' include.
2329 (core_target::read_description): Load the target description from
2330 the core file when possible.
2331 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
2332 note.
2333 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
2334 (gcore_elf_make_tdesc_note): New function.
2335 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
2336 * linux-tdep.c (linux_make_corefile_notes): Add target description
2337 note.
2338
f3a5df7b
AB
23392021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2340
2341 * Makefile.in (SFILES): Add gcore-elf.c.
2342 (HFILES_NO_SRCDIR): Add gcore-elf.h
2343 * configure: Regenerate.
2344 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
2345 support.
2346 * fbsd-tdep.c: Add 'gcore-elf.h' include.
2347 (struct fbsd_collect_regset_section_cb_data): Delete.
2348 (fbsd_collect_regset_section_cb): Delete.
2349 (fbsd_collect_thread_registers): Delete.
2350 (struct fbsd_corefile_thread_data): Delete.
2351 (fbsd_corefile_thread): Delete.
2352 (fbsd_make_corefile_notes): Call
2353 gcore_elf_build_thread_register_notes instead of the now deleted
2354 FreeBSD code.
2355 * gcore-elf.c: New file, the content was moved here from
2356 linux-tdep.c, functions were renamed and given minor cleanup.
2357 * gcore-elf.h: New file.
2358 * gcore.c (gcore_find_signalled_thread): Moved here from
2359 linux-tdep.c and given a new name. Minor cleanups.
2360 * gcore.h (gcore_find_signalled_thread): Declare.
2361 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
2362 (struct linux_collect_regset_section_cb_data): Delete.
2363 (linux_collect_regset_section_cb): Delete.
2364 (linux_collect_thread_registers): Delete.
2365 (linux_corefile_thread): Call
2366 gcore_elf_build_thread_register_notes.
2367 (find_signalled_thread): Delete.
2368 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2369
d1e93af6
SM
23702021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
2371
2372 PR gdb/27147
2373 * sparc-nat.h (sparc_fetch_inferior_registers): Add
2374 process_stratum_target parameter,
2375 sparc_store_inferior_registers): update callers.
2376 * sparc-nat.c (sparc_fetch_inferior_registers,
2377 sparc_store_inferior_registers): Add process_stratum_target
2378 parameter. Switch current thread before calling
2379 sparc_supply_gregset / sparc_collect_rwindow.
2380 (sparc_store_inferior_registers): Likewise.
2381 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
2382 (sparc32obsd_collect_uthread): Likewise.
2383 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
2384 Add assertion.
2385 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
2386 sparc64obsd_supply_uthread): Add assertion.
2387
1178743e
TT
23882021-03-04 Tom Tromey <tromey@adacore.com>
2389
2390 * ada-lang.c (struct match_data) <found_sym>: Now bool.
2391 (aux_add_nonlocal_symbols): Update.
2392 (ada_add_block_symbols): Change "found_sym" to bool.
2393
1bfa81ac
TT
23942021-03-03 Tom Tromey <tromey@adacore.com>
2395
2396 * ada-lang.c (ada_resolve_function): Update comment.
2397 (is_nonfunction, add_symbols_from_enclosing_procs)
2398 (remove_extra_symbols): Likewise.
2399 (struct match_data): Add constructor, initializers.
2400 (add_nonlocal_symbols): Remove memset.
2401 (aux_add_nonlocal_symbols): Update comment.
2402 (ada_add_block_renamings, add_nonlocal_symbols)
2403 (ada_add_all_symbols): Likewise.
2404 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
2405
bbcdf9ab
TT
24062021-03-02 Tom Tromey <tromey@adacore.com>
2407
2408 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
2409 (cast_to_gnat_encoded_fixed_point_type): Remove.
2410 (ada_value_cast, ada_evaluate_subexp): Update.
2411 (gnat_encoded_fixed_point_type_info)
2412 (ada_is_gnat_encoded_fixed_point_type)
2413 (gnat_encoded_fixed_point_delta)
2414 (gnat_encoded_fixed_point_scaling_factor): Remove.
2415 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
2416 (gnat_encoded_fixed_point_delta)
2417 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
2418 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
2419 (ada_print_type): Update.
2420 * ada-valprint.c (ada_value_print_num): Update.
2421 * dwarf2/read.c (ada_get_gnat_encoded_number)
2422 (ada_get_gnat_encoded_ratio): New functions.
2423 (finish_fixed_point_type): Use them. Add parameters.
2424 (GNAT_FIXED_POINT_SUFFIX): New define.
2425 (gnat_encoded_fixed_point_type_info): New function.
2426 (read_base_type): Handle gnat encodings.
2427
5f9febe0
TT
24282021-03-02 Tom Tromey <tromey@adacore.com>
2429
2430 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
2431 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
2432 std::string.
2433 (GROW_VECT): Remove.
2434 (grow_vect): Remove.
2435
d1183b06
TT
24362021-03-02 Tom Tromey <tromey@adacore.com>
2437
2438 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
2439 * ada-lang.c (resolve_subexp): Update.
2440 (ada_resolve_function): Accept a vector.
2441 (is_nonfunction, add_defn_to_vec)
2442 (add_symbols_from_enclosing_procs): Likewise.
2443 (num_defns_collected, defns_collected): Remove.
2444 (remove_extra_symbols): Return a vector.
2445 (remove_irrelevant_renamings): Return void.
2446 (ada_add_local_symbols): Accept a vector.
2447 (struct match_data) <obstackp>: Remove.
2448 <resultp>: New member.
2449 (aux_add_nonlocal_symbols): Update.
2450 (ada_add_block_renamings, add_nonlocal_symbols)
2451 (ada_add_all_symbols): Accept a vector.
2452 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
2453 vector.
2454 (ada_lookup_symbol): Update.
2455 (ada_add_block_symbols): Accept a vector.
2456 (get_var_value, iterate_over_symbols): Update.
2457 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
2458 Update.
2459
886d459f
TT
24602021-03-02 Tom Tromey <tromey@adacore.com>
2461
2462 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
2463
bdcccc56
TT
24642021-03-02 Tom Tromey <tromey@adacore.com>
2465
2466 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
2467 auto_obstack.
2468 <root>: Initialize.
2469 (ada_pspace_data): Remove destructor.
2470 <sym_cache>: Now a unique_ptr.
2471 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
2472 (ada_get_symbol_cache): Use 'new'.
2473 (ada_clear_symbol_cache): Rewrite.
2474
1228719f
TT
24752021-03-02 Tom Tromey <tromey@adacore.com>
2476
2477 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
2478 is null.
2479
bb3a4efe
LS
24802021-02-27 Lancelot Six <lsix@lancelotsix.com>
2481
2482 PR gdb/27393
2483 * source.c (add_path): Skip empty dirnames.
2484
26b43ca6 24852021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
2486
2487 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
2488 include order for <sys/ptrace.h> and <asm/ptrace.h>.
2489
dffdd8b5
SM
24902021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
2491
2492 PR gdb/26861
2493 * target.c (target_mourn_inferior): Only compare pids in
2494 target_mourn_inferior.
2495
64d38fdd
JM
24962021-02-25 Jan Matyas <jmatyas@codasip.com>
2497
2498 PR gdb/26819
2499 * remote.c (remote_target::start_remote): Ensure the single
2500 thread, automatically added for remote targets without the
2501 concept of threading, is initially in set to the "resumed"
2502 state.
2503 * remote.c (remote_target::add_current_inferior_and_thread):
2504 Add return value - return the main thread.
2505
2450ad54
JV
25062021-02-25 Jan Vrany <jan.vrany@labware.com>
2507
2508 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
2509 (mi_tsv_created): Likewise.
2510 (mi_tsv_deleted): Likewise.
2511
30c80d88
TV
25122021-02-25 Tom de Vries <tdevries@suse.de>
2513
2514 PR symtab/27354
2515 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
2516 section_kind for &dwo_file->sections.info.
2517
68337b8b
AB
25182021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2519
2520 PR fortran/26155
2521 * f-lang.c (fortran_argument_convert): Delete declaration.
2522 (fortran_prepare_argument): New function.
2523 (evaluate_subexp_f): Move logic to new function
2524 fortran_prepare_argument.
2525
faeb9f13
AB
25262021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2527
2528 * f-exp.y (f77_keywords): Add 'associated'.
2529 * f-lang.c (fortran_associated): New function.
2530 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
2531 (operator_length_f): Likewise.
2532 (print_unop_or_binop_subexp_f): New function.
2533 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
2534 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
2535 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
2536 (operator_check_f): Likewise.
2537 * std-operator.def: Add FORTRAN_ASSOCIATED.
2538
170f4b23
AB
25392021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2540
2541 * f-exp.y (fortran_operators): Add ".xor.".
2542
aa659cfa
TV
25432021-02-24 Tom de Vries <tdevries@suse.de>
2544
2545 PR symtab/27336
2546 * dwarf2/attribute.c (attribute::form_is_signed): New function
2547 factored out of ...
2548 * dwarf2/attribute.h (attribute::as_signed): ... here.
2549 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
2550 (attribute::form_is_signed): Declare.
2551 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
2552 for DW_AT_decl_file.
2553
268c77c1
KB
25542021-02-24 Kevin Buettner <kevinb@redhat.com>
2555
2556 * nat/aarch64-linux-hw-point.c: Add comment regarding include
2557 order for <sys/ptrace.h> and <asm/ptrace.h>.
2558
665af52e
KB
25592021-02-24 Kevin Buettner <kevinb@redhat.com>
2560
2561 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
2562 <sys/ptrace.h>.
2563
dd80d750
AB
25642021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2565
2566 * exec.c (set_section_command): Move variable declarations into
2567 the function body, and use std::string instead of a fixed size
2568 buffer.
2569
336aa7b7
AB
25702021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2571
2572 * exec.c (exec_target::get_section_table): Delete member function.
2573 (section_table_read_available_memory): Use current_top_target, not
2574 just the exec_ops target.
2575 * target-delegates.c: Regenerate.
2576 * target.c (default_get_section_table): New function.
2577 * target.h (target_ops::get_section_table): Change default
2578 behaviour to call default_get_section_table.
2579 (default_get_section_table): Declare.
2580
02f7d26b
AB
25812021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2582
2583 * exec.c (exec_target::close): Call new clear_target_sections
2584 function.
2585 (program_space::add_target_sections): Update name of member
2586 variable.
2587 (program_space::add_target_sections): Update name of member
2588 variable.
2589 (program_space::remove_target_sections): Likewise.
2590 (exec_one_fork): Use new target_sections member function.
2591 (exec_target::get_section_table): Likewise.
2592 (exec_target::files_info): Likewise.
2593 (set_section_command): Likewise.
2594 (exec_set_section_address): Likewise.
2595 (exec_target::has_memory): Use new target_sections member
2596 function.
2597 * progspace.h (program_space::clear_target_sections): New member
2598 function.
2599 (program_space::target_sections): Rename member variable to
2600 m_target_sections, replace with a new member function.
2601 (program_space::m_target_sections): New member variable.
2602 * solib-dsbt.c (scan_dyntag): Use new member function.
2603 * solib-svr4.c (scan_dyntag): Likewise.
2604
19cf757a
AB
26052021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2606
2607 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
2608 return type const.
2609 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
2610 (section_table_read_available_memory): Make local const.
2611 (exec_target::xfer_partial): Make local const.
2612 (print_section_info): Make parameter const.
2613 * gdb/exec.h (print_section_info): Likewise.
2614 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
2615 const.
2616 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
2617 Likewise.
2618 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
2619 Likewise.
2620 * gdb/s390-tdep.c (s390_load): Likewise.
2621 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
2622 * gdb/solib-svr4.c (scan_dyntag): Likewise.
2623 * gdb/target-debug.h (target_debug_print_target_section_table_p):
2624 Rename to...
2625 (target_debug_print_const_target_section_table_p): ...this.
2626 * gdb/target-delegates.c: Regenerate.
2627 * gdb/target.c (target_get_section_table): Make return type const.
2628 (target_section_by_addr): Likewise. Also make some locals const.
2629 (memory_xfer_partial_1): Make some locals const.
2630 * gdb/target.h (struct target_ops) <get_section_table>: Make
2631 return type const.
2632 (target_section_by_addr): Likewise.
2633 (target_get_section_table): Likewise.
2634
02a79309
AB
26352021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2636
2637 * NEWS: Mention new 'maint info target-sections' command.
2638 * maint.c (maintenance_info_target_sections): New function.
2639 (_initialize_maint_cmds): Register new command.
2640
895b7b4e
AB
26412021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2642
2643 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
2644 (riscv_features_from_bfd): ...this. Change parameter type to
2645 'bfd*', and update as required.
2646 (riscv_find_default_target_description): Update call to
2647 riscv_features_from_bfd. Select a default xlen based on
2648 info.bfd_arch_info.
2649 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
2650
bc3c0632
AB
26512021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2652
2653 * eval.c (evaluate_subexp_standard): Call value_ind for points to
2654 dynamic types in UNOP_IND.
2655
08ac5771
SM
26562021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2657
2658 PR gdb/26828
2659 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
2660 Instantiate queue.
2661 (~dwarf2_queue_guard): Clear queue.
2662 (queue_comp_unit): Assert that queue is
2663 instantiated.
2664 (process_queue): Adjust.
2665 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
2666
616c069a
SM
26672021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2668
2669 PR gdb/26828
2670 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
2671 to decide whether or not to enqueue it for expansion.
2672 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
2673 after calling maybe_queue_comp_unit.
2674
897608ed
SM
26752021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2676
2677 * linux-nat.c (linux_nat_filter_event): Return void.
2678
15908a11
TT
26792021-02-22 Tom Tromey <tromey@adacore.com>
2680
2681 * solib-svr4.c (enable_break): Update.
2682 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
2683 type.
2684 (target_bfd_reopen): Change parameter type.
2685 * bfd-target.h (target_bfd_reopen): Change parameter type.
2686
f53fc427
SM
26872021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2688
2689 * thread.c (add_thread_silent): Add assert.
2690 (find_thread_ptid): Add assert.
2691
de146e19
SM
26922021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2693
2694 PR gdb/27435
2695 * inf-ptrace.c (struct target_unpusher): Move to target.h.
2696 (target_unpush_up): Likewise.
2697 * procfs.c (procfs_target::attach): Push target early. Use
2698 target_unpush_up to unpush target in case of error.
2699 * target.h (struct target_unpusher): Move here.
2700 (target_unpush_up): Likewise.
2701
8488c357
KB
27022021-02-19 Kevin Buettner <kevinb@redhat.com>
2703
2704 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
2705 (which in turn includes <gnulib/config.h>) before include
2706 of <signal.h>.
2707
5a9f5403
NC
27082021-02-19 Nelson Chu <nelson.chu@sifive.com>
2709
2710 PR 27158
2711 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
2712 (decode_j_type_insn): Likewise.
2713 (decode_cj_type_insn): Likewise.
2714 (decode_b_type_insn): Likewise.
2715 (decode): Likewise.
2716
26f53cd3
TT
27172021-02-18 Tom Tromey <tom@tromey.com>
2718
2719 * expression.h (struct expression) <evaluate>: Declare method.
2720 * eval.c (evaluate_subexp): Simplify.
2721 (expression::evaluate): New method.
2722 (evaluate_expression, evaluate_type): Use expression::evaluate.
2723
6a780b67
KB
27242021-02-17 Kevin Buettner <kevinb@redhat.com>
2725
2726 * ada-lang.c (ada_fold_name): Check for non-empty string prior
2727 to accessing it.
2728 (ada_lookup_name_info): Likewise.
2729
adeab0c5
MF
27302021-02-13 Mike Frysinger <vapier@gentoo.org>
2731
2732 * aclocal.m4: Regenerate.
2733
089436f7
TV
27342021-02-12 Tom de Vries <tdevries@suse.de>
2735
2736 PR threads/26228
2737 * linux-nat.c (lin_thread_get_thread_signals): Remove.
2738 (lin_thread_signals): New static var.
2739 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2740 New function.
2741 * linux-nat.h (lin_thread_get_thread_signals): Remove.
2742 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2743 Declare.
2744 * linux-thread-db.c (check_thread_signals): Use
2745 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
2746
96df3e28
AB
27472021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2748
2749 * f-exp.y (f77_keywords): Add allocated.
2750 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
2751 (operator_length_f): Likewise.
2752 (print_subexp_f): Likewise.
2753 (dump_subexp_body_f): Likewise.
2754 (operator_check_f): Likewise.
2755 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
2756
05f68f52
TV
27572021-02-11 Tom de Vries <tdevries@suse.de>
2758
2759 PR symtab/27353
2760 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
2761 Return true for DW_FORM_strx.
2762
b260f8d6
TT
27632021-02-11 Tom Tromey <tromey@adacore.com>
2764
2765 PR gdb/27383:
2766 * parse.c (write_exp_symbol_reference): Write sym.block.
2767
bf3386f0
AB
27682021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2769
2770 * NEWS: Mention changes to 'maint info sections'.
2771 * maint.c (match_substring): Return a bool, fix whitespace issue.
2772 (struct single_bfd_flag_info): New struct.
2773 (bfd_flag_info): New static global.
2774 (match_bfd_flags): Return a bool, use bfd_flag_info.
2775 (print_bfd_flags): Use bfd_flag_info.
2776 (maint_print_section_info): Delete trailing whitespace.
2777 (struct maint_info_sections_opts): New struct.
2778 (maint_info_sections_option_defs): New static global.
2779 (maint_info_sections_completer): New function.
2780 (maintenance_info_sections): Use option parsing mechanism.
2781 (_initialize_maint_cmds): Update command help text for 'maint info
2782 sections' and register a command completer.
2783
4790db14
AB
27842021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2785
2786 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
2787 functionality merged into...
2788 (maint_print_all_sections): ...this new function.
2789 (maintenance_info_sections): Make use of maint_print_all_sections,
2790 allow all objects to be printed even where there's no executable.
2791
1db66e34
AB
27922021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2793
2794 * breakpoint.c (resolve_sal_pc): Make use of
2795 bound_minimal_symbol::obj_section.
2796 * maint.c (maintenance_translate_address): Likewise.
2797 * minsyms.c (minimal_symbol_upper_bound): Likewise.
2798 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
2799 member function.
2800 * printcmd.c (info_address_command): Make use of
2801 bound_minimal_symbol::obj_section.
2802
18b8df43
AM
28032021-02-11 Alan Modra <amodra@gmail.com>
2804
2805 * arm-symbian-tdep.c: Delete.
2806 * NEWS: Mention arm-symbian removal.
2807 * Makefile.in: Remove arm-symbian-tdep entries.
2808 * configure.tgt: Remove arm*-*-symbianelf*.
2809 * doc/gdb.texinfo: Remove mention of SymbianOS.
2810 * osabi.c (gdb_osabi_names): Remove "Symbian".
2811 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
2812 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
2813 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
2814 handling.
2815 * testsuite/gdb.base/dup-sect.exp: Likewise.
2816 * testsuite/gdb.base/long_long.exp: Likewise.
2817 * testsuite/gdb.base/solib-weak.exp: Likewise.
2818 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
2819 * testsuite/gdb.python/py-section-script.exp: Likewise.
2820 * testsuite/lib/dwarf.exp: Likewise.
2821 * testsuite/lib/gdb.exp: Likewise.
2822
e92c8eb8
AB
28232021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2824
2825 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
2826 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
2827 (one_or_two_args): New pattern.
2828 (f77_keywords): Add lbound and ubound.
2829 * f-lang.c (fortran_bounds_all_dims): New function.
2830 (fortran_bounds_for_dimension): New function.
2831 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
2832 (operator_length_f): Likewise.
2833 (print_subexp_f): Likewise.
2834 (dump_subexp_body_f): Likewise.
2835 (operator_check_f): Likewise.
2836 * std-operator.def (FORTRAN_LBOUND): Define.
2837 (FORTRAN_UBOUND): Define.
2838
a52d653e
AB
28392021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2840
2841 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
2842 and set_section_index member functions where appropriate.
2843 * coffread.c (coff_symtab_read): Likewise.
2844 (process_coff_symbol): Likewise.
2845 * ctfread.c (set_symbol_address): Likewise.
2846 * dwarf2/read.c (add_partial_symbol): Likewise.
2847 (var_decode_location): Likewise.
2848 * language.c: Likewise.
2849 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
2850 (compact_minimal_symbols): Likewise.
2851 (minimal_symbol_upper_bound): Likewise.
2852 * objfiles.c (relocate_one_symbol): Likewise.
2853 * psympriv.h (partial_symbol::obj_section): Likewise.
2854 (partial_symbol::address): Likewise.
2855 * psymtab.c (partial_symtab::add_psymbol): Likewise.
2856 * stabsread.c (scan_file_globals): Likewise.
2857 * symmisc.c (dump_msymbols): Likewise.
2858 * symtab.c (general_symbol_info::obj_section): Likewise.
2859 (fixup_section): Likewise.
2860 (get_msymbol_address): Likewise.
2861 * symtab.h (general_symbol_info::section): Rename to...
2862 (general_symbol_info::m_section): ...this.
2863 (general_symbol_info::set_section_index): New member function.
2864 (general_symbol_info::section_index): Likewise.
2865 (SYMBOL_SECTION): Delete.
2866 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
2867 set_section_index member functions where appropriate.
2868 (MSYMBOL_SECTION): Delete.
2869 (symbol::symbol): Update to initialize 'm_section'.
2870 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
2871 (process_xcoff_symbol): Likewise.
2872
ebbc3a7d
AB
28732021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2874
2875 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
2876 MSYMBOL_OBJ_SECTION.
2877 * findvar.c (language_defn::read_var_value): Likewise.
2878 * infcmd.c (jump_command): Likewise.
2879 * linespec.c (minsym_found): Likewise.
2880 * maint.c (maintenance_translate_address): Likewise.
2881 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
2882 (minimal_symbol_upper_bound): Likewise.
2883 * parse.c (find_minsym_type_and_address): Likewise.
2884 (operator_check_standard): Likewise.
2885 * printcmd.c (info_address_command): Likewise.
2886 * symmisc.c (dump_msymbols): Likewise.
2887 (print_symbol): Likewise.
2888 * symtab.c (general_symbol_info::obj_section): Define new
2889 function.
2890 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
2891 (find_pc_sect_compunit_symtab): Likewise.
2892 (find_function_start_sal): Likewise.
2893 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
2894 MSYMBOL_OBJ_SECTION.
2895 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
2896 function.
2897 (SYMBOL_OBJ_SECTION): Delete.
2898 (MSYMBOL_OBJ_SECTION): Delete.
2899
9bb305b3
TT
29002021-02-09 Tom Tromey <tom@tromey.com>
2901
2902 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
2903
cf2b2075
TV
29042021-02-09 Tom de Vries <tdevries@suse.de>
2905
2906 PR symtab/27341
2907 * dwarf2/read.c (read_array_type): Return NULL when not being able to
2908 construct an array type. Add assert to ensure that element_type is
2909 not being modified.
2910
03642b71
AB
29112021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
2912
2913 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
2914 (gcore_collect_regset_section_cb): Delete.
2915 (gcore_collect_thread_registers): Delete.
2916 (gcore_build_thread_register_notes): Delete.
2917 (gcore_find_signalled_thread): Delete.
2918 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
2919 'gdbarch' and 'thread_info' declarations.
2920 (gcore_build_thread_register_notes): Delete declaration.
2921 (gcore_find_signalled_thread): Likewise.
2922 * fbsd-tdep.c: Remove 'gcore.h' include.
2923 (struct fbsd_collect_regset_section_cb_data): New struct.
2924 (fbsd_collect_regset_section_cb): New function.
2925 (fbsd_collect_thread_registers): New function.
2926 (struct fbsd_corefile_thread_data): New struct.
2927 (fbsd_corefile_thread): New function.
2928 (fbsd_make_corefile_notes): Call FreeBSD specific code.
2929 * linux-tdep.c: Remove 'gcore.h' include.
2930 (struct linux_collect_regset_section_cb_data): New struct.
2931 (linux_collect_regset_section_cb): New function.
2932 (linux_collect_thread_registers): New function.
2933 (linux_corefile_thread): Call Linux specific code.
2934 (find_signalled_thread): New function.
2935 (linux_make_corefile_notes): Call find_signalled_thread.
2936
f73e424f
TT
29372021-02-09 Tom Tromey <tromey@adacore.com>
2938
2939 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
2940 not_lval value.
2941 * value.c (value_contents_copy_raw): Now static.
2942 * value.h (value_contents_copy_raw): Don't declare.
2943
a4f0544b
TT
29442021-02-09 Tom Tromey <tromey@adacore.com>
2945
2946 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
2947 fields.
2948
9b3e4b5d
SV
29492021-02-08 Shahab Vahedi <shahab@synopsys.com>
2950
2951 PR tdep/27369
2952 * arc-linux-tdep.c (handle_atomic_sequence): New.
2953 (arc_linux_software_single_step): Call handle_atomic_sequence().
2954
29db1eb3
AB
29552021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2956
2957 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
2958 function.
2959 (REQUIRE_WINDOW): Call is_valid member function.
2960 (REQUIRE_WINDOW_FOR_SETTER): New define.
2961 (gdbpy_tui_is_valid): Call is_valid member function.
2962 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
2963 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
2964 tui_active too.
2965 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
2966 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
2967 the function.
2968
e0c23e11
AB
29692021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2970
2971 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
2972 for the title is not nullptr.
2973
1cf23996
AB
29742021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2975
2976 * tui-layout.c (saved_tui_windows): Delete.
2977 (tui_apply_current_layout): Don't make use of saved_tui_windows,
2978 call new get_windows member function instead.
2979 (tui_get_window_by_name): Check in tui_windows.
2980 (tui_layout_window::apply): Don't add to tui_windows.
2981 * tui-layout.h (tui_layout_base::get_windows): New member function.
2982 (tui_layout_window::get_windows): Likewise.
2983 (tui_layout_split::get_windows): Likewise.
2984
a53a2657
AB
29852021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2986
2987 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
2988 of the window objects.
2989
2708dbbd
AB
29902021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2991
2992 * python/python.c (gdbpy_print_stack): Reformat an error message.
2993
cd074e04
AB
29942021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2995
2996 * tui/tui-interp.c (tui_command_line_handler): New function.
2997 (tui_interp::resume): Register tui_command_line_handler as the
2998 input_handler.
2999 * tui/tui-io.c (tui_inject_newline_into_command_window): New
3000 function.
3001 (tui_getc_1): Delete handling of '\n' and '\r'.
3002 * tui-io.h (tui_inject_newline_into_command_window): Declare.
3003
4cf28e91
HD
30042021-02-07 Hannes Domani <ssbssa@yahoo.de>
3005
3006 * tui/tui-regs.c (tui_data_window::display_registers_from):
3007 Mark invisible register sub windows.
3008 (tui_data_window::check_register_values): Ignore invisible
3009 register sub windows.
3010
3537bc23
HD
30112021-02-07 Hannes Domani <ssbssa@yahoo.de>
3012
3013 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
3014 n_spaces with a negative value.
3015
5fc2d6aa
HD
30162021-02-07 Hannes Domani <ssbssa@yahoo.de>
3017
3018 * tui/tui-regs.c (tui_data_window::display_registers_from):
3019 Add refresh_window call.
3020
83962f83
HD
30212021-02-07 Hannes Domani <ssbssa@yahoo.de>
3022
3023 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
3024
0110ec82
SM
30252021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
3026
3027 * symmisc.c (std_in, std_out, std_err): Remove.
3028 (_initialize_symmisc): Don't set std_in, std_out and std_err.
3029
7c6944ab
TV
30302021-02-05 Tom de Vries <tdevries@suse.de>
3031
3032 PR breakpoints/27330
3033 * breakpoint.c (create_exception_master_breakpoint): Handle case that
3034 glibc object file has debug info.
3035
e77b0004
TV
30362021-02-05 Tom de Vries <tdevries@suse.de>
3037
3038 PR symtab/27333
3039 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
3040
0e857c82
TV
30412021-02-05 Tom de Vries <tdevries@suse.de>
3042
3043 PR breakpoints/27313
3044 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
3045 syscall numbers.
3046
bdfea17e
TT
30472021-02-05 Tom Tromey <tom@tromey.com>
3048
3049 * compile/compile-c-support.c (get_compile_context)
3050 (c_get_compile_context, cplus_get_compile_context): Change return
3051 type.
3052 * language.c (language_defn::get_compile_instance): New method.
3053 * language.h (language_defn::get_compile_instance): Change return
3054 type. No longer inline.
3055 * c-lang.c (c_language::get_compile_instance): Change return type.
3056 (cplus_language::get_compile_instance): Change return type.
3057 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
3058 Change return type.
3059 * compile/compile.c (compile_to_object): Update.
3060
1b30f421
TT
30612021-02-05 Tom Tromey <tom@tromey.com>
3062
3063 * parser-defs.h (write_exp_symbol_reference): Declare.
3064 * parse.c (write_exp_symbol_reference): New function.
3065 * p-exp.y (variable): Use write_exp_symbol_reference.
3066 * m2-exp.y (variable): Use write_exp_symbol_reference.
3067 * f-exp.y (variable): Use write_exp_symbol_reference.
3068 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
3069 * c-exp.y (variable): Use write_exp_symbol_reference.
3070
ae710496
TV
30712021-02-05 Tom de Vries <tdevries@suse.de>
3072
3073 PR exp/27265
3074 * valarith.c (complex_binop): Throw an error if complex type can't
3075 be created.
3076
d3b54e63
TV
30772021-02-05 Tom de Vries <tdevries@suse.de>
3078
3079 PR symtab/27307
3080 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
3081 return.
3082
fc9a13fb
TV
30832021-02-05 Tom de Vries <tdevries@suse.de>
3084
3085 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
3086
04b4939b
MF
30872021-02-04 Mike Frysinger <vapier@gentoo.org>
3088
3089 * configure.tgt (riscv*-*-*): Set gdb_sim.
3090
6ff267e1
SM
30912021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
3092
3093 * target.c (target_is_non_stop_p): Return bool.
3094 * target.h (target_is_non_stop_p): Return bool.
3095
fdbc5215
SM
30962021-02-04 Simon Marchi <simon.marchi@efficios.com>
3097
3098 * record-full.c (record_full_async_inferior_event_handler):
3099 Don't clear async event handler.
3100 (record_full_base_target::wait): Clear async event handler at
3101 beginning.
3102
85d3ad8e
SM
31032021-02-04 Simon Marchi <simon.marchi@efficios.com>
3104
3105 * record-btrace.c (record_btrace_handle_async_inferior_event):
3106 Don't clear async event handler.
3107 (record_btrace_target::wait): Clear async event handler at
3108 beginning.
3109
baa8575b
SM
31102021-02-04 Simon Marchi <simon.marchi@efficios.com>
3111
3112 * remote.c (remote_target::wait): Clear async event handler at
3113 beginning, mark if needed at the end.
3114 (remote_async_inferior_event_handler): Don't set or clear async
3115 event handler.
3116
6b36ddeb
SM
31172021-02-04 Simon Marchi <simon.marchi@efficios.com>
3118
3119 * async-event.h (async_event_handler_func): Add documentation.
3120 * async-event.c (check_async_event_handlers): Don't clear
3121 async_event_handler ready flag.
3122 * infrun.c (infrun_async_inferior_event_handler): Clear ready
3123 flag.
3124 * record-btrace.c (record_btrace_handle_async_inferior_event):
3125 Likewise.
3126 * record-full.c (record_full_async_inferior_event_handler):
3127 Likewise.
3128 * remote-notif.c (remote_async_get_pending_events_handler):
3129 Likewise.
3130 * remote.c (remote_async_inferior_event_handler): Likewise.
3131
72d383bb
SM
31322021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
3133
3134 * infrun.c (handle_inferior_event): Move stop_soon variable to
3135 inner scope.
3136
408f6686
PA
31372021-02-03 Pedro Alves <pedro@palves.net>
3138
3139 * infcmd.c (detach_command): Hold strong reference to target, and
3140 if all-stop on entry, restart threads on exit.
3141 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
3142 (restart_stepped_thread): ... this new function. Also handle
3143 trap_expected.
3144 (restart_after_all_stop_detach): New function.
3145 * infrun.h (restart_after_all_stop_detach): Declare.
3146
ac7d717c
PA
31472021-02-03 Pedro Alves <pedro@palves.net>
3148
3149 * infrun.c (struct step_over_info): Initialize fields.
3150 (prepare_for_detach): Handle ongoing in-line step over.
3151
e87f0fe8
PA
31522021-02-03 Pedro Alves <pedro@palves.net>
3153
3154 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
3155 here...
3156 * remote.c (remote_target::remote_detach_1): ... and here ...
3157 * target.c (target_detach): ... instead of here.
3158 * target.h (target_ops::detach): Add comment.
3159
8ff53139
PA
31602021-02-03 Pedro Alves <pedro@palves.net>
3161
3162 * infrun.c (struct wait_one_event): Move higher up.
3163 (prepare_for_detach): Abort in-progress displaced steps instead of
3164 letting them complete.
3165 (handle_one): If the inferior is detaching, don't add the thread
3166 back to the global step-over chain.
3167 (restart_threads): Don't restart threads if detaching.
3168 (handle_signal_stop): Remove inferior::detaching reference.
3169
91475068
PA
31702021-02-03 Pedro Alves <pedro@palves.net>
3171
3172 * infrun.c (prepare_for_detach): Don't release scoped_restore
3173 before returning.
3174
d758e62c
PA
31752021-02-03 Pedro Alves <pedro@palves.net>
3176
3177 * infrun.c (handle_one): New function, factored out from ...
3178 (stop_all_threads): ... here.
3179
b0083dd7
PA
31802021-02-03 Pedro Alves <pedro@palves.net>
3181
3182 * remote.c (remote_notif_stop_ack): Don't error out on
3183 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
3184 (remote_target::discard_pending_stop_replies): Don't delete
3185 in-flight notification; instead, clear its contents.
3186
621cc310
PA
31872021-02-03 Pedro Alves <pedro@palves.net>
3188
3189 * remote.c (extended_remote_target::attach): Set target async in
3190 the target-non-stop path too.
3191
2ab76a18
PA
31922021-02-03 Pedro Alves <pedro@palves.net>
3193
3194 PR gdb/27055
3195 * infrun.c (handle_signal_stop): Move main context_switch call
3196 earlier, before STOP_QUIETLY_NO_SIGSTOP.
3197
2e3773ff
LS
31982021-02-02 Lancelot SIX <lsix@lancelotsix.com>
3199
3200 * NEWS (Changed commands): Add entry for the behavior change of
3201 the inferior command.
3202 * inferior.c (inferior_command): When no argument is given to the
3203 inferior command, display info about the currently selected
3204 inferior.
3205
e57933dc
SM
32062021-02-02 Simon Marchi <simon.marchi@efficios.com>
3207
3208 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
3209 a sect_offset.
3210 (read_attribute_reprocess): Adjust.
3211
2b0c7f41
SM
32122021-02-02 Simon Marchi <simon.marchi@efficios.com>
3213
3214 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
3215 <gnu_ranges_base>: ... this...
3216 <rnglists_base>: ... and this.
3217 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
3218 <gnu_ranges_base>: ... this...
3219 <rnglists_base>: ... and this.
3220 (read_cutu_die_from_dwo): Adjust
3221 (dwarf2_get_pc_bounds): Adjust
3222 (dwarf2_record_block_ranges): Adjust.
3223 (read_full_die_1): Adjust
3224 (partial_die_info::read): Adjust.
3225 (read_rnglist_index): Adjust.
3226
a1c40103
SM
32272021-02-02 Simon Marchi <simon.marchi@efficios.com>
3228
3229 PR gdb/26813
3230 * dwarf2/read.c (read_loclists_rnglists_header): Add
3231 header_offset parameter and use it.
3232 (read_loclist_index): Read header of the current contribution,
3233 not the one at the beginning of the section.
3234 (read_rnglist_index): Likewise.
3235
b1829e1b
SM
32362021-02-02 Simon Marchi <simon.marchi@efficios.com>
3237
3238 PR gdb/26813
3239 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
3240 requires_reprocessing flag.
3241 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
3242 DW_FORM_loclistx.
3243 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
3244 and DW_FORM_loclistx.
3245 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
3246 instead of set_address for DW_FORM_loclistx and
3247 DW_FORM_rnglistx.
3248
0c800c6e
SM
32492021-02-02 Simon Marchi <simon.marchi@efficios.com>
3250
3251 * dwarf2/read.c (read_loclist_index): Remove bound check for
3252 start of offset.
3253 (read_rnglist_index): Likewise.
3254
05787bad
SM
32552021-02-02 Simon Marchi <simon.marchi@efficios.com>
3256
3257 * dwarf2/read.c (read_loclist_index): Add bound check for the end
3258 of the offset.
3259
5e4d9bbc
SM
32602021-02-02 Simon Marchi <simon.marchi@efficios.com>
3261
3262 * dwarf2/read.c (read_rnglist_index): Fix bound check.
3263
a0c1eeba
SM
32642021-02-02 Simon Marchi <simon.marchi@efficios.com>
3265
3266 * dwarf2/read.c (read_loclist_index): Change complaints into
3267 errors.
3268
2bd3e4b8
TV
32692021-02-02 Tom de Vries <tdevries@suse.de>
3270
3271 PR symtab/24620
3272 * dwarf2/index-write.c (write_one_signatured_type): Skip if
3273 psymtab == nullptr.
3274
82a1fd3a
AB
32752021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
3276
3277 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
3278 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
3279 here from linux-tdep.c and given a new name. Minor cleanups.
3280 (gcore_collect_regset_section_cb): Likewise.
3281 (gcore_collect_thread_registers): Likewise.
3282 (gcore_build_thread_register_notes): Likewise.
3283 (gcore_find_signalled_thread): Likewise.
3284 * gcore.h (gcore_build_thread_register_notes): Declare.
3285 (gcore_find_signalled_thread): Declare.
3286 * fbsd-tdep.c: Add 'gcore.h' include.
3287 (struct fbsd_collect_regset_section_cb_data): Delete.
3288 (fbsd_collect_regset_section_cb): Delete.
3289 (fbsd_collect_thread_registers): Delete.
3290 (struct fbsd_corefile_thread_data): Delete.
3291 (fbsd_corefile_thread): Delete.
3292 (fbsd_make_corefile_notes): Call
3293 gcore_build_thread_register_notes instead of the now deleted
3294 FreeBSD code.
3295 * linux-tdep.c: Add 'gcore.h' include.
3296 (struct linux_collect_regset_section_cb_data): Delete.
3297 (linux_collect_regset_section_cb): Delete.
3298 (linux_collect_thread_registers): Delete.
3299 (linux_corefile_thread): Call
3300 gcore_build_thread_register_notes.
3301 (find_signalled_thread): Delete.
3302 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
3303
ebde6f2d
TV
33042021-01-29 Tom de Vries <tdevries@suse.de>
3305
3306 PR breakpoints/26063
3307 * infrun.c (process_event_stop_test): Reset
3308 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
3309 changed.
3310
0f93c3a2
AB
33112021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3312
3313 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
3314 assert. Extend the header comment.
3315
f237f998
AB
33162021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3317
3318 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
3319 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
3320 * tui/tui-data.h (TUI_STATUS_WIN): Define.
3321 (tui_locator_win_info_ptr): Delete declaration.
3322 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
3323 (tui_disasm_window::set_contents): Fetch state from tui_location
3324 global.
3325 (tui_get_begin_asm_address): Likewise.
3326 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
3327 for locator window.
3328 (get_locator_window): Delete.
3329 (initialize_known_windows): Treat locator window just like all the
3330 rest.
3331 * tui/tui-source.c: Add 'tui/tui-location.h' include.
3332 (tui_source_window::set_contents): Fetch state from tui_location
3333 global.
3334 (tui_source_window::showing_source_p): Likewise.
3335 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
3336 (_locator): Delete.
3337 (tui_locator_win_info_ptr): Delete.
3338 (tui_locator_window::make_status_line): Fetch state from
3339 tui_location global.
3340 (tui_locator_window::rerender): Remove check of 'handle',
3341 reindent function body.
3342 (tui_locator_window::set_locator_fullname): Delete.
3343 (tui_locator_window::set_locator_info): Delete.
3344 (tui_update_locator_fullname): Delete.
3345 (tui_show_frame_info): Likewise.
3346 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
3347 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
3348 tui/tui-location.h and renamed to
3349 tui_location_tracker::set_location.
3350 (tui_locator_window::set_locator_fullname): Moved to
3351 tui/tui-location.h and renamed to
3352 tui_location_tracker::set_fullname.
3353 (tui_locator_window::full_name): Delete.
3354 (tui_locator_window::proc_name): Delete.
3355 (tui_locator_window::line_no): Delete.
3356 (tui_locator_window::addr): Delete.
3357 (tui_locator_window::gdbarch): Delete.
3358 (tui_update_locator_fullname): Delete declaration.
3359 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
3360 for locator window.
3361 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
3362 (tui_display_main): Call function on tui_location directly.
3363 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
3364 * tui/tui-location.c: New file.
3365 * tui/tui-location.h: New file.
3366
8ee511af
SM
33672021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
3368
3369 * gdbtypes.h (get_type_arch): Rename to...
3370 (struct type) <arch>: ... this, update all users.
3371
6ac37371
SM
33722021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
3373
3374 * gdbtypes.h (struct type) <arch>: Rename to...
3375 <arch_owner>: ... this, update all users.
3376 <objfile>: Rename to...
3377 <objfile_owner>: ... this, update all users.
3378
24cf6389
AB
33792021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3380
3381 * gdbcmd.h (execute_command_to_string): Update comment.
3382 * top.c (execute_command_to_string): Update header comment.
3383
2a7f6487
TV
33842021-01-28 Tom de Vries <tdevries@suse.de>
3385
3386 PR breakpoints/27205
3387 * breakpoint.c (create_longjmp_master_breakpoint_probe)
3388 (create_longjmp_master_breakpoint_names): New function, factored out
3389 of ...
3390 (create_longjmp_master_breakpoint): ... here. Only try to install
3391 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
3392 breakpoint in libc.so failed.
3393
59b59f08
LS
33942021-01-27 Lancelot SIX <lsix@lancelotsix.com>
3395
3396 PR gdb/27133
3397 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
3398 unique_ptr is released when the wrapped pointer is kept for later
3399 use.
3400
807f647c
MM
34012021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
3402
3403 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
3404 BLR and BR instructions.
3405 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
3406 (enum aarch64_masks): New.
3407
4ef367bf
TT
34082021-01-26 Tom Tromey <tromey@adacore.com>
3409
3410 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
3411 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
3412 (windows_init_thread_list, windows_nat::handle_load_dll)
3413 (windows_nat::handle_unload_dll, windows_nat_target::resume)
3414 (windows_nat_target::resume)
3415 (windows_nat_target::get_windows_debug_event)
3416 (windows_nat_target::interrupt, windows_xfer_memory)
3417 (windows_nat_target::close): Update.
3418 * nat/windows-nat.c (DEBUG_EVENTS): Use
3419 debug_prefixed_printf_cond.
3420 (matching_pending_stop, fetch_pending_stop)
3421 (continue_last_debug_event): Update.
3422
4cb1265b
MS
34232020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
3424
3425 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
3426 elfcore_write_file_note.
3427
d0cc52bd
SV
34282021-01-26 Shahab Vahedi <shahab@synopsys.com>
3429
3430 * arc-tdep.c (arc_add_reggroups): New function.
3431 (arc_gdbarch_init): Call arc_add_reggroups.
3432
ac3571d9 34332021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
3434
3435 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
3436
9f6c202e
TV
34372021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
3438 Simon Marchi <simon.marchi@polymtl.ca>
3439 Tom de Vries <tdevries@suse.de>
3440
3441 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
3442 DW_AT_ranges.
3443
a625a8c9
TT
34442021-01-25 Tom Tromey <tromey@adacore.com>
3445
3446 * dwarf2/read.c (get_mpz): New function.
3447 (get_dwarf2_rational_constant): Use it.
3448
19184910
TT
34492021-01-25 Tom Tromey <tromey@adacore.com>
3450
3451 * ada-lang.c (resolve_subexp): Handle array context.
3452
b10bae18
TT
34532021-01-23 Tom Tromey <tom@tromey.com>
3454
3455 PR compile/25575
3456 * compile/compile-loc2c.c (note_register): New function.
3457 (pushf_register_address, pushf_register): Use it.
3458
3637a558
TT
34592021-01-23 Tom Tromey <tom@tromey.com>
3460
3461 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
3462 Change type of "registers_used".
3463 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
3464 * dwarf2/loc.c (dwarf2_compile_property_to_c)
3465 (locexpr_generate_c_location, loclist_generate_c_location): Change
3466 type of "registers_used".
3467 * compile/compile.h (compile_dwarf_expr_to_c)
3468 (compile_dwarf_bounds_to_c): Update.
3469 * compile/compile-loc2c.c (pushf_register_address)
3470 (pushf_register, do_compile_dwarf_expr_to_c)
3471 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
3472 of "registers_used".
3473 * compile/compile-c.h (generate_c_for_variable_locations):
3474 Update.
3475 * compile/compile-c-symbols.c (generate_vla_size)
3476 (generate_c_for_for_one_variable): Change type of
3477 "registers_used".
3478 (generate_c_for_variable_locations): Return std::vector.
3479 * compile/compile-c-support.c (generate_register_struct): Change
3480 type of "registers_used".
3481 (compute): Update.
3482
9f7f6cb8
TT
34832021-01-23 Tom Tromey <tom@tromey.com>
3484
3485 * compile/compile-internal.h (class compile_instance)
3486 <set_arguments>: Change return type.
3487 * compile/compile.c (compile_to_object): Remove call to reset.
3488 (compile_instance::set_arguments): Change return type.
3489
dd5ca05f
SM
34902021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
3491
3492 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
3493 * gdbtypes.h (struct type) <set_owner>: Add asserts.
3494
d3ee35db
LS
34952021-01-23 Lancelot SIX <lsix@lancelotsix.com>
3496
3497 * Makefile.in (SELFTESTS_SRCS): Add
3498 unittests/gdb_tilde_expand-selftests.c.
3499 * unittests/gdb_tilde_expand-selftests.c: New file.
3500
9d2d8a16
AB
35012021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3502
3503 PR cli/25956
3504 * NEWS: Mention new command.
3505 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
3506 (version_style): Define.
3507 (cli_style_option::cli_style_option): Add intensity parameter, and
3508 use as appropriate.
3509 (_initialize_cli_style): Register version style set/show commands.
3510 * cli/cli-style.h (cli_style_option): Add intensity parameter.
3511 (version_style): Declare.
3512 * top.c (print_gdb_version): Use version_stype, and styled_string
3513 to print the GDB version string.
3514
e7b43072
AB
35152021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3516
3517 * utils.c (emit_style_escape): Only emit an escape sequence if the
3518 requested style is different than the current applied style.
3519 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
3520 current applied_style.
3521 (fputs_styled): Remove is_default check.
3522 (fputs_styled_unfiltered): Likewise.
3523 (vfprintf_styled_no_gdbfmt): Likewise.
3524
2189c312
SM
35252021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3526
3527 * remote.h (remote_debug_printf): New.
3528 (remote_debug_printf_nofunc): New.
3529 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
3530 * remote.c: Use above macros throughout file.
3531
02349803
SM
35322021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3533
3534 * remote.h (remote_debug): Change to bool.
3535 * remote.c (remote_debug): Change to bool.
3536 (_initialize_remote): Adjust.
3537
cda09ec9
SM
35382021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3539
3540 * target.h (remote_debug): Move to...
3541 * remote.h (remote_debug): ... here.
3542 * top.c (remote_debug): Move to...
3543 * remote.c (remote_debug): ... here.
3544 * remote-sim.c: Include remote.h.
3545
baf2b57f
SM
35462021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3547
3548 * cli/cli-cmds.c (show_remote_debug): Remove.
3549 (show_remote_timeout): Remove.
3550 (_initialize_cli_cmds): Don't register commands.
3551 * remote.c (show_remote_debug): Move here.
3552 (show_remote_timeout): Move here.
3553 (_initialize_remote): Register commands.
3554
344e9841
SM
35552021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3556
3557 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
3558 type::objfile method instead.
3559
30625020
SM
35602021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3561
3562 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
3563 use the type::is_objfile_owned method.
3564
5b7d941b
SM
35652021-01-22 Simon Marchi <simon.marchi@efficios.com>
3566
3567 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
3568 (TYPE_OWNER): Remove.
3569 (TYPE_OBJFILE): Adjust.
3570 (struct main_type) <flag_objfile_owned>: Rename to...
3571 <m_flag_objfile_owned>: ... this.
3572 <owner>: Rename to...
3573 <m_owner>: ... this.
3574 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
3575 methods.
3576 (TYPE_ALLOC): Adjust.
3577 * gdbtypes.c (alloc_type): Adjust.
3578 (alloc_type_arch): Adjust.
3579 (alloc_type_copy): Adjust.
3580 (get_type_arch): Adjust.
3581 (smash_type): Adjust.
3582 (lookup_array_range_type): Adjust.
3583 (recursive_dump_type): Adjust.
3584 (copy_type_recursive): Adjust.
3585 * compile/compile-c-types.c (convert_func): Adjust.
3586 (convert_type_basic): Adjust.
3587 * compile/compile-cplus-types.c (compile_cplus_convert_func):
3588 Adjust.
3589 * language.c
3590 (language_arch_info::type_and_symbol::alloc_type_symbol):
3591 Adjust.
3592
d5d24e12
LM
35932021-01-21 Luis Machado <luis.machado@linaro.org>
3594
3595 * coffread.c (enter_linenos): Passing string to complaint.
3596 * valops.c (value_assign): Make array view.
3597
a59902a7
SM
35982021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3599
3600 * auto-load.h (debug_auto_load): Move here.
3601 (auto_load_debug_printf): New.
3602 * auto-load.c: Use auto_load_debug_printf.
3603 (debug_auto_load): Move to header.
3604 * linux-thread-db.c (try_thread_db_load): Use
3605 auto_load_debug_printf.
3606 * main.c (captured_main_1): Likewise.
3607
d3abc0ce
SM
36082021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3609
3610 * f-valprint.c (f77_array_offset_tbl): Remove.
3611
1e15fcac
SM
36122021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3613
3614 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
3615
439706e6
SM
36162021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3617
3618 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
3619 of gdb_select.
3620
325d39e4
HD
36212021-01-21 Hannes Domani <ssbssa@yahoo.de>
3622
3623 PR python/19151
3624 * python/py-breakpoint.c (bppy_get_location): Handle
3625 bp_hardware_breakpoint.
3626 (bppy_init): Likewise.
3627 (gdbpy_breakpoint_created): Likewise.
3628
7cb6d92a
SM
36292021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3630
3631 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
3632
d4dd4fca
SM
36332021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3634
3635 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
3636 (_initialize_gdb_bfd): Adjust.
3637
de53369b
SM
36382021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3639
3640 PR gdb/26828
3641 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
3642
17e593e9
SM
36432021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3644
3645 * dwarf2/read.c (follow_die_offset): Add logging.
3646 (dwarf2_per_objfile::age_comp_units): Add logging.
3647
6bd434d6
SM
36482021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3649
3650 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
3651 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
3652 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
3653 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
3654 * arm-tdep.c (struct frame_unwind): Make static.
3655 * auto-load.c (auto_load_safe_path_vec): Make static.
3656 * csky-tdep.c (csky_stub_unwind): Make static.
3657 * gdbarch.c (gdbarch_data_registry): Make static.
3658 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
3659 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
3660 * i386-tdep.c (i386_frame_setup_skip_insns,
3661 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
3662 Make static.
3663 * infrun.c (observer_mode): Make static.
3664 * linux-nat.c (sigchld_action): Make static.
3665 * linux-thread-db.c (thread_db_list): Make static.
3666 * maint-test-options.c (maintenance_test_options_list):
3667 * mep-tdep.c (mep_csr_registers): Make static.
3668 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
3669 (stats): Make static.
3670 * nat/linux-osdata.c (struct osdata_type): Make static.
3671 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
3672 * progspace.c (last_program_space_num): Make static.
3673 * python/py-param.c (struct parm_constant): Remove struct type
3674 name.
3675 (parm_constants): Make static.
3676 * python/py-record-btrace.c (btpy_list_methods): Make static.
3677 * python/py-record.c (recpy_gap_type): Make static.
3678 * record.c (record_goto_cmdlist): Make static.
3679 * regcache.c (regcache_descr_handle): Make static.
3680 * registry.h (DEFINE_REGISTRY): Make definition static.
3681 * symmisc.c (std_in, std_out, std_err): Make static.
3682 * top.c (previous_saved_command_line): Make static.
3683 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
3684 static.
3685 * unittests/command-def-selftests.c (nr_duplicates,
3686 nr_invalid_prefixcmd, lists): Make static.
3687 * unittests/observable-selftests.c (test_notification): Make
3688 static.
3689 * unittests/optional/assignment/1.cc (counter): Make static.
3690 * unittests/optional/assignment/2.cc (counter): Make static.
3691 * unittests/optional/assignment/3.cc (counter): Make static.
3692 * unittests/optional/assignment/4.cc (counter): Make static.
3693 * unittests/optional/assignment/5.cc (counter): Make static.
3694 * unittests/optional/assignment/6.cc (counter): Make static.
3695
a6c11cbb
JS
36962021-01-20 Joel Sherrill <joel@rtems.org>
3697
3698 PR gdb/27219
3699 * remote.c (struct remote_thread_info) <resume_state>: Rename
3700 to...
3701 <get_resume_state>: ... this.
3702 (remote_target::resume): Adjust.
3703 (remote_target::commit_resume): Adjust.
3704 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
3705
6f52fdf4
SDJ
37062021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
3707 Tom Tromey <tom@tromey.com>
3708
3709 * stap-probe.c (stap_parse_single_operand): Handle '!'
3710 operator.
3711 (stap_parse_argument_conditionally): Likewise.
3712 Skip spaces after processing open-parenthesis sub-expression.
3713 (stap_parse_argument_1): Skip spaces after call to
3714 stap_parse_argument_conditionally.
3715 Handle case when right-side expression is a parenthesized
3716 sub-expression.
3717 Skip spaces after call to stap_parse_argument_1.
3718
1c3b85ad
LS
37192021-01-19 Lancelot SIX <lsix@lancelotsix.com>
3720
3721 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
3722
a9a87d35
LM
37232021-01-19 Luis Machado <luis.machado@linaro.org>
3724
3725 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
3726 memory and save data.
3727 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
3728 (trad_frame_set_unknown, trad_frame_set_value_bytes)
3729 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3730 (trad_frame_value_bytes_p): Remove.
3731 (trad_frame_reset_saved_regs): Adjust documentation.
3732 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
3733 constructor and reset the state of the registers.
3734 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3735 (trad_frame_value_bytes_p, trad_frame_set_value)
3736 (trad_frame_set_realreg, trad_frame_set_addr)
3737 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
3738 (trad_frame_set_reg_realreg): Update to call member function.
3739 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
3740 (trad_frame_get_prev_register): Likewise.
3741
3742 * aarch64-tdep.c (aarch64_analyze_prologue)
3743 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
3744 (aarch64_prologue_prev_register): Update to use member functions.
3745 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
3746 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
3747 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
3748 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
3749 (arm_make_epilogue_frame_cache): Likewise.
3750 * avr-tdep.c (avr_frame_unwind_cache)
3751 (avr_frame_prev_register): Likewise.
3752 * cris-tdep.c (cris_scan_prologue): Likewise.
3753 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
3754 * frv-tdep.c (frv_analyze_prologue): Likewise.
3755 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
3756 * lm32-tdep.c (lm32_frame_cache): Likewise.
3757 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3758 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3759 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
3760 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
3761 (reset_saved_regs): Adjust to set realreg.
3762 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
3763 call member functions.
3764 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
3765 * s390-tdep.c (s390_prologue_frame_unwind_cache)
3766 (s390_backchain_frame_unwind_cache): Likewise.
3767 * score-tdep.c (score7_analyze_prologue)
3768 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
3769 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
3770 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3771 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
3772 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3773 * tilegx-tdep.c (tilegx_analyze_prologue)
3774 (tilegx_frame_cache): Likewise.
3775 * v850-tdep.c (v850_frame_cache): Likewise.
3776 * vax-tdep.c (vax_frame_cache): Likewise.
3777
bdec2917
LM
37782021-01-19 Luis Machado <luis.machado@linaro.org>
3779
3780 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
3781 of buffer + length.
3782 (put_frame_register_bytes): Likewise.
3783 Adjust documentation.
3784 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
3785 (safe_frame_unwind_memory): Likewise.
3786 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
3787 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
3788 gdb::array_view.
3789 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
3790 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
3791 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3792 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
3793 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
3794 * dwarf2/loc.c (rw_pieced_value): Likewise.
3795 * hppa-tdep.c (hppa_frame_cache): Likewise.
3796 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
3797 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
3798 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3799 (i386_linux_rt_sigtramp_start): Likewise.
3800 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3801 * i386-tdep.c (i386_register_to_value): Likewise.
3802 * i387-tdep.c (i387_register_to_value): Likewise.
3803 * ia64-tdep.c (ia64_register_to_value): Likewise.
3804 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
3805 (m32r_linux_rt_sigtramp_start): Likewise.
3806 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
3807 * m68k-tdep.c (m68k_register_to_value): Likewise.
3808 * mips-tdep.c (mips_register_to_value)
3809 (mips_value_to_register): Likewise.
3810 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
3811 (ppcfbsd_sigtramp_frame_cache): Likewise.
3812 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
3813 (ppcobsd_sigtramp_frame_cache): Likewise.
3814 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
3815 (rs6000_register_to_value): Likewise.
3816 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3817 * tramp-frame.c (tramp_frame_start): Likewise.
3818 * valops.c (value_assign): Likewise.
3819
ccbe4c82
LM
38202021-01-19 Luis Machado <luis.machado@linaro.org>
3821
3822 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
3823 array_view.
3824 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
3825 instead of buffer and size.
3826 (trad_frame_set_reg_value_bytes): Likewise.
3827 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
3828 (trad_frame_set_value_bytes): Likewise.
3829
0e7620dc
MF
38302021-01-18 Mike Frysinger <vapier@gentoo.org>
3831
3832 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
3833
6a9ad81c
AB
38342021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
3835
3836 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
3837 (riscv_fbsd_gregset): Use riscv_supply_regset.
3838 (riscv_fbsd_fpregset): Likewise.
3839 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
3840 (riscv_linux_fregset): Likewise.
3841 * riscv-tdep.c (riscv_supply_regset): Define new function.
3842 * riscv-tdep.h (riscv_supply_regset): Declare new function.
3843
d3d7d1ba
TV
38442021-01-18 Tom de Vries <tdevries@suse.de>
3845
3846 PR tdep/27172
3847 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
3848 New macro.
3849 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
3850 for SEGV_BNDERR.
3851
aa2838cc
SM
38522021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3853
3854 * remote.c (class remote_target) <remote_hostio_send_command,
3855 remote_hostio_parse_result>: Constify parameter.
3856 (remote_hostio_parse_result): Likewise.
3857 (remote_target::remote_hostio_send_command): Adjust.
3858 (remote_target::remote_hostio_pread_vFile): Adjust.
3859 (remote_target::fileio_readlink): Adjust.
3860 (remote_target::fileio_fstat): Adjust.
3861
b5c8f22d
SM
38622021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3863
3864 * remote.c (remote_target::start_remote): Move wait_status to
3865 narrower scope.
3866
e3b2741b
SM
38672021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3868
3869 * remote.c (class remote_target):
3870 <add_current_inferior_and_thread>: Constify parameter.
3871 (stop_reply_extract_thread): Likewise.
3872 (remote_target::get_current_thread): Likewise.
3873 (remote_target::add_current_inferior_and_thread): Likewise.
3874
cecb1912
SM
38752021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3876
3877 * remote.c (class remote_target)
3878 <remote_unpack_thread_info_response,
3879 parse_threadlist_response>: Constify parameter and/or return
3880 value and or local variable.
3881 (stub_unpack_int): Likewise.
3882 (unpack_nibble): Likewise.
3883 (unpack_byte): Likewise.
3884 (unpack_int): Likewise.
3885 (unpack_string): Likewise.
3886 (unpack_threadid): Likewise.
3887 (remote_target::remote_unpack_thread_info_response): Likewise.
3888 (remote_target::parse_threadlist_response): Likewise.
3889
5a11fff0
AB
38902021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
3891
3892 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
3893
17e89137
LS
38942021-01-14 Lancelot Six <lsix@lancelotsix.com>
3895
3896 * MAINTAINERS (Write After Approval): Add myself.
3897
58eadc4b
BE
38982021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3899
3900 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
3901 because is_trivially_default_constructible was first implemented with
3902 gcc-5.
3903
5fae2a2c
TV
39042021-01-14 Tom de Vries <tdevries@suse.de>
3905
3906 PR breakpoints/27151
3907 * objfiles.h (in_plt_section): Handle .plt.sec.
3908
8f66807b
AB
39092021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3910
3911 PR gdb/26819
3912 * remote.c
3913 (remote_target::select_thread_for_ambiguous_stop_reply): New
3914 member function.
3915 (remote_target::process_stop_reply): Call
3916 select_thread_for_ambiguous_stop_reply.
3917
bd497355
SM
39182021-01-13 Simon Marchi <simon.marchi@efficios.com>
3919
3920 * record-btrace.c (class record_btrace_target): Remove.
3921 (record_btrace_target::commit_resume): Remove.
3922 * record-full.c (class record_full_target): Remove.
3923 (record_full_target::commit_resume): Remove.
3924
c9d22089
SM
39252021-01-13 Simon Marchi <simon.marchi@efficios.com>
3926
3927 * remote.c (enum class resume_state): New.
3928 (struct resumed_pending_vcont_info): New.
3929 (struct remote_thread_info) <resume_state, set_not_resumed,
3930 set_resumed_pending_vcont, resumed_pending_vcont_info,
3931 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
3932 New.
3933 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
3934 (remote_target::remote_add_thread): Adjust.
3935 (remote_target::process_initial_stop_replies): Adjust.
3936 (remote_target::resume): Adjust.
3937 (remote_target::commit_resume): Rely on state in
3938 remote_thread_info and not on tp->executing.
3939 (remote_target::process_stop_reply): Adjust.
3940
d8d1feb4
SM
39412021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3942
3943 * arc-tdep.h (arc_debug_printf): New.
3944 * arc-tdep.c: Use arc_debug_printf.
3945 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
3946 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
3947 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
3948
fb0f5031
SM
39492021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3950
3951 * arc-tdep.h (arc_debug): Change type to bool.
3952 * arc-tdep.c (arc_debug): Change type to bool.
3953 (arc_analyze_prologue): Adjust.
3954 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
3955 * arc-linux-nat.c (ps_get_thread_area): Adjust.
3956
5bf7e91b
SM
39572021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3958
3959 * auto-load.c (auto_load_objfile_script_1): Use bool.
3960 (execute_script_contents): Use bool.
3961
db972fce
SM
39622021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3963
3964 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
3965 comment here.
3966 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
3967 comment to header.
3968 * extension-priv.h (struct extension_language_script_ops)
3969 <auto_load_enabled>: Return bool.
3970 * extension.h (ext_lang_auto_load_enabled): Return bool, move
3971 comment here.
3972 * extension.c (ext_lang_auto_load_enabled): Return bool, move
3973 comment to header.
3974 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
3975 move comment here.
3976 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
3977 move comment to header.
3978 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
3979 move comment here.
3980 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
3981 move comment to header.
3982
5e12f48f
SM
39832021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3984
3985 * auto-load.h (file_is_auto_load_safe): Change return type to
3986 bool, move comment here.
3987 * auto-load.c (file_is_auto_load_safe): Change return type and
3988 advice_printed to bool. Move comment to header.
3989
54ca9002
SM
39902021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3991
3992 * jit.c (jit_debug_printf): New, use throughout file.
3993
24a7f1b5
SM
39942021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3995
3996 * infrun.c (normal_stop): Fix indentation.
3997
fe7a351a
SM
39982021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3999
4000 * top.h (readnow_symbol_files, readnever_symbol_files): Move
4001 declarations to ...
4002 * symfile.h: ... here.
4003 * symfile.c: Update doc.
4004
16e9019e
SM
40052021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4006
4007 * target.h (baud_rate, serial_parity): Move declarations...
4008 * serial.h: ... here.
4009 * main.c: Include serial.h.
4010 * serial.c (baud_rate, serial_parity): Update doc.
4011
b2f2ae0d
SM
40122021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4013
4014 * top.c (pre_init_ui_hook): Remove.
4015
5291fe3c
SP
40162021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4017
4018 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
4019 (aarch64_vnv_type): Add "bf" type in h field of v registers.
4020 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
4021 * features/aarch64-fpu.xml: Add bfloat16 type.
4022
ce38f5ed
AB
40232021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
4024
4025 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
4026
7c654b71
AB
40272021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
4028
4029 * f-exp.y (dot_ops): Rename to...
4030 (fortran_operators): ...this. Add a header comment. Add symbol
4031 based operators.
4032 (yylex): Update to use fortran_operators not dot_ops. Remove
4033 special handling for '**', this is now included in
4034 fortran_operators.
4035
c6185dce
SM
40362021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4037
4038 * arch/aarch64-insn.h (aarch64_debug_printf): New.
4039 * arch/aarch64-insn.c: Use aarch64_debug_printf.
4040 * aarch64-tdep.c: Use aarch64_debug_printf.
4041
eef401dc
SM
40422021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4043
4044 * solib-aix.c (solib_aix_debug_printf): New, use throughout
4045 file.
4046
062eaacb
SM
40472021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4048
4049 * jit.c (jit_debug): Change type to bool.
4050 (_initialize_jit): Adjust.
4051
54585eee
TT
40522021-01-09 Tom Tromey <tom@tromey.com>
4053
4054 PR compile/23672
4055 * compile/compile.c (compile_to_object): Avoid crash when
4056 osabi_triplet_regexp returns NULL.
4057
bc167b6b
TT
40582021-01-09 Tom Tromey <tom@tromey.com>
4059
4060 * tracepoint.h (class collection_list) <append_exp>: Take a
4061 std::string.
4062 * tracepoint.c (collection_list::append_exp): Take a std::string.
4063 (encode_actions_1): Update.
4064
8fc48b79
TT
40652021-01-08 Tom Tromey <tromey@adacore.com>
4066
4067 * parse.c (parse_expression): Add void_context_p parameter. Use
4068 parse_exp_in_context.
4069 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
4070 parse_expression.
4071 (print_command, call_command): Update.
4072 * expression.h (parse_expression): Add void_context_p parameter.
4073
3c8c6de2
AB
40742021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
4075
4076 * value.c (set_value_component_location): Adjust the VALUE_LVAL
4077 for internalvar components that have a dynamic location.
4078
1940319c
TV
40792021-01-08 Tom de Vries <tdevries@suse.de>
4080
4081 PR gdb/26881
4082 * breakpoint.c (create_exception_master_breakpoint_probe)
4083 (create_exception_master_breakpoint_hook): Factor out
4084 of ...
4085 (create_exception_master_breakpoint): ... here. Only try to install
4086 the master exception breakpoint in objfile.debug using the
4087 _Unwind_DebugHook method, if the install using probes in objfile
4088 failed.
4089
e3436813
AB
40902021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
4091
4092 * f-lang.c (fortran_value_subarray): Call value_from_component.
4093
e904f56d
MF
40942021-01-07 Mike Frysinger <vapier@gentoo.org>
4095
4096 * remote-sim.c: Include memory-map.h.
4097 (gdbsim_target): Define memory_map override.
4098 (gdbsim_target::memory_map): Define.
4099
959d6a67
TT
41002021-01-07 Tom Tromey <tromey@adacore.com>
4101
4102 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
4103
d4813f10
TT
41042021-01-07 Tom Tromey <tromey@adacore.com>
4105
4106 * ada-lang.c (add_component_interval): Start loop using vector's
4107 updated size.
4108
b49180ac
TT
41092021-01-06 Tom Tromey <tromey@adacore.com>
4110
4111 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
4112 Do not cast result.
4113 * valarith.c (fixed_point_binop): Handle multiplication
4114 and division specially.
4115 * valops.c (value_to_gdb_mpq): New function.
4116 (value_cast_to_fixed_point): Use it.
4117
55195361
HD
41182021-01-05 Hannes Domani <ssbssa@yahoo.de>
4119
4120 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
4121 Call wnoutrefresh instead of tui_win_info::refresh_window.
4122
1b6d4bb2
HD
41232021-01-05 Hannes Domani <ssbssa@yahoo.de>
4124
4125 * tui/tui-source.c (tui_source_window::show_line_number):
4126 Redraw second space after line number.
4127
b5ff370e
HD
41282021-01-05 Hannes Domani <ssbssa@yahoo.de>
4129
4130 PR tui/26927
4131 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
4132 Fix source pad size in prefresh.
4133 (tui_source_window_base::show_source_content): Grow source pad
4134 if necessary.
4135
c68ea49f
MF
41362021-01-04 Mike Frysinger <vapier@gentoo.org>
4137
4138 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
4139 (bfin_frame_align): Use align_down.
4140
e4ad960a
TV
41412021-01-04 Tom de Vries <tdevries@suse.de>
4142
4143 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
4144 terminators that do not terminate anything.
4145
3ec3145c
SM
41462021-01-04 Simon Marchi <simon.marchi@efficios.com>
4147
4148 * debug.c (debug_print_depth): New.
4149 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
4150 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
4151 * infrun.c (start_step_over): Use
4152 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
4153 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
4154 INFRUN_SCOPED_DEBUG_START_END.
4155 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
4156
e71daf80
SM
41572021-01-04 Simon Marchi <simon.marchi@efficios.com>
4158
4159 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
4160
335709bc
SM
41612021-01-04 Simon Marchi <simon.marchi@efficios.com>
4162
4163 * utils.c (vfprintf_unfiltered): Print timestamp only when
4164 previous debug output ended with a newline.
4165
098caef4
LM
41662021-01-04 Luis Machado <luis.machado@linaro.org>
4167
4168 Update all users of trad_frame_saved_reg to use the new member
4169 functions.
4170
4171 Remote all struct keywords from declarations of trad_frame_saved_reg
4172 types, except on forward declarations.
4173
4174 * aarch64-tdep.c: Update.
4175 * alpha-mdebug-tdep.c: Update.
4176 * alpha-tdep.c: Update.
4177 * arc-tdep.c: Update.
4178 * arm-tdep.c: Update.
4179 * avr-tdep.c: Update.
4180 * cris-tdep.c: Update.
4181 * csky-tdep.c: Update.
4182 * frv-tdep.c: Update.
4183 * hppa-linux-tdep.c: Update.
4184 * hppa-tdep.c: Update.
4185 * hppa-tdep.h: Update.
4186 * lm32-tdep.c: Update.
4187 * m32r-linux-tdep.c: Update.
4188 * m32r-tdep.c: Update.
4189 * m68hc11-tdep.c: Update.
4190 * mips-tdep.c: Update.
4191 * moxie-tdep.c: Update.
4192 * riscv-tdep.c: Update.
4193 * rs6000-tdep.c: Update.
4194 * s390-linux-tdep.c: Update.
4195 * s390-tdep.c: Update.
4196 * score-tdep.c: Update.
4197 * sparc-netbsd-tdep.c: Update.
4198 * sparc-sol2-tdep.c: Update.
4199 * sparc64-fbsd-tdep.c: Update.
4200 * sparc64-netbsd-tdep.c: Update.
4201 * sparc64-obsd-tdep.c: Update.
4202 * sparc64-sol2-tdep.c: Update.
4203 * tilegx-tdep.c: Update.
4204 * v850-tdep.c: Update.
4205 * vax-tdep.c: Update.
4206
4207 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
4208 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
4209
4210 * trad-frame.c: Update.
4211 Remove TF_REG_* enum.
4212 (trad_frame_alloc_saved_regs): Add a static assertion to check for
4213 a trivially-constructible struct.
4214 (trad_frame_reset_saved_regs): Adjust to use member function.
4215 (trad_frame_value_p): Likewise.
4216 (trad_frame_addr_p): Likewise.
4217 (trad_frame_realreg_p): Likewise.
4218 (trad_frame_value_bytes_p): Likewise.
4219 (trad_frame_set_value): Likewise.
4220 (trad_frame_set_realreg): Likewise.
4221 (trad_frame_set_addr): Likewise.
4222 (trad_frame_set_unknown): Likewise.
4223 (trad_frame_set_value_bytes): Likewise.
4224 (trad_frame_get_prev_register): Likewise.
4225 * trad-frame.h: Update.
4226 (trad_frame_saved_reg_kind): New enum.
4227 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
4228 <m_kind, m_reg>: New member fields.
4229 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
4230 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
4231 <is_addr, is_unknown, is_value_bytes>: New member functions.
4232
9898e882
SM
42332021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
4234
4235 * target-float.c: Fix typos.
4236
b66b4e65
HD
42372021-01-02 Hannes Domani <ssbssa@yahoo.de>
4238
4239 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
4240
b5b5650a
JB
42412021-01-01 Joel Brobecker <brobecker@adacore.com>
4242
4243 * gdbarch.sh: Update copyright year range.
4244
3666a048
JB
42452021-01-01 Joel Brobecker <brobecker@adacore.com>
4246
4247 Update copyright year range in copyright header of all GDB files.
4248
ff7e39b6
JB
42492021-01-01 Joel Brobecker <brobecker@adacore.com>
4250
4251 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
4252 to the list of directories to update.
4253
2b47c078
JB
42542021-01-01 Joel Brobecker <brobecker@adacore.com>
4255
4256 * top.c (print_gdb_version): Update copyright year.
4257
476923f1 42582021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 4259
476923f1 4260 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 4261
476923f1 4262For older changes see ChangeLog-2020.
c906108c
SS
4263\f
4264Local Variables:
4265mode: change-log
4266left-margin: 8
4267fill-column: 74
4268version-control: never
57da7796 4269coding: utf-8
c906108c 4270End: