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