]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
New target methods for memory tagging support
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
dbe692af
LM
12021-03-24 Luis Machado <luis.machado@linaro.org>
2
3 * remote.c (remote_target) <supports_memory_tagging>: New method
4 override.
5 <fetch_memtags>: New method override.
6 <store_memtags>: New method override.
7 (remote_target::supports_memory_tagging): New method.
8 (remote_target::fetch_memtags): New method.
9 (remote_target::store_memtags): New method.
10 * target-delegates.c: Regenerate.
11 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
12 method.
13 <fetch_memtags>: New virtual method.
14 <store_memtags>: New virtual method.
15 (target_supports_memory_tagging): Define.
16 (target_fetch_memtags): Define.
17 (target_store_memtags): Define.
18 * target-debug.h (target_debug_print_size_t)
19 (target_debug_print_const_gdb_byte_vector_r)
20 (target_debug_print_gdb_byte_vector_r): New functions.
21
66848ebc
SM
222021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
23
24 * target.h (target_longname): Remove.
25
c8fbd44a
SM
262021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
27
28 * target.h (target_is_pushed): Remove, update callers to use
29 inferior::target_is_pushed instead.
30 * target.c (target_is_pushed): Remove.
31
02980c56
SM
322021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
33
34 * target.h (push_target): Remove, update callers to use
35 inferior::push_target.
36 * target.c (push_target): Remove.
37 * inferior.h (class inferior) <push_target>: New overload.
38
fadf6add
SM
392021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
40
41 * target.h (unpush_target): Remove, update all callers
42 to use `inferior::unpush_target` instead.
43 (struct target_unpusher) <operator()>: Just declare.
44 * target.c (unpush_target): Remove.
45 (target_unpusher::operator()): New.
46
702cf3f5
AB
472021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
48
49 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
50 error.
51 (process_full_comp_unit): Validate the top-level tag before
52 processing the first DIE.
53 (read_func_scope): Ensure we have a valid builder.
54
46fec642
AB
552021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
56
57 * objc-lang.c (objc_demangle): Renamed to
58 objc_language::demangle_symbol, and moved later in the file.
59 (objc_language::sniff_from_mangled_name): Call demangle_symbol
60 member function.
61 (objc_language::demangle_symbol): Defined outside of class
62 declaration. The definition is the old objc_demangle with NULL
63 changed to nullptr, and if conditions relating to nullptr pointers
64 or null character checks made explicit.
65 * objc-lang.h (objc_demangle): Delete declaration.
66
08dedd66
ML
672021-03-22 Martin Liska <mliska@suse.cz>
68
69 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
70 (_initialize_arm_tdep): Likewise.
71
eb36a3eb
TT
722021-03-20 Tom Tromey <tom@tromey.com>
73
74 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
75 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
76 * psymtab.h (make_psymbol_functions): Don't declare.
77 * psymtab.c (make_psymbol_functions): Remove.
78 (maintenance_print_psymbols): Update.
79 * psympriv.h (struct psymbol_functions): Add no-argument
80 constructor.
81 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
82 <partial_symtabs>: Remove.
83 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
84 * elfread.c (read_partial_symbols): Update.
85 (elf_symfile_read): Remove check for existing partial symbols.
86 Don't clear "qf".
87 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
88 partial symbols.
89 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
90 partial symtabs.
91 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
92 parameter.
93 * dbxread.c (dbx_symfile_read): Create partial symtabs.
94 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
95
e1114590
TT
962021-03-20 Tom Tromey <tom@tromey.com>
97
98 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
99 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
100 * symfile-debug.c (objfile::has_partial_symbols)
101 (objfile::find_last_source_symtab)
102 (objfile::forget_cached_source_info)
103 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
104 (objfile::print_stats, objfile::dump)
105 (objfile::expand_symtabs_for_function)
106 (objfile::expand_all_symtabs)
107 (objfile::expand_symtabs_with_fullname)
108 (objfile::map_matching_symbols)
109 (objfile::expand_symtabs_matching)
110 (objfile::find_pc_sect_compunit_symtab)
111 (objfile::map_symbol_filenames)
112 (objfile::find_compunit_symtab_by_address)
113 (objfile::lookup_global_symbol_language)
114 (objfile::require_partial_symbols): Update.
115 * psymtab.c (maintenance_print_psymbols)
116 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
117 * objfiles.h (struct objfile) <qf>: Now a forward_list.
118 * objfiles.c (objfile_relocate1): Update.
119 * elfread.c (elf_symfile_read): Update.
120
de909f0b
TT
1212021-03-20 Tom Tromey <tom@tromey.com>
122
123 * objfiles.h (struct objfile) <psymtabs>: Remove method.
124
caf8c1e5
TT
1252021-03-20 Tom Tromey <tom@tromey.com>
126
127 * psymtab.c (psymbol_functions::count_psyms): Rename.
128 (psymbol_functions::print_stats): Update.
129 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
130 method.
131
3aa31ce7
TT
1322021-03-20 Tom Tromey <tom@tromey.com>
133
134 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
135 (psymbol_functions::find_pc_sect_psymtab): Rename.
136 (psymbol_functions::find_pc_sect_compunit_symtab)
137 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
138 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
139 Declare new method.
140 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
141
7b249e47
TT
1422021-03-20 Tom Tromey <tom@tromey.com>
143
144 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
145 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
146 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
147 parameter.
148 (add_psymbol_to_bcache): Remove.
149 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
150 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
151 Likewise.
152 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
153 <add_psymbol>: Likewise.
154 (standard_psymtab, legacy_psymtab): Likewise.
155 * mdebugread.c (parse_partial_symbols): Update.
156 (handle_psymbol_enumerators): Add partial_symtabs parameter.
157 (handle_psymbol_enumerators): Update.
158 (new_psymtab): Add partial_symtabs parameter.
159 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
160 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
161 parameter.
162 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
163 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
164 Update.
165 * dbxread.c (read_dbx_symtab): Update.
166 (start_psymtab): Add partial_symtabs parameter.
167 (dbx_end_psymtab): Update.
168 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
169 (ctf_psymtab): Add partial_symtabs parameter.
170 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
171 Update.
172 (scan_partial_symbols): Add partial_symtabs parameter.
173 (scan_partial_symbols, elfctf_build_psymtabs)
174 (ctf_psymtab_add_enums): Update.
175
d1eef86d
TT
1762021-03-20 Tom Tromey <tom@tromey.com>
177
178 * symfile.c (read_symbols): Use objfile method.
179 * symfile-debug.c (objfile::require_partial_symbols): New method.
180 * psymtab.h (require_partial_symbols): Don't declare.
181 * psymtab.c (require_partial_symbols): Use objfile method. Now
182 static.
183 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
184 (psymbol_functions::lookup_symbol)
185 (psymbol_functions::lookup_global_symbol_language)
186 (psymbol_functions::find_last_source_symtab)
187 (psymbol_functions::forget_cached_source_info)
188 (psymbol_functions::print_stats)
189 (psymbol_functions::expand_symtabs_for_function)
190 (psymbol_functions::expand_all_symtabs)
191 (psymbol_functions::expand_symtabs_with_fullname)
192 (psymbol_functions::map_symbol_filenames)
193 (psymbol_functions::map_matching_symbols)
194 (psymbol_functions::expand_symtabs_matching)
195 (psymbol_functions::find_compunit_symtab_by_address)
196 (maintenance_print_psymbols, maintenance_info_psymtabs)
197 (maintenance_check_psymtabs): Update.
198 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
199 new method.
200
eb00e468
TT
2012021-03-20 Tom Tromey <tom@tromey.com>
202
203 * xcoffread.c (xcoff_sym_fns): Update.
204 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
205 * symfile-debug.c (objfile::has_partial_symbols): Use
206 can_lazily_read_symbols.
207 (debug_sym_read_psymbols): Remove.
208 (debug_sym_fns, install_symfile_debug_logging): Update.
209 * quick-symbol.h (struct quick_symbol_functions)
210 <can_lazily_read_symbols, read_partial_symbols>: New methods.
211 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
212 * mipsread.c (ecoff_sym_fns): Update.
213 * machoread.c (macho_sym_fns): Update.
214 * elfread.c (struct lazy_dwarf_reader): New.
215 (elf_symfile_read): Update.
216 (read_psyms): Now a method of lazy_dwarf_reader.
217 (elf_sym_fns): Update.
218 (elf_sym_fns_lazy_psyms): Remove.
219 * dbxread.c (aout_sym_fns): Update.
220 * coffread.c (coff_sym_fns): Update.
221
b29b98cf
TT
2222021-03-20 Tom Tromey <tom@tromey.com>
223
224 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
225 (reread_symbols): Move reset_psymtabs call later.
226 * objfiles.c (objfile::objfile): Don't initialize
227 partial_symtabs.
228
17d66340
TT
2292021-03-20 Tom Tromey <tom@tromey.com>
230
231 * dwarf2/read.c (dwarf2_build_psymtabs): Call
232 set_partial_symtabs.
233 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
234 * psymtab.h (make_psymbol_functions): Add partial_symtabs
235 parameter.
236 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
237 parameter.
238 (psymbol_functions::find_pc_sect_compunit_symtab)
239 (psymbol_functions::print_stats, psymbol_functions::dump)
240 (psymbol_functions::has_symbols): Update.
241 (make_psymbol_functions, dump_psymtab_addrmap): Add
242 partial_symtabs parameter.
243 (maintenance_print_psymbols): Update.
244 (psymbol_functions::expand_symtabs_matching): Update.
245 * psympriv.h (struct psymbol_functions): Add constructor.
246 <m_partial_symtabs>: New member.
247 <set_partial_symtabs>: New method.
248
84685904
TT
2492021-03-20 Tom Tromey <tom@tromey.com>
250
251 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
252 parameter.
253 (process_psymtab_comp_unit_reader)
254 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
255 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
256 Reference psymtabs via per_bfd.
257
79cc99f6
TT
2582021-03-20 Tom Tromey <tom@tromey.com>
259
260 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
261 Remove.
262 (add_address_entry): Remove objfile parameter.
263 (add_address_entry_worker): Update.
264 (write_address_map): Replace objfile parameter with per_bfd.
265 (write_gdbindex, write_psymtabs_to_index): Update.
266
4829711b
TT
2672021-03-20 Tom Tromey <tom@tromey.com>
268
269 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
270 print_bcache parameter.
271 * symfile-debug.c (objfile::print_stats): Add print_bcache
272 parameter.
273 * quick-symbol.h (struct quick_symbol_functions)
274 <print_stats>: Add print_bcache parameter.
275 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
276 code to psymtab.c.
277 (print_objfile_statistics): Move psymtab code to psymtab.c.
278 * psymtab.c (count_psyms): Move from symmisc.c.
279 (psymbol_functions::print_stats): Print partial symbol and bcache
280 statistics. Add print_bcache parameter.
281 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
282 (struct objfile) <print_stats>: Add print_bcache parameter.
283 * maint.c (maintenance_print_statistics): Update.
284
efd7398e
TT
2852021-03-20 Tom Tromey <tom@tromey.com>
286
287 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
288 member.
289 * dwarf2/read.c (create_addrmap_from_index)
290 (create_addrmap_from_aranges): Set per_bfd addrmap.
291 (dwarf2_read_gdb_index): Don't set partial_symtabs.
292 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
293 per_bfd addrmap.
294 (dwarf2_read_debug_names): Don't set partial_symtabs.
295 (dwarf2_initialize_objfile): Likewise.
296
51962708
TT
2972021-03-20 Tom Tromey <tom@tromey.com>
298
299 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
300 earlier.
301
484b1090
TT
3022021-03-20 Tom Tromey <tom@tromey.com>
303
304 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
305 (~psymtab_discarder, keep): Update.
306 <m_objfile>: Remove.
307 <m_partial_symtabs>: New member.
308 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
309
7e9c0476
TT
3102021-03-20 Tom Tromey <tom@tromey.com>
311
312 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
313 (xcoff_end_psymtab): Update.
314 (scan_xcoff_symtab): Add partial_symtabs parameter.
315 (xcoff_initial_scan): Update.
316 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
317 * mdebugread.c (mdebug_build_psymtabs): Update.
318 (parse_partial_symbols): Add partial_symtabs parameter.
319 * dbxread.c (dbx_symfile_read): Update.
320 (read_dbx_symtab): Add partial_symtabs parameter.
321 (read_dbx_symtab): Update.
322 (dbx_end_psymtab): Add partial_symtabs parameter.
323
75336a5a
TT
3242021-03-20 Tom Tromey <tom@tromey.com>
325
326 * quick-symbol.h (struct quick_symbol_functions)
327 <relocated>: New method.
328 * psymtab.h (struct psymbol_functions) <relocated>: New
329 method.
330 <fill_psymbol_map>: Declare method.
331 <m_psymbol_map>: New member.
332 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
333 (psymbol_functions::find_compunit_symtab_by_address): Update.
334 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
335 (struct objfile) <psymbol_map>: Remove.
336 * objfiles.c (objfile_relocate1): Update.
337
39298a5d
TT
3382021-03-20 Tom Tromey <tom@tromey.com>
339
340 * psympriv.h (struct psymbol_functions): New.
341 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
342 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
343 (objfile::lookup_global_symbol_language): Update.
344 * quick-symbol.h (struct quick_symbol_functions): Convert function
345 pointers to methods. Add virtual destructor.
346 (quick_symbol_functions_up): New typedef.
347 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
348 (dwarf2_debug_names_functions): Don't declare.
349 (make_psymbol_functions): Declare.
350 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
351 (psymbol_functions::find_pc_sect_compunit_symtab)
352 (psymbol_functions::lookup_symbol)
353 (psymbol_functions::lookup_global_symbol_language)
354 (psymbol_functions::find_last_source_symtab)
355 (psymbol_functions::forget_cached_source_info)
356 (psymbol_functions::print_stats, psymbol_functions::dump)
357 (psymbol_functions::expand_symtabs_for_function)
358 (psymbol_functions::expand_all_symtabs)
359 (psymbol_functions::expand_symtabs_with_fullname)
360 (psymbol_functions::map_symbol_filenames)
361 (psymbol_functions::map_matching_symbols)
362 (psymbol_functions::expand_symtabs_matching)
363 (psymbol_functions::has_symbols)
364 (psymbol_functions::find_compunit_symtab_by_address): Rename.
365 (psym_functions): Remove.
366 (make_psymbol_functions): New function.
367 * objfiles.h (struct objfile) <qf>: Change type.
368 * elfread.c (elf_symfile_read): Update.
369 * dwarf2/read.c (struct dwarf2_base_index_functions)
370 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
371 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
372 (dwarf2_base_index_functions::find_last_source_symtab)
373 (dwarf2_base_index_functions::forget_cached_source_info)
374 (dwarf2_base_index_functions::map_symtabs_matching_filename)
375 (dwarf2_gdb_index::lookup_symbol)
376 (dwarf2_base_index_functions::print_stats)
377 (dwarf2_gdb_index::dump)
378 (dwarf2_gdb_index::expand_symtabs_for_function)
379 (dwarf2_base_index_functions::expand_all_symtabs)
380 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
381 Rename.
382 (dwarf2_gdb_index::map_matching_symbols): New method.
383 (dwarf2_gdb_index::expand_symtabs_matching): New method.
384 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
385 (dwarf2_base_index_functions::map_symbol_filenames)
386 (dwarf2_base_index_functions::has_symbols): Rename.
387 (dwarf2_gdb_index_functions): Remove.
388 (dwarf2_debug_names_index::lookup_symbol)
389 (dwarf2_debug_names_index::dump)
390 (dwarf2_debug_names_index::expand_symtabs_for_function)
391 (dwarf2_debug_names_index::map_matching_symbols)
392 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
393 (dwarf2_debug_names_functions): Remove.
394 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
395 Declare.
396
5c3f1e5b
TT
3972021-03-20 Tom Tromey <tom@tromey.com>
398
399 * psymtab.c (require_partial_symbols): Check that 'sf' is not
400 null.
401 * xcoffread.c (xcoff_sym_fns): Update.
402 * symfile.h (struct sym_fns) <qf>: Remove.
403 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
404 * symfile-debug.c (objfile::has_partial_symbols)
405 (objfile::find_last_source_symtab)
406 (objfile::forget_cached_source_info)
407 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
408 (objfile::print_stats, objfile::dump)
409 (objfile::expand_symtabs_for_function)
410 (objfile::expand_all_symtabs)
411 (objfile::expand_symtabs_with_fullname)
412 (objfile::map_matching_symbols)
413 (objfile::expand_symtabs_matching)
414 (objfile::find_pc_sect_compunit_symtab)
415 (objfile::map_symbol_filenames)
416 (objfile::find_compunit_symtab_by_address)
417 (objfile::lookup_global_symbol_language, debug_sym_fns)
418 (install_symfile_debug_logging): Update.
419 * objfiles.h (struct objfile) <qf>: New member.
420 * mipsread.c (ecoff_sym_fns): Update.
421 * machoread.c (macho_sym_fns): Update.
422 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
423 Don't declare.
424 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
425 * dbxread.c (aout_sym_fns): Update.
426 * coffread.c (coff_sym_fns): Update.
427
9b99dcc8
TT
4282021-03-20 Tom Tromey <tom@tromey.com>
429
430 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
431 (expand_symtabs_file_matcher_ftype)
432 (expand_symtabs_symbol_matcher_ftype)
433 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
434 Move to quick-symbol.h.
435 * quick-symbol.h: New file.
436
4d080b46
TT
4372021-03-20 Tom Tromey <tom@tromey.com>
438
439 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
440 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
441 (basic_lookup_transparent_type_quick)
442 (find_pc_sect_compunit_symtab, find_symbol_at_address)
443 (find_line_symtab, global_symbol_searcher::expand_symtabs):
444 Update.
445 * symmisc.c (print_objfile_statistics, dump_objfile)
446 (maintenance_expand_symtabs): Update.
447 * symfile.c (symbol_file_add_with_addrs)
448 (expand_symtabs_matching, map_symbol_filenames): Update.
449 * symfile-debug.c (objfile::has_partial_symbols)
450 (objfile::find_last_source_symtab)
451 (objfile::forget_cached_source_info)
452 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
453 (objfile::print_stats, objfile::dump)
454 (objfile::expand_symtabs_for_function)
455 (objfile::expand_all_symtabs)
456 (objfile::expand_symtabs_with_fullname)
457 (objfile::map_matching_symbols)
458 (objfile::expand_symtabs_matching)
459 (objfile::find_pc_sect_compunit_symtab)
460 (objfile::map_symbol_filenames)
461 (objfile::find_compunit_symtab_by_address)
462 (objfile::lookup_global_symbol_language): New methods.
463 (debug_sym_quick_functions): Remove.
464 (debug_sym_fns, install_symfile_debug_logging): Update.
465 * source.c (forget_cached_source_info_for_objfile)
466 (select_source_symtab): Update.
467 * objfiles.h (struct objfile): Add methods corresponding to
468 quick_symbol_functions.
469 * objfiles.c (objfile::has_partial_symbols): Move to
470 symfile-debug.c.
471 * linespec.c (iterate_over_all_matching_symtabs): Update.
472 * cp-support.c (add_symbol_overload_list_qualified): Update.
473 * ada-lang.c (add_nonlocal_symbols): Update.
474
fae2120b
TT
4752021-03-20 Tom Tromey <tom@tromey.com>
476
477 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
478 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
479 bool.
480 * symfile-debug.c (debug_qf_has_symbols): Return bool.
481 * psymtab.c (psym_has_symbols): Return bool.
482 * objfiles.c (objfile::has_partial_symbols): Return bool.
483 * dwarf2/read.c (dw2_has_symbols): Return bool.
484
a8ad4f3c
TT
4852021-03-20 Tom Tromey <tom@tromey.com>
486
487 * symfile.c (read_symbols): Update.
488 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
489 (objfile_has_partial_symbols): Don't declare.
490 * objfiles.c (objfile::has_partial_symbols): Rename from
491 objfile_has_partial_symbols.
492 (objfile_has_symbols, have_partial_symbols): Update.
493 * elfread.c (elf_symfile_read): Update.
494 * dwarf2/read.c (dwarf2_has_info): Update.
495 * coffread.c (coff_symfile_read): Update.
496
70182375
TT
4972021-03-20 Tom Tromey <tom@tromey.com>
498
499 * coffread.c: Include dwarf2/public.h.
500 * dwarf2/frame.c: Include dwarf2/public.h.
501 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
502 * dwarf2/public.h: New file.
503 * dwarf2/read.c: Include dwarf2/public.h.
504 * elfread.c: Include dwarf2/public.h.
505 * machoread.c: Include dwarf2/public.h.
506 * symfile.h (dwarf2_has_info, enum dw_index_kind)
507 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
508 (dwarf2_build_frame_info): Move to dwarf2/public.h.
509 * xcoffread.c: Include dwarf2/public.h.
510
18038e63
TT
5112021-03-20 Tom Tromey <tom@tromey.com>
512
513 * symfile.h (enum dwarf2_section_enum)
514 (dwarf2_get_section_info): Move to dwarf2/read.h.
515 * dwarf2/read.h (enum dwarf2_section_enum)
516 (dwarf2_get_section_info): Move from symfile.h.
517
219f56b4
PA
5182021-03-19 Pedro Alves <pedro@palves.net>
519
520 * thread.c (any_thread_of_inferior): Check if there's a selected
521 thread before calling inferior_thread().
522
15310fd4
TT
5232021-03-18 Tom Tromey <tromey@adacore.com>
524
525 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
526 get_DW_UT_name.
527 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
528 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
529
763b8efd
AB
5302021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
531
532 * python/py-param.c (get_set_value): Update header comment.
533
f058c521
SM
5342021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
535
536 * infrun.c (check_multi_target_resumption): Remove argument to
537 all_non_exited_inferiors.
538
383228bc
CB
5392021-03-16 Christian Biesinger <cbiesinger@google.com>
540
541 * windows-nat.c (windows_init_thread_list): Add message to
542 debug log.
543
7807d76a
AB
5442021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
545
546 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
547 well as PyLong_Check for Python 2.
548
675da9a5
TT
5492021-03-15 Tom Tromey <tromey@adacore.com>
550
551 PR build/27579:
552 * rust-exp.y (maker_map): Use gdb::hash_enum.
553 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
554
4800761a
SM
5552021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
556
557 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
558 end of debug print.
559
eb5dd737
SM
5602021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
561
562 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
563 parameter, adjust caller.
564
6813ceb0
TT
5652021-03-15 Tom Tromey <tromey@adacore.com>
566
567 * ada-exp.y (simple_exp): Always push a result for unary '+'.
568
3b5c4de0
TT
5692021-03-15 Tom Tromey <tromey@adacore.com>
570
571 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
572 ada_ensure_varsize_limit.
573
c04da66c
TT
5742021-03-15 Tom Tromey <tromey@adacore.com>
575
576 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
577 fixed-point.
578 * ada-exp.y (maybe_overload): New function.
579 (ada_wrap_overload): New function.
580 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
581 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
582 (or_else_exp, xor_exp, primary): Update.
583
9863c3b5
TT
5842021-03-15 Tom Tromey <tromey@adacore.com>
585
586 PR ada/27545:
587 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
588 call for tagged type.
589
1ac74522
TT
5902021-03-15 Tom Tromey <tromey@adacore.com>
591
592 * ada-exp.y (exp1): Handle resolution of the right hand side of an
593 assignment.
594
207582c0
TT
5952021-03-15 Tom Tromey <tromey@adacore.com>
596
597 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
598 container.
599 (ada_assign_operation::evaluate): Update.
600 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
601 Change return type.
602
8d624a9d
FW
6032021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
604
605 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
606
ba6a0ef3
AB
6072021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
608
609 * python/python.c (gdbpy_source_objfile_script): Use
610 make_scoped_restore to restore gdbpy_current_objfile.
611 (gdbpy_execute_objfile_script): Likewise.
612
7c290a04
TT
6132021-03-14 Tom Tromey <tom@tromey.com>
614
615 * dwarf2/read.c (read_attribute_value): Use cu_header
616 consistently.
617
0280fdcc
TT
6182021-03-14 Tom Tromey <tom@tromey.com>
619
620 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
621 (peek_die_abbrev): Use reader.abfd.
622
a9f172c6
TT
6232021-03-14 Tom Tromey <tom@tromey.com>
624
625 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
626 m_header_read_in.
627
7c32eebb
TT
6282021-03-13 Tom Tromey <tom@tromey.com>
629
630 * dwarf2/read.c (struct partial_die_info): Update.
631 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
632 (load_partial_dies, partial_die_info::partial_die_info): Update.
633 * dwarf2/abbrev.h (lookup_abbrev): Constify.
634
27012aba
TT
6352021-03-13 Tom Tromey <tom@tromey.com>
636
637 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
638
fece451c
CB
6392021-03-12 Christian Biesinger <cbiesinger@google.com>
640
641 PR threads/27239
642 * cp-support.c: Use scoped_segv_handler_restore.
643 * event-top.c (thread_local_segv_handler): Made static.
644 (scoped_segv_handler_restore::scoped_segv_handler_restore):
645 New function.
646 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
647 function.
648 * event-top.h (class scoped_segv_handler_restore): New class.
649 (thread_local_segv_handler): Removed.
650
7056f312
TT
6512021-03-10 Tom Tromey <tromey@adacore.com>
652
653 * parser-defs.h (parser_state): Change completion to bool.
654 <parse_completion>: Likewise.
655 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
656 (ada_resolve_variable, ada_resolve_function): Update.
657 * ada-lang.c (ada_find_operator_symbol): Change
658 parse_completion to bool.
659 (ada_resolve_funcall, ada_resolve_variable)
660 (ada_resolve_function): Likewise.
661
ccdc02ed
TT
6622021-03-09 Tom Tromey <tromey@adacore.com>
663
664 * eval.c (operation::evaluate_funcall): Use function formal
665 parameter types when evaluating.
666
fbb1aace
AB
6672021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
668
669 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
670 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
671 and owner to m_owner.
672
611aa09d
FW
6732021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
674
675 * f-exp.h (eval_op_f_loc): Declare.
676 (expr::fortran_loc_operation): New typedef.
677 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
678 UNOP_INTRINSIC.
679 (f77_keywords): Add LOC keyword.
680 * f-lang.c (eval_op_f_loc): New function.
681 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
682
eef32f59
AB
6832021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
684
685 * f-exp.h (eval_op_f_array_shape): Declare.
686 (fortran_array_shape_operation): New type.
687 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
688 UNOP_INTRINSIC.
689 (f77_keywords): Add "shape" keyword.
690 * f-lang.c (fortran_array_shape): New function.
691 (eval_op_f_array_shape): New function.
692 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
693
7ba155b3
AB
6942021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
695
696 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
697 of this function.
698 (expr::fortran_array_size_1arg): New type.
699 (expr::fortran_array_size_2arg): Likewise.
700 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
701 UNOP_OR_BINOP_INTRINSIC.
702 (f77_keywords): Add "size" keyword.
703 * f-lang.c (fortran_array_size): New function.
704 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
705 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
706
e14816a8
AB
7072021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
708
709 * f-exp.h (eval_op_f_rank): Declare.
710 (expr::fortran_rank_operation): New typedef.
711 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
712 UNOP_INTRINSIC.
713 (f77_keywords): Add "rank" keyword.
714 * f-lang.c (eval_op_f_rank): New function.
715 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
716
3dd93bf8
TT
7172021-03-08 Tom Tromey <tom@tromey.com>
718
719 * printcmd.c (set_command): Remove null check.
720 * value.c (init_if_undefined_command): Remove null check.
721
9c79936b
TT
7222021-03-08 Tom Tromey <tom@tromey.com>
723
724 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
725 Update.
726 * p-exp.y (variable): Update.
727 * go-exp.y (variable): Update.
728 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
729 Remove overload for objfile.
730 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
731 parameter.
732 (check_objfile): Likewise.
733 (dump_for_expression): Likewise. Remove overload for objfile.
734 (class var_msym_value_operation): Use bound_minimal_symbol.
735 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
736 parameter.
737 (var_msym_value_operation::evaluate_for_address)
738 (var_msym_value_operation::evaluate_for_sizeof)
739 (var_msym_value_operation::evaluate_for_cast): Update.
740 * d-exp.y (PrimaryExpression): Update.
741 * c-exp.y (variable): Update.
742 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
743 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
744 Update.
745 * ada-exp.y (write_var_or_type): Update.
746
40d07d07
TT
7472021-03-08 Tom Tromey <tom@tromey.com>
748
749 * parser-defs.h (exp_uses_objfile): Return bool.
750 * parse.c (exp_uses_objfile): Return bool.
751
0b2b0b82
TT
7522021-03-08 Tom Tromey <tom@tromey.com>
753
754 * value.h (eval_skip_value): Don't declare.
755 * opencl-lang.c (eval_opencl_assign): Update.
756 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
757 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
758 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
759 * expression.h (enum noside) <EVAL_SKIP>: Remove.
760 * expop.h (typeof_operation::evaluate)
761 (decltype_operation::evaluate, unop_addr_operation::evaluate)
762 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
763 (cxx_cast_operation::evaluate): Update.
764 * eval.c (eval_skip_value): Remove.
765 (eval_op_scope, eval_op_var_entry_value)
766 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
767 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
768 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
769 (eval_op_binary, eval_op_subscript, eval_op_equal)
770 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
771 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
772 (eval_op_complement, eval_op_lognot, eval_op_ind)
773 (eval_op_memval, eval_op_preinc, eval_op_predec)
774 (eval_op_postinc, eval_op_postdec, eval_op_type)
775 (eval_binop_assign_modify, eval_op_objc_msgcall)
776 (eval_multi_subscript, logical_and_operation::evaluate)
777 (logical_or_operation::evaluate, array_operation::evaluate)
778 (operation::evaluate_for_cast)
779 (var_msym_value_operation::evaluate_for_cast)
780 (var_value_operation::evaluate_for_cast): Update.
781 * c-lang.c (c_string_operation::evaluate): Update.
782 * c-exp.h (objc_nsstring_operation::evaluate)
783 (objc_selector_operation::evaluate): Update.
784 * ada-lang.c (ada_assign_operation::evaluate)
785 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
786 (ada_atr_size): Update.
787
96db551d
TT
7882021-03-08 Tom Tromey <tom@tromey.com>
789
790 * eval.c: Merge "namespace" scopes.
791
ce284361
TT
7922021-03-08 Tom Tromey <tom@tromey.com>
793
794 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
795 <release>: Inline.
796 * parse.c (expr_builder::expr_builder, expr_builder::release):
797 Remove.
798
b9d06571
TT
7992021-03-08 Tom Tromey <tom@tromey.com>
800
801 * parse.c (expression::expression, expression::~expression):
802 Remove.
803 * expression.h (struct expression): Inline constructor. Remove
804 destructor.
805
79ab486e
TT
8062021-03-08 Tom Tromey <tom@tromey.com>
807
808 * std-operator.def (BINOP_END): Remove.
809 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
810 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
811 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
812 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
813 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
814 BINOP_END.
815
48fa6f23
TT
8162021-03-08 Tom Tromey <tom@tromey.com>
817
818 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
819
43f542e3
TT
8202021-03-08 Tom Tromey <tom@tromey.com>
821
822 * std-operator.def (OP_EXTENDED0): Remove.
823
5d9ba982
TT
8242021-03-08 Tom Tromey <tom@tromey.com>
825
826 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
827 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
828 Remove.
829
d357570d
TT
8302021-03-08 Tom Tromey <tom@tromey.com>
831
832 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
833 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
834
0922dc84
TT
8352021-03-08 Tom Tromey <tom@tromey.com>
836
837 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
838 * ada-lang.c (ada_binop_minmax): Update.
839 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
840 Use BINOP_MIN and BINOP_MAX.
841
1eaebe02
TT
8422021-03-08 Tom Tromey <tom@tromey.com>
843
844 * value.h (evaluate_subexp_with_coercion): Don't declare.
845 * parse.c (exp_descriptor_standard): Remove.
846 (expr_builder::expr_builder, expr_builder::release): Update.
847 (expression::expression): Remove size_t parameter.
848 (expression::~expression): Simplify.
849 (expression::resize): Remove.
850 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
851 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
852 (write_exp_elt_longcst, write_exp_elt_floatcst)
853 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
854 (write_exp_string_vector, write_exp_bitstring): Remove.
855 * p-lang.h (class pascal_language) <opcode_print_table,
856 op_print_tab>: Remove.
857 * p-lang.c (pascal_language::op_print_tab): Remove.
858 * opencl-lang.c (class opencl_language) <opcode_print_table>:
859 Remove.
860 * objc-lang.c (objc_op_print_tab): Remove.
861 (class objc_language) <opcode_print_table>: Remove.
862 * m2-lang.h (class m2_language) <opcode_print_table,
863 op_print_tab>: Remove.
864 * m2-lang.c (m2_language::op_print_tab): Remove.
865 * language.h (struct language_defn) <post_parser, expression_ops,
866 opcode_print_table>: Remove.
867 * language.c (language_defn::expression_ops)
868 (auto_or_unknown_language::opcode_print_table): Remove.
869 * go-lang.h (class go_language) <opcode_print_table,
870 op_print_tab>: Remove.
871 * go-lang.c (go_language::op_print_tab): Remove.
872 * f-lang.h (class f_language) <opcode_print_table>: Remove
873 <op_print_tab>: Remove.
874 * f-lang.c (f_language::op_print_tab): Remove.
875 * expression.h (union exp_element): Remove.
876 (struct expression): Remove size_t parameter from constructor.
877 <resize>: Remove.
878 <first_opcode>: Update.
879 <nelts, elts>: Remove.
880 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
881 (evaluate_subexp_standard, print_expression, op_string)
882 (dump_raw_expression): Don't declare.
883 * expprint.c (print_expression, print_subexp)
884 (print_subexp_funcall, print_subexp_standard, op_string)
885 (dump_raw_expression, dump_subexp, dump_subexp_body)
886 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
887 (dump_prefix_expression): Update.
888 * eval.c (evaluate_subexp): Remove.
889 (evaluate_expression, evaluate_type): Update.
890 (evaluate_subexpression_type): Remove.
891 (fetch_subexp_value): Remove "pc" parameter. Update.
892 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
893 (evaluate_subexp_standard, evaluate_subexp_for_address)
894 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
895 (evaluate_subexp_for_cast): Remove.
896 (parse_and_eval_type): Update.
897 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
898 * d-lang.c (d_op_print_tab): Remove.
899 (class d_language) <opcode_print_table>: Remove.
900 * c-lang.h (c_op_print_tab): Don't declare.
901 * c-lang.c (c_op_print_tab): Remove.
902 (class c_language, class cplus_language, class asm_language, class
903 minimal_language) <opcode_print_table>: Remove.
904 * breakpoint.c (update_watchpoint, watchpoint_check)
905 (watchpoint_exp_is_const, watch_command_1): Update.
906 * ax-gdb.h (union exp_element): Don't declare.
907 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
908 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
909 (gen_expr_binop_rest): Remove.
910 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
911 * ada-lang.c (ada_op_print_tab): Remove.
912 (class ada_language) <post_parser, opcode_print_table>: Remove.
913
f2a98603
TT
9142021-03-08 Tom Tromey <tom@tromey.com>
915
916 * go-lang.c (go_language::expression_ops): Don't declare.
917 * go-lang.h (class go_language) <expression_ops>: Remove.
918 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
919 Remove.
920 (class opencl_language) <expression_ops>: Remove.
921 * d-lang.c (class d_language) <expression_ops>: Remove.
922 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
923 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
924 (class c_language, class cplus_language, class asm_language)
925 (class minimal_language) <expression_ops>: Remove.
926
d3c54a1c
TT
9272021-03-08 Tom Tromey <tom@tromey.com>
928
929 * ada-lang.c (resolve_subexp, replace_operator_with_call)
930 (evaluate_subexp_type, assign_aggregate)
931 (aggregate_assign_positional, aggregate_assign_from_choices)
932 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
933 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
934 (ada_operator_check, ada_forward_operator_length)
935 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
936 Remove.
937 (post_parser): Update.
938 (class ada_language) <expresssion_ops>: Remove.
939
5871f0a3
TT
9402021-03-08 Tom Tromey <tom@tromey.com>
941
942 * m2-lang.h (class m2_language) <expresssion_ops,
943 exp_descriptor_modula2>: Remove.
944 * m2-lang.c (evaluate_subexp_modula2)
945 (m2_language::exp_descriptor_modula2): Remove.
946
a99be8c1
TT
9472021-03-08 Tom Tromey <tom@tromey.com>
948
949 * f-lang.h (class f_language) <expresssion_ops>: Remove.
950 <exp_descriptor_tab>: Remove.
951 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
952 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
953 (print_subexp_f, dump_subexp_body_f, operator_check_f)
954 (f_language::exp_descriptor_tab, fortran_prepare_argument):
955 Remove.
956
aa1da9ed
TT
9572021-03-08 Tom Tromey <tom@tromey.com>
958
959 * rust-lang.h (class rust_language) <expression_ops,
960 exp_descriptor_tab>: Remove.
961 * rust-lang.c (rust_evaluate_funcall): Remove.
962 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
963 EVAL_SKIP.
964 (rust_evaluate_subexp): Remove.
965 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
966 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
967 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
968
08a057e6
TT
9692021-03-08 Tom Tromey <tom@tromey.com>
970
971 * ada-exp.y: Create operations.
972 (empty_stoken): Remove.
973 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
974 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
975 (components): New global.
976 (push_component, choice_component, pop_component, pop_components):
977 New functions.
978 (associations): New global
979 (push_association, pop_association, pop_associations): New
980 functions.
981 (ada_parse): Update.
982 (write_var_from_sym, write_int): Create operations.
983 (write_exp_op_with_string): Remove.
984 (write_object_renaming, write_selectors, write_ambiguous_var)
985 (write_var_or_type, write_name_assoc): Create operations.
986 * ada-lang.h (ada_index_type): Declare.
987 * ada-lang.c (ada_index_type): No longer static.
988
d308ba78
TT
9892021-03-08 Tom Tromey <tom@tromey.com>
990
991 * f-exp.y: Create operations.
992 (f_language::parser): Update.
993
f1b8ceef
TT
9942021-03-08 Tom Tromey <tom@tromey.com>
995
996 * m2-exp.y: Create operations.
997 (m2_language::parser): Update.
998
3163898e
TT
9992021-03-08 Tom Tromey <tom@tromey.com>
1000
1001 * p-exp.y: Create operations.
1002 (pascal_language::parser): Update.
1003
9412fdcc
TT
10042021-03-08 Tom Tromey <tom@tromey.com>
1005
1006 * d-exp.y: Create operations.
1007 (d_parse): Update.
1008
bb4e0574
TT
10092021-03-08 Tom Tromey <tom@tromey.com>
1010
1011 * go-exp.y: Create operations.
1012 (go_language::parser): Update.
1013
d182f279
TT
10142021-03-08 Tom Tromey <tom@tromey.com>
1015
1016 * objc-lang.c (end_msglist): Create operations.
1017 * c-exp.y: Change parser to create operations.
1018 (write_destructor_name): Remove.
1019 (c_parse): Update.
1020
c1299a23
TT
10212021-03-08 Tom Tromey <tom@tromey.com>
1022
1023 * rust-exp.y: Create operations.
1024 (rust_parser::convert_params_to_expression): Change return type.
1025 (binop_maker_ftype): New typedef.
1026 (maker_map): New global.
1027 (rust_parser::convert_ast_to_expression): Change return type.
1028 (rust_language::parser): Update.
1029 (_initialize_rust_exp): Initialize maker_map.
1030
4c5e7a93
TT
10312021-03-08 Tom Tromey <tom@tromey.com>
1032
1033 * stap-probe.c (binop_maker_ftype): New typedef.
1034 (stap_maker_map): New global.
1035 (stap_make_binop): New function.
1036 (stap_parse_register_operand): Return operation_up.
1037 (stap_parse_single_operand, stap_parse_argument_conditionally)
1038 (stap_parse_argument_1): Likewise.
1039 (stap_parse_argument): Create operations.
1040 (stap_probe::parse_arguments): Update.
1041 (_initialize_stap_probe): Initialize stap_maker_map.
1042 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
1043 type.
1044 * i386-tdep.h (i386_stap_parse_special_token): Change return
1045 type.
1046 * i386-tdep.c (i386_stap_parse_special_token_triplet)
1047 (i386_stap_parse_special_token_three_arg_disp)
1048 (i386_stap_parse_special_token): Change return type.
1049 * gdbarch.sh (stap_parse_special_token): Change return type.
1050 * gdbarch.c: Rebuild.
1051 * gdbarch.h: Rebuild.
1052 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
1053 type.
1054 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
1055 return type.
1056
482ddd69
TT
10572021-03-08 Tom Tromey <tom@tromey.com>
1058
1059 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
1060 * gdbarch.h: Rebuild.
1061 * gdbarch.c: Rebuild.
1062 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
1063 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
1064 return type.
1065 (amd64_dtrace_parse_probe_argument): Update.
1066
8227d9e2
TT
10672021-03-08 Tom Tromey <tom@tromey.com>
1068
1069 * parser-defs.h (struct parser_state) <push, push_new,
1070 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
1071 wrap2>: New methods.
1072 <m_operations>: New member.
1073 * parse.c (parser_state::push_c_string)
1074 (parser_state::push_symbol, parser_state::push_dollar): New
1075 methods.
1076
4933522d
TT
10772021-03-08 Tom Tromey <tom@tromey.com>
1078
1079 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
1080 New member.
1081 (struct parser_state) <mark_struct_expression>: New method.
1082 * parse.c (parser_state::mark_struct_expression): Update assert.
1083 (parser_state::mark_struct_expression): New method.
1084 (parser_state::mark_completion_tag): Update assert.
1085 (parse_expression_for_completion): Handle expout_last_op.
1086
413403fc
TT
10872021-03-08 Tom Tromey <tom@tromey.com>
1088
1089 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
1090 now in superclass.
1091 * value.h (fetch_subexp_value): Add "op" parameter.
1092 * value.c (init_if_undefined_command): Update.
1093 * tracepoint.c (validate_actionline, encode_actions_1): Update.
1094 * stap-probe.c (stap_probe::compile_to_ax): Update.
1095 * printcmd.c (set_command): Update.
1096 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
1097 Update.
1098 * parser-defs.h (struct expr_builder) <set_operation>: New
1099 method.
1100 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
1101 * expression.h (struct expression) <first_opcode>: Update.
1102 <op>: New member.
1103 * expprint.c (dump_raw_expression, dump_prefix_expression):
1104 Update.
1105 * expop.h (class var_value_operation) <get_symbol>: New method.
1106 (class register_operation) <get_name>: New method.
1107 (class equal_operation): No longer a typedef, now a subclass.
1108 (class unop_memval_operation) <get_type>: New method.
1109 (class assign_operation) <get_lhs>: New method.
1110 (class unop_cast_operation) <get_type>: New method.
1111 * eval.c (evaluate_expression, evaluate_type)
1112 (evaluate_subexpression_type): Update.
1113 (fetch_subexp_value): Add "op" parameter.
1114 (parse_and_eval_type): Update.
1115 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
1116 * breakpoint.c (update_watchpoint, watchpoint_check)
1117 (watchpoint_exp_is_const, watch_command_1): Update.
1118 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
1119 Update.
1120
b0f9164c
TT
11212021-03-08 Tom Tromey <tom@tromey.com>
1122
1123 * ada-lang.c (ada_value_binop): Do not use op_string.
1124
a88c4354
TT
11252021-03-08 Tom Tromey <tom@tromey.com>
1126
1127 * expprint.c (dump_for_expression): New overload.
1128 * expop.h (check_objfile, dump_for_expression): Declare new
1129 overloads.
1130 * ada-lang.c (check_objfile): New overload.
1131 (assign_component, ada_aggregate_component::uses_objfile)
1132 (ada_aggregate_component::dump, ada_aggregate_component::assign)
1133 (ada_aggregate_component::assign_aggregate)
1134 (ada_positional_component::uses_objfile)
1135 (ada_positional_component::dump, ada_positional_component::assign)
1136 (ada_discrete_range_association::uses_objfile)
1137 (ada_discrete_range_association::dump)
1138 (ada_discrete_range_association::assign)
1139 (ada_name_association::uses_objfile, ada_name_association::dump)
1140 (ada_name_association::assign)
1141 (ada_choices_component::uses_objfile, ada_choices_component::dump)
1142 (ada_choices_component::assign)
1143 (ada_others_component::uses_objfile, ada_others_component::dump)
1144 (ada_others_component::assign, ada_assign_operation::evaluate):
1145 New methods.
1146 * ada-exp.h (ada_string_operation) <get_name>: New method.
1147 (class ada_assign_operation): New.
1148 (class ada_component): New.
1149 (ada_component_up): New typedef.
1150 (class ada_aggregate_operation, class ada_aggregate_component)
1151 (class ada_positional_component, class ada_others_component)
1152 (class ada_association): New.
1153 (ada_association_up): New typedef.
1154 (class ada_choices_component)
1155 (class ada_discrete_range_association)
1156 (class ada_name_association): New.
1157
d8a4ed8a
TT
11582021-03-08 Tom Tromey <tom@tromey.com>
1159
1160 * ada-lang.c (ada_var_value_operation::resolve)
1161 (ada_funcall_operation::resolve)
1162 (ada_ternop_slice_operation::resolve): New methods.
1163 * ada-exp.h (struct ada_resolvable): New.
1164 (class ada_var_value_operation): Derive from ada_resolvable.
1165 <get_block, resolve>: New methods.
1166 (class ada_funcall_operation): Derive from ada_resolvable.
1167 <resolve>: New method.
1168 (class ada_ternop_slice_operation): Derive from ada_resolvable.
1169 <resolve>: New method.
1170
efe3af2f
TT
11712021-03-08 Tom Tromey <tom@tromey.com>
1172
1173 * ada-lang.c (ada_funcall_operation::evaluate): New method.
1174 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
1175 method.
1176 (class ada_funcall_operation): New.
1177
ebc06ad8
TT
11782021-03-08 Tom Tromey <tom@tromey.com>
1179
1180 * ada-lang.c (ada_structop_operation::evaluate): New method.
1181 * ada-exp.h (class ada_structop_operation): New.
1182
e8c33fa1
TT
11832021-03-08 Tom Tromey <tom@tromey.com>
1184
1185 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
1186 * ada-exp.h (class ada_unop_ind_operation): New.
1187
065ec826
TT
11882021-03-08 Tom Tromey <tom@tromey.com>
1189
1190 * ada-lang.c (ada_binop_exp): No longer static.
1191 * ada-exp.h (ada_binop_exp_operation): New typedef.
1192
9e99f48f
TT
11932021-03-08 Tom Tromey <tom@tromey.com>
1194
1195 * ada-lang.c (ada_val_atr): No longer static.
1196 (ada_atr_val_operation::evaluate): New method.
1197 * ada-exp.h (class ada_atr_val_operation): New.
1198
7631cf6c
TT
11992021-03-08 Tom Tromey <tom@tromey.com>
1200
1201 * ada-lang.c (ada_pos_atr): No longer static.
1202 * ada-exp.h (ada_pos_operation): New typedef.
1203
7992accc
TT
12042021-03-08 Tom Tromey <tom@tromey.com>
1205
1206 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
1207 parameters.
1208 (ada_evaluate_subexp): Use it.
1209
6ad3b8bf
TT
12102021-03-08 Tom Tromey <tom@tromey.com>
1211
1212 * ada-lang.c (ada_binop_minmax): No longer static.
1213 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
1214 New typedefs.
1215
3f4a0053
TT
12162021-03-08 Tom Tromey <tom@tromey.com>
1217
1218 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
1219 New method.
1220 * ada-exp.h (class ada_var_msym_value_operation): New.
1221
99a3b1e7
TT
12222021-03-08 Tom Tromey <tom@tromey.com>
1223
1224 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1225 (ada_var_value_operation::evaluate): New methods.
1226 * ada-exp.h (class ada_var_value_operation): New.
1227
60fa02ca
TT
12282021-03-08 Tom Tromey <tom@tromey.com>
1229
1230 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
1231 * ada-exp.h (class ada_unop_atr_operation): New.
1232
82c3886e
TT
12332021-03-08 Tom Tromey <tom@tromey.com>
1234
1235 * ada-lang.c (ada_binop_in_bounds): No longer static.
1236 * ada-exp.h (class ada_binop_in_bounds_operation): New.
1237
1b1ebfab
TT
12382021-03-08 Tom Tromey <tom@tromey.com>
1239
1240 * ada-lang.c (ada_ternop_slice): No longer static.
1241 * ada-exp.h (class ada_ternop_slice_operation): New.
1242
039e4b76
TT
12432021-03-08 Tom Tromey <tom@tromey.com>
1244
1245 * ada-exp.h (ada_bitwise_operation): New template class.
1246 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
1247 (ada_bitwise_xor_operation): New typedefs.
1248
6e8fb7b7
TT
12492021-03-08 Tom Tromey <tom@tromey.com>
1250
1251 * ada-lang.c (ada_equal_binop): No longer static.
1252 * ada-exp.h (class ada_binop_equal_operation): New.
1253
d9e7db06
TT
12542021-03-08 Tom Tromey <tom@tromey.com>
1255
1256 * ada-lang.c (ada_mult_binop): No longer static.
1257 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
1258 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
1259
73796c73
TT
12602021-03-08 Tom Tromey <tom@tromey.com>
1261
1262 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
1263 * ada-exp.h (class ada_binop_addsub_operation): New.
1264
cd9a3148
TT
12652021-03-08 Tom Tromey <tom@tromey.com>
1266
1267 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1268 (ada_resolve_variable): Declare.
1269 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
1270 (ada_resolve_variable): New functions.
1271 (resolve_subexp): Update.
1272
cf12b17f
TT
12732021-03-08 Tom Tromey <tom@tromey.com>
1274
1275 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
1276 method.
1277 * c-exp.h (class opencl_ternop_cond_operation): New.
1278
944fd3b8
TT
12792021-03-08 Tom Tromey <tom@tromey.com>
1280
1281 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
1282 method.
1283 * c-exp.h (class opencl_logical_binop_operation): New.
1284
33b79214
TT
12852021-03-08 Tom Tromey <tom@tromey.com>
1286
1287 * opencl-lang.c (opencl_structop_operation::evaluate): New
1288 method.
1289 * c-exp.h (class opencl_structop_operation): New.
1290
2492ba36
TT
12912021-03-08 Tom Tromey <tom@tromey.com>
1292
1293 * opencl-lang.c (opencl_logical_not): No longer static. Change
1294 parameters.
1295 (evaluate_subexp_opencl): Update.
1296 * c-exp.h (opencl_notequal_operation): New typedef.
1297
a88c3c8d
TT
12982021-03-08 Tom Tromey <tom@tromey.com>
1299
1300 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
1301 static. Change parameters.
1302 (eval_opencl_assign): No longer static. Add "op" parameter.
1303 (evaluate_subexp_opencl): Update.
1304 * c-exp.h (opencl_binop_operation): New template class.
1305 (opencl_assign_operation, opencl_equal_operation)
1306 (opencl_notequal_operation, opencl_less_operation)
1307 (opencl_gtr_operation, opencl_geq_operation)
1308 (opencl_leq_operation): New typedefs.
1309
e9677704
TT
13102021-03-08 Tom Tromey <tom@tromey.com>
1311
1312 * opencl-lang.c (opencl_value_cast): No longer static.
1313 * c-exp.h (opencl_cast_type_operation): New typedef.
1314
f403a4e4
TT
13152021-03-08 Tom Tromey <tom@tromey.com>
1316
1317 * f-exp.h (eval_op_f_allocated): Declare.
1318 (fortran_allocated_operation): New typedef.
1319 * f-lang.c (eval_op_f_allocated): No longer static.
1320
eb4c9271
TT
13212021-03-08 Tom Tromey <tom@tromey.com>
1322
1323 * f-lang.c (eval_op_f_associated): New functions.
1324 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
1325 typedefs.
1326
58a76c72
TT
13272021-03-08 Tom Tromey <tom@tromey.com>
1328
1329 * f-lang.c (fortran_bound_1arg::evaluate)
1330 (fortran_bound_2arg::evaluate): New methods.
1331 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
1332 New.
1333
2f98abe1
TT
13342021-03-08 Tom Tromey <tom@tromey.com>
1335
1336 * expop.h (class unop_addr_operation) <get_expression>: New
1337 method.
1338 * f-lang.c (fortran_undetermined::value_subarray)
1339 (fortran_undetermined::evaluate): New methods.
1340 (fortran_prepare_argument): New overload.
1341 * f-exp.h (class fortran_range_operation)
1342 (class fortran_undetermined): New classes.
1343
638fd74a
TT
13442021-03-08 Tom Tromey <tom@tromey.com>
1345
1346 * rust-lang.c (rust_structop::evaluate_funcall): New method.
1347 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
1348 method.
1349
a00b7254
TT
13502021-03-08 Tom Tromey <tom@tromey.com>
1351
1352 * expression.h (class operation) <evaluate_funcall>: New methods.
1353 * expop.h (class scope_operation) <evaluate_funcall>: New method.
1354 (class var_value_operation) <evaluate_funcall>: New method.
1355 (class structop_base_operation) <evaluate_funcall>: New method.
1356 (class var_msym_value_operation) <evaluate_funcall>: New method.
1357 (class structop_member_base): New class.
1358 (class structop_member_operation): Derive from
1359 structop_member_base.
1360 (class structop_mptr_operation): Derive from
1361 structop_member_base.
1362 (class funcall_operation): New class.
1363 * eval.c (operation::evaluate_funcall)
1364 (var_value_operation::evaluate_funcall)
1365 (scope_operation::evaluate_funcall)
1366 (structop_member_base::evaluate_funcall)
1367 (structop_base_operation::evaluate_funcall): New methods.
1368
1c02eb30
TT
13692021-03-08 Tom Tromey <tom@tromey.com>
1370
1371 * expop.h (class array_operation): New.
1372 * eval.c (array_operation::evaluate_struct_tuple)
1373 (array_operation::evaluate): New methods.
1374
e4479080
TT
13752021-03-08 Tom Tromey <tom@tromey.com>
1376
1377 * expop.h (class adl_func_operation): New.
1378 * eval.c (adl_func_operation::evaluate): New method.
1379
95d49dfb
TT
13802021-03-08 Tom Tromey <tom@tromey.com>
1381
1382 * ada-lang.c (ada_unop_in_range): No longer static.
1383 * ada-exp.h (class ada_unop_range_operation): New.
1384
7c15d377
TT
13852021-03-08 Tom Tromey <tom@tromey.com>
1386
1387 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
1388 No longer static.
1389 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
1390 (ada_atr_size_operation, ada_abs_operation): New typedefs.
1391
5019124b
TT
13922021-03-08 Tom Tromey <tom@tromey.com>
1393
1394 * expop.h (class logical_and_operation)
1395 (class logical_or_operation): New.
1396 * eval.c (logical_and_operation::evaluate)
1397 (logical_or_operation::evaluate): New methods.
1398 * ax-gdb.c (logical_and_operation::do_generate_ax)
1399 (logical_or_operation::do_generate_ax): New methods.
1400
2bc9b40c
TT
14012021-03-08 Tom Tromey <tom@tromey.com>
1402
1403 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
1404 static.
1405 * m2-exp.h: New file.
1406
5947d337
TT
14072021-03-08 Tom Tromey <tom@tromey.com>
1408
1409 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
1410 * rust-exp.h (class rust_aggregate_operation): New.
1411
e4407a20
TT
14122021-03-08 Tom Tromey <tom@tromey.com>
1413
1414 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
1415 No longer static.
1416 * rust-exp.h (class rust_struct_anon): New.
1417 (class rust_structop): New.
1418
9db6b6dd
TT
14192021-03-08 Tom Tromey <tom@tromey.com>
1420
1421 * rust-lang.c (rust_range): No longer static.
1422 * rust-exp.h (class rust_range_operation): New.
1423
6ce1ad67
TT
14242021-03-08 Tom Tromey <tom@tromey.com>
1425
1426 * rust-lang.c (rust_subscript): No longer static.
1427 * rust-exp.h (class rust_subscript_operation): New.
1428
11dd3dce
TT
14292021-03-08 Tom Tromey <tom@tromey.com>
1430
1431 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
1432 parameter.
1433 (rust_evaluate_subexp): Update.
1434 * rust-exp.h (class rust_unop_ind_operation): New.
1435
6fab4359
TT
14362021-03-08 Tom Tromey <tom@tromey.com>
1437
1438 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
1439 longer static. Add "opcode" parameter.
1440 (rust_evaluate_subexp): Update.
1441 * rust-exp.h: New file.
1442
9dcd3e29
TT
14432021-03-08 Tom Tromey <tom@tromey.com>
1444
1445 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
1446 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
1447 (eval_op_f_kind): No longer static. Add "opcode" parameter.
1448 (evaluate_subexp_f): Update.
1449 * f-exp.h: New file.
1450
fc715eb2
TT
14512021-03-08 Tom Tromey <tom@tromey.com>
1452
1453 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
1454 * ada-exp.h (class ada_ternop_range_operation): New.
1455
cc6bd32e
TT
14562021-03-08 Tom Tromey <tom@tromey.com>
1457
1458 * ada-lang.c (ada_qual_operation::evaluate): New method.
1459 * ada-exp.h (class ada_qual_operation): New.
1460
42fecb61
TT
14612021-03-08 Tom Tromey <tom@tromey.com>
1462
1463 * ada-lang.c (ada_string_operation::evaluate): New method.
1464 * ada-exp.h (class ada_string_operation): New.
1465
03070ee9
TT
14662021-03-08 Tom Tromey <tom@tromey.com>
1467
1468 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
1469 * ada-exp.h: New file.
1470
821e72d7
TT
14712021-03-08 Tom Tromey <tom@tromey.com>
1472
1473 * expop.h (class multi_subscript_operation): New.
1474 * eval.c (multi_subscript_operation::evaluate): New method.
1475
085734dd
TT
14762021-03-08 Tom Tromey <tom@tromey.com>
1477
1478 * eval.c (objc_msgcall_operation::evaluate): New method.
1479 * c-exp.h (class objc_msgcall_operation): New.
1480
e82a5afc
TT
14812021-03-08 Tom Tromey <tom@tromey.com>
1482
1483 * expop.h (class var_value_operation): New.
1484 * eval.c (var_value_operation::evaluate)
1485 (var_value_operation::evaluate_for_address)
1486 (var_value_operation::evaluate_with_coercion)
1487 (var_value_operation::evaluate_for_sizeof)
1488 (var_value_operation::evaluate_for_cast): New methods.
1489 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
1490
d9ad79d8
TT
14912021-03-08 Tom Tromey <tom@tromey.com>
1492
1493 * expop.h (cxx_cast_ftype): New typedef.
1494 (cxx_cast_operation): New template.
1495 (dynamic_cast_operation, reinterpret_cast_operation): New
1496 typedefs.
1497
292382f4
TT
14982021-03-08 Tom Tromey <tom@tromey.com>
1499
1500 * expop.h (class unop_cast_type_operation): New.
1501 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
1502 method.
1503
165a813a
TT
15042021-03-08 Tom Tromey <tom@tromey.com>
1505
1506 * expop.h (class unop_cast_operation): New.
1507 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
1508
e5946e16
TT
15092021-03-08 Tom Tromey <tom@tromey.com>
1510
1511 * expop.h (class assign_modify_operation): New.
1512 * eval.c (eval_binop_assign_modify): No longer static.
1513 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
1514
40786782
TT
15152021-03-08 Tom Tromey <tom@tromey.com>
1516
1517 * expop.h (class assign_operation): New.
1518 * ax-gdb.c (assign_operation::do_generate_ax): New method.
1519
44b675c8
TT
15202021-03-08 Tom Tromey <tom@tromey.com>
1521
1522 * expop.h (class type_instance_operation): New.
1523 * eval.c (type_instance_operation::evaluate): New method.
1524
f6b42326
TT
15252021-03-08 Tom Tromey <tom@tromey.com>
1526
1527 * expop.h (class op_this_operation): New.
1528 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
1529
cbc18219
TT
15302021-03-08 Tom Tromey <tom@tromey.com>
1531
1532 * expop.h (class unop_memval_operation)
1533 (class unop_memval_type_operation): New.
1534 * eval.c (eval_op_memval): No longer static.
1535 (unop_memval_operation::evaluate_for_address)
1536 (unop_memval_type_operation::evaluate_for_address)
1537 (unop_memval_operation::evaluate_for_sizeof)
1538 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
1539 * ax-gdb.c (unop_memval_operation::do_generate_ax)
1540 (unop_memval_type_operation::do_generate_ax): New methods.
1541
ae4bb61e
TT
15422021-03-08 Tom Tromey <tom@tromey.com>
1543
1544 * expop.h (class unop_alignof_operation): New.
1545 * eval.c (eval_op_alignof): No longer static.
1546
85d23bda
TT
15472021-03-08 Tom Tromey <tom@tromey.com>
1548
1549 * expop.h (class unop_sizeof_operation): New.
1550 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
1551
14aff815
TT
15522021-03-08 Tom Tromey <tom@tromey.com>
1553
1554 * expop.h (class unop_addr_operation): New.
1555 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
1556
929f3aa7
TT
15572021-03-08 Tom Tromey <tom@tromey.com>
1558
1559 * expop.h (class typeid_operation): New.
1560
0af8829e
TT
15612021-03-08 Tom Tromey <tom@tromey.com>
1562
1563 * expop.h (class decltype_operation): New.
1564
4efc574c
TT
15652021-03-08 Tom Tromey <tom@tromey.com>
1566
1567 * expop.h (class typeof_operation): New.
1568
5b5f5140
TT
15692021-03-08 Tom Tromey <tom@tromey.com>
1570
1571 * expop.h (class type_operation): New.
1572 * eval.c (eval_op_type): No longer static.
1573
876469ff
TT
15742021-03-08 Tom Tromey <tom@tromey.com>
1575
1576 * expop.h (class unop_ind_base_operation)
1577 (class unop_ind_operation): New.
1578 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
1579 (unop_ind_base_operation::evaluate_for_address)
1580 (unop_ind_base_operation::evaluate_for_sizeof): New method.
1581 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
1582
6d89e296
TT
15832021-03-08 Tom Tromey <tom@tromey.com>
1584
1585 * expop.h (unop_incr_operation): New template.
1586 (preinc_operation, predec_operation, postinc_operation)
1587 (postdec_operation): New typedefs.
1588 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
1589 (eval_op_postdec): No longer static.
1590
9307d17b
TT
15912021-03-08 Tom Tromey <tom@tromey.com>
1592
1593 * expop.h (unary_ftype): New typedef.
1594 (unop_operation, usual_ax_binop_operation): New templates.
1595 (unary_plus_operation, unary_neg_operation)
1596 (unary_complement_operation, unary_logical_not_operation): New
1597 typedefs.
1598 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
1599 (eval_op_lognot): No longer static.
1600 * ax-gdb.c (gen_expr_unop): New function.
1601
ae64ba58
TT
16022021-03-08 Tom Tromey <tom@tromey.com>
1603
1604 * ax-gdb.c (comma_operation::do_generate_ax): New method.
1605
d4eff4c1
TT
16062021-03-08 Tom Tromey <tom@tromey.com>
1607
1608 * expop.h (class repeat_operation): New.
1609 * eval.c (eval_op_repeat): No longer static. Remove "op"
1610 parameter.
1611 (evaluate_subexp_standard): Update.
1612 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
1613
46916f2b
TT
16142021-03-08 Tom Tromey <tom@tromey.com>
1615
1616 * expop.h (class comparison_operation): New.
1617 (equal_operation, notequal_operation, less_operation)
1618 (gtr_operation, geq_operation, leq_operation): New typedefs.
1619 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
1620 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
1621
224d6424
TT
16222021-03-08 Tom Tromey <tom@tromey.com>
1623
1624 * expop.h (class subscript_operation): New.
1625 * eval.c (eval_op_subscript): No longer static.
1626
373907ff
TT
16272021-03-08 Tom Tromey <tom@tromey.com>
1628
1629 * expop.h (class binop_operation, class usual_ax_binop_operation):
1630 New.
1631 (exp_operation, intdiv_operation, mod_operation, mul_operation)
1632 (div_operation, rem_operation, lsh_operation, rsh_operation)
1633 (bitwise_and_operation, bitwise_ior_operation)
1634 (bitwise_xor_operation): New typedefs.
1635 * eval.c (eval_op_binary): No longer static.
1636
5133d78b
TT
16372021-03-08 Tom Tromey <tom@tromey.com>
1638
1639 * expop.h (class sub_operation): New.
1640 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
1641 (evaluate_subexp_standard): Update.
1642
a94323b6
TT
16432021-03-08 Tom Tromey <tom@tromey.com>
1644
1645 * expop.h (class add_operation): New.
1646 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
1647 (evaluate_subexp_standard): Update.
1648
e51e26a0
TT
16492021-03-08 Tom Tromey <tom@tromey.com>
1650
1651 * expop.h (class concat_operation): New.
1652 * eval.c (eval_op_concat): No longer static. Remove "op"
1653 parameter.
1654 (evaluate_subexp_standard): Update.
1655
07f724a8
TT
16562021-03-08 Tom Tromey <tom@tromey.com>
1657
1658 * expop.h (class structop_member_operation)
1659 (class structop_mptr_operation): New.
1660 * eval.c (eval_op_member): No longer static.
1661
ab0609be
TT
16622021-03-08 Tom Tromey <tom@tromey.com>
1663
1664 * expop.h (class structop_ptr_operation): New.
1665 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
1666 parameter.
1667
808b22cf
TT
16682021-03-08 Tom Tromey <tom@tromey.com>
1669
1670 * expop.h (class structop_base_operation)
1671 (class structop_operation): New.
1672 * eval.c (eval_op_structop_struct): No longer static.
1673
8cfd3e95
TT
16742021-03-08 Tom Tromey <tom@tromey.com>
1675
1676 * expop.h (class complex_operation): New.
1677
09db3700
TT
16782021-03-08 Tom Tromey <tom@tromey.com>
1679
1680 * eval.c (eval_op_objc_selector): No longer static.
1681 * c-exp.h (class objc_selector_operation): New.
1682
06dc61b9
TT
16832021-03-08 Tom Tromey <tom@tromey.com>
1684
1685 * eval.c: Include c-exp.h.
1686 * c-exp.h (class objc_nsstring_operation): New.
1687
72d0a711
TT
16882021-03-08 Tom Tromey <tom@tromey.com>
1689
1690 * c-lang.c (c_string_operation::evaluate): New method.
1691 * c-exp.h: New file.
1692
9186293f
TT
16932021-03-08 Tom Tromey <tom@tromey.com>
1694
1695 * expop.h (class ternop_cond_operation): New.
1696 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
1697
1594e0bb
TT
16982021-03-08 Tom Tromey <tom@tromey.com>
1699
1700 * expop.h (class ternop_slice_operation): New.
1701 * eval.c (eval_op_ternop): No longer static.
1702
b50db09f
TT
17032021-03-08 Tom Tromey <tom@tromey.com>
1704
1705 * expop.h (class string_operation): New.
1706 * eval.c (eval_op_string): No longer static.
1707
e6e01e16
TT
17082021-03-08 Tom Tromey <tom@tromey.com>
1709
1710 * expop.h (class internalvar_operation): New.
1711 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
1712
e6985c5e
TT
17132021-03-08 Tom Tromey <tom@tromey.com>
1714
1715 * expop.h (class bool_operation): New.
1716
55bdbff8
TT
17172021-03-08 Tom Tromey <tom@tromey.com>
1718
1719 * expop.h (class register_operation): New.
1720 * eval.c (eval_op_register): No longer static.
1721 * ax-gdb.c (register_operation::do_generate_ax): New method.
1722
247d935b
TT
17232021-03-08 Tom Tromey <tom@tromey.com>
1724
1725 * expop.h (class last_operation): New.
1726
17679395
TT
17272021-03-08 Tom Tromey <tom@tromey.com>
1728
1729 * expop.h (class func_static_var_operation): New.
1730 * eval.c (eval_op_func_static_var): No longer static.
1731
b5cc3923
TT
17322021-03-08 Tom Tromey <tom@tromey.com>
1733
1734 * expop.h (class var_entry_value_operation): New.
1735 * eval.c (eval_op_var_entry_value): No longer static.
1736
0c8effa3
TT
17372021-03-08 Tom Tromey <tom@tromey.com>
1738
1739 * expression.h (class operation) <set_outermost>: New method.
1740 * expop.h (class var_msym_value_operation): New.
1741 * eval.c (eval_op_var_msym_value): No longer static.
1742 (var_msym_value_operation::evaluate_for_address)
1743 (var_msym_value_operation::evaluate_for_sizeof)
1744 (var_msym_value_operation::evaluate_for_cast): New methods.
1745 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
1746 method.
1747
d336c29e
TT
17482021-03-08 Tom Tromey <tom@tromey.com>
1749
1750 * expop.h (class long_const_operation): New.
1751 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
1752
d5ab122c
TT
17532021-03-08 Tom Tromey <tom@tromey.com>
1754
1755 * expop.h (class scope_operation): New.
1756 * eval.c (eval_op_scope): No longer static.
1757 (scope_operation::evaluate_for_address): New method.
1758 * ax-gdb.c (scope_operation::do_generate_ax): New method.
1759
cae26a0c
TT
17602021-03-08 Tom Tromey <tom@tromey.com>
1761
1762 * expprint.c (float_const_operation::dump): New method.
1763 * expop.h (float_data): New typedef.
1764 (class float_const_operation): New.
1765
75f9892d
TT
17662021-03-08 Tom Tromey <tom@tromey.com>
1767
1768 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
1769 * ax-gdb.c (gen_expr_binop): New function.
1770 (gen_expr_structop): Likewise.
1771
de401988
TT
17722021-03-08 Tom Tromey <tom@tromey.com>
1773
1774 * expprint.c (expr::dump_for_expression): New functions.
1775 * expop.h (dump_for_expression): New overloads.
1776 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
1777 Update.
1778
e2803273
TT
17792021-03-08 Tom Tromey <tom@tromey.com>
1780
1781 * expression.h (expr::operation): New class.
1782 (expr::make_operation): New function.
1783 (expr::operation_up): New typedef.
1784 * expop.h: New file.
1785 * eval.c (operation::evaluate_for_cast)
1786 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
1787 New methods.
1788 * ax-gdb.c (operation::generate_ax): New method.
1789
e18c58f2
TT
17902021-03-08 Tom Tromey <tom@tromey.com>
1791
1792 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
1793 (gen_expr_binop_rest): New overload.
1794
c0d7ed8c
TT
17952021-03-08 Tom Tromey <tom@tromey.com>
1796
1797 * eval.c (eval_multi_subscript): New function.
1798 (evaluate_subexp_standard): Use it.
1799
dd5fd283
TT
18002021-03-08 Tom Tromey <tom@tromey.com>
1801
1802 * ada-lang.c (ada_binop_exp): New function.
1803 (ada_evaluate_subexp): Use it.
1804
3848abd6
TT
18052021-03-08 Tom Tromey <tom@tromey.com>
1806
1807 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
1808 parameters.
1809 (ada_evaluate_subexp): Use it.
1810
38dc70cf
TT
18112021-03-08 Tom Tromey <tom@tromey.com>
1812
1813 * ada-lang.c (ada_binop_minmax): New function.
1814 (ada_evaluate_subexp): Use it.
1815
b84564fc
TT
18162021-03-08 Tom Tromey <tom@tromey.com>
1817
1818 * ada-lang.c (ada_unop_atr): New function.
1819 (ada_evaluate_subexp): Use it.
1820
b467efaa
TT
18212021-03-08 Tom Tromey <tom@tromey.com>
1822
1823 * ada-lang.c (ada_binop_in_bounds): New function.
1824 (ada_evaluate_subexp): Use it.
1825
5ce19db8
TT
18262021-03-08 Tom Tromey <tom@tromey.com>
1827
1828 * ada-lang.c (ada_ternop_slice): New function.
1829 (ada_evaluate_subexp): Use it.
1830
214b13ac
TT
18312021-03-08 Tom Tromey <tom@tromey.com>
1832
1833 * ada-lang.c (ada_equal_binop): New function.
1834 (ada_evaluate_subexp): Use it.
1835
faa1dfd7
TT
18362021-03-08 Tom Tromey <tom@tromey.com>
1837
1838 * ada-lang.c (ada_mult_binop): New function.
1839 (ada_evaluate_subexp): Use it.
1840
d05e24e6
TT
18412021-03-08 Tom Tromey <tom@tromey.com>
1842
1843 * ada-lang.c (ada_abs): New function.
1844 (ada_evaluate_subexp): Use it.
1845
68c75735
TT
18462021-03-08 Tom Tromey <tom@tromey.com>
1847
1848 * ada-lang.c (ada_atr_size): New function.
1849 (ada_evaluate_subexp): Use it.
1850
020dbabe
TT
18512021-03-08 Tom Tromey <tom@tromey.com>
1852
1853 * ada-lang.c (ada_atr_tag): New function.
1854 (ada_evaluate_subexp): Use it.
1855
7efc87ff
TT
18562021-03-08 Tom Tromey <tom@tromey.com>
1857
1858 * ada-lang.c (ada_unop_in_range): New function.
1859 (ada_evaluate_subexp): Use it.
1860
82390ab8
TT
18612021-03-08 Tom Tromey <tom@tromey.com>
1862
1863 * ada-lang.c (ada_unop_neg): New function.
1864 (ada_evaluate_subexp): Use it.
1865
62d4bd94
TT
18662021-03-08 Tom Tromey <tom@tromey.com>
1867
1868 * ada-lang.c (eval_ternop_in_range): New function.
1869 (ada_evaluate_subexp): Use it.
1870
3634f669
TT
18712021-03-08 Tom Tromey <tom@tromey.com>
1872
1873 * opencl-lang.c (eval_opencl_assign): New function.
1874 (evaluate_subexp_opencl): Use it.
1875
5e80600e
TT
18762021-03-08 Tom Tromey <tom@tromey.com>
1877
1878 * eval.c (eval_op_objc_msgcall): New function.
1879 (evaluate_subexp_standard): Use it.
1880
fb5ba2ab
TT
18812021-03-08 Tom Tromey <tom@tromey.com>
1882
1883 * eval.c (eval_binop_assign_modify): New function.
1884 (evaluate_subexp_standard): Use it.
1885
a49881f7
TT
18862021-03-08 Tom Tromey <tom@tromey.com>
1887
1888 * m2-lang.c (eval_op_m2_subscript): New function.
1889 (evaluate_subexp_modula2): Use it.
1890
41bdced5
TT
18912021-03-08 Tom Tromey <tom@tromey.com>
1892
1893 * m2-lang.c (eval_op_m2_high): New function.
1894 (evaluate_subexp_modula2): Use it.
1895
13ea014a
TT
18962021-03-08 Tom Tromey <tom@tromey.com>
1897
1898 * eval.c (evaluate_subexp_for_address_base): New function.
1899 (evaluate_subexp_for_address): Use it.
1900 (evaluate_subexp_for_sizeof_base): New function.
1901 (evaluate_subexp_for_sizeof): Use it.
1902
1fa41fc7
TT
19032021-03-08 Tom Tromey <tom@tromey.com>
1904
1905 * rust-lang.c (eval_op_rust_structop): New function.
1906 (rust_evaluate_subexp): Use it.
1907
575cae23
TT
19082021-03-08 Tom Tromey <tom@tromey.com>
1909
1910 * rust-lang.c (eval_op_rust_struct_anon): New function.
1911 (rust_evaluate_subexp): Use it.
1912
05104233
TT
19132021-03-08 Tom Tromey <tom@tromey.com>
1914
1915 * rust-lang.c (eval_op_rust_array): New function.
1916 (rust_evaluate_subexp): Use it.
1917
6fa9831f
TT
19182021-03-08 Tom Tromey <tom@tromey.com>
1919
1920 * rust-lang.c (eval_op_rust_complement): New function.
1921 (rust_evaluate_subexp): Use it.
1922
d123f9e4
TT
19232021-03-08 Tom Tromey <tom@tromey.com>
1924
1925 * rust-lang.c (eval_op_rust_ind): New function.
1926 (rust_evaluate_subexp): Use it.
1927
984af2cb
TT
19282021-03-08 Tom Tromey <tom@tromey.com>
1929
1930 * rust-lang.c (rust_subscript): Change parameters.
1931 (rust_evaluate_subexp): Update.
1932
d148f803
TT
19332021-03-08 Tom Tromey <tom@tromey.com>
1934
1935 * rust-lang.c (rust_range): Change parameters.
1936 (rust_evaluate_subexp): Update.
1937
9cbd1c20
TT
19382021-03-08 Tom Tromey <tom@tromey.com>
1939
1940 * f-lang.c (eval_op_f_allocated): New function.
1941 (evaluate_subexp_f): Use it.
1942
3c18c49c
TT
19432021-03-08 Tom Tromey <tom@tromey.com>
1944
1945 * f-lang.c (fortran_require_array): New function.
1946 (evaluate_subexp_f): Use it.
1947
216f6fcb
TT
19482021-03-08 Tom Tromey <tom@tromey.com>
1949
1950 * f-lang.c (eval_op_f_kind): New function.
1951 (evaluate_subexp_f): Use it.
1952
00f2db6f
TT
19532021-03-08 Tom Tromey <tom@tromey.com>
1954
1955 * f-lang.c (eval_op_f_cmplx): New function.
1956 (evaluate_subexp_f): Use it.
1957
93b2b5fa
TT
19582021-03-08 Tom Tromey <tom@tromey.com>
1959
1960 * f-lang.c (eval_op_f_modulo): New function.
1961 (evaluate_subexp_f): Use it.
1962
9f1a1f3c
TT
19632021-03-08 Tom Tromey <tom@tromey.com>
1964
1965 * f-lang.c (eval_op_f_floor): New function.
1966 (evaluate_subexp_f): Use it.
1967
3dc41f3c
TT
19682021-03-08 Tom Tromey <tom@tromey.com>
1969
1970 * f-lang.c (eval_op_f_ceil): New function.
1971 (evaluate_subexp_f): Use it.
1972
e08109f2
TT
19732021-03-08 Tom Tromey <tom@tromey.com>
1974
1975 * f-lang.c (eval_op_f_mod): New function.
1976 (evaluate_subexp_f): Use it.
1977
cc05c68e
TT
19782021-03-08 Tom Tromey <tom@tromey.com>
1979
1980 * f-lang.c (eval_op_f_abs): New function.
1981 (evaluate_subexp_f): Use it.
1982
aec95807
TT
19832021-03-08 Tom Tromey <tom@tromey.com>
1984
1985 * eval.c (eval_op_type): New function.
1986 (evaluate_subexp_standard): Use it.
1987
a220ead5
TT
19882021-03-08 Tom Tromey <tom@tromey.com>
1989
1990 * eval.c (eval_op_postdec): New function.
1991 (evaluate_subexp_standard): Use it.
1992
abffe116
TT
19932021-03-08 Tom Tromey <tom@tromey.com>
1994
1995 * eval.c (eval_op_postinc): New function.
1996 (evaluate_subexp_standard): Use it.
1997
9e1361b7
TT
19982021-03-08 Tom Tromey <tom@tromey.com>
1999
2000 * eval.c (eval_op_predec): New file.
2001 (evaluate_subexp_standard): Use it.
2002
00f50884
TT
20032021-03-08 Tom Tromey <tom@tromey.com>
2004
2005 * eval.c (eval_op_preinc): New function.
2006 (evaluate_subexp_standard): Use it.
2007
3aef2a07
TT
20082021-03-08 Tom Tromey <tom@tromey.com>
2009
2010 * eval.c (eval_op_memval): New function.
2011 (evaluate_subexp_standard): Use it.
2012
acee9468
TT
20132021-03-08 Tom Tromey <tom@tromey.com>
2014
2015 * eval.c (eval_op_alignof): New function.
2016 (evaluate_subexp_standard): Use it.
2017
786f70ee
TT
20182021-03-08 Tom Tromey <tom@tromey.com>
2019
2020 * eval.c (eval_op_ind): New function.
2021 (evaluate_subexp_standard): Use it.
2022
24338fb9
TT
20232021-03-08 Tom Tromey <tom@tromey.com>
2024
2025 * eval.c (eval_op_lognot): New function.
2026 (evaluate_subexp_standard): Use it.
2027
1f09ec81
TT
20282021-03-08 Tom Tromey <tom@tromey.com>
2029
2030 * eval.c (eval_op_complement): New function.
2031 (evaluate_subexp_standard): Use it.
2032
606d105f
TT
20332021-03-08 Tom Tromey <tom@tromey.com>
2034
2035 * eval.c (eval_op_neg): New function.
2036 (evaluate_subexp_standard): Use it.
2037
39f288be
TT
20382021-03-08 Tom Tromey <tom@tromey.com>
2039
2040 * eval.c (eval_op_plus): New function.
2041 (evaluate_subexp_standard): Use it.
2042
eed70b1c
TT
20432021-03-08 Tom Tromey <tom@tromey.com>
2044
2045 * eval.c (eval_op_repeat): New function.
2046 (evaluate_subexp_standard): Use it.
2047
60cdd487
TT
20482021-03-08 Tom Tromey <tom@tromey.com>
2049
2050 * eval.c (eval_op_leq): New function.
2051 (evaluate_subexp_standard): Use it.
2052
96e3efd9
TT
20532021-03-08 Tom Tromey <tom@tromey.com>
2054
2055 * eval.c (eval_op_geq): New function.
2056 (evaluate_subexp_standard): Use it.
2057
1f78d732
TT
20582021-03-08 Tom Tromey <tom@tromey.com>
2059
2060 * eval.c (eval_op_gtr): New function.
2061 (evaluate_subexp_standard): Use it.
2062
6cad1349
TT
20632021-03-08 Tom Tromey <tom@tromey.com>
2064
2065 * eval.c (eval_op_less): New function.
2066 (evaluate_subexp_standard): Use it.
2067
1fcb3559
TT
20682021-03-08 Tom Tromey <tom@tromey.com>
2069
2070 * eval.c (eval_op_notequal): New function.
2071 (evaluate_subexp_standard): Use it.
2072
0cc96de8
TT
20732021-03-08 Tom Tromey <tom@tromey.com>
2074
2075 * eval.c (eval_op_equal): New function.
2076 (evaluate_subexp_standard): Use it.
2077
288d26bc
TT
20782021-03-08 Tom Tromey <tom@tromey.com>
2079
2080 * eval.c (eval_op_subscript): New function.
2081 (evaluate_subexp_standard): Use it.
2082
7cdcdd02
TT
20832021-03-08 Tom Tromey <tom@tromey.com>
2084
2085 * eval.c (eval_op_binary): New function.
2086 (evaluate_subexp_standard): Use it.
2087
d9790e22
TT
20882021-03-08 Tom Tromey <tom@tromey.com>
2089
2090 * eval.c (eval_op_sub): New function.
2091 (evaluate_subexp_standard): Use it.
2092
aedaf9ac
TT
20932021-03-08 Tom Tromey <tom@tromey.com>
2094
2095 * eval.c (eval_op_add): New function.
2096 (evaluate_subexp_standard): Use it.
2097
b7a96ed2
TT
20982021-03-08 Tom Tromey <tom@tromey.com>
2099
2100 * eval.c (eval_op_member): New function.
2101 (evaluate_subexp_standard): Use it.
2102
fb461aa3
TT
21032021-03-08 Tom Tromey <tom@tromey.com>
2104
2105 * eval.c (eval_op_structop_ptr): New function.
2106 (evaluate_subexp_standard): Use it.
2107
3e96c4fc
TT
21082021-03-08 Tom Tromey <tom@tromey.com>
2109
2110 * eval.c (eval_op_structop_struct): New function.
2111 (evaluate_subexp_standard): Use it.
2112
f960a617
TT
21132021-03-08 Tom Tromey <tom@tromey.com>
2114
2115 * eval.c (eval_op_ternop): New function.
2116 (evaluate_subexp_standard): Use it.
2117
5c2f201e
TT
21182021-03-08 Tom Tromey <tom@tromey.com>
2119
2120 * eval.c (eval_op_concat): New function.
2121 (evaluate_subexp_standard): Use it.
2122
f871bae1
TT
21232021-03-08 Tom Tromey <tom@tromey.com>
2124
2125 * eval.c (eval_op_objc_selector): New function.
2126 (evaluate_subexp_standard): Use it.
2127
14a1c64a
TT
21282021-03-08 Tom Tromey <tom@tromey.com>
2129
2130 * eval.c (eval_op_string): New function.
2131 (evaluate_subexp_standard): Use it.
2132
ffff730b
TT
21332021-03-08 Tom Tromey <tom@tromey.com>
2134
2135 * eval.c (eval_op_register): New function.
2136 (evaluate_subexp_standard): Use it.
2137
9b1d8af6
TT
21382021-03-08 Tom Tromey <tom@tromey.com>
2139
2140 * eval.c (eval_op_func_static_var): New function.
2141 (evaluate_subexp_standard): Use it.
2142
c0df9289
TT
21432021-03-08 Tom Tromey <tom@tromey.com>
2144
2145 * eval.c (eval_op_var_msym_value): New function.
2146 (evaluate_subexp_standard): Use it.
2147
50b98adc
TT
21482021-03-08 Tom Tromey <tom@tromey.com>
2149
2150 * eval.c (eval_op_var_entry_value): New function.
2151 (evaluate_subexp_standard): Use it.
2152
ea2d29f7
TT
21532021-03-08 Tom Tromey <tom@tromey.com>
2154
2155 * eval.c (eval_op_scope): New function.
2156 (evaluate_subexp_standard): Use it.
2157
01573d73
TT
21582021-03-06 Chernov Sergey <klen_s@mail.ru>
2159
2160 PR gdb/27528:
2161 * ada-lang.c (ada_fold_name): Use gdb::to_string.
2162
9938d15a
TT
21632021-03-06 Tom Tromey <tom@tromey.com>
2164
2165 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
2166 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
2167 * dwarf2/read.c (dwarf2_elf_names): No longer static.
2168 (locate_dwz_sections, dwz_search_other_debugdirs)
2169 (dwarf2_get_dwz_file): Move to dwz.c.
2170 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
2171 read.h.
2172 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
2173 (dwarf2_get_dwz_file): Move from read.c.
2174
18035655
TT
21752021-03-06 Tom Tromey <tom@tromey.com>
2176
2177 * debuginfod-support.h: Include scoped_fd.h.
2178
a7308ce0
TT
21792021-03-06 Tom Tromey <tom@tromey.com>
2180
2181 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
2182 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
2183 (get_abbrev_section_for_cu, read_attribute_value)
2184 (get_debug_line_section): Update.
2185 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2186
fbedd546
TT
21872021-03-06 Tom Tromey <tom@tromey.com>
2188
2189 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
2190 method.
2191 * dwarf2/read.c (section_is_p): Remove.
2192 (dwarf2_per_bfd::locate_sections)
2193 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
2194 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
2195 (dwarf2_locate_common_dwp_sections)
2196 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
2197 Update.
2198
c2a62a3d
TT
21992021-03-06 Tom Tromey <tom@tromey.com>
2200
2201 * xcoffread.c: Include sect-names.h.
2202 * symfile.h (struct dwarf2_section_names, struct
2203 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
2204 * dwarf2/sect-names.h: New file, from symfile.h.
2205 * dwarf2/read.c: Include sect-names.h.
2206
4444f407
TT
22072021-03-06 Tom Tromey <tom@tromey.com>
2208
2209 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
2210 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
2211 (abbrev_table::read): Update.
2212 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
2213 (struct abbrev_info): Reformat.
2214 <attrs>: Now an array.
2215 (struct abbrev_table) <alloc_abbrev>: Remove.
2216
dd99cf0c
WP
22172021-03-06 Weimin Pan <weimin.pan@oracle.com>
2218
2219 * ctfread.c (ctf_psymtab_add_enums): New function.
2220 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
2221
844be3f2
WP
22222021-03-06 Weimin Pan <weimin.pan@oracle.com>
2223
2224 * ctfread.c (read_func_kind_type): Set up function arguments.
2225
b2668f28
AB
22262021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2227 Andrew Burgess <andrew.burgess@embecosm.com>
2228
2229 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
2230 includes.
2231 (riscv_csrset): New static global.
2232 (riscv_update_csrmap): New function.
2233 (riscv_iterate_over_regset_sections): Process CSRs.
2234
d782d24b
AB
22352021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2236
2237 * riscv-tdep.c (riscv_feature_name_csr): Define.
2238 (riscv_feature_name_cpu): Define.
2239 (riscv_feature_name_fpu): Define.
2240 (riscv_feature_name_virtual): Define.
2241 (riscv_xreg_feature): Use riscv_feature_name_cpu.
2242 (riscv_freg_feature): Use riscv_feature_name_fpu.
2243 (riscv_virtual_feature): Use riscv_feature_name_virtual.
2244 (riscv_csr_feature): Use riscv_feature_name_csr.
2245 * riscv-tdep.h (riscv_feature_name_csr): Declare.
2246
fb8f3fc0
AB
22472021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2248 Craig Blackmore <craig.blackmore@embecosm.com>
2249
2250 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
2251 (ALLDEPFILES): Add riscv-none-tdep.c.
2252 * configure: Regenerate.
2253 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
2254 support.
2255 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
2256 * elf-none-tdep.c: New file.
2257 * elf-none-tdep.h: New file.
2258 * riscv-none-tdep.c: New file.
2259
95ce627a
AB
22602021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2261 Andrew Burgess <andrew.burgess@embecosm.com>
2262
2263 * corelow.c: Add 'xml-tdesc.h' include.
2264 (core_target::read_description): Load the target description from
2265 the core file when possible.
2266 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
2267 note.
2268 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
2269 (gcore_elf_make_tdesc_note): New function.
2270 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
2271 * linux-tdep.c (linux_make_corefile_notes): Add target description
2272 note.
2273
f3a5df7b
AB
22742021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2275
2276 * Makefile.in (SFILES): Add gcore-elf.c.
2277 (HFILES_NO_SRCDIR): Add gcore-elf.h
2278 * configure: Regenerate.
2279 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
2280 support.
2281 * fbsd-tdep.c: Add 'gcore-elf.h' include.
2282 (struct fbsd_collect_regset_section_cb_data): Delete.
2283 (fbsd_collect_regset_section_cb): Delete.
2284 (fbsd_collect_thread_registers): Delete.
2285 (struct fbsd_corefile_thread_data): Delete.
2286 (fbsd_corefile_thread): Delete.
2287 (fbsd_make_corefile_notes): Call
2288 gcore_elf_build_thread_register_notes instead of the now deleted
2289 FreeBSD code.
2290 * gcore-elf.c: New file, the content was moved here from
2291 linux-tdep.c, functions were renamed and given minor cleanup.
2292 * gcore-elf.h: New file.
2293 * gcore.c (gcore_find_signalled_thread): Moved here from
2294 linux-tdep.c and given a new name. Minor cleanups.
2295 * gcore.h (gcore_find_signalled_thread): Declare.
2296 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
2297 (struct linux_collect_regset_section_cb_data): Delete.
2298 (linux_collect_regset_section_cb): Delete.
2299 (linux_collect_thread_registers): Delete.
2300 (linux_corefile_thread): Call
2301 gcore_elf_build_thread_register_notes.
2302 (find_signalled_thread): Delete.
2303 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2304
d1e93af6
SM
23052021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
2306
2307 PR gdb/27147
2308 * sparc-nat.h (sparc_fetch_inferior_registers): Add
2309 process_stratum_target parameter,
2310 sparc_store_inferior_registers): update callers.
2311 * sparc-nat.c (sparc_fetch_inferior_registers,
2312 sparc_store_inferior_registers): Add process_stratum_target
2313 parameter. Switch current thread before calling
2314 sparc_supply_gregset / sparc_collect_rwindow.
2315 (sparc_store_inferior_registers): Likewise.
2316 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
2317 (sparc32obsd_collect_uthread): Likewise.
2318 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
2319 Add assertion.
2320 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
2321 sparc64obsd_supply_uthread): Add assertion.
2322
1178743e
TT
23232021-03-04 Tom Tromey <tromey@adacore.com>
2324
2325 * ada-lang.c (struct match_data) <found_sym>: Now bool.
2326 (aux_add_nonlocal_symbols): Update.
2327 (ada_add_block_symbols): Change "found_sym" to bool.
2328
1bfa81ac
TT
23292021-03-03 Tom Tromey <tromey@adacore.com>
2330
2331 * ada-lang.c (ada_resolve_function): Update comment.
2332 (is_nonfunction, add_symbols_from_enclosing_procs)
2333 (remove_extra_symbols): Likewise.
2334 (struct match_data): Add constructor, initializers.
2335 (add_nonlocal_symbols): Remove memset.
2336 (aux_add_nonlocal_symbols): Update comment.
2337 (ada_add_block_renamings, add_nonlocal_symbols)
2338 (ada_add_all_symbols): Likewise.
2339 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
2340
bbcdf9ab
TT
23412021-03-02 Tom Tromey <tromey@adacore.com>
2342
2343 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
2344 (cast_to_gnat_encoded_fixed_point_type): Remove.
2345 (ada_value_cast, ada_evaluate_subexp): Update.
2346 (gnat_encoded_fixed_point_type_info)
2347 (ada_is_gnat_encoded_fixed_point_type)
2348 (gnat_encoded_fixed_point_delta)
2349 (gnat_encoded_fixed_point_scaling_factor): Remove.
2350 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
2351 (gnat_encoded_fixed_point_delta)
2352 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
2353 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
2354 (ada_print_type): Update.
2355 * ada-valprint.c (ada_value_print_num): Update.
2356 * dwarf2/read.c (ada_get_gnat_encoded_number)
2357 (ada_get_gnat_encoded_ratio): New functions.
2358 (finish_fixed_point_type): Use them. Add parameters.
2359 (GNAT_FIXED_POINT_SUFFIX): New define.
2360 (gnat_encoded_fixed_point_type_info): New function.
2361 (read_base_type): Handle gnat encodings.
2362
5f9febe0
TT
23632021-03-02 Tom Tromey <tromey@adacore.com>
2364
2365 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
2366 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
2367 std::string.
2368 (GROW_VECT): Remove.
2369 (grow_vect): Remove.
2370
d1183b06
TT
23712021-03-02 Tom Tromey <tromey@adacore.com>
2372
2373 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
2374 * ada-lang.c (resolve_subexp): Update.
2375 (ada_resolve_function): Accept a vector.
2376 (is_nonfunction, add_defn_to_vec)
2377 (add_symbols_from_enclosing_procs): Likewise.
2378 (num_defns_collected, defns_collected): Remove.
2379 (remove_extra_symbols): Return a vector.
2380 (remove_irrelevant_renamings): Return void.
2381 (ada_add_local_symbols): Accept a vector.
2382 (struct match_data) <obstackp>: Remove.
2383 <resultp>: New member.
2384 (aux_add_nonlocal_symbols): Update.
2385 (ada_add_block_renamings, add_nonlocal_symbols)
2386 (ada_add_all_symbols): Accept a vector.
2387 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
2388 vector.
2389 (ada_lookup_symbol): Update.
2390 (ada_add_block_symbols): Accept a vector.
2391 (get_var_value, iterate_over_symbols): Update.
2392 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
2393 Update.
2394
886d459f
TT
23952021-03-02 Tom Tromey <tromey@adacore.com>
2396
2397 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
2398
bdcccc56
TT
23992021-03-02 Tom Tromey <tromey@adacore.com>
2400
2401 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
2402 auto_obstack.
2403 <root>: Initialize.
2404 (ada_pspace_data): Remove destructor.
2405 <sym_cache>: Now a unique_ptr.
2406 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
2407 (ada_get_symbol_cache): Use 'new'.
2408 (ada_clear_symbol_cache): Rewrite.
2409
1228719f
TT
24102021-03-02 Tom Tromey <tromey@adacore.com>
2411
2412 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
2413 is null.
2414
bb3a4efe
LS
24152021-02-27 Lancelot Six <lsix@lancelotsix.com>
2416
2417 PR gdb/27393
2418 * source.c (add_path): Skip empty dirnames.
2419
26b43ca6 24202021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
2421
2422 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
2423 include order for <sys/ptrace.h> and <asm/ptrace.h>.
2424
dffdd8b5
SM
24252021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
2426
2427 PR gdb/26861
2428 * target.c (target_mourn_inferior): Only compare pids in
2429 target_mourn_inferior.
2430
64d38fdd
JM
24312021-02-25 Jan Matyas <jmatyas@codasip.com>
2432
2433 PR gdb/26819
2434 * remote.c (remote_target::start_remote): Ensure the single
2435 thread, automatically added for remote targets without the
2436 concept of threading, is initially in set to the "resumed"
2437 state.
2438 * remote.c (remote_target::add_current_inferior_and_thread):
2439 Add return value - return the main thread.
2440
2450ad54
JV
24412021-02-25 Jan Vrany <jan.vrany@labware.com>
2442
2443 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
2444 (mi_tsv_created): Likewise.
2445 (mi_tsv_deleted): Likewise.
2446
30c80d88
TV
24472021-02-25 Tom de Vries <tdevries@suse.de>
2448
2449 PR symtab/27354
2450 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
2451 section_kind for &dwo_file->sections.info.
2452
68337b8b
AB
24532021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2454
2455 PR fortran/26155
2456 * f-lang.c (fortran_argument_convert): Delete declaration.
2457 (fortran_prepare_argument): New function.
2458 (evaluate_subexp_f): Move logic to new function
2459 fortran_prepare_argument.
2460
faeb9f13
AB
24612021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2462
2463 * f-exp.y (f77_keywords): Add 'associated'.
2464 * f-lang.c (fortran_associated): New function.
2465 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
2466 (operator_length_f): Likewise.
2467 (print_unop_or_binop_subexp_f): New function.
2468 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
2469 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
2470 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
2471 (operator_check_f): Likewise.
2472 * std-operator.def: Add FORTRAN_ASSOCIATED.
2473
170f4b23
AB
24742021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2475
2476 * f-exp.y (fortran_operators): Add ".xor.".
2477
aa659cfa
TV
24782021-02-24 Tom de Vries <tdevries@suse.de>
2479
2480 PR symtab/27336
2481 * dwarf2/attribute.c (attribute::form_is_signed): New function
2482 factored out of ...
2483 * dwarf2/attribute.h (attribute::as_signed): ... here.
2484 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
2485 (attribute::form_is_signed): Declare.
2486 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
2487 for DW_AT_decl_file.
2488
268c77c1
KB
24892021-02-24 Kevin Buettner <kevinb@redhat.com>
2490
2491 * nat/aarch64-linux-hw-point.c: Add comment regarding include
2492 order for <sys/ptrace.h> and <asm/ptrace.h>.
2493
665af52e
KB
24942021-02-24 Kevin Buettner <kevinb@redhat.com>
2495
2496 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
2497 <sys/ptrace.h>.
2498
dd80d750
AB
24992021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2500
2501 * exec.c (set_section_command): Move variable declarations into
2502 the function body, and use std::string instead of a fixed size
2503 buffer.
2504
336aa7b7
AB
25052021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2506
2507 * exec.c (exec_target::get_section_table): Delete member function.
2508 (section_table_read_available_memory): Use current_top_target, not
2509 just the exec_ops target.
2510 * target-delegates.c: Regenerate.
2511 * target.c (default_get_section_table): New function.
2512 * target.h (target_ops::get_section_table): Change default
2513 behaviour to call default_get_section_table.
2514 (default_get_section_table): Declare.
2515
02f7d26b
AB
25162021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2517
2518 * exec.c (exec_target::close): Call new clear_target_sections
2519 function.
2520 (program_space::add_target_sections): Update name of member
2521 variable.
2522 (program_space::add_target_sections): Update name of member
2523 variable.
2524 (program_space::remove_target_sections): Likewise.
2525 (exec_one_fork): Use new target_sections member function.
2526 (exec_target::get_section_table): Likewise.
2527 (exec_target::files_info): Likewise.
2528 (set_section_command): Likewise.
2529 (exec_set_section_address): Likewise.
2530 (exec_target::has_memory): Use new target_sections member
2531 function.
2532 * progspace.h (program_space::clear_target_sections): New member
2533 function.
2534 (program_space::target_sections): Rename member variable to
2535 m_target_sections, replace with a new member function.
2536 (program_space::m_target_sections): New member variable.
2537 * solib-dsbt.c (scan_dyntag): Use new member function.
2538 * solib-svr4.c (scan_dyntag): Likewise.
2539
19cf757a
AB
25402021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2541
2542 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
2543 return type const.
2544 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
2545 (section_table_read_available_memory): Make local const.
2546 (exec_target::xfer_partial): Make local const.
2547 (print_section_info): Make parameter const.
2548 * gdb/exec.h (print_section_info): Likewise.
2549 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
2550 const.
2551 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
2552 Likewise.
2553 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
2554 Likewise.
2555 * gdb/s390-tdep.c (s390_load): Likewise.
2556 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
2557 * gdb/solib-svr4.c (scan_dyntag): Likewise.
2558 * gdb/target-debug.h (target_debug_print_target_section_table_p):
2559 Rename to...
2560 (target_debug_print_const_target_section_table_p): ...this.
2561 * gdb/target-delegates.c: Regenerate.
2562 * gdb/target.c (target_get_section_table): Make return type const.
2563 (target_section_by_addr): Likewise. Also make some locals const.
2564 (memory_xfer_partial_1): Make some locals const.
2565 * gdb/target.h (struct target_ops) <get_section_table>: Make
2566 return type const.
2567 (target_section_by_addr): Likewise.
2568 (target_get_section_table): Likewise.
2569
02a79309
AB
25702021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2571
2572 * NEWS: Mention new 'maint info target-sections' command.
2573 * maint.c (maintenance_info_target_sections): New function.
2574 (_initialize_maint_cmds): Register new command.
2575
895b7b4e
AB
25762021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2577
2578 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
2579 (riscv_features_from_bfd): ...this. Change parameter type to
2580 'bfd*', and update as required.
2581 (riscv_find_default_target_description): Update call to
2582 riscv_features_from_bfd. Select a default xlen based on
2583 info.bfd_arch_info.
2584 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
2585
bc3c0632
AB
25862021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2587
2588 * eval.c (evaluate_subexp_standard): Call value_ind for points to
2589 dynamic types in UNOP_IND.
2590
08ac5771
SM
25912021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2592
2593 PR gdb/26828
2594 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
2595 Instantiate queue.
2596 (~dwarf2_queue_guard): Clear queue.
2597 (queue_comp_unit): Assert that queue is
2598 instantiated.
2599 (process_queue): Adjust.
2600 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
2601
616c069a
SM
26022021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2603
2604 PR gdb/26828
2605 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
2606 to decide whether or not to enqueue it for expansion.
2607 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
2608 after calling maybe_queue_comp_unit.
2609
897608ed
SM
26102021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2611
2612 * linux-nat.c (linux_nat_filter_event): Return void.
2613
15908a11
TT
26142021-02-22 Tom Tromey <tromey@adacore.com>
2615
2616 * solib-svr4.c (enable_break): Update.
2617 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
2618 type.
2619 (target_bfd_reopen): Change parameter type.
2620 * bfd-target.h (target_bfd_reopen): Change parameter type.
2621
f53fc427
SM
26222021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2623
2624 * thread.c (add_thread_silent): Add assert.
2625 (find_thread_ptid): Add assert.
2626
de146e19
SM
26272021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2628
2629 PR gdb/27435
2630 * inf-ptrace.c (struct target_unpusher): Move to target.h.
2631 (target_unpush_up): Likewise.
2632 * procfs.c (procfs_target::attach): Push target early. Use
2633 target_unpush_up to unpush target in case of error.
2634 * target.h (struct target_unpusher): Move here.
2635 (target_unpush_up): Likewise.
2636
8488c357
KB
26372021-02-19 Kevin Buettner <kevinb@redhat.com>
2638
2639 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
2640 (which in turn includes <gnulib/config.h>) before include
2641 of <signal.h>.
2642
5a9f5403
NC
26432021-02-19 Nelson Chu <nelson.chu@sifive.com>
2644
2645 PR 27158
2646 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
2647 (decode_j_type_insn): Likewise.
2648 (decode_cj_type_insn): Likewise.
2649 (decode_b_type_insn): Likewise.
2650 (decode): Likewise.
2651
26f53cd3
TT
26522021-02-18 Tom Tromey <tom@tromey.com>
2653
2654 * expression.h (struct expression) <evaluate>: Declare method.
2655 * eval.c (evaluate_subexp): Simplify.
2656 (expression::evaluate): New method.
2657 (evaluate_expression, evaluate_type): Use expression::evaluate.
2658
6a780b67
KB
26592021-02-17 Kevin Buettner <kevinb@redhat.com>
2660
2661 * ada-lang.c (ada_fold_name): Check for non-empty string prior
2662 to accessing it.
2663 (ada_lookup_name_info): Likewise.
2664
adeab0c5
MF
26652021-02-13 Mike Frysinger <vapier@gentoo.org>
2666
2667 * aclocal.m4: Regenerate.
2668
089436f7
TV
26692021-02-12 Tom de Vries <tdevries@suse.de>
2670
2671 PR threads/26228
2672 * linux-nat.c (lin_thread_get_thread_signals): Remove.
2673 (lin_thread_signals): New static var.
2674 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2675 New function.
2676 * linux-nat.h (lin_thread_get_thread_signals): Remove.
2677 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2678 Declare.
2679 * linux-thread-db.c (check_thread_signals): Use
2680 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
2681
96df3e28
AB
26822021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2683
2684 * f-exp.y (f77_keywords): Add allocated.
2685 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
2686 (operator_length_f): Likewise.
2687 (print_subexp_f): Likewise.
2688 (dump_subexp_body_f): Likewise.
2689 (operator_check_f): Likewise.
2690 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
2691
05f68f52
TV
26922021-02-11 Tom de Vries <tdevries@suse.de>
2693
2694 PR symtab/27353
2695 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
2696 Return true for DW_FORM_strx.
2697
b260f8d6
TT
26982021-02-11 Tom Tromey <tromey@adacore.com>
2699
2700 PR gdb/27383:
2701 * parse.c (write_exp_symbol_reference): Write sym.block.
2702
bf3386f0
AB
27032021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2704
2705 * NEWS: Mention changes to 'maint info sections'.
2706 * maint.c (match_substring): Return a bool, fix whitespace issue.
2707 (struct single_bfd_flag_info): New struct.
2708 (bfd_flag_info): New static global.
2709 (match_bfd_flags): Return a bool, use bfd_flag_info.
2710 (print_bfd_flags): Use bfd_flag_info.
2711 (maint_print_section_info): Delete trailing whitespace.
2712 (struct maint_info_sections_opts): New struct.
2713 (maint_info_sections_option_defs): New static global.
2714 (maint_info_sections_completer): New function.
2715 (maintenance_info_sections): Use option parsing mechanism.
2716 (_initialize_maint_cmds): Update command help text for 'maint info
2717 sections' and register a command completer.
2718
4790db14
AB
27192021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2720
2721 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
2722 functionality merged into...
2723 (maint_print_all_sections): ...this new function.
2724 (maintenance_info_sections): Make use of maint_print_all_sections,
2725 allow all objects to be printed even where there's no executable.
2726
1db66e34
AB
27272021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2728
2729 * breakpoint.c (resolve_sal_pc): Make use of
2730 bound_minimal_symbol::obj_section.
2731 * maint.c (maintenance_translate_address): Likewise.
2732 * minsyms.c (minimal_symbol_upper_bound): Likewise.
2733 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
2734 member function.
2735 * printcmd.c (info_address_command): Make use of
2736 bound_minimal_symbol::obj_section.
2737
18b8df43
AM
27382021-02-11 Alan Modra <amodra@gmail.com>
2739
2740 * arm-symbian-tdep.c: Delete.
2741 * NEWS: Mention arm-symbian removal.
2742 * Makefile.in: Remove arm-symbian-tdep entries.
2743 * configure.tgt: Remove arm*-*-symbianelf*.
2744 * doc/gdb.texinfo: Remove mention of SymbianOS.
2745 * osabi.c (gdb_osabi_names): Remove "Symbian".
2746 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
2747 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
2748 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
2749 handling.
2750 * testsuite/gdb.base/dup-sect.exp: Likewise.
2751 * testsuite/gdb.base/long_long.exp: Likewise.
2752 * testsuite/gdb.base/solib-weak.exp: Likewise.
2753 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
2754 * testsuite/gdb.python/py-section-script.exp: Likewise.
2755 * testsuite/lib/dwarf.exp: Likewise.
2756 * testsuite/lib/gdb.exp: Likewise.
2757
e92c8eb8
AB
27582021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2759
2760 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
2761 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
2762 (one_or_two_args): New pattern.
2763 (f77_keywords): Add lbound and ubound.
2764 * f-lang.c (fortran_bounds_all_dims): New function.
2765 (fortran_bounds_for_dimension): New function.
2766 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
2767 (operator_length_f): Likewise.
2768 (print_subexp_f): Likewise.
2769 (dump_subexp_body_f): Likewise.
2770 (operator_check_f): Likewise.
2771 * std-operator.def (FORTRAN_LBOUND): Define.
2772 (FORTRAN_UBOUND): Define.
2773
a52d653e
AB
27742021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2775
2776 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
2777 and set_section_index member functions where appropriate.
2778 * coffread.c (coff_symtab_read): Likewise.
2779 (process_coff_symbol): Likewise.
2780 * ctfread.c (set_symbol_address): Likewise.
2781 * dwarf2/read.c (add_partial_symbol): Likewise.
2782 (var_decode_location): Likewise.
2783 * language.c: Likewise.
2784 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
2785 (compact_minimal_symbols): Likewise.
2786 (minimal_symbol_upper_bound): Likewise.
2787 * objfiles.c (relocate_one_symbol): Likewise.
2788 * psympriv.h (partial_symbol::obj_section): Likewise.
2789 (partial_symbol::address): Likewise.
2790 * psymtab.c (partial_symtab::add_psymbol): Likewise.
2791 * stabsread.c (scan_file_globals): Likewise.
2792 * symmisc.c (dump_msymbols): Likewise.
2793 * symtab.c (general_symbol_info::obj_section): Likewise.
2794 (fixup_section): Likewise.
2795 (get_msymbol_address): Likewise.
2796 * symtab.h (general_symbol_info::section): Rename to...
2797 (general_symbol_info::m_section): ...this.
2798 (general_symbol_info::set_section_index): New member function.
2799 (general_symbol_info::section_index): Likewise.
2800 (SYMBOL_SECTION): Delete.
2801 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
2802 set_section_index member functions where appropriate.
2803 (MSYMBOL_SECTION): Delete.
2804 (symbol::symbol): Update to initialize 'm_section'.
2805 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
2806 (process_xcoff_symbol): Likewise.
2807
ebbc3a7d
AB
28082021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2809
2810 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
2811 MSYMBOL_OBJ_SECTION.
2812 * findvar.c (language_defn::read_var_value): Likewise.
2813 * infcmd.c (jump_command): Likewise.
2814 * linespec.c (minsym_found): Likewise.
2815 * maint.c (maintenance_translate_address): Likewise.
2816 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
2817 (minimal_symbol_upper_bound): Likewise.
2818 * parse.c (find_minsym_type_and_address): Likewise.
2819 (operator_check_standard): Likewise.
2820 * printcmd.c (info_address_command): Likewise.
2821 * symmisc.c (dump_msymbols): Likewise.
2822 (print_symbol): Likewise.
2823 * symtab.c (general_symbol_info::obj_section): Define new
2824 function.
2825 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
2826 (find_pc_sect_compunit_symtab): Likewise.
2827 (find_function_start_sal): Likewise.
2828 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
2829 MSYMBOL_OBJ_SECTION.
2830 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
2831 function.
2832 (SYMBOL_OBJ_SECTION): Delete.
2833 (MSYMBOL_OBJ_SECTION): Delete.
2834
9bb305b3
TT
28352021-02-09 Tom Tromey <tom@tromey.com>
2836
2837 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
2838
cf2b2075
TV
28392021-02-09 Tom de Vries <tdevries@suse.de>
2840
2841 PR symtab/27341
2842 * dwarf2/read.c (read_array_type): Return NULL when not being able to
2843 construct an array type. Add assert to ensure that element_type is
2844 not being modified.
2845
03642b71
AB
28462021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
2847
2848 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
2849 (gcore_collect_regset_section_cb): Delete.
2850 (gcore_collect_thread_registers): Delete.
2851 (gcore_build_thread_register_notes): Delete.
2852 (gcore_find_signalled_thread): Delete.
2853 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
2854 'gdbarch' and 'thread_info' declarations.
2855 (gcore_build_thread_register_notes): Delete declaration.
2856 (gcore_find_signalled_thread): Likewise.
2857 * fbsd-tdep.c: Remove 'gcore.h' include.
2858 (struct fbsd_collect_regset_section_cb_data): New struct.
2859 (fbsd_collect_regset_section_cb): New function.
2860 (fbsd_collect_thread_registers): New function.
2861 (struct fbsd_corefile_thread_data): New struct.
2862 (fbsd_corefile_thread): New function.
2863 (fbsd_make_corefile_notes): Call FreeBSD specific code.
2864 * linux-tdep.c: Remove 'gcore.h' include.
2865 (struct linux_collect_regset_section_cb_data): New struct.
2866 (linux_collect_regset_section_cb): New function.
2867 (linux_collect_thread_registers): New function.
2868 (linux_corefile_thread): Call Linux specific code.
2869 (find_signalled_thread): New function.
2870 (linux_make_corefile_notes): Call find_signalled_thread.
2871
f73e424f
TT
28722021-02-09 Tom Tromey <tromey@adacore.com>
2873
2874 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
2875 not_lval value.
2876 * value.c (value_contents_copy_raw): Now static.
2877 * value.h (value_contents_copy_raw): Don't declare.
2878
a4f0544b
TT
28792021-02-09 Tom Tromey <tromey@adacore.com>
2880
2881 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
2882 fields.
2883
9b3e4b5d
SV
28842021-02-08 Shahab Vahedi <shahab@synopsys.com>
2885
2886 PR tdep/27369
2887 * arc-linux-tdep.c (handle_atomic_sequence): New.
2888 (arc_linux_software_single_step): Call handle_atomic_sequence().
2889
29db1eb3
AB
28902021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2891
2892 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
2893 function.
2894 (REQUIRE_WINDOW): Call is_valid member function.
2895 (REQUIRE_WINDOW_FOR_SETTER): New define.
2896 (gdbpy_tui_is_valid): Call is_valid member function.
2897 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
2898 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
2899 tui_active too.
2900 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
2901 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
2902 the function.
2903
e0c23e11
AB
29042021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2905
2906 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
2907 for the title is not nullptr.
2908
1cf23996
AB
29092021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2910
2911 * tui-layout.c (saved_tui_windows): Delete.
2912 (tui_apply_current_layout): Don't make use of saved_tui_windows,
2913 call new get_windows member function instead.
2914 (tui_get_window_by_name): Check in tui_windows.
2915 (tui_layout_window::apply): Don't add to tui_windows.
2916 * tui-layout.h (tui_layout_base::get_windows): New member function.
2917 (tui_layout_window::get_windows): Likewise.
2918 (tui_layout_split::get_windows): Likewise.
2919
a53a2657
AB
29202021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2921
2922 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
2923 of the window objects.
2924
2708dbbd
AB
29252021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2926
2927 * python/python.c (gdbpy_print_stack): Reformat an error message.
2928
cd074e04
AB
29292021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2930
2931 * tui/tui-interp.c (tui_command_line_handler): New function.
2932 (tui_interp::resume): Register tui_command_line_handler as the
2933 input_handler.
2934 * tui/tui-io.c (tui_inject_newline_into_command_window): New
2935 function.
2936 (tui_getc_1): Delete handling of '\n' and '\r'.
2937 * tui-io.h (tui_inject_newline_into_command_window): Declare.
2938
4cf28e91
HD
29392021-02-07 Hannes Domani <ssbssa@yahoo.de>
2940
2941 * tui/tui-regs.c (tui_data_window::display_registers_from):
2942 Mark invisible register sub windows.
2943 (tui_data_window::check_register_values): Ignore invisible
2944 register sub windows.
2945
3537bc23
HD
29462021-02-07 Hannes Domani <ssbssa@yahoo.de>
2947
2948 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
2949 n_spaces with a negative value.
2950
5fc2d6aa
HD
29512021-02-07 Hannes Domani <ssbssa@yahoo.de>
2952
2953 * tui/tui-regs.c (tui_data_window::display_registers_from):
2954 Add refresh_window call.
2955
83962f83
HD
29562021-02-07 Hannes Domani <ssbssa@yahoo.de>
2957
2958 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
2959
0110ec82
SM
29602021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
2961
2962 * symmisc.c (std_in, std_out, std_err): Remove.
2963 (_initialize_symmisc): Don't set std_in, std_out and std_err.
2964
7c6944ab
TV
29652021-02-05 Tom de Vries <tdevries@suse.de>
2966
2967 PR breakpoints/27330
2968 * breakpoint.c (create_exception_master_breakpoint): Handle case that
2969 glibc object file has debug info.
2970
e77b0004
TV
29712021-02-05 Tom de Vries <tdevries@suse.de>
2972
2973 PR symtab/27333
2974 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
2975
0e857c82
TV
29762021-02-05 Tom de Vries <tdevries@suse.de>
2977
2978 PR breakpoints/27313
2979 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
2980 syscall numbers.
2981
bdfea17e
TT
29822021-02-05 Tom Tromey <tom@tromey.com>
2983
2984 * compile/compile-c-support.c (get_compile_context)
2985 (c_get_compile_context, cplus_get_compile_context): Change return
2986 type.
2987 * language.c (language_defn::get_compile_instance): New method.
2988 * language.h (language_defn::get_compile_instance): Change return
2989 type. No longer inline.
2990 * c-lang.c (c_language::get_compile_instance): Change return type.
2991 (cplus_language::get_compile_instance): Change return type.
2992 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
2993 Change return type.
2994 * compile/compile.c (compile_to_object): Update.
2995
1b30f421
TT
29962021-02-05 Tom Tromey <tom@tromey.com>
2997
2998 * parser-defs.h (write_exp_symbol_reference): Declare.
2999 * parse.c (write_exp_symbol_reference): New function.
3000 * p-exp.y (variable): Use write_exp_symbol_reference.
3001 * m2-exp.y (variable): Use write_exp_symbol_reference.
3002 * f-exp.y (variable): Use write_exp_symbol_reference.
3003 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
3004 * c-exp.y (variable): Use write_exp_symbol_reference.
3005
ae710496
TV
30062021-02-05 Tom de Vries <tdevries@suse.de>
3007
3008 PR exp/27265
3009 * valarith.c (complex_binop): Throw an error if complex type can't
3010 be created.
3011
d3b54e63
TV
30122021-02-05 Tom de Vries <tdevries@suse.de>
3013
3014 PR symtab/27307
3015 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
3016 return.
3017
fc9a13fb
TV
30182021-02-05 Tom de Vries <tdevries@suse.de>
3019
3020 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
3021
04b4939b
MF
30222021-02-04 Mike Frysinger <vapier@gentoo.org>
3023
3024 * configure.tgt (riscv*-*-*): Set gdb_sim.
3025
6ff267e1
SM
30262021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
3027
3028 * target.c (target_is_non_stop_p): Return bool.
3029 * target.h (target_is_non_stop_p): Return bool.
3030
fdbc5215
SM
30312021-02-04 Simon Marchi <simon.marchi@efficios.com>
3032
3033 * record-full.c (record_full_async_inferior_event_handler):
3034 Don't clear async event handler.
3035 (record_full_base_target::wait): Clear async event handler at
3036 beginning.
3037
85d3ad8e
SM
30382021-02-04 Simon Marchi <simon.marchi@efficios.com>
3039
3040 * record-btrace.c (record_btrace_handle_async_inferior_event):
3041 Don't clear async event handler.
3042 (record_btrace_target::wait): Clear async event handler at
3043 beginning.
3044
baa8575b
SM
30452021-02-04 Simon Marchi <simon.marchi@efficios.com>
3046
3047 * remote.c (remote_target::wait): Clear async event handler at
3048 beginning, mark if needed at the end.
3049 (remote_async_inferior_event_handler): Don't set or clear async
3050 event handler.
3051
6b36ddeb
SM
30522021-02-04 Simon Marchi <simon.marchi@efficios.com>
3053
3054 * async-event.h (async_event_handler_func): Add documentation.
3055 * async-event.c (check_async_event_handlers): Don't clear
3056 async_event_handler ready flag.
3057 * infrun.c (infrun_async_inferior_event_handler): Clear ready
3058 flag.
3059 * record-btrace.c (record_btrace_handle_async_inferior_event):
3060 Likewise.
3061 * record-full.c (record_full_async_inferior_event_handler):
3062 Likewise.
3063 * remote-notif.c (remote_async_get_pending_events_handler):
3064 Likewise.
3065 * remote.c (remote_async_inferior_event_handler): Likewise.
3066
72d383bb
SM
30672021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
3068
3069 * infrun.c (handle_inferior_event): Move stop_soon variable to
3070 inner scope.
3071
408f6686
PA
30722021-02-03 Pedro Alves <pedro@palves.net>
3073
3074 * infcmd.c (detach_command): Hold strong reference to target, and
3075 if all-stop on entry, restart threads on exit.
3076 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
3077 (restart_stepped_thread): ... this new function. Also handle
3078 trap_expected.
3079 (restart_after_all_stop_detach): New function.
3080 * infrun.h (restart_after_all_stop_detach): Declare.
3081
ac7d717c
PA
30822021-02-03 Pedro Alves <pedro@palves.net>
3083
3084 * infrun.c (struct step_over_info): Initialize fields.
3085 (prepare_for_detach): Handle ongoing in-line step over.
3086
e87f0fe8
PA
30872021-02-03 Pedro Alves <pedro@palves.net>
3088
3089 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
3090 here...
3091 * remote.c (remote_target::remote_detach_1): ... and here ...
3092 * target.c (target_detach): ... instead of here.
3093 * target.h (target_ops::detach): Add comment.
3094
8ff53139
PA
30952021-02-03 Pedro Alves <pedro@palves.net>
3096
3097 * infrun.c (struct wait_one_event): Move higher up.
3098 (prepare_for_detach): Abort in-progress displaced steps instead of
3099 letting them complete.
3100 (handle_one): If the inferior is detaching, don't add the thread
3101 back to the global step-over chain.
3102 (restart_threads): Don't restart threads if detaching.
3103 (handle_signal_stop): Remove inferior::detaching reference.
3104
91475068
PA
31052021-02-03 Pedro Alves <pedro@palves.net>
3106
3107 * infrun.c (prepare_for_detach): Don't release scoped_restore
3108 before returning.
3109
d758e62c
PA
31102021-02-03 Pedro Alves <pedro@palves.net>
3111
3112 * infrun.c (handle_one): New function, factored out from ...
3113 (stop_all_threads): ... here.
3114
b0083dd7
PA
31152021-02-03 Pedro Alves <pedro@palves.net>
3116
3117 * remote.c (remote_notif_stop_ack): Don't error out on
3118 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
3119 (remote_target::discard_pending_stop_replies): Don't delete
3120 in-flight notification; instead, clear its contents.
3121
621cc310
PA
31222021-02-03 Pedro Alves <pedro@palves.net>
3123
3124 * remote.c (extended_remote_target::attach): Set target async in
3125 the target-non-stop path too.
3126
2ab76a18
PA
31272021-02-03 Pedro Alves <pedro@palves.net>
3128
3129 PR gdb/27055
3130 * infrun.c (handle_signal_stop): Move main context_switch call
3131 earlier, before STOP_QUIETLY_NO_SIGSTOP.
3132
2e3773ff
LS
31332021-02-02 Lancelot SIX <lsix@lancelotsix.com>
3134
3135 * NEWS (Changed commands): Add entry for the behavior change of
3136 the inferior command.
3137 * inferior.c (inferior_command): When no argument is given to the
3138 inferior command, display info about the currently selected
3139 inferior.
3140
e57933dc
SM
31412021-02-02 Simon Marchi <simon.marchi@efficios.com>
3142
3143 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
3144 a sect_offset.
3145 (read_attribute_reprocess): Adjust.
3146
2b0c7f41
SM
31472021-02-02 Simon Marchi <simon.marchi@efficios.com>
3148
3149 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
3150 <gnu_ranges_base>: ... this...
3151 <rnglists_base>: ... and this.
3152 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
3153 <gnu_ranges_base>: ... this...
3154 <rnglists_base>: ... and this.
3155 (read_cutu_die_from_dwo): Adjust
3156 (dwarf2_get_pc_bounds): Adjust
3157 (dwarf2_record_block_ranges): Adjust.
3158 (read_full_die_1): Adjust
3159 (partial_die_info::read): Adjust.
3160 (read_rnglist_index): Adjust.
3161
a1c40103
SM
31622021-02-02 Simon Marchi <simon.marchi@efficios.com>
3163
3164 PR gdb/26813
3165 * dwarf2/read.c (read_loclists_rnglists_header): Add
3166 header_offset parameter and use it.
3167 (read_loclist_index): Read header of the current contribution,
3168 not the one at the beginning of the section.
3169 (read_rnglist_index): Likewise.
3170
b1829e1b
SM
31712021-02-02 Simon Marchi <simon.marchi@efficios.com>
3172
3173 PR gdb/26813
3174 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
3175 requires_reprocessing flag.
3176 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
3177 DW_FORM_loclistx.
3178 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
3179 and DW_FORM_loclistx.
3180 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
3181 instead of set_address for DW_FORM_loclistx and
3182 DW_FORM_rnglistx.
3183
0c800c6e
SM
31842021-02-02 Simon Marchi <simon.marchi@efficios.com>
3185
3186 * dwarf2/read.c (read_loclist_index): Remove bound check for
3187 start of offset.
3188 (read_rnglist_index): Likewise.
3189
05787bad
SM
31902021-02-02 Simon Marchi <simon.marchi@efficios.com>
3191
3192 * dwarf2/read.c (read_loclist_index): Add bound check for the end
3193 of the offset.
3194
5e4d9bbc
SM
31952021-02-02 Simon Marchi <simon.marchi@efficios.com>
3196
3197 * dwarf2/read.c (read_rnglist_index): Fix bound check.
3198
a0c1eeba
SM
31992021-02-02 Simon Marchi <simon.marchi@efficios.com>
3200
3201 * dwarf2/read.c (read_loclist_index): Change complaints into
3202 errors.
3203
2bd3e4b8
TV
32042021-02-02 Tom de Vries <tdevries@suse.de>
3205
3206 PR symtab/24620
3207 * dwarf2/index-write.c (write_one_signatured_type): Skip if
3208 psymtab == nullptr.
3209
82a1fd3a
AB
32102021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
3211
3212 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
3213 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
3214 here from linux-tdep.c and given a new name. Minor cleanups.
3215 (gcore_collect_regset_section_cb): Likewise.
3216 (gcore_collect_thread_registers): Likewise.
3217 (gcore_build_thread_register_notes): Likewise.
3218 (gcore_find_signalled_thread): Likewise.
3219 * gcore.h (gcore_build_thread_register_notes): Declare.
3220 (gcore_find_signalled_thread): Declare.
3221 * fbsd-tdep.c: Add 'gcore.h' include.
3222 (struct fbsd_collect_regset_section_cb_data): Delete.
3223 (fbsd_collect_regset_section_cb): Delete.
3224 (fbsd_collect_thread_registers): Delete.
3225 (struct fbsd_corefile_thread_data): Delete.
3226 (fbsd_corefile_thread): Delete.
3227 (fbsd_make_corefile_notes): Call
3228 gcore_build_thread_register_notes instead of the now deleted
3229 FreeBSD code.
3230 * linux-tdep.c: Add 'gcore.h' include.
3231 (struct linux_collect_regset_section_cb_data): Delete.
3232 (linux_collect_regset_section_cb): Delete.
3233 (linux_collect_thread_registers): Delete.
3234 (linux_corefile_thread): Call
3235 gcore_build_thread_register_notes.
3236 (find_signalled_thread): Delete.
3237 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
3238
ebde6f2d
TV
32392021-01-29 Tom de Vries <tdevries@suse.de>
3240
3241 PR breakpoints/26063
3242 * infrun.c (process_event_stop_test): Reset
3243 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
3244 changed.
3245
0f93c3a2
AB
32462021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3247
3248 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
3249 assert. Extend the header comment.
3250
f237f998
AB
32512021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3252
3253 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
3254 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
3255 * tui/tui-data.h (TUI_STATUS_WIN): Define.
3256 (tui_locator_win_info_ptr): Delete declaration.
3257 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
3258 (tui_disasm_window::set_contents): Fetch state from tui_location
3259 global.
3260 (tui_get_begin_asm_address): Likewise.
3261 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
3262 for locator window.
3263 (get_locator_window): Delete.
3264 (initialize_known_windows): Treat locator window just like all the
3265 rest.
3266 * tui/tui-source.c: Add 'tui/tui-location.h' include.
3267 (tui_source_window::set_contents): Fetch state from tui_location
3268 global.
3269 (tui_source_window::showing_source_p): Likewise.
3270 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
3271 (_locator): Delete.
3272 (tui_locator_win_info_ptr): Delete.
3273 (tui_locator_window::make_status_line): Fetch state from
3274 tui_location global.
3275 (tui_locator_window::rerender): Remove check of 'handle',
3276 reindent function body.
3277 (tui_locator_window::set_locator_fullname): Delete.
3278 (tui_locator_window::set_locator_info): Delete.
3279 (tui_update_locator_fullname): Delete.
3280 (tui_show_frame_info): Likewise.
3281 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
3282 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
3283 tui/tui-location.h and renamed to
3284 tui_location_tracker::set_location.
3285 (tui_locator_window::set_locator_fullname): Moved to
3286 tui/tui-location.h and renamed to
3287 tui_location_tracker::set_fullname.
3288 (tui_locator_window::full_name): Delete.
3289 (tui_locator_window::proc_name): Delete.
3290 (tui_locator_window::line_no): Delete.
3291 (tui_locator_window::addr): Delete.
3292 (tui_locator_window::gdbarch): Delete.
3293 (tui_update_locator_fullname): Delete declaration.
3294 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
3295 for locator window.
3296 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
3297 (tui_display_main): Call function on tui_location directly.
3298 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
3299 * tui/tui-location.c: New file.
3300 * tui/tui-location.h: New file.
3301
8ee511af
SM
33022021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
3303
3304 * gdbtypes.h (get_type_arch): Rename to...
3305 (struct type) <arch>: ... this, update all users.
3306
6ac37371
SM
33072021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
3308
3309 * gdbtypes.h (struct type) <arch>: Rename to...
3310 <arch_owner>: ... this, update all users.
3311 <objfile>: Rename to...
3312 <objfile_owner>: ... this, update all users.
3313
24cf6389
AB
33142021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3315
3316 * gdbcmd.h (execute_command_to_string): Update comment.
3317 * top.c (execute_command_to_string): Update header comment.
3318
2a7f6487
TV
33192021-01-28 Tom de Vries <tdevries@suse.de>
3320
3321 PR breakpoints/27205
3322 * breakpoint.c (create_longjmp_master_breakpoint_probe)
3323 (create_longjmp_master_breakpoint_names): New function, factored out
3324 of ...
3325 (create_longjmp_master_breakpoint): ... here. Only try to install
3326 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
3327 breakpoint in libc.so failed.
3328
59b59f08
LS
33292021-01-27 Lancelot SIX <lsix@lancelotsix.com>
3330
3331 PR gdb/27133
3332 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
3333 unique_ptr is released when the wrapped pointer is kept for later
3334 use.
3335
807f647c
MM
33362021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
3337
3338 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
3339 BLR and BR instructions.
3340 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
3341 (enum aarch64_masks): New.
3342
4ef367bf
TT
33432021-01-26 Tom Tromey <tromey@adacore.com>
3344
3345 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
3346 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
3347 (windows_init_thread_list, windows_nat::handle_load_dll)
3348 (windows_nat::handle_unload_dll, windows_nat_target::resume)
3349 (windows_nat_target::resume)
3350 (windows_nat_target::get_windows_debug_event)
3351 (windows_nat_target::interrupt, windows_xfer_memory)
3352 (windows_nat_target::close): Update.
3353 * nat/windows-nat.c (DEBUG_EVENTS): Use
3354 debug_prefixed_printf_cond.
3355 (matching_pending_stop, fetch_pending_stop)
3356 (continue_last_debug_event): Update.
3357
4cb1265b
MS
33582020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
3359
3360 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
3361 elfcore_write_file_note.
3362
d0cc52bd
SV
33632021-01-26 Shahab Vahedi <shahab@synopsys.com>
3364
3365 * arc-tdep.c (arc_add_reggroups): New function.
3366 (arc_gdbarch_init): Call arc_add_reggroups.
3367
ac3571d9 33682021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
3369
3370 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
3371
9f6c202e
TV
33722021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
3373 Simon Marchi <simon.marchi@polymtl.ca>
3374 Tom de Vries <tdevries@suse.de>
3375
3376 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
3377 DW_AT_ranges.
3378
a625a8c9
TT
33792021-01-25 Tom Tromey <tromey@adacore.com>
3380
3381 * dwarf2/read.c (get_mpz): New function.
3382 (get_dwarf2_rational_constant): Use it.
3383
19184910
TT
33842021-01-25 Tom Tromey <tromey@adacore.com>
3385
3386 * ada-lang.c (resolve_subexp): Handle array context.
3387
b10bae18
TT
33882021-01-23 Tom Tromey <tom@tromey.com>
3389
3390 PR compile/25575
3391 * compile/compile-loc2c.c (note_register): New function.
3392 (pushf_register_address, pushf_register): Use it.
3393
3637a558
TT
33942021-01-23 Tom Tromey <tom@tromey.com>
3395
3396 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
3397 Change type of "registers_used".
3398 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
3399 * dwarf2/loc.c (dwarf2_compile_property_to_c)
3400 (locexpr_generate_c_location, loclist_generate_c_location): Change
3401 type of "registers_used".
3402 * compile/compile.h (compile_dwarf_expr_to_c)
3403 (compile_dwarf_bounds_to_c): Update.
3404 * compile/compile-loc2c.c (pushf_register_address)
3405 (pushf_register, do_compile_dwarf_expr_to_c)
3406 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
3407 of "registers_used".
3408 * compile/compile-c.h (generate_c_for_variable_locations):
3409 Update.
3410 * compile/compile-c-symbols.c (generate_vla_size)
3411 (generate_c_for_for_one_variable): Change type of
3412 "registers_used".
3413 (generate_c_for_variable_locations): Return std::vector.
3414 * compile/compile-c-support.c (generate_register_struct): Change
3415 type of "registers_used".
3416 (compute): Update.
3417
9f7f6cb8
TT
34182021-01-23 Tom Tromey <tom@tromey.com>
3419
3420 * compile/compile-internal.h (class compile_instance)
3421 <set_arguments>: Change return type.
3422 * compile/compile.c (compile_to_object): Remove call to reset.
3423 (compile_instance::set_arguments): Change return type.
3424
dd5ca05f
SM
34252021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
3426
3427 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
3428 * gdbtypes.h (struct type) <set_owner>: Add asserts.
3429
d3ee35db
LS
34302021-01-23 Lancelot SIX <lsix@lancelotsix.com>
3431
3432 * Makefile.in (SELFTESTS_SRCS): Add
3433 unittests/gdb_tilde_expand-selftests.c.
3434 * unittests/gdb_tilde_expand-selftests.c: New file.
3435
9d2d8a16
AB
34362021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3437
3438 PR cli/25956
3439 * NEWS: Mention new command.
3440 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
3441 (version_style): Define.
3442 (cli_style_option::cli_style_option): Add intensity parameter, and
3443 use as appropriate.
3444 (_initialize_cli_style): Register version style set/show commands.
3445 * cli/cli-style.h (cli_style_option): Add intensity parameter.
3446 (version_style): Declare.
3447 * top.c (print_gdb_version): Use version_stype, and styled_string
3448 to print the GDB version string.
3449
e7b43072
AB
34502021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3451
3452 * utils.c (emit_style_escape): Only emit an escape sequence if the
3453 requested style is different than the current applied style.
3454 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
3455 current applied_style.
3456 (fputs_styled): Remove is_default check.
3457 (fputs_styled_unfiltered): Likewise.
3458 (vfprintf_styled_no_gdbfmt): Likewise.
3459
2189c312
SM
34602021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3461
3462 * remote.h (remote_debug_printf): New.
3463 (remote_debug_printf_nofunc): New.
3464 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
3465 * remote.c: Use above macros throughout file.
3466
02349803
SM
34672021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3468
3469 * remote.h (remote_debug): Change to bool.
3470 * remote.c (remote_debug): Change to bool.
3471 (_initialize_remote): Adjust.
3472
cda09ec9
SM
34732021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3474
3475 * target.h (remote_debug): Move to...
3476 * remote.h (remote_debug): ... here.
3477 * top.c (remote_debug): Move to...
3478 * remote.c (remote_debug): ... here.
3479 * remote-sim.c: Include remote.h.
3480
baf2b57f
SM
34812021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3482
3483 * cli/cli-cmds.c (show_remote_debug): Remove.
3484 (show_remote_timeout): Remove.
3485 (_initialize_cli_cmds): Don't register commands.
3486 * remote.c (show_remote_debug): Move here.
3487 (show_remote_timeout): Move here.
3488 (_initialize_remote): Register commands.
3489
344e9841
SM
34902021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3491
3492 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
3493 type::objfile method instead.
3494
30625020
SM
34952021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3496
3497 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
3498 use the type::is_objfile_owned method.
3499
5b7d941b
SM
35002021-01-22 Simon Marchi <simon.marchi@efficios.com>
3501
3502 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
3503 (TYPE_OWNER): Remove.
3504 (TYPE_OBJFILE): Adjust.
3505 (struct main_type) <flag_objfile_owned>: Rename to...
3506 <m_flag_objfile_owned>: ... this.
3507 <owner>: Rename to...
3508 <m_owner>: ... this.
3509 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
3510 methods.
3511 (TYPE_ALLOC): Adjust.
3512 * gdbtypes.c (alloc_type): Adjust.
3513 (alloc_type_arch): Adjust.
3514 (alloc_type_copy): Adjust.
3515 (get_type_arch): Adjust.
3516 (smash_type): Adjust.
3517 (lookup_array_range_type): Adjust.
3518 (recursive_dump_type): Adjust.
3519 (copy_type_recursive): Adjust.
3520 * compile/compile-c-types.c (convert_func): Adjust.
3521 (convert_type_basic): Adjust.
3522 * compile/compile-cplus-types.c (compile_cplus_convert_func):
3523 Adjust.
3524 * language.c
3525 (language_arch_info::type_and_symbol::alloc_type_symbol):
3526 Adjust.
3527
d5d24e12
LM
35282021-01-21 Luis Machado <luis.machado@linaro.org>
3529
3530 * coffread.c (enter_linenos): Passing string to complaint.
3531 * valops.c (value_assign): Make array view.
3532
a59902a7
SM
35332021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3534
3535 * auto-load.h (debug_auto_load): Move here.
3536 (auto_load_debug_printf): New.
3537 * auto-load.c: Use auto_load_debug_printf.
3538 (debug_auto_load): Move to header.
3539 * linux-thread-db.c (try_thread_db_load): Use
3540 auto_load_debug_printf.
3541 * main.c (captured_main_1): Likewise.
3542
d3abc0ce
SM
35432021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3544
3545 * f-valprint.c (f77_array_offset_tbl): Remove.
3546
1e15fcac
SM
35472021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3548
3549 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
3550
439706e6
SM
35512021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3552
3553 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
3554 of gdb_select.
3555
325d39e4
HD
35562021-01-21 Hannes Domani <ssbssa@yahoo.de>
3557
3558 PR python/19151
3559 * python/py-breakpoint.c (bppy_get_location): Handle
3560 bp_hardware_breakpoint.
3561 (bppy_init): Likewise.
3562 (gdbpy_breakpoint_created): Likewise.
3563
7cb6d92a
SM
35642021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3565
3566 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
3567
d4dd4fca
SM
35682021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3569
3570 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
3571 (_initialize_gdb_bfd): Adjust.
3572
de53369b
SM
35732021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3574
3575 PR gdb/26828
3576 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
3577
17e593e9
SM
35782021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3579
3580 * dwarf2/read.c (follow_die_offset): Add logging.
3581 (dwarf2_per_objfile::age_comp_units): Add logging.
3582
6bd434d6
SM
35832021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3584
3585 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
3586 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
3587 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
3588 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
3589 * arm-tdep.c (struct frame_unwind): Make static.
3590 * auto-load.c (auto_load_safe_path_vec): Make static.
3591 * csky-tdep.c (csky_stub_unwind): Make static.
3592 * gdbarch.c (gdbarch_data_registry): Make static.
3593 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
3594 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
3595 * i386-tdep.c (i386_frame_setup_skip_insns,
3596 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
3597 Make static.
3598 * infrun.c (observer_mode): Make static.
3599 * linux-nat.c (sigchld_action): Make static.
3600 * linux-thread-db.c (thread_db_list): Make static.
3601 * maint-test-options.c (maintenance_test_options_list):
3602 * mep-tdep.c (mep_csr_registers): Make static.
3603 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
3604 (stats): Make static.
3605 * nat/linux-osdata.c (struct osdata_type): Make static.
3606 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
3607 * progspace.c (last_program_space_num): Make static.
3608 * python/py-param.c (struct parm_constant): Remove struct type
3609 name.
3610 (parm_constants): Make static.
3611 * python/py-record-btrace.c (btpy_list_methods): Make static.
3612 * python/py-record.c (recpy_gap_type): Make static.
3613 * record.c (record_goto_cmdlist): Make static.
3614 * regcache.c (regcache_descr_handle): Make static.
3615 * registry.h (DEFINE_REGISTRY): Make definition static.
3616 * symmisc.c (std_in, std_out, std_err): Make static.
3617 * top.c (previous_saved_command_line): Make static.
3618 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
3619 static.
3620 * unittests/command-def-selftests.c (nr_duplicates,
3621 nr_invalid_prefixcmd, lists): Make static.
3622 * unittests/observable-selftests.c (test_notification): Make
3623 static.
3624 * unittests/optional/assignment/1.cc (counter): Make static.
3625 * unittests/optional/assignment/2.cc (counter): Make static.
3626 * unittests/optional/assignment/3.cc (counter): Make static.
3627 * unittests/optional/assignment/4.cc (counter): Make static.
3628 * unittests/optional/assignment/5.cc (counter): Make static.
3629 * unittests/optional/assignment/6.cc (counter): Make static.
3630
a6c11cbb
JS
36312021-01-20 Joel Sherrill <joel@rtems.org>
3632
3633 PR gdb/27219
3634 * remote.c (struct remote_thread_info) <resume_state>: Rename
3635 to...
3636 <get_resume_state>: ... this.
3637 (remote_target::resume): Adjust.
3638 (remote_target::commit_resume): Adjust.
3639 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
3640
6f52fdf4
SDJ
36412021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
3642 Tom Tromey <tom@tromey.com>
3643
3644 * stap-probe.c (stap_parse_single_operand): Handle '!'
3645 operator.
3646 (stap_parse_argument_conditionally): Likewise.
3647 Skip spaces after processing open-parenthesis sub-expression.
3648 (stap_parse_argument_1): Skip spaces after call to
3649 stap_parse_argument_conditionally.
3650 Handle case when right-side expression is a parenthesized
3651 sub-expression.
3652 Skip spaces after call to stap_parse_argument_1.
3653
1c3b85ad
LS
36542021-01-19 Lancelot SIX <lsix@lancelotsix.com>
3655
3656 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
3657
a9a87d35
LM
36582021-01-19 Luis Machado <luis.machado@linaro.org>
3659
3660 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
3661 memory and save data.
3662 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
3663 (trad_frame_set_unknown, trad_frame_set_value_bytes)
3664 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3665 (trad_frame_value_bytes_p): Remove.
3666 (trad_frame_reset_saved_regs): Adjust documentation.
3667 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
3668 constructor and reset the state of the registers.
3669 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3670 (trad_frame_value_bytes_p, trad_frame_set_value)
3671 (trad_frame_set_realreg, trad_frame_set_addr)
3672 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
3673 (trad_frame_set_reg_realreg): Update to call member function.
3674 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
3675 (trad_frame_get_prev_register): Likewise.
3676
3677 * aarch64-tdep.c (aarch64_analyze_prologue)
3678 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
3679 (aarch64_prologue_prev_register): Update to use member functions.
3680 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
3681 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
3682 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
3683 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
3684 (arm_make_epilogue_frame_cache): Likewise.
3685 * avr-tdep.c (avr_frame_unwind_cache)
3686 (avr_frame_prev_register): Likewise.
3687 * cris-tdep.c (cris_scan_prologue): Likewise.
3688 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
3689 * frv-tdep.c (frv_analyze_prologue): Likewise.
3690 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
3691 * lm32-tdep.c (lm32_frame_cache): Likewise.
3692 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3693 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3694 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
3695 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
3696 (reset_saved_regs): Adjust to set realreg.
3697 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
3698 call member functions.
3699 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
3700 * s390-tdep.c (s390_prologue_frame_unwind_cache)
3701 (s390_backchain_frame_unwind_cache): Likewise.
3702 * score-tdep.c (score7_analyze_prologue)
3703 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
3704 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
3705 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3706 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
3707 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3708 * tilegx-tdep.c (tilegx_analyze_prologue)
3709 (tilegx_frame_cache): Likewise.
3710 * v850-tdep.c (v850_frame_cache): Likewise.
3711 * vax-tdep.c (vax_frame_cache): Likewise.
3712
bdec2917
LM
37132021-01-19 Luis Machado <luis.machado@linaro.org>
3714
3715 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
3716 of buffer + length.
3717 (put_frame_register_bytes): Likewise.
3718 Adjust documentation.
3719 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
3720 (safe_frame_unwind_memory): Likewise.
3721 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
3722 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
3723 gdb::array_view.
3724 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
3725 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
3726 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3727 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
3728 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
3729 * dwarf2/loc.c (rw_pieced_value): Likewise.
3730 * hppa-tdep.c (hppa_frame_cache): Likewise.
3731 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
3732 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
3733 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3734 (i386_linux_rt_sigtramp_start): Likewise.
3735 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3736 * i386-tdep.c (i386_register_to_value): Likewise.
3737 * i387-tdep.c (i387_register_to_value): Likewise.
3738 * ia64-tdep.c (ia64_register_to_value): Likewise.
3739 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
3740 (m32r_linux_rt_sigtramp_start): Likewise.
3741 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
3742 * m68k-tdep.c (m68k_register_to_value): Likewise.
3743 * mips-tdep.c (mips_register_to_value)
3744 (mips_value_to_register): Likewise.
3745 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
3746 (ppcfbsd_sigtramp_frame_cache): Likewise.
3747 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
3748 (ppcobsd_sigtramp_frame_cache): Likewise.
3749 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
3750 (rs6000_register_to_value): Likewise.
3751 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3752 * tramp-frame.c (tramp_frame_start): Likewise.
3753 * valops.c (value_assign): Likewise.
3754
ccbe4c82
LM
37552021-01-19 Luis Machado <luis.machado@linaro.org>
3756
3757 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
3758 array_view.
3759 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
3760 instead of buffer and size.
3761 (trad_frame_set_reg_value_bytes): Likewise.
3762 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
3763 (trad_frame_set_value_bytes): Likewise.
3764
0e7620dc
MF
37652021-01-18 Mike Frysinger <vapier@gentoo.org>
3766
3767 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
3768
6a9ad81c
AB
37692021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
3770
3771 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
3772 (riscv_fbsd_gregset): Use riscv_supply_regset.
3773 (riscv_fbsd_fpregset): Likewise.
3774 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
3775 (riscv_linux_fregset): Likewise.
3776 * riscv-tdep.c (riscv_supply_regset): Define new function.
3777 * riscv-tdep.h (riscv_supply_regset): Declare new function.
3778
d3d7d1ba
TV
37792021-01-18 Tom de Vries <tdevries@suse.de>
3780
3781 PR tdep/27172
3782 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
3783 New macro.
3784 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
3785 for SEGV_BNDERR.
3786
aa2838cc
SM
37872021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3788
3789 * remote.c (class remote_target) <remote_hostio_send_command,
3790 remote_hostio_parse_result>: Constify parameter.
3791 (remote_hostio_parse_result): Likewise.
3792 (remote_target::remote_hostio_send_command): Adjust.
3793 (remote_target::remote_hostio_pread_vFile): Adjust.
3794 (remote_target::fileio_readlink): Adjust.
3795 (remote_target::fileio_fstat): Adjust.
3796
b5c8f22d
SM
37972021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3798
3799 * remote.c (remote_target::start_remote): Move wait_status to
3800 narrower scope.
3801
e3b2741b
SM
38022021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3803
3804 * remote.c (class remote_target):
3805 <add_current_inferior_and_thread>: Constify parameter.
3806 (stop_reply_extract_thread): Likewise.
3807 (remote_target::get_current_thread): Likewise.
3808 (remote_target::add_current_inferior_and_thread): Likewise.
3809
cecb1912
SM
38102021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3811
3812 * remote.c (class remote_target)
3813 <remote_unpack_thread_info_response,
3814 parse_threadlist_response>: Constify parameter and/or return
3815 value and or local variable.
3816 (stub_unpack_int): Likewise.
3817 (unpack_nibble): Likewise.
3818 (unpack_byte): Likewise.
3819 (unpack_int): Likewise.
3820 (unpack_string): Likewise.
3821 (unpack_threadid): Likewise.
3822 (remote_target::remote_unpack_thread_info_response): Likewise.
3823 (remote_target::parse_threadlist_response): Likewise.
3824
5a11fff0
AB
38252021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
3826
3827 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
3828
17e89137
LS
38292021-01-14 Lancelot Six <lsix@lancelotsix.com>
3830
3831 * MAINTAINERS (Write After Approval): Add myself.
3832
58eadc4b
BE
38332021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3834
3835 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
3836 because is_trivially_default_constructible was first implemented with
3837 gcc-5.
3838
5fae2a2c
TV
38392021-01-14 Tom de Vries <tdevries@suse.de>
3840
3841 PR breakpoints/27151
3842 * objfiles.h (in_plt_section): Handle .plt.sec.
3843
8f66807b
AB
38442021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3845
3846 PR gdb/26819
3847 * remote.c
3848 (remote_target::select_thread_for_ambiguous_stop_reply): New
3849 member function.
3850 (remote_target::process_stop_reply): Call
3851 select_thread_for_ambiguous_stop_reply.
3852
bd497355
SM
38532021-01-13 Simon Marchi <simon.marchi@efficios.com>
3854
3855 * record-btrace.c (class record_btrace_target): Remove.
3856 (record_btrace_target::commit_resume): Remove.
3857 * record-full.c (class record_full_target): Remove.
3858 (record_full_target::commit_resume): Remove.
3859
c9d22089
SM
38602021-01-13 Simon Marchi <simon.marchi@efficios.com>
3861
3862 * remote.c (enum class resume_state): New.
3863 (struct resumed_pending_vcont_info): New.
3864 (struct remote_thread_info) <resume_state, set_not_resumed,
3865 set_resumed_pending_vcont, resumed_pending_vcont_info,
3866 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
3867 New.
3868 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
3869 (remote_target::remote_add_thread): Adjust.
3870 (remote_target::process_initial_stop_replies): Adjust.
3871 (remote_target::resume): Adjust.
3872 (remote_target::commit_resume): Rely on state in
3873 remote_thread_info and not on tp->executing.
3874 (remote_target::process_stop_reply): Adjust.
3875
d8d1feb4
SM
38762021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3877
3878 * arc-tdep.h (arc_debug_printf): New.
3879 * arc-tdep.c: Use arc_debug_printf.
3880 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
3881 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
3882 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
3883
fb0f5031
SM
38842021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3885
3886 * arc-tdep.h (arc_debug): Change type to bool.
3887 * arc-tdep.c (arc_debug): Change type to bool.
3888 (arc_analyze_prologue): Adjust.
3889 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
3890 * arc-linux-nat.c (ps_get_thread_area): Adjust.
3891
5bf7e91b
SM
38922021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3893
3894 * auto-load.c (auto_load_objfile_script_1): Use bool.
3895 (execute_script_contents): Use bool.
3896
db972fce
SM
38972021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3898
3899 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
3900 comment here.
3901 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
3902 comment to header.
3903 * extension-priv.h (struct extension_language_script_ops)
3904 <auto_load_enabled>: Return bool.
3905 * extension.h (ext_lang_auto_load_enabled): Return bool, move
3906 comment here.
3907 * extension.c (ext_lang_auto_load_enabled): Return bool, move
3908 comment to header.
3909 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
3910 move comment here.
3911 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
3912 move comment to header.
3913 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
3914 move comment here.
3915 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
3916 move comment to header.
3917
5e12f48f
SM
39182021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3919
3920 * auto-load.h (file_is_auto_load_safe): Change return type to
3921 bool, move comment here.
3922 * auto-load.c (file_is_auto_load_safe): Change return type and
3923 advice_printed to bool. Move comment to header.
3924
54ca9002
SM
39252021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3926
3927 * jit.c (jit_debug_printf): New, use throughout file.
3928
24a7f1b5
SM
39292021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3930
3931 * infrun.c (normal_stop): Fix indentation.
3932
fe7a351a
SM
39332021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3934
3935 * top.h (readnow_symbol_files, readnever_symbol_files): Move
3936 declarations to ...
3937 * symfile.h: ... here.
3938 * symfile.c: Update doc.
3939
16e9019e
SM
39402021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3941
3942 * target.h (baud_rate, serial_parity): Move declarations...
3943 * serial.h: ... here.
3944 * main.c: Include serial.h.
3945 * serial.c (baud_rate, serial_parity): Update doc.
3946
b2f2ae0d
SM
39472021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3948
3949 * top.c (pre_init_ui_hook): Remove.
3950
5291fe3c
SP
39512021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3952
3953 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
3954 (aarch64_vnv_type): Add "bf" type in h field of v registers.
3955 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
3956 * features/aarch64-fpu.xml: Add bfloat16 type.
3957
ce38f5ed
AB
39582021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3959
3960 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
3961
7c654b71
AB
39622021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3963
3964 * f-exp.y (dot_ops): Rename to...
3965 (fortran_operators): ...this. Add a header comment. Add symbol
3966 based operators.
3967 (yylex): Update to use fortran_operators not dot_ops. Remove
3968 special handling for '**', this is now included in
3969 fortran_operators.
3970
c6185dce
SM
39712021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3972
3973 * arch/aarch64-insn.h (aarch64_debug_printf): New.
3974 * arch/aarch64-insn.c: Use aarch64_debug_printf.
3975 * aarch64-tdep.c: Use aarch64_debug_printf.
3976
eef401dc
SM
39772021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3978
3979 * solib-aix.c (solib_aix_debug_printf): New, use throughout
3980 file.
3981
062eaacb
SM
39822021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3983
3984 * jit.c (jit_debug): Change type to bool.
3985 (_initialize_jit): Adjust.
3986
54585eee
TT
39872021-01-09 Tom Tromey <tom@tromey.com>
3988
3989 PR compile/23672
3990 * compile/compile.c (compile_to_object): Avoid crash when
3991 osabi_triplet_regexp returns NULL.
3992
bc167b6b
TT
39932021-01-09 Tom Tromey <tom@tromey.com>
3994
3995 * tracepoint.h (class collection_list) <append_exp>: Take a
3996 std::string.
3997 * tracepoint.c (collection_list::append_exp): Take a std::string.
3998 (encode_actions_1): Update.
3999
8fc48b79
TT
40002021-01-08 Tom Tromey <tromey@adacore.com>
4001
4002 * parse.c (parse_expression): Add void_context_p parameter. Use
4003 parse_exp_in_context.
4004 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
4005 parse_expression.
4006 (print_command, call_command): Update.
4007 * expression.h (parse_expression): Add void_context_p parameter.
4008
3c8c6de2
AB
40092021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
4010
4011 * value.c (set_value_component_location): Adjust the VALUE_LVAL
4012 for internalvar components that have a dynamic location.
4013
1940319c
TV
40142021-01-08 Tom de Vries <tdevries@suse.de>
4015
4016 PR gdb/26881
4017 * breakpoint.c (create_exception_master_breakpoint_probe)
4018 (create_exception_master_breakpoint_hook): Factor out
4019 of ...
4020 (create_exception_master_breakpoint): ... here. Only try to install
4021 the master exception breakpoint in objfile.debug using the
4022 _Unwind_DebugHook method, if the install using probes in objfile
4023 failed.
4024
e3436813
AB
40252021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
4026
4027 * f-lang.c (fortran_value_subarray): Call value_from_component.
4028
e904f56d
MF
40292021-01-07 Mike Frysinger <vapier@gentoo.org>
4030
4031 * remote-sim.c: Include memory-map.h.
4032 (gdbsim_target): Define memory_map override.
4033 (gdbsim_target::memory_map): Define.
4034
959d6a67
TT
40352021-01-07 Tom Tromey <tromey@adacore.com>
4036
4037 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
4038
d4813f10
TT
40392021-01-07 Tom Tromey <tromey@adacore.com>
4040
4041 * ada-lang.c (add_component_interval): Start loop using vector's
4042 updated size.
4043
b49180ac
TT
40442021-01-06 Tom Tromey <tromey@adacore.com>
4045
4046 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
4047 Do not cast result.
4048 * valarith.c (fixed_point_binop): Handle multiplication
4049 and division specially.
4050 * valops.c (value_to_gdb_mpq): New function.
4051 (value_cast_to_fixed_point): Use it.
4052
55195361
HD
40532021-01-05 Hannes Domani <ssbssa@yahoo.de>
4054
4055 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
4056 Call wnoutrefresh instead of tui_win_info::refresh_window.
4057
1b6d4bb2
HD
40582021-01-05 Hannes Domani <ssbssa@yahoo.de>
4059
4060 * tui/tui-source.c (tui_source_window::show_line_number):
4061 Redraw second space after line number.
4062
b5ff370e
HD
40632021-01-05 Hannes Domani <ssbssa@yahoo.de>
4064
4065 PR tui/26927
4066 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
4067 Fix source pad size in prefresh.
4068 (tui_source_window_base::show_source_content): Grow source pad
4069 if necessary.
4070
c68ea49f
MF
40712021-01-04 Mike Frysinger <vapier@gentoo.org>
4072
4073 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
4074 (bfin_frame_align): Use align_down.
4075
e4ad960a
TV
40762021-01-04 Tom de Vries <tdevries@suse.de>
4077
4078 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
4079 terminators that do not terminate anything.
4080
3ec3145c
SM
40812021-01-04 Simon Marchi <simon.marchi@efficios.com>
4082
4083 * debug.c (debug_print_depth): New.
4084 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
4085 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
4086 * infrun.c (start_step_over): Use
4087 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
4088 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
4089 INFRUN_SCOPED_DEBUG_START_END.
4090 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
4091
e71daf80
SM
40922021-01-04 Simon Marchi <simon.marchi@efficios.com>
4093
4094 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
4095
335709bc
SM
40962021-01-04 Simon Marchi <simon.marchi@efficios.com>
4097
4098 * utils.c (vfprintf_unfiltered): Print timestamp only when
4099 previous debug output ended with a newline.
4100
098caef4
LM
41012021-01-04 Luis Machado <luis.machado@linaro.org>
4102
4103 Update all users of trad_frame_saved_reg to use the new member
4104 functions.
4105
4106 Remote all struct keywords from declarations of trad_frame_saved_reg
4107 types, except on forward declarations.
4108
4109 * aarch64-tdep.c: Update.
4110 * alpha-mdebug-tdep.c: Update.
4111 * alpha-tdep.c: Update.
4112 * arc-tdep.c: Update.
4113 * arm-tdep.c: Update.
4114 * avr-tdep.c: Update.
4115 * cris-tdep.c: Update.
4116 * csky-tdep.c: Update.
4117 * frv-tdep.c: Update.
4118 * hppa-linux-tdep.c: Update.
4119 * hppa-tdep.c: Update.
4120 * hppa-tdep.h: Update.
4121 * lm32-tdep.c: Update.
4122 * m32r-linux-tdep.c: Update.
4123 * m32r-tdep.c: Update.
4124 * m68hc11-tdep.c: Update.
4125 * mips-tdep.c: Update.
4126 * moxie-tdep.c: Update.
4127 * riscv-tdep.c: Update.
4128 * rs6000-tdep.c: Update.
4129 * s390-linux-tdep.c: Update.
4130 * s390-tdep.c: Update.
4131 * score-tdep.c: Update.
4132 * sparc-netbsd-tdep.c: Update.
4133 * sparc-sol2-tdep.c: Update.
4134 * sparc64-fbsd-tdep.c: Update.
4135 * sparc64-netbsd-tdep.c: Update.
4136 * sparc64-obsd-tdep.c: Update.
4137 * sparc64-sol2-tdep.c: Update.
4138 * tilegx-tdep.c: Update.
4139 * v850-tdep.c: Update.
4140 * vax-tdep.c: Update.
4141
4142 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
4143 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
4144
4145 * trad-frame.c: Update.
4146 Remove TF_REG_* enum.
4147 (trad_frame_alloc_saved_regs): Add a static assertion to check for
4148 a trivially-constructible struct.
4149 (trad_frame_reset_saved_regs): Adjust to use member function.
4150 (trad_frame_value_p): Likewise.
4151 (trad_frame_addr_p): Likewise.
4152 (trad_frame_realreg_p): Likewise.
4153 (trad_frame_value_bytes_p): Likewise.
4154 (trad_frame_set_value): Likewise.
4155 (trad_frame_set_realreg): Likewise.
4156 (trad_frame_set_addr): Likewise.
4157 (trad_frame_set_unknown): Likewise.
4158 (trad_frame_set_value_bytes): Likewise.
4159 (trad_frame_get_prev_register): Likewise.
4160 * trad-frame.h: Update.
4161 (trad_frame_saved_reg_kind): New enum.
4162 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
4163 <m_kind, m_reg>: New member fields.
4164 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
4165 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
4166 <is_addr, is_unknown, is_value_bytes>: New member functions.
4167
9898e882
SM
41682021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
4169
4170 * target-float.c: Fix typos.
4171
b66b4e65
HD
41722021-01-02 Hannes Domani <ssbssa@yahoo.de>
4173
4174 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
4175
b5b5650a
JB
41762021-01-01 Joel Brobecker <brobecker@adacore.com>
4177
4178 * gdbarch.sh: Update copyright year range.
4179
3666a048
JB
41802021-01-01 Joel Brobecker <brobecker@adacore.com>
4181
4182 Update copyright year range in copyright header of all GDB files.
4183
ff7e39b6
JB
41842021-01-01 Joel Brobecker <brobecker@adacore.com>
4185
4186 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
4187 to the list of directories to update.
4188
2b47c078
JB
41892021-01-01 Joel Brobecker <brobecker@adacore.com>
4190
4191 * top.c (print_gdb_version): Update copyright year.
4192
476923f1 41932021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 4194
476923f1 4195 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 4196
476923f1 4197For older changes see ChangeLog-2020.
c906108c
SS
4198\f
4199Local Variables:
4200mode: change-log
4201left-margin: 8
4202fill-column: 74
4203version-control: never
57da7796 4204coding: utf-8
c906108c 4205End: