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