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