]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Add partial_symtabs parameter to psymtab construction functions
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7b249e47
TT
12021-03-20 Tom Tromey <tom@tromey.com>
2
3 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
4 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
5 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
6 parameter.
7 (add_psymbol_to_bcache): Remove.
8 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
9 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
10 Likewise.
11 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
12 <add_psymbol>: Likewise.
13 (standard_psymtab, legacy_psymtab): Likewise.
14 * mdebugread.c (parse_partial_symbols): Update.
15 (handle_psymbol_enumerators): Add partial_symtabs parameter.
16 (handle_psymbol_enumerators): Update.
17 (new_psymtab): Add partial_symtabs parameter.
18 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
19 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
20 parameter.
21 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
22 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
23 Update.
24 * dbxread.c (read_dbx_symtab): Update.
25 (start_psymtab): Add partial_symtabs parameter.
26 (dbx_end_psymtab): Update.
27 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
28 (ctf_psymtab): Add partial_symtabs parameter.
29 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
30 Update.
31 (scan_partial_symbols): Add partial_symtabs parameter.
32 (scan_partial_symbols, elfctf_build_psymtabs)
33 (ctf_psymtab_add_enums): Update.
34
d1eef86d
TT
352021-03-20 Tom Tromey <tom@tromey.com>
36
37 * symfile.c (read_symbols): Use objfile method.
38 * symfile-debug.c (objfile::require_partial_symbols): New method.
39 * psymtab.h (require_partial_symbols): Don't declare.
40 * psymtab.c (require_partial_symbols): Use objfile method. Now
41 static.
42 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
43 (psymbol_functions::lookup_symbol)
44 (psymbol_functions::lookup_global_symbol_language)
45 (psymbol_functions::find_last_source_symtab)
46 (psymbol_functions::forget_cached_source_info)
47 (psymbol_functions::print_stats)
48 (psymbol_functions::expand_symtabs_for_function)
49 (psymbol_functions::expand_all_symtabs)
50 (psymbol_functions::expand_symtabs_with_fullname)
51 (psymbol_functions::map_symbol_filenames)
52 (psymbol_functions::map_matching_symbols)
53 (psymbol_functions::expand_symtabs_matching)
54 (psymbol_functions::find_compunit_symtab_by_address)
55 (maintenance_print_psymbols, maintenance_info_psymtabs)
56 (maintenance_check_psymtabs): Update.
57 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
58 new method.
59
eb00e468
TT
602021-03-20 Tom Tromey <tom@tromey.com>
61
62 * xcoffread.c (xcoff_sym_fns): Update.
63 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
64 * symfile-debug.c (objfile::has_partial_symbols): Use
65 can_lazily_read_symbols.
66 (debug_sym_read_psymbols): Remove.
67 (debug_sym_fns, install_symfile_debug_logging): Update.
68 * quick-symbol.h (struct quick_symbol_functions)
69 <can_lazily_read_symbols, read_partial_symbols>: New methods.
70 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
71 * mipsread.c (ecoff_sym_fns): Update.
72 * machoread.c (macho_sym_fns): Update.
73 * elfread.c (struct lazy_dwarf_reader): New.
74 (elf_symfile_read): Update.
75 (read_psyms): Now a method of lazy_dwarf_reader.
76 (elf_sym_fns): Update.
77 (elf_sym_fns_lazy_psyms): Remove.
78 * dbxread.c (aout_sym_fns): Update.
79 * coffread.c (coff_sym_fns): Update.
80
b29b98cf
TT
812021-03-20 Tom Tromey <tom@tromey.com>
82
83 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
84 (reread_symbols): Move reset_psymtabs call later.
85 * objfiles.c (objfile::objfile): Don't initialize
86 partial_symtabs.
87
17d66340
TT
882021-03-20 Tom Tromey <tom@tromey.com>
89
90 * dwarf2/read.c (dwarf2_build_psymtabs): Call
91 set_partial_symtabs.
92 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
93 * psymtab.h (make_psymbol_functions): Add partial_symtabs
94 parameter.
95 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
96 parameter.
97 (psymbol_functions::find_pc_sect_compunit_symtab)
98 (psymbol_functions::print_stats, psymbol_functions::dump)
99 (psymbol_functions::has_symbols): Update.
100 (make_psymbol_functions, dump_psymtab_addrmap): Add
101 partial_symtabs parameter.
102 (maintenance_print_psymbols): Update.
103 (psymbol_functions::expand_symtabs_matching): Update.
104 * psympriv.h (struct psymbol_functions): Add constructor.
105 <m_partial_symtabs>: New member.
106 <set_partial_symtabs>: New method.
107
84685904
TT
1082021-03-20 Tom Tromey <tom@tromey.com>
109
110 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
111 parameter.
112 (process_psymtab_comp_unit_reader)
113 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
114 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
115 Reference psymtabs via per_bfd.
116
79cc99f6
TT
1172021-03-20 Tom Tromey <tom@tromey.com>
118
119 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
120 Remove.
121 (add_address_entry): Remove objfile parameter.
122 (add_address_entry_worker): Update.
123 (write_address_map): Replace objfile parameter with per_bfd.
124 (write_gdbindex, write_psymtabs_to_index): Update.
125
4829711b
TT
1262021-03-20 Tom Tromey <tom@tromey.com>
127
128 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
129 print_bcache parameter.
130 * symfile-debug.c (objfile::print_stats): Add print_bcache
131 parameter.
132 * quick-symbol.h (struct quick_symbol_functions)
133 <print_stats>: Add print_bcache parameter.
134 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
135 code to psymtab.c.
136 (print_objfile_statistics): Move psymtab code to psymtab.c.
137 * psymtab.c (count_psyms): Move from symmisc.c.
138 (psymbol_functions::print_stats): Print partial symbol and bcache
139 statistics. Add print_bcache parameter.
140 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
141 (struct objfile) <print_stats>: Add print_bcache parameter.
142 * maint.c (maintenance_print_statistics): Update.
143
efd7398e
TT
1442021-03-20 Tom Tromey <tom@tromey.com>
145
146 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
147 member.
148 * dwarf2/read.c (create_addrmap_from_index)
149 (create_addrmap_from_aranges): Set per_bfd addrmap.
150 (dwarf2_read_gdb_index): Don't set partial_symtabs.
151 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
152 per_bfd addrmap.
153 (dwarf2_read_debug_names): Don't set partial_symtabs.
154 (dwarf2_initialize_objfile): Likewise.
155
51962708
TT
1562021-03-20 Tom Tromey <tom@tromey.com>
157
158 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
159 earlier.
160
484b1090
TT
1612021-03-20 Tom Tromey <tom@tromey.com>
162
163 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
164 (~psymtab_discarder, keep): Update.
165 <m_objfile>: Remove.
166 <m_partial_symtabs>: New member.
167 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
168
7e9c0476
TT
1692021-03-20 Tom Tromey <tom@tromey.com>
170
171 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
172 (xcoff_end_psymtab): Update.
173 (scan_xcoff_symtab): Add partial_symtabs parameter.
174 (xcoff_initial_scan): Update.
175 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
176 * mdebugread.c (mdebug_build_psymtabs): Update.
177 (parse_partial_symbols): Add partial_symtabs parameter.
178 * dbxread.c (dbx_symfile_read): Update.
179 (read_dbx_symtab): Add partial_symtabs parameter.
180 (read_dbx_symtab): Update.
181 (dbx_end_psymtab): Add partial_symtabs parameter.
182
75336a5a
TT
1832021-03-20 Tom Tromey <tom@tromey.com>
184
185 * quick-symbol.h (struct quick_symbol_functions)
186 <relocated>: New method.
187 * psymtab.h (struct psymbol_functions) <relocated>: New
188 method.
189 <fill_psymbol_map>: Declare method.
190 <m_psymbol_map>: New member.
191 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
192 (psymbol_functions::find_compunit_symtab_by_address): Update.
193 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
194 (struct objfile) <psymbol_map>: Remove.
195 * objfiles.c (objfile_relocate1): Update.
196
39298a5d
TT
1972021-03-20 Tom Tromey <tom@tromey.com>
198
199 * psympriv.h (struct psymbol_functions): New.
200 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
201 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
202 (objfile::lookup_global_symbol_language): Update.
203 * quick-symbol.h (struct quick_symbol_functions): Convert function
204 pointers to methods. Add virtual destructor.
205 (quick_symbol_functions_up): New typedef.
206 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
207 (dwarf2_debug_names_functions): Don't declare.
208 (make_psymbol_functions): Declare.
209 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
210 (psymbol_functions::find_pc_sect_compunit_symtab)
211 (psymbol_functions::lookup_symbol)
212 (psymbol_functions::lookup_global_symbol_language)
213 (psymbol_functions::find_last_source_symtab)
214 (psymbol_functions::forget_cached_source_info)
215 (psymbol_functions::print_stats, psymbol_functions::dump)
216 (psymbol_functions::expand_symtabs_for_function)
217 (psymbol_functions::expand_all_symtabs)
218 (psymbol_functions::expand_symtabs_with_fullname)
219 (psymbol_functions::map_symbol_filenames)
220 (psymbol_functions::map_matching_symbols)
221 (psymbol_functions::expand_symtabs_matching)
222 (psymbol_functions::has_symbols)
223 (psymbol_functions::find_compunit_symtab_by_address): Rename.
224 (psym_functions): Remove.
225 (make_psymbol_functions): New function.
226 * objfiles.h (struct objfile) <qf>: Change type.
227 * elfread.c (elf_symfile_read): Update.
228 * dwarf2/read.c (struct dwarf2_base_index_functions)
229 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
230 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
231 (dwarf2_base_index_functions::find_last_source_symtab)
232 (dwarf2_base_index_functions::forget_cached_source_info)
233 (dwarf2_base_index_functions::map_symtabs_matching_filename)
234 (dwarf2_gdb_index::lookup_symbol)
235 (dwarf2_base_index_functions::print_stats)
236 (dwarf2_gdb_index::dump)
237 (dwarf2_gdb_index::expand_symtabs_for_function)
238 (dwarf2_base_index_functions::expand_all_symtabs)
239 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
240 Rename.
241 (dwarf2_gdb_index::map_matching_symbols): New method.
242 (dwarf2_gdb_index::expand_symtabs_matching): New method.
243 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
244 (dwarf2_base_index_functions::map_symbol_filenames)
245 (dwarf2_base_index_functions::has_symbols): Rename.
246 (dwarf2_gdb_index_functions): Remove.
247 (dwarf2_debug_names_index::lookup_symbol)
248 (dwarf2_debug_names_index::dump)
249 (dwarf2_debug_names_index::expand_symtabs_for_function)
250 (dwarf2_debug_names_index::map_matching_symbols)
251 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
252 (dwarf2_debug_names_functions): Remove.
253 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
254 Declare.
255
5c3f1e5b
TT
2562021-03-20 Tom Tromey <tom@tromey.com>
257
258 * psymtab.c (require_partial_symbols): Check that 'sf' is not
259 null.
260 * xcoffread.c (xcoff_sym_fns): Update.
261 * symfile.h (struct sym_fns) <qf>: Remove.
262 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
263 * symfile-debug.c (objfile::has_partial_symbols)
264 (objfile::find_last_source_symtab)
265 (objfile::forget_cached_source_info)
266 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
267 (objfile::print_stats, objfile::dump)
268 (objfile::expand_symtabs_for_function)
269 (objfile::expand_all_symtabs)
270 (objfile::expand_symtabs_with_fullname)
271 (objfile::map_matching_symbols)
272 (objfile::expand_symtabs_matching)
273 (objfile::find_pc_sect_compunit_symtab)
274 (objfile::map_symbol_filenames)
275 (objfile::find_compunit_symtab_by_address)
276 (objfile::lookup_global_symbol_language, debug_sym_fns)
277 (install_symfile_debug_logging): Update.
278 * objfiles.h (struct objfile) <qf>: New member.
279 * mipsread.c (ecoff_sym_fns): Update.
280 * machoread.c (macho_sym_fns): Update.
281 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
282 Don't declare.
283 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
284 * dbxread.c (aout_sym_fns): Update.
285 * coffread.c (coff_sym_fns): Update.
286
9b99dcc8
TT
2872021-03-20 Tom Tromey <tom@tromey.com>
288
289 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
290 (expand_symtabs_file_matcher_ftype)
291 (expand_symtabs_symbol_matcher_ftype)
292 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
293 Move to quick-symbol.h.
294 * quick-symbol.h: New file.
295
4d080b46
TT
2962021-03-20 Tom Tromey <tom@tromey.com>
297
298 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
299 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
300 (basic_lookup_transparent_type_quick)
301 (find_pc_sect_compunit_symtab, find_symbol_at_address)
302 (find_line_symtab, global_symbol_searcher::expand_symtabs):
303 Update.
304 * symmisc.c (print_objfile_statistics, dump_objfile)
305 (maintenance_expand_symtabs): Update.
306 * symfile.c (symbol_file_add_with_addrs)
307 (expand_symtabs_matching, map_symbol_filenames): Update.
308 * symfile-debug.c (objfile::has_partial_symbols)
309 (objfile::find_last_source_symtab)
310 (objfile::forget_cached_source_info)
311 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
312 (objfile::print_stats, objfile::dump)
313 (objfile::expand_symtabs_for_function)
314 (objfile::expand_all_symtabs)
315 (objfile::expand_symtabs_with_fullname)
316 (objfile::map_matching_symbols)
317 (objfile::expand_symtabs_matching)
318 (objfile::find_pc_sect_compunit_symtab)
319 (objfile::map_symbol_filenames)
320 (objfile::find_compunit_symtab_by_address)
321 (objfile::lookup_global_symbol_language): New methods.
322 (debug_sym_quick_functions): Remove.
323 (debug_sym_fns, install_symfile_debug_logging): Update.
324 * source.c (forget_cached_source_info_for_objfile)
325 (select_source_symtab): Update.
326 * objfiles.h (struct objfile): Add methods corresponding to
327 quick_symbol_functions.
328 * objfiles.c (objfile::has_partial_symbols): Move to
329 symfile-debug.c.
330 * linespec.c (iterate_over_all_matching_symtabs): Update.
331 * cp-support.c (add_symbol_overload_list_qualified): Update.
332 * ada-lang.c (add_nonlocal_symbols): Update.
333
fae2120b
TT
3342021-03-20 Tom Tromey <tom@tromey.com>
335
336 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
337 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
338 bool.
339 * symfile-debug.c (debug_qf_has_symbols): Return bool.
340 * psymtab.c (psym_has_symbols): Return bool.
341 * objfiles.c (objfile::has_partial_symbols): Return bool.
342 * dwarf2/read.c (dw2_has_symbols): Return bool.
343
a8ad4f3c
TT
3442021-03-20 Tom Tromey <tom@tromey.com>
345
346 * symfile.c (read_symbols): Update.
347 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
348 (objfile_has_partial_symbols): Don't declare.
349 * objfiles.c (objfile::has_partial_symbols): Rename from
350 objfile_has_partial_symbols.
351 (objfile_has_symbols, have_partial_symbols): Update.
352 * elfread.c (elf_symfile_read): Update.
353 * dwarf2/read.c (dwarf2_has_info): Update.
354 * coffread.c (coff_symfile_read): Update.
355
70182375
TT
3562021-03-20 Tom Tromey <tom@tromey.com>
357
358 * coffread.c: Include dwarf2/public.h.
359 * dwarf2/frame.c: Include dwarf2/public.h.
360 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
361 * dwarf2/public.h: New file.
362 * dwarf2/read.c: Include dwarf2/public.h.
363 * elfread.c: Include dwarf2/public.h.
364 * machoread.c: Include dwarf2/public.h.
365 * symfile.h (dwarf2_has_info, enum dw_index_kind)
366 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
367 (dwarf2_build_frame_info): Move to dwarf2/public.h.
368 * xcoffread.c: Include dwarf2/public.h.
369
18038e63
TT
3702021-03-20 Tom Tromey <tom@tromey.com>
371
372 * symfile.h (enum dwarf2_section_enum)
373 (dwarf2_get_section_info): Move to dwarf2/read.h.
374 * dwarf2/read.h (enum dwarf2_section_enum)
375 (dwarf2_get_section_info): Move from symfile.h.
376
219f56b4
PA
3772021-03-19 Pedro Alves <pedro@palves.net>
378
379 * thread.c (any_thread_of_inferior): Check if there's a selected
380 thread before calling inferior_thread().
381
15310fd4
TT
3822021-03-18 Tom Tromey <tromey@adacore.com>
383
384 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
385 get_DW_UT_name.
386 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
387 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
388
763b8efd
AB
3892021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
390
391 * python/py-param.c (get_set_value): Update header comment.
392
f058c521
SM
3932021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
394
395 * infrun.c (check_multi_target_resumption): Remove argument to
396 all_non_exited_inferiors.
397
383228bc
CB
3982021-03-16 Christian Biesinger <cbiesinger@google.com>
399
400 * windows-nat.c (windows_init_thread_list): Add message to
401 debug log.
402
7807d76a
AB
4032021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
404
405 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
406 well as PyLong_Check for Python 2.
407
675da9a5
TT
4082021-03-15 Tom Tromey <tromey@adacore.com>
409
410 PR build/27579:
411 * rust-exp.y (maker_map): Use gdb::hash_enum.
412 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
413
4800761a
SM
4142021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
415
416 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
417 end of debug print.
418
eb5dd737
SM
4192021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
420
421 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
422 parameter, adjust caller.
423
6813ceb0
TT
4242021-03-15 Tom Tromey <tromey@adacore.com>
425
426 * ada-exp.y (simple_exp): Always push a result for unary '+'.
427
3b5c4de0
TT
4282021-03-15 Tom Tromey <tromey@adacore.com>
429
430 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
431 ada_ensure_varsize_limit.
432
c04da66c
TT
4332021-03-15 Tom Tromey <tromey@adacore.com>
434
435 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
436 fixed-point.
437 * ada-exp.y (maybe_overload): New function.
438 (ada_wrap_overload): New function.
439 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
440 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
441 (or_else_exp, xor_exp, primary): Update.
442
9863c3b5
TT
4432021-03-15 Tom Tromey <tromey@adacore.com>
444
445 PR ada/27545:
446 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
447 call for tagged type.
448
1ac74522
TT
4492021-03-15 Tom Tromey <tromey@adacore.com>
450
451 * ada-exp.y (exp1): Handle resolution of the right hand side of an
452 assignment.
453
207582c0
TT
4542021-03-15 Tom Tromey <tromey@adacore.com>
455
456 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
457 container.
458 (ada_assign_operation::evaluate): Update.
459 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
460 Change return type.
461
8d624a9d
FW
4622021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
463
464 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
465
ba6a0ef3
AB
4662021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
467
468 * python/python.c (gdbpy_source_objfile_script): Use
469 make_scoped_restore to restore gdbpy_current_objfile.
470 (gdbpy_execute_objfile_script): Likewise.
471
7c290a04
TT
4722021-03-14 Tom Tromey <tom@tromey.com>
473
474 * dwarf2/read.c (read_attribute_value): Use cu_header
475 consistently.
476
0280fdcc
TT
4772021-03-14 Tom Tromey <tom@tromey.com>
478
479 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
480 (peek_die_abbrev): Use reader.abfd.
481
a9f172c6
TT
4822021-03-14 Tom Tromey <tom@tromey.com>
483
484 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
485 m_header_read_in.
486
7c32eebb
TT
4872021-03-13 Tom Tromey <tom@tromey.com>
488
489 * dwarf2/read.c (struct partial_die_info): Update.
490 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
491 (load_partial_dies, partial_die_info::partial_die_info): Update.
492 * dwarf2/abbrev.h (lookup_abbrev): Constify.
493
27012aba
TT
4942021-03-13 Tom Tromey <tom@tromey.com>
495
496 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
497
fece451c
CB
4982021-03-12 Christian Biesinger <cbiesinger@google.com>
499
500 PR threads/27239
501 * cp-support.c: Use scoped_segv_handler_restore.
502 * event-top.c (thread_local_segv_handler): Made static.
503 (scoped_segv_handler_restore::scoped_segv_handler_restore):
504 New function.
505 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
506 function.
507 * event-top.h (class scoped_segv_handler_restore): New class.
508 (thread_local_segv_handler): Removed.
509
7056f312
TT
5102021-03-10 Tom Tromey <tromey@adacore.com>
511
512 * parser-defs.h (parser_state): Change completion to bool.
513 <parse_completion>: Likewise.
514 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
515 (ada_resolve_variable, ada_resolve_function): Update.
516 * ada-lang.c (ada_find_operator_symbol): Change
517 parse_completion to bool.
518 (ada_resolve_funcall, ada_resolve_variable)
519 (ada_resolve_function): Likewise.
520
ccdc02ed
TT
5212021-03-09 Tom Tromey <tromey@adacore.com>
522
523 * eval.c (operation::evaluate_funcall): Use function formal
524 parameter types when evaluating.
525
fbb1aace
AB
5262021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
527
528 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
529 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
530 and owner to m_owner.
531
611aa09d
FW
5322021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
533
534 * f-exp.h (eval_op_f_loc): Declare.
535 (expr::fortran_loc_operation): New typedef.
536 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
537 UNOP_INTRINSIC.
538 (f77_keywords): Add LOC keyword.
539 * f-lang.c (eval_op_f_loc): New function.
540 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
541
eef32f59
AB
5422021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
543
544 * f-exp.h (eval_op_f_array_shape): Declare.
545 (fortran_array_shape_operation): New type.
546 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
547 UNOP_INTRINSIC.
548 (f77_keywords): Add "shape" keyword.
549 * f-lang.c (fortran_array_shape): New function.
550 (eval_op_f_array_shape): New function.
551 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
552
7ba155b3
AB
5532021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
554
555 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
556 of this function.
557 (expr::fortran_array_size_1arg): New type.
558 (expr::fortran_array_size_2arg): Likewise.
559 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
560 UNOP_OR_BINOP_INTRINSIC.
561 (f77_keywords): Add "size" keyword.
562 * f-lang.c (fortran_array_size): New function.
563 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
564 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
565
e14816a8
AB
5662021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
567
568 * f-exp.h (eval_op_f_rank): Declare.
569 (expr::fortran_rank_operation): New typedef.
570 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
571 UNOP_INTRINSIC.
572 (f77_keywords): Add "rank" keyword.
573 * f-lang.c (eval_op_f_rank): New function.
574 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
575
3dd93bf8
TT
5762021-03-08 Tom Tromey <tom@tromey.com>
577
578 * printcmd.c (set_command): Remove null check.
579 * value.c (init_if_undefined_command): Remove null check.
580
9c79936b
TT
5812021-03-08 Tom Tromey <tom@tromey.com>
582
583 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
584 Update.
585 * p-exp.y (variable): Update.
586 * go-exp.y (variable): Update.
587 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
588 Remove overload for objfile.
589 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
590 parameter.
591 (check_objfile): Likewise.
592 (dump_for_expression): Likewise. Remove overload for objfile.
593 (class var_msym_value_operation): Use bound_minimal_symbol.
594 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
595 parameter.
596 (var_msym_value_operation::evaluate_for_address)
597 (var_msym_value_operation::evaluate_for_sizeof)
598 (var_msym_value_operation::evaluate_for_cast): Update.
599 * d-exp.y (PrimaryExpression): Update.
600 * c-exp.y (variable): Update.
601 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
602 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
603 Update.
604 * ada-exp.y (write_var_or_type): Update.
605
40d07d07
TT
6062021-03-08 Tom Tromey <tom@tromey.com>
607
608 * parser-defs.h (exp_uses_objfile): Return bool.
609 * parse.c (exp_uses_objfile): Return bool.
610
0b2b0b82
TT
6112021-03-08 Tom Tromey <tom@tromey.com>
612
613 * value.h (eval_skip_value): Don't declare.
614 * opencl-lang.c (eval_opencl_assign): Update.
615 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
616 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
617 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
618 * expression.h (enum noside) <EVAL_SKIP>: Remove.
619 * expop.h (typeof_operation::evaluate)
620 (decltype_operation::evaluate, unop_addr_operation::evaluate)
621 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
622 (cxx_cast_operation::evaluate): Update.
623 * eval.c (eval_skip_value): Remove.
624 (eval_op_scope, eval_op_var_entry_value)
625 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
626 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
627 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
628 (eval_op_binary, eval_op_subscript, eval_op_equal)
629 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
630 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
631 (eval_op_complement, eval_op_lognot, eval_op_ind)
632 (eval_op_memval, eval_op_preinc, eval_op_predec)
633 (eval_op_postinc, eval_op_postdec, eval_op_type)
634 (eval_binop_assign_modify, eval_op_objc_msgcall)
635 (eval_multi_subscript, logical_and_operation::evaluate)
636 (logical_or_operation::evaluate, array_operation::evaluate)
637 (operation::evaluate_for_cast)
638 (var_msym_value_operation::evaluate_for_cast)
639 (var_value_operation::evaluate_for_cast): Update.
640 * c-lang.c (c_string_operation::evaluate): Update.
641 * c-exp.h (objc_nsstring_operation::evaluate)
642 (objc_selector_operation::evaluate): Update.
643 * ada-lang.c (ada_assign_operation::evaluate)
644 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
645 (ada_atr_size): Update.
646
96db551d
TT
6472021-03-08 Tom Tromey <tom@tromey.com>
648
649 * eval.c: Merge "namespace" scopes.
650
ce284361
TT
6512021-03-08 Tom Tromey <tom@tromey.com>
652
653 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
654 <release>: Inline.
655 * parse.c (expr_builder::expr_builder, expr_builder::release):
656 Remove.
657
b9d06571
TT
6582021-03-08 Tom Tromey <tom@tromey.com>
659
660 * parse.c (expression::expression, expression::~expression):
661 Remove.
662 * expression.h (struct expression): Inline constructor. Remove
663 destructor.
664
79ab486e
TT
6652021-03-08 Tom Tromey <tom@tromey.com>
666
667 * std-operator.def (BINOP_END): Remove.
668 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
669 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
670 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
671 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
672 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
673 BINOP_END.
674
48fa6f23
TT
6752021-03-08 Tom Tromey <tom@tromey.com>
676
677 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
678
43f542e3
TT
6792021-03-08 Tom Tromey <tom@tromey.com>
680
681 * std-operator.def (OP_EXTENDED0): Remove.
682
5d9ba982
TT
6832021-03-08 Tom Tromey <tom@tromey.com>
684
685 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
686 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
687 Remove.
688
d357570d
TT
6892021-03-08 Tom Tromey <tom@tromey.com>
690
691 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
692 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
693
0922dc84
TT
6942021-03-08 Tom Tromey <tom@tromey.com>
695
696 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
697 * ada-lang.c (ada_binop_minmax): Update.
698 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
699 Use BINOP_MIN and BINOP_MAX.
700
1eaebe02
TT
7012021-03-08 Tom Tromey <tom@tromey.com>
702
703 * value.h (evaluate_subexp_with_coercion): Don't declare.
704 * parse.c (exp_descriptor_standard): Remove.
705 (expr_builder::expr_builder, expr_builder::release): Update.
706 (expression::expression): Remove size_t parameter.
707 (expression::~expression): Simplify.
708 (expression::resize): Remove.
709 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
710 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
711 (write_exp_elt_longcst, write_exp_elt_floatcst)
712 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
713 (write_exp_string_vector, write_exp_bitstring): Remove.
714 * p-lang.h (class pascal_language) <opcode_print_table,
715 op_print_tab>: Remove.
716 * p-lang.c (pascal_language::op_print_tab): Remove.
717 * opencl-lang.c (class opencl_language) <opcode_print_table>:
718 Remove.
719 * objc-lang.c (objc_op_print_tab): Remove.
720 (class objc_language) <opcode_print_table>: Remove.
721 * m2-lang.h (class m2_language) <opcode_print_table,
722 op_print_tab>: Remove.
723 * m2-lang.c (m2_language::op_print_tab): Remove.
724 * language.h (struct language_defn) <post_parser, expression_ops,
725 opcode_print_table>: Remove.
726 * language.c (language_defn::expression_ops)
727 (auto_or_unknown_language::opcode_print_table): Remove.
728 * go-lang.h (class go_language) <opcode_print_table,
729 op_print_tab>: Remove.
730 * go-lang.c (go_language::op_print_tab): Remove.
731 * f-lang.h (class f_language) <opcode_print_table>: Remove
732 <op_print_tab>: Remove.
733 * f-lang.c (f_language::op_print_tab): Remove.
734 * expression.h (union exp_element): Remove.
735 (struct expression): Remove size_t parameter from constructor.
736 <resize>: Remove.
737 <first_opcode>: Update.
738 <nelts, elts>: Remove.
739 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
740 (evaluate_subexp_standard, print_expression, op_string)
741 (dump_raw_expression): Don't declare.
742 * expprint.c (print_expression, print_subexp)
743 (print_subexp_funcall, print_subexp_standard, op_string)
744 (dump_raw_expression, dump_subexp, dump_subexp_body)
745 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
746 (dump_prefix_expression): Update.
747 * eval.c (evaluate_subexp): Remove.
748 (evaluate_expression, evaluate_type): Update.
749 (evaluate_subexpression_type): Remove.
750 (fetch_subexp_value): Remove "pc" parameter. Update.
751 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
752 (evaluate_subexp_standard, evaluate_subexp_for_address)
753 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
754 (evaluate_subexp_for_cast): Remove.
755 (parse_and_eval_type): Update.
756 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
757 * d-lang.c (d_op_print_tab): Remove.
758 (class d_language) <opcode_print_table>: Remove.
759 * c-lang.h (c_op_print_tab): Don't declare.
760 * c-lang.c (c_op_print_tab): Remove.
761 (class c_language, class cplus_language, class asm_language, class
762 minimal_language) <opcode_print_table>: Remove.
763 * breakpoint.c (update_watchpoint, watchpoint_check)
764 (watchpoint_exp_is_const, watch_command_1): Update.
765 * ax-gdb.h (union exp_element): Don't declare.
766 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
767 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
768 (gen_expr_binop_rest): Remove.
769 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
770 * ada-lang.c (ada_op_print_tab): Remove.
771 (class ada_language) <post_parser, opcode_print_table>: Remove.
772
f2a98603
TT
7732021-03-08 Tom Tromey <tom@tromey.com>
774
775 * go-lang.c (go_language::expression_ops): Don't declare.
776 * go-lang.h (class go_language) <expression_ops>: Remove.
777 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
778 Remove.
779 (class opencl_language) <expression_ops>: Remove.
780 * d-lang.c (class d_language) <expression_ops>: Remove.
781 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
782 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
783 (class c_language, class cplus_language, class asm_language)
784 (class minimal_language) <expression_ops>: Remove.
785
d3c54a1c
TT
7862021-03-08 Tom Tromey <tom@tromey.com>
787
788 * ada-lang.c (resolve_subexp, replace_operator_with_call)
789 (evaluate_subexp_type, assign_aggregate)
790 (aggregate_assign_positional, aggregate_assign_from_choices)
791 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
792 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
793 (ada_operator_check, ada_forward_operator_length)
794 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
795 Remove.
796 (post_parser): Update.
797 (class ada_language) <expresssion_ops>: Remove.
798
5871f0a3
TT
7992021-03-08 Tom Tromey <tom@tromey.com>
800
801 * m2-lang.h (class m2_language) <expresssion_ops,
802 exp_descriptor_modula2>: Remove.
803 * m2-lang.c (evaluate_subexp_modula2)
804 (m2_language::exp_descriptor_modula2): Remove.
805
a99be8c1
TT
8062021-03-08 Tom Tromey <tom@tromey.com>
807
808 * f-lang.h (class f_language) <expresssion_ops>: Remove.
809 <exp_descriptor_tab>: Remove.
810 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
811 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
812 (print_subexp_f, dump_subexp_body_f, operator_check_f)
813 (f_language::exp_descriptor_tab, fortran_prepare_argument):
814 Remove.
815
aa1da9ed
TT
8162021-03-08 Tom Tromey <tom@tromey.com>
817
818 * rust-lang.h (class rust_language) <expression_ops,
819 exp_descriptor_tab>: Remove.
820 * rust-lang.c (rust_evaluate_funcall): Remove.
821 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
822 EVAL_SKIP.
823 (rust_evaluate_subexp): Remove.
824 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
825 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
826 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
827
08a057e6
TT
8282021-03-08 Tom Tromey <tom@tromey.com>
829
830 * ada-exp.y: Create operations.
831 (empty_stoken): Remove.
832 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
833 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
834 (components): New global.
835 (push_component, choice_component, pop_component, pop_components):
836 New functions.
837 (associations): New global
838 (push_association, pop_association, pop_associations): New
839 functions.
840 (ada_parse): Update.
841 (write_var_from_sym, write_int): Create operations.
842 (write_exp_op_with_string): Remove.
843 (write_object_renaming, write_selectors, write_ambiguous_var)
844 (write_var_or_type, write_name_assoc): Create operations.
845 * ada-lang.h (ada_index_type): Declare.
846 * ada-lang.c (ada_index_type): No longer static.
847
d308ba78
TT
8482021-03-08 Tom Tromey <tom@tromey.com>
849
850 * f-exp.y: Create operations.
851 (f_language::parser): Update.
852
f1b8ceef
TT
8532021-03-08 Tom Tromey <tom@tromey.com>
854
855 * m2-exp.y: Create operations.
856 (m2_language::parser): Update.
857
3163898e
TT
8582021-03-08 Tom Tromey <tom@tromey.com>
859
860 * p-exp.y: Create operations.
861 (pascal_language::parser): Update.
862
9412fdcc
TT
8632021-03-08 Tom Tromey <tom@tromey.com>
864
865 * d-exp.y: Create operations.
866 (d_parse): Update.
867
bb4e0574
TT
8682021-03-08 Tom Tromey <tom@tromey.com>
869
870 * go-exp.y: Create operations.
871 (go_language::parser): Update.
872
d182f279
TT
8732021-03-08 Tom Tromey <tom@tromey.com>
874
875 * objc-lang.c (end_msglist): Create operations.
876 * c-exp.y: Change parser to create operations.
877 (write_destructor_name): Remove.
878 (c_parse): Update.
879
c1299a23
TT
8802021-03-08 Tom Tromey <tom@tromey.com>
881
882 * rust-exp.y: Create operations.
883 (rust_parser::convert_params_to_expression): Change return type.
884 (binop_maker_ftype): New typedef.
885 (maker_map): New global.
886 (rust_parser::convert_ast_to_expression): Change return type.
887 (rust_language::parser): Update.
888 (_initialize_rust_exp): Initialize maker_map.
889
4c5e7a93
TT
8902021-03-08 Tom Tromey <tom@tromey.com>
891
892 * stap-probe.c (binop_maker_ftype): New typedef.
893 (stap_maker_map): New global.
894 (stap_make_binop): New function.
895 (stap_parse_register_operand): Return operation_up.
896 (stap_parse_single_operand, stap_parse_argument_conditionally)
897 (stap_parse_argument_1): Likewise.
898 (stap_parse_argument): Create operations.
899 (stap_probe::parse_arguments): Update.
900 (_initialize_stap_probe): Initialize stap_maker_map.
901 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
902 type.
903 * i386-tdep.h (i386_stap_parse_special_token): Change return
904 type.
905 * i386-tdep.c (i386_stap_parse_special_token_triplet)
906 (i386_stap_parse_special_token_three_arg_disp)
907 (i386_stap_parse_special_token): Change return type.
908 * gdbarch.sh (stap_parse_special_token): Change return type.
909 * gdbarch.c: Rebuild.
910 * gdbarch.h: Rebuild.
911 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
912 type.
913 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
914 return type.
915
482ddd69
TT
9162021-03-08 Tom Tromey <tom@tromey.com>
917
918 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
919 * gdbarch.h: Rebuild.
920 * gdbarch.c: Rebuild.
921 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
922 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
923 return type.
924 (amd64_dtrace_parse_probe_argument): Update.
925
8227d9e2
TT
9262021-03-08 Tom Tromey <tom@tromey.com>
927
928 * parser-defs.h (struct parser_state) <push, push_new,
929 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
930 wrap2>: New methods.
931 <m_operations>: New member.
932 * parse.c (parser_state::push_c_string)
933 (parser_state::push_symbol, parser_state::push_dollar): New
934 methods.
935
4933522d
TT
9362021-03-08 Tom Tromey <tom@tromey.com>
937
938 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
939 New member.
940 (struct parser_state) <mark_struct_expression>: New method.
941 * parse.c (parser_state::mark_struct_expression): Update assert.
942 (parser_state::mark_struct_expression): New method.
943 (parser_state::mark_completion_tag): Update assert.
944 (parse_expression_for_completion): Handle expout_last_op.
945
413403fc
TT
9462021-03-08 Tom Tromey <tom@tromey.com>
947
948 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
949 now in superclass.
950 * value.h (fetch_subexp_value): Add "op" parameter.
951 * value.c (init_if_undefined_command): Update.
952 * tracepoint.c (validate_actionline, encode_actions_1): Update.
953 * stap-probe.c (stap_probe::compile_to_ax): Update.
954 * printcmd.c (set_command): Update.
955 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
956 Update.
957 * parser-defs.h (struct expr_builder) <set_operation>: New
958 method.
959 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
960 * expression.h (struct expression) <first_opcode>: Update.
961 <op>: New member.
962 * expprint.c (dump_raw_expression, dump_prefix_expression):
963 Update.
964 * expop.h (class var_value_operation) <get_symbol>: New method.
965 (class register_operation) <get_name>: New method.
966 (class equal_operation): No longer a typedef, now a subclass.
967 (class unop_memval_operation) <get_type>: New method.
968 (class assign_operation) <get_lhs>: New method.
969 (class unop_cast_operation) <get_type>: New method.
970 * eval.c (evaluate_expression, evaluate_type)
971 (evaluate_subexpression_type): Update.
972 (fetch_subexp_value): Add "op" parameter.
973 (parse_and_eval_type): Update.
974 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
975 * breakpoint.c (update_watchpoint, watchpoint_check)
976 (watchpoint_exp_is_const, watch_command_1): Update.
977 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
978 Update.
979
b0f9164c
TT
9802021-03-08 Tom Tromey <tom@tromey.com>
981
982 * ada-lang.c (ada_value_binop): Do not use op_string.
983
a88c4354
TT
9842021-03-08 Tom Tromey <tom@tromey.com>
985
986 * expprint.c (dump_for_expression): New overload.
987 * expop.h (check_objfile, dump_for_expression): Declare new
988 overloads.
989 * ada-lang.c (check_objfile): New overload.
990 (assign_component, ada_aggregate_component::uses_objfile)
991 (ada_aggregate_component::dump, ada_aggregate_component::assign)
992 (ada_aggregate_component::assign_aggregate)
993 (ada_positional_component::uses_objfile)
994 (ada_positional_component::dump, ada_positional_component::assign)
995 (ada_discrete_range_association::uses_objfile)
996 (ada_discrete_range_association::dump)
997 (ada_discrete_range_association::assign)
998 (ada_name_association::uses_objfile, ada_name_association::dump)
999 (ada_name_association::assign)
1000 (ada_choices_component::uses_objfile, ada_choices_component::dump)
1001 (ada_choices_component::assign)
1002 (ada_others_component::uses_objfile, ada_others_component::dump)
1003 (ada_others_component::assign, ada_assign_operation::evaluate):
1004 New methods.
1005 * ada-exp.h (ada_string_operation) <get_name>: New method.
1006 (class ada_assign_operation): New.
1007 (class ada_component): New.
1008 (ada_component_up): New typedef.
1009 (class ada_aggregate_operation, class ada_aggregate_component)
1010 (class ada_positional_component, class ada_others_component)
1011 (class ada_association): New.
1012 (ada_association_up): New typedef.
1013 (class ada_choices_component)
1014 (class ada_discrete_range_association)
1015 (class ada_name_association): New.
1016
d8a4ed8a
TT
10172021-03-08 Tom Tromey <tom@tromey.com>
1018
1019 * ada-lang.c (ada_var_value_operation::resolve)
1020 (ada_funcall_operation::resolve)
1021 (ada_ternop_slice_operation::resolve): New methods.
1022 * ada-exp.h (struct ada_resolvable): New.
1023 (class ada_var_value_operation): Derive from ada_resolvable.
1024 <get_block, resolve>: New methods.
1025 (class ada_funcall_operation): Derive from ada_resolvable.
1026 <resolve>: New method.
1027 (class ada_ternop_slice_operation): Derive from ada_resolvable.
1028 <resolve>: New method.
1029
efe3af2f
TT
10302021-03-08 Tom Tromey <tom@tromey.com>
1031
1032 * ada-lang.c (ada_funcall_operation::evaluate): New method.
1033 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
1034 method.
1035 (class ada_funcall_operation): New.
1036
ebc06ad8
TT
10372021-03-08 Tom Tromey <tom@tromey.com>
1038
1039 * ada-lang.c (ada_structop_operation::evaluate): New method.
1040 * ada-exp.h (class ada_structop_operation): New.
1041
e8c33fa1
TT
10422021-03-08 Tom Tromey <tom@tromey.com>
1043
1044 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
1045 * ada-exp.h (class ada_unop_ind_operation): New.
1046
065ec826
TT
10472021-03-08 Tom Tromey <tom@tromey.com>
1048
1049 * ada-lang.c (ada_binop_exp): No longer static.
1050 * ada-exp.h (ada_binop_exp_operation): New typedef.
1051
9e99f48f
TT
10522021-03-08 Tom Tromey <tom@tromey.com>
1053
1054 * ada-lang.c (ada_val_atr): No longer static.
1055 (ada_atr_val_operation::evaluate): New method.
1056 * ada-exp.h (class ada_atr_val_operation): New.
1057
7631cf6c
TT
10582021-03-08 Tom Tromey <tom@tromey.com>
1059
1060 * ada-lang.c (ada_pos_atr): No longer static.
1061 * ada-exp.h (ada_pos_operation): New typedef.
1062
7992accc
TT
10632021-03-08 Tom Tromey <tom@tromey.com>
1064
1065 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
1066 parameters.
1067 (ada_evaluate_subexp): Use it.
1068
6ad3b8bf
TT
10692021-03-08 Tom Tromey <tom@tromey.com>
1070
1071 * ada-lang.c (ada_binop_minmax): No longer static.
1072 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
1073 New typedefs.
1074
3f4a0053
TT
10752021-03-08 Tom Tromey <tom@tromey.com>
1076
1077 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
1078 New method.
1079 * ada-exp.h (class ada_var_msym_value_operation): New.
1080
99a3b1e7
TT
10812021-03-08 Tom Tromey <tom@tromey.com>
1082
1083 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1084 (ada_var_value_operation::evaluate): New methods.
1085 * ada-exp.h (class ada_var_value_operation): New.
1086
60fa02ca
TT
10872021-03-08 Tom Tromey <tom@tromey.com>
1088
1089 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
1090 * ada-exp.h (class ada_unop_atr_operation): New.
1091
82c3886e
TT
10922021-03-08 Tom Tromey <tom@tromey.com>
1093
1094 * ada-lang.c (ada_binop_in_bounds): No longer static.
1095 * ada-exp.h (class ada_binop_in_bounds_operation): New.
1096
1b1ebfab
TT
10972021-03-08 Tom Tromey <tom@tromey.com>
1098
1099 * ada-lang.c (ada_ternop_slice): No longer static.
1100 * ada-exp.h (class ada_ternop_slice_operation): New.
1101
039e4b76
TT
11022021-03-08 Tom Tromey <tom@tromey.com>
1103
1104 * ada-exp.h (ada_bitwise_operation): New template class.
1105 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
1106 (ada_bitwise_xor_operation): New typedefs.
1107
6e8fb7b7
TT
11082021-03-08 Tom Tromey <tom@tromey.com>
1109
1110 * ada-lang.c (ada_equal_binop): No longer static.
1111 * ada-exp.h (class ada_binop_equal_operation): New.
1112
d9e7db06
TT
11132021-03-08 Tom Tromey <tom@tromey.com>
1114
1115 * ada-lang.c (ada_mult_binop): No longer static.
1116 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
1117 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
1118
73796c73
TT
11192021-03-08 Tom Tromey <tom@tromey.com>
1120
1121 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
1122 * ada-exp.h (class ada_binop_addsub_operation): New.
1123
cd9a3148
TT
11242021-03-08 Tom Tromey <tom@tromey.com>
1125
1126 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1127 (ada_resolve_variable): Declare.
1128 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
1129 (ada_resolve_variable): New functions.
1130 (resolve_subexp): Update.
1131
cf12b17f
TT
11322021-03-08 Tom Tromey <tom@tromey.com>
1133
1134 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
1135 method.
1136 * c-exp.h (class opencl_ternop_cond_operation): New.
1137
944fd3b8
TT
11382021-03-08 Tom Tromey <tom@tromey.com>
1139
1140 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
1141 method.
1142 * c-exp.h (class opencl_logical_binop_operation): New.
1143
33b79214
TT
11442021-03-08 Tom Tromey <tom@tromey.com>
1145
1146 * opencl-lang.c (opencl_structop_operation::evaluate): New
1147 method.
1148 * c-exp.h (class opencl_structop_operation): New.
1149
2492ba36
TT
11502021-03-08 Tom Tromey <tom@tromey.com>
1151
1152 * opencl-lang.c (opencl_logical_not): No longer static. Change
1153 parameters.
1154 (evaluate_subexp_opencl): Update.
1155 * c-exp.h (opencl_notequal_operation): New typedef.
1156
a88c3c8d
TT
11572021-03-08 Tom Tromey <tom@tromey.com>
1158
1159 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
1160 static. Change parameters.
1161 (eval_opencl_assign): No longer static. Add "op" parameter.
1162 (evaluate_subexp_opencl): Update.
1163 * c-exp.h (opencl_binop_operation): New template class.
1164 (opencl_assign_operation, opencl_equal_operation)
1165 (opencl_notequal_operation, opencl_less_operation)
1166 (opencl_gtr_operation, opencl_geq_operation)
1167 (opencl_leq_operation): New typedefs.
1168
e9677704
TT
11692021-03-08 Tom Tromey <tom@tromey.com>
1170
1171 * opencl-lang.c (opencl_value_cast): No longer static.
1172 * c-exp.h (opencl_cast_type_operation): New typedef.
1173
f403a4e4
TT
11742021-03-08 Tom Tromey <tom@tromey.com>
1175
1176 * f-exp.h (eval_op_f_allocated): Declare.
1177 (fortran_allocated_operation): New typedef.
1178 * f-lang.c (eval_op_f_allocated): No longer static.
1179
eb4c9271
TT
11802021-03-08 Tom Tromey <tom@tromey.com>
1181
1182 * f-lang.c (eval_op_f_associated): New functions.
1183 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
1184 typedefs.
1185
58a76c72
TT
11862021-03-08 Tom Tromey <tom@tromey.com>
1187
1188 * f-lang.c (fortran_bound_1arg::evaluate)
1189 (fortran_bound_2arg::evaluate): New methods.
1190 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
1191 New.
1192
2f98abe1
TT
11932021-03-08 Tom Tromey <tom@tromey.com>
1194
1195 * expop.h (class unop_addr_operation) <get_expression>: New
1196 method.
1197 * f-lang.c (fortran_undetermined::value_subarray)
1198 (fortran_undetermined::evaluate): New methods.
1199 (fortran_prepare_argument): New overload.
1200 * f-exp.h (class fortran_range_operation)
1201 (class fortran_undetermined): New classes.
1202
638fd74a
TT
12032021-03-08 Tom Tromey <tom@tromey.com>
1204
1205 * rust-lang.c (rust_structop::evaluate_funcall): New method.
1206 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
1207 method.
1208
a00b7254
TT
12092021-03-08 Tom Tromey <tom@tromey.com>
1210
1211 * expression.h (class operation) <evaluate_funcall>: New methods.
1212 * expop.h (class scope_operation) <evaluate_funcall>: New method.
1213 (class var_value_operation) <evaluate_funcall>: New method.
1214 (class structop_base_operation) <evaluate_funcall>: New method.
1215 (class var_msym_value_operation) <evaluate_funcall>: New method.
1216 (class structop_member_base): New class.
1217 (class structop_member_operation): Derive from
1218 structop_member_base.
1219 (class structop_mptr_operation): Derive from
1220 structop_member_base.
1221 (class funcall_operation): New class.
1222 * eval.c (operation::evaluate_funcall)
1223 (var_value_operation::evaluate_funcall)
1224 (scope_operation::evaluate_funcall)
1225 (structop_member_base::evaluate_funcall)
1226 (structop_base_operation::evaluate_funcall): New methods.
1227
1c02eb30
TT
12282021-03-08 Tom Tromey <tom@tromey.com>
1229
1230 * expop.h (class array_operation): New.
1231 * eval.c (array_operation::evaluate_struct_tuple)
1232 (array_operation::evaluate): New methods.
1233
e4479080
TT
12342021-03-08 Tom Tromey <tom@tromey.com>
1235
1236 * expop.h (class adl_func_operation): New.
1237 * eval.c (adl_func_operation::evaluate): New method.
1238
95d49dfb
TT
12392021-03-08 Tom Tromey <tom@tromey.com>
1240
1241 * ada-lang.c (ada_unop_in_range): No longer static.
1242 * ada-exp.h (class ada_unop_range_operation): New.
1243
7c15d377
TT
12442021-03-08 Tom Tromey <tom@tromey.com>
1245
1246 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
1247 No longer static.
1248 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
1249 (ada_atr_size_operation, ada_abs_operation): New typedefs.
1250
5019124b
TT
12512021-03-08 Tom Tromey <tom@tromey.com>
1252
1253 * expop.h (class logical_and_operation)
1254 (class logical_or_operation): New.
1255 * eval.c (logical_and_operation::evaluate)
1256 (logical_or_operation::evaluate): New methods.
1257 * ax-gdb.c (logical_and_operation::do_generate_ax)
1258 (logical_or_operation::do_generate_ax): New methods.
1259
2bc9b40c
TT
12602021-03-08 Tom Tromey <tom@tromey.com>
1261
1262 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
1263 static.
1264 * m2-exp.h: New file.
1265
5947d337
TT
12662021-03-08 Tom Tromey <tom@tromey.com>
1267
1268 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
1269 * rust-exp.h (class rust_aggregate_operation): New.
1270
e4407a20
TT
12712021-03-08 Tom Tromey <tom@tromey.com>
1272
1273 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
1274 No longer static.
1275 * rust-exp.h (class rust_struct_anon): New.
1276 (class rust_structop): New.
1277
9db6b6dd
TT
12782021-03-08 Tom Tromey <tom@tromey.com>
1279
1280 * rust-lang.c (rust_range): No longer static.
1281 * rust-exp.h (class rust_range_operation): New.
1282
6ce1ad67
TT
12832021-03-08 Tom Tromey <tom@tromey.com>
1284
1285 * rust-lang.c (rust_subscript): No longer static.
1286 * rust-exp.h (class rust_subscript_operation): New.
1287
11dd3dce
TT
12882021-03-08 Tom Tromey <tom@tromey.com>
1289
1290 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
1291 parameter.
1292 (rust_evaluate_subexp): Update.
1293 * rust-exp.h (class rust_unop_ind_operation): New.
1294
6fab4359
TT
12952021-03-08 Tom Tromey <tom@tromey.com>
1296
1297 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
1298 longer static. Add "opcode" parameter.
1299 (rust_evaluate_subexp): Update.
1300 * rust-exp.h: New file.
1301
9dcd3e29
TT
13022021-03-08 Tom Tromey <tom@tromey.com>
1303
1304 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
1305 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
1306 (eval_op_f_kind): No longer static. Add "opcode" parameter.
1307 (evaluate_subexp_f): Update.
1308 * f-exp.h: New file.
1309
fc715eb2
TT
13102021-03-08 Tom Tromey <tom@tromey.com>
1311
1312 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
1313 * ada-exp.h (class ada_ternop_range_operation): New.
1314
cc6bd32e
TT
13152021-03-08 Tom Tromey <tom@tromey.com>
1316
1317 * ada-lang.c (ada_qual_operation::evaluate): New method.
1318 * ada-exp.h (class ada_qual_operation): New.
1319
42fecb61
TT
13202021-03-08 Tom Tromey <tom@tromey.com>
1321
1322 * ada-lang.c (ada_string_operation::evaluate): New method.
1323 * ada-exp.h (class ada_string_operation): New.
1324
03070ee9
TT
13252021-03-08 Tom Tromey <tom@tromey.com>
1326
1327 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
1328 * ada-exp.h: New file.
1329
821e72d7
TT
13302021-03-08 Tom Tromey <tom@tromey.com>
1331
1332 * expop.h (class multi_subscript_operation): New.
1333 * eval.c (multi_subscript_operation::evaluate): New method.
1334
085734dd
TT
13352021-03-08 Tom Tromey <tom@tromey.com>
1336
1337 * eval.c (objc_msgcall_operation::evaluate): New method.
1338 * c-exp.h (class objc_msgcall_operation): New.
1339
e82a5afc
TT
13402021-03-08 Tom Tromey <tom@tromey.com>
1341
1342 * expop.h (class var_value_operation): New.
1343 * eval.c (var_value_operation::evaluate)
1344 (var_value_operation::evaluate_for_address)
1345 (var_value_operation::evaluate_with_coercion)
1346 (var_value_operation::evaluate_for_sizeof)
1347 (var_value_operation::evaluate_for_cast): New methods.
1348 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
1349
d9ad79d8
TT
13502021-03-08 Tom Tromey <tom@tromey.com>
1351
1352 * expop.h (cxx_cast_ftype): New typedef.
1353 (cxx_cast_operation): New template.
1354 (dynamic_cast_operation, reinterpret_cast_operation): New
1355 typedefs.
1356
292382f4
TT
13572021-03-08 Tom Tromey <tom@tromey.com>
1358
1359 * expop.h (class unop_cast_type_operation): New.
1360 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
1361 method.
1362
165a813a
TT
13632021-03-08 Tom Tromey <tom@tromey.com>
1364
1365 * expop.h (class unop_cast_operation): New.
1366 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
1367
e5946e16
TT
13682021-03-08 Tom Tromey <tom@tromey.com>
1369
1370 * expop.h (class assign_modify_operation): New.
1371 * eval.c (eval_binop_assign_modify): No longer static.
1372 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
1373
40786782
TT
13742021-03-08 Tom Tromey <tom@tromey.com>
1375
1376 * expop.h (class assign_operation): New.
1377 * ax-gdb.c (assign_operation::do_generate_ax): New method.
1378
44b675c8
TT
13792021-03-08 Tom Tromey <tom@tromey.com>
1380
1381 * expop.h (class type_instance_operation): New.
1382 * eval.c (type_instance_operation::evaluate): New method.
1383
f6b42326
TT
13842021-03-08 Tom Tromey <tom@tromey.com>
1385
1386 * expop.h (class op_this_operation): New.
1387 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
1388
cbc18219
TT
13892021-03-08 Tom Tromey <tom@tromey.com>
1390
1391 * expop.h (class unop_memval_operation)
1392 (class unop_memval_type_operation): New.
1393 * eval.c (eval_op_memval): No longer static.
1394 (unop_memval_operation::evaluate_for_address)
1395 (unop_memval_type_operation::evaluate_for_address)
1396 (unop_memval_operation::evaluate_for_sizeof)
1397 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
1398 * ax-gdb.c (unop_memval_operation::do_generate_ax)
1399 (unop_memval_type_operation::do_generate_ax): New methods.
1400
ae4bb61e
TT
14012021-03-08 Tom Tromey <tom@tromey.com>
1402
1403 * expop.h (class unop_alignof_operation): New.
1404 * eval.c (eval_op_alignof): No longer static.
1405
85d23bda
TT
14062021-03-08 Tom Tromey <tom@tromey.com>
1407
1408 * expop.h (class unop_sizeof_operation): New.
1409 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
1410
14aff815
TT
14112021-03-08 Tom Tromey <tom@tromey.com>
1412
1413 * expop.h (class unop_addr_operation): New.
1414 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
1415
929f3aa7
TT
14162021-03-08 Tom Tromey <tom@tromey.com>
1417
1418 * expop.h (class typeid_operation): New.
1419
0af8829e
TT
14202021-03-08 Tom Tromey <tom@tromey.com>
1421
1422 * expop.h (class decltype_operation): New.
1423
4efc574c
TT
14242021-03-08 Tom Tromey <tom@tromey.com>
1425
1426 * expop.h (class typeof_operation): New.
1427
5b5f5140
TT
14282021-03-08 Tom Tromey <tom@tromey.com>
1429
1430 * expop.h (class type_operation): New.
1431 * eval.c (eval_op_type): No longer static.
1432
876469ff
TT
14332021-03-08 Tom Tromey <tom@tromey.com>
1434
1435 * expop.h (class unop_ind_base_operation)
1436 (class unop_ind_operation): New.
1437 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
1438 (unop_ind_base_operation::evaluate_for_address)
1439 (unop_ind_base_operation::evaluate_for_sizeof): New method.
1440 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
1441
6d89e296
TT
14422021-03-08 Tom Tromey <tom@tromey.com>
1443
1444 * expop.h (unop_incr_operation): New template.
1445 (preinc_operation, predec_operation, postinc_operation)
1446 (postdec_operation): New typedefs.
1447 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
1448 (eval_op_postdec): No longer static.
1449
9307d17b
TT
14502021-03-08 Tom Tromey <tom@tromey.com>
1451
1452 * expop.h (unary_ftype): New typedef.
1453 (unop_operation, usual_ax_binop_operation): New templates.
1454 (unary_plus_operation, unary_neg_operation)
1455 (unary_complement_operation, unary_logical_not_operation): New
1456 typedefs.
1457 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
1458 (eval_op_lognot): No longer static.
1459 * ax-gdb.c (gen_expr_unop): New function.
1460
ae64ba58
TT
14612021-03-08 Tom Tromey <tom@tromey.com>
1462
1463 * ax-gdb.c (comma_operation::do_generate_ax): New method.
1464
d4eff4c1
TT
14652021-03-08 Tom Tromey <tom@tromey.com>
1466
1467 * expop.h (class repeat_operation): New.
1468 * eval.c (eval_op_repeat): No longer static. Remove "op"
1469 parameter.
1470 (evaluate_subexp_standard): Update.
1471 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
1472
46916f2b
TT
14732021-03-08 Tom Tromey <tom@tromey.com>
1474
1475 * expop.h (class comparison_operation): New.
1476 (equal_operation, notequal_operation, less_operation)
1477 (gtr_operation, geq_operation, leq_operation): New typedefs.
1478 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
1479 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
1480
224d6424
TT
14812021-03-08 Tom Tromey <tom@tromey.com>
1482
1483 * expop.h (class subscript_operation): New.
1484 * eval.c (eval_op_subscript): No longer static.
1485
373907ff
TT
14862021-03-08 Tom Tromey <tom@tromey.com>
1487
1488 * expop.h (class binop_operation, class usual_ax_binop_operation):
1489 New.
1490 (exp_operation, intdiv_operation, mod_operation, mul_operation)
1491 (div_operation, rem_operation, lsh_operation, rsh_operation)
1492 (bitwise_and_operation, bitwise_ior_operation)
1493 (bitwise_xor_operation): New typedefs.
1494 * eval.c (eval_op_binary): No longer static.
1495
5133d78b
TT
14962021-03-08 Tom Tromey <tom@tromey.com>
1497
1498 * expop.h (class sub_operation): New.
1499 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
1500 (evaluate_subexp_standard): Update.
1501
a94323b6
TT
15022021-03-08 Tom Tromey <tom@tromey.com>
1503
1504 * expop.h (class add_operation): New.
1505 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
1506 (evaluate_subexp_standard): Update.
1507
e51e26a0
TT
15082021-03-08 Tom Tromey <tom@tromey.com>
1509
1510 * expop.h (class concat_operation): New.
1511 * eval.c (eval_op_concat): No longer static. Remove "op"
1512 parameter.
1513 (evaluate_subexp_standard): Update.
1514
07f724a8
TT
15152021-03-08 Tom Tromey <tom@tromey.com>
1516
1517 * expop.h (class structop_member_operation)
1518 (class structop_mptr_operation): New.
1519 * eval.c (eval_op_member): No longer static.
1520
ab0609be
TT
15212021-03-08 Tom Tromey <tom@tromey.com>
1522
1523 * expop.h (class structop_ptr_operation): New.
1524 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
1525 parameter.
1526
808b22cf
TT
15272021-03-08 Tom Tromey <tom@tromey.com>
1528
1529 * expop.h (class structop_base_operation)
1530 (class structop_operation): New.
1531 * eval.c (eval_op_structop_struct): No longer static.
1532
8cfd3e95
TT
15332021-03-08 Tom Tromey <tom@tromey.com>
1534
1535 * expop.h (class complex_operation): New.
1536
09db3700
TT
15372021-03-08 Tom Tromey <tom@tromey.com>
1538
1539 * eval.c (eval_op_objc_selector): No longer static.
1540 * c-exp.h (class objc_selector_operation): New.
1541
06dc61b9
TT
15422021-03-08 Tom Tromey <tom@tromey.com>
1543
1544 * eval.c: Include c-exp.h.
1545 * c-exp.h (class objc_nsstring_operation): New.
1546
72d0a711
TT
15472021-03-08 Tom Tromey <tom@tromey.com>
1548
1549 * c-lang.c (c_string_operation::evaluate): New method.
1550 * c-exp.h: New file.
1551
9186293f
TT
15522021-03-08 Tom Tromey <tom@tromey.com>
1553
1554 * expop.h (class ternop_cond_operation): New.
1555 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
1556
1594e0bb
TT
15572021-03-08 Tom Tromey <tom@tromey.com>
1558
1559 * expop.h (class ternop_slice_operation): New.
1560 * eval.c (eval_op_ternop): No longer static.
1561
b50db09f
TT
15622021-03-08 Tom Tromey <tom@tromey.com>
1563
1564 * expop.h (class string_operation): New.
1565 * eval.c (eval_op_string): No longer static.
1566
e6e01e16
TT
15672021-03-08 Tom Tromey <tom@tromey.com>
1568
1569 * expop.h (class internalvar_operation): New.
1570 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
1571
e6985c5e
TT
15722021-03-08 Tom Tromey <tom@tromey.com>
1573
1574 * expop.h (class bool_operation): New.
1575
55bdbff8
TT
15762021-03-08 Tom Tromey <tom@tromey.com>
1577
1578 * expop.h (class register_operation): New.
1579 * eval.c (eval_op_register): No longer static.
1580 * ax-gdb.c (register_operation::do_generate_ax): New method.
1581
247d935b
TT
15822021-03-08 Tom Tromey <tom@tromey.com>
1583
1584 * expop.h (class last_operation): New.
1585
17679395
TT
15862021-03-08 Tom Tromey <tom@tromey.com>
1587
1588 * expop.h (class func_static_var_operation): New.
1589 * eval.c (eval_op_func_static_var): No longer static.
1590
b5cc3923
TT
15912021-03-08 Tom Tromey <tom@tromey.com>
1592
1593 * expop.h (class var_entry_value_operation): New.
1594 * eval.c (eval_op_var_entry_value): No longer static.
1595
0c8effa3
TT
15962021-03-08 Tom Tromey <tom@tromey.com>
1597
1598 * expression.h (class operation) <set_outermost>: New method.
1599 * expop.h (class var_msym_value_operation): New.
1600 * eval.c (eval_op_var_msym_value): No longer static.
1601 (var_msym_value_operation::evaluate_for_address)
1602 (var_msym_value_operation::evaluate_for_sizeof)
1603 (var_msym_value_operation::evaluate_for_cast): New methods.
1604 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
1605 method.
1606
d336c29e
TT
16072021-03-08 Tom Tromey <tom@tromey.com>
1608
1609 * expop.h (class long_const_operation): New.
1610 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
1611
d5ab122c
TT
16122021-03-08 Tom Tromey <tom@tromey.com>
1613
1614 * expop.h (class scope_operation): New.
1615 * eval.c (eval_op_scope): No longer static.
1616 (scope_operation::evaluate_for_address): New method.
1617 * ax-gdb.c (scope_operation::do_generate_ax): New method.
1618
cae26a0c
TT
16192021-03-08 Tom Tromey <tom@tromey.com>
1620
1621 * expprint.c (float_const_operation::dump): New method.
1622 * expop.h (float_data): New typedef.
1623 (class float_const_operation): New.
1624
75f9892d
TT
16252021-03-08 Tom Tromey <tom@tromey.com>
1626
1627 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
1628 * ax-gdb.c (gen_expr_binop): New function.
1629 (gen_expr_structop): Likewise.
1630
de401988
TT
16312021-03-08 Tom Tromey <tom@tromey.com>
1632
1633 * expprint.c (expr::dump_for_expression): New functions.
1634 * expop.h (dump_for_expression): New overloads.
1635 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
1636 Update.
1637
e2803273
TT
16382021-03-08 Tom Tromey <tom@tromey.com>
1639
1640 * expression.h (expr::operation): New class.
1641 (expr::make_operation): New function.
1642 (expr::operation_up): New typedef.
1643 * expop.h: New file.
1644 * eval.c (operation::evaluate_for_cast)
1645 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
1646 New methods.
1647 * ax-gdb.c (operation::generate_ax): New method.
1648
e18c58f2
TT
16492021-03-08 Tom Tromey <tom@tromey.com>
1650
1651 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
1652 (gen_expr_binop_rest): New overload.
1653
c0d7ed8c
TT
16542021-03-08 Tom Tromey <tom@tromey.com>
1655
1656 * eval.c (eval_multi_subscript): New function.
1657 (evaluate_subexp_standard): Use it.
1658
dd5fd283
TT
16592021-03-08 Tom Tromey <tom@tromey.com>
1660
1661 * ada-lang.c (ada_binop_exp): New function.
1662 (ada_evaluate_subexp): Use it.
1663
3848abd6
TT
16642021-03-08 Tom Tromey <tom@tromey.com>
1665
1666 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
1667 parameters.
1668 (ada_evaluate_subexp): Use it.
1669
38dc70cf
TT
16702021-03-08 Tom Tromey <tom@tromey.com>
1671
1672 * ada-lang.c (ada_binop_minmax): New function.
1673 (ada_evaluate_subexp): Use it.
1674
b84564fc
TT
16752021-03-08 Tom Tromey <tom@tromey.com>
1676
1677 * ada-lang.c (ada_unop_atr): New function.
1678 (ada_evaluate_subexp): Use it.
1679
b467efaa
TT
16802021-03-08 Tom Tromey <tom@tromey.com>
1681
1682 * ada-lang.c (ada_binop_in_bounds): New function.
1683 (ada_evaluate_subexp): Use it.
1684
5ce19db8
TT
16852021-03-08 Tom Tromey <tom@tromey.com>
1686
1687 * ada-lang.c (ada_ternop_slice): New function.
1688 (ada_evaluate_subexp): Use it.
1689
214b13ac
TT
16902021-03-08 Tom Tromey <tom@tromey.com>
1691
1692 * ada-lang.c (ada_equal_binop): New function.
1693 (ada_evaluate_subexp): Use it.
1694
faa1dfd7
TT
16952021-03-08 Tom Tromey <tom@tromey.com>
1696
1697 * ada-lang.c (ada_mult_binop): New function.
1698 (ada_evaluate_subexp): Use it.
1699
d05e24e6
TT
17002021-03-08 Tom Tromey <tom@tromey.com>
1701
1702 * ada-lang.c (ada_abs): New function.
1703 (ada_evaluate_subexp): Use it.
1704
68c75735
TT
17052021-03-08 Tom Tromey <tom@tromey.com>
1706
1707 * ada-lang.c (ada_atr_size): New function.
1708 (ada_evaluate_subexp): Use it.
1709
020dbabe
TT
17102021-03-08 Tom Tromey <tom@tromey.com>
1711
1712 * ada-lang.c (ada_atr_tag): New function.
1713 (ada_evaluate_subexp): Use it.
1714
7efc87ff
TT
17152021-03-08 Tom Tromey <tom@tromey.com>
1716
1717 * ada-lang.c (ada_unop_in_range): New function.
1718 (ada_evaluate_subexp): Use it.
1719
82390ab8
TT
17202021-03-08 Tom Tromey <tom@tromey.com>
1721
1722 * ada-lang.c (ada_unop_neg): New function.
1723 (ada_evaluate_subexp): Use it.
1724
62d4bd94
TT
17252021-03-08 Tom Tromey <tom@tromey.com>
1726
1727 * ada-lang.c (eval_ternop_in_range): New function.
1728 (ada_evaluate_subexp): Use it.
1729
3634f669
TT
17302021-03-08 Tom Tromey <tom@tromey.com>
1731
1732 * opencl-lang.c (eval_opencl_assign): New function.
1733 (evaluate_subexp_opencl): Use it.
1734
5e80600e
TT
17352021-03-08 Tom Tromey <tom@tromey.com>
1736
1737 * eval.c (eval_op_objc_msgcall): New function.
1738 (evaluate_subexp_standard): Use it.
1739
fb5ba2ab
TT
17402021-03-08 Tom Tromey <tom@tromey.com>
1741
1742 * eval.c (eval_binop_assign_modify): New function.
1743 (evaluate_subexp_standard): Use it.
1744
a49881f7
TT
17452021-03-08 Tom Tromey <tom@tromey.com>
1746
1747 * m2-lang.c (eval_op_m2_subscript): New function.
1748 (evaluate_subexp_modula2): Use it.
1749
41bdced5
TT
17502021-03-08 Tom Tromey <tom@tromey.com>
1751
1752 * m2-lang.c (eval_op_m2_high): New function.
1753 (evaluate_subexp_modula2): Use it.
1754
13ea014a
TT
17552021-03-08 Tom Tromey <tom@tromey.com>
1756
1757 * eval.c (evaluate_subexp_for_address_base): New function.
1758 (evaluate_subexp_for_address): Use it.
1759 (evaluate_subexp_for_sizeof_base): New function.
1760 (evaluate_subexp_for_sizeof): Use it.
1761
1fa41fc7
TT
17622021-03-08 Tom Tromey <tom@tromey.com>
1763
1764 * rust-lang.c (eval_op_rust_structop): New function.
1765 (rust_evaluate_subexp): Use it.
1766
575cae23
TT
17672021-03-08 Tom Tromey <tom@tromey.com>
1768
1769 * rust-lang.c (eval_op_rust_struct_anon): New function.
1770 (rust_evaluate_subexp): Use it.
1771
05104233
TT
17722021-03-08 Tom Tromey <tom@tromey.com>
1773
1774 * rust-lang.c (eval_op_rust_array): New function.
1775 (rust_evaluate_subexp): Use it.
1776
6fa9831f
TT
17772021-03-08 Tom Tromey <tom@tromey.com>
1778
1779 * rust-lang.c (eval_op_rust_complement): New function.
1780 (rust_evaluate_subexp): Use it.
1781
d123f9e4
TT
17822021-03-08 Tom Tromey <tom@tromey.com>
1783
1784 * rust-lang.c (eval_op_rust_ind): New function.
1785 (rust_evaluate_subexp): Use it.
1786
984af2cb
TT
17872021-03-08 Tom Tromey <tom@tromey.com>
1788
1789 * rust-lang.c (rust_subscript): Change parameters.
1790 (rust_evaluate_subexp): Update.
1791
d148f803
TT
17922021-03-08 Tom Tromey <tom@tromey.com>
1793
1794 * rust-lang.c (rust_range): Change parameters.
1795 (rust_evaluate_subexp): Update.
1796
9cbd1c20
TT
17972021-03-08 Tom Tromey <tom@tromey.com>
1798
1799 * f-lang.c (eval_op_f_allocated): New function.
1800 (evaluate_subexp_f): Use it.
1801
3c18c49c
TT
18022021-03-08 Tom Tromey <tom@tromey.com>
1803
1804 * f-lang.c (fortran_require_array): New function.
1805 (evaluate_subexp_f): Use it.
1806
216f6fcb
TT
18072021-03-08 Tom Tromey <tom@tromey.com>
1808
1809 * f-lang.c (eval_op_f_kind): New function.
1810 (evaluate_subexp_f): Use it.
1811
00f2db6f
TT
18122021-03-08 Tom Tromey <tom@tromey.com>
1813
1814 * f-lang.c (eval_op_f_cmplx): New function.
1815 (evaluate_subexp_f): Use it.
1816
93b2b5fa
TT
18172021-03-08 Tom Tromey <tom@tromey.com>
1818
1819 * f-lang.c (eval_op_f_modulo): New function.
1820 (evaluate_subexp_f): Use it.
1821
9f1a1f3c
TT
18222021-03-08 Tom Tromey <tom@tromey.com>
1823
1824 * f-lang.c (eval_op_f_floor): New function.
1825 (evaluate_subexp_f): Use it.
1826
3dc41f3c
TT
18272021-03-08 Tom Tromey <tom@tromey.com>
1828
1829 * f-lang.c (eval_op_f_ceil): New function.
1830 (evaluate_subexp_f): Use it.
1831
e08109f2
TT
18322021-03-08 Tom Tromey <tom@tromey.com>
1833
1834 * f-lang.c (eval_op_f_mod): New function.
1835 (evaluate_subexp_f): Use it.
1836
cc05c68e
TT
18372021-03-08 Tom Tromey <tom@tromey.com>
1838
1839 * f-lang.c (eval_op_f_abs): New function.
1840 (evaluate_subexp_f): Use it.
1841
aec95807
TT
18422021-03-08 Tom Tromey <tom@tromey.com>
1843
1844 * eval.c (eval_op_type): New function.
1845 (evaluate_subexp_standard): Use it.
1846
a220ead5
TT
18472021-03-08 Tom Tromey <tom@tromey.com>
1848
1849 * eval.c (eval_op_postdec): New function.
1850 (evaluate_subexp_standard): Use it.
1851
abffe116
TT
18522021-03-08 Tom Tromey <tom@tromey.com>
1853
1854 * eval.c (eval_op_postinc): New function.
1855 (evaluate_subexp_standard): Use it.
1856
9e1361b7
TT
18572021-03-08 Tom Tromey <tom@tromey.com>
1858
1859 * eval.c (eval_op_predec): New file.
1860 (evaluate_subexp_standard): Use it.
1861
00f50884
TT
18622021-03-08 Tom Tromey <tom@tromey.com>
1863
1864 * eval.c (eval_op_preinc): New function.
1865 (evaluate_subexp_standard): Use it.
1866
3aef2a07
TT
18672021-03-08 Tom Tromey <tom@tromey.com>
1868
1869 * eval.c (eval_op_memval): New function.
1870 (evaluate_subexp_standard): Use it.
1871
acee9468
TT
18722021-03-08 Tom Tromey <tom@tromey.com>
1873
1874 * eval.c (eval_op_alignof): New function.
1875 (evaluate_subexp_standard): Use it.
1876
786f70ee
TT
18772021-03-08 Tom Tromey <tom@tromey.com>
1878
1879 * eval.c (eval_op_ind): New function.
1880 (evaluate_subexp_standard): Use it.
1881
24338fb9
TT
18822021-03-08 Tom Tromey <tom@tromey.com>
1883
1884 * eval.c (eval_op_lognot): New function.
1885 (evaluate_subexp_standard): Use it.
1886
1f09ec81
TT
18872021-03-08 Tom Tromey <tom@tromey.com>
1888
1889 * eval.c (eval_op_complement): New function.
1890 (evaluate_subexp_standard): Use it.
1891
606d105f
TT
18922021-03-08 Tom Tromey <tom@tromey.com>
1893
1894 * eval.c (eval_op_neg): New function.
1895 (evaluate_subexp_standard): Use it.
1896
39f288be
TT
18972021-03-08 Tom Tromey <tom@tromey.com>
1898
1899 * eval.c (eval_op_plus): New function.
1900 (evaluate_subexp_standard): Use it.
1901
eed70b1c
TT
19022021-03-08 Tom Tromey <tom@tromey.com>
1903
1904 * eval.c (eval_op_repeat): New function.
1905 (evaluate_subexp_standard): Use it.
1906
60cdd487
TT
19072021-03-08 Tom Tromey <tom@tromey.com>
1908
1909 * eval.c (eval_op_leq): New function.
1910 (evaluate_subexp_standard): Use it.
1911
96e3efd9
TT
19122021-03-08 Tom Tromey <tom@tromey.com>
1913
1914 * eval.c (eval_op_geq): New function.
1915 (evaluate_subexp_standard): Use it.
1916
1f78d732
TT
19172021-03-08 Tom Tromey <tom@tromey.com>
1918
1919 * eval.c (eval_op_gtr): New function.
1920 (evaluate_subexp_standard): Use it.
1921
6cad1349
TT
19222021-03-08 Tom Tromey <tom@tromey.com>
1923
1924 * eval.c (eval_op_less): New function.
1925 (evaluate_subexp_standard): Use it.
1926
1fcb3559
TT
19272021-03-08 Tom Tromey <tom@tromey.com>
1928
1929 * eval.c (eval_op_notequal): New function.
1930 (evaluate_subexp_standard): Use it.
1931
0cc96de8
TT
19322021-03-08 Tom Tromey <tom@tromey.com>
1933
1934 * eval.c (eval_op_equal): New function.
1935 (evaluate_subexp_standard): Use it.
1936
288d26bc
TT
19372021-03-08 Tom Tromey <tom@tromey.com>
1938
1939 * eval.c (eval_op_subscript): New function.
1940 (evaluate_subexp_standard): Use it.
1941
7cdcdd02
TT
19422021-03-08 Tom Tromey <tom@tromey.com>
1943
1944 * eval.c (eval_op_binary): New function.
1945 (evaluate_subexp_standard): Use it.
1946
d9790e22
TT
19472021-03-08 Tom Tromey <tom@tromey.com>
1948
1949 * eval.c (eval_op_sub): New function.
1950 (evaluate_subexp_standard): Use it.
1951
aedaf9ac
TT
19522021-03-08 Tom Tromey <tom@tromey.com>
1953
1954 * eval.c (eval_op_add): New function.
1955 (evaluate_subexp_standard): Use it.
1956
b7a96ed2
TT
19572021-03-08 Tom Tromey <tom@tromey.com>
1958
1959 * eval.c (eval_op_member): New function.
1960 (evaluate_subexp_standard): Use it.
1961
fb461aa3
TT
19622021-03-08 Tom Tromey <tom@tromey.com>
1963
1964 * eval.c (eval_op_structop_ptr): New function.
1965 (evaluate_subexp_standard): Use it.
1966
3e96c4fc
TT
19672021-03-08 Tom Tromey <tom@tromey.com>
1968
1969 * eval.c (eval_op_structop_struct): New function.
1970 (evaluate_subexp_standard): Use it.
1971
f960a617
TT
19722021-03-08 Tom Tromey <tom@tromey.com>
1973
1974 * eval.c (eval_op_ternop): New function.
1975 (evaluate_subexp_standard): Use it.
1976
5c2f201e
TT
19772021-03-08 Tom Tromey <tom@tromey.com>
1978
1979 * eval.c (eval_op_concat): New function.
1980 (evaluate_subexp_standard): Use it.
1981
f871bae1
TT
19822021-03-08 Tom Tromey <tom@tromey.com>
1983
1984 * eval.c (eval_op_objc_selector): New function.
1985 (evaluate_subexp_standard): Use it.
1986
14a1c64a
TT
19872021-03-08 Tom Tromey <tom@tromey.com>
1988
1989 * eval.c (eval_op_string): New function.
1990 (evaluate_subexp_standard): Use it.
1991
ffff730b
TT
19922021-03-08 Tom Tromey <tom@tromey.com>
1993
1994 * eval.c (eval_op_register): New function.
1995 (evaluate_subexp_standard): Use it.
1996
9b1d8af6
TT
19972021-03-08 Tom Tromey <tom@tromey.com>
1998
1999 * eval.c (eval_op_func_static_var): New function.
2000 (evaluate_subexp_standard): Use it.
2001
c0df9289
TT
20022021-03-08 Tom Tromey <tom@tromey.com>
2003
2004 * eval.c (eval_op_var_msym_value): New function.
2005 (evaluate_subexp_standard): Use it.
2006
50b98adc
TT
20072021-03-08 Tom Tromey <tom@tromey.com>
2008
2009 * eval.c (eval_op_var_entry_value): New function.
2010 (evaluate_subexp_standard): Use it.
2011
ea2d29f7
TT
20122021-03-08 Tom Tromey <tom@tromey.com>
2013
2014 * eval.c (eval_op_scope): New function.
2015 (evaluate_subexp_standard): Use it.
2016
01573d73
TT
20172021-03-06 Chernov Sergey <klen_s@mail.ru>
2018
2019 PR gdb/27528:
2020 * ada-lang.c (ada_fold_name): Use gdb::to_string.
2021
9938d15a
TT
20222021-03-06 Tom Tromey <tom@tromey.com>
2023
2024 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
2025 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
2026 * dwarf2/read.c (dwarf2_elf_names): No longer static.
2027 (locate_dwz_sections, dwz_search_other_debugdirs)
2028 (dwarf2_get_dwz_file): Move to dwz.c.
2029 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
2030 read.h.
2031 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
2032 (dwarf2_get_dwz_file): Move from read.c.
2033
18035655
TT
20342021-03-06 Tom Tromey <tom@tromey.com>
2035
2036 * debuginfod-support.h: Include scoped_fd.h.
2037
a7308ce0
TT
20382021-03-06 Tom Tromey <tom@tromey.com>
2039
2040 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
2041 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
2042 (get_abbrev_section_for_cu, read_attribute_value)
2043 (get_debug_line_section): Update.
2044 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2045
fbedd546
TT
20462021-03-06 Tom Tromey <tom@tromey.com>
2047
2048 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
2049 method.
2050 * dwarf2/read.c (section_is_p): Remove.
2051 (dwarf2_per_bfd::locate_sections)
2052 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
2053 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
2054 (dwarf2_locate_common_dwp_sections)
2055 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
2056 Update.
2057
c2a62a3d
TT
20582021-03-06 Tom Tromey <tom@tromey.com>
2059
2060 * xcoffread.c: Include sect-names.h.
2061 * symfile.h (struct dwarf2_section_names, struct
2062 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
2063 * dwarf2/sect-names.h: New file, from symfile.h.
2064 * dwarf2/read.c: Include sect-names.h.
2065
4444f407
TT
20662021-03-06 Tom Tromey <tom@tromey.com>
2067
2068 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
2069 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
2070 (abbrev_table::read): Update.
2071 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
2072 (struct abbrev_info): Reformat.
2073 <attrs>: Now an array.
2074 (struct abbrev_table) <alloc_abbrev>: Remove.
2075
dd99cf0c
WP
20762021-03-06 Weimin Pan <weimin.pan@oracle.com>
2077
2078 * ctfread.c (ctf_psymtab_add_enums): New function.
2079 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
2080
844be3f2
WP
20812021-03-06 Weimin Pan <weimin.pan@oracle.com>
2082
2083 * ctfread.c (read_func_kind_type): Set up function arguments.
2084
b2668f28
AB
20852021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2086 Andrew Burgess <andrew.burgess@embecosm.com>
2087
2088 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
2089 includes.
2090 (riscv_csrset): New static global.
2091 (riscv_update_csrmap): New function.
2092 (riscv_iterate_over_regset_sections): Process CSRs.
2093
d782d24b
AB
20942021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2095
2096 * riscv-tdep.c (riscv_feature_name_csr): Define.
2097 (riscv_feature_name_cpu): Define.
2098 (riscv_feature_name_fpu): Define.
2099 (riscv_feature_name_virtual): Define.
2100 (riscv_xreg_feature): Use riscv_feature_name_cpu.
2101 (riscv_freg_feature): Use riscv_feature_name_fpu.
2102 (riscv_virtual_feature): Use riscv_feature_name_virtual.
2103 (riscv_csr_feature): Use riscv_feature_name_csr.
2104 * riscv-tdep.h (riscv_feature_name_csr): Declare.
2105
fb8f3fc0
AB
21062021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2107 Craig Blackmore <craig.blackmore@embecosm.com>
2108
2109 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
2110 (ALLDEPFILES): Add riscv-none-tdep.c.
2111 * configure: Regenerate.
2112 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
2113 support.
2114 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
2115 * elf-none-tdep.c: New file.
2116 * elf-none-tdep.h: New file.
2117 * riscv-none-tdep.c: New file.
2118
95ce627a
AB
21192021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2120 Andrew Burgess <andrew.burgess@embecosm.com>
2121
2122 * corelow.c: Add 'xml-tdesc.h' include.
2123 (core_target::read_description): Load the target description from
2124 the core file when possible.
2125 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
2126 note.
2127 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
2128 (gcore_elf_make_tdesc_note): New function.
2129 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
2130 * linux-tdep.c (linux_make_corefile_notes): Add target description
2131 note.
2132
f3a5df7b
AB
21332021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2134
2135 * Makefile.in (SFILES): Add gcore-elf.c.
2136 (HFILES_NO_SRCDIR): Add gcore-elf.h
2137 * configure: Regenerate.
2138 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
2139 support.
2140 * fbsd-tdep.c: Add 'gcore-elf.h' include.
2141 (struct fbsd_collect_regset_section_cb_data): Delete.
2142 (fbsd_collect_regset_section_cb): Delete.
2143 (fbsd_collect_thread_registers): Delete.
2144 (struct fbsd_corefile_thread_data): Delete.
2145 (fbsd_corefile_thread): Delete.
2146 (fbsd_make_corefile_notes): Call
2147 gcore_elf_build_thread_register_notes instead of the now deleted
2148 FreeBSD code.
2149 * gcore-elf.c: New file, the content was moved here from
2150 linux-tdep.c, functions were renamed and given minor cleanup.
2151 * gcore-elf.h: New file.
2152 * gcore.c (gcore_find_signalled_thread): Moved here from
2153 linux-tdep.c and given a new name. Minor cleanups.
2154 * gcore.h (gcore_find_signalled_thread): Declare.
2155 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
2156 (struct linux_collect_regset_section_cb_data): Delete.
2157 (linux_collect_regset_section_cb): Delete.
2158 (linux_collect_thread_registers): Delete.
2159 (linux_corefile_thread): Call
2160 gcore_elf_build_thread_register_notes.
2161 (find_signalled_thread): Delete.
2162 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2163
d1e93af6
SM
21642021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
2165
2166 PR gdb/27147
2167 * sparc-nat.h (sparc_fetch_inferior_registers): Add
2168 process_stratum_target parameter,
2169 sparc_store_inferior_registers): update callers.
2170 * sparc-nat.c (sparc_fetch_inferior_registers,
2171 sparc_store_inferior_registers): Add process_stratum_target
2172 parameter. Switch current thread before calling
2173 sparc_supply_gregset / sparc_collect_rwindow.
2174 (sparc_store_inferior_registers): Likewise.
2175 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
2176 (sparc32obsd_collect_uthread): Likewise.
2177 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
2178 Add assertion.
2179 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
2180 sparc64obsd_supply_uthread): Add assertion.
2181
1178743e
TT
21822021-03-04 Tom Tromey <tromey@adacore.com>
2183
2184 * ada-lang.c (struct match_data) <found_sym>: Now bool.
2185 (aux_add_nonlocal_symbols): Update.
2186 (ada_add_block_symbols): Change "found_sym" to bool.
2187
1bfa81ac
TT
21882021-03-03 Tom Tromey <tromey@adacore.com>
2189
2190 * ada-lang.c (ada_resolve_function): Update comment.
2191 (is_nonfunction, add_symbols_from_enclosing_procs)
2192 (remove_extra_symbols): Likewise.
2193 (struct match_data): Add constructor, initializers.
2194 (add_nonlocal_symbols): Remove memset.
2195 (aux_add_nonlocal_symbols): Update comment.
2196 (ada_add_block_renamings, add_nonlocal_symbols)
2197 (ada_add_all_symbols): Likewise.
2198 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
2199
bbcdf9ab
TT
22002021-03-02 Tom Tromey <tromey@adacore.com>
2201
2202 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
2203 (cast_to_gnat_encoded_fixed_point_type): Remove.
2204 (ada_value_cast, ada_evaluate_subexp): Update.
2205 (gnat_encoded_fixed_point_type_info)
2206 (ada_is_gnat_encoded_fixed_point_type)
2207 (gnat_encoded_fixed_point_delta)
2208 (gnat_encoded_fixed_point_scaling_factor): Remove.
2209 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
2210 (gnat_encoded_fixed_point_delta)
2211 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
2212 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
2213 (ada_print_type): Update.
2214 * ada-valprint.c (ada_value_print_num): Update.
2215 * dwarf2/read.c (ada_get_gnat_encoded_number)
2216 (ada_get_gnat_encoded_ratio): New functions.
2217 (finish_fixed_point_type): Use them. Add parameters.
2218 (GNAT_FIXED_POINT_SUFFIX): New define.
2219 (gnat_encoded_fixed_point_type_info): New function.
2220 (read_base_type): Handle gnat encodings.
2221
5f9febe0
TT
22222021-03-02 Tom Tromey <tromey@adacore.com>
2223
2224 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
2225 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
2226 std::string.
2227 (GROW_VECT): Remove.
2228 (grow_vect): Remove.
2229
d1183b06
TT
22302021-03-02 Tom Tromey <tromey@adacore.com>
2231
2232 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
2233 * ada-lang.c (resolve_subexp): Update.
2234 (ada_resolve_function): Accept a vector.
2235 (is_nonfunction, add_defn_to_vec)
2236 (add_symbols_from_enclosing_procs): Likewise.
2237 (num_defns_collected, defns_collected): Remove.
2238 (remove_extra_symbols): Return a vector.
2239 (remove_irrelevant_renamings): Return void.
2240 (ada_add_local_symbols): Accept a vector.
2241 (struct match_data) <obstackp>: Remove.
2242 <resultp>: New member.
2243 (aux_add_nonlocal_symbols): Update.
2244 (ada_add_block_renamings, add_nonlocal_symbols)
2245 (ada_add_all_symbols): Accept a vector.
2246 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
2247 vector.
2248 (ada_lookup_symbol): Update.
2249 (ada_add_block_symbols): Accept a vector.
2250 (get_var_value, iterate_over_symbols): Update.
2251 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
2252 Update.
2253
886d459f
TT
22542021-03-02 Tom Tromey <tromey@adacore.com>
2255
2256 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
2257
bdcccc56
TT
22582021-03-02 Tom Tromey <tromey@adacore.com>
2259
2260 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
2261 auto_obstack.
2262 <root>: Initialize.
2263 (ada_pspace_data): Remove destructor.
2264 <sym_cache>: Now a unique_ptr.
2265 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
2266 (ada_get_symbol_cache): Use 'new'.
2267 (ada_clear_symbol_cache): Rewrite.
2268
1228719f
TT
22692021-03-02 Tom Tromey <tromey@adacore.com>
2270
2271 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
2272 is null.
2273
bb3a4efe
LS
22742021-02-27 Lancelot Six <lsix@lancelotsix.com>
2275
2276 PR gdb/27393
2277 * source.c (add_path): Skip empty dirnames.
2278
26b43ca6 22792021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
2280
2281 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
2282 include order for <sys/ptrace.h> and <asm/ptrace.h>.
2283
dffdd8b5
SM
22842021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
2285
2286 PR gdb/26861
2287 * target.c (target_mourn_inferior): Only compare pids in
2288 target_mourn_inferior.
2289
64d38fdd
JM
22902021-02-25 Jan Matyas <jmatyas@codasip.com>
2291
2292 PR gdb/26819
2293 * remote.c (remote_target::start_remote): Ensure the single
2294 thread, automatically added for remote targets without the
2295 concept of threading, is initially in set to the "resumed"
2296 state.
2297 * remote.c (remote_target::add_current_inferior_and_thread):
2298 Add return value - return the main thread.
2299
2450ad54
JV
23002021-02-25 Jan Vrany <jan.vrany@labware.com>
2301
2302 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
2303 (mi_tsv_created): Likewise.
2304 (mi_tsv_deleted): Likewise.
2305
30c80d88
TV
23062021-02-25 Tom de Vries <tdevries@suse.de>
2307
2308 PR symtab/27354
2309 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
2310 section_kind for &dwo_file->sections.info.
2311
68337b8b
AB
23122021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2313
2314 PR fortran/26155
2315 * f-lang.c (fortran_argument_convert): Delete declaration.
2316 (fortran_prepare_argument): New function.
2317 (evaluate_subexp_f): Move logic to new function
2318 fortran_prepare_argument.
2319
faeb9f13
AB
23202021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2321
2322 * f-exp.y (f77_keywords): Add 'associated'.
2323 * f-lang.c (fortran_associated): New function.
2324 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
2325 (operator_length_f): Likewise.
2326 (print_unop_or_binop_subexp_f): New function.
2327 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
2328 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
2329 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
2330 (operator_check_f): Likewise.
2331 * std-operator.def: Add FORTRAN_ASSOCIATED.
2332
170f4b23
AB
23332021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2334
2335 * f-exp.y (fortran_operators): Add ".xor.".
2336
aa659cfa
TV
23372021-02-24 Tom de Vries <tdevries@suse.de>
2338
2339 PR symtab/27336
2340 * dwarf2/attribute.c (attribute::form_is_signed): New function
2341 factored out of ...
2342 * dwarf2/attribute.h (attribute::as_signed): ... here.
2343 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
2344 (attribute::form_is_signed): Declare.
2345 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
2346 for DW_AT_decl_file.
2347
268c77c1
KB
23482021-02-24 Kevin Buettner <kevinb@redhat.com>
2349
2350 * nat/aarch64-linux-hw-point.c: Add comment regarding include
2351 order for <sys/ptrace.h> and <asm/ptrace.h>.
2352
665af52e
KB
23532021-02-24 Kevin Buettner <kevinb@redhat.com>
2354
2355 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
2356 <sys/ptrace.h>.
2357
dd80d750
AB
23582021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2359
2360 * exec.c (set_section_command): Move variable declarations into
2361 the function body, and use std::string instead of a fixed size
2362 buffer.
2363
336aa7b7
AB
23642021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2365
2366 * exec.c (exec_target::get_section_table): Delete member function.
2367 (section_table_read_available_memory): Use current_top_target, not
2368 just the exec_ops target.
2369 * target-delegates.c: Regenerate.
2370 * target.c (default_get_section_table): New function.
2371 * target.h (target_ops::get_section_table): Change default
2372 behaviour to call default_get_section_table.
2373 (default_get_section_table): Declare.
2374
02f7d26b
AB
23752021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2376
2377 * exec.c (exec_target::close): Call new clear_target_sections
2378 function.
2379 (program_space::add_target_sections): Update name of member
2380 variable.
2381 (program_space::add_target_sections): Update name of member
2382 variable.
2383 (program_space::remove_target_sections): Likewise.
2384 (exec_one_fork): Use new target_sections member function.
2385 (exec_target::get_section_table): Likewise.
2386 (exec_target::files_info): Likewise.
2387 (set_section_command): Likewise.
2388 (exec_set_section_address): Likewise.
2389 (exec_target::has_memory): Use new target_sections member
2390 function.
2391 * progspace.h (program_space::clear_target_sections): New member
2392 function.
2393 (program_space::target_sections): Rename member variable to
2394 m_target_sections, replace with a new member function.
2395 (program_space::m_target_sections): New member variable.
2396 * solib-dsbt.c (scan_dyntag): Use new member function.
2397 * solib-svr4.c (scan_dyntag): Likewise.
2398
19cf757a
AB
23992021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2400
2401 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
2402 return type const.
2403 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
2404 (section_table_read_available_memory): Make local const.
2405 (exec_target::xfer_partial): Make local const.
2406 (print_section_info): Make parameter const.
2407 * gdb/exec.h (print_section_info): Likewise.
2408 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
2409 const.
2410 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
2411 Likewise.
2412 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
2413 Likewise.
2414 * gdb/s390-tdep.c (s390_load): Likewise.
2415 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
2416 * gdb/solib-svr4.c (scan_dyntag): Likewise.
2417 * gdb/target-debug.h (target_debug_print_target_section_table_p):
2418 Rename to...
2419 (target_debug_print_const_target_section_table_p): ...this.
2420 * gdb/target-delegates.c: Regenerate.
2421 * gdb/target.c (target_get_section_table): Make return type const.
2422 (target_section_by_addr): Likewise. Also make some locals const.
2423 (memory_xfer_partial_1): Make some locals const.
2424 * gdb/target.h (struct target_ops) <get_section_table>: Make
2425 return type const.
2426 (target_section_by_addr): Likewise.
2427 (target_get_section_table): Likewise.
2428
02a79309
AB
24292021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2430
2431 * NEWS: Mention new 'maint info target-sections' command.
2432 * maint.c (maintenance_info_target_sections): New function.
2433 (_initialize_maint_cmds): Register new command.
2434
895b7b4e
AB
24352021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2436
2437 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
2438 (riscv_features_from_bfd): ...this. Change parameter type to
2439 'bfd*', and update as required.
2440 (riscv_find_default_target_description): Update call to
2441 riscv_features_from_bfd. Select a default xlen based on
2442 info.bfd_arch_info.
2443 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
2444
bc3c0632
AB
24452021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2446
2447 * eval.c (evaluate_subexp_standard): Call value_ind for points to
2448 dynamic types in UNOP_IND.
2449
08ac5771
SM
24502021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2451
2452 PR gdb/26828
2453 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
2454 Instantiate queue.
2455 (~dwarf2_queue_guard): Clear queue.
2456 (queue_comp_unit): Assert that queue is
2457 instantiated.
2458 (process_queue): Adjust.
2459 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
2460
616c069a
SM
24612021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2462
2463 PR gdb/26828
2464 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
2465 to decide whether or not to enqueue it for expansion.
2466 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
2467 after calling maybe_queue_comp_unit.
2468
897608ed
SM
24692021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2470
2471 * linux-nat.c (linux_nat_filter_event): Return void.
2472
15908a11
TT
24732021-02-22 Tom Tromey <tromey@adacore.com>
2474
2475 * solib-svr4.c (enable_break): Update.
2476 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
2477 type.
2478 (target_bfd_reopen): Change parameter type.
2479 * bfd-target.h (target_bfd_reopen): Change parameter type.
2480
f53fc427
SM
24812021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2482
2483 * thread.c (add_thread_silent): Add assert.
2484 (find_thread_ptid): Add assert.
2485
de146e19
SM
24862021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2487
2488 PR gdb/27435
2489 * inf-ptrace.c (struct target_unpusher): Move to target.h.
2490 (target_unpush_up): Likewise.
2491 * procfs.c (procfs_target::attach): Push target early. Use
2492 target_unpush_up to unpush target in case of error.
2493 * target.h (struct target_unpusher): Move here.
2494 (target_unpush_up): Likewise.
2495
8488c357
KB
24962021-02-19 Kevin Buettner <kevinb@redhat.com>
2497
2498 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
2499 (which in turn includes <gnulib/config.h>) before include
2500 of <signal.h>.
2501
5a9f5403
NC
25022021-02-19 Nelson Chu <nelson.chu@sifive.com>
2503
2504 PR 27158
2505 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
2506 (decode_j_type_insn): Likewise.
2507 (decode_cj_type_insn): Likewise.
2508 (decode_b_type_insn): Likewise.
2509 (decode): Likewise.
2510
26f53cd3
TT
25112021-02-18 Tom Tromey <tom@tromey.com>
2512
2513 * expression.h (struct expression) <evaluate>: Declare method.
2514 * eval.c (evaluate_subexp): Simplify.
2515 (expression::evaluate): New method.
2516 (evaluate_expression, evaluate_type): Use expression::evaluate.
2517
6a780b67
KB
25182021-02-17 Kevin Buettner <kevinb@redhat.com>
2519
2520 * ada-lang.c (ada_fold_name): Check for non-empty string prior
2521 to accessing it.
2522 (ada_lookup_name_info): Likewise.
2523
adeab0c5
MF
25242021-02-13 Mike Frysinger <vapier@gentoo.org>
2525
2526 * aclocal.m4: Regenerate.
2527
089436f7
TV
25282021-02-12 Tom de Vries <tdevries@suse.de>
2529
2530 PR threads/26228
2531 * linux-nat.c (lin_thread_get_thread_signals): Remove.
2532 (lin_thread_signals): New static var.
2533 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2534 New function.
2535 * linux-nat.h (lin_thread_get_thread_signals): Remove.
2536 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2537 Declare.
2538 * linux-thread-db.c (check_thread_signals): Use
2539 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
2540
96df3e28
AB
25412021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2542
2543 * f-exp.y (f77_keywords): Add allocated.
2544 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
2545 (operator_length_f): Likewise.
2546 (print_subexp_f): Likewise.
2547 (dump_subexp_body_f): Likewise.
2548 (operator_check_f): Likewise.
2549 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
2550
05f68f52
TV
25512021-02-11 Tom de Vries <tdevries@suse.de>
2552
2553 PR symtab/27353
2554 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
2555 Return true for DW_FORM_strx.
2556
b260f8d6
TT
25572021-02-11 Tom Tromey <tromey@adacore.com>
2558
2559 PR gdb/27383:
2560 * parse.c (write_exp_symbol_reference): Write sym.block.
2561
bf3386f0
AB
25622021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2563
2564 * NEWS: Mention changes to 'maint info sections'.
2565 * maint.c (match_substring): Return a bool, fix whitespace issue.
2566 (struct single_bfd_flag_info): New struct.
2567 (bfd_flag_info): New static global.
2568 (match_bfd_flags): Return a bool, use bfd_flag_info.
2569 (print_bfd_flags): Use bfd_flag_info.
2570 (maint_print_section_info): Delete trailing whitespace.
2571 (struct maint_info_sections_opts): New struct.
2572 (maint_info_sections_option_defs): New static global.
2573 (maint_info_sections_completer): New function.
2574 (maintenance_info_sections): Use option parsing mechanism.
2575 (_initialize_maint_cmds): Update command help text for 'maint info
2576 sections' and register a command completer.
2577
4790db14
AB
25782021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2579
2580 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
2581 functionality merged into...
2582 (maint_print_all_sections): ...this new function.
2583 (maintenance_info_sections): Make use of maint_print_all_sections,
2584 allow all objects to be printed even where there's no executable.
2585
1db66e34
AB
25862021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2587
2588 * breakpoint.c (resolve_sal_pc): Make use of
2589 bound_minimal_symbol::obj_section.
2590 * maint.c (maintenance_translate_address): Likewise.
2591 * minsyms.c (minimal_symbol_upper_bound): Likewise.
2592 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
2593 member function.
2594 * printcmd.c (info_address_command): Make use of
2595 bound_minimal_symbol::obj_section.
2596
18b8df43
AM
25972021-02-11 Alan Modra <amodra@gmail.com>
2598
2599 * arm-symbian-tdep.c: Delete.
2600 * NEWS: Mention arm-symbian removal.
2601 * Makefile.in: Remove arm-symbian-tdep entries.
2602 * configure.tgt: Remove arm*-*-symbianelf*.
2603 * doc/gdb.texinfo: Remove mention of SymbianOS.
2604 * osabi.c (gdb_osabi_names): Remove "Symbian".
2605 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
2606 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
2607 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
2608 handling.
2609 * testsuite/gdb.base/dup-sect.exp: Likewise.
2610 * testsuite/gdb.base/long_long.exp: Likewise.
2611 * testsuite/gdb.base/solib-weak.exp: Likewise.
2612 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
2613 * testsuite/gdb.python/py-section-script.exp: Likewise.
2614 * testsuite/lib/dwarf.exp: Likewise.
2615 * testsuite/lib/gdb.exp: Likewise.
2616
e92c8eb8
AB
26172021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2618
2619 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
2620 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
2621 (one_or_two_args): New pattern.
2622 (f77_keywords): Add lbound and ubound.
2623 * f-lang.c (fortran_bounds_all_dims): New function.
2624 (fortran_bounds_for_dimension): New function.
2625 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
2626 (operator_length_f): Likewise.
2627 (print_subexp_f): Likewise.
2628 (dump_subexp_body_f): Likewise.
2629 (operator_check_f): Likewise.
2630 * std-operator.def (FORTRAN_LBOUND): Define.
2631 (FORTRAN_UBOUND): Define.
2632
a52d653e
AB
26332021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2634
2635 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
2636 and set_section_index member functions where appropriate.
2637 * coffread.c (coff_symtab_read): Likewise.
2638 (process_coff_symbol): Likewise.
2639 * ctfread.c (set_symbol_address): Likewise.
2640 * dwarf2/read.c (add_partial_symbol): Likewise.
2641 (var_decode_location): Likewise.
2642 * language.c: Likewise.
2643 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
2644 (compact_minimal_symbols): Likewise.
2645 (minimal_symbol_upper_bound): Likewise.
2646 * objfiles.c (relocate_one_symbol): Likewise.
2647 * psympriv.h (partial_symbol::obj_section): Likewise.
2648 (partial_symbol::address): Likewise.
2649 * psymtab.c (partial_symtab::add_psymbol): Likewise.
2650 * stabsread.c (scan_file_globals): Likewise.
2651 * symmisc.c (dump_msymbols): Likewise.
2652 * symtab.c (general_symbol_info::obj_section): Likewise.
2653 (fixup_section): Likewise.
2654 (get_msymbol_address): Likewise.
2655 * symtab.h (general_symbol_info::section): Rename to...
2656 (general_symbol_info::m_section): ...this.
2657 (general_symbol_info::set_section_index): New member function.
2658 (general_symbol_info::section_index): Likewise.
2659 (SYMBOL_SECTION): Delete.
2660 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
2661 set_section_index member functions where appropriate.
2662 (MSYMBOL_SECTION): Delete.
2663 (symbol::symbol): Update to initialize 'm_section'.
2664 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
2665 (process_xcoff_symbol): Likewise.
2666
ebbc3a7d
AB
26672021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2668
2669 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
2670 MSYMBOL_OBJ_SECTION.
2671 * findvar.c (language_defn::read_var_value): Likewise.
2672 * infcmd.c (jump_command): Likewise.
2673 * linespec.c (minsym_found): Likewise.
2674 * maint.c (maintenance_translate_address): Likewise.
2675 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
2676 (minimal_symbol_upper_bound): Likewise.
2677 * parse.c (find_minsym_type_and_address): Likewise.
2678 (operator_check_standard): Likewise.
2679 * printcmd.c (info_address_command): Likewise.
2680 * symmisc.c (dump_msymbols): Likewise.
2681 (print_symbol): Likewise.
2682 * symtab.c (general_symbol_info::obj_section): Define new
2683 function.
2684 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
2685 (find_pc_sect_compunit_symtab): Likewise.
2686 (find_function_start_sal): Likewise.
2687 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
2688 MSYMBOL_OBJ_SECTION.
2689 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
2690 function.
2691 (SYMBOL_OBJ_SECTION): Delete.
2692 (MSYMBOL_OBJ_SECTION): Delete.
2693
9bb305b3
TT
26942021-02-09 Tom Tromey <tom@tromey.com>
2695
2696 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
2697
cf2b2075
TV
26982021-02-09 Tom de Vries <tdevries@suse.de>
2699
2700 PR symtab/27341
2701 * dwarf2/read.c (read_array_type): Return NULL when not being able to
2702 construct an array type. Add assert to ensure that element_type is
2703 not being modified.
2704
03642b71
AB
27052021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
2706
2707 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
2708 (gcore_collect_regset_section_cb): Delete.
2709 (gcore_collect_thread_registers): Delete.
2710 (gcore_build_thread_register_notes): Delete.
2711 (gcore_find_signalled_thread): Delete.
2712 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
2713 'gdbarch' and 'thread_info' declarations.
2714 (gcore_build_thread_register_notes): Delete declaration.
2715 (gcore_find_signalled_thread): Likewise.
2716 * fbsd-tdep.c: Remove 'gcore.h' include.
2717 (struct fbsd_collect_regset_section_cb_data): New struct.
2718 (fbsd_collect_regset_section_cb): New function.
2719 (fbsd_collect_thread_registers): New function.
2720 (struct fbsd_corefile_thread_data): New struct.
2721 (fbsd_corefile_thread): New function.
2722 (fbsd_make_corefile_notes): Call FreeBSD specific code.
2723 * linux-tdep.c: Remove 'gcore.h' include.
2724 (struct linux_collect_regset_section_cb_data): New struct.
2725 (linux_collect_regset_section_cb): New function.
2726 (linux_collect_thread_registers): New function.
2727 (linux_corefile_thread): Call Linux specific code.
2728 (find_signalled_thread): New function.
2729 (linux_make_corefile_notes): Call find_signalled_thread.
2730
f73e424f
TT
27312021-02-09 Tom Tromey <tromey@adacore.com>
2732
2733 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
2734 not_lval value.
2735 * value.c (value_contents_copy_raw): Now static.
2736 * value.h (value_contents_copy_raw): Don't declare.
2737
a4f0544b
TT
27382021-02-09 Tom Tromey <tromey@adacore.com>
2739
2740 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
2741 fields.
2742
9b3e4b5d
SV
27432021-02-08 Shahab Vahedi <shahab@synopsys.com>
2744
2745 PR tdep/27369
2746 * arc-linux-tdep.c (handle_atomic_sequence): New.
2747 (arc_linux_software_single_step): Call handle_atomic_sequence().
2748
29db1eb3
AB
27492021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2750
2751 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
2752 function.
2753 (REQUIRE_WINDOW): Call is_valid member function.
2754 (REQUIRE_WINDOW_FOR_SETTER): New define.
2755 (gdbpy_tui_is_valid): Call is_valid member function.
2756 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
2757 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
2758 tui_active too.
2759 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
2760 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
2761 the function.
2762
e0c23e11
AB
27632021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2764
2765 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
2766 for the title is not nullptr.
2767
1cf23996
AB
27682021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2769
2770 * tui-layout.c (saved_tui_windows): Delete.
2771 (tui_apply_current_layout): Don't make use of saved_tui_windows,
2772 call new get_windows member function instead.
2773 (tui_get_window_by_name): Check in tui_windows.
2774 (tui_layout_window::apply): Don't add to tui_windows.
2775 * tui-layout.h (tui_layout_base::get_windows): New member function.
2776 (tui_layout_window::get_windows): Likewise.
2777 (tui_layout_split::get_windows): Likewise.
2778
a53a2657
AB
27792021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2780
2781 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
2782 of the window objects.
2783
2708dbbd
AB
27842021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2785
2786 * python/python.c (gdbpy_print_stack): Reformat an error message.
2787
cd074e04
AB
27882021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2789
2790 * tui/tui-interp.c (tui_command_line_handler): New function.
2791 (tui_interp::resume): Register tui_command_line_handler as the
2792 input_handler.
2793 * tui/tui-io.c (tui_inject_newline_into_command_window): New
2794 function.
2795 (tui_getc_1): Delete handling of '\n' and '\r'.
2796 * tui-io.h (tui_inject_newline_into_command_window): Declare.
2797
4cf28e91
HD
27982021-02-07 Hannes Domani <ssbssa@yahoo.de>
2799
2800 * tui/tui-regs.c (tui_data_window::display_registers_from):
2801 Mark invisible register sub windows.
2802 (tui_data_window::check_register_values): Ignore invisible
2803 register sub windows.
2804
3537bc23
HD
28052021-02-07 Hannes Domani <ssbssa@yahoo.de>
2806
2807 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
2808 n_spaces with a negative value.
2809
5fc2d6aa
HD
28102021-02-07 Hannes Domani <ssbssa@yahoo.de>
2811
2812 * tui/tui-regs.c (tui_data_window::display_registers_from):
2813 Add refresh_window call.
2814
83962f83
HD
28152021-02-07 Hannes Domani <ssbssa@yahoo.de>
2816
2817 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
2818
0110ec82
SM
28192021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
2820
2821 * symmisc.c (std_in, std_out, std_err): Remove.
2822 (_initialize_symmisc): Don't set std_in, std_out and std_err.
2823
7c6944ab
TV
28242021-02-05 Tom de Vries <tdevries@suse.de>
2825
2826 PR breakpoints/27330
2827 * breakpoint.c (create_exception_master_breakpoint): Handle case that
2828 glibc object file has debug info.
2829
e77b0004
TV
28302021-02-05 Tom de Vries <tdevries@suse.de>
2831
2832 PR symtab/27333
2833 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
2834
0e857c82
TV
28352021-02-05 Tom de Vries <tdevries@suse.de>
2836
2837 PR breakpoints/27313
2838 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
2839 syscall numbers.
2840
bdfea17e
TT
28412021-02-05 Tom Tromey <tom@tromey.com>
2842
2843 * compile/compile-c-support.c (get_compile_context)
2844 (c_get_compile_context, cplus_get_compile_context): Change return
2845 type.
2846 * language.c (language_defn::get_compile_instance): New method.
2847 * language.h (language_defn::get_compile_instance): Change return
2848 type. No longer inline.
2849 * c-lang.c (c_language::get_compile_instance): Change return type.
2850 (cplus_language::get_compile_instance): Change return type.
2851 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
2852 Change return type.
2853 * compile/compile.c (compile_to_object): Update.
2854
1b30f421
TT
28552021-02-05 Tom Tromey <tom@tromey.com>
2856
2857 * parser-defs.h (write_exp_symbol_reference): Declare.
2858 * parse.c (write_exp_symbol_reference): New function.
2859 * p-exp.y (variable): Use write_exp_symbol_reference.
2860 * m2-exp.y (variable): Use write_exp_symbol_reference.
2861 * f-exp.y (variable): Use write_exp_symbol_reference.
2862 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
2863 * c-exp.y (variable): Use write_exp_symbol_reference.
2864
ae710496
TV
28652021-02-05 Tom de Vries <tdevries@suse.de>
2866
2867 PR exp/27265
2868 * valarith.c (complex_binop): Throw an error if complex type can't
2869 be created.
2870
d3b54e63
TV
28712021-02-05 Tom de Vries <tdevries@suse.de>
2872
2873 PR symtab/27307
2874 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
2875 return.
2876
fc9a13fb
TV
28772021-02-05 Tom de Vries <tdevries@suse.de>
2878
2879 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
2880
04b4939b
MF
28812021-02-04 Mike Frysinger <vapier@gentoo.org>
2882
2883 * configure.tgt (riscv*-*-*): Set gdb_sim.
2884
6ff267e1
SM
28852021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
2886
2887 * target.c (target_is_non_stop_p): Return bool.
2888 * target.h (target_is_non_stop_p): Return bool.
2889
fdbc5215
SM
28902021-02-04 Simon Marchi <simon.marchi@efficios.com>
2891
2892 * record-full.c (record_full_async_inferior_event_handler):
2893 Don't clear async event handler.
2894 (record_full_base_target::wait): Clear async event handler at
2895 beginning.
2896
85d3ad8e
SM
28972021-02-04 Simon Marchi <simon.marchi@efficios.com>
2898
2899 * record-btrace.c (record_btrace_handle_async_inferior_event):
2900 Don't clear async event handler.
2901 (record_btrace_target::wait): Clear async event handler at
2902 beginning.
2903
baa8575b
SM
29042021-02-04 Simon Marchi <simon.marchi@efficios.com>
2905
2906 * remote.c (remote_target::wait): Clear async event handler at
2907 beginning, mark if needed at the end.
2908 (remote_async_inferior_event_handler): Don't set or clear async
2909 event handler.
2910
6b36ddeb
SM
29112021-02-04 Simon Marchi <simon.marchi@efficios.com>
2912
2913 * async-event.h (async_event_handler_func): Add documentation.
2914 * async-event.c (check_async_event_handlers): Don't clear
2915 async_event_handler ready flag.
2916 * infrun.c (infrun_async_inferior_event_handler): Clear ready
2917 flag.
2918 * record-btrace.c (record_btrace_handle_async_inferior_event):
2919 Likewise.
2920 * record-full.c (record_full_async_inferior_event_handler):
2921 Likewise.
2922 * remote-notif.c (remote_async_get_pending_events_handler):
2923 Likewise.
2924 * remote.c (remote_async_inferior_event_handler): Likewise.
2925
72d383bb
SM
29262021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
2927
2928 * infrun.c (handle_inferior_event): Move stop_soon variable to
2929 inner scope.
2930
408f6686
PA
29312021-02-03 Pedro Alves <pedro@palves.net>
2932
2933 * infcmd.c (detach_command): Hold strong reference to target, and
2934 if all-stop on entry, restart threads on exit.
2935 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
2936 (restart_stepped_thread): ... this new function. Also handle
2937 trap_expected.
2938 (restart_after_all_stop_detach): New function.
2939 * infrun.h (restart_after_all_stop_detach): Declare.
2940
ac7d717c
PA
29412021-02-03 Pedro Alves <pedro@palves.net>
2942
2943 * infrun.c (struct step_over_info): Initialize fields.
2944 (prepare_for_detach): Handle ongoing in-line step over.
2945
e87f0fe8
PA
29462021-02-03 Pedro Alves <pedro@palves.net>
2947
2948 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
2949 here...
2950 * remote.c (remote_target::remote_detach_1): ... and here ...
2951 * target.c (target_detach): ... instead of here.
2952 * target.h (target_ops::detach): Add comment.
2953
8ff53139
PA
29542021-02-03 Pedro Alves <pedro@palves.net>
2955
2956 * infrun.c (struct wait_one_event): Move higher up.
2957 (prepare_for_detach): Abort in-progress displaced steps instead of
2958 letting them complete.
2959 (handle_one): If the inferior is detaching, don't add the thread
2960 back to the global step-over chain.
2961 (restart_threads): Don't restart threads if detaching.
2962 (handle_signal_stop): Remove inferior::detaching reference.
2963
91475068
PA
29642021-02-03 Pedro Alves <pedro@palves.net>
2965
2966 * infrun.c (prepare_for_detach): Don't release scoped_restore
2967 before returning.
2968
d758e62c
PA
29692021-02-03 Pedro Alves <pedro@palves.net>
2970
2971 * infrun.c (handle_one): New function, factored out from ...
2972 (stop_all_threads): ... here.
2973
b0083dd7
PA
29742021-02-03 Pedro Alves <pedro@palves.net>
2975
2976 * remote.c (remote_notif_stop_ack): Don't error out on
2977 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
2978 (remote_target::discard_pending_stop_replies): Don't delete
2979 in-flight notification; instead, clear its contents.
2980
621cc310
PA
29812021-02-03 Pedro Alves <pedro@palves.net>
2982
2983 * remote.c (extended_remote_target::attach): Set target async in
2984 the target-non-stop path too.
2985
2ab76a18
PA
29862021-02-03 Pedro Alves <pedro@palves.net>
2987
2988 PR gdb/27055
2989 * infrun.c (handle_signal_stop): Move main context_switch call
2990 earlier, before STOP_QUIETLY_NO_SIGSTOP.
2991
2e3773ff
LS
29922021-02-02 Lancelot SIX <lsix@lancelotsix.com>
2993
2994 * NEWS (Changed commands): Add entry for the behavior change of
2995 the inferior command.
2996 * inferior.c (inferior_command): When no argument is given to the
2997 inferior command, display info about the currently selected
2998 inferior.
2999
e57933dc
SM
30002021-02-02 Simon Marchi <simon.marchi@efficios.com>
3001
3002 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
3003 a sect_offset.
3004 (read_attribute_reprocess): Adjust.
3005
2b0c7f41
SM
30062021-02-02 Simon Marchi <simon.marchi@efficios.com>
3007
3008 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
3009 <gnu_ranges_base>: ... this...
3010 <rnglists_base>: ... and this.
3011 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
3012 <gnu_ranges_base>: ... this...
3013 <rnglists_base>: ... and this.
3014 (read_cutu_die_from_dwo): Adjust
3015 (dwarf2_get_pc_bounds): Adjust
3016 (dwarf2_record_block_ranges): Adjust.
3017 (read_full_die_1): Adjust
3018 (partial_die_info::read): Adjust.
3019 (read_rnglist_index): Adjust.
3020
a1c40103
SM
30212021-02-02 Simon Marchi <simon.marchi@efficios.com>
3022
3023 PR gdb/26813
3024 * dwarf2/read.c (read_loclists_rnglists_header): Add
3025 header_offset parameter and use it.
3026 (read_loclist_index): Read header of the current contribution,
3027 not the one at the beginning of the section.
3028 (read_rnglist_index): Likewise.
3029
b1829e1b
SM
30302021-02-02 Simon Marchi <simon.marchi@efficios.com>
3031
3032 PR gdb/26813
3033 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
3034 requires_reprocessing flag.
3035 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
3036 DW_FORM_loclistx.
3037 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
3038 and DW_FORM_loclistx.
3039 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
3040 instead of set_address for DW_FORM_loclistx and
3041 DW_FORM_rnglistx.
3042
0c800c6e
SM
30432021-02-02 Simon Marchi <simon.marchi@efficios.com>
3044
3045 * dwarf2/read.c (read_loclist_index): Remove bound check for
3046 start of offset.
3047 (read_rnglist_index): Likewise.
3048
05787bad
SM
30492021-02-02 Simon Marchi <simon.marchi@efficios.com>
3050
3051 * dwarf2/read.c (read_loclist_index): Add bound check for the end
3052 of the offset.
3053
5e4d9bbc
SM
30542021-02-02 Simon Marchi <simon.marchi@efficios.com>
3055
3056 * dwarf2/read.c (read_rnglist_index): Fix bound check.
3057
a0c1eeba
SM
30582021-02-02 Simon Marchi <simon.marchi@efficios.com>
3059
3060 * dwarf2/read.c (read_loclist_index): Change complaints into
3061 errors.
3062
2bd3e4b8
TV
30632021-02-02 Tom de Vries <tdevries@suse.de>
3064
3065 PR symtab/24620
3066 * dwarf2/index-write.c (write_one_signatured_type): Skip if
3067 psymtab == nullptr.
3068
82a1fd3a
AB
30692021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
3070
3071 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
3072 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
3073 here from linux-tdep.c and given a new name. Minor cleanups.
3074 (gcore_collect_regset_section_cb): Likewise.
3075 (gcore_collect_thread_registers): Likewise.
3076 (gcore_build_thread_register_notes): Likewise.
3077 (gcore_find_signalled_thread): Likewise.
3078 * gcore.h (gcore_build_thread_register_notes): Declare.
3079 (gcore_find_signalled_thread): Declare.
3080 * fbsd-tdep.c: Add 'gcore.h' include.
3081 (struct fbsd_collect_regset_section_cb_data): Delete.
3082 (fbsd_collect_regset_section_cb): Delete.
3083 (fbsd_collect_thread_registers): Delete.
3084 (struct fbsd_corefile_thread_data): Delete.
3085 (fbsd_corefile_thread): Delete.
3086 (fbsd_make_corefile_notes): Call
3087 gcore_build_thread_register_notes instead of the now deleted
3088 FreeBSD code.
3089 * linux-tdep.c: Add 'gcore.h' include.
3090 (struct linux_collect_regset_section_cb_data): Delete.
3091 (linux_collect_regset_section_cb): Delete.
3092 (linux_collect_thread_registers): Delete.
3093 (linux_corefile_thread): Call
3094 gcore_build_thread_register_notes.
3095 (find_signalled_thread): Delete.
3096 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
3097
ebde6f2d
TV
30982021-01-29 Tom de Vries <tdevries@suse.de>
3099
3100 PR breakpoints/26063
3101 * infrun.c (process_event_stop_test): Reset
3102 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
3103 changed.
3104
0f93c3a2
AB
31052021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3106
3107 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
3108 assert. Extend the header comment.
3109
f237f998
AB
31102021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3111
3112 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
3113 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
3114 * tui/tui-data.h (TUI_STATUS_WIN): Define.
3115 (tui_locator_win_info_ptr): Delete declaration.
3116 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
3117 (tui_disasm_window::set_contents): Fetch state from tui_location
3118 global.
3119 (tui_get_begin_asm_address): Likewise.
3120 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
3121 for locator window.
3122 (get_locator_window): Delete.
3123 (initialize_known_windows): Treat locator window just like all the
3124 rest.
3125 * tui/tui-source.c: Add 'tui/tui-location.h' include.
3126 (tui_source_window::set_contents): Fetch state from tui_location
3127 global.
3128 (tui_source_window::showing_source_p): Likewise.
3129 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
3130 (_locator): Delete.
3131 (tui_locator_win_info_ptr): Delete.
3132 (tui_locator_window::make_status_line): Fetch state from
3133 tui_location global.
3134 (tui_locator_window::rerender): Remove check of 'handle',
3135 reindent function body.
3136 (tui_locator_window::set_locator_fullname): Delete.
3137 (tui_locator_window::set_locator_info): Delete.
3138 (tui_update_locator_fullname): Delete.
3139 (tui_show_frame_info): Likewise.
3140 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
3141 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
3142 tui/tui-location.h and renamed to
3143 tui_location_tracker::set_location.
3144 (tui_locator_window::set_locator_fullname): Moved to
3145 tui/tui-location.h and renamed to
3146 tui_location_tracker::set_fullname.
3147 (tui_locator_window::full_name): Delete.
3148 (tui_locator_window::proc_name): Delete.
3149 (tui_locator_window::line_no): Delete.
3150 (tui_locator_window::addr): Delete.
3151 (tui_locator_window::gdbarch): Delete.
3152 (tui_update_locator_fullname): Delete declaration.
3153 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
3154 for locator window.
3155 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
3156 (tui_display_main): Call function on tui_location directly.
3157 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
3158 * tui/tui-location.c: New file.
3159 * tui/tui-location.h: New file.
3160
8ee511af
SM
31612021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
3162
3163 * gdbtypes.h (get_type_arch): Rename to...
3164 (struct type) <arch>: ... this, update all users.
3165
6ac37371
SM
31662021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
3167
3168 * gdbtypes.h (struct type) <arch>: Rename to...
3169 <arch_owner>: ... this, update all users.
3170 <objfile>: Rename to...
3171 <objfile_owner>: ... this, update all users.
3172
24cf6389
AB
31732021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3174
3175 * gdbcmd.h (execute_command_to_string): Update comment.
3176 * top.c (execute_command_to_string): Update header comment.
3177
2a7f6487
TV
31782021-01-28 Tom de Vries <tdevries@suse.de>
3179
3180 PR breakpoints/27205
3181 * breakpoint.c (create_longjmp_master_breakpoint_probe)
3182 (create_longjmp_master_breakpoint_names): New function, factored out
3183 of ...
3184 (create_longjmp_master_breakpoint): ... here. Only try to install
3185 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
3186 breakpoint in libc.so failed.
3187
59b59f08
LS
31882021-01-27 Lancelot SIX <lsix@lancelotsix.com>
3189
3190 PR gdb/27133
3191 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
3192 unique_ptr is released when the wrapped pointer is kept for later
3193 use.
3194
807f647c
MM
31952021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
3196
3197 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
3198 BLR and BR instructions.
3199 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
3200 (enum aarch64_masks): New.
3201
4ef367bf
TT
32022021-01-26 Tom Tromey <tromey@adacore.com>
3203
3204 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
3205 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
3206 (windows_init_thread_list, windows_nat::handle_load_dll)
3207 (windows_nat::handle_unload_dll, windows_nat_target::resume)
3208 (windows_nat_target::resume)
3209 (windows_nat_target::get_windows_debug_event)
3210 (windows_nat_target::interrupt, windows_xfer_memory)
3211 (windows_nat_target::close): Update.
3212 * nat/windows-nat.c (DEBUG_EVENTS): Use
3213 debug_prefixed_printf_cond.
3214 (matching_pending_stop, fetch_pending_stop)
3215 (continue_last_debug_event): Update.
3216
4cb1265b
MS
32172020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
3218
3219 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
3220 elfcore_write_file_note.
3221
d0cc52bd
SV
32222021-01-26 Shahab Vahedi <shahab@synopsys.com>
3223
3224 * arc-tdep.c (arc_add_reggroups): New function.
3225 (arc_gdbarch_init): Call arc_add_reggroups.
3226
ac3571d9 32272021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
3228
3229 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
3230
9f6c202e
TV
32312021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
3232 Simon Marchi <simon.marchi@polymtl.ca>
3233 Tom de Vries <tdevries@suse.de>
3234
3235 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
3236 DW_AT_ranges.
3237
a625a8c9
TT
32382021-01-25 Tom Tromey <tromey@adacore.com>
3239
3240 * dwarf2/read.c (get_mpz): New function.
3241 (get_dwarf2_rational_constant): Use it.
3242
19184910
TT
32432021-01-25 Tom Tromey <tromey@adacore.com>
3244
3245 * ada-lang.c (resolve_subexp): Handle array context.
3246
b10bae18
TT
32472021-01-23 Tom Tromey <tom@tromey.com>
3248
3249 PR compile/25575
3250 * compile/compile-loc2c.c (note_register): New function.
3251 (pushf_register_address, pushf_register): Use it.
3252
3637a558
TT
32532021-01-23 Tom Tromey <tom@tromey.com>
3254
3255 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
3256 Change type of "registers_used".
3257 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
3258 * dwarf2/loc.c (dwarf2_compile_property_to_c)
3259 (locexpr_generate_c_location, loclist_generate_c_location): Change
3260 type of "registers_used".
3261 * compile/compile.h (compile_dwarf_expr_to_c)
3262 (compile_dwarf_bounds_to_c): Update.
3263 * compile/compile-loc2c.c (pushf_register_address)
3264 (pushf_register, do_compile_dwarf_expr_to_c)
3265 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
3266 of "registers_used".
3267 * compile/compile-c.h (generate_c_for_variable_locations):
3268 Update.
3269 * compile/compile-c-symbols.c (generate_vla_size)
3270 (generate_c_for_for_one_variable): Change type of
3271 "registers_used".
3272 (generate_c_for_variable_locations): Return std::vector.
3273 * compile/compile-c-support.c (generate_register_struct): Change
3274 type of "registers_used".
3275 (compute): Update.
3276
9f7f6cb8
TT
32772021-01-23 Tom Tromey <tom@tromey.com>
3278
3279 * compile/compile-internal.h (class compile_instance)
3280 <set_arguments>: Change return type.
3281 * compile/compile.c (compile_to_object): Remove call to reset.
3282 (compile_instance::set_arguments): Change return type.
3283
dd5ca05f
SM
32842021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
3285
3286 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
3287 * gdbtypes.h (struct type) <set_owner>: Add asserts.
3288
d3ee35db
LS
32892021-01-23 Lancelot SIX <lsix@lancelotsix.com>
3290
3291 * Makefile.in (SELFTESTS_SRCS): Add
3292 unittests/gdb_tilde_expand-selftests.c.
3293 * unittests/gdb_tilde_expand-selftests.c: New file.
3294
9d2d8a16
AB
32952021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3296
3297 PR cli/25956
3298 * NEWS: Mention new command.
3299 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
3300 (version_style): Define.
3301 (cli_style_option::cli_style_option): Add intensity parameter, and
3302 use as appropriate.
3303 (_initialize_cli_style): Register version style set/show commands.
3304 * cli/cli-style.h (cli_style_option): Add intensity parameter.
3305 (version_style): Declare.
3306 * top.c (print_gdb_version): Use version_stype, and styled_string
3307 to print the GDB version string.
3308
e7b43072
AB
33092021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3310
3311 * utils.c (emit_style_escape): Only emit an escape sequence if the
3312 requested style is different than the current applied style.
3313 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
3314 current applied_style.
3315 (fputs_styled): Remove is_default check.
3316 (fputs_styled_unfiltered): Likewise.
3317 (vfprintf_styled_no_gdbfmt): Likewise.
3318
2189c312
SM
33192021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3320
3321 * remote.h (remote_debug_printf): New.
3322 (remote_debug_printf_nofunc): New.
3323 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
3324 * remote.c: Use above macros throughout file.
3325
02349803
SM
33262021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3327
3328 * remote.h (remote_debug): Change to bool.
3329 * remote.c (remote_debug): Change to bool.
3330 (_initialize_remote): Adjust.
3331
cda09ec9
SM
33322021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3333
3334 * target.h (remote_debug): Move to...
3335 * remote.h (remote_debug): ... here.
3336 * top.c (remote_debug): Move to...
3337 * remote.c (remote_debug): ... here.
3338 * remote-sim.c: Include remote.h.
3339
baf2b57f
SM
33402021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3341
3342 * cli/cli-cmds.c (show_remote_debug): Remove.
3343 (show_remote_timeout): Remove.
3344 (_initialize_cli_cmds): Don't register commands.
3345 * remote.c (show_remote_debug): Move here.
3346 (show_remote_timeout): Move here.
3347 (_initialize_remote): Register commands.
3348
344e9841
SM
33492021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3350
3351 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
3352 type::objfile method instead.
3353
30625020
SM
33542021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3355
3356 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
3357 use the type::is_objfile_owned method.
3358
5b7d941b
SM
33592021-01-22 Simon Marchi <simon.marchi@efficios.com>
3360
3361 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
3362 (TYPE_OWNER): Remove.
3363 (TYPE_OBJFILE): Adjust.
3364 (struct main_type) <flag_objfile_owned>: Rename to...
3365 <m_flag_objfile_owned>: ... this.
3366 <owner>: Rename to...
3367 <m_owner>: ... this.
3368 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
3369 methods.
3370 (TYPE_ALLOC): Adjust.
3371 * gdbtypes.c (alloc_type): Adjust.
3372 (alloc_type_arch): Adjust.
3373 (alloc_type_copy): Adjust.
3374 (get_type_arch): Adjust.
3375 (smash_type): Adjust.
3376 (lookup_array_range_type): Adjust.
3377 (recursive_dump_type): Adjust.
3378 (copy_type_recursive): Adjust.
3379 * compile/compile-c-types.c (convert_func): Adjust.
3380 (convert_type_basic): Adjust.
3381 * compile/compile-cplus-types.c (compile_cplus_convert_func):
3382 Adjust.
3383 * language.c
3384 (language_arch_info::type_and_symbol::alloc_type_symbol):
3385 Adjust.
3386
d5d24e12
LM
33872021-01-21 Luis Machado <luis.machado@linaro.org>
3388
3389 * coffread.c (enter_linenos): Passing string to complaint.
3390 * valops.c (value_assign): Make array view.
3391
a59902a7
SM
33922021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3393
3394 * auto-load.h (debug_auto_load): Move here.
3395 (auto_load_debug_printf): New.
3396 * auto-load.c: Use auto_load_debug_printf.
3397 (debug_auto_load): Move to header.
3398 * linux-thread-db.c (try_thread_db_load): Use
3399 auto_load_debug_printf.
3400 * main.c (captured_main_1): Likewise.
3401
d3abc0ce
SM
34022021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3403
3404 * f-valprint.c (f77_array_offset_tbl): Remove.
3405
1e15fcac
SM
34062021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3407
3408 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
3409
439706e6
SM
34102021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3411
3412 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
3413 of gdb_select.
3414
325d39e4
HD
34152021-01-21 Hannes Domani <ssbssa@yahoo.de>
3416
3417 PR python/19151
3418 * python/py-breakpoint.c (bppy_get_location): Handle
3419 bp_hardware_breakpoint.
3420 (bppy_init): Likewise.
3421 (gdbpy_breakpoint_created): Likewise.
3422
7cb6d92a
SM
34232021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3424
3425 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
3426
d4dd4fca
SM
34272021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3428
3429 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
3430 (_initialize_gdb_bfd): Adjust.
3431
de53369b
SM
34322021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3433
3434 PR gdb/26828
3435 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
3436
17e593e9
SM
34372021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3438
3439 * dwarf2/read.c (follow_die_offset): Add logging.
3440 (dwarf2_per_objfile::age_comp_units): Add logging.
3441
6bd434d6
SM
34422021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3443
3444 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
3445 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
3446 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
3447 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
3448 * arm-tdep.c (struct frame_unwind): Make static.
3449 * auto-load.c (auto_load_safe_path_vec): Make static.
3450 * csky-tdep.c (csky_stub_unwind): Make static.
3451 * gdbarch.c (gdbarch_data_registry): Make static.
3452 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
3453 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
3454 * i386-tdep.c (i386_frame_setup_skip_insns,
3455 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
3456 Make static.
3457 * infrun.c (observer_mode): Make static.
3458 * linux-nat.c (sigchld_action): Make static.
3459 * linux-thread-db.c (thread_db_list): Make static.
3460 * maint-test-options.c (maintenance_test_options_list):
3461 * mep-tdep.c (mep_csr_registers): Make static.
3462 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
3463 (stats): Make static.
3464 * nat/linux-osdata.c (struct osdata_type): Make static.
3465 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
3466 * progspace.c (last_program_space_num): Make static.
3467 * python/py-param.c (struct parm_constant): Remove struct type
3468 name.
3469 (parm_constants): Make static.
3470 * python/py-record-btrace.c (btpy_list_methods): Make static.
3471 * python/py-record.c (recpy_gap_type): Make static.
3472 * record.c (record_goto_cmdlist): Make static.
3473 * regcache.c (regcache_descr_handle): Make static.
3474 * registry.h (DEFINE_REGISTRY): Make definition static.
3475 * symmisc.c (std_in, std_out, std_err): Make static.
3476 * top.c (previous_saved_command_line): Make static.
3477 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
3478 static.
3479 * unittests/command-def-selftests.c (nr_duplicates,
3480 nr_invalid_prefixcmd, lists): Make static.
3481 * unittests/observable-selftests.c (test_notification): Make
3482 static.
3483 * unittests/optional/assignment/1.cc (counter): Make static.
3484 * unittests/optional/assignment/2.cc (counter): Make static.
3485 * unittests/optional/assignment/3.cc (counter): Make static.
3486 * unittests/optional/assignment/4.cc (counter): Make static.
3487 * unittests/optional/assignment/5.cc (counter): Make static.
3488 * unittests/optional/assignment/6.cc (counter): Make static.
3489
a6c11cbb
JS
34902021-01-20 Joel Sherrill <joel@rtems.org>
3491
3492 PR gdb/27219
3493 * remote.c (struct remote_thread_info) <resume_state>: Rename
3494 to...
3495 <get_resume_state>: ... this.
3496 (remote_target::resume): Adjust.
3497 (remote_target::commit_resume): Adjust.
3498 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
3499
6f52fdf4
SDJ
35002021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
3501 Tom Tromey <tom@tromey.com>
3502
3503 * stap-probe.c (stap_parse_single_operand): Handle '!'
3504 operator.
3505 (stap_parse_argument_conditionally): Likewise.
3506 Skip spaces after processing open-parenthesis sub-expression.
3507 (stap_parse_argument_1): Skip spaces after call to
3508 stap_parse_argument_conditionally.
3509 Handle case when right-side expression is a parenthesized
3510 sub-expression.
3511 Skip spaces after call to stap_parse_argument_1.
3512
1c3b85ad
LS
35132021-01-19 Lancelot SIX <lsix@lancelotsix.com>
3514
3515 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
3516
a9a87d35
LM
35172021-01-19 Luis Machado <luis.machado@linaro.org>
3518
3519 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
3520 memory and save data.
3521 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
3522 (trad_frame_set_unknown, trad_frame_set_value_bytes)
3523 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3524 (trad_frame_value_bytes_p): Remove.
3525 (trad_frame_reset_saved_regs): Adjust documentation.
3526 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
3527 constructor and reset the state of the registers.
3528 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3529 (trad_frame_value_bytes_p, trad_frame_set_value)
3530 (trad_frame_set_realreg, trad_frame_set_addr)
3531 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
3532 (trad_frame_set_reg_realreg): Update to call member function.
3533 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
3534 (trad_frame_get_prev_register): Likewise.
3535
3536 * aarch64-tdep.c (aarch64_analyze_prologue)
3537 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
3538 (aarch64_prologue_prev_register): Update to use member functions.
3539 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
3540 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
3541 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
3542 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
3543 (arm_make_epilogue_frame_cache): Likewise.
3544 * avr-tdep.c (avr_frame_unwind_cache)
3545 (avr_frame_prev_register): Likewise.
3546 * cris-tdep.c (cris_scan_prologue): Likewise.
3547 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
3548 * frv-tdep.c (frv_analyze_prologue): Likewise.
3549 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
3550 * lm32-tdep.c (lm32_frame_cache): Likewise.
3551 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3552 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3553 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
3554 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
3555 (reset_saved_regs): Adjust to set realreg.
3556 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
3557 call member functions.
3558 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
3559 * s390-tdep.c (s390_prologue_frame_unwind_cache)
3560 (s390_backchain_frame_unwind_cache): Likewise.
3561 * score-tdep.c (score7_analyze_prologue)
3562 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
3563 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
3564 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3565 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
3566 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3567 * tilegx-tdep.c (tilegx_analyze_prologue)
3568 (tilegx_frame_cache): Likewise.
3569 * v850-tdep.c (v850_frame_cache): Likewise.
3570 * vax-tdep.c (vax_frame_cache): Likewise.
3571
bdec2917
LM
35722021-01-19 Luis Machado <luis.machado@linaro.org>
3573
3574 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
3575 of buffer + length.
3576 (put_frame_register_bytes): Likewise.
3577 Adjust documentation.
3578 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
3579 (safe_frame_unwind_memory): Likewise.
3580 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
3581 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
3582 gdb::array_view.
3583 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
3584 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
3585 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3586 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
3587 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
3588 * dwarf2/loc.c (rw_pieced_value): Likewise.
3589 * hppa-tdep.c (hppa_frame_cache): Likewise.
3590 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
3591 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
3592 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3593 (i386_linux_rt_sigtramp_start): Likewise.
3594 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3595 * i386-tdep.c (i386_register_to_value): Likewise.
3596 * i387-tdep.c (i387_register_to_value): Likewise.
3597 * ia64-tdep.c (ia64_register_to_value): Likewise.
3598 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
3599 (m32r_linux_rt_sigtramp_start): Likewise.
3600 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
3601 * m68k-tdep.c (m68k_register_to_value): Likewise.
3602 * mips-tdep.c (mips_register_to_value)
3603 (mips_value_to_register): Likewise.
3604 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
3605 (ppcfbsd_sigtramp_frame_cache): Likewise.
3606 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
3607 (ppcobsd_sigtramp_frame_cache): Likewise.
3608 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
3609 (rs6000_register_to_value): Likewise.
3610 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3611 * tramp-frame.c (tramp_frame_start): Likewise.
3612 * valops.c (value_assign): Likewise.
3613
ccbe4c82
LM
36142021-01-19 Luis Machado <luis.machado@linaro.org>
3615
3616 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
3617 array_view.
3618 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
3619 instead of buffer and size.
3620 (trad_frame_set_reg_value_bytes): Likewise.
3621 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
3622 (trad_frame_set_value_bytes): Likewise.
3623
0e7620dc
MF
36242021-01-18 Mike Frysinger <vapier@gentoo.org>
3625
3626 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
3627
6a9ad81c
AB
36282021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
3629
3630 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
3631 (riscv_fbsd_gregset): Use riscv_supply_regset.
3632 (riscv_fbsd_fpregset): Likewise.
3633 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
3634 (riscv_linux_fregset): Likewise.
3635 * riscv-tdep.c (riscv_supply_regset): Define new function.
3636 * riscv-tdep.h (riscv_supply_regset): Declare new function.
3637
d3d7d1ba
TV
36382021-01-18 Tom de Vries <tdevries@suse.de>
3639
3640 PR tdep/27172
3641 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
3642 New macro.
3643 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
3644 for SEGV_BNDERR.
3645
aa2838cc
SM
36462021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3647
3648 * remote.c (class remote_target) <remote_hostio_send_command,
3649 remote_hostio_parse_result>: Constify parameter.
3650 (remote_hostio_parse_result): Likewise.
3651 (remote_target::remote_hostio_send_command): Adjust.
3652 (remote_target::remote_hostio_pread_vFile): Adjust.
3653 (remote_target::fileio_readlink): Adjust.
3654 (remote_target::fileio_fstat): Adjust.
3655
b5c8f22d
SM
36562021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3657
3658 * remote.c (remote_target::start_remote): Move wait_status to
3659 narrower scope.
3660
e3b2741b
SM
36612021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3662
3663 * remote.c (class remote_target):
3664 <add_current_inferior_and_thread>: Constify parameter.
3665 (stop_reply_extract_thread): Likewise.
3666 (remote_target::get_current_thread): Likewise.
3667 (remote_target::add_current_inferior_and_thread): Likewise.
3668
cecb1912
SM
36692021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3670
3671 * remote.c (class remote_target)
3672 <remote_unpack_thread_info_response,
3673 parse_threadlist_response>: Constify parameter and/or return
3674 value and or local variable.
3675 (stub_unpack_int): Likewise.
3676 (unpack_nibble): Likewise.
3677 (unpack_byte): Likewise.
3678 (unpack_int): Likewise.
3679 (unpack_string): Likewise.
3680 (unpack_threadid): Likewise.
3681 (remote_target::remote_unpack_thread_info_response): Likewise.
3682 (remote_target::parse_threadlist_response): Likewise.
3683
5a11fff0
AB
36842021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
3685
3686 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
3687
17e89137
LS
36882021-01-14 Lancelot Six <lsix@lancelotsix.com>
3689
3690 * MAINTAINERS (Write After Approval): Add myself.
3691
58eadc4b
BE
36922021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3693
3694 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
3695 because is_trivially_default_constructible was first implemented with
3696 gcc-5.
3697
5fae2a2c
TV
36982021-01-14 Tom de Vries <tdevries@suse.de>
3699
3700 PR breakpoints/27151
3701 * objfiles.h (in_plt_section): Handle .plt.sec.
3702
8f66807b
AB
37032021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3704
3705 PR gdb/26819
3706 * remote.c
3707 (remote_target::select_thread_for_ambiguous_stop_reply): New
3708 member function.
3709 (remote_target::process_stop_reply): Call
3710 select_thread_for_ambiguous_stop_reply.
3711
bd497355
SM
37122021-01-13 Simon Marchi <simon.marchi@efficios.com>
3713
3714 * record-btrace.c (class record_btrace_target): Remove.
3715 (record_btrace_target::commit_resume): Remove.
3716 * record-full.c (class record_full_target): Remove.
3717 (record_full_target::commit_resume): Remove.
3718
c9d22089
SM
37192021-01-13 Simon Marchi <simon.marchi@efficios.com>
3720
3721 * remote.c (enum class resume_state): New.
3722 (struct resumed_pending_vcont_info): New.
3723 (struct remote_thread_info) <resume_state, set_not_resumed,
3724 set_resumed_pending_vcont, resumed_pending_vcont_info,
3725 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
3726 New.
3727 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
3728 (remote_target::remote_add_thread): Adjust.
3729 (remote_target::process_initial_stop_replies): Adjust.
3730 (remote_target::resume): Adjust.
3731 (remote_target::commit_resume): Rely on state in
3732 remote_thread_info and not on tp->executing.
3733 (remote_target::process_stop_reply): Adjust.
3734
d8d1feb4
SM
37352021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3736
3737 * arc-tdep.h (arc_debug_printf): New.
3738 * arc-tdep.c: Use arc_debug_printf.
3739 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
3740 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
3741 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
3742
fb0f5031
SM
37432021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3744
3745 * arc-tdep.h (arc_debug): Change type to bool.
3746 * arc-tdep.c (arc_debug): Change type to bool.
3747 (arc_analyze_prologue): Adjust.
3748 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
3749 * arc-linux-nat.c (ps_get_thread_area): Adjust.
3750
5bf7e91b
SM
37512021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3752
3753 * auto-load.c (auto_load_objfile_script_1): Use bool.
3754 (execute_script_contents): Use bool.
3755
db972fce
SM
37562021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3757
3758 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
3759 comment here.
3760 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
3761 comment to header.
3762 * extension-priv.h (struct extension_language_script_ops)
3763 <auto_load_enabled>: Return bool.
3764 * extension.h (ext_lang_auto_load_enabled): Return bool, move
3765 comment here.
3766 * extension.c (ext_lang_auto_load_enabled): Return bool, move
3767 comment to header.
3768 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
3769 move comment here.
3770 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
3771 move comment to header.
3772 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
3773 move comment here.
3774 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
3775 move comment to header.
3776
5e12f48f
SM
37772021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3778
3779 * auto-load.h (file_is_auto_load_safe): Change return type to
3780 bool, move comment here.
3781 * auto-load.c (file_is_auto_load_safe): Change return type and
3782 advice_printed to bool. Move comment to header.
3783
54ca9002
SM
37842021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3785
3786 * jit.c (jit_debug_printf): New, use throughout file.
3787
24a7f1b5
SM
37882021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3789
3790 * infrun.c (normal_stop): Fix indentation.
3791
fe7a351a
SM
37922021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3793
3794 * top.h (readnow_symbol_files, readnever_symbol_files): Move
3795 declarations to ...
3796 * symfile.h: ... here.
3797 * symfile.c: Update doc.
3798
16e9019e
SM
37992021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3800
3801 * target.h (baud_rate, serial_parity): Move declarations...
3802 * serial.h: ... here.
3803 * main.c: Include serial.h.
3804 * serial.c (baud_rate, serial_parity): Update doc.
3805
b2f2ae0d
SM
38062021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3807
3808 * top.c (pre_init_ui_hook): Remove.
3809
5291fe3c
SP
38102021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3811
3812 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
3813 (aarch64_vnv_type): Add "bf" type in h field of v registers.
3814 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
3815 * features/aarch64-fpu.xml: Add bfloat16 type.
3816
ce38f5ed
AB
38172021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3818
3819 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
3820
7c654b71
AB
38212021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3822
3823 * f-exp.y (dot_ops): Rename to...
3824 (fortran_operators): ...this. Add a header comment. Add symbol
3825 based operators.
3826 (yylex): Update to use fortran_operators not dot_ops. Remove
3827 special handling for '**', this is now included in
3828 fortran_operators.
3829
c6185dce
SM
38302021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3831
3832 * arch/aarch64-insn.h (aarch64_debug_printf): New.
3833 * arch/aarch64-insn.c: Use aarch64_debug_printf.
3834 * aarch64-tdep.c: Use aarch64_debug_printf.
3835
eef401dc
SM
38362021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3837
3838 * solib-aix.c (solib_aix_debug_printf): New, use throughout
3839 file.
3840
062eaacb
SM
38412021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3842
3843 * jit.c (jit_debug): Change type to bool.
3844 (_initialize_jit): Adjust.
3845
54585eee
TT
38462021-01-09 Tom Tromey <tom@tromey.com>
3847
3848 PR compile/23672
3849 * compile/compile.c (compile_to_object): Avoid crash when
3850 osabi_triplet_regexp returns NULL.
3851
bc167b6b
TT
38522021-01-09 Tom Tromey <tom@tromey.com>
3853
3854 * tracepoint.h (class collection_list) <append_exp>: Take a
3855 std::string.
3856 * tracepoint.c (collection_list::append_exp): Take a std::string.
3857 (encode_actions_1): Update.
3858
8fc48b79
TT
38592021-01-08 Tom Tromey <tromey@adacore.com>
3860
3861 * parse.c (parse_expression): Add void_context_p parameter. Use
3862 parse_exp_in_context.
3863 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
3864 parse_expression.
3865 (print_command, call_command): Update.
3866 * expression.h (parse_expression): Add void_context_p parameter.
3867
3c8c6de2
AB
38682021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3869
3870 * value.c (set_value_component_location): Adjust the VALUE_LVAL
3871 for internalvar components that have a dynamic location.
3872
1940319c
TV
38732021-01-08 Tom de Vries <tdevries@suse.de>
3874
3875 PR gdb/26881
3876 * breakpoint.c (create_exception_master_breakpoint_probe)
3877 (create_exception_master_breakpoint_hook): Factor out
3878 of ...
3879 (create_exception_master_breakpoint): ... here. Only try to install
3880 the master exception breakpoint in objfile.debug using the
3881 _Unwind_DebugHook method, if the install using probes in objfile
3882 failed.
3883
e3436813
AB
38842021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3885
3886 * f-lang.c (fortran_value_subarray): Call value_from_component.
3887
e904f56d
MF
38882021-01-07 Mike Frysinger <vapier@gentoo.org>
3889
3890 * remote-sim.c: Include memory-map.h.
3891 (gdbsim_target): Define memory_map override.
3892 (gdbsim_target::memory_map): Define.
3893
959d6a67
TT
38942021-01-07 Tom Tromey <tromey@adacore.com>
3895
3896 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
3897
d4813f10
TT
38982021-01-07 Tom Tromey <tromey@adacore.com>
3899
3900 * ada-lang.c (add_component_interval): Start loop using vector's
3901 updated size.
3902
b49180ac
TT
39032021-01-06 Tom Tromey <tromey@adacore.com>
3904
3905 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
3906 Do not cast result.
3907 * valarith.c (fixed_point_binop): Handle multiplication
3908 and division specially.
3909 * valops.c (value_to_gdb_mpq): New function.
3910 (value_cast_to_fixed_point): Use it.
3911
55195361
HD
39122021-01-05 Hannes Domani <ssbssa@yahoo.de>
3913
3914 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3915 Call wnoutrefresh instead of tui_win_info::refresh_window.
3916
1b6d4bb2
HD
39172021-01-05 Hannes Domani <ssbssa@yahoo.de>
3918
3919 * tui/tui-source.c (tui_source_window::show_line_number):
3920 Redraw second space after line number.
3921
b5ff370e
HD
39222021-01-05 Hannes Domani <ssbssa@yahoo.de>
3923
3924 PR tui/26927
3925 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3926 Fix source pad size in prefresh.
3927 (tui_source_window_base::show_source_content): Grow source pad
3928 if necessary.
3929
c68ea49f
MF
39302021-01-04 Mike Frysinger <vapier@gentoo.org>
3931
3932 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
3933 (bfin_frame_align): Use align_down.
3934
e4ad960a
TV
39352021-01-04 Tom de Vries <tdevries@suse.de>
3936
3937 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
3938 terminators that do not terminate anything.
3939
3ec3145c
SM
39402021-01-04 Simon Marchi <simon.marchi@efficios.com>
3941
3942 * debug.c (debug_print_depth): New.
3943 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
3944 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
3945 * infrun.c (start_step_over): Use
3946 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3947 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
3948 INFRUN_SCOPED_DEBUG_START_END.
3949 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3950
e71daf80
SM
39512021-01-04 Simon Marchi <simon.marchi@efficios.com>
3952
3953 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
3954
335709bc
SM
39552021-01-04 Simon Marchi <simon.marchi@efficios.com>
3956
3957 * utils.c (vfprintf_unfiltered): Print timestamp only when
3958 previous debug output ended with a newline.
3959
098caef4
LM
39602021-01-04 Luis Machado <luis.machado@linaro.org>
3961
3962 Update all users of trad_frame_saved_reg to use the new member
3963 functions.
3964
3965 Remote all struct keywords from declarations of trad_frame_saved_reg
3966 types, except on forward declarations.
3967
3968 * aarch64-tdep.c: Update.
3969 * alpha-mdebug-tdep.c: Update.
3970 * alpha-tdep.c: Update.
3971 * arc-tdep.c: Update.
3972 * arm-tdep.c: Update.
3973 * avr-tdep.c: Update.
3974 * cris-tdep.c: Update.
3975 * csky-tdep.c: Update.
3976 * frv-tdep.c: Update.
3977 * hppa-linux-tdep.c: Update.
3978 * hppa-tdep.c: Update.
3979 * hppa-tdep.h: Update.
3980 * lm32-tdep.c: Update.
3981 * m32r-linux-tdep.c: Update.
3982 * m32r-tdep.c: Update.
3983 * m68hc11-tdep.c: Update.
3984 * mips-tdep.c: Update.
3985 * moxie-tdep.c: Update.
3986 * riscv-tdep.c: Update.
3987 * rs6000-tdep.c: Update.
3988 * s390-linux-tdep.c: Update.
3989 * s390-tdep.c: Update.
3990 * score-tdep.c: Update.
3991 * sparc-netbsd-tdep.c: Update.
3992 * sparc-sol2-tdep.c: Update.
3993 * sparc64-fbsd-tdep.c: Update.
3994 * sparc64-netbsd-tdep.c: Update.
3995 * sparc64-obsd-tdep.c: Update.
3996 * sparc64-sol2-tdep.c: Update.
3997 * tilegx-tdep.c: Update.
3998 * v850-tdep.c: Update.
3999 * vax-tdep.c: Update.
4000
4001 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
4002 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
4003
4004 * trad-frame.c: Update.
4005 Remove TF_REG_* enum.
4006 (trad_frame_alloc_saved_regs): Add a static assertion to check for
4007 a trivially-constructible struct.
4008 (trad_frame_reset_saved_regs): Adjust to use member function.
4009 (trad_frame_value_p): Likewise.
4010 (trad_frame_addr_p): Likewise.
4011 (trad_frame_realreg_p): Likewise.
4012 (trad_frame_value_bytes_p): Likewise.
4013 (trad_frame_set_value): Likewise.
4014 (trad_frame_set_realreg): Likewise.
4015 (trad_frame_set_addr): Likewise.
4016 (trad_frame_set_unknown): Likewise.
4017 (trad_frame_set_value_bytes): Likewise.
4018 (trad_frame_get_prev_register): Likewise.
4019 * trad-frame.h: Update.
4020 (trad_frame_saved_reg_kind): New enum.
4021 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
4022 <m_kind, m_reg>: New member fields.
4023 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
4024 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
4025 <is_addr, is_unknown, is_value_bytes>: New member functions.
4026
9898e882
SM
40272021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
4028
4029 * target-float.c: Fix typos.
4030
b66b4e65
HD
40312021-01-02 Hannes Domani <ssbssa@yahoo.de>
4032
4033 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
4034
b5b5650a
JB
40352021-01-01 Joel Brobecker <brobecker@adacore.com>
4036
4037 * gdbarch.sh: Update copyright year range.
4038
3666a048
JB
40392021-01-01 Joel Brobecker <brobecker@adacore.com>
4040
4041 Update copyright year range in copyright header of all GDB files.
4042
ff7e39b6
JB
40432021-01-01 Joel Brobecker <brobecker@adacore.com>
4044
4045 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
4046 to the list of directories to update.
4047
2b47c078
JB
40482021-01-01 Joel Brobecker <brobecker@adacore.com>
4049
4050 * top.c (print_gdb_version): Update copyright year.
4051
476923f1 40522021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 4053
476923f1 4054 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 4055
476923f1 4056For older changes see ChangeLog-2020.
c906108c
SS
4057\f
4058Local Variables:
4059mode: change-log
4060left-margin: 8
4061fill-column: 74
4062version-control: never
57da7796 4063coding: utf-8
c906108c 4064End: