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