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