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