Fix Ada overloading with 'null'
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2021-04-28 Tom Tromey <tromey@adacore.com>
2
3 * ada-exp.y (primary): Use new type for null pointer.
4 * ada-lang.c (ada_type_match): Remove "may_deref"
5 parameter. Handle null pointer.
6 (ada_args_match): Update.
7 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
8 Handle null pointer.
9
10 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
11
12 * NEWS: Mention new commands.
13 * python/python.c (python_ignore_environment): New static global.
14 (show_python_ignore_environment): New function.
15 (set_python_ignore_environment): New function.
16 (python_dont_write_bytecode): New static global.
17 (show_python_dont_write_bytecode): New function.
18 (set_python_dont_write_bytecode): New function.
19 (_initialize_python): Register new commands.
20
21 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
22
23 * extension-priv.h (struct extension_language_ops): Rename
24 'finish_initialization' to 'initialize'.
25 * extension.c (finish_ext_lang_initialization): Renamed to...
26 (ext_lang_initialization): ...this, update comment, and updated
27 the calls to reflect the change in struct extension_language_ops.
28 * extension.h (finish_ext_lang_initialization): Renamed to...
29 (ext_lang_initialization): ...this.
30 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
31 (gdbscm_initialize): ...this, update comment at definition.
32 (guile_extension_ops): Update.
33 * main.c (captured_main_1): Update call to
34 finish_ext_lang_initialization.
35 * python/python.c (gdbpy_finish_initialization): Rename to...
36 (gdbpy_initialize): ...this, update comment at definition, and
37 update call to do_finish_initialization.
38 (python_extension_ops): Update.
39 (do_finish_initialization): Rename to...
40 (do_initialize): ...this, and update comment.
41
42 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
43
44 * main.c (captured_main_1): Add a call to
45 finish_ext_lang_initialization.
46 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
47
48 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
49
50 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
51 (gdbscm_finish_initialization): Add code moved from
52 _initialize_guile.
53 (_initialize_guile): Move code to gdbscm_finish_initialization.
54 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
55 _initialize_scm_arch.
56 (_initialize_scm_arch): New function.
57 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
58 into _initialize_scm_block.
59 (_initialize_scm_block): New function.
60 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
61 into _initialize_scm_frame.
62 (_initialize_scm_frame): New function.
63 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
64 into _initialize_scm_objfile.
65 (_initialize_scm_objfile): New function.
66 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
67 code into _initialize_scm_progspace.
68 (_initialize_scm_progspace): New function.
69 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
70 into _initialize_scm_symbol.
71 (_initialize_scm_symbol): New function.
72 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
73 into _initialize_scm_symtab.
74 (_initialize_scm_symtab): New function.
75 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
76 _initialize_scm_type.
77 (_initialize_scm_type): New function.
78
79 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
80
81 * python/py-arch.c (_initialize_py_arch): New function.
82 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
83 * python/py-block.c (_initialize_py_block): New function.
84 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
85 * python/py-inferior.c (_initialize_py_inferior): New function.
86 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
87 * python/py-objfile.c (_initialize_py_objfile): New function.
88 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
89 * python/py-progspace.c (_initialize_py_progspace): New function.
90 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
91 * python/py-registers.c (_initialize_py_registers): New function.
92 (gdbpy_initialize_registers): Move code to
93 _initialize_py_registers.
94 * python/py-symbol.c (_initialize_py_symbol): New function.
95 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
96 * python/py-symtab.c (_initialize_py_symtab): New function.
97 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
98 * python/py-type.c (_initialize_py_type): New function.
99 (gdbpy_initialize_types): Move code to _initialize_py_type.
100 * python/py-unwind.c (_initialize_py_unwind): New function.
101 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
102 * python/python.c (_initialize_python): Move call to
103 do_start_initialization to gdbpy_finish_initialization.
104 (gdbpy_finish_initialization): Add call to
105 do_start_initialization.
106
107 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
108
109 * extension.c (struct scoped_default_signal): New struct.
110 (scoped_default_sigint): New typedef.
111 (finish_ext_lang_initialization): Make use of
112 scoped_default_sigint.
113
114 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
115
116 * main.c (captured_main_1): Don't pass argument to gdb_init.
117 * top.c (gdb_init): Remove unused argument, and add header
118 comment.
119 * top.h (gdb_init): Remove argument.
120
121 2021-04-27 Luis Machado <luis.machado@linaro.org>
122
123 * psymtab.c (psymbol_functions::dump): Output newline.
124 Remove wrap.
125 * symmisc.c (dump_objfile): Likewise.
126
127 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
128 Simon Marchi <simon.marchi@polymtl.ca>
129
130 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
131 when attaching the 'auto_load_new_objfile' observer, so
132 other observers can specify it as a dependency.
133 * gdb/auto-load.h (struct token): Declare
134 'auto_load_new_objfile_observer_token' as token to be used
135 for the 'auto_load_new_objfile' observer.
136 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
137 'python_new_objfile' observer depend on 'auto_load_new_objfile'
138 observer, so it gets notified after the latter.
139
140 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
141 Simon Marchi <simon.marchi@polymtl.ca>
142
143 * unittests/observable-selftests.c (dependency_test_counters):
144 New.
145 (observer_token0, observer_token1, observer_token2,
146 observer_token3, observer_token4, observer_token5): New.
147 (struct dependency_observer_data): New struct.
148 (observer_dependency_test_callback): New function.
149 (test_observers): New.
150 (run_dependency_test): New function.
151 (test_dependency): New.
152 (_initialize_observer_selftest): Register dependency test.
153
154 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
155
156 PR gdb/27773
157 * cli/cli-dump.c (dump_binary_file): Check result of
158 gdb_fopen_cloexec.
159
160 2021-04-25 Sergei Trofimovich <siarheit@google.com>
161
162 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
163 by passing `process_stratum_target*` parameter.
164
165 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
166
167 PR gdb/22640
168 * typeprint.h (struct type_print_options): Add print_in_hex
169 flag.
170 (struct print_offset_data): Add print_in_hex flag, add a
171 constructor accepting a type_print_options* argument.
172 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
173 default value for print_in_hex.
174 (print_offset_data::indentation): Allow more horizontal space.
175 (print_offset_data::print_offset_data): Add ctor.
176 (print_offset_data::maybe_print_hole, print_offset_data::update):
177 Handle the print_in_hex flag.
178 (whatis_exp): Handle 'x' and 'd' flags.
179 (print_offsets_and_sizes_in_hex): Declare.
180 (set_print_offsets_and_sizes_in_hex): Create.
181 (show_print_offsets_and_sizes_in_hex): Create.
182 (_initialize_typeprint): Update help message for the ptype
183 command, register the 'set print type hex' and 'show print type
184 hex' commands.
185 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
186 (c_type_print_base): Construct the print_offset_data
187 object using the type_print_optons parameter.
188 * rust-lang.c (rust_language::print_type): Construct the
189 print_offset_data object using the type_print_optons parameter.
190 * NEWS: Mention the new flags of the ptype command.
191
192 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
193
194 * typeprint.h (struct type_print_options): Move before
195 print_offset_data.
196
197 2021-04-25 Joel Brobecker <brobecker@adacore.com>
198
199 GDB 10.2 released.
200
201 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
202
203 * observable.c (observer_debug): Change to bool.
204
205 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
206
207 * dwarf2/read.c: Add 'unordered_set' include.
208 (dwarf2_base_index_functions::map_symbol_filenames): Replace
209 'visited' hash table with 'qfn_cache' unordered_set. Remove use
210 of per_Bfd->filenames_cache cache, and use function local
211 filenames_cache instead. Reindent.
212 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
213
214 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
215
216 * breakpoint.c (iterate_over_bp_locations): Change callback to
217 function view, remove data parameter.
218 * breakpoint.h (iterate_over_bp_locations): Likewise.
219 * record-full.c (record_full_sync_record_breakpoints): Remove
220 data parameter.
221
222 2021-04-22 Tom Tromey <tom@tromey.com>
223
224 * c-typeprint.c (c_type_print_base_struct_union): Use
225 print_spaces_filtered_with_print_options.
226
227 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
228
229 PR gdb/27757
230 * python/py-type.c (typy_range): Check that bounds are constant
231 before accessing them as such.
232 * guile/scm-type.c (gdbscm_type_range): Likewise.
233
234 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
235
236 * Makefile.in (COMMON_SFILES): Remove continuations.c.
237 * inferior.c (inferior::add_continuation): New method, adapted
238 from 'add_inferior_continuation'.
239 (inferior::do_all_continuations): New method, adapted from
240 'do_all_inferior_continuations'.
241 (inferior::~inferior): Clear the list of continuations directly.
242 * inferior.h (class inferior) <continuations>: Rename into...
243 <m_continuations>: ...this and make private.
244 * continuations.c: Remove.
245 * continuations.h: Remove.
246 * event-top.c: Don't include "continuations.h".
247
248 Update the users below.
249 * inf-loop.c (inferior_event_handler)
250 * infcmd.c (attach_command)
251 (notice_new_inferior): Update.
252
253 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
254
255 * inferior.h (class inferior) <continuations>: Change the type
256 to be an std::list of std::function's.
257 Update the references and uses below.
258 * continuations.c (struct continuation): Delete.
259 (make_continuation): Delete.
260 (do_my_continuations_1): Delete.
261 (do_my_continuations): Delete.
262 (discard_my_continuations_1): Delete.
263 (discard_my_continuations): Delete.
264 (add_inferior_continuation): Update.
265 (do_all_inferior_continuations): Update.
266 (discard_all_inferior_continuations): Update.
267 * continuations.h (add_inferior_continuation): Update to take
268 an std::function as the parameter.
269 * infcmd.c (struct attach_command_continuation_args): Delete.
270 (attach_command_continuation): Delete.
271 (attach_command_continuation_free_args): Delete.
272 (attach_command): Update.
273 (notice_new_inferior): Update.
274
275 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
276
277 * continuations.h: Update the general comment.
278 * inferior.h (class inferior) <continuations>: Update the comment.
279 * interps.c: Do not include "continuations.h".
280
281 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
282
283 * continuations.h (do_all_inferior_continuations): Remove the 'err'
284 parameter. Update the references below.
285 * continuations.c (do_my_continuations_1)
286 (do_my_continuations)
287 (do_all_inferior_continuations): Update.
288 * inf-loop.c (inferior_event_handler): Update.
289 * infcmd.c (attach_command_continuation): Update.
290
291 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
292
293 * infcmd.c (attach_post_wait): Update the function comment.
294
295 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
296
297 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
298 Update the references below.
299 (struct attach_command_continuation_args)
300 (attach_command_continuation)
301 (attach_command_continuation_free_args)
302 (attach_command)
303 (notice_new_inferior): Update to remove the reference to 'args'.
304
305 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
306 Tom de Vries <tdevries@suse.de>
307
308 PR remote/27710
309 * remote.c (remote_target_is_non_stop_p): New function.
310 * remote.h (remote_target_is_non_stop_p): Declare.
311 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
312 to check non-stopness using notif_state->remote rather current target.
313
314 2021-04-22 Tom Tromey <tom@tromey.com>
315
316 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
317 (struct typed_val_int) <val>: Now ULONGEST.
318 (rust_parser::parse_array_type): Remove negative check.
319 (rust_lex_int_test): Change 'value' to ULONGEST.
320
321 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
322
323 * arch-utils.c (default_addressable_memory_unit_size): Return a
324 value based on bfd's bits per byte.
325
326 2021-04-21 Tom Tromey <tom@tromey.com>
327
328 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
329 unsigned char.
330 (struct dwarf2_per_cu_data): Rearrange.
331 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
332 unsigned char.
333 (struct comp_unit_head): Rearrange.
334 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
335
336 2021-04-21 Tom de Vries <tdevries@suse.de>
337
338 PR build/27681
339 * configure.ac: Remove --without-included-regex/--with-included-regex.
340 * config.in: Regenerate.
341 * configure: Regenerate.
342 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
343
344 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
345
346 * breakpoint.h (create_breakpoint): Add a new parameter,
347 'force_condition'.
348 * breakpoint.c (create_breakpoint): Use the 'force_condition'
349 argument when 'parse_extra' is false to check if the condition
350 is invalid at all of the breakpoint locations.
351 Update the users below.
352 (break_command_1)
353 (dprintf_command)
354 (trace_command)
355 (ftrace_command)
356 (strace_command)
357 (create_tracepoint_from_upload): Update.
358 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
359 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
360 * python/py-breakpoint.c (bppy_init): Update.
361 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
362
363 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
364
365 * breakpoint.c (print_one_breakpoint_location): Display "N" for
366 disabled-by-condition locations on MI-like output.
367 (breakpoint_1): Do not display the disabled-by-condition footnote
368 if the output is MI-like.
369
370 2021-04-21 Frederic Cambus <fred@statdns.com>
371
372 * syscalls/update-netbsd.sh: Fix script name display in usage, and
373 update year range in generated copyright notices.
374
375 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
376
377 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
378 qualifier_seq_noopt.
379
380 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
381
382 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
383
384 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
385
386 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
387 (producer_is_icc): Replace use of std::regex with gdb's
388 compiled_regex.
389
390 2021-04-17 Tom Tromey <tom@tromey.com>
391
392 PR gdb/23743:
393 * dwarf2/read.c (class offset_view): New.
394 (struct symbol_table_slot): Remove.
395 (struct mapped_index) <symbol_table, constant_pool>: Change type.
396 <symbol_name_index, symbol_vec_index>: New methods.
397 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
398 Rewrite.
399 (read_gdb_index_from_buffer): Update.
400 (struct dw2_symtab_iterator) <vec>: Change type.
401 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
402 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
403 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
404 <append_array, append_offset>: New methods.
405 (write_hash_table, add_address_entry, write_gdbindex_1)
406 (write_debug_names): Update.
407 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
408
409 2021-04-17 Tom Tromey <tom@tromey.com>
410
411 * dwarf2/index-write.c (write_psymtabs_to_index): Check
412 partial_symtabs.
413
414 2021-04-17 Tom Tromey <tom@tromey.com>
415
416 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
417 from map_matching_symbols. Change parameters.
418 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
419 Rename from map_matching_symbols. Change parameters.
420 * dwarf2/read.c (struct dwarf2_gdb_index)
421 <expand_matching_symbols>: Rename from map_matching_symbols.
422 Change parameters.
423 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
424 Rename from map_matching_symbols. Change parameters.
425 (dwarf2_gdb_index::expand_matching_symbols): Rename from
426 dw2_map_matching_symbols. Change parameters.
427 (dwarf2_gdb_index::expand_matching_symbols): Remove old
428 implementation.
429 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
430 map_matching_symbols. Change parameters.
431 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
432 from map_matching_symbols. Change parameters.
433 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
434 map_matching_symbols. Change parameters.
435 * ada-lang.c (map_matching_symbols): New function.
436 (add_nonlocal_symbols): Update.
437
438 2021-04-17 Tom Tromey <tom@tromey.com>
439
440 * quick-symbol.h (struct quick_symbol_functions)
441 <expand_symtabs_with_fullname>: Remove.
442 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
443 Remove.
444 * psympriv.h (struct psymbol_functions)
445 <expand_symtabs_with_fullname>: Remove.
446 * dwarf2/read.c (struct dwarf2_base_index_functions)
447 <expand_symtabs_with_fullname>: Remove.
448 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
449 Remove.
450 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
451 Update comment.
452 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
453 Rewrite.
454
455 2021-04-17 Tom Tromey <tom@tromey.com>
456
457 * symfile-debug.c (objfile::expand_symtabs_for_function):
458 Rewrite.
459 * quick-symbol.h (struct quick_symbol_functions)
460 <expand_symtabs_for_function>: Remove.
461 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
462 Remove.
463 * psympriv.h (struct psymbol_functions)
464 <expand_symtabs_for_function>: Remove.
465 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
466 Update comment.
467 * dwarf2/read.c (struct dwarf2_gdb_index)
468 <expand_symtabs_for_function>: Remove.
469 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
470 Remove.
471 (find_slot_in_mapped_hash): Remove.
472 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
473 (dw2_symtab_iter_init): Remove one overload.
474 (dwarf2_gdb_index::expand_symtabs_for_function)
475 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
476
477 2021-04-17 Tom Tromey <tom@tromey.com>
478
479 * symfile-debug.c (objfile::map_symtabs_matching_filename):
480 Rewrite.
481 * quick-symbol.h (struct quick_symbol_functions)
482 <map_symtabs_matching_filename>: Remove.
483 * psymtab.c (partial_map_expand_apply)
484 (psymbol_functions::map_symtabs_matching_filename): Remove.
485 * psympriv.h (struct psymbol_functions)
486 <map_symtabs_matching_filename>: Remove.
487 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
488 Update comment.
489 * dwarf2/read.c (struct dwarf2_base_index_functions)
490 <map_symtabs_matching_filename>: Remove.
491 (dw2_map_expand_apply)
492 (dwarf2_base_index_functions::map_symtabs_matching_filename):
493 Remove.
494
495 2021-04-17 Tom Tromey <tom@tromey.com>
496
497 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
498 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
499 Remove.
500 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
501 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
502 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
503 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
504 Remove.
505 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
506 (dwarf2_gdb_index::lookup_symbol)
507 (dwarf2_debug_names_index::lookup_symbol): Remove.
508
509 2021-04-17 Tom Tromey <tom@tromey.com>
510
511 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
512 * symmisc.c (maintenance_expand_symtabs): Update.
513 * symfile.c (expand_symtabs_matching): Update.
514 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
515 parameter.
516 * quick-symbol.h (struct quick_symbol_functions)
517 <expand_symtabs_matching>: Add 'domain' parameter.
518 * psymtab.c (recursively_search_psymtabs)
519 (psymbol_functions::expand_symtabs_matching): Add 'domain'
520 parameter.
521 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
522 Add 'domain' parameter.
523 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
524 'domain' parameter.
525 * linespec.c (iterate_over_all_matching_symtabs): Update.
526 * dwarf2/read.c (struct dwarf2_gdb_index)
527 <expand_symtabs_matching>: Add 'domain' parameter.
528 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
529 'domain' parameter.
530 (dw2_expand_symtabs_matching)
531 (dwarf2_gdb_index::expand_symtabs_matching)
532 (dw2_debug_names_iterator)
533 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
534 parameter.
535
536 2021-04-17 Tom Tromey <tom@tromey.com>
537
538 * symtab.c (global_symbol_searcher::expand_symtabs)
539 (default_collect_symbol_completion_matches_break_on): Update.
540 * symmisc.c (maintenance_expand_symtabs): Update.
541 * symfile.h (expand_symtabs_matching): Add search_flags
542 parameter.
543 * symfile.c (expand_symtabs_matching): Add search_flags
544 parameter.
545 * symfile-debug.c (objfile::expand_symtabs_matching): Add
546 search_flags parameter.
547 * quick-symbol.h (struct quick_symbol_functions)
548 <expand_symtabs_matching>: Add search_flags parameter.
549 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
550 * psymtab.c (recursively_search_psymtabs)
551 (psymbol_functions::expand_symtabs_matching): Add search_flags
552 parameter.
553 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
554 Add search_flags parameter.
555 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
556 search_flags parameter.
557 * linespec.c (iterate_over_all_matching_symtabs): Update.
558 * dwarf2/read.c (struct dwarf2_gdb_index)
559 <expand_symtabs_matching>: Add search_flags parameter.
560 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
561 search_flags parameter.
562 (dw2_map_matching_symbols): Update.
563 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
564 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
565 parameter.
566 (dw2_debug_names_iterator): Change block_index to search flags.
567 <m_block_index>: Likewise.
568 (dw2_debug_names_iterator::next)
569 (dwarf2_debug_names_index::lookup_symbol)
570 (dwarf2_debug_names_index::expand_symtabs_for_function)
571 (dwarf2_debug_names_index::map_matching_symbols)
572 (dwarf2_debug_names_index::map_matching_symbols): Update.
573 (dwarf2_debug_names_index::expand_symtabs_matching): Add
574 search_flags parameter.
575 * ada-lang.c (ada_add_global_exceptions)
576 (collect_symbol_completion_matches): Update.
577
578 2021-04-17 Tom Tromey <tom@tromey.com>
579
580 * symtab.c (default_collect_symbol_completion_matches_break_on):
581 Update.
582 * symfile.h (expand_symtabs_matching): Return bool.
583 * symfile.c (expand_symtabs_matching): Return bool.
584 * symfile-debug.c (objfile::expand_symtabs_matching): Return
585 bool.
586 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
587 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
588 bool.
589 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
590 bool.
591 * psympriv.h (struct psymbol_functions)
592 <expand_symtabs_matching>: Return bool.
593 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
594 bool.
595 * dwarf2/read.c (struct dwarf2_gdb_index)
596 <expand_symtabs_matching>: Return bool.
597 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
598 Return bool.
599 (dw2_expand_symtabs_matching_symbol): Return bool.
600 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
601 (dw2_expand_symtabs_matching)
602 (dwarf2_gdb_index::expand_symtabs_matching)
603 (dwarf2_debug_names_index::expand_symtabs_matching)
604 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
605
606 2021-04-17 Tom Tromey <tom@tromey.com>
607
608 * quick-symbol.h (enum block_search_flag_values): New.
609 (block_search_flags): New enum flags type.
610
611 2021-04-16 Tom Tromey <tom@tromey.com>
612
613 * rust-parse.c: New file.
614 * rust-exp.y: Remove.
615 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
616 (SFILES): Remove rust-exp.y.
617 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
618
619 2021-04-16 Luis Machado <luis.machado@linaro.org>
620
621 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
622
623 2021-04-15 John Baldwin <jhb@FreeBSD.org>
624
625 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
626 use throughout file.
627
628 2021-04-15 Tom Tromey <tromey@adacore.com>
629
630 * ada-valprint.c (ada_value_print_array): Handle optimized-out
631 arrays.
632
633 2021-04-15 Tom Tromey <tromey@adacore.com>
634
635 * printcmd.c (print_variable_and_value): Use
636 common_val_print_checked.
637
638 2021-04-15 Tom Tromey <tromey@adacore.com>
639
640 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
641 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
642 Update.
643 * p-exp.y (variable): Update.
644 * m2-exp.y (variable): Update.
645 * go-exp.y (variable): Update.
646 * expprint.c (dump_for_expression): New overload.
647 * expop.h (check_objfile): New overload.
648 (check_constant): New overload.
649 (class var_value_operation): Use block_symbol.
650 <get_symbol>: Rewrite.
651 * eval.c (var_value_operation::evaluate)
652 (var_value_operation::evaluate_funcall)
653 (var_value_operation::evaluate_for_address)
654 (var_value_operation::evaluate_for_address)
655 (var_value_operation::evaluate_with_coercion)
656 (var_value_operation::evaluate_for_sizeof)
657 (var_value_operation::evaluate_for_cast): Update.
658 * d-exp.y (PrimaryExpression): Update.
659 * c-exp.y (variable): Update.
660 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
661 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
662 (ada_var_value_operation::evaluate)
663 (ada_var_value_operation::resolve)
664 (ada_funcall_operation::resolve): Update.
665 * ada-exp.y (write_var_from_sym, write_object_renaming)
666 (write_ambiguous_var, write_var_or_type, write_name_assoc)
667 (maybe_overload): Update.
668 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
669
670 2021-04-15 Tom Tromey <tom@tromey.com>
671 Andrew Burgess <andrew.burgess@embecosm.com>
672
673 * NEWS: Add entry.
674 * main.c (captured_main_1): Call check_quiet_mode.
675 * top.c (startup_quiet): New global.
676 (check_quiet_mode): New function.
677 (show_startup_quiet): New function.
678 (init_main): Register new command.
679 * top.h (check_quiet_mode): Declare.
680
681 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
682
683 PR cli/25956
684 * NEWS: Mention new early init files and command line options.
685 * config.in: Regenerate.
686 * configure: Regenerate.
687 * configure.ac: Define GDBEARLYINIT.
688 * main.c (get_earlyinit_files): New function.
689 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
690 CMDARG_EARLYINIT_COMMAND.
691 (captured_main_1): Add support for new command line flags, and for
692 processing startup files.
693 (print_gdb_help): Include startup files in the output.
694
695 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
696
697 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
698 (relocate_file_path_maybe_in_datadir): ...this.
699 (class gdb_initfile_finder): New class.
700 (get_init_files): Now uses gdb_initfile_finder.
701 (print_gdb_help): Print 'None found' when there are no init files.
702
703 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
704
705 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
706 corresponding child of the abstract DIE when iterating the
707 children of the concrete DIE.
708
709 2021-04-13 Tom de Vries <tdevries@suse.de>
710
711 * ui-style.c (read_semi_number, extended_color): Change idx parameter
712 type to regoff_t *.
713
714 2021-04-13 Luis Machado <luis.machado@linaro.org>
715
716 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
717 hex values.
718
719 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
720
721 * rs6000-tdep.c: Add support for single-stepping of
722 prefixed instructions.
723
724 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
725
726 PR gdb/27525
727 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
728 handle the addpcis/lnia instruction.
729
730 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
731
732 * MAINTAINERS (Write After Approval): Add myself.
733
734 2021-4-12 Carl Love <cel@us.ibm.com>
735
736 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
737 (rs6000_builtin_type_vec128): Add append_composite_type_field for
738 float128.
739
740 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
741
742 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
743 * nat/windows-nat.h: Likewise.
744
745 2021-04-10 Eli Zaretskii <eliz@gnu.org>
746
747 * windows-nat.c (windows_nat::handle_load_dll): Call
748 windows_add_dll if get_image_name failed to glean the name of the
749 DLL by using the lpImageName pointer.
750 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
751 (windows_add_dll): Now does what windows_add_all_dlls did before,
752 but also accepts an argument LOAD_ADDR, which, if non-NULL,
753 specifies the address where the DLL was loaded into the inferior,
754 and looks for the single DLL loaded at that address.
755
756 2021-04-09 Luis Machado <luis.machado@linaro.org>
757
758 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
759
760 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
761
762 * darwin-nat.c (darwin_nat_target::resume): Remove status
763 variable.
764
765 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
766
767 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
768 prologue end for Intel compilers.
769 * amd64-tdep.c (amd64_skip_prologue): Likewise.
770 * producer.c (producer_is_icc_ge_19): New function.
771 * producer.h (producer_is_icc_ge_19): New declaration.
772
773 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
774
775 * producer.c: (producer_is_icc): Update for new version scheme.
776 (producer_parsing_tests): Update names and expected results.
777 * producer.h: (producer_is_icc): Update comment accordingly.
778
779 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
780
781 * target.h (struct target_ops) <follow_fork>: Return void.
782 (target_follow_fork): Likewise.
783 * target.c (default_follow_fork): Likewise.
784 (target_follow_fork): Likewise.
785 * infrun.c (follow_fork_inferior): Adjust.
786 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
787 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
788 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
789 * linux-nat.c (linux_nat_target::follow_fork): Return void.
790 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
791 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
792 * remote.c (class remote_target) <follow_fork>: Likewise.
793 (remote_target::follow_fork): Likewise.
794 * target-delegates.c: Re-generate.
795
796 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
797
798 * ctfread.c (fetch_tid_type): New function, use throughout file.
799 (read_forward_type): New function.
800 (read_type_record): Call read_forward_type.
801
802 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
803
804 * f-exp.h (class fortran_structop_operation): New class.
805 * f-exp.y (exp): Create fortran_structop_operation instead of the
806 generic structop_operation.
807 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
808 expression as EVAL_NORMAL if the result type was dynamic so we can
809 extract the actual array bounds.
810 (fortran_structop_operation::evaluate): New function.
811
812 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
813
814 * eval.c (evaluate_subexp_standard): Remove
815 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
816 STRUCTOP_PTR.
817
818 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
819
820 * valops.c (value_cast): Call value_deeply_equal before performing
821 any cast.
822
823 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
824
825 * gdbtypes.c (types_equal): Move pointer equality check earlier in
826 the function.
827
828 2021-04-07 Caroline Tice <cmtice@google.com>
829
830 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
831 the search paths used resolve relative location of .dwo file.
832
833 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
834
835 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
836 assert.
837 (dwarf2_section_info::get_file_name): Add an assert.
838 (dwarf2_section_info::read_string): Display a minimal, sane error
839 when the dwarf2_section_info is not associated with a bfd section.
840
841 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
842
843 * top.c (staged_gdb_datadir): Update comment.
844 (set_gdb_datadir): Copy the value of gdb_datadir back into
845 staged_datadir.
846 (init_main): Initialise staged_gdb_datadir.
847
848 2021-04-06 Tom de Vries <tdevries@suse.de>
849
850 PR breakpoints/25884
851 * infcmd.c (prepare_one_step): Using inline frame info to narrow
852 stepping range.
853
854 2021-04-06 Tom de Vries <tdevries@suse.de>
855
856 PR tui/27680
857 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
858 to style.parse.
859
860 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
861
862 * avr-tdep.c (avr_frame_unwind_cache): Use
863 trad_frame_saved_reg::is_addr.
864
865 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
866
867 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
868 adjust callers.
869
870 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
871
872 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
873 objfile parameter for objfile_per_bfd_storage, adjust callers.
874 (struct standard_psymtab) <standard_psymtab>: Likewise.
875 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
876 * psymtab.c (partial_symtab::partial_symtab): Likewise.
877 * ctfread.c (struct ctf_psymtab): Likewise.
878 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
879 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
880 (dwarf2_create_include_psymtab): Likewise.
881 * objfiles.h (struct objfile_per_bfd_storage)
882 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
883 <get_bfd>: New method.
884 <m_bfd>: New field.
885 * objfiles.c (get_objfile_bfd_data): Adjust.
886
887 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
888
889 * psymtab.c (partial_symtab::partial_symtab): Change
890 last_objfile_name to be an std::string.
891 * symfile.c (allocate_symtab): Likewise.
892
893 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
894
895 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
896 methods.
897 (struct objfile) <intern>: Use
898 objfile::objfile_per_bfd_storage::intern.
899
900 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
901
902 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
903 with type::is_flag_enum.
904
905 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
906
907 * gdbtypes.h (struct type) <is_flag_enum,
908 set_is_flag_enum>: New methods.
909 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
910 write call sites to use type::set_is_flag_enum.
911
912 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
913
914 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
915 with type::is_declared_class.
916
917 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
918
919 * gdbtypes.h (struct type) <is_declared_class,
920 set_is_declared_class>: New methods.
921 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
922 write call sites to use type::set_is_declared_class.
923
924 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
925
926 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
927 to avoid deprecation warnings.
928
929 2021-04-01 Martin Liska <mliska@suse.cz>
930
931 * cp-name-parser.y: Use startswith instead of strncmp.
932 * m2-exp.y: Likewise.
933 * macroexp.c (substitute_args): Likewise.
934 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
935 * rust-exp.y: Likewise.
936
937 2021-03-31 Tom Tromey <tom@tromey.com>
938
939 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
940 with dw2_map_matching_symbols.
941 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
942 dw2_expand_symtabs_matching.
943
944 2021-03-31 Tom Tromey <tromey@adacore.com>
945
946 * dwarf2/stringify.h: Fix typo.
947
948 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
949
950 PR gdb/27541
951 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
952 with objfiles using READNOW.
953
954 2021-03-29 Tom Tromey <tromey@adacore.com>
955
956 * top.c (check_frame_language_change): Update.
957 * language.c (language_info): Remove parameter.
958 * language.h (language_info): Remove parameter.
959
960 2021-03-29 Luis Machado <luis.machado@linaro.org>
961
962 * compile/compile.c (get_args): Don't add empty argv entries.
963
964 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
965
966 gdb:
967 * procfs.c (procfs_target::attach): Define inf.
968 Use it.
969 (procfs_target::create_inferior): Likewise.
970
971 2021-03-28 Tom Tromey <tom@tromey.com>
972
973 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
974 (elf_symfile_read): Simplify.
975 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
976 (make_lazy_dwarf_reader): New function.
977 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
978 (dwarf2_initialize_objfile): Return void. Remove index_kind
979 parameter. Push on 'qf' list.
980 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
981 type. Remove 'index_kind' parameter.
982 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
983
984 2021-03-27 Tom Tromey <tom@tromey.com>
985
986 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
987
988 2021-03-27 Tom Tromey <tom@tromey.com>
989
990 * elfread.c (elf_symfile_read): Don't clear 'qf'.
991
992 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
993
994 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
995 rid of 'local'.
996
997 2021-03-26 Tom Tromey <tom@tromey.com>
998
999 * symtab.c (struct output_source_filename_data): Add 'output'
1000 method and operator().
1001 (output_source_filename_data::output): Rename from
1002 output_source_filename.
1003 (output_partial_symbol_filename): Remove.
1004 (info_sources_command): Update.
1005 (struct add_partial_filename_data): Add operator().
1006 (add_partial_filename_data::operator()): Rename from
1007 maybe_add_partial_symtab_filename.
1008 (make_source_files_completion_list): Update.
1009 * symfile.c (quick_symbol_functions): Update.
1010 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1011 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1012 'need_fullname'. Remove 'data' parameter.
1013 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1014 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1015 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1016 Change type of 'fun' and 'need_fullname'. Remove 'data'
1017 parameter.
1018 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1019 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1020 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1021 parameter.
1022 (mi_cmd_file_list_exec_source_files): Update.
1023 * dwarf2/read.c
1024 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1025
1026 2021-03-26 Tom Tromey <tom@tromey.com>
1027
1028 * ada-lang.c (struct match_data): Add operator().
1029 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1030 (callback): Remove 'callback'.
1031
1032 2021-03-26 Tom Tromey <tom@tromey.com>
1033
1034 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1035 call make_ignore_params once.
1036
1037 2021-03-26 Tom Tromey <tom@tromey.com>
1038
1039 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1040 "user" check.
1041
1042 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1043 Pedro Alves <pedro@palves.net>
1044
1045 * async-event.c: Include "infrun.h".
1046 (async_event_handler_marked): New.
1047 * async-event.h (async_event_handler_marked): Declare.
1048 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1049 inferior before calling target method. Don't commit-resumed if
1050 target_has_pending_events is true.
1051 * remote.c (remote_target::has_pending_events): New.
1052 * target-delegates.c: Regenerate.
1053 * target.c (target_has_pending_events): New.
1054 * target.h (target_ops::has_pending_events): New target method.
1055 (target_has_pending_events): New.
1056
1057 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1058 Pedro Alves <pedro@palves.net>
1059
1060 * infcmd.c (run_command_1, attach_command, detach_command)
1061 (interrupt_target_1): Use scoped_disable_commit_resumed.
1062 * infrun.c (do_target_resume): Remove
1063 target_commit_resume call.
1064 (commit_resume_all_targets): Remove.
1065 (maybe_set_commit_resumed_all_targets): New.
1066 (maybe_call_commit_resumed_all_targets): New.
1067 (enable_commit_resumed): New.
1068 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1069 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1070 (scoped_disable_commit_resumed::reset)
1071 (scoped_disable_commit_resumed::reset_and_commit)
1072 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1073 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1074 New.
1075 (proceed): Use scoped_disable_commit_resumed and
1076 maybe_call_commit_resumed_all_targets.
1077 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1078 * infrun.h (struct scoped_disable_commit_resumed): New.
1079 (maybe_call_commit_resumed_all_process_targets): New.
1080 (struct scoped_enable_commit_resumed): New.
1081 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1082 * process-stratum-target.h (class process_stratum_target):
1083 <commit_resumed_state>: New.
1084 * record-full.c (record_full_wait_1): Change commit_resumed_state
1085 around calling commit_resumed.
1086 * remote.c (class remote_target) <commit_resume>: Rename to...
1087 <commit_resumed>: ... this.
1088 (struct stop_reply): Move up.
1089 (remote_target::commit_resume): Rename to...
1090 (remote_target::commit_resumed): ... this. Check if there is any
1091 thread pending vCont resume.
1092 (remote_target::remote_stop_ns): Generate stop replies for resumed
1093 but pending vCont threads.
1094 (remote_target::wait_ns): Add gdb_assert.
1095 * target-delegates.c: Regenerate.
1096 * target.c (target_wait, target_resume): Assert that the current
1097 process_stratum target isn't in commit-resumed state.
1098 (defer_target_commit_resume): Remove.
1099 (target_commit_resume): Remove.
1100 (target_commit_resumed): New.
1101 (make_scoped_defer_target_commit_resume): Remove.
1102 (target_stop): Assert that the current process_stratum target
1103 isn't in commit-resumed state.
1104 * target.h (struct target_ops) <commit_resume>: Rename to ...
1105 <commit_resumed>: ... this.
1106 (target_commit_resume): Remove.
1107 (target_commit_resumed): New.
1108 (make_scoped_defer_target_commit_resume): Remove.
1109 * top.c (wait_sync_command_done): Use
1110 scoped_enable_commit_resumed.
1111
1112 2021-03-26 Pedro Alves <pedro@palves.net>
1113
1114 * target.c (target_always_non_stop_p): Also check whether the
1115 target can async.
1116
1117 2021-03-26 Tom Tromey <tom@tromey.com>
1118
1119 * dwarf2/read.c (dwarf2_read_debug_names)
1120 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
1121 (dw2_debug_names_iterator::next, create_type_unit_group):
1122 Simplify.
1123
1124 2021-03-25 Pedro Alves <pedro@palves.net>
1125
1126 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
1127 around setting the breakpoint.
1128
1129 2021-03-25 Pedro Alves <pedro@palves.net>
1130
1131 * remote.c
1132 (remote_target::check_pending_events_prevent_wildcard_vcont):
1133 Check whether the event's ptid is not null_ptid before looking up
1134 the corresponding inferior.
1135
1136 2021-03-24 Changbin Du <changbin.du@gmail.com>
1137
1138 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
1139 read_code.
1140
1141 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1142
1143 * target.h (current_top_target): Remove, make callers use the
1144 current inferior instead.
1145 * target.c (current_top_target): Remove.
1146
1147 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1148
1149 * target.h (target_shortname): Change to function declaration.
1150 (target_longname): Likewise.
1151 (target_attach_no_wait): Likewise.
1152 (target_post_attach): Likewise.
1153 (target_prepare_to_store): Likewise.
1154 (target_supports_enable_disable_tracepoint): Likewise.
1155 (target_supports_string_tracing): Likewise.
1156 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
1157 (target_supports_dumpcore): Likewise.
1158 (target_dumpcore): Likewise.
1159 (target_can_run_breakpoint_commands): Likewise.
1160 (target_files_info): Likewise.
1161 (target_post_startup_inferior): Likewise.
1162 (target_insert_fork_catchpoint): Likewise.
1163 (target_remove_fork_catchpoint): Likewise.
1164 (target_insert_vfork_catchpoint): Likewise.
1165 (target_remove_vfork_catchpoint): Likewise.
1166 (target_insert_exec_catchpoint): Likewise.
1167 (target_remove_exec_catchpoint): Likewise.
1168 (target_set_syscall_catchpoint): Likewise.
1169 (target_rcmd): Likewise.
1170 (target_can_lock_scheduler): Likewise.
1171 (target_can_async_p): Likewise.
1172 (target_is_async_p): Likewise.
1173 (target_execution_direction): Likewise.
1174 (target_extra_thread_info): Likewise.
1175 (target_pid_to_exec_file): Likewise.
1176 (target_thread_architecture): Likewise.
1177 (target_find_memory_regions): Likewise.
1178 (target_make_corefile_notes): Likewise.
1179 (target_get_bookmark): Likewise.
1180 (target_goto_bookmark): Likewise.
1181 (target_stopped_by_watchpoint): Likewise.
1182 (target_stopped_by_sw_breakpoint): Likewise.
1183 (target_supports_stopped_by_sw_breakpoint): Likewise.
1184 (target_stopped_by_hw_breakpoint): Likewise.
1185 (target_supports_stopped_by_hw_breakpoint): Likewise.
1186 (target_have_steppable_watchpoint): Likewise.
1187 (target_can_use_hardware_watchpoint): Likewise.
1188 (target_region_ok_for_hw_watchpoint): Likewise.
1189 (target_can_do_single_step): Likewise.
1190 (target_insert_watchpoint): Likewise.
1191 (target_remove_watchpoint): Likewise.
1192 (target_insert_hw_breakpoint): Likewise.
1193 (target_remove_hw_breakpoint): Likewise.
1194 (target_can_accel_watchpoint_condition): Likewise.
1195 (target_can_execute_reverse): Likewise.
1196 (target_get_ada_task_ptid): Likewise.
1197 (target_filesystem_is_local): Likewise.
1198 (target_trace_init): Likewise.
1199 (target_download_tracepoint): Likewise.
1200 (target_can_download_tracepoint): Likewise.
1201 (target_download_trace_state_variable): Likewise.
1202 (target_enable_tracepoint): Likewise.
1203 (target_disable_tracepoint): Likewise.
1204 (target_trace_start): Likewise.
1205 (target_trace_set_readonly_regions): Likewise.
1206 (target_get_trace_status): Likewise.
1207 (target_get_tracepoint_status): Likewise.
1208 (target_trace_stop): Likewise.
1209 (target_trace_find): Likewise.
1210 (target_get_trace_state_variable_value): Likewise.
1211 (target_save_trace_data): Likewise.
1212 (target_upload_tracepoints): Likewise.
1213 (target_upload_trace_state_variables): Likewise.
1214 (target_get_raw_trace_data): Likewise.
1215 (target_get_min_fast_tracepoint_insn_len): Likewise.
1216 (target_set_disconnected_tracing): Likewise.
1217 (target_set_circular_trace_buffer): Likewise.
1218 (target_set_trace_buffer_size): Likewise.
1219 (target_set_trace_notes): Likewise.
1220 (target_get_tib_address): Likewise.
1221 (target_set_permissions): Likewise.
1222 (target_static_tracepoint_marker_at): Likewise.
1223 (target_static_tracepoint_markers_by_strid): Likewise.
1224 (target_traceframe_info): Likewise.
1225 (target_use_agent): Likewise.
1226 (target_can_use_agent): Likewise.
1227 (target_augmented_libraries_svr4_read): Likewise.
1228 (target_log_command): Likewise.
1229 * target.c (target_shortname): New.
1230 (target_longname): New.
1231 (target_attach_no_wait): New.
1232 (target_post_attach): New.
1233 (target_prepare_to_store): New.
1234 (target_supports_enable_disable_tracepoint): New.
1235 (target_supports_string_tracing): New.
1236 (target_supports_evaluation_of_breakpoint_conditions): New.
1237 (target_supports_dumpcore): New.
1238 (target_dumpcore): New.
1239 (target_can_run_breakpoint_commands): New.
1240 (target_files_info): New.
1241 (target_post_startup_inferior): New.
1242 (target_insert_fork_catchpoint): New.
1243 (target_remove_fork_catchpoint): New.
1244 (target_insert_vfork_catchpoint): New.
1245 (target_remove_vfork_catchpoint): New.
1246 (target_insert_exec_catchpoint): New.
1247 (target_remove_exec_catchpoint): New.
1248 (target_set_syscall_catchpoint): New.
1249 (target_rcmd): New.
1250 (target_can_lock_scheduler): New.
1251 (target_can_async_p): New.
1252 (target_is_async_p): New.
1253 (target_execution_direction): New.
1254 (target_extra_thread_info): New.
1255 (target_pid_to_exec_file): New.
1256 (target_thread_architecture): New.
1257 (target_find_memory_regions): New.
1258 (target_make_corefile_notes): New.
1259 (target_get_bookmark): New.
1260 (target_goto_bookmark): New.
1261 (target_stopped_by_watchpoint): New.
1262 (target_stopped_by_sw_breakpoint): New.
1263 (target_supports_stopped_by_sw_breakpoint): New.
1264 (target_stopped_by_hw_breakpoint): New.
1265 (target_supports_stopped_by_hw_breakpoint): New.
1266 (target_have_steppable_watchpoint): New.
1267 (target_can_use_hardware_watchpoint): New.
1268 (target_region_ok_for_hw_watchpoint): New.
1269 (target_can_do_single_step): New.
1270 (target_insert_watchpoint): New.
1271 (target_remove_watchpoint): New.
1272 (target_insert_hw_breakpoint): New.
1273 (target_remove_hw_breakpoint): New.
1274 (target_can_accel_watchpoint_condition): New.
1275 (target_can_execute_reverse): New.
1276 (target_get_ada_task_ptid): New.
1277 (target_filesystem_is_local): New.
1278 (target_trace_init): New.
1279 (target_download_tracepoint): New.
1280 (target_can_download_tracepoint): New.
1281 (target_download_trace_state_variable): New.
1282 (target_enable_tracepoint): New.
1283 (target_disable_tracepoint): New.
1284 (target_trace_start): New.
1285 (target_trace_set_readonly_regions): New.
1286 (target_get_trace_status): New.
1287 (target_get_tracepoint_status): New.
1288 (target_trace_stop): New.
1289 (target_trace_find): New.
1290 (target_get_trace_state_variable_value): New.
1291 (target_save_trace_data): New.
1292 (target_upload_tracepoints): New.
1293 (target_upload_trace_state_variables): New.
1294 (target_get_raw_trace_data): New.
1295 (target_get_min_fast_tracepoint_insn_len): New.
1296 (target_set_disconnected_tracing): New.
1297 (target_set_circular_trace_buffer): New.
1298 (target_set_trace_buffer_size): New.
1299 (target_set_trace_notes): New.
1300 (target_get_tib_address): New.
1301 (target_set_permissions): New.
1302 (target_static_tracepoint_marker_at): New.
1303 (target_static_tracepoint_markers_by_strid): New.
1304 (target_traceframe_info): New.
1305 (target_use_agent): New.
1306 (target_can_use_agent): New.
1307 (target_augmented_libraries_svr4_read): New.
1308 (target_log_command): New.
1309 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
1310 * infrun.c (set_schedlock_func): Adjust.
1311 * mi/mi-main.c (exec_reverse_continue): Adjust.
1312 * reverse.c (exec_reverse_once): Adjust.
1313 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
1314 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
1315 * remote-sim.c (gdbsim_target::detach): Adjust.
1316 (gdbsim_target::files_info): Adjust.
1317
1318 2021-03-24 Tom Tromey <tom@tromey.com>
1319
1320 * dwarf2/read.c (dw2_map_matching_symbols): Update.
1321 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
1322 (check_match, dw2_expand_symtabs_matching)
1323 (dwarf2_debug_names_index::map_matching_symbols)
1324 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
1325
1326 2021-03-24 Keith Seitz <keiths@redhat.com>
1327
1328 * compile/compile-cplus-types.c
1329 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
1330 thinko.
1331
1332 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1333
1334 * gdbarch.sh (gdbarch_data_registry): Make static.
1335 * gdbarch.c: Re-generate.
1336
1337 2021-03-24 Luis Machado <luis.machado@linaro.org>
1338
1339 * NEWS: Mention memory tagging changes.
1340
1341 2021-03-24 Luis Machado <luis.machado@linaro.org>
1342
1343 * printcmd.c (decode_format): Handle the 'm' modifier.
1344 (do_examine): Display allocation tags when required/supported.
1345 (should_validate_memtags): New function.
1346 (print_command_1): Display memory tag mismatches.
1347 * valprint.c (show_memory_tag_violations): New function.
1348 (value_print_option_defs): Add new option "memory-tag-violations".
1349 (user_print_options) <memory_tag_violations>: Initialize to 1.
1350 * valprint.h (struct format_data) <print_tags>: New field.
1351 (value_print_options) <memory_tag_violations>: New field.
1352
1353 2021-03-24 Luis Machado <luis.machado@linaro.org>
1354
1355 * printcmd.c: Include gdbsupport/rsp-low.h.
1356 (memory_tag_list): New static global.
1357 (process_print_command_args): Factored out of
1358 print_command_1.
1359 (print_command_1): Use process_print_command_args.
1360 (show_addr_not_tagged, show_memory_tagging_unsupported)
1361 (memory_tag_command, memory_tag_print_tag_command)
1362 (memory_tag_print_logical_tag_command)
1363 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
1364 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
1365 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
1366 functions.
1367 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
1368
1369 2021-03-24 Luis Machado <luis.machado@linaro.org>
1370
1371 * aarch64-linux-tdep.c
1372 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
1373 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
1374
1375 2021-03-24 Luis Machado <luis.machado@linaro.org>
1376
1377 * aarch64-linux-tdep.c
1378 (aarch64_linux_report_signal_info): New function.
1379 (aarch64_linux_init_abi): Register
1380 aarch64_linux_report_signal_info as the report_signal_info hook.
1381 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
1382 (SEGV_MTESERR): Define.
1383
1384 2021-03-24 Luis Machado <luis.machado@linaro.org>
1385
1386 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
1387 (aarch64_linux_ltag_tests): New function.
1388 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
1389
1390 2021-03-24 Luis Machado <luis.machado@linaro.org>
1391
1392 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
1393 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
1394 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
1395 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
1396 functions.
1397 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
1398 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
1399 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
1400 (aarch64_linux_get_ltag): New functions.
1401 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
1402 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
1403 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
1404 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
1405
1406 2021-03-24 Luis Machado <luis.machado@linaro.org>
1407
1408 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
1409 bit.
1410 (struct smaps_data): New struct.
1411 (decode_vmflags): Handle the 'mt' flag.
1412 (parse_smaps_data): New function, refactored from
1413 linux_find_memory_regions_full.
1414 (linux_address_in_memtag_page): New function.
1415 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
1416 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
1417
1418 2021-03-24 Luis Machado <luis.machado@linaro.org>
1419
1420 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
1421 instead of char arrays.
1422
1423 2021-03-24 Luis Machado <luis.machado@linaro.org>
1424
1425 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
1426 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
1427 nat/aarch64-mte-linux-ptrace.h.
1428 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
1429 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
1430 override.
1431 <fetch_memtags>: New method override.
1432 <store_memtags>: New method override.
1433 (aarch64_linux_nat_target::supports_memory_tagging): New method.
1434 (aarch64_linux_nat_target::fetch_memtags): New method.
1435 (aarch64_linux_nat_target::store_memtags): New method.
1436 * arch/aarch64-mte-linux.c: New file.
1437 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
1438 (AARCH64_MTE_GRANULE_SIZE): Define.
1439 (aarch64_memtag_type): New enum.
1440 (aarch64_mte_get_tag_granules): New prototype.
1441 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
1442 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
1443 * nat/aarch64-mte-linux-ptrace.c: New file.
1444 * nat/aarch64-mte-linux-ptrace.h: New file.
1445
1446 2021-03-24 Luis Machado <luis.machado@linaro.org>
1447
1448 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
1449 * nat/aarch64-mte-linux-ptrace.h: New file.
1450
1451 2021-03-24 Luis Machado <luis.machado@linaro.org>
1452
1453 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
1454 (store_mteregs_to_thread): New function.
1455 (aarch64_linux_nat_target::fetch_registers): Update to call
1456 fetch_mteregs_from_thread.
1457 (aarch64_linux_nat_target::store_registers): Update to call
1458 store_mteregs_to_thread.
1459 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
1460 (aarch64_cannot_store_register): Handle MTE registers.
1461 (aarch64_gdbarch_init): Initialize and setup MTE registers.
1462 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
1463 <has_mte>: New method.
1464 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
1465
1466 2021-03-24 Luis Machado <luis.machado@linaro.org>
1467
1468 * aarch64-linux-nat.c
1469 (aarch64_linux_nat_target::read_description): Take MTE flag into
1470 account.
1471 Slight refactor to hwcap flag checking.
1472 * aarch64-linux-tdep.c
1473 (aarch64_linux_core_read_description): Likewise.
1474 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
1475 MTE.
1476 (aarch64_read_description): Add mte_p parameter and update to use it.
1477 Update the documentation.
1478 (aarch64_gdbarch_init): Update call to aarch64_read_description.
1479 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
1480 * arch/aarch64.c: Include ../features/aarch64-mte.c.
1481 (aarch64_create_target_description): Add mte_p parameter and update
1482 the code to use it.
1483 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
1484 parameter.
1485 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
1486 * features/aarch64-mte.c: New file, generated.
1487 * features/aarch64-mte.xml: New file.
1488
1489 2021-03-24 Luis Machado <luis.machado@linaro.org>
1490
1491 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
1492 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
1493 * aarch64-linux-tdep.c: Likewise
1494 * arch/aarch64-mte-linux.h: New file.
1495
1496 2021-03-24 Luis Machado <luis.machado@linaro.org>
1497
1498 * remote: Include gdbsupport/selftest.h.
1499 (test_memory_tagging_functions): New function.
1500 (_initialize_remote): Register test_memory_tagging_functions.
1501
1502 2021-03-24 Luis Machado <luis.machado@linaro.org>
1503
1504 * remote.c (PACKET_memory_tagging_feature): New enum.
1505 (remote_memory_tagging_p): New function.
1506 (remote_protocol_features): New "memory-tagging" entry.
1507 (remote_target::remote_query_supported): Handle memory tagging
1508 support.
1509 (remote_target::supports_memory_tagging): Implement.
1510 (create_fetch_memtags_request, parse_fetch_memtags_reply)
1511 (create_store_memtags_request): New functions.
1512 (remote_target::fetch_memtags): Implement.
1513 (remote_target::store_memtags): Implement.
1514 (_initialize_remote): Add new "memory-tagging-feature"
1515 config command.
1516
1517 2021-03-24 Luis Machado <luis.machado@linaro.org>
1518
1519 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
1520 (default_memtag_matches_p, default_set_memtags)
1521 (default_get_memtag): New functions.
1522 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
1523 (default_memtag_matches_p, default_set_memtags)
1524 (default_get_memtag): New prototypes.
1525 * gdbarch.c: Regenerate.
1526 * gdbarch.h: Regenerate.
1527 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
1528 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
1529 (enum memtag_type): New enum.
1530
1531 2021-03-24 Luis Machado <luis.machado@linaro.org>
1532
1533 * remote.c (remote_target) <supports_memory_tagging>: New method
1534 override.
1535 <fetch_memtags>: New method override.
1536 <store_memtags>: New method override.
1537 (remote_target::supports_memory_tagging): New method.
1538 (remote_target::fetch_memtags): New method.
1539 (remote_target::store_memtags): New method.
1540 * target-delegates.c: Regenerate.
1541 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
1542 method.
1543 <fetch_memtags>: New virtual method.
1544 <store_memtags>: New virtual method.
1545 (target_supports_memory_tagging): Define.
1546 (target_fetch_memtags): Define.
1547 (target_store_memtags): Define.
1548 * target-debug.h (target_debug_print_size_t)
1549 (target_debug_print_const_gdb_byte_vector_r)
1550 (target_debug_print_gdb_byte_vector_r): New functions.
1551
1552 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1553
1554 * target.h (target_longname): Remove.
1555
1556 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1557
1558 * target.h (target_is_pushed): Remove, update callers to use
1559 inferior::target_is_pushed instead.
1560 * target.c (target_is_pushed): Remove.
1561
1562 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1563
1564 * target.h (push_target): Remove, update callers to use
1565 inferior::push_target.
1566 * target.c (push_target): Remove.
1567 * inferior.h (class inferior) <push_target>: New overload.
1568
1569 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1570
1571 * target.h (unpush_target): Remove, update all callers
1572 to use `inferior::unpush_target` instead.
1573 (struct target_unpusher) <operator()>: Just declare.
1574 * target.c (unpush_target): Remove.
1575 (target_unpusher::operator()): New.
1576
1577 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1578
1579 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
1580 error.
1581 (process_full_comp_unit): Validate the top-level tag before
1582 processing the first DIE.
1583 (read_func_scope): Ensure we have a valid builder.
1584
1585 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1586
1587 * objc-lang.c (objc_demangle): Renamed to
1588 objc_language::demangle_symbol, and moved later in the file.
1589 (objc_language::sniff_from_mangled_name): Call demangle_symbol
1590 member function.
1591 (objc_language::demangle_symbol): Defined outside of class
1592 declaration. The definition is the old objc_demangle with NULL
1593 changed to nullptr, and if conditions relating to nullptr pointers
1594 or null character checks made explicit.
1595 * objc-lang.h (objc_demangle): Delete declaration.
1596
1597 2021-03-22 Martin Liska <mliska@suse.cz>
1598
1599 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
1600 (_initialize_arm_tdep): Likewise.
1601
1602 2021-03-20 Tom Tromey <tom@tromey.com>
1603
1604 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
1605 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1606 * psymtab.h (make_psymbol_functions): Don't declare.
1607 * psymtab.c (make_psymbol_functions): Remove.
1608 (maintenance_print_psymbols): Update.
1609 * psympriv.h (struct psymbol_functions): Add no-argument
1610 constructor.
1611 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
1612 <partial_symtabs>: Remove.
1613 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
1614 * elfread.c (read_partial_symbols): Update.
1615 (elf_symfile_read): Remove check for existing partial symbols.
1616 Don't clear "qf".
1617 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
1618 partial symbols.
1619 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
1620 partial symtabs.
1621 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
1622 parameter.
1623 * dbxread.c (dbx_symfile_read): Create partial symtabs.
1624 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
1625
1626 2021-03-20 Tom Tromey <tom@tromey.com>
1627
1628 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1629 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1630 * symfile-debug.c (objfile::has_partial_symbols)
1631 (objfile::find_last_source_symtab)
1632 (objfile::forget_cached_source_info)
1633 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1634 (objfile::print_stats, objfile::dump)
1635 (objfile::expand_symtabs_for_function)
1636 (objfile::expand_all_symtabs)
1637 (objfile::expand_symtabs_with_fullname)
1638 (objfile::map_matching_symbols)
1639 (objfile::expand_symtabs_matching)
1640 (objfile::find_pc_sect_compunit_symtab)
1641 (objfile::map_symbol_filenames)
1642 (objfile::find_compunit_symtab_by_address)
1643 (objfile::lookup_global_symbol_language)
1644 (objfile::require_partial_symbols): Update.
1645 * psymtab.c (maintenance_print_psymbols)
1646 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1647 * objfiles.h (struct objfile) <qf>: Now a forward_list.
1648 * objfiles.c (objfile_relocate1): Update.
1649 * elfread.c (elf_symfile_read): Update.
1650
1651 2021-03-20 Tom Tromey <tom@tromey.com>
1652
1653 * objfiles.h (struct objfile) <psymtabs>: Remove method.
1654
1655 2021-03-20 Tom Tromey <tom@tromey.com>
1656
1657 * psymtab.c (psymbol_functions::count_psyms): Rename.
1658 (psymbol_functions::print_stats): Update.
1659 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
1660 method.
1661
1662 2021-03-20 Tom Tromey <tom@tromey.com>
1663
1664 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
1665 (psymbol_functions::find_pc_sect_psymtab): Rename.
1666 (psymbol_functions::find_pc_sect_compunit_symtab)
1667 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
1668 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
1669 Declare new method.
1670 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
1671
1672 2021-03-20 Tom Tromey <tom@tromey.com>
1673
1674 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
1675 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
1676 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
1677 parameter.
1678 (add_psymbol_to_bcache): Remove.
1679 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
1680 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
1681 Likewise.
1682 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
1683 <add_psymbol>: Likewise.
1684 (standard_psymtab, legacy_psymtab): Likewise.
1685 * mdebugread.c (parse_partial_symbols): Update.
1686 (handle_psymbol_enumerators): Add partial_symtabs parameter.
1687 (handle_psymbol_enumerators): Update.
1688 (new_psymtab): Add partial_symtabs parameter.
1689 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
1690 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
1691 parameter.
1692 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
1693 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
1694 Update.
1695 * dbxread.c (read_dbx_symtab): Update.
1696 (start_psymtab): Add partial_symtabs parameter.
1697 (dbx_end_psymtab): Update.
1698 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
1699 (ctf_psymtab): Add partial_symtabs parameter.
1700 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
1701 Update.
1702 (scan_partial_symbols): Add partial_symtabs parameter.
1703 (scan_partial_symbols, elfctf_build_psymtabs)
1704 (ctf_psymtab_add_enums): Update.
1705
1706 2021-03-20 Tom Tromey <tom@tromey.com>
1707
1708 * symfile.c (read_symbols): Use objfile method.
1709 * symfile-debug.c (objfile::require_partial_symbols): New method.
1710 * psymtab.h (require_partial_symbols): Don't declare.
1711 * psymtab.c (require_partial_symbols): Use objfile method. Now
1712 static.
1713 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
1714 (psymbol_functions::lookup_symbol)
1715 (psymbol_functions::lookup_global_symbol_language)
1716 (psymbol_functions::find_last_source_symtab)
1717 (psymbol_functions::forget_cached_source_info)
1718 (psymbol_functions::print_stats)
1719 (psymbol_functions::expand_symtabs_for_function)
1720 (psymbol_functions::expand_all_symtabs)
1721 (psymbol_functions::expand_symtabs_with_fullname)
1722 (psymbol_functions::map_symbol_filenames)
1723 (psymbol_functions::map_matching_symbols)
1724 (psymbol_functions::expand_symtabs_matching)
1725 (psymbol_functions::find_compunit_symtab_by_address)
1726 (maintenance_print_psymbols, maintenance_info_psymtabs)
1727 (maintenance_check_psymtabs): Update.
1728 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
1729 new method.
1730
1731 2021-03-20 Tom Tromey <tom@tromey.com>
1732
1733 * xcoffread.c (xcoff_sym_fns): Update.
1734 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
1735 * symfile-debug.c (objfile::has_partial_symbols): Use
1736 can_lazily_read_symbols.
1737 (debug_sym_read_psymbols): Remove.
1738 (debug_sym_fns, install_symfile_debug_logging): Update.
1739 * quick-symbol.h (struct quick_symbol_functions)
1740 <can_lazily_read_symbols, read_partial_symbols>: New methods.
1741 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
1742 * mipsread.c (ecoff_sym_fns): Update.
1743 * machoread.c (macho_sym_fns): Update.
1744 * elfread.c (struct lazy_dwarf_reader): New.
1745 (elf_symfile_read): Update.
1746 (read_psyms): Now a method of lazy_dwarf_reader.
1747 (elf_sym_fns): Update.
1748 (elf_sym_fns_lazy_psyms): Remove.
1749 * dbxread.c (aout_sym_fns): Update.
1750 * coffread.c (coff_sym_fns): Update.
1751
1752 2021-03-20 Tom Tromey <tom@tromey.com>
1753
1754 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
1755 (reread_symbols): Move reset_psymtabs call later.
1756 * objfiles.c (objfile::objfile): Don't initialize
1757 partial_symtabs.
1758
1759 2021-03-20 Tom Tromey <tom@tromey.com>
1760
1761 * dwarf2/read.c (dwarf2_build_psymtabs): Call
1762 set_partial_symtabs.
1763 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1764 * psymtab.h (make_psymbol_functions): Add partial_symtabs
1765 parameter.
1766 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
1767 parameter.
1768 (psymbol_functions::find_pc_sect_compunit_symtab)
1769 (psymbol_functions::print_stats, psymbol_functions::dump)
1770 (psymbol_functions::has_symbols): Update.
1771 (make_psymbol_functions, dump_psymtab_addrmap): Add
1772 partial_symtabs parameter.
1773 (maintenance_print_psymbols): Update.
1774 (psymbol_functions::expand_symtabs_matching): Update.
1775 * psympriv.h (struct psymbol_functions): Add constructor.
1776 <m_partial_symtabs>: New member.
1777 <set_partial_symtabs>: New method.
1778
1779 2021-03-20 Tom Tromey <tom@tromey.com>
1780
1781 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
1782 parameter.
1783 (process_psymtab_comp_unit_reader)
1784 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
1785 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
1786 Reference psymtabs via per_bfd.
1787
1788 2021-03-20 Tom Tromey <tom@tromey.com>
1789
1790 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
1791 Remove.
1792 (add_address_entry): Remove objfile parameter.
1793 (add_address_entry_worker): Update.
1794 (write_address_map): Replace objfile parameter with per_bfd.
1795 (write_gdbindex, write_psymtabs_to_index): Update.
1796
1797 2021-03-20 Tom Tromey <tom@tromey.com>
1798
1799 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
1800 print_bcache parameter.
1801 * symfile-debug.c (objfile::print_stats): Add print_bcache
1802 parameter.
1803 * quick-symbol.h (struct quick_symbol_functions)
1804 <print_stats>: Add print_bcache parameter.
1805 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
1806 code to psymtab.c.
1807 (print_objfile_statistics): Move psymtab code to psymtab.c.
1808 * psymtab.c (count_psyms): Move from symmisc.c.
1809 (psymbol_functions::print_stats): Print partial symbol and bcache
1810 statistics. Add print_bcache parameter.
1811 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
1812 (struct objfile) <print_stats>: Add print_bcache parameter.
1813 * maint.c (maintenance_print_statistics): Update.
1814
1815 2021-03-20 Tom Tromey <tom@tromey.com>
1816
1817 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
1818 member.
1819 * dwarf2/read.c (create_addrmap_from_index)
1820 (create_addrmap_from_aranges): Set per_bfd addrmap.
1821 (dwarf2_read_gdb_index): Don't set partial_symtabs.
1822 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
1823 per_bfd addrmap.
1824 (dwarf2_read_debug_names): Don't set partial_symtabs.
1825 (dwarf2_initialize_objfile): Likewise.
1826
1827 2021-03-20 Tom Tromey <tom@tromey.com>
1828
1829 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
1830 earlier.
1831
1832 2021-03-20 Tom Tromey <tom@tromey.com>
1833
1834 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
1835 (~psymtab_discarder, keep): Update.
1836 <m_objfile>: Remove.
1837 <m_partial_symtabs>: New member.
1838 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1839
1840 2021-03-20 Tom Tromey <tom@tromey.com>
1841
1842 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
1843 (xcoff_end_psymtab): Update.
1844 (scan_xcoff_symtab): Add partial_symtabs parameter.
1845 (xcoff_initial_scan): Update.
1846 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
1847 * mdebugread.c (mdebug_build_psymtabs): Update.
1848 (parse_partial_symbols): Add partial_symtabs parameter.
1849 * dbxread.c (dbx_symfile_read): Update.
1850 (read_dbx_symtab): Add partial_symtabs parameter.
1851 (read_dbx_symtab): Update.
1852 (dbx_end_psymtab): Add partial_symtabs parameter.
1853
1854 2021-03-20 Tom Tromey <tom@tromey.com>
1855
1856 * quick-symbol.h (struct quick_symbol_functions)
1857 <relocated>: New method.
1858 * psymtab.h (struct psymbol_functions) <relocated>: New
1859 method.
1860 <fill_psymbol_map>: Declare method.
1861 <m_psymbol_map>: New member.
1862 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
1863 (psymbol_functions::find_compunit_symtab_by_address): Update.
1864 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
1865 (struct objfile) <psymbol_map>: Remove.
1866 * objfiles.c (objfile_relocate1): Update.
1867
1868 2021-03-20 Tom Tromey <tom@tromey.com>
1869
1870 * psympriv.h (struct psymbol_functions): New.
1871 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1872 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
1873 (objfile::lookup_global_symbol_language): Update.
1874 * quick-symbol.h (struct quick_symbol_functions): Convert function
1875 pointers to methods. Add virtual destructor.
1876 (quick_symbol_functions_up): New typedef.
1877 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
1878 (dwarf2_debug_names_functions): Don't declare.
1879 (make_psymbol_functions): Declare.
1880 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
1881 (psymbol_functions::find_pc_sect_compunit_symtab)
1882 (psymbol_functions::lookup_symbol)
1883 (psymbol_functions::lookup_global_symbol_language)
1884 (psymbol_functions::find_last_source_symtab)
1885 (psymbol_functions::forget_cached_source_info)
1886 (psymbol_functions::print_stats, psymbol_functions::dump)
1887 (psymbol_functions::expand_symtabs_for_function)
1888 (psymbol_functions::expand_all_symtabs)
1889 (psymbol_functions::expand_symtabs_with_fullname)
1890 (psymbol_functions::map_symbol_filenames)
1891 (psymbol_functions::map_matching_symbols)
1892 (psymbol_functions::expand_symtabs_matching)
1893 (psymbol_functions::has_symbols)
1894 (psymbol_functions::find_compunit_symtab_by_address): Rename.
1895 (psym_functions): Remove.
1896 (make_psymbol_functions): New function.
1897 * objfiles.h (struct objfile) <qf>: Change type.
1898 * elfread.c (elf_symfile_read): Update.
1899 * dwarf2/read.c (struct dwarf2_base_index_functions)
1900 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
1901 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
1902 (dwarf2_base_index_functions::find_last_source_symtab)
1903 (dwarf2_base_index_functions::forget_cached_source_info)
1904 (dwarf2_base_index_functions::map_symtabs_matching_filename)
1905 (dwarf2_gdb_index::lookup_symbol)
1906 (dwarf2_base_index_functions::print_stats)
1907 (dwarf2_gdb_index::dump)
1908 (dwarf2_gdb_index::expand_symtabs_for_function)
1909 (dwarf2_base_index_functions::expand_all_symtabs)
1910 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1911 Rename.
1912 (dwarf2_gdb_index::map_matching_symbols): New method.
1913 (dwarf2_gdb_index::expand_symtabs_matching): New method.
1914 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
1915 (dwarf2_base_index_functions::map_symbol_filenames)
1916 (dwarf2_base_index_functions::has_symbols): Rename.
1917 (dwarf2_gdb_index_functions): Remove.
1918 (dwarf2_debug_names_index::lookup_symbol)
1919 (dwarf2_debug_names_index::dump)
1920 (dwarf2_debug_names_index::expand_symtabs_for_function)
1921 (dwarf2_debug_names_index::map_matching_symbols)
1922 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
1923 (dwarf2_debug_names_functions): Remove.
1924 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
1925 Declare.
1926
1927 2021-03-20 Tom Tromey <tom@tromey.com>
1928
1929 * psymtab.c (require_partial_symbols): Check that 'sf' is not
1930 null.
1931 * xcoffread.c (xcoff_sym_fns): Update.
1932 * symfile.h (struct sym_fns) <qf>: Remove.
1933 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1934 * symfile-debug.c (objfile::has_partial_symbols)
1935 (objfile::find_last_source_symtab)
1936 (objfile::forget_cached_source_info)
1937 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1938 (objfile::print_stats, objfile::dump)
1939 (objfile::expand_symtabs_for_function)
1940 (objfile::expand_all_symtabs)
1941 (objfile::expand_symtabs_with_fullname)
1942 (objfile::map_matching_symbols)
1943 (objfile::expand_symtabs_matching)
1944 (objfile::find_pc_sect_compunit_symtab)
1945 (objfile::map_symbol_filenames)
1946 (objfile::find_compunit_symtab_by_address)
1947 (objfile::lookup_global_symbol_language, debug_sym_fns)
1948 (install_symfile_debug_logging): Update.
1949 * objfiles.h (struct objfile) <qf>: New member.
1950 * mipsread.c (ecoff_sym_fns): Update.
1951 * machoread.c (macho_sym_fns): Update.
1952 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
1953 Don't declare.
1954 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
1955 * dbxread.c (aout_sym_fns): Update.
1956 * coffread.c (coff_sym_fns): Update.
1957
1958 2021-03-20 Tom Tromey <tom@tromey.com>
1959
1960 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
1961 (expand_symtabs_file_matcher_ftype)
1962 (expand_symtabs_symbol_matcher_ftype)
1963 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
1964 Move to quick-symbol.h.
1965 * quick-symbol.h: New file.
1966
1967 2021-03-20 Tom Tromey <tom@tromey.com>
1968
1969 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
1970 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
1971 (basic_lookup_transparent_type_quick)
1972 (find_pc_sect_compunit_symtab, find_symbol_at_address)
1973 (find_line_symtab, global_symbol_searcher::expand_symtabs):
1974 Update.
1975 * symmisc.c (print_objfile_statistics, dump_objfile)
1976 (maintenance_expand_symtabs): Update.
1977 * symfile.c (symbol_file_add_with_addrs)
1978 (expand_symtabs_matching, map_symbol_filenames): Update.
1979 * symfile-debug.c (objfile::has_partial_symbols)
1980 (objfile::find_last_source_symtab)
1981 (objfile::forget_cached_source_info)
1982 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1983 (objfile::print_stats, objfile::dump)
1984 (objfile::expand_symtabs_for_function)
1985 (objfile::expand_all_symtabs)
1986 (objfile::expand_symtabs_with_fullname)
1987 (objfile::map_matching_symbols)
1988 (objfile::expand_symtabs_matching)
1989 (objfile::find_pc_sect_compunit_symtab)
1990 (objfile::map_symbol_filenames)
1991 (objfile::find_compunit_symtab_by_address)
1992 (objfile::lookup_global_symbol_language): New methods.
1993 (debug_sym_quick_functions): Remove.
1994 (debug_sym_fns, install_symfile_debug_logging): Update.
1995 * source.c (forget_cached_source_info_for_objfile)
1996 (select_source_symtab): Update.
1997 * objfiles.h (struct objfile): Add methods corresponding to
1998 quick_symbol_functions.
1999 * objfiles.c (objfile::has_partial_symbols): Move to
2000 symfile-debug.c.
2001 * linespec.c (iterate_over_all_matching_symtabs): Update.
2002 * cp-support.c (add_symbol_overload_list_qualified): Update.
2003 * ada-lang.c (add_nonlocal_symbols): Update.
2004
2005 2021-03-20 Tom Tromey <tom@tromey.com>
2006
2007 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2008 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2009 bool.
2010 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2011 * psymtab.c (psym_has_symbols): Return bool.
2012 * objfiles.c (objfile::has_partial_symbols): Return bool.
2013 * dwarf2/read.c (dw2_has_symbols): Return bool.
2014
2015 2021-03-20 Tom Tromey <tom@tromey.com>
2016
2017 * symfile.c (read_symbols): Update.
2018 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2019 (objfile_has_partial_symbols): Don't declare.
2020 * objfiles.c (objfile::has_partial_symbols): Rename from
2021 objfile_has_partial_symbols.
2022 (objfile_has_symbols, have_partial_symbols): Update.
2023 * elfread.c (elf_symfile_read): Update.
2024 * dwarf2/read.c (dwarf2_has_info): Update.
2025 * coffread.c (coff_symfile_read): Update.
2026
2027 2021-03-20 Tom Tromey <tom@tromey.com>
2028
2029 * coffread.c: Include dwarf2/public.h.
2030 * dwarf2/frame.c: Include dwarf2/public.h.
2031 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2032 * dwarf2/public.h: New file.
2033 * dwarf2/read.c: Include dwarf2/public.h.
2034 * elfread.c: Include dwarf2/public.h.
2035 * machoread.c: Include dwarf2/public.h.
2036 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2037 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2038 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2039 * xcoffread.c: Include dwarf2/public.h.
2040
2041 2021-03-20 Tom Tromey <tom@tromey.com>
2042
2043 * symfile.h (enum dwarf2_section_enum)
2044 (dwarf2_get_section_info): Move to dwarf2/read.h.
2045 * dwarf2/read.h (enum dwarf2_section_enum)
2046 (dwarf2_get_section_info): Move from symfile.h.
2047
2048 2021-03-19 Pedro Alves <pedro@palves.net>
2049
2050 * thread.c (any_thread_of_inferior): Check if there's a selected
2051 thread before calling inferior_thread().
2052
2053 2021-03-18 Tom Tromey <tromey@adacore.com>
2054
2055 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2056 get_DW_UT_name.
2057 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2058 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2059
2060 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2061
2062 * python/py-param.c (get_set_value): Update header comment.
2063
2064 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2065
2066 * infrun.c (check_multi_target_resumption): Remove argument to
2067 all_non_exited_inferiors.
2068
2069 2021-03-16 Christian Biesinger <cbiesinger@google.com>
2070
2071 * windows-nat.c (windows_init_thread_list): Add message to
2072 debug log.
2073
2074 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2075
2076 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2077 well as PyLong_Check for Python 2.
2078
2079 2021-03-15 Tom Tromey <tromey@adacore.com>
2080
2081 PR build/27579:
2082 * rust-exp.y (maker_map): Use gdb::hash_enum.
2083 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2084
2085 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2086
2087 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2088 end of debug print.
2089
2090 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2091
2092 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
2093 parameter, adjust caller.
2094
2095 2021-03-15 Tom Tromey <tromey@adacore.com>
2096
2097 * ada-exp.y (simple_exp): Always push a result for unary '+'.
2098
2099 2021-03-15 Tom Tromey <tromey@adacore.com>
2100
2101 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
2102 ada_ensure_varsize_limit.
2103
2104 2021-03-15 Tom Tromey <tromey@adacore.com>
2105
2106 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
2107 fixed-point.
2108 * ada-exp.y (maybe_overload): New function.
2109 (ada_wrap_overload): New function.
2110 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
2111 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
2112 (or_else_exp, xor_exp, primary): Update.
2113
2114 2021-03-15 Tom Tromey <tromey@adacore.com>
2115
2116 PR ada/27545:
2117 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
2118 call for tagged type.
2119
2120 2021-03-15 Tom Tromey <tromey@adacore.com>
2121
2122 * ada-exp.y (exp1): Handle resolution of the right hand side of an
2123 assignment.
2124
2125 2021-03-15 Tom Tromey <tromey@adacore.com>
2126
2127 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
2128 container.
2129 (ada_assign_operation::evaluate): Update.
2130 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
2131 Change return type.
2132
2133 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
2134
2135 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
2136
2137 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
2138
2139 * python/python.c (gdbpy_source_objfile_script): Use
2140 make_scoped_restore to restore gdbpy_current_objfile.
2141 (gdbpy_execute_objfile_script): Likewise.
2142
2143 2021-03-14 Tom Tromey <tom@tromey.com>
2144
2145 * dwarf2/read.c (read_attribute_value): Use cu_header
2146 consistently.
2147
2148 2021-03-14 Tom Tromey <tom@tromey.com>
2149
2150 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
2151 (peek_die_abbrev): Use reader.abfd.
2152
2153 2021-03-14 Tom Tromey <tom@tromey.com>
2154
2155 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
2156 m_header_read_in.
2157
2158 2021-03-13 Tom Tromey <tom@tromey.com>
2159
2160 * dwarf2/read.c (struct partial_die_info): Update.
2161 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
2162 (load_partial_dies, partial_die_info::partial_die_info): Update.
2163 * dwarf2/abbrev.h (lookup_abbrev): Constify.
2164
2165 2021-03-13 Tom Tromey <tom@tromey.com>
2166
2167 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
2168
2169 2021-03-12 Christian Biesinger <cbiesinger@google.com>
2170
2171 PR threads/27239
2172 * cp-support.c: Use scoped_segv_handler_restore.
2173 * event-top.c (thread_local_segv_handler): Made static.
2174 (scoped_segv_handler_restore::scoped_segv_handler_restore):
2175 New function.
2176 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
2177 function.
2178 * event-top.h (class scoped_segv_handler_restore): New class.
2179 (thread_local_segv_handler): Removed.
2180
2181 2021-03-10 Tom Tromey <tromey@adacore.com>
2182
2183 * parser-defs.h (parser_state): Change completion to bool.
2184 <parse_completion>: Likewise.
2185 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2186 (ada_resolve_variable, ada_resolve_function): Update.
2187 * ada-lang.c (ada_find_operator_symbol): Change
2188 parse_completion to bool.
2189 (ada_resolve_funcall, ada_resolve_variable)
2190 (ada_resolve_function): Likewise.
2191
2192 2021-03-09 Tom Tromey <tromey@adacore.com>
2193
2194 * eval.c (operation::evaluate_funcall): Use function formal
2195 parameter types when evaluating.
2196
2197 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2198
2199 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
2200 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
2201 and owner to m_owner.
2202
2203 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
2204
2205 * f-exp.h (eval_op_f_loc): Declare.
2206 (expr::fortran_loc_operation): New typedef.
2207 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
2208 UNOP_INTRINSIC.
2209 (f77_keywords): Add LOC keyword.
2210 * f-lang.c (eval_op_f_loc): New function.
2211 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
2212
2213 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2214
2215 * f-exp.h (eval_op_f_array_shape): Declare.
2216 (fortran_array_shape_operation): New type.
2217 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
2218 UNOP_INTRINSIC.
2219 (f77_keywords): Add "shape" keyword.
2220 * f-lang.c (fortran_array_shape): New function.
2221 (eval_op_f_array_shape): New function.
2222 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
2223
2224 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2225
2226 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
2227 of this function.
2228 (expr::fortran_array_size_1arg): New type.
2229 (expr::fortran_array_size_2arg): Likewise.
2230 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
2231 UNOP_OR_BINOP_INTRINSIC.
2232 (f77_keywords): Add "size" keyword.
2233 * f-lang.c (fortran_array_size): New function.
2234 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
2235 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
2236
2237 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2238
2239 * f-exp.h (eval_op_f_rank): Declare.
2240 (expr::fortran_rank_operation): New typedef.
2241 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
2242 UNOP_INTRINSIC.
2243 (f77_keywords): Add "rank" keyword.
2244 * f-lang.c (eval_op_f_rank): New function.
2245 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
2246
2247 2021-03-08 Tom Tromey <tom@tromey.com>
2248
2249 * printcmd.c (set_command): Remove null check.
2250 * value.c (init_if_undefined_command): Remove null check.
2251
2252 2021-03-08 Tom Tromey <tom@tromey.com>
2253
2254 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2255 Update.
2256 * p-exp.y (variable): Update.
2257 * go-exp.y (variable): Update.
2258 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
2259 Remove overload for objfile.
2260 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
2261 parameter.
2262 (check_objfile): Likewise.
2263 (dump_for_expression): Likewise. Remove overload for objfile.
2264 (class var_msym_value_operation): Use bound_minimal_symbol.
2265 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
2266 parameter.
2267 (var_msym_value_operation::evaluate_for_address)
2268 (var_msym_value_operation::evaluate_for_sizeof)
2269 (var_msym_value_operation::evaluate_for_cast): Update.
2270 * d-exp.y (PrimaryExpression): Update.
2271 * c-exp.y (variable): Update.
2272 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
2273 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2274 Update.
2275 * ada-exp.y (write_var_or_type): Update.
2276
2277 2021-03-08 Tom Tromey <tom@tromey.com>
2278
2279 * parser-defs.h (exp_uses_objfile): Return bool.
2280 * parse.c (exp_uses_objfile): Return bool.
2281
2282 2021-03-08 Tom Tromey <tom@tromey.com>
2283
2284 * value.h (eval_skip_value): Don't declare.
2285 * opencl-lang.c (eval_opencl_assign): Update.
2286 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
2287 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2288 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
2289 * expression.h (enum noside) <EVAL_SKIP>: Remove.
2290 * expop.h (typeof_operation::evaluate)
2291 (decltype_operation::evaluate, unop_addr_operation::evaluate)
2292 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
2293 (cxx_cast_operation::evaluate): Update.
2294 * eval.c (eval_skip_value): Remove.
2295 (eval_op_scope, eval_op_var_entry_value)
2296 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
2297 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
2298 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
2299 (eval_op_binary, eval_op_subscript, eval_op_equal)
2300 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
2301 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
2302 (eval_op_complement, eval_op_lognot, eval_op_ind)
2303 (eval_op_memval, eval_op_preinc, eval_op_predec)
2304 (eval_op_postinc, eval_op_postdec, eval_op_type)
2305 (eval_binop_assign_modify, eval_op_objc_msgcall)
2306 (eval_multi_subscript, logical_and_operation::evaluate)
2307 (logical_or_operation::evaluate, array_operation::evaluate)
2308 (operation::evaluate_for_cast)
2309 (var_msym_value_operation::evaluate_for_cast)
2310 (var_value_operation::evaluate_for_cast): Update.
2311 * c-lang.c (c_string_operation::evaluate): Update.
2312 * c-exp.h (objc_nsstring_operation::evaluate)
2313 (objc_selector_operation::evaluate): Update.
2314 * ada-lang.c (ada_assign_operation::evaluate)
2315 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
2316 (ada_atr_size): Update.
2317
2318 2021-03-08 Tom Tromey <tom@tromey.com>
2319
2320 * eval.c: Merge "namespace" scopes.
2321
2322 2021-03-08 Tom Tromey <tom@tromey.com>
2323
2324 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
2325 <release>: Inline.
2326 * parse.c (expr_builder::expr_builder, expr_builder::release):
2327 Remove.
2328
2329 2021-03-08 Tom Tromey <tom@tromey.com>
2330
2331 * parse.c (expression::expression, expression::~expression):
2332 Remove.
2333 * expression.h (struct expression): Inline constructor. Remove
2334 destructor.
2335
2336 2021-03-08 Tom Tromey <tom@tromey.com>
2337
2338 * std-operator.def (BINOP_END): Remove.
2339 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
2340 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
2341 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
2342 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
2343 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
2344 BINOP_END.
2345
2346 2021-03-08 Tom Tromey <tom@tromey.com>
2347
2348 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
2349
2350 2021-03-08 Tom Tromey <tom@tromey.com>
2351
2352 * std-operator.def (OP_EXTENDED0): Remove.
2353
2354 2021-03-08 Tom Tromey <tom@tromey.com>
2355
2356 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
2357 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
2358 Remove.
2359
2360 2021-03-08 Tom Tromey <tom@tromey.com>
2361
2362 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
2363 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
2364
2365 2021-03-08 Tom Tromey <tom@tromey.com>
2366
2367 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
2368 * ada-lang.c (ada_binop_minmax): Update.
2369 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2370 Use BINOP_MIN and BINOP_MAX.
2371
2372 2021-03-08 Tom Tromey <tom@tromey.com>
2373
2374 * value.h (evaluate_subexp_with_coercion): Don't declare.
2375 * parse.c (exp_descriptor_standard): Remove.
2376 (expr_builder::expr_builder, expr_builder::release): Update.
2377 (expression::expression): Remove size_t parameter.
2378 (expression::~expression): Simplify.
2379 (expression::resize): Remove.
2380 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2381 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2382 (write_exp_elt_longcst, write_exp_elt_floatcst)
2383 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2384 (write_exp_string_vector, write_exp_bitstring): Remove.
2385 * p-lang.h (class pascal_language) <opcode_print_table,
2386 op_print_tab>: Remove.
2387 * p-lang.c (pascal_language::op_print_tab): Remove.
2388 * opencl-lang.c (class opencl_language) <opcode_print_table>:
2389 Remove.
2390 * objc-lang.c (objc_op_print_tab): Remove.
2391 (class objc_language) <opcode_print_table>: Remove.
2392 * m2-lang.h (class m2_language) <opcode_print_table,
2393 op_print_tab>: Remove.
2394 * m2-lang.c (m2_language::op_print_tab): Remove.
2395 * language.h (struct language_defn) <post_parser, expression_ops,
2396 opcode_print_table>: Remove.
2397 * language.c (language_defn::expression_ops)
2398 (auto_or_unknown_language::opcode_print_table): Remove.
2399 * go-lang.h (class go_language) <opcode_print_table,
2400 op_print_tab>: Remove.
2401 * go-lang.c (go_language::op_print_tab): Remove.
2402 * f-lang.h (class f_language) <opcode_print_table>: Remove
2403 <op_print_tab>: Remove.
2404 * f-lang.c (f_language::op_print_tab): Remove.
2405 * expression.h (union exp_element): Remove.
2406 (struct expression): Remove size_t parameter from constructor.
2407 <resize>: Remove.
2408 <first_opcode>: Update.
2409 <nelts, elts>: Remove.
2410 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
2411 (evaluate_subexp_standard, print_expression, op_string)
2412 (dump_raw_expression): Don't declare.
2413 * expprint.c (print_expression, print_subexp)
2414 (print_subexp_funcall, print_subexp_standard, op_string)
2415 (dump_raw_expression, dump_subexp, dump_subexp_body)
2416 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
2417 (dump_prefix_expression): Update.
2418 * eval.c (evaluate_subexp): Remove.
2419 (evaluate_expression, evaluate_type): Update.
2420 (evaluate_subexpression_type): Remove.
2421 (fetch_subexp_value): Remove "pc" parameter. Update.
2422 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
2423 (evaluate_subexp_standard, evaluate_subexp_for_address)
2424 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
2425 (evaluate_subexp_for_cast): Remove.
2426 (parse_and_eval_type): Update.
2427 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2428 * d-lang.c (d_op_print_tab): Remove.
2429 (class d_language) <opcode_print_table>: Remove.
2430 * c-lang.h (c_op_print_tab): Don't declare.
2431 * c-lang.c (c_op_print_tab): Remove.
2432 (class c_language, class cplus_language, class asm_language, class
2433 minimal_language) <opcode_print_table>: Remove.
2434 * breakpoint.c (update_watchpoint, watchpoint_check)
2435 (watchpoint_exp_is_const, watch_command_1): Update.
2436 * ax-gdb.h (union exp_element): Don't declare.
2437 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
2438 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
2439 (gen_expr_binop_rest): Remove.
2440 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
2441 * ada-lang.c (ada_op_print_tab): Remove.
2442 (class ada_language) <post_parser, opcode_print_table>: Remove.
2443
2444 2021-03-08 Tom Tromey <tom@tromey.com>
2445
2446 * go-lang.c (go_language::expression_ops): Don't declare.
2447 * go-lang.h (class go_language) <expression_ops>: Remove.
2448 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
2449 Remove.
2450 (class opencl_language) <expression_ops>: Remove.
2451 * d-lang.c (class d_language) <expression_ops>: Remove.
2452 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
2453 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
2454 (class c_language, class cplus_language, class asm_language)
2455 (class minimal_language) <expression_ops>: Remove.
2456
2457 2021-03-08 Tom Tromey <tom@tromey.com>
2458
2459 * ada-lang.c (resolve_subexp, replace_operator_with_call)
2460 (evaluate_subexp_type, assign_aggregate)
2461 (aggregate_assign_positional, aggregate_assign_from_choices)
2462 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
2463 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
2464 (ada_operator_check, ada_forward_operator_length)
2465 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
2466 Remove.
2467 (post_parser): Update.
2468 (class ada_language) <expresssion_ops>: Remove.
2469
2470 2021-03-08 Tom Tromey <tom@tromey.com>
2471
2472 * m2-lang.h (class m2_language) <expresssion_ops,
2473 exp_descriptor_modula2>: Remove.
2474 * m2-lang.c (evaluate_subexp_modula2)
2475 (m2_language::exp_descriptor_modula2): Remove.
2476
2477 2021-03-08 Tom Tromey <tom@tromey.com>
2478
2479 * f-lang.h (class f_language) <expresssion_ops>: Remove.
2480 <exp_descriptor_tab>: Remove.
2481 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
2482 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
2483 (print_subexp_f, dump_subexp_body_f, operator_check_f)
2484 (f_language::exp_descriptor_tab, fortran_prepare_argument):
2485 Remove.
2486
2487 2021-03-08 Tom Tromey <tom@tromey.com>
2488
2489 * rust-lang.h (class rust_language) <expression_ops,
2490 exp_descriptor_tab>: Remove.
2491 * rust-lang.c (rust_evaluate_funcall): Remove.
2492 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
2493 EVAL_SKIP.
2494 (rust_evaluate_subexp): Remove.
2495 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
2496 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
2497 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
2498
2499 2021-03-08 Tom Tromey <tom@tromey.com>
2500
2501 * ada-exp.y: Create operations.
2502 (empty_stoken): Remove.
2503 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
2504 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
2505 (components): New global.
2506 (push_component, choice_component, pop_component, pop_components):
2507 New functions.
2508 (associations): New global
2509 (push_association, pop_association, pop_associations): New
2510 functions.
2511 (ada_parse): Update.
2512 (write_var_from_sym, write_int): Create operations.
2513 (write_exp_op_with_string): Remove.
2514 (write_object_renaming, write_selectors, write_ambiguous_var)
2515 (write_var_or_type, write_name_assoc): Create operations.
2516 * ada-lang.h (ada_index_type): Declare.
2517 * ada-lang.c (ada_index_type): No longer static.
2518
2519 2021-03-08 Tom Tromey <tom@tromey.com>
2520
2521 * f-exp.y: Create operations.
2522 (f_language::parser): Update.
2523
2524 2021-03-08 Tom Tromey <tom@tromey.com>
2525
2526 * m2-exp.y: Create operations.
2527 (m2_language::parser): Update.
2528
2529 2021-03-08 Tom Tromey <tom@tromey.com>
2530
2531 * p-exp.y: Create operations.
2532 (pascal_language::parser): Update.
2533
2534 2021-03-08 Tom Tromey <tom@tromey.com>
2535
2536 * d-exp.y: Create operations.
2537 (d_parse): Update.
2538
2539 2021-03-08 Tom Tromey <tom@tromey.com>
2540
2541 * go-exp.y: Create operations.
2542 (go_language::parser): Update.
2543
2544 2021-03-08 Tom Tromey <tom@tromey.com>
2545
2546 * objc-lang.c (end_msglist): Create operations.
2547 * c-exp.y: Change parser to create operations.
2548 (write_destructor_name): Remove.
2549 (c_parse): Update.
2550
2551 2021-03-08 Tom Tromey <tom@tromey.com>
2552
2553 * rust-exp.y: Create operations.
2554 (rust_parser::convert_params_to_expression): Change return type.
2555 (binop_maker_ftype): New typedef.
2556 (maker_map): New global.
2557 (rust_parser::convert_ast_to_expression): Change return type.
2558 (rust_language::parser): Update.
2559 (_initialize_rust_exp): Initialize maker_map.
2560
2561 2021-03-08 Tom Tromey <tom@tromey.com>
2562
2563 * stap-probe.c (binop_maker_ftype): New typedef.
2564 (stap_maker_map): New global.
2565 (stap_make_binop): New function.
2566 (stap_parse_register_operand): Return operation_up.
2567 (stap_parse_single_operand, stap_parse_argument_conditionally)
2568 (stap_parse_argument_1): Likewise.
2569 (stap_parse_argument): Create operations.
2570 (stap_probe::parse_arguments): Update.
2571 (_initialize_stap_probe): Initialize stap_maker_map.
2572 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
2573 type.
2574 * i386-tdep.h (i386_stap_parse_special_token): Change return
2575 type.
2576 * i386-tdep.c (i386_stap_parse_special_token_triplet)
2577 (i386_stap_parse_special_token_three_arg_disp)
2578 (i386_stap_parse_special_token): Change return type.
2579 * gdbarch.sh (stap_parse_special_token): Change return type.
2580 * gdbarch.c: Rebuild.
2581 * gdbarch.h: Rebuild.
2582 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
2583 type.
2584 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
2585 return type.
2586
2587 2021-03-08 Tom Tromey <tom@tromey.com>
2588
2589 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
2590 * gdbarch.h: Rebuild.
2591 * gdbarch.c: Rebuild.
2592 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2593 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
2594 return type.
2595 (amd64_dtrace_parse_probe_argument): Update.
2596
2597 2021-03-08 Tom Tromey <tom@tromey.com>
2598
2599 * parser-defs.h (struct parser_state) <push, push_new,
2600 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
2601 wrap2>: New methods.
2602 <m_operations>: New member.
2603 * parse.c (parser_state::push_c_string)
2604 (parser_state::push_symbol, parser_state::push_dollar): New
2605 methods.
2606
2607 2021-03-08 Tom Tromey <tom@tromey.com>
2608
2609 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
2610 New member.
2611 (struct parser_state) <mark_struct_expression>: New method.
2612 * parse.c (parser_state::mark_struct_expression): Update assert.
2613 (parser_state::mark_struct_expression): New method.
2614 (parser_state::mark_completion_tag): Update assert.
2615 (parse_expression_for_completion): Handle expout_last_op.
2616
2617 2021-03-08 Tom Tromey <tom@tromey.com>
2618
2619 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
2620 now in superclass.
2621 * value.h (fetch_subexp_value): Add "op" parameter.
2622 * value.c (init_if_undefined_command): Update.
2623 * tracepoint.c (validate_actionline, encode_actions_1): Update.
2624 * stap-probe.c (stap_probe::compile_to_ax): Update.
2625 * printcmd.c (set_command): Update.
2626 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
2627 Update.
2628 * parser-defs.h (struct expr_builder) <set_operation>: New
2629 method.
2630 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
2631 * expression.h (struct expression) <first_opcode>: Update.
2632 <op>: New member.
2633 * expprint.c (dump_raw_expression, dump_prefix_expression):
2634 Update.
2635 * expop.h (class var_value_operation) <get_symbol>: New method.
2636 (class register_operation) <get_name>: New method.
2637 (class equal_operation): No longer a typedef, now a subclass.
2638 (class unop_memval_operation) <get_type>: New method.
2639 (class assign_operation) <get_lhs>: New method.
2640 (class unop_cast_operation) <get_type>: New method.
2641 * eval.c (evaluate_expression, evaluate_type)
2642 (evaluate_subexpression_type): Update.
2643 (fetch_subexp_value): Add "op" parameter.
2644 (parse_and_eval_type): Update.
2645 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2646 * breakpoint.c (update_watchpoint, watchpoint_check)
2647 (watchpoint_exp_is_const, watch_command_1): Update.
2648 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
2649 Update.
2650
2651 2021-03-08 Tom Tromey <tom@tromey.com>
2652
2653 * ada-lang.c (ada_value_binop): Do not use op_string.
2654
2655 2021-03-08 Tom Tromey <tom@tromey.com>
2656
2657 * expprint.c (dump_for_expression): New overload.
2658 * expop.h (check_objfile, dump_for_expression): Declare new
2659 overloads.
2660 * ada-lang.c (check_objfile): New overload.
2661 (assign_component, ada_aggregate_component::uses_objfile)
2662 (ada_aggregate_component::dump, ada_aggregate_component::assign)
2663 (ada_aggregate_component::assign_aggregate)
2664 (ada_positional_component::uses_objfile)
2665 (ada_positional_component::dump, ada_positional_component::assign)
2666 (ada_discrete_range_association::uses_objfile)
2667 (ada_discrete_range_association::dump)
2668 (ada_discrete_range_association::assign)
2669 (ada_name_association::uses_objfile, ada_name_association::dump)
2670 (ada_name_association::assign)
2671 (ada_choices_component::uses_objfile, ada_choices_component::dump)
2672 (ada_choices_component::assign)
2673 (ada_others_component::uses_objfile, ada_others_component::dump)
2674 (ada_others_component::assign, ada_assign_operation::evaluate):
2675 New methods.
2676 * ada-exp.h (ada_string_operation) <get_name>: New method.
2677 (class ada_assign_operation): New.
2678 (class ada_component): New.
2679 (ada_component_up): New typedef.
2680 (class ada_aggregate_operation, class ada_aggregate_component)
2681 (class ada_positional_component, class ada_others_component)
2682 (class ada_association): New.
2683 (ada_association_up): New typedef.
2684 (class ada_choices_component)
2685 (class ada_discrete_range_association)
2686 (class ada_name_association): New.
2687
2688 2021-03-08 Tom Tromey <tom@tromey.com>
2689
2690 * ada-lang.c (ada_var_value_operation::resolve)
2691 (ada_funcall_operation::resolve)
2692 (ada_ternop_slice_operation::resolve): New methods.
2693 * ada-exp.h (struct ada_resolvable): New.
2694 (class ada_var_value_operation): Derive from ada_resolvable.
2695 <get_block, resolve>: New methods.
2696 (class ada_funcall_operation): Derive from ada_resolvable.
2697 <resolve>: New method.
2698 (class ada_ternop_slice_operation): Derive from ada_resolvable.
2699 <resolve>: New method.
2700
2701 2021-03-08 Tom Tromey <tom@tromey.com>
2702
2703 * ada-lang.c (ada_funcall_operation::evaluate): New method.
2704 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
2705 method.
2706 (class ada_funcall_operation): New.
2707
2708 2021-03-08 Tom Tromey <tom@tromey.com>
2709
2710 * ada-lang.c (ada_structop_operation::evaluate): New method.
2711 * ada-exp.h (class ada_structop_operation): New.
2712
2713 2021-03-08 Tom Tromey <tom@tromey.com>
2714
2715 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
2716 * ada-exp.h (class ada_unop_ind_operation): New.
2717
2718 2021-03-08 Tom Tromey <tom@tromey.com>
2719
2720 * ada-lang.c (ada_binop_exp): No longer static.
2721 * ada-exp.h (ada_binop_exp_operation): New typedef.
2722
2723 2021-03-08 Tom Tromey <tom@tromey.com>
2724
2725 * ada-lang.c (ada_val_atr): No longer static.
2726 (ada_atr_val_operation::evaluate): New method.
2727 * ada-exp.h (class ada_atr_val_operation): New.
2728
2729 2021-03-08 Tom Tromey <tom@tromey.com>
2730
2731 * ada-lang.c (ada_pos_atr): No longer static.
2732 * ada-exp.h (ada_pos_operation): New typedef.
2733
2734 2021-03-08 Tom Tromey <tom@tromey.com>
2735
2736 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
2737 parameters.
2738 (ada_evaluate_subexp): Use it.
2739
2740 2021-03-08 Tom Tromey <tom@tromey.com>
2741
2742 * ada-lang.c (ada_binop_minmax): No longer static.
2743 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2744 New typedefs.
2745
2746 2021-03-08 Tom Tromey <tom@tromey.com>
2747
2748 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2749 New method.
2750 * ada-exp.h (class ada_var_msym_value_operation): New.
2751
2752 2021-03-08 Tom Tromey <tom@tromey.com>
2753
2754 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2755 (ada_var_value_operation::evaluate): New methods.
2756 * ada-exp.h (class ada_var_value_operation): New.
2757
2758 2021-03-08 Tom Tromey <tom@tromey.com>
2759
2760 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
2761 * ada-exp.h (class ada_unop_atr_operation): New.
2762
2763 2021-03-08 Tom Tromey <tom@tromey.com>
2764
2765 * ada-lang.c (ada_binop_in_bounds): No longer static.
2766 * ada-exp.h (class ada_binop_in_bounds_operation): New.
2767
2768 2021-03-08 Tom Tromey <tom@tromey.com>
2769
2770 * ada-lang.c (ada_ternop_slice): No longer static.
2771 * ada-exp.h (class ada_ternop_slice_operation): New.
2772
2773 2021-03-08 Tom Tromey <tom@tromey.com>
2774
2775 * ada-exp.h (ada_bitwise_operation): New template class.
2776 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
2777 (ada_bitwise_xor_operation): New typedefs.
2778
2779 2021-03-08 Tom Tromey <tom@tromey.com>
2780
2781 * ada-lang.c (ada_equal_binop): No longer static.
2782 * ada-exp.h (class ada_binop_equal_operation): New.
2783
2784 2021-03-08 Tom Tromey <tom@tromey.com>
2785
2786 * ada-lang.c (ada_mult_binop): No longer static.
2787 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
2788 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
2789
2790 2021-03-08 Tom Tromey <tom@tromey.com>
2791
2792 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
2793 * ada-exp.h (class ada_binop_addsub_operation): New.
2794
2795 2021-03-08 Tom Tromey <tom@tromey.com>
2796
2797 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2798 (ada_resolve_variable): Declare.
2799 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
2800 (ada_resolve_variable): New functions.
2801 (resolve_subexp): Update.
2802
2803 2021-03-08 Tom Tromey <tom@tromey.com>
2804
2805 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
2806 method.
2807 * c-exp.h (class opencl_ternop_cond_operation): New.
2808
2809 2021-03-08 Tom Tromey <tom@tromey.com>
2810
2811 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
2812 method.
2813 * c-exp.h (class opencl_logical_binop_operation): New.
2814
2815 2021-03-08 Tom Tromey <tom@tromey.com>
2816
2817 * opencl-lang.c (opencl_structop_operation::evaluate): New
2818 method.
2819 * c-exp.h (class opencl_structop_operation): New.
2820
2821 2021-03-08 Tom Tromey <tom@tromey.com>
2822
2823 * opencl-lang.c (opencl_logical_not): No longer static. Change
2824 parameters.
2825 (evaluate_subexp_opencl): Update.
2826 * c-exp.h (opencl_notequal_operation): New typedef.
2827
2828 2021-03-08 Tom Tromey <tom@tromey.com>
2829
2830 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
2831 static. Change parameters.
2832 (eval_opencl_assign): No longer static. Add "op" parameter.
2833 (evaluate_subexp_opencl): Update.
2834 * c-exp.h (opencl_binop_operation): New template class.
2835 (opencl_assign_operation, opencl_equal_operation)
2836 (opencl_notequal_operation, opencl_less_operation)
2837 (opencl_gtr_operation, opencl_geq_operation)
2838 (opencl_leq_operation): New typedefs.
2839
2840 2021-03-08 Tom Tromey <tom@tromey.com>
2841
2842 * opencl-lang.c (opencl_value_cast): No longer static.
2843 * c-exp.h (opencl_cast_type_operation): New typedef.
2844
2845 2021-03-08 Tom Tromey <tom@tromey.com>
2846
2847 * f-exp.h (eval_op_f_allocated): Declare.
2848 (fortran_allocated_operation): New typedef.
2849 * f-lang.c (eval_op_f_allocated): No longer static.
2850
2851 2021-03-08 Tom Tromey <tom@tromey.com>
2852
2853 * f-lang.c (eval_op_f_associated): New functions.
2854 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
2855 typedefs.
2856
2857 2021-03-08 Tom Tromey <tom@tromey.com>
2858
2859 * f-lang.c (fortran_bound_1arg::evaluate)
2860 (fortran_bound_2arg::evaluate): New methods.
2861 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
2862 New.
2863
2864 2021-03-08 Tom Tromey <tom@tromey.com>
2865
2866 * expop.h (class unop_addr_operation) <get_expression>: New
2867 method.
2868 * f-lang.c (fortran_undetermined::value_subarray)
2869 (fortran_undetermined::evaluate): New methods.
2870 (fortran_prepare_argument): New overload.
2871 * f-exp.h (class fortran_range_operation)
2872 (class fortran_undetermined): New classes.
2873
2874 2021-03-08 Tom Tromey <tom@tromey.com>
2875
2876 * rust-lang.c (rust_structop::evaluate_funcall): New method.
2877 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
2878 method.
2879
2880 2021-03-08 Tom Tromey <tom@tromey.com>
2881
2882 * expression.h (class operation) <evaluate_funcall>: New methods.
2883 * expop.h (class scope_operation) <evaluate_funcall>: New method.
2884 (class var_value_operation) <evaluate_funcall>: New method.
2885 (class structop_base_operation) <evaluate_funcall>: New method.
2886 (class var_msym_value_operation) <evaluate_funcall>: New method.
2887 (class structop_member_base): New class.
2888 (class structop_member_operation): Derive from
2889 structop_member_base.
2890 (class structop_mptr_operation): Derive from
2891 structop_member_base.
2892 (class funcall_operation): New class.
2893 * eval.c (operation::evaluate_funcall)
2894 (var_value_operation::evaluate_funcall)
2895 (scope_operation::evaluate_funcall)
2896 (structop_member_base::evaluate_funcall)
2897 (structop_base_operation::evaluate_funcall): New methods.
2898
2899 2021-03-08 Tom Tromey <tom@tromey.com>
2900
2901 * expop.h (class array_operation): New.
2902 * eval.c (array_operation::evaluate_struct_tuple)
2903 (array_operation::evaluate): New methods.
2904
2905 2021-03-08 Tom Tromey <tom@tromey.com>
2906
2907 * expop.h (class adl_func_operation): New.
2908 * eval.c (adl_func_operation::evaluate): New method.
2909
2910 2021-03-08 Tom Tromey <tom@tromey.com>
2911
2912 * ada-lang.c (ada_unop_in_range): No longer static.
2913 * ada-exp.h (class ada_unop_range_operation): New.
2914
2915 2021-03-08 Tom Tromey <tom@tromey.com>
2916
2917 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
2918 No longer static.
2919 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
2920 (ada_atr_size_operation, ada_abs_operation): New typedefs.
2921
2922 2021-03-08 Tom Tromey <tom@tromey.com>
2923
2924 * expop.h (class logical_and_operation)
2925 (class logical_or_operation): New.
2926 * eval.c (logical_and_operation::evaluate)
2927 (logical_or_operation::evaluate): New methods.
2928 * ax-gdb.c (logical_and_operation::do_generate_ax)
2929 (logical_or_operation::do_generate_ax): New methods.
2930
2931 2021-03-08 Tom Tromey <tom@tromey.com>
2932
2933 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
2934 static.
2935 * m2-exp.h: New file.
2936
2937 2021-03-08 Tom Tromey <tom@tromey.com>
2938
2939 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
2940 * rust-exp.h (class rust_aggregate_operation): New.
2941
2942 2021-03-08 Tom Tromey <tom@tromey.com>
2943
2944 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
2945 No longer static.
2946 * rust-exp.h (class rust_struct_anon): New.
2947 (class rust_structop): New.
2948
2949 2021-03-08 Tom Tromey <tom@tromey.com>
2950
2951 * rust-lang.c (rust_range): No longer static.
2952 * rust-exp.h (class rust_range_operation): New.
2953
2954 2021-03-08 Tom Tromey <tom@tromey.com>
2955
2956 * rust-lang.c (rust_subscript): No longer static.
2957 * rust-exp.h (class rust_subscript_operation): New.
2958
2959 2021-03-08 Tom Tromey <tom@tromey.com>
2960
2961 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
2962 parameter.
2963 (rust_evaluate_subexp): Update.
2964 * rust-exp.h (class rust_unop_ind_operation): New.
2965
2966 2021-03-08 Tom Tromey <tom@tromey.com>
2967
2968 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
2969 longer static. Add "opcode" parameter.
2970 (rust_evaluate_subexp): Update.
2971 * rust-exp.h: New file.
2972
2973 2021-03-08 Tom Tromey <tom@tromey.com>
2974
2975 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2976 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
2977 (eval_op_f_kind): No longer static. Add "opcode" parameter.
2978 (evaluate_subexp_f): Update.
2979 * f-exp.h: New file.
2980
2981 2021-03-08 Tom Tromey <tom@tromey.com>
2982
2983 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
2984 * ada-exp.h (class ada_ternop_range_operation): New.
2985
2986 2021-03-08 Tom Tromey <tom@tromey.com>
2987
2988 * ada-lang.c (ada_qual_operation::evaluate): New method.
2989 * ada-exp.h (class ada_qual_operation): New.
2990
2991 2021-03-08 Tom Tromey <tom@tromey.com>
2992
2993 * ada-lang.c (ada_string_operation::evaluate): New method.
2994 * ada-exp.h (class ada_string_operation): New.
2995
2996 2021-03-08 Tom Tromey <tom@tromey.com>
2997
2998 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
2999 * ada-exp.h: New file.
3000
3001 2021-03-08 Tom Tromey <tom@tromey.com>
3002
3003 * expop.h (class multi_subscript_operation): New.
3004 * eval.c (multi_subscript_operation::evaluate): New method.
3005
3006 2021-03-08 Tom Tromey <tom@tromey.com>
3007
3008 * eval.c (objc_msgcall_operation::evaluate): New method.
3009 * c-exp.h (class objc_msgcall_operation): New.
3010
3011 2021-03-08 Tom Tromey <tom@tromey.com>
3012
3013 * expop.h (class var_value_operation): New.
3014 * eval.c (var_value_operation::evaluate)
3015 (var_value_operation::evaluate_for_address)
3016 (var_value_operation::evaluate_with_coercion)
3017 (var_value_operation::evaluate_for_sizeof)
3018 (var_value_operation::evaluate_for_cast): New methods.
3019 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3020
3021 2021-03-08 Tom Tromey <tom@tromey.com>
3022
3023 * expop.h (cxx_cast_ftype): New typedef.
3024 (cxx_cast_operation): New template.
3025 (dynamic_cast_operation, reinterpret_cast_operation): New
3026 typedefs.
3027
3028 2021-03-08 Tom Tromey <tom@tromey.com>
3029
3030 * expop.h (class unop_cast_type_operation): New.
3031 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3032 method.
3033
3034 2021-03-08 Tom Tromey <tom@tromey.com>
3035
3036 * expop.h (class unop_cast_operation): New.
3037 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3038
3039 2021-03-08 Tom Tromey <tom@tromey.com>
3040
3041 * expop.h (class assign_modify_operation): New.
3042 * eval.c (eval_binop_assign_modify): No longer static.
3043 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3044
3045 2021-03-08 Tom Tromey <tom@tromey.com>
3046
3047 * expop.h (class assign_operation): New.
3048 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3049
3050 2021-03-08 Tom Tromey <tom@tromey.com>
3051
3052 * expop.h (class type_instance_operation): New.
3053 * eval.c (type_instance_operation::evaluate): New method.
3054
3055 2021-03-08 Tom Tromey <tom@tromey.com>
3056
3057 * expop.h (class op_this_operation): New.
3058 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3059
3060 2021-03-08 Tom Tromey <tom@tromey.com>
3061
3062 * expop.h (class unop_memval_operation)
3063 (class unop_memval_type_operation): New.
3064 * eval.c (eval_op_memval): No longer static.
3065 (unop_memval_operation::evaluate_for_address)
3066 (unop_memval_type_operation::evaluate_for_address)
3067 (unop_memval_operation::evaluate_for_sizeof)
3068 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3069 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3070 (unop_memval_type_operation::do_generate_ax): New methods.
3071
3072 2021-03-08 Tom Tromey <tom@tromey.com>
3073
3074 * expop.h (class unop_alignof_operation): New.
3075 * eval.c (eval_op_alignof): No longer static.
3076
3077 2021-03-08 Tom Tromey <tom@tromey.com>
3078
3079 * expop.h (class unop_sizeof_operation): New.
3080 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3081
3082 2021-03-08 Tom Tromey <tom@tromey.com>
3083
3084 * expop.h (class unop_addr_operation): New.
3085 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3086
3087 2021-03-08 Tom Tromey <tom@tromey.com>
3088
3089 * expop.h (class typeid_operation): New.
3090
3091 2021-03-08 Tom Tromey <tom@tromey.com>
3092
3093 * expop.h (class decltype_operation): New.
3094
3095 2021-03-08 Tom Tromey <tom@tromey.com>
3096
3097 * expop.h (class typeof_operation): New.
3098
3099 2021-03-08 Tom Tromey <tom@tromey.com>
3100
3101 * expop.h (class type_operation): New.
3102 * eval.c (eval_op_type): No longer static.
3103
3104 2021-03-08 Tom Tromey <tom@tromey.com>
3105
3106 * expop.h (class unop_ind_base_operation)
3107 (class unop_ind_operation): New.
3108 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
3109 (unop_ind_base_operation::evaluate_for_address)
3110 (unop_ind_base_operation::evaluate_for_sizeof): New method.
3111 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
3112
3113 2021-03-08 Tom Tromey <tom@tromey.com>
3114
3115 * expop.h (unop_incr_operation): New template.
3116 (preinc_operation, predec_operation, postinc_operation)
3117 (postdec_operation): New typedefs.
3118 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
3119 (eval_op_postdec): No longer static.
3120
3121 2021-03-08 Tom Tromey <tom@tromey.com>
3122
3123 * expop.h (unary_ftype): New typedef.
3124 (unop_operation, usual_ax_binop_operation): New templates.
3125 (unary_plus_operation, unary_neg_operation)
3126 (unary_complement_operation, unary_logical_not_operation): New
3127 typedefs.
3128 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
3129 (eval_op_lognot): No longer static.
3130 * ax-gdb.c (gen_expr_unop): New function.
3131
3132 2021-03-08 Tom Tromey <tom@tromey.com>
3133
3134 * ax-gdb.c (comma_operation::do_generate_ax): New method.
3135
3136 2021-03-08 Tom Tromey <tom@tromey.com>
3137
3138 * expop.h (class repeat_operation): New.
3139 * eval.c (eval_op_repeat): No longer static. Remove "op"
3140 parameter.
3141 (evaluate_subexp_standard): Update.
3142 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
3143
3144 2021-03-08 Tom Tromey <tom@tromey.com>
3145
3146 * expop.h (class comparison_operation): New.
3147 (equal_operation, notequal_operation, less_operation)
3148 (gtr_operation, geq_operation, leq_operation): New typedefs.
3149 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
3150 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
3151
3152 2021-03-08 Tom Tromey <tom@tromey.com>
3153
3154 * expop.h (class subscript_operation): New.
3155 * eval.c (eval_op_subscript): No longer static.
3156
3157 2021-03-08 Tom Tromey <tom@tromey.com>
3158
3159 * expop.h (class binop_operation, class usual_ax_binop_operation):
3160 New.
3161 (exp_operation, intdiv_operation, mod_operation, mul_operation)
3162 (div_operation, rem_operation, lsh_operation, rsh_operation)
3163 (bitwise_and_operation, bitwise_ior_operation)
3164 (bitwise_xor_operation): New typedefs.
3165 * eval.c (eval_op_binary): No longer static.
3166
3167 2021-03-08 Tom Tromey <tom@tromey.com>
3168
3169 * expop.h (class sub_operation): New.
3170 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
3171 (evaluate_subexp_standard): Update.
3172
3173 2021-03-08 Tom Tromey <tom@tromey.com>
3174
3175 * expop.h (class add_operation): New.
3176 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
3177 (evaluate_subexp_standard): Update.
3178
3179 2021-03-08 Tom Tromey <tom@tromey.com>
3180
3181 * expop.h (class concat_operation): New.
3182 * eval.c (eval_op_concat): No longer static. Remove "op"
3183 parameter.
3184 (evaluate_subexp_standard): Update.
3185
3186 2021-03-08 Tom Tromey <tom@tromey.com>
3187
3188 * expop.h (class structop_member_operation)
3189 (class structop_mptr_operation): New.
3190 * eval.c (eval_op_member): No longer static.
3191
3192 2021-03-08 Tom Tromey <tom@tromey.com>
3193
3194 * expop.h (class structop_ptr_operation): New.
3195 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
3196 parameter.
3197
3198 2021-03-08 Tom Tromey <tom@tromey.com>
3199
3200 * expop.h (class structop_base_operation)
3201 (class structop_operation): New.
3202 * eval.c (eval_op_structop_struct): No longer static.
3203
3204 2021-03-08 Tom Tromey <tom@tromey.com>
3205
3206 * expop.h (class complex_operation): New.
3207
3208 2021-03-08 Tom Tromey <tom@tromey.com>
3209
3210 * eval.c (eval_op_objc_selector): No longer static.
3211 * c-exp.h (class objc_selector_operation): New.
3212
3213 2021-03-08 Tom Tromey <tom@tromey.com>
3214
3215 * eval.c: Include c-exp.h.
3216 * c-exp.h (class objc_nsstring_operation): New.
3217
3218 2021-03-08 Tom Tromey <tom@tromey.com>
3219
3220 * c-lang.c (c_string_operation::evaluate): New method.
3221 * c-exp.h: New file.
3222
3223 2021-03-08 Tom Tromey <tom@tromey.com>
3224
3225 * expop.h (class ternop_cond_operation): New.
3226 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
3227
3228 2021-03-08 Tom Tromey <tom@tromey.com>
3229
3230 * expop.h (class ternop_slice_operation): New.
3231 * eval.c (eval_op_ternop): No longer static.
3232
3233 2021-03-08 Tom Tromey <tom@tromey.com>
3234
3235 * expop.h (class string_operation): New.
3236 * eval.c (eval_op_string): No longer static.
3237
3238 2021-03-08 Tom Tromey <tom@tromey.com>
3239
3240 * expop.h (class internalvar_operation): New.
3241 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
3242
3243 2021-03-08 Tom Tromey <tom@tromey.com>
3244
3245 * expop.h (class bool_operation): New.
3246
3247 2021-03-08 Tom Tromey <tom@tromey.com>
3248
3249 * expop.h (class register_operation): New.
3250 * eval.c (eval_op_register): No longer static.
3251 * ax-gdb.c (register_operation::do_generate_ax): New method.
3252
3253 2021-03-08 Tom Tromey <tom@tromey.com>
3254
3255 * expop.h (class last_operation): New.
3256
3257 2021-03-08 Tom Tromey <tom@tromey.com>
3258
3259 * expop.h (class func_static_var_operation): New.
3260 * eval.c (eval_op_func_static_var): No longer static.
3261
3262 2021-03-08 Tom Tromey <tom@tromey.com>
3263
3264 * expop.h (class var_entry_value_operation): New.
3265 * eval.c (eval_op_var_entry_value): No longer static.
3266
3267 2021-03-08 Tom Tromey <tom@tromey.com>
3268
3269 * expression.h (class operation) <set_outermost>: New method.
3270 * expop.h (class var_msym_value_operation): New.
3271 * eval.c (eval_op_var_msym_value): No longer static.
3272 (var_msym_value_operation::evaluate_for_address)
3273 (var_msym_value_operation::evaluate_for_sizeof)
3274 (var_msym_value_operation::evaluate_for_cast): New methods.
3275 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
3276 method.
3277
3278 2021-03-08 Tom Tromey <tom@tromey.com>
3279
3280 * expop.h (class long_const_operation): New.
3281 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
3282
3283 2021-03-08 Tom Tromey <tom@tromey.com>
3284
3285 * expop.h (class scope_operation): New.
3286 * eval.c (eval_op_scope): No longer static.
3287 (scope_operation::evaluate_for_address): New method.
3288 * ax-gdb.c (scope_operation::do_generate_ax): New method.
3289
3290 2021-03-08 Tom Tromey <tom@tromey.com>
3291
3292 * expprint.c (float_const_operation::dump): New method.
3293 * expop.h (float_data): New typedef.
3294 (class float_const_operation): New.
3295
3296 2021-03-08 Tom Tromey <tom@tromey.com>
3297
3298 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
3299 * ax-gdb.c (gen_expr_binop): New function.
3300 (gen_expr_structop): Likewise.
3301
3302 2021-03-08 Tom Tromey <tom@tromey.com>
3303
3304 * expprint.c (expr::dump_for_expression): New functions.
3305 * expop.h (dump_for_expression): New overloads.
3306 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
3307 Update.
3308
3309 2021-03-08 Tom Tromey <tom@tromey.com>
3310
3311 * expression.h (expr::operation): New class.
3312 (expr::make_operation): New function.
3313 (expr::operation_up): New typedef.
3314 * expop.h: New file.
3315 * eval.c (operation::evaluate_for_cast)
3316 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
3317 New methods.
3318 * ax-gdb.c (operation::generate_ax): New method.
3319
3320 2021-03-08 Tom Tromey <tom@tromey.com>
3321
3322 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
3323 (gen_expr_binop_rest): New overload.
3324
3325 2021-03-08 Tom Tromey <tom@tromey.com>
3326
3327 * eval.c (eval_multi_subscript): New function.
3328 (evaluate_subexp_standard): Use it.
3329
3330 2021-03-08 Tom Tromey <tom@tromey.com>
3331
3332 * ada-lang.c (ada_binop_exp): New function.
3333 (ada_evaluate_subexp): Use it.
3334
3335 2021-03-08 Tom Tromey <tom@tromey.com>
3336
3337 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
3338 parameters.
3339 (ada_evaluate_subexp): Use it.
3340
3341 2021-03-08 Tom Tromey <tom@tromey.com>
3342
3343 * ada-lang.c (ada_binop_minmax): New function.
3344 (ada_evaluate_subexp): Use it.
3345
3346 2021-03-08 Tom Tromey <tom@tromey.com>
3347
3348 * ada-lang.c (ada_unop_atr): New function.
3349 (ada_evaluate_subexp): Use it.
3350
3351 2021-03-08 Tom Tromey <tom@tromey.com>
3352
3353 * ada-lang.c (ada_binop_in_bounds): New function.
3354 (ada_evaluate_subexp): Use it.
3355
3356 2021-03-08 Tom Tromey <tom@tromey.com>
3357
3358 * ada-lang.c (ada_ternop_slice): New function.
3359 (ada_evaluate_subexp): Use it.
3360
3361 2021-03-08 Tom Tromey <tom@tromey.com>
3362
3363 * ada-lang.c (ada_equal_binop): New function.
3364 (ada_evaluate_subexp): Use it.
3365
3366 2021-03-08 Tom Tromey <tom@tromey.com>
3367
3368 * ada-lang.c (ada_mult_binop): New function.
3369 (ada_evaluate_subexp): Use it.
3370
3371 2021-03-08 Tom Tromey <tom@tromey.com>
3372
3373 * ada-lang.c (ada_abs): New function.
3374 (ada_evaluate_subexp): Use it.
3375
3376 2021-03-08 Tom Tromey <tom@tromey.com>
3377
3378 * ada-lang.c (ada_atr_size): New function.
3379 (ada_evaluate_subexp): Use it.
3380
3381 2021-03-08 Tom Tromey <tom@tromey.com>
3382
3383 * ada-lang.c (ada_atr_tag): New function.
3384 (ada_evaluate_subexp): Use it.
3385
3386 2021-03-08 Tom Tromey <tom@tromey.com>
3387
3388 * ada-lang.c (ada_unop_in_range): New function.
3389 (ada_evaluate_subexp): Use it.
3390
3391 2021-03-08 Tom Tromey <tom@tromey.com>
3392
3393 * ada-lang.c (ada_unop_neg): New function.
3394 (ada_evaluate_subexp): Use it.
3395
3396 2021-03-08 Tom Tromey <tom@tromey.com>
3397
3398 * ada-lang.c (eval_ternop_in_range): New function.
3399 (ada_evaluate_subexp): Use it.
3400
3401 2021-03-08 Tom Tromey <tom@tromey.com>
3402
3403 * opencl-lang.c (eval_opencl_assign): New function.
3404 (evaluate_subexp_opencl): Use it.
3405
3406 2021-03-08 Tom Tromey <tom@tromey.com>
3407
3408 * eval.c (eval_op_objc_msgcall): New function.
3409 (evaluate_subexp_standard): Use it.
3410
3411 2021-03-08 Tom Tromey <tom@tromey.com>
3412
3413 * eval.c (eval_binop_assign_modify): New function.
3414 (evaluate_subexp_standard): Use it.
3415
3416 2021-03-08 Tom Tromey <tom@tromey.com>
3417
3418 * m2-lang.c (eval_op_m2_subscript): New function.
3419 (evaluate_subexp_modula2): Use it.
3420
3421 2021-03-08 Tom Tromey <tom@tromey.com>
3422
3423 * m2-lang.c (eval_op_m2_high): New function.
3424 (evaluate_subexp_modula2): Use it.
3425
3426 2021-03-08 Tom Tromey <tom@tromey.com>
3427
3428 * eval.c (evaluate_subexp_for_address_base): New function.
3429 (evaluate_subexp_for_address): Use it.
3430 (evaluate_subexp_for_sizeof_base): New function.
3431 (evaluate_subexp_for_sizeof): Use it.
3432
3433 2021-03-08 Tom Tromey <tom@tromey.com>
3434
3435 * rust-lang.c (eval_op_rust_structop): New function.
3436 (rust_evaluate_subexp): Use it.
3437
3438 2021-03-08 Tom Tromey <tom@tromey.com>
3439
3440 * rust-lang.c (eval_op_rust_struct_anon): New function.
3441 (rust_evaluate_subexp): Use it.
3442
3443 2021-03-08 Tom Tromey <tom@tromey.com>
3444
3445 * rust-lang.c (eval_op_rust_array): New function.
3446 (rust_evaluate_subexp): Use it.
3447
3448 2021-03-08 Tom Tromey <tom@tromey.com>
3449
3450 * rust-lang.c (eval_op_rust_complement): New function.
3451 (rust_evaluate_subexp): Use it.
3452
3453 2021-03-08 Tom Tromey <tom@tromey.com>
3454
3455 * rust-lang.c (eval_op_rust_ind): New function.
3456 (rust_evaluate_subexp): Use it.
3457
3458 2021-03-08 Tom Tromey <tom@tromey.com>
3459
3460 * rust-lang.c (rust_subscript): Change parameters.
3461 (rust_evaluate_subexp): Update.
3462
3463 2021-03-08 Tom Tromey <tom@tromey.com>
3464
3465 * rust-lang.c (rust_range): Change parameters.
3466 (rust_evaluate_subexp): Update.
3467
3468 2021-03-08 Tom Tromey <tom@tromey.com>
3469
3470 * f-lang.c (eval_op_f_allocated): New function.
3471 (evaluate_subexp_f): Use it.
3472
3473 2021-03-08 Tom Tromey <tom@tromey.com>
3474
3475 * f-lang.c (fortran_require_array): New function.
3476 (evaluate_subexp_f): Use it.
3477
3478 2021-03-08 Tom Tromey <tom@tromey.com>
3479
3480 * f-lang.c (eval_op_f_kind): New function.
3481 (evaluate_subexp_f): Use it.
3482
3483 2021-03-08 Tom Tromey <tom@tromey.com>
3484
3485 * f-lang.c (eval_op_f_cmplx): New function.
3486 (evaluate_subexp_f): Use it.
3487
3488 2021-03-08 Tom Tromey <tom@tromey.com>
3489
3490 * f-lang.c (eval_op_f_modulo): New function.
3491 (evaluate_subexp_f): Use it.
3492
3493 2021-03-08 Tom Tromey <tom@tromey.com>
3494
3495 * f-lang.c (eval_op_f_floor): New function.
3496 (evaluate_subexp_f): Use it.
3497
3498 2021-03-08 Tom Tromey <tom@tromey.com>
3499
3500 * f-lang.c (eval_op_f_ceil): New function.
3501 (evaluate_subexp_f): Use it.
3502
3503 2021-03-08 Tom Tromey <tom@tromey.com>
3504
3505 * f-lang.c (eval_op_f_mod): New function.
3506 (evaluate_subexp_f): Use it.
3507
3508 2021-03-08 Tom Tromey <tom@tromey.com>
3509
3510 * f-lang.c (eval_op_f_abs): New function.
3511 (evaluate_subexp_f): Use it.
3512
3513 2021-03-08 Tom Tromey <tom@tromey.com>
3514
3515 * eval.c (eval_op_type): New function.
3516 (evaluate_subexp_standard): Use it.
3517
3518 2021-03-08 Tom Tromey <tom@tromey.com>
3519
3520 * eval.c (eval_op_postdec): New function.
3521 (evaluate_subexp_standard): Use it.
3522
3523 2021-03-08 Tom Tromey <tom@tromey.com>
3524
3525 * eval.c (eval_op_postinc): New function.
3526 (evaluate_subexp_standard): Use it.
3527
3528 2021-03-08 Tom Tromey <tom@tromey.com>
3529
3530 * eval.c (eval_op_predec): New file.
3531 (evaluate_subexp_standard): Use it.
3532
3533 2021-03-08 Tom Tromey <tom@tromey.com>
3534
3535 * eval.c (eval_op_preinc): New function.
3536 (evaluate_subexp_standard): Use it.
3537
3538 2021-03-08 Tom Tromey <tom@tromey.com>
3539
3540 * eval.c (eval_op_memval): New function.
3541 (evaluate_subexp_standard): Use it.
3542
3543 2021-03-08 Tom Tromey <tom@tromey.com>
3544
3545 * eval.c (eval_op_alignof): New function.
3546 (evaluate_subexp_standard): Use it.
3547
3548 2021-03-08 Tom Tromey <tom@tromey.com>
3549
3550 * eval.c (eval_op_ind): New function.
3551 (evaluate_subexp_standard): Use it.
3552
3553 2021-03-08 Tom Tromey <tom@tromey.com>
3554
3555 * eval.c (eval_op_lognot): New function.
3556 (evaluate_subexp_standard): Use it.
3557
3558 2021-03-08 Tom Tromey <tom@tromey.com>
3559
3560 * eval.c (eval_op_complement): New function.
3561 (evaluate_subexp_standard): Use it.
3562
3563 2021-03-08 Tom Tromey <tom@tromey.com>
3564
3565 * eval.c (eval_op_neg): New function.
3566 (evaluate_subexp_standard): Use it.
3567
3568 2021-03-08 Tom Tromey <tom@tromey.com>
3569
3570 * eval.c (eval_op_plus): New function.
3571 (evaluate_subexp_standard): Use it.
3572
3573 2021-03-08 Tom Tromey <tom@tromey.com>
3574
3575 * eval.c (eval_op_repeat): New function.
3576 (evaluate_subexp_standard): Use it.
3577
3578 2021-03-08 Tom Tromey <tom@tromey.com>
3579
3580 * eval.c (eval_op_leq): New function.
3581 (evaluate_subexp_standard): Use it.
3582
3583 2021-03-08 Tom Tromey <tom@tromey.com>
3584
3585 * eval.c (eval_op_geq): New function.
3586 (evaluate_subexp_standard): Use it.
3587
3588 2021-03-08 Tom Tromey <tom@tromey.com>
3589
3590 * eval.c (eval_op_gtr): New function.
3591 (evaluate_subexp_standard): Use it.
3592
3593 2021-03-08 Tom Tromey <tom@tromey.com>
3594
3595 * eval.c (eval_op_less): New function.
3596 (evaluate_subexp_standard): Use it.
3597
3598 2021-03-08 Tom Tromey <tom@tromey.com>
3599
3600 * eval.c (eval_op_notequal): New function.
3601 (evaluate_subexp_standard): Use it.
3602
3603 2021-03-08 Tom Tromey <tom@tromey.com>
3604
3605 * eval.c (eval_op_equal): New function.
3606 (evaluate_subexp_standard): Use it.
3607
3608 2021-03-08 Tom Tromey <tom@tromey.com>
3609
3610 * eval.c (eval_op_subscript): New function.
3611 (evaluate_subexp_standard): Use it.
3612
3613 2021-03-08 Tom Tromey <tom@tromey.com>
3614
3615 * eval.c (eval_op_binary): New function.
3616 (evaluate_subexp_standard): Use it.
3617
3618 2021-03-08 Tom Tromey <tom@tromey.com>
3619
3620 * eval.c (eval_op_sub): New function.
3621 (evaluate_subexp_standard): Use it.
3622
3623 2021-03-08 Tom Tromey <tom@tromey.com>
3624
3625 * eval.c (eval_op_add): New function.
3626 (evaluate_subexp_standard): Use it.
3627
3628 2021-03-08 Tom Tromey <tom@tromey.com>
3629
3630 * eval.c (eval_op_member): New function.
3631 (evaluate_subexp_standard): Use it.
3632
3633 2021-03-08 Tom Tromey <tom@tromey.com>
3634
3635 * eval.c (eval_op_structop_ptr): New function.
3636 (evaluate_subexp_standard): Use it.
3637
3638 2021-03-08 Tom Tromey <tom@tromey.com>
3639
3640 * eval.c (eval_op_structop_struct): New function.
3641 (evaluate_subexp_standard): Use it.
3642
3643 2021-03-08 Tom Tromey <tom@tromey.com>
3644
3645 * eval.c (eval_op_ternop): New function.
3646 (evaluate_subexp_standard): Use it.
3647
3648 2021-03-08 Tom Tromey <tom@tromey.com>
3649
3650 * eval.c (eval_op_concat): New function.
3651 (evaluate_subexp_standard): Use it.
3652
3653 2021-03-08 Tom Tromey <tom@tromey.com>
3654
3655 * eval.c (eval_op_objc_selector): New function.
3656 (evaluate_subexp_standard): Use it.
3657
3658 2021-03-08 Tom Tromey <tom@tromey.com>
3659
3660 * eval.c (eval_op_string): New function.
3661 (evaluate_subexp_standard): Use it.
3662
3663 2021-03-08 Tom Tromey <tom@tromey.com>
3664
3665 * eval.c (eval_op_register): New function.
3666 (evaluate_subexp_standard): Use it.
3667
3668 2021-03-08 Tom Tromey <tom@tromey.com>
3669
3670 * eval.c (eval_op_func_static_var): New function.
3671 (evaluate_subexp_standard): Use it.
3672
3673 2021-03-08 Tom Tromey <tom@tromey.com>
3674
3675 * eval.c (eval_op_var_msym_value): New function.
3676 (evaluate_subexp_standard): Use it.
3677
3678 2021-03-08 Tom Tromey <tom@tromey.com>
3679
3680 * eval.c (eval_op_var_entry_value): New function.
3681 (evaluate_subexp_standard): Use it.
3682
3683 2021-03-08 Tom Tromey <tom@tromey.com>
3684
3685 * eval.c (eval_op_scope): New function.
3686 (evaluate_subexp_standard): Use it.
3687
3688 2021-03-06 Chernov Sergey <klen_s@mail.ru>
3689
3690 PR gdb/27528:
3691 * ada-lang.c (ada_fold_name): Use gdb::to_string.
3692
3693 2021-03-06 Tom Tromey <tom@tromey.com>
3694
3695 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
3696 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
3697 * dwarf2/read.c (dwarf2_elf_names): No longer static.
3698 (locate_dwz_sections, dwz_search_other_debugdirs)
3699 (dwarf2_get_dwz_file): Move to dwz.c.
3700 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
3701 read.h.
3702 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
3703 (dwarf2_get_dwz_file): Move from read.c.
3704
3705 2021-03-06 Tom Tromey <tom@tromey.com>
3706
3707 * debuginfod-support.h: Include scoped_fd.h.
3708
3709 2021-03-06 Tom Tromey <tom@tromey.com>
3710
3711 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
3712 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
3713 (get_abbrev_section_for_cu, read_attribute_value)
3714 (get_debug_line_section): Update.
3715 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3716
3717 2021-03-06 Tom Tromey <tom@tromey.com>
3718
3719 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
3720 method.
3721 * dwarf2/read.c (section_is_p): Remove.
3722 (dwarf2_per_bfd::locate_sections)
3723 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
3724 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
3725 (dwarf2_locate_common_dwp_sections)
3726 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
3727 Update.
3728
3729 2021-03-06 Tom Tromey <tom@tromey.com>
3730
3731 * xcoffread.c: Include sect-names.h.
3732 * symfile.h (struct dwarf2_section_names, struct
3733 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
3734 * dwarf2/sect-names.h: New file, from symfile.h.
3735 * dwarf2/read.c: Include sect-names.h.
3736
3737 2021-03-06 Tom Tromey <tom@tromey.com>
3738
3739 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
3740 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
3741 (abbrev_table::read): Update.
3742 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
3743 (struct abbrev_info): Reformat.
3744 <attrs>: Now an array.
3745 (struct abbrev_table) <alloc_abbrev>: Remove.
3746
3747 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
3748
3749 * ctfread.c (ctf_psymtab_add_enums): New function.
3750 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
3751
3752 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
3753
3754 * ctfread.c (read_func_kind_type): Set up function arguments.
3755
3756 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3757 Andrew Burgess <andrew.burgess@embecosm.com>
3758
3759 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
3760 includes.
3761 (riscv_csrset): New static global.
3762 (riscv_update_csrmap): New function.
3763 (riscv_iterate_over_regset_sections): Process CSRs.
3764
3765 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3766
3767 * riscv-tdep.c (riscv_feature_name_csr): Define.
3768 (riscv_feature_name_cpu): Define.
3769 (riscv_feature_name_fpu): Define.
3770 (riscv_feature_name_virtual): Define.
3771 (riscv_xreg_feature): Use riscv_feature_name_cpu.
3772 (riscv_freg_feature): Use riscv_feature_name_fpu.
3773 (riscv_virtual_feature): Use riscv_feature_name_virtual.
3774 (riscv_csr_feature): Use riscv_feature_name_csr.
3775 * riscv-tdep.h (riscv_feature_name_csr): Declare.
3776
3777 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3778 Craig Blackmore <craig.blackmore@embecosm.com>
3779
3780 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
3781 (ALLDEPFILES): Add riscv-none-tdep.c.
3782 * configure: Regenerate.
3783 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
3784 support.
3785 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
3786 * elf-none-tdep.c: New file.
3787 * elf-none-tdep.h: New file.
3788 * riscv-none-tdep.c: New file.
3789
3790 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3791 Andrew Burgess <andrew.burgess@embecosm.com>
3792
3793 * corelow.c: Add 'xml-tdesc.h' include.
3794 (core_target::read_description): Load the target description from
3795 the core file when possible.
3796 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
3797 note.
3798 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
3799 (gcore_elf_make_tdesc_note): New function.
3800 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
3801 * linux-tdep.c (linux_make_corefile_notes): Add target description
3802 note.
3803
3804 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3805
3806 * Makefile.in (SFILES): Add gcore-elf.c.
3807 (HFILES_NO_SRCDIR): Add gcore-elf.h
3808 * configure: Regenerate.
3809 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
3810 support.
3811 * fbsd-tdep.c: Add 'gcore-elf.h' include.
3812 (struct fbsd_collect_regset_section_cb_data): Delete.
3813 (fbsd_collect_regset_section_cb): Delete.
3814 (fbsd_collect_thread_registers): Delete.
3815 (struct fbsd_corefile_thread_data): Delete.
3816 (fbsd_corefile_thread): Delete.
3817 (fbsd_make_corefile_notes): Call
3818 gcore_elf_build_thread_register_notes instead of the now deleted
3819 FreeBSD code.
3820 * gcore-elf.c: New file, the content was moved here from
3821 linux-tdep.c, functions were renamed and given minor cleanup.
3822 * gcore-elf.h: New file.
3823 * gcore.c (gcore_find_signalled_thread): Moved here from
3824 linux-tdep.c and given a new name. Minor cleanups.
3825 * gcore.h (gcore_find_signalled_thread): Declare.
3826 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
3827 (struct linux_collect_regset_section_cb_data): Delete.
3828 (linux_collect_regset_section_cb): Delete.
3829 (linux_collect_thread_registers): Delete.
3830 (linux_corefile_thread): Call
3831 gcore_elf_build_thread_register_notes.
3832 (find_signalled_thread): Delete.
3833 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
3834
3835 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
3836
3837 PR gdb/27147
3838 * sparc-nat.h (sparc_fetch_inferior_registers): Add
3839 process_stratum_target parameter,
3840 sparc_store_inferior_registers): update callers.
3841 * sparc-nat.c (sparc_fetch_inferior_registers,
3842 sparc_store_inferior_registers): Add process_stratum_target
3843 parameter. Switch current thread before calling
3844 sparc_supply_gregset / sparc_collect_rwindow.
3845 (sparc_store_inferior_registers): Likewise.
3846 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
3847 (sparc32obsd_collect_uthread): Likewise.
3848 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
3849 Add assertion.
3850 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
3851 sparc64obsd_supply_uthread): Add assertion.
3852
3853 2021-03-04 Tom Tromey <tromey@adacore.com>
3854
3855 * ada-lang.c (struct match_data) <found_sym>: Now bool.
3856 (aux_add_nonlocal_symbols): Update.
3857 (ada_add_block_symbols): Change "found_sym" to bool.
3858
3859 2021-03-03 Tom Tromey <tromey@adacore.com>
3860
3861 * ada-lang.c (ada_resolve_function): Update comment.
3862 (is_nonfunction, add_symbols_from_enclosing_procs)
3863 (remove_extra_symbols): Likewise.
3864 (struct match_data): Add constructor, initializers.
3865 (add_nonlocal_symbols): Remove memset.
3866 (aux_add_nonlocal_symbols): Update comment.
3867 (ada_add_block_renamings, add_nonlocal_symbols)
3868 (ada_add_all_symbols): Likewise.
3869 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
3870
3871 2021-03-02 Tom Tromey <tromey@adacore.com>
3872
3873 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
3874 (cast_to_gnat_encoded_fixed_point_type): Remove.
3875 (ada_value_cast, ada_evaluate_subexp): Update.
3876 (gnat_encoded_fixed_point_type_info)
3877 (ada_is_gnat_encoded_fixed_point_type)
3878 (gnat_encoded_fixed_point_delta)
3879 (gnat_encoded_fixed_point_scaling_factor): Remove.
3880 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
3881 (gnat_encoded_fixed_point_delta)
3882 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
3883 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
3884 (ada_print_type): Update.
3885 * ada-valprint.c (ada_value_print_num): Update.
3886 * dwarf2/read.c (ada_get_gnat_encoded_number)
3887 (ada_get_gnat_encoded_ratio): New functions.
3888 (finish_fixed_point_type): Use them. Add parameters.
3889 (GNAT_FIXED_POINT_SUFFIX): New define.
3890 (gnat_encoded_fixed_point_type_info): New function.
3891 (read_base_type): Handle gnat encodings.
3892
3893 2021-03-02 Tom Tromey <tromey@adacore.com>
3894
3895 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
3896 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
3897 std::string.
3898 (GROW_VECT): Remove.
3899 (grow_vect): Remove.
3900
3901 2021-03-02 Tom Tromey <tromey@adacore.com>
3902
3903 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
3904 * ada-lang.c (resolve_subexp): Update.
3905 (ada_resolve_function): Accept a vector.
3906 (is_nonfunction, add_defn_to_vec)
3907 (add_symbols_from_enclosing_procs): Likewise.
3908 (num_defns_collected, defns_collected): Remove.
3909 (remove_extra_symbols): Return a vector.
3910 (remove_irrelevant_renamings): Return void.
3911 (ada_add_local_symbols): Accept a vector.
3912 (struct match_data) <obstackp>: Remove.
3913 <resultp>: New member.
3914 (aux_add_nonlocal_symbols): Update.
3915 (ada_add_block_renamings, add_nonlocal_symbols)
3916 (ada_add_all_symbols): Accept a vector.
3917 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
3918 vector.
3919 (ada_lookup_symbol): Update.
3920 (ada_add_block_symbols): Accept a vector.
3921 (get_var_value, iterate_over_symbols): Update.
3922 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
3923 Update.
3924
3925 2021-03-02 Tom Tromey <tromey@adacore.com>
3926
3927 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
3928
3929 2021-03-02 Tom Tromey <tromey@adacore.com>
3930
3931 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
3932 auto_obstack.
3933 <root>: Initialize.
3934 (ada_pspace_data): Remove destructor.
3935 <sym_cache>: Now a unique_ptr.
3936 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
3937 (ada_get_symbol_cache): Use 'new'.
3938 (ada_clear_symbol_cache): Rewrite.
3939
3940 2021-03-02 Tom Tromey <tromey@adacore.com>
3941
3942 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
3943 is null.
3944
3945 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
3946
3947 PR gdb/27393
3948 * source.c (add_path): Skip empty dirnames.
3949
3950 2021-02-25 Kevin Buettner <kevinb@redhat.com>
3951
3952 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
3953 include order for <sys/ptrace.h> and <asm/ptrace.h>.
3954
3955 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3956
3957 PR gdb/26861
3958 * target.c (target_mourn_inferior): Only compare pids in
3959 target_mourn_inferior.
3960
3961 2021-02-25 Jan Matyas <jmatyas@codasip.com>
3962
3963 PR gdb/26819
3964 * remote.c (remote_target::start_remote): Ensure the single
3965 thread, automatically added for remote targets without the
3966 concept of threading, is initially in set to the "resumed"
3967 state.
3968 * remote.c (remote_target::add_current_inferior_and_thread):
3969 Add return value - return the main thread.
3970
3971 2021-02-25 Jan Vrany <jan.vrany@labware.com>
3972
3973 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
3974 (mi_tsv_created): Likewise.
3975 (mi_tsv_deleted): Likewise.
3976
3977 2021-02-25 Tom de Vries <tdevries@suse.de>
3978
3979 PR symtab/27354
3980 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
3981 section_kind for &dwo_file->sections.info.
3982
3983 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3984
3985 PR fortran/26155
3986 * f-lang.c (fortran_argument_convert): Delete declaration.
3987 (fortran_prepare_argument): New function.
3988 (evaluate_subexp_f): Move logic to new function
3989 fortran_prepare_argument.
3990
3991 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3992
3993 * f-exp.y (f77_keywords): Add 'associated'.
3994 * f-lang.c (fortran_associated): New function.
3995 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
3996 (operator_length_f): Likewise.
3997 (print_unop_or_binop_subexp_f): New function.
3998 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
3999 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4000 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4001 (operator_check_f): Likewise.
4002 * std-operator.def: Add FORTRAN_ASSOCIATED.
4003
4004 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4005
4006 * f-exp.y (fortran_operators): Add ".xor.".
4007
4008 2021-02-24 Tom de Vries <tdevries@suse.de>
4009
4010 PR symtab/27336
4011 * dwarf2/attribute.c (attribute::form_is_signed): New function
4012 factored out of ...
4013 * dwarf2/attribute.h (attribute::as_signed): ... here.
4014 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4015 (attribute::form_is_signed): Declare.
4016 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4017 for DW_AT_decl_file.
4018
4019 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4020
4021 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4022 order for <sys/ptrace.h> and <asm/ptrace.h>.
4023
4024 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4025
4026 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4027 <sys/ptrace.h>.
4028
4029 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4030
4031 * exec.c (set_section_command): Move variable declarations into
4032 the function body, and use std::string instead of a fixed size
4033 buffer.
4034
4035 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4036
4037 * exec.c (exec_target::get_section_table): Delete member function.
4038 (section_table_read_available_memory): Use current_top_target, not
4039 just the exec_ops target.
4040 * target-delegates.c: Regenerate.
4041 * target.c (default_get_section_table): New function.
4042 * target.h (target_ops::get_section_table): Change default
4043 behaviour to call default_get_section_table.
4044 (default_get_section_table): Declare.
4045
4046 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4047
4048 * exec.c (exec_target::close): Call new clear_target_sections
4049 function.
4050 (program_space::add_target_sections): Update name of member
4051 variable.
4052 (program_space::add_target_sections): Update name of member
4053 variable.
4054 (program_space::remove_target_sections): Likewise.
4055 (exec_one_fork): Use new target_sections member function.
4056 (exec_target::get_section_table): Likewise.
4057 (exec_target::files_info): Likewise.
4058 (set_section_command): Likewise.
4059 (exec_set_section_address): Likewise.
4060 (exec_target::has_memory): Use new target_sections member
4061 function.
4062 * progspace.h (program_space::clear_target_sections): New member
4063 function.
4064 (program_space::target_sections): Rename member variable to
4065 m_target_sections, replace with a new member function.
4066 (program_space::m_target_sections): New member variable.
4067 * solib-dsbt.c (scan_dyntag): Use new member function.
4068 * solib-svr4.c (scan_dyntag): Likewise.
4069
4070 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4071
4072 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4073 return type const.
4074 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4075 (section_table_read_available_memory): Make local const.
4076 (exec_target::xfer_partial): Make local const.
4077 (print_section_info): Make parameter const.
4078 * gdb/exec.h (print_section_info): Likewise.
4079 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4080 const.
4081 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4082 Likewise.
4083 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4084 Likewise.
4085 * gdb/s390-tdep.c (s390_load): Likewise.
4086 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4087 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4088 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4089 Rename to...
4090 (target_debug_print_const_target_section_table_p): ...this.
4091 * gdb/target-delegates.c: Regenerate.
4092 * gdb/target.c (target_get_section_table): Make return type const.
4093 (target_section_by_addr): Likewise. Also make some locals const.
4094 (memory_xfer_partial_1): Make some locals const.
4095 * gdb/target.h (struct target_ops) <get_section_table>: Make
4096 return type const.
4097 (target_section_by_addr): Likewise.
4098 (target_get_section_table): Likewise.
4099
4100 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4101
4102 * NEWS: Mention new 'maint info target-sections' command.
4103 * maint.c (maintenance_info_target_sections): New function.
4104 (_initialize_maint_cmds): Register new command.
4105
4106 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4107
4108 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
4109 (riscv_features_from_bfd): ...this. Change parameter type to
4110 'bfd*', and update as required.
4111 (riscv_find_default_target_description): Update call to
4112 riscv_features_from_bfd. Select a default xlen based on
4113 info.bfd_arch_info.
4114 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
4115
4116 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4117
4118 * eval.c (evaluate_subexp_standard): Call value_ind for points to
4119 dynamic types in UNOP_IND.
4120
4121 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4122
4123 PR gdb/26828
4124 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
4125 Instantiate queue.
4126 (~dwarf2_queue_guard): Clear queue.
4127 (queue_comp_unit): Assert that queue is
4128 instantiated.
4129 (process_queue): Adjust.
4130 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
4131
4132 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4133
4134 PR gdb/26828
4135 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
4136 to decide whether or not to enqueue it for expansion.
4137 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
4138 after calling maybe_queue_comp_unit.
4139
4140 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4141
4142 * linux-nat.c (linux_nat_filter_event): Return void.
4143
4144 2021-02-22 Tom Tromey <tromey@adacore.com>
4145
4146 * solib-svr4.c (enable_break): Update.
4147 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
4148 type.
4149 (target_bfd_reopen): Change parameter type.
4150 * bfd-target.h (target_bfd_reopen): Change parameter type.
4151
4152 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4153
4154 * thread.c (add_thread_silent): Add assert.
4155 (find_thread_ptid): Add assert.
4156
4157 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4158
4159 PR gdb/27435
4160 * inf-ptrace.c (struct target_unpusher): Move to target.h.
4161 (target_unpush_up): Likewise.
4162 * procfs.c (procfs_target::attach): Push target early. Use
4163 target_unpush_up to unpush target in case of error.
4164 * target.h (struct target_unpusher): Move here.
4165 (target_unpush_up): Likewise.
4166
4167 2021-02-19 Kevin Buettner <kevinb@redhat.com>
4168
4169 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
4170 (which in turn includes <gnulib/config.h>) before include
4171 of <signal.h>.
4172
4173 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
4174
4175 PR 27158
4176 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
4177 (decode_j_type_insn): Likewise.
4178 (decode_cj_type_insn): Likewise.
4179 (decode_b_type_insn): Likewise.
4180 (decode): Likewise.
4181
4182 2021-02-18 Tom Tromey <tom@tromey.com>
4183
4184 * expression.h (struct expression) <evaluate>: Declare method.
4185 * eval.c (evaluate_subexp): Simplify.
4186 (expression::evaluate): New method.
4187 (evaluate_expression, evaluate_type): Use expression::evaluate.
4188
4189 2021-02-17 Kevin Buettner <kevinb@redhat.com>
4190
4191 * ada-lang.c (ada_fold_name): Check for non-empty string prior
4192 to accessing it.
4193 (ada_lookup_name_info): Likewise.
4194
4195 2021-02-13 Mike Frysinger <vapier@gentoo.org>
4196
4197 * aclocal.m4: Regenerate.
4198
4199 2021-02-12 Tom de Vries <tdevries@suse.de>
4200
4201 PR threads/26228
4202 * linux-nat.c (lin_thread_get_thread_signals): Remove.
4203 (lin_thread_signals): New static var.
4204 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4205 New function.
4206 * linux-nat.h (lin_thread_get_thread_signals): Remove.
4207 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4208 Declare.
4209 * linux-thread-db.c (check_thread_signals): Use
4210 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
4211
4212 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4213
4214 * f-exp.y (f77_keywords): Add allocated.
4215 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
4216 (operator_length_f): Likewise.
4217 (print_subexp_f): Likewise.
4218 (dump_subexp_body_f): Likewise.
4219 (operator_check_f): Likewise.
4220 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
4221
4222 2021-02-11 Tom de Vries <tdevries@suse.de>
4223
4224 PR symtab/27353
4225 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
4226 Return true for DW_FORM_strx.
4227
4228 2021-02-11 Tom Tromey <tromey@adacore.com>
4229
4230 PR gdb/27383:
4231 * parse.c (write_exp_symbol_reference): Write sym.block.
4232
4233 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4234
4235 * NEWS: Mention changes to 'maint info sections'.
4236 * maint.c (match_substring): Return a bool, fix whitespace issue.
4237 (struct single_bfd_flag_info): New struct.
4238 (bfd_flag_info): New static global.
4239 (match_bfd_flags): Return a bool, use bfd_flag_info.
4240 (print_bfd_flags): Use bfd_flag_info.
4241 (maint_print_section_info): Delete trailing whitespace.
4242 (struct maint_info_sections_opts): New struct.
4243 (maint_info_sections_option_defs): New static global.
4244 (maint_info_sections_completer): New function.
4245 (maintenance_info_sections): Use option parsing mechanism.
4246 (_initialize_maint_cmds): Update command help text for 'maint info
4247 sections' and register a command completer.
4248
4249 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4250
4251 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
4252 functionality merged into...
4253 (maint_print_all_sections): ...this new function.
4254 (maintenance_info_sections): Make use of maint_print_all_sections,
4255 allow all objects to be printed even where there's no executable.
4256
4257 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4258
4259 * breakpoint.c (resolve_sal_pc): Make use of
4260 bound_minimal_symbol::obj_section.
4261 * maint.c (maintenance_translate_address): Likewise.
4262 * minsyms.c (minimal_symbol_upper_bound): Likewise.
4263 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
4264 member function.
4265 * printcmd.c (info_address_command): Make use of
4266 bound_minimal_symbol::obj_section.
4267
4268 2021-02-11 Alan Modra <amodra@gmail.com>
4269
4270 * arm-symbian-tdep.c: Delete.
4271 * NEWS: Mention arm-symbian removal.
4272 * Makefile.in: Remove arm-symbian-tdep entries.
4273 * configure.tgt: Remove arm*-*-symbianelf*.
4274 * doc/gdb.texinfo: Remove mention of SymbianOS.
4275 * osabi.c (gdb_osabi_names): Remove "Symbian".
4276 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
4277 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
4278 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
4279 handling.
4280 * testsuite/gdb.base/dup-sect.exp: Likewise.
4281 * testsuite/gdb.base/long_long.exp: Likewise.
4282 * testsuite/gdb.base/solib-weak.exp: Likewise.
4283 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
4284 * testsuite/gdb.python/py-section-script.exp: Likewise.
4285 * testsuite/lib/dwarf.exp: Likewise.
4286 * testsuite/lib/gdb.exp: Likewise.
4287
4288 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4289
4290 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
4291 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
4292 (one_or_two_args): New pattern.
4293 (f77_keywords): Add lbound and ubound.
4294 * f-lang.c (fortran_bounds_all_dims): New function.
4295 (fortran_bounds_for_dimension): New function.
4296 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
4297 (operator_length_f): Likewise.
4298 (print_subexp_f): Likewise.
4299 (dump_subexp_body_f): Likewise.
4300 (operator_check_f): Likewise.
4301 * std-operator.def (FORTRAN_LBOUND): Define.
4302 (FORTRAN_UBOUND): Define.
4303
4304 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4305
4306 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
4307 and set_section_index member functions where appropriate.
4308 * coffread.c (coff_symtab_read): Likewise.
4309 (process_coff_symbol): Likewise.
4310 * ctfread.c (set_symbol_address): Likewise.
4311 * dwarf2/read.c (add_partial_symbol): Likewise.
4312 (var_decode_location): Likewise.
4313 * language.c: Likewise.
4314 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
4315 (compact_minimal_symbols): Likewise.
4316 (minimal_symbol_upper_bound): Likewise.
4317 * objfiles.c (relocate_one_symbol): Likewise.
4318 * psympriv.h (partial_symbol::obj_section): Likewise.
4319 (partial_symbol::address): Likewise.
4320 * psymtab.c (partial_symtab::add_psymbol): Likewise.
4321 * stabsread.c (scan_file_globals): Likewise.
4322 * symmisc.c (dump_msymbols): Likewise.
4323 * symtab.c (general_symbol_info::obj_section): Likewise.
4324 (fixup_section): Likewise.
4325 (get_msymbol_address): Likewise.
4326 * symtab.h (general_symbol_info::section): Rename to...
4327 (general_symbol_info::m_section): ...this.
4328 (general_symbol_info::set_section_index): New member function.
4329 (general_symbol_info::section_index): Likewise.
4330 (SYMBOL_SECTION): Delete.
4331 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
4332 set_section_index member functions where appropriate.
4333 (MSYMBOL_SECTION): Delete.
4334 (symbol::symbol): Update to initialize 'm_section'.
4335 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
4336 (process_xcoff_symbol): Likewise.
4337
4338 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4339
4340 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
4341 MSYMBOL_OBJ_SECTION.
4342 * findvar.c (language_defn::read_var_value): Likewise.
4343 * infcmd.c (jump_command): Likewise.
4344 * linespec.c (minsym_found): Likewise.
4345 * maint.c (maintenance_translate_address): Likewise.
4346 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
4347 (minimal_symbol_upper_bound): Likewise.
4348 * parse.c (find_minsym_type_and_address): Likewise.
4349 (operator_check_standard): Likewise.
4350 * printcmd.c (info_address_command): Likewise.
4351 * symmisc.c (dump_msymbols): Likewise.
4352 (print_symbol): Likewise.
4353 * symtab.c (general_symbol_info::obj_section): Define new
4354 function.
4355 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
4356 (find_pc_sect_compunit_symtab): Likewise.
4357 (find_function_start_sal): Likewise.
4358 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
4359 MSYMBOL_OBJ_SECTION.
4360 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
4361 function.
4362 (SYMBOL_OBJ_SECTION): Delete.
4363 (MSYMBOL_OBJ_SECTION): Delete.
4364
4365 2021-02-09 Tom Tromey <tom@tromey.com>
4366
4367 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
4368
4369 2021-02-09 Tom de Vries <tdevries@suse.de>
4370
4371 PR symtab/27341
4372 * dwarf2/read.c (read_array_type): Return NULL when not being able to
4373 construct an array type. Add assert to ensure that element_type is
4374 not being modified.
4375
4376 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4377
4378 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
4379 (gcore_collect_regset_section_cb): Delete.
4380 (gcore_collect_thread_registers): Delete.
4381 (gcore_build_thread_register_notes): Delete.
4382 (gcore_find_signalled_thread): Delete.
4383 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
4384 'gdbarch' and 'thread_info' declarations.
4385 (gcore_build_thread_register_notes): Delete declaration.
4386 (gcore_find_signalled_thread): Likewise.
4387 * fbsd-tdep.c: Remove 'gcore.h' include.
4388 (struct fbsd_collect_regset_section_cb_data): New struct.
4389 (fbsd_collect_regset_section_cb): New function.
4390 (fbsd_collect_thread_registers): New function.
4391 (struct fbsd_corefile_thread_data): New struct.
4392 (fbsd_corefile_thread): New function.
4393 (fbsd_make_corefile_notes): Call FreeBSD specific code.
4394 * linux-tdep.c: Remove 'gcore.h' include.
4395 (struct linux_collect_regset_section_cb_data): New struct.
4396 (linux_collect_regset_section_cb): New function.
4397 (linux_collect_thread_registers): New function.
4398 (linux_corefile_thread): Call Linux specific code.
4399 (find_signalled_thread): New function.
4400 (linux_make_corefile_notes): Call find_signalled_thread.
4401
4402 2021-02-09 Tom Tromey <tromey@adacore.com>
4403
4404 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
4405 not_lval value.
4406 * value.c (value_contents_copy_raw): Now static.
4407 * value.h (value_contents_copy_raw): Don't declare.
4408
4409 2021-02-09 Tom Tromey <tromey@adacore.com>
4410
4411 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
4412 fields.
4413
4414 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
4415
4416 PR tdep/27369
4417 * arc-linux-tdep.c (handle_atomic_sequence): New.
4418 (arc_linux_software_single_step): Call handle_atomic_sequence().
4419
4420 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4421
4422 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
4423 function.
4424 (REQUIRE_WINDOW): Call is_valid member function.
4425 (REQUIRE_WINDOW_FOR_SETTER): New define.
4426 (gdbpy_tui_is_valid): Call is_valid member function.
4427 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
4428 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
4429 tui_active too.
4430 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
4431 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
4432 the function.
4433
4434 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4435
4436 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
4437 for the title is not nullptr.
4438
4439 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4440
4441 * tui-layout.c (saved_tui_windows): Delete.
4442 (tui_apply_current_layout): Don't make use of saved_tui_windows,
4443 call new get_windows member function instead.
4444 (tui_get_window_by_name): Check in tui_windows.
4445 (tui_layout_window::apply): Don't add to tui_windows.
4446 * tui-layout.h (tui_layout_base::get_windows): New member function.
4447 (tui_layout_window::get_windows): Likewise.
4448 (tui_layout_split::get_windows): Likewise.
4449
4450 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4451
4452 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
4453 of the window objects.
4454
4455 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4456
4457 * python/python.c (gdbpy_print_stack): Reformat an error message.
4458
4459 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4460
4461 * tui/tui-interp.c (tui_command_line_handler): New function.
4462 (tui_interp::resume): Register tui_command_line_handler as the
4463 input_handler.
4464 * tui/tui-io.c (tui_inject_newline_into_command_window): New
4465 function.
4466 (tui_getc_1): Delete handling of '\n' and '\r'.
4467 * tui-io.h (tui_inject_newline_into_command_window): Declare.
4468
4469 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4470
4471 * tui/tui-regs.c (tui_data_window::display_registers_from):
4472 Mark invisible register sub windows.
4473 (tui_data_window::check_register_values): Ignore invisible
4474 register sub windows.
4475
4476 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4477
4478 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
4479 n_spaces with a negative value.
4480
4481 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4482
4483 * tui/tui-regs.c (tui_data_window::display_registers_from):
4484 Add refresh_window call.
4485
4486 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4487
4488 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
4489
4490 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
4491
4492 * symmisc.c (std_in, std_out, std_err): Remove.
4493 (_initialize_symmisc): Don't set std_in, std_out and std_err.
4494
4495 2021-02-05 Tom de Vries <tdevries@suse.de>
4496
4497 PR breakpoints/27330
4498 * breakpoint.c (create_exception_master_breakpoint): Handle case that
4499 glibc object file has debug info.
4500
4501 2021-02-05 Tom de Vries <tdevries@suse.de>
4502
4503 PR symtab/27333
4504 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
4505
4506 2021-02-05 Tom de Vries <tdevries@suse.de>
4507
4508 PR breakpoints/27313
4509 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
4510 syscall numbers.
4511
4512 2021-02-05 Tom Tromey <tom@tromey.com>
4513
4514 * compile/compile-c-support.c (get_compile_context)
4515 (c_get_compile_context, cplus_get_compile_context): Change return
4516 type.
4517 * language.c (language_defn::get_compile_instance): New method.
4518 * language.h (language_defn::get_compile_instance): Change return
4519 type. No longer inline.
4520 * c-lang.c (c_language::get_compile_instance): Change return type.
4521 (cplus_language::get_compile_instance): Change return type.
4522 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
4523 Change return type.
4524 * compile/compile.c (compile_to_object): Update.
4525
4526 2021-02-05 Tom Tromey <tom@tromey.com>
4527
4528 * parser-defs.h (write_exp_symbol_reference): Declare.
4529 * parse.c (write_exp_symbol_reference): New function.
4530 * p-exp.y (variable): Use write_exp_symbol_reference.
4531 * m2-exp.y (variable): Use write_exp_symbol_reference.
4532 * f-exp.y (variable): Use write_exp_symbol_reference.
4533 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
4534 * c-exp.y (variable): Use write_exp_symbol_reference.
4535
4536 2021-02-05 Tom de Vries <tdevries@suse.de>
4537
4538 PR exp/27265
4539 * valarith.c (complex_binop): Throw an error if complex type can't
4540 be created.
4541
4542 2021-02-05 Tom de Vries <tdevries@suse.de>
4543
4544 PR symtab/27307
4545 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
4546 return.
4547
4548 2021-02-05 Tom de Vries <tdevries@suse.de>
4549
4550 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
4551
4552 2021-02-04 Mike Frysinger <vapier@gentoo.org>
4553
4554 * configure.tgt (riscv*-*-*): Set gdb_sim.
4555
4556 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
4557
4558 * target.c (target_is_non_stop_p): Return bool.
4559 * target.h (target_is_non_stop_p): Return bool.
4560
4561 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4562
4563 * record-full.c (record_full_async_inferior_event_handler):
4564 Don't clear async event handler.
4565 (record_full_base_target::wait): Clear async event handler at
4566 beginning.
4567
4568 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4569
4570 * record-btrace.c (record_btrace_handle_async_inferior_event):
4571 Don't clear async event handler.
4572 (record_btrace_target::wait): Clear async event handler at
4573 beginning.
4574
4575 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4576
4577 * remote.c (remote_target::wait): Clear async event handler at
4578 beginning, mark if needed at the end.
4579 (remote_async_inferior_event_handler): Don't set or clear async
4580 event handler.
4581
4582 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4583
4584 * async-event.h (async_event_handler_func): Add documentation.
4585 * async-event.c (check_async_event_handlers): Don't clear
4586 async_event_handler ready flag.
4587 * infrun.c (infrun_async_inferior_event_handler): Clear ready
4588 flag.
4589 * record-btrace.c (record_btrace_handle_async_inferior_event):
4590 Likewise.
4591 * record-full.c (record_full_async_inferior_event_handler):
4592 Likewise.
4593 * remote-notif.c (remote_async_get_pending_events_handler):
4594 Likewise.
4595 * remote.c (remote_async_inferior_event_handler): Likewise.
4596
4597 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
4598
4599 * infrun.c (handle_inferior_event): Move stop_soon variable to
4600 inner scope.
4601
4602 2021-02-03 Pedro Alves <pedro@palves.net>
4603
4604 * infcmd.c (detach_command): Hold strong reference to target, and
4605 if all-stop on entry, restart threads on exit.
4606 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
4607 (restart_stepped_thread): ... this new function. Also handle
4608 trap_expected.
4609 (restart_after_all_stop_detach): New function.
4610 * infrun.h (restart_after_all_stop_detach): Declare.
4611
4612 2021-02-03 Pedro Alves <pedro@palves.net>
4613
4614 * infrun.c (struct step_over_info): Initialize fields.
4615 (prepare_for_detach): Handle ongoing in-line step over.
4616
4617 2021-02-03 Pedro Alves <pedro@palves.net>
4618
4619 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
4620 here...
4621 * remote.c (remote_target::remote_detach_1): ... and here ...
4622 * target.c (target_detach): ... instead of here.
4623 * target.h (target_ops::detach): Add comment.
4624
4625 2021-02-03 Pedro Alves <pedro@palves.net>
4626
4627 * infrun.c (struct wait_one_event): Move higher up.
4628 (prepare_for_detach): Abort in-progress displaced steps instead of
4629 letting them complete.
4630 (handle_one): If the inferior is detaching, don't add the thread
4631 back to the global step-over chain.
4632 (restart_threads): Don't restart threads if detaching.
4633 (handle_signal_stop): Remove inferior::detaching reference.
4634
4635 2021-02-03 Pedro Alves <pedro@palves.net>
4636
4637 * infrun.c (prepare_for_detach): Don't release scoped_restore
4638 before returning.
4639
4640 2021-02-03 Pedro Alves <pedro@palves.net>
4641
4642 * infrun.c (handle_one): New function, factored out from ...
4643 (stop_all_threads): ... here.
4644
4645 2021-02-03 Pedro Alves <pedro@palves.net>
4646
4647 * remote.c (remote_notif_stop_ack): Don't error out on
4648 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
4649 (remote_target::discard_pending_stop_replies): Don't delete
4650 in-flight notification; instead, clear its contents.
4651
4652 2021-02-03 Pedro Alves <pedro@palves.net>
4653
4654 * remote.c (extended_remote_target::attach): Set target async in
4655 the target-non-stop path too.
4656
4657 2021-02-03 Pedro Alves <pedro@palves.net>
4658
4659 PR gdb/27055
4660 * infrun.c (handle_signal_stop): Move main context_switch call
4661 earlier, before STOP_QUIETLY_NO_SIGSTOP.
4662
4663 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
4664
4665 * NEWS (Changed commands): Add entry for the behavior change of
4666 the inferior command.
4667 * inferior.c (inferior_command): When no argument is given to the
4668 inferior command, display info about the currently selected
4669 inferior.
4670
4671 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4672
4673 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
4674 a sect_offset.
4675 (read_attribute_reprocess): Adjust.
4676
4677 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4678
4679 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
4680 <gnu_ranges_base>: ... this...
4681 <rnglists_base>: ... and this.
4682 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
4683 <gnu_ranges_base>: ... this...
4684 <rnglists_base>: ... and this.
4685 (read_cutu_die_from_dwo): Adjust
4686 (dwarf2_get_pc_bounds): Adjust
4687 (dwarf2_record_block_ranges): Adjust.
4688 (read_full_die_1): Adjust
4689 (partial_die_info::read): Adjust.
4690 (read_rnglist_index): Adjust.
4691
4692 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4693
4694 PR gdb/26813
4695 * dwarf2/read.c (read_loclists_rnglists_header): Add
4696 header_offset parameter and use it.
4697 (read_loclist_index): Read header of the current contribution,
4698 not the one at the beginning of the section.
4699 (read_rnglist_index): Likewise.
4700
4701 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4702
4703 PR gdb/26813
4704 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
4705 requires_reprocessing flag.
4706 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
4707 DW_FORM_loclistx.
4708 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
4709 and DW_FORM_loclistx.
4710 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
4711 instead of set_address for DW_FORM_loclistx and
4712 DW_FORM_rnglistx.
4713
4714 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4715
4716 * dwarf2/read.c (read_loclist_index): Remove bound check for
4717 start of offset.
4718 (read_rnglist_index): Likewise.
4719
4720 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4721
4722 * dwarf2/read.c (read_loclist_index): Add bound check for the end
4723 of the offset.
4724
4725 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4726
4727 * dwarf2/read.c (read_rnglist_index): Fix bound check.
4728
4729 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4730
4731 * dwarf2/read.c (read_loclist_index): Change complaints into
4732 errors.
4733
4734 2021-02-02 Tom de Vries <tdevries@suse.de>
4735
4736 PR symtab/24620
4737 * dwarf2/index-write.c (write_one_signatured_type): Skip if
4738 psymtab == nullptr.
4739
4740 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
4741
4742 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
4743 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
4744 here from linux-tdep.c and given a new name. Minor cleanups.
4745 (gcore_collect_regset_section_cb): Likewise.
4746 (gcore_collect_thread_registers): Likewise.
4747 (gcore_build_thread_register_notes): Likewise.
4748 (gcore_find_signalled_thread): Likewise.
4749 * gcore.h (gcore_build_thread_register_notes): Declare.
4750 (gcore_find_signalled_thread): Declare.
4751 * fbsd-tdep.c: Add 'gcore.h' include.
4752 (struct fbsd_collect_regset_section_cb_data): Delete.
4753 (fbsd_collect_regset_section_cb): Delete.
4754 (fbsd_collect_thread_registers): Delete.
4755 (struct fbsd_corefile_thread_data): Delete.
4756 (fbsd_corefile_thread): Delete.
4757 (fbsd_make_corefile_notes): Call
4758 gcore_build_thread_register_notes instead of the now deleted
4759 FreeBSD code.
4760 * linux-tdep.c: Add 'gcore.h' include.
4761 (struct linux_collect_regset_section_cb_data): Delete.
4762 (linux_collect_regset_section_cb): Delete.
4763 (linux_collect_thread_registers): Delete.
4764 (linux_corefile_thread): Call
4765 gcore_build_thread_register_notes.
4766 (find_signalled_thread): Delete.
4767 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4768
4769 2021-01-29 Tom de Vries <tdevries@suse.de>
4770
4771 PR breakpoints/26063
4772 * infrun.c (process_event_stop_test): Reset
4773 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
4774 changed.
4775
4776 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4777
4778 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
4779 assert. Extend the header comment.
4780
4781 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4782
4783 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
4784 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
4785 * tui/tui-data.h (TUI_STATUS_WIN): Define.
4786 (tui_locator_win_info_ptr): Delete declaration.
4787 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
4788 (tui_disasm_window::set_contents): Fetch state from tui_location
4789 global.
4790 (tui_get_begin_asm_address): Likewise.
4791 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
4792 for locator window.
4793 (get_locator_window): Delete.
4794 (initialize_known_windows): Treat locator window just like all the
4795 rest.
4796 * tui/tui-source.c: Add 'tui/tui-location.h' include.
4797 (tui_source_window::set_contents): Fetch state from tui_location
4798 global.
4799 (tui_source_window::showing_source_p): Likewise.
4800 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
4801 (_locator): Delete.
4802 (tui_locator_win_info_ptr): Delete.
4803 (tui_locator_window::make_status_line): Fetch state from
4804 tui_location global.
4805 (tui_locator_window::rerender): Remove check of 'handle',
4806 reindent function body.
4807 (tui_locator_window::set_locator_fullname): Delete.
4808 (tui_locator_window::set_locator_info): Delete.
4809 (tui_update_locator_fullname): Delete.
4810 (tui_show_frame_info): Likewise.
4811 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
4812 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
4813 tui/tui-location.h and renamed to
4814 tui_location_tracker::set_location.
4815 (tui_locator_window::set_locator_fullname): Moved to
4816 tui/tui-location.h and renamed to
4817 tui_location_tracker::set_fullname.
4818 (tui_locator_window::full_name): Delete.
4819 (tui_locator_window::proc_name): Delete.
4820 (tui_locator_window::line_no): Delete.
4821 (tui_locator_window::addr): Delete.
4822 (tui_locator_window::gdbarch): Delete.
4823 (tui_update_locator_fullname): Delete declaration.
4824 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
4825 for locator window.
4826 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
4827 (tui_display_main): Call function on tui_location directly.
4828 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
4829 * tui/tui-location.c: New file.
4830 * tui/tui-location.h: New file.
4831
4832 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
4833
4834 * gdbtypes.h (get_type_arch): Rename to...
4835 (struct type) <arch>: ... this, update all users.
4836
4837 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
4838
4839 * gdbtypes.h (struct type) <arch>: Rename to...
4840 <arch_owner>: ... this, update all users.
4841 <objfile>: Rename to...
4842 <objfile_owner>: ... this, update all users.
4843
4844 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4845
4846 * gdbcmd.h (execute_command_to_string): Update comment.
4847 * top.c (execute_command_to_string): Update header comment.
4848
4849 2021-01-28 Tom de Vries <tdevries@suse.de>
4850
4851 PR breakpoints/27205
4852 * breakpoint.c (create_longjmp_master_breakpoint_probe)
4853 (create_longjmp_master_breakpoint_names): New function, factored out
4854 of ...
4855 (create_longjmp_master_breakpoint): ... here. Only try to install
4856 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
4857 breakpoint in libc.so failed.
4858
4859 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
4860
4861 PR gdb/27133
4862 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
4863 unique_ptr is released when the wrapped pointer is kept for later
4864 use.
4865
4866 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
4867
4868 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
4869 BLR and BR instructions.
4870 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
4871 (enum aarch64_masks): New.
4872
4873 2021-01-26 Tom Tromey <tromey@adacore.com>
4874
4875 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4876 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
4877 (windows_init_thread_list, windows_nat::handle_load_dll)
4878 (windows_nat::handle_unload_dll, windows_nat_target::resume)
4879 (windows_nat_target::resume)
4880 (windows_nat_target::get_windows_debug_event)
4881 (windows_nat_target::interrupt, windows_xfer_memory)
4882 (windows_nat_target::close): Update.
4883 * nat/windows-nat.c (DEBUG_EVENTS): Use
4884 debug_prefixed_printf_cond.
4885 (matching_pending_stop, fetch_pending_stop)
4886 (continue_last_debug_event): Update.
4887
4888 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
4889
4890 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
4891 elfcore_write_file_note.
4892
4893 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
4894
4895 * arc-tdep.c (arc_add_reggroups): New function.
4896 (arc_gdbarch_init): Call arc_add_reggroups.
4897
4898 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
4899
4900 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
4901
4902 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
4903 Simon Marchi <simon.marchi@polymtl.ca>
4904 Tom de Vries <tdevries@suse.de>
4905
4906 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
4907 DW_AT_ranges.
4908
4909 2021-01-25 Tom Tromey <tromey@adacore.com>
4910
4911 * dwarf2/read.c (get_mpz): New function.
4912 (get_dwarf2_rational_constant): Use it.
4913
4914 2021-01-25 Tom Tromey <tromey@adacore.com>
4915
4916 * ada-lang.c (resolve_subexp): Handle array context.
4917
4918 2021-01-23 Tom Tromey <tom@tromey.com>
4919
4920 PR compile/25575
4921 * compile/compile-loc2c.c (note_register): New function.
4922 (pushf_register_address, pushf_register): Use it.
4923
4924 2021-01-23 Tom Tromey <tom@tromey.com>
4925
4926 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
4927 Change type of "registers_used".
4928 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
4929 * dwarf2/loc.c (dwarf2_compile_property_to_c)
4930 (locexpr_generate_c_location, loclist_generate_c_location): Change
4931 type of "registers_used".
4932 * compile/compile.h (compile_dwarf_expr_to_c)
4933 (compile_dwarf_bounds_to_c): Update.
4934 * compile/compile-loc2c.c (pushf_register_address)
4935 (pushf_register, do_compile_dwarf_expr_to_c)
4936 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
4937 of "registers_used".
4938 * compile/compile-c.h (generate_c_for_variable_locations):
4939 Update.
4940 * compile/compile-c-symbols.c (generate_vla_size)
4941 (generate_c_for_for_one_variable): Change type of
4942 "registers_used".
4943 (generate_c_for_variable_locations): Return std::vector.
4944 * compile/compile-c-support.c (generate_register_struct): Change
4945 type of "registers_used".
4946 (compute): Update.
4947
4948 2021-01-23 Tom Tromey <tom@tromey.com>
4949
4950 * compile/compile-internal.h (class compile_instance)
4951 <set_arguments>: Change return type.
4952 * compile/compile.c (compile_to_object): Remove call to reset.
4953 (compile_instance::set_arguments): Change return type.
4954
4955 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
4956
4957 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
4958 * gdbtypes.h (struct type) <set_owner>: Add asserts.
4959
4960 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
4961
4962 * Makefile.in (SELFTESTS_SRCS): Add
4963 unittests/gdb_tilde_expand-selftests.c.
4964 * unittests/gdb_tilde_expand-selftests.c: New file.
4965
4966 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
4967
4968 PR cli/25956
4969 * NEWS: Mention new command.
4970 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
4971 (version_style): Define.
4972 (cli_style_option::cli_style_option): Add intensity parameter, and
4973 use as appropriate.
4974 (_initialize_cli_style): Register version style set/show commands.
4975 * cli/cli-style.h (cli_style_option): Add intensity parameter.
4976 (version_style): Declare.
4977 * top.c (print_gdb_version): Use version_stype, and styled_string
4978 to print the GDB version string.
4979
4980 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
4981
4982 * utils.c (emit_style_escape): Only emit an escape sequence if the
4983 requested style is different than the current applied style.
4984 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
4985 current applied_style.
4986 (fputs_styled): Remove is_default check.
4987 (fputs_styled_unfiltered): Likewise.
4988 (vfprintf_styled_no_gdbfmt): Likewise.
4989
4990 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4991
4992 * remote.h (remote_debug_printf): New.
4993 (remote_debug_printf_nofunc): New.
4994 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
4995 * remote.c: Use above macros throughout file.
4996
4997 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4998
4999 * remote.h (remote_debug): Change to bool.
5000 * remote.c (remote_debug): Change to bool.
5001 (_initialize_remote): Adjust.
5002
5003 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5004
5005 * target.h (remote_debug): Move to...
5006 * remote.h (remote_debug): ... here.
5007 * top.c (remote_debug): Move to...
5008 * remote.c (remote_debug): ... here.
5009 * remote-sim.c: Include remote.h.
5010
5011 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5012
5013 * cli/cli-cmds.c (show_remote_debug): Remove.
5014 (show_remote_timeout): Remove.
5015 (_initialize_cli_cmds): Don't register commands.
5016 * remote.c (show_remote_debug): Move here.
5017 (show_remote_timeout): Move here.
5018 (_initialize_remote): Register commands.
5019
5020 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5021
5022 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5023 type::objfile method instead.
5024
5025 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5026
5027 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5028 use the type::is_objfile_owned method.
5029
5030 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
5031
5032 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5033 (TYPE_OWNER): Remove.
5034 (TYPE_OBJFILE): Adjust.
5035 (struct main_type) <flag_objfile_owned>: Rename to...
5036 <m_flag_objfile_owned>: ... this.
5037 <owner>: Rename to...
5038 <m_owner>: ... this.
5039 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5040 methods.
5041 (TYPE_ALLOC): Adjust.
5042 * gdbtypes.c (alloc_type): Adjust.
5043 (alloc_type_arch): Adjust.
5044 (alloc_type_copy): Adjust.
5045 (get_type_arch): Adjust.
5046 (smash_type): Adjust.
5047 (lookup_array_range_type): Adjust.
5048 (recursive_dump_type): Adjust.
5049 (copy_type_recursive): Adjust.
5050 * compile/compile-c-types.c (convert_func): Adjust.
5051 (convert_type_basic): Adjust.
5052 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5053 Adjust.
5054 * language.c
5055 (language_arch_info::type_and_symbol::alloc_type_symbol):
5056 Adjust.
5057
5058 2021-01-21 Luis Machado <luis.machado@linaro.org>
5059
5060 * coffread.c (enter_linenos): Passing string to complaint.
5061 * valops.c (value_assign): Make array view.
5062
5063 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5064
5065 * auto-load.h (debug_auto_load): Move here.
5066 (auto_load_debug_printf): New.
5067 * auto-load.c: Use auto_load_debug_printf.
5068 (debug_auto_load): Move to header.
5069 * linux-thread-db.c (try_thread_db_load): Use
5070 auto_load_debug_printf.
5071 * main.c (captured_main_1): Likewise.
5072
5073 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5074
5075 * f-valprint.c (f77_array_offset_tbl): Remove.
5076
5077 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5078
5079 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5080
5081 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5082
5083 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5084 of gdb_select.
5085
5086 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
5087
5088 PR python/19151
5089 * python/py-breakpoint.c (bppy_get_location): Handle
5090 bp_hardware_breakpoint.
5091 (bppy_init): Likewise.
5092 (gdbpy_breakpoint_created): Likewise.
5093
5094 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5095
5096 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
5097
5098 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5099
5100 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
5101 (_initialize_gdb_bfd): Adjust.
5102
5103 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5104
5105 PR gdb/26828
5106 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
5107
5108 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5109
5110 * dwarf2/read.c (follow_die_offset): Add logging.
5111 (dwarf2_per_objfile::age_comp_units): Add logging.
5112
5113 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5114
5115 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
5116 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
5117 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
5118 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
5119 * arm-tdep.c (struct frame_unwind): Make static.
5120 * auto-load.c (auto_load_safe_path_vec): Make static.
5121 * csky-tdep.c (csky_stub_unwind): Make static.
5122 * gdbarch.c (gdbarch_data_registry): Make static.
5123 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
5124 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
5125 * i386-tdep.c (i386_frame_setup_skip_insns,
5126 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
5127 Make static.
5128 * infrun.c (observer_mode): Make static.
5129 * linux-nat.c (sigchld_action): Make static.
5130 * linux-thread-db.c (thread_db_list): Make static.
5131 * maint-test-options.c (maintenance_test_options_list):
5132 * mep-tdep.c (mep_csr_registers): Make static.
5133 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
5134 (stats): Make static.
5135 * nat/linux-osdata.c (struct osdata_type): Make static.
5136 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
5137 * progspace.c (last_program_space_num): Make static.
5138 * python/py-param.c (struct parm_constant): Remove struct type
5139 name.
5140 (parm_constants): Make static.
5141 * python/py-record-btrace.c (btpy_list_methods): Make static.
5142 * python/py-record.c (recpy_gap_type): Make static.
5143 * record.c (record_goto_cmdlist): Make static.
5144 * regcache.c (regcache_descr_handle): Make static.
5145 * registry.h (DEFINE_REGISTRY): Make definition static.
5146 * symmisc.c (std_in, std_out, std_err): Make static.
5147 * top.c (previous_saved_command_line): Make static.
5148 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
5149 static.
5150 * unittests/command-def-selftests.c (nr_duplicates,
5151 nr_invalid_prefixcmd, lists): Make static.
5152 * unittests/observable-selftests.c (test_notification): Make
5153 static.
5154 * unittests/optional/assignment/1.cc (counter): Make static.
5155 * unittests/optional/assignment/2.cc (counter): Make static.
5156 * unittests/optional/assignment/3.cc (counter): Make static.
5157 * unittests/optional/assignment/4.cc (counter): Make static.
5158 * unittests/optional/assignment/5.cc (counter): Make static.
5159 * unittests/optional/assignment/6.cc (counter): Make static.
5160
5161 2021-01-20 Joel Sherrill <joel@rtems.org>
5162
5163 PR gdb/27219
5164 * remote.c (struct remote_thread_info) <resume_state>: Rename
5165 to...
5166 <get_resume_state>: ... this.
5167 (remote_target::resume): Adjust.
5168 (remote_target::commit_resume): Adjust.
5169 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
5170
5171 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
5172 Tom Tromey <tom@tromey.com>
5173
5174 * stap-probe.c (stap_parse_single_operand): Handle '!'
5175 operator.
5176 (stap_parse_argument_conditionally): Likewise.
5177 Skip spaces after processing open-parenthesis sub-expression.
5178 (stap_parse_argument_1): Skip spaces after call to
5179 stap_parse_argument_conditionally.
5180 Handle case when right-side expression is a parenthesized
5181 sub-expression.
5182 Skip spaces after call to stap_parse_argument_1.
5183
5184 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
5185
5186 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
5187
5188 2021-01-19 Luis Machado <luis.machado@linaro.org>
5189
5190 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
5191 memory and save data.
5192 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
5193 (trad_frame_set_unknown, trad_frame_set_value_bytes)
5194 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5195 (trad_frame_value_bytes_p): Remove.
5196 (trad_frame_reset_saved_regs): Adjust documentation.
5197 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
5198 constructor and reset the state of the registers.
5199 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5200 (trad_frame_value_bytes_p, trad_frame_set_value)
5201 (trad_frame_set_realreg, trad_frame_set_addr)
5202 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
5203 (trad_frame_set_reg_realreg): Update to call member function.
5204 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
5205 (trad_frame_get_prev_register): Likewise.
5206
5207 * aarch64-tdep.c (aarch64_analyze_prologue)
5208 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
5209 (aarch64_prologue_prev_register): Update to use member functions.
5210 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
5211 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
5212 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
5213 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
5214 (arm_make_epilogue_frame_cache): Likewise.
5215 * avr-tdep.c (avr_frame_unwind_cache)
5216 (avr_frame_prev_register): Likewise.
5217 * cris-tdep.c (cris_scan_prologue): Likewise.
5218 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
5219 * frv-tdep.c (frv_analyze_prologue): Likewise.
5220 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
5221 * lm32-tdep.c (lm32_frame_cache): Likewise.
5222 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5223 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5224 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
5225 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
5226 (reset_saved_regs): Adjust to set realreg.
5227 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
5228 call member functions.
5229 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
5230 * s390-tdep.c (s390_prologue_frame_unwind_cache)
5231 (s390_backchain_frame_unwind_cache): Likewise.
5232 * score-tdep.c (score7_analyze_prologue)
5233 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
5234 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5235 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5236 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5237 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5238 * tilegx-tdep.c (tilegx_analyze_prologue)
5239 (tilegx_frame_cache): Likewise.
5240 * v850-tdep.c (v850_frame_cache): Likewise.
5241 * vax-tdep.c (vax_frame_cache): Likewise.
5242
5243 2021-01-19 Luis Machado <luis.machado@linaro.org>
5244
5245 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
5246 of buffer + length.
5247 (put_frame_register_bytes): Likewise.
5248 Adjust documentation.
5249 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
5250 (safe_frame_unwind_memory): Likewise.
5251 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
5252 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
5253 gdb::array_view.
5254 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
5255 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
5256 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
5257 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
5258 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
5259 * dwarf2/loc.c (rw_pieced_value): Likewise.
5260 * hppa-tdep.c (hppa_frame_cache): Likewise.
5261 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
5262 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
5263 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5264 (i386_linux_rt_sigtramp_start): Likewise.
5265 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
5266 * i386-tdep.c (i386_register_to_value): Likewise.
5267 * i387-tdep.c (i387_register_to_value): Likewise.
5268 * ia64-tdep.c (ia64_register_to_value): Likewise.
5269 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
5270 (m32r_linux_rt_sigtramp_start): Likewise.
5271 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
5272 * m68k-tdep.c (m68k_register_to_value): Likewise.
5273 * mips-tdep.c (mips_register_to_value)
5274 (mips_value_to_register): Likewise.
5275 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
5276 (ppcfbsd_sigtramp_frame_cache): Likewise.
5277 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
5278 (ppcobsd_sigtramp_frame_cache): Likewise.
5279 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
5280 (rs6000_register_to_value): Likewise.
5281 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5282 * tramp-frame.c (tramp_frame_start): Likewise.
5283 * valops.c (value_assign): Likewise.
5284
5285 2021-01-19 Luis Machado <luis.machado@linaro.org>
5286
5287 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
5288 array_view.
5289 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
5290 instead of buffer and size.
5291 (trad_frame_set_reg_value_bytes): Likewise.
5292 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
5293 (trad_frame_set_value_bytes): Likewise.
5294
5295 2021-01-18 Mike Frysinger <vapier@gentoo.org>
5296
5297 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
5298
5299 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
5300
5301 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
5302 (riscv_fbsd_gregset): Use riscv_supply_regset.
5303 (riscv_fbsd_fpregset): Likewise.
5304 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
5305 (riscv_linux_fregset): Likewise.
5306 * riscv-tdep.c (riscv_supply_regset): Define new function.
5307 * riscv-tdep.h (riscv_supply_regset): Declare new function.
5308
5309 2021-01-18 Tom de Vries <tdevries@suse.de>
5310
5311 PR tdep/27172
5312 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
5313 New macro.
5314 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
5315 for SEGV_BNDERR.
5316
5317 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5318
5319 * remote.c (class remote_target) <remote_hostio_send_command,
5320 remote_hostio_parse_result>: Constify parameter.
5321 (remote_hostio_parse_result): Likewise.
5322 (remote_target::remote_hostio_send_command): Adjust.
5323 (remote_target::remote_hostio_pread_vFile): Adjust.
5324 (remote_target::fileio_readlink): Adjust.
5325 (remote_target::fileio_fstat): Adjust.
5326
5327 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5328
5329 * remote.c (remote_target::start_remote): Move wait_status to
5330 narrower scope.
5331
5332 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5333
5334 * remote.c (class remote_target):
5335 <add_current_inferior_and_thread>: Constify parameter.
5336 (stop_reply_extract_thread): Likewise.
5337 (remote_target::get_current_thread): Likewise.
5338 (remote_target::add_current_inferior_and_thread): Likewise.
5339
5340 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5341
5342 * remote.c (class remote_target)
5343 <remote_unpack_thread_info_response,
5344 parse_threadlist_response>: Constify parameter and/or return
5345 value and or local variable.
5346 (stub_unpack_int): Likewise.
5347 (unpack_nibble): Likewise.
5348 (unpack_byte): Likewise.
5349 (unpack_int): Likewise.
5350 (unpack_string): Likewise.
5351 (unpack_threadid): Likewise.
5352 (remote_target::remote_unpack_thread_info_response): Likewise.
5353 (remote_target::parse_threadlist_response): Likewise.
5354
5355 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
5356
5357 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
5358
5359 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
5360
5361 * MAINTAINERS (Write After Approval): Add myself.
5362
5363 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5364
5365 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
5366 because is_trivially_default_constructible was first implemented with
5367 gcc-5.
5368
5369 2021-01-14 Tom de Vries <tdevries@suse.de>
5370
5371 PR breakpoints/27151
5372 * objfiles.h (in_plt_section): Handle .plt.sec.
5373
5374 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5375
5376 PR gdb/26819
5377 * remote.c
5378 (remote_target::select_thread_for_ambiguous_stop_reply): New
5379 member function.
5380 (remote_target::process_stop_reply): Call
5381 select_thread_for_ambiguous_stop_reply.
5382
5383 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5384
5385 * record-btrace.c (class record_btrace_target): Remove.
5386 (record_btrace_target::commit_resume): Remove.
5387 * record-full.c (class record_full_target): Remove.
5388 (record_full_target::commit_resume): Remove.
5389
5390 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5391
5392 * remote.c (enum class resume_state): New.
5393 (struct resumed_pending_vcont_info): New.
5394 (struct remote_thread_info) <resume_state, set_not_resumed,
5395 set_resumed_pending_vcont, resumed_pending_vcont_info,
5396 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
5397 New.
5398 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
5399 (remote_target::remote_add_thread): Adjust.
5400 (remote_target::process_initial_stop_replies): Adjust.
5401 (remote_target::resume): Adjust.
5402 (remote_target::commit_resume): Rely on state in
5403 remote_thread_info and not on tp->executing.
5404 (remote_target::process_stop_reply): Adjust.
5405
5406 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5407
5408 * arc-tdep.h (arc_debug_printf): New.
5409 * arc-tdep.c: Use arc_debug_printf.
5410 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
5411 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
5412 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
5413
5414 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5415
5416 * arc-tdep.h (arc_debug): Change type to bool.
5417 * arc-tdep.c (arc_debug): Change type to bool.
5418 (arc_analyze_prologue): Adjust.
5419 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
5420 * arc-linux-nat.c (ps_get_thread_area): Adjust.
5421
5422 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5423
5424 * auto-load.c (auto_load_objfile_script_1): Use bool.
5425 (execute_script_contents): Use bool.
5426
5427 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5428
5429 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
5430 comment here.
5431 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
5432 comment to header.
5433 * extension-priv.h (struct extension_language_script_ops)
5434 <auto_load_enabled>: Return bool.
5435 * extension.h (ext_lang_auto_load_enabled): Return bool, move
5436 comment here.
5437 * extension.c (ext_lang_auto_load_enabled): Return bool, move
5438 comment to header.
5439 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
5440 move comment here.
5441 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
5442 move comment to header.
5443 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
5444 move comment here.
5445 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
5446 move comment to header.
5447
5448 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5449
5450 * auto-load.h (file_is_auto_load_safe): Change return type to
5451 bool, move comment here.
5452 * auto-load.c (file_is_auto_load_safe): Change return type and
5453 advice_printed to bool. Move comment to header.
5454
5455 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5456
5457 * jit.c (jit_debug_printf): New, use throughout file.
5458
5459 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5460
5461 * infrun.c (normal_stop): Fix indentation.
5462
5463 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5464
5465 * top.h (readnow_symbol_files, readnever_symbol_files): Move
5466 declarations to ...
5467 * symfile.h: ... here.
5468 * symfile.c: Update doc.
5469
5470 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5471
5472 * target.h (baud_rate, serial_parity): Move declarations...
5473 * serial.h: ... here.
5474 * main.c: Include serial.h.
5475 * serial.c (baud_rate, serial_parity): Update doc.
5476
5477 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5478
5479 * top.c (pre_init_ui_hook): Remove.
5480
5481 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5482
5483 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
5484 (aarch64_vnv_type): Add "bf" type in h field of v registers.
5485 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
5486 * features/aarch64-fpu.xml: Add bfloat16 type.
5487
5488 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5489
5490 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
5491
5492 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5493
5494 * f-exp.y (dot_ops): Rename to...
5495 (fortran_operators): ...this. Add a header comment. Add symbol
5496 based operators.
5497 (yylex): Update to use fortran_operators not dot_ops. Remove
5498 special handling for '**', this is now included in
5499 fortran_operators.
5500
5501 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5502
5503 * arch/aarch64-insn.h (aarch64_debug_printf): New.
5504 * arch/aarch64-insn.c: Use aarch64_debug_printf.
5505 * aarch64-tdep.c: Use aarch64_debug_printf.
5506
5507 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5508
5509 * solib-aix.c (solib_aix_debug_printf): New, use throughout
5510 file.
5511
5512 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5513
5514 * jit.c (jit_debug): Change type to bool.
5515 (_initialize_jit): Adjust.
5516
5517 2021-01-09 Tom Tromey <tom@tromey.com>
5518
5519 PR compile/23672
5520 * compile/compile.c (compile_to_object): Avoid crash when
5521 osabi_triplet_regexp returns NULL.
5522
5523 2021-01-09 Tom Tromey <tom@tromey.com>
5524
5525 * tracepoint.h (class collection_list) <append_exp>: Take a
5526 std::string.
5527 * tracepoint.c (collection_list::append_exp): Take a std::string.
5528 (encode_actions_1): Update.
5529
5530 2021-01-08 Tom Tromey <tromey@adacore.com>
5531
5532 * parse.c (parse_expression): Add void_context_p parameter. Use
5533 parse_exp_in_context.
5534 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
5535 parse_expression.
5536 (print_command, call_command): Update.
5537 * expression.h (parse_expression): Add void_context_p parameter.
5538
5539 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5540
5541 * value.c (set_value_component_location): Adjust the VALUE_LVAL
5542 for internalvar components that have a dynamic location.
5543
5544 2021-01-08 Tom de Vries <tdevries@suse.de>
5545
5546 PR gdb/26881
5547 * breakpoint.c (create_exception_master_breakpoint_probe)
5548 (create_exception_master_breakpoint_hook): Factor out
5549 of ...
5550 (create_exception_master_breakpoint): ... here. Only try to install
5551 the master exception breakpoint in objfile.debug using the
5552 _Unwind_DebugHook method, if the install using probes in objfile
5553 failed.
5554
5555 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5556
5557 * f-lang.c (fortran_value_subarray): Call value_from_component.
5558
5559 2021-01-07 Mike Frysinger <vapier@gentoo.org>
5560
5561 * remote-sim.c: Include memory-map.h.
5562 (gdbsim_target): Define memory_map override.
5563 (gdbsim_target::memory_map): Define.
5564
5565 2021-01-07 Tom Tromey <tromey@adacore.com>
5566
5567 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
5568
5569 2021-01-07 Tom Tromey <tromey@adacore.com>
5570
5571 * ada-lang.c (add_component_interval): Start loop using vector's
5572 updated size.
5573
5574 2021-01-06 Tom Tromey <tromey@adacore.com>
5575
5576 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
5577 Do not cast result.
5578 * valarith.c (fixed_point_binop): Handle multiplication
5579 and division specially.
5580 * valops.c (value_to_gdb_mpq): New function.
5581 (value_cast_to_fixed_point): Use it.
5582
5583 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5584
5585 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5586 Call wnoutrefresh instead of tui_win_info::refresh_window.
5587
5588 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5589
5590 * tui/tui-source.c (tui_source_window::show_line_number):
5591 Redraw second space after line number.
5592
5593 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5594
5595 PR tui/26927
5596 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5597 Fix source pad size in prefresh.
5598 (tui_source_window_base::show_source_content): Grow source pad
5599 if necessary.
5600
5601 2021-01-04 Mike Frysinger <vapier@gentoo.org>
5602
5603 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
5604 (bfin_frame_align): Use align_down.
5605
5606 2021-01-04 Tom de Vries <tdevries@suse.de>
5607
5608 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
5609 terminators that do not terminate anything.
5610
5611 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5612
5613 * debug.c (debug_print_depth): New.
5614 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
5615 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
5616 * infrun.c (start_step_over): Use
5617 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5618 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
5619 INFRUN_SCOPED_DEBUG_START_END.
5620 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5621
5622 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5623
5624 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
5625
5626 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5627
5628 * utils.c (vfprintf_unfiltered): Print timestamp only when
5629 previous debug output ended with a newline.
5630
5631 2021-01-04 Luis Machado <luis.machado@linaro.org>
5632
5633 Update all users of trad_frame_saved_reg to use the new member
5634 functions.
5635
5636 Remote all struct keywords from declarations of trad_frame_saved_reg
5637 types, except on forward declarations.
5638
5639 * aarch64-tdep.c: Update.
5640 * alpha-mdebug-tdep.c: Update.
5641 * alpha-tdep.c: Update.
5642 * arc-tdep.c: Update.
5643 * arm-tdep.c: Update.
5644 * avr-tdep.c: Update.
5645 * cris-tdep.c: Update.
5646 * csky-tdep.c: Update.
5647 * frv-tdep.c: Update.
5648 * hppa-linux-tdep.c: Update.
5649 * hppa-tdep.c: Update.
5650 * hppa-tdep.h: Update.
5651 * lm32-tdep.c: Update.
5652 * m32r-linux-tdep.c: Update.
5653 * m32r-tdep.c: Update.
5654 * m68hc11-tdep.c: Update.
5655 * mips-tdep.c: Update.
5656 * moxie-tdep.c: Update.
5657 * riscv-tdep.c: Update.
5658 * rs6000-tdep.c: Update.
5659 * s390-linux-tdep.c: Update.
5660 * s390-tdep.c: Update.
5661 * score-tdep.c: Update.
5662 * sparc-netbsd-tdep.c: Update.
5663 * sparc-sol2-tdep.c: Update.
5664 * sparc64-fbsd-tdep.c: Update.
5665 * sparc64-netbsd-tdep.c: Update.
5666 * sparc64-obsd-tdep.c: Update.
5667 * sparc64-sol2-tdep.c: Update.
5668 * tilegx-tdep.c: Update.
5669 * v850-tdep.c: Update.
5670 * vax-tdep.c: Update.
5671
5672 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
5673 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
5674
5675 * trad-frame.c: Update.
5676 Remove TF_REG_* enum.
5677 (trad_frame_alloc_saved_regs): Add a static assertion to check for
5678 a trivially-constructible struct.
5679 (trad_frame_reset_saved_regs): Adjust to use member function.
5680 (trad_frame_value_p): Likewise.
5681 (trad_frame_addr_p): Likewise.
5682 (trad_frame_realreg_p): Likewise.
5683 (trad_frame_value_bytes_p): Likewise.
5684 (trad_frame_set_value): Likewise.
5685 (trad_frame_set_realreg): Likewise.
5686 (trad_frame_set_addr): Likewise.
5687 (trad_frame_set_unknown): Likewise.
5688 (trad_frame_set_value_bytes): Likewise.
5689 (trad_frame_get_prev_register): Likewise.
5690 * trad-frame.h: Update.
5691 (trad_frame_saved_reg_kind): New enum.
5692 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
5693 <m_kind, m_reg>: New member fields.
5694 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
5695 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
5696 <is_addr, is_unknown, is_value_bytes>: New member functions.
5697
5698 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
5699
5700 * target-float.c: Fix typos.
5701
5702 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
5703
5704 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
5705
5706 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5707
5708 * gdbarch.sh: Update copyright year range.
5709
5710 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5711
5712 Update copyright year range in copyright header of all GDB files.
5713
5714 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5715
5716 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
5717 to the list of directories to update.
5718
5719 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5720
5721 * top.c (print_gdb_version): Update copyright year.
5722
5723 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
5724
5725 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
5726
5727 For older changes see ChangeLog-2020.
5728 \f
5729 Local Variables:
5730 mode: change-log
5731 left-margin: 8
5732 fill-column: 74
5733 version-control: never
5734 coding: utf-8
5735 End:
This page took 0.152858 seconds and 4 git commands to generate.