gdb: spread a little 'const' through the target_section_table code
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4 return type const.
5 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
6 (section_table_read_available_memory): Make local const.
7 (exec_target::xfer_partial): Make local const.
8 (print_section_info): Make parameter const.
9 * gdb/exec.h (print_section_info): Likewise.
10 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
11 const.
12 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
13 Likewise.
14 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
15 Likewise.
16 * gdb/s390-tdep.c (s390_load): Likewise.
17 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
18 * gdb/solib-svr4.c (scan_dyntag): Likewise.
19 * gdb/target-debug.h (target_debug_print_target_section_table_p):
20 Rename to...
21 (target_debug_print_const_target_section_table_p): ...this.
22 * gdb/target-delegates.c: Regenerate.
23 * gdb/target.c (target_get_section_table): Make return type const.
24 (target_section_by_addr): Likewise. Also make some locals const.
25 (memory_xfer_partial_1): Make some locals const.
26 * gdb/target.h (struct target_ops) <get_section_table>: Make
27 return type const.
28 (target_section_by_addr): Likewise.
29 (target_get_section_table): Likewise.
30
31 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
32
33 * NEWS: Mention new 'maint info target-sections' command.
34 * maint.c (maintenance_info_target_sections): New function.
35 (_initialize_maint_cmds): Register new command.
36
37 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
38
39 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
40 (riscv_features_from_bfd): ...this. Change parameter type to
41 'bfd*', and update as required.
42 (riscv_find_default_target_description): Update call to
43 riscv_features_from_bfd. Select a default xlen based on
44 info.bfd_arch_info.
45 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
46
47 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
48
49 * eval.c (evaluate_subexp_standard): Call value_ind for points to
50 dynamic types in UNOP_IND.
51
52 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
53
54 PR gdb/26828
55 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
56 Instantiate queue.
57 (~dwarf2_queue_guard): Clear queue.
58 (queue_comp_unit): Assert that queue is
59 instantiated.
60 (process_queue): Adjust.
61 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
62
63 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
64
65 PR gdb/26828
66 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
67 to decide whether or not to enqueue it for expansion.
68 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
69 after calling maybe_queue_comp_unit.
70
71 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
72
73 * linux-nat.c (linux_nat_filter_event): Return void.
74
75 2021-02-22 Tom Tromey <tromey@adacore.com>
76
77 * solib-svr4.c (enable_break): Update.
78 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
79 type.
80 (target_bfd_reopen): Change parameter type.
81 * bfd-target.h (target_bfd_reopen): Change parameter type.
82
83 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
84
85 * thread.c (add_thread_silent): Add assert.
86 (find_thread_ptid): Add assert.
87
88 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
89
90 PR gdb/27435
91 * inf-ptrace.c (struct target_unpusher): Move to target.h.
92 (target_unpush_up): Likewise.
93 * procfs.c (procfs_target::attach): Push target early. Use
94 target_unpush_up to unpush target in case of error.
95 * target.h (struct target_unpusher): Move here.
96 (target_unpush_up): Likewise.
97
98 2021-02-19 Kevin Buettner <kevinb@redhat.com>
99
100 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
101 (which in turn includes <gnulib/config.h>) before include
102 of <signal.h>.
103
104 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
105
106 PR 27158
107 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
108 (decode_j_type_insn): Likewise.
109 (decode_cj_type_insn): Likewise.
110 (decode_b_type_insn): Likewise.
111 (decode): Likewise.
112
113 2021-02-18 Tom Tromey <tom@tromey.com>
114
115 * expression.h (struct expression) <evaluate>: Declare method.
116 * eval.c (evaluate_subexp): Simplify.
117 (expression::evaluate): New method.
118 (evaluate_expression, evaluate_type): Use expression::evaluate.
119
120 2021-02-17 Kevin Buettner <kevinb@redhat.com>
121
122 * ada-lang.c (ada_fold_name): Check for non-empty string prior
123 to accessing it.
124 (ada_lookup_name_info): Likewise.
125
126 2021-02-13 Mike Frysinger <vapier@gentoo.org>
127
128 * aclocal.m4: Regenerate.
129
130 2021-02-12 Tom de Vries <tdevries@suse.de>
131
132 PR threads/26228
133 * linux-nat.c (lin_thread_get_thread_signals): Remove.
134 (lin_thread_signals): New static var.
135 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
136 New function.
137 * linux-nat.h (lin_thread_get_thread_signals): Remove.
138 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
139 Declare.
140 * linux-thread-db.c (check_thread_signals): Use
141 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
142
143 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
144
145 * f-exp.y (f77_keywords): Add allocated.
146 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
147 (operator_length_f): Likewise.
148 (print_subexp_f): Likewise.
149 (dump_subexp_body_f): Likewise.
150 (operator_check_f): Likewise.
151 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
152
153 2021-02-11 Tom de Vries <tdevries@suse.de>
154
155 PR symtab/27353
156 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
157 Return true for DW_FORM_strx.
158
159 2021-02-11 Tom Tromey <tromey@adacore.com>
160
161 PR gdb/27383:
162 * parse.c (write_exp_symbol_reference): Write sym.block.
163
164 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
165
166 * NEWS: Mention changes to 'maint info sections'.
167 * maint.c (match_substring): Return a bool, fix whitespace issue.
168 (struct single_bfd_flag_info): New struct.
169 (bfd_flag_info): New static global.
170 (match_bfd_flags): Return a bool, use bfd_flag_info.
171 (print_bfd_flags): Use bfd_flag_info.
172 (maint_print_section_info): Delete trailing whitespace.
173 (struct maint_info_sections_opts): New struct.
174 (maint_info_sections_option_defs): New static global.
175 (maint_info_sections_completer): New function.
176 (maintenance_info_sections): Use option parsing mechanism.
177 (_initialize_maint_cmds): Update command help text for 'maint info
178 sections' and register a command completer.
179
180 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
181
182 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
183 functionality merged into...
184 (maint_print_all_sections): ...this new function.
185 (maintenance_info_sections): Make use of maint_print_all_sections,
186 allow all objects to be printed even where there's no executable.
187
188 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
189
190 * breakpoint.c (resolve_sal_pc): Make use of
191 bound_minimal_symbol::obj_section.
192 * maint.c (maintenance_translate_address): Likewise.
193 * minsyms.c (minimal_symbol_upper_bound): Likewise.
194 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
195 member function.
196 * printcmd.c (info_address_command): Make use of
197 bound_minimal_symbol::obj_section.
198
199 2021-02-11 Alan Modra <amodra@gmail.com>
200
201 * arm-symbian-tdep.c: Delete.
202 * NEWS: Mention arm-symbian removal.
203 * Makefile.in: Remove arm-symbian-tdep entries.
204 * configure.tgt: Remove arm*-*-symbianelf*.
205 * doc/gdb.texinfo: Remove mention of SymbianOS.
206 * osabi.c (gdb_osabi_names): Remove "Symbian".
207 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
208 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
209 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
210 handling.
211 * testsuite/gdb.base/dup-sect.exp: Likewise.
212 * testsuite/gdb.base/long_long.exp: Likewise.
213 * testsuite/gdb.base/solib-weak.exp: Likewise.
214 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
215 * testsuite/gdb.python/py-section-script.exp: Likewise.
216 * testsuite/lib/dwarf.exp: Likewise.
217 * testsuite/lib/gdb.exp: Likewise.
218
219 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
220
221 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
222 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
223 (one_or_two_args): New pattern.
224 (f77_keywords): Add lbound and ubound.
225 * f-lang.c (fortran_bounds_all_dims): New function.
226 (fortran_bounds_for_dimension): New function.
227 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
228 (operator_length_f): Likewise.
229 (print_subexp_f): Likewise.
230 (dump_subexp_body_f): Likewise.
231 (operator_check_f): Likewise.
232 * std-operator.def (FORTRAN_LBOUND): Define.
233 (FORTRAN_UBOUND): Define.
234
235 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
236
237 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
238 and set_section_index member functions where appropriate.
239 * coffread.c (coff_symtab_read): Likewise.
240 (process_coff_symbol): Likewise.
241 * ctfread.c (set_symbol_address): Likewise.
242 * dwarf2/read.c (add_partial_symbol): Likewise.
243 (var_decode_location): Likewise.
244 * language.c: Likewise.
245 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
246 (compact_minimal_symbols): Likewise.
247 (minimal_symbol_upper_bound): Likewise.
248 * objfiles.c (relocate_one_symbol): Likewise.
249 * psympriv.h (partial_symbol::obj_section): Likewise.
250 (partial_symbol::address): Likewise.
251 * psymtab.c (partial_symtab::add_psymbol): Likewise.
252 * stabsread.c (scan_file_globals): Likewise.
253 * symmisc.c (dump_msymbols): Likewise.
254 * symtab.c (general_symbol_info::obj_section): Likewise.
255 (fixup_section): Likewise.
256 (get_msymbol_address): Likewise.
257 * symtab.h (general_symbol_info::section): Rename to...
258 (general_symbol_info::m_section): ...this.
259 (general_symbol_info::set_section_index): New member function.
260 (general_symbol_info::section_index): Likewise.
261 (SYMBOL_SECTION): Delete.
262 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
263 set_section_index member functions where appropriate.
264 (MSYMBOL_SECTION): Delete.
265 (symbol::symbol): Update to initialize 'm_section'.
266 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
267 (process_xcoff_symbol): Likewise.
268
269 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
270
271 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
272 MSYMBOL_OBJ_SECTION.
273 * findvar.c (language_defn::read_var_value): Likewise.
274 * infcmd.c (jump_command): Likewise.
275 * linespec.c (minsym_found): Likewise.
276 * maint.c (maintenance_translate_address): Likewise.
277 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
278 (minimal_symbol_upper_bound): Likewise.
279 * parse.c (find_minsym_type_and_address): Likewise.
280 (operator_check_standard): Likewise.
281 * printcmd.c (info_address_command): Likewise.
282 * symmisc.c (dump_msymbols): Likewise.
283 (print_symbol): Likewise.
284 * symtab.c (general_symbol_info::obj_section): Define new
285 function.
286 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
287 (find_pc_sect_compunit_symtab): Likewise.
288 (find_function_start_sal): Likewise.
289 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
290 MSYMBOL_OBJ_SECTION.
291 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
292 function.
293 (SYMBOL_OBJ_SECTION): Delete.
294 (MSYMBOL_OBJ_SECTION): Delete.
295
296 2021-02-09 Tom Tromey <tom@tromey.com>
297
298 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
299
300 2021-02-09 Tom de Vries <tdevries@suse.de>
301
302 PR symtab/27341
303 * dwarf2/read.c (read_array_type): Return NULL when not being able to
304 construct an array type. Add assert to ensure that element_type is
305 not being modified.
306
307 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
308
309 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
310 (gcore_collect_regset_section_cb): Delete.
311 (gcore_collect_thread_registers): Delete.
312 (gcore_build_thread_register_notes): Delete.
313 (gcore_find_signalled_thread): Delete.
314 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
315 'gdbarch' and 'thread_info' declarations.
316 (gcore_build_thread_register_notes): Delete declaration.
317 (gcore_find_signalled_thread): Likewise.
318 * fbsd-tdep.c: Remove 'gcore.h' include.
319 (struct fbsd_collect_regset_section_cb_data): New struct.
320 (fbsd_collect_regset_section_cb): New function.
321 (fbsd_collect_thread_registers): New function.
322 (struct fbsd_corefile_thread_data): New struct.
323 (fbsd_corefile_thread): New function.
324 (fbsd_make_corefile_notes): Call FreeBSD specific code.
325 * linux-tdep.c: Remove 'gcore.h' include.
326 (struct linux_collect_regset_section_cb_data): New struct.
327 (linux_collect_regset_section_cb): New function.
328 (linux_collect_thread_registers): New function.
329 (linux_corefile_thread): Call Linux specific code.
330 (find_signalled_thread): New function.
331 (linux_make_corefile_notes): Call find_signalled_thread.
332
333 2021-02-09 Tom Tromey <tromey@adacore.com>
334
335 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
336 not_lval value.
337 * value.c (value_contents_copy_raw): Now static.
338 * value.h (value_contents_copy_raw): Don't declare.
339
340 2021-02-09 Tom Tromey <tromey@adacore.com>
341
342 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
343 fields.
344
345 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
346
347 PR tdep/27369
348 * arc-linux-tdep.c (handle_atomic_sequence): New.
349 (arc_linux_software_single_step): Call handle_atomic_sequence().
350
351 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
352
353 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
354 function.
355 (REQUIRE_WINDOW): Call is_valid member function.
356 (REQUIRE_WINDOW_FOR_SETTER): New define.
357 (gdbpy_tui_is_valid): Call is_valid member function.
358 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
359 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
360 tui_active too.
361 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
362 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
363 the function.
364
365 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
366
367 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
368 for the title is not nullptr.
369
370 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
371
372 * tui-layout.c (saved_tui_windows): Delete.
373 (tui_apply_current_layout): Don't make use of saved_tui_windows,
374 call new get_windows member function instead.
375 (tui_get_window_by_name): Check in tui_windows.
376 (tui_layout_window::apply): Don't add to tui_windows.
377 * tui-layout.h (tui_layout_base::get_windows): New member function.
378 (tui_layout_window::get_windows): Likewise.
379 (tui_layout_split::get_windows): Likewise.
380
381 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
382
383 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
384 of the window objects.
385
386 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
387
388 * python/python.c (gdbpy_print_stack): Reformat an error message.
389
390 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
391
392 * tui/tui-interp.c (tui_command_line_handler): New function.
393 (tui_interp::resume): Register tui_command_line_handler as the
394 input_handler.
395 * tui/tui-io.c (tui_inject_newline_into_command_window): New
396 function.
397 (tui_getc_1): Delete handling of '\n' and '\r'.
398 * tui-io.h (tui_inject_newline_into_command_window): Declare.
399
400 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
401
402 * tui/tui-regs.c (tui_data_window::display_registers_from):
403 Mark invisible register sub windows.
404 (tui_data_window::check_register_values): Ignore invisible
405 register sub windows.
406
407 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
408
409 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
410 n_spaces with a negative value.
411
412 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
413
414 * tui/tui-regs.c (tui_data_window::display_registers_from):
415 Add refresh_window call.
416
417 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
418
419 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
420
421 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
422
423 * symmisc.c (std_in, std_out, std_err): Remove.
424 (_initialize_symmisc): Don't set std_in, std_out and std_err.
425
426 2021-02-05 Tom de Vries <tdevries@suse.de>
427
428 PR breakpoints/27330
429 * breakpoint.c (create_exception_master_breakpoint): Handle case that
430 glibc object file has debug info.
431
432 2021-02-05 Tom de Vries <tdevries@suse.de>
433
434 PR symtab/27333
435 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
436
437 2021-02-05 Tom de Vries <tdevries@suse.de>
438
439 PR breakpoints/27313
440 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
441 syscall numbers.
442
443 2021-02-05 Tom Tromey <tom@tromey.com>
444
445 * compile/compile-c-support.c (get_compile_context)
446 (c_get_compile_context, cplus_get_compile_context): Change return
447 type.
448 * language.c (language_defn::get_compile_instance): New method.
449 * language.h (language_defn::get_compile_instance): Change return
450 type. No longer inline.
451 * c-lang.c (c_language::get_compile_instance): Change return type.
452 (cplus_language::get_compile_instance): Change return type.
453 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
454 Change return type.
455 * compile/compile.c (compile_to_object): Update.
456
457 2021-02-05 Tom Tromey <tom@tromey.com>
458
459 * parser-defs.h (write_exp_symbol_reference): Declare.
460 * parse.c (write_exp_symbol_reference): New function.
461 * p-exp.y (variable): Use write_exp_symbol_reference.
462 * m2-exp.y (variable): Use write_exp_symbol_reference.
463 * f-exp.y (variable): Use write_exp_symbol_reference.
464 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
465 * c-exp.y (variable): Use write_exp_symbol_reference.
466
467 2021-02-05 Tom de Vries <tdevries@suse.de>
468
469 PR exp/27265
470 * valarith.c (complex_binop): Throw an error if complex type can't
471 be created.
472
473 2021-02-05 Tom de Vries <tdevries@suse.de>
474
475 PR symtab/27307
476 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
477 return.
478
479 2021-02-05 Tom de Vries <tdevries@suse.de>
480
481 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
482
483 2021-02-04 Mike Frysinger <vapier@gentoo.org>
484
485 * configure.tgt (riscv*-*-*): Set gdb_sim.
486
487 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
488
489 * target.c (target_is_non_stop_p): Return bool.
490 * target.h (target_is_non_stop_p): Return bool.
491
492 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
493
494 * record-full.c (record_full_async_inferior_event_handler):
495 Don't clear async event handler.
496 (record_full_base_target::wait): Clear async event handler at
497 beginning.
498
499 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
500
501 * record-btrace.c (record_btrace_handle_async_inferior_event):
502 Don't clear async event handler.
503 (record_btrace_target::wait): Clear async event handler at
504 beginning.
505
506 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
507
508 * remote.c (remote_target::wait): Clear async event handler at
509 beginning, mark if needed at the end.
510 (remote_async_inferior_event_handler): Don't set or clear async
511 event handler.
512
513 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
514
515 * async-event.h (async_event_handler_func): Add documentation.
516 * async-event.c (check_async_event_handlers): Don't clear
517 async_event_handler ready flag.
518 * infrun.c (infrun_async_inferior_event_handler): Clear ready
519 flag.
520 * record-btrace.c (record_btrace_handle_async_inferior_event):
521 Likewise.
522 * record-full.c (record_full_async_inferior_event_handler):
523 Likewise.
524 * remote-notif.c (remote_async_get_pending_events_handler):
525 Likewise.
526 * remote.c (remote_async_inferior_event_handler): Likewise.
527
528 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
529
530 * infrun.c (handle_inferior_event): Move stop_soon variable to
531 inner scope.
532
533 2021-02-03 Pedro Alves <pedro@palves.net>
534
535 * infcmd.c (detach_command): Hold strong reference to target, and
536 if all-stop on entry, restart threads on exit.
537 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
538 (restart_stepped_thread): ... this new function. Also handle
539 trap_expected.
540 (restart_after_all_stop_detach): New function.
541 * infrun.h (restart_after_all_stop_detach): Declare.
542
543 2021-02-03 Pedro Alves <pedro@palves.net>
544
545 * infrun.c (struct step_over_info): Initialize fields.
546 (prepare_for_detach): Handle ongoing in-line step over.
547
548 2021-02-03 Pedro Alves <pedro@palves.net>
549
550 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
551 here...
552 * remote.c (remote_target::remote_detach_1): ... and here ...
553 * target.c (target_detach): ... instead of here.
554 * target.h (target_ops::detach): Add comment.
555
556 2021-02-03 Pedro Alves <pedro@palves.net>
557
558 * infrun.c (struct wait_one_event): Move higher up.
559 (prepare_for_detach): Abort in-progress displaced steps instead of
560 letting them complete.
561 (handle_one): If the inferior is detaching, don't add the thread
562 back to the global step-over chain.
563 (restart_threads): Don't restart threads if detaching.
564 (handle_signal_stop): Remove inferior::detaching reference.
565
566 2021-02-03 Pedro Alves <pedro@palves.net>
567
568 * infrun.c (prepare_for_detach): Don't release scoped_restore
569 before returning.
570
571 2021-02-03 Pedro Alves <pedro@palves.net>
572
573 * infrun.c (handle_one): New function, factored out from ...
574 (stop_all_threads): ... here.
575
576 2021-02-03 Pedro Alves <pedro@palves.net>
577
578 * remote.c (remote_notif_stop_ack): Don't error out on
579 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
580 (remote_target::discard_pending_stop_replies): Don't delete
581 in-flight notification; instead, clear its contents.
582
583 2021-02-03 Pedro Alves <pedro@palves.net>
584
585 * remote.c (extended_remote_target::attach): Set target async in
586 the target-non-stop path too.
587
588 2021-02-03 Pedro Alves <pedro@palves.net>
589
590 PR gdb/27055
591 * infrun.c (handle_signal_stop): Move main context_switch call
592 earlier, before STOP_QUIETLY_NO_SIGSTOP.
593
594 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
595
596 * NEWS (Changed commands): Add entry for the behavior change of
597 the inferior command.
598 * inferior.c (inferior_command): When no argument is given to the
599 inferior command, display info about the currently selected
600 inferior.
601
602 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
603
604 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
605 a sect_offset.
606 (read_attribute_reprocess): Adjust.
607
608 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
609
610 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
611 <gnu_ranges_base>: ... this...
612 <rnglists_base>: ... and this.
613 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
614 <gnu_ranges_base>: ... this...
615 <rnglists_base>: ... and this.
616 (read_cutu_die_from_dwo): Adjust
617 (dwarf2_get_pc_bounds): Adjust
618 (dwarf2_record_block_ranges): Adjust.
619 (read_full_die_1): Adjust
620 (partial_die_info::read): Adjust.
621 (read_rnglist_index): Adjust.
622
623 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
624
625 PR gdb/26813
626 * dwarf2/read.c (read_loclists_rnglists_header): Add
627 header_offset parameter and use it.
628 (read_loclist_index): Read header of the current contribution,
629 not the one at the beginning of the section.
630 (read_rnglist_index): Likewise.
631
632 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
633
634 PR gdb/26813
635 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
636 requires_reprocessing flag.
637 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
638 DW_FORM_loclistx.
639 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
640 and DW_FORM_loclistx.
641 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
642 instead of set_address for DW_FORM_loclistx and
643 DW_FORM_rnglistx.
644
645 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
646
647 * dwarf2/read.c (read_loclist_index): Remove bound check for
648 start of offset.
649 (read_rnglist_index): Likewise.
650
651 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
652
653 * dwarf2/read.c (read_loclist_index): Add bound check for the end
654 of the offset.
655
656 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
657
658 * dwarf2/read.c (read_rnglist_index): Fix bound check.
659
660 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
661
662 * dwarf2/read.c (read_loclist_index): Change complaints into
663 errors.
664
665 2021-02-02 Tom de Vries <tdevries@suse.de>
666
667 PR symtab/24620
668 * dwarf2/index-write.c (write_one_signatured_type): Skip if
669 psymtab == nullptr.
670
671 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
672
673 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
674 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
675 here from linux-tdep.c and given a new name. Minor cleanups.
676 (gcore_collect_regset_section_cb): Likewise.
677 (gcore_collect_thread_registers): Likewise.
678 (gcore_build_thread_register_notes): Likewise.
679 (gcore_find_signalled_thread): Likewise.
680 * gcore.h (gcore_build_thread_register_notes): Declare.
681 (gcore_find_signalled_thread): Declare.
682 * fbsd-tdep.c: Add 'gcore.h' include.
683 (struct fbsd_collect_regset_section_cb_data): Delete.
684 (fbsd_collect_regset_section_cb): Delete.
685 (fbsd_collect_thread_registers): Delete.
686 (struct fbsd_corefile_thread_data): Delete.
687 (fbsd_corefile_thread): Delete.
688 (fbsd_make_corefile_notes): Call
689 gcore_build_thread_register_notes instead of the now deleted
690 FreeBSD code.
691 * linux-tdep.c: Add 'gcore.h' include.
692 (struct linux_collect_regset_section_cb_data): Delete.
693 (linux_collect_regset_section_cb): Delete.
694 (linux_collect_thread_registers): Delete.
695 (linux_corefile_thread): Call
696 gcore_build_thread_register_notes.
697 (find_signalled_thread): Delete.
698 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
699
700 2021-01-29 Tom de Vries <tdevries@suse.de>
701
702 PR breakpoints/26063
703 * infrun.c (process_event_stop_test): Reset
704 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
705 changed.
706
707 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
708
709 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
710 assert. Extend the header comment.
711
712 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
713
714 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
715 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
716 * tui/tui-data.h (TUI_STATUS_WIN): Define.
717 (tui_locator_win_info_ptr): Delete declaration.
718 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
719 (tui_disasm_window::set_contents): Fetch state from tui_location
720 global.
721 (tui_get_begin_asm_address): Likewise.
722 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
723 for locator window.
724 (get_locator_window): Delete.
725 (initialize_known_windows): Treat locator window just like all the
726 rest.
727 * tui/tui-source.c: Add 'tui/tui-location.h' include.
728 (tui_source_window::set_contents): Fetch state from tui_location
729 global.
730 (tui_source_window::showing_source_p): Likewise.
731 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
732 (_locator): Delete.
733 (tui_locator_win_info_ptr): Delete.
734 (tui_locator_window::make_status_line): Fetch state from
735 tui_location global.
736 (tui_locator_window::rerender): Remove check of 'handle',
737 reindent function body.
738 (tui_locator_window::set_locator_fullname): Delete.
739 (tui_locator_window::set_locator_info): Delete.
740 (tui_update_locator_fullname): Delete.
741 (tui_show_frame_info): Likewise.
742 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
743 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
744 tui/tui-location.h and renamed to
745 tui_location_tracker::set_location.
746 (tui_locator_window::set_locator_fullname): Moved to
747 tui/tui-location.h and renamed to
748 tui_location_tracker::set_fullname.
749 (tui_locator_window::full_name): Delete.
750 (tui_locator_window::proc_name): Delete.
751 (tui_locator_window::line_no): Delete.
752 (tui_locator_window::addr): Delete.
753 (tui_locator_window::gdbarch): Delete.
754 (tui_update_locator_fullname): Delete declaration.
755 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
756 for locator window.
757 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
758 (tui_display_main): Call function on tui_location directly.
759 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
760 * tui/tui-location.c: New file.
761 * tui/tui-location.h: New file.
762
763 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
764
765 * gdbtypes.h (get_type_arch): Rename to...
766 (struct type) <arch>: ... this, update all users.
767
768 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
769
770 * gdbtypes.h (struct type) <arch>: Rename to...
771 <arch_owner>: ... this, update all users.
772 <objfile>: Rename to...
773 <objfile_owner>: ... this, update all users.
774
775 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
776
777 * gdbcmd.h (execute_command_to_string): Update comment.
778 * top.c (execute_command_to_string): Update header comment.
779
780 2021-01-28 Tom de Vries <tdevries@suse.de>
781
782 PR breakpoints/27205
783 * breakpoint.c (create_longjmp_master_breakpoint_probe)
784 (create_longjmp_master_breakpoint_names): New function, factored out
785 of ...
786 (create_longjmp_master_breakpoint): ... here. Only try to install
787 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
788 breakpoint in libc.so failed.
789
790 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
791
792 PR gdb/27133
793 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
794 unique_ptr is released when the wrapped pointer is kept for later
795 use.
796
797 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
798
799 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
800 BLR and BR instructions.
801 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
802 (enum aarch64_masks): New.
803
804 2021-01-26 Tom Tromey <tromey@adacore.com>
805
806 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
807 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
808 (windows_init_thread_list, windows_nat::handle_load_dll)
809 (windows_nat::handle_unload_dll, windows_nat_target::resume)
810 (windows_nat_target::resume)
811 (windows_nat_target::get_windows_debug_event)
812 (windows_nat_target::interrupt, windows_xfer_memory)
813 (windows_nat_target::close): Update.
814 * nat/windows-nat.c (DEBUG_EVENTS): Use
815 debug_prefixed_printf_cond.
816 (matching_pending_stop, fetch_pending_stop)
817 (continue_last_debug_event): Update.
818
819 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
820
821 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
822 elfcore_write_file_note.
823
824 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
825
826 * arc-tdep.c (arc_add_reggroups): New function.
827 (arc_gdbarch_init): Call arc_add_reggroups.
828
829 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
830
831 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
832
833 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
834 Simon Marchi <simon.marchi@polymtl.ca>
835 Tom de Vries <tdevries@suse.de>
836
837 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
838 DW_AT_ranges.
839
840 2021-01-25 Tom Tromey <tromey@adacore.com>
841
842 * dwarf2/read.c (get_mpz): New function.
843 (get_dwarf2_rational_constant): Use it.
844
845 2021-01-25 Tom Tromey <tromey@adacore.com>
846
847 * ada-lang.c (resolve_subexp): Handle array context.
848
849 2021-01-23 Tom Tromey <tom@tromey.com>
850
851 PR compile/25575
852 * compile/compile-loc2c.c (note_register): New function.
853 (pushf_register_address, pushf_register): Use it.
854
855 2021-01-23 Tom Tromey <tom@tromey.com>
856
857 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
858 Change type of "registers_used".
859 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
860 * dwarf2/loc.c (dwarf2_compile_property_to_c)
861 (locexpr_generate_c_location, loclist_generate_c_location): Change
862 type of "registers_used".
863 * compile/compile.h (compile_dwarf_expr_to_c)
864 (compile_dwarf_bounds_to_c): Update.
865 * compile/compile-loc2c.c (pushf_register_address)
866 (pushf_register, do_compile_dwarf_expr_to_c)
867 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
868 of "registers_used".
869 * compile/compile-c.h (generate_c_for_variable_locations):
870 Update.
871 * compile/compile-c-symbols.c (generate_vla_size)
872 (generate_c_for_for_one_variable): Change type of
873 "registers_used".
874 (generate_c_for_variable_locations): Return std::vector.
875 * compile/compile-c-support.c (generate_register_struct): Change
876 type of "registers_used".
877 (compute): Update.
878
879 2021-01-23 Tom Tromey <tom@tromey.com>
880
881 * compile/compile-internal.h (class compile_instance)
882 <set_arguments>: Change return type.
883 * compile/compile.c (compile_to_object): Remove call to reset.
884 (compile_instance::set_arguments): Change return type.
885
886 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
887
888 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
889 * gdbtypes.h (struct type) <set_owner>: Add asserts.
890
891 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
892
893 * Makefile.in (SELFTESTS_SRCS): Add
894 unittests/gdb_tilde_expand-selftests.c.
895 * unittests/gdb_tilde_expand-selftests.c: New file.
896
897 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
898
899 PR cli/25956
900 * NEWS: Mention new command.
901 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
902 (version_style): Define.
903 (cli_style_option::cli_style_option): Add intensity parameter, and
904 use as appropriate.
905 (_initialize_cli_style): Register version style set/show commands.
906 * cli/cli-style.h (cli_style_option): Add intensity parameter.
907 (version_style): Declare.
908 * top.c (print_gdb_version): Use version_stype, and styled_string
909 to print the GDB version string.
910
911 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
912
913 * utils.c (emit_style_escape): Only emit an escape sequence if the
914 requested style is different than the current applied style.
915 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
916 current applied_style.
917 (fputs_styled): Remove is_default check.
918 (fputs_styled_unfiltered): Likewise.
919 (vfprintf_styled_no_gdbfmt): Likewise.
920
921 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
922
923 * remote.h (remote_debug_printf): New.
924 (remote_debug_printf_nofunc): New.
925 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
926 * remote.c: Use above macros throughout file.
927
928 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
929
930 * remote.h (remote_debug): Change to bool.
931 * remote.c (remote_debug): Change to bool.
932 (_initialize_remote): Adjust.
933
934 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
935
936 * target.h (remote_debug): Move to...
937 * remote.h (remote_debug): ... here.
938 * top.c (remote_debug): Move to...
939 * remote.c (remote_debug): ... here.
940 * remote-sim.c: Include remote.h.
941
942 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
943
944 * cli/cli-cmds.c (show_remote_debug): Remove.
945 (show_remote_timeout): Remove.
946 (_initialize_cli_cmds): Don't register commands.
947 * remote.c (show_remote_debug): Move here.
948 (show_remote_timeout): Move here.
949 (_initialize_remote): Register commands.
950
951 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
952
953 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
954 type::objfile method instead.
955
956 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
957
958 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
959 use the type::is_objfile_owned method.
960
961 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
962
963 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
964 (TYPE_OWNER): Remove.
965 (TYPE_OBJFILE): Adjust.
966 (struct main_type) <flag_objfile_owned>: Rename to...
967 <m_flag_objfile_owned>: ... this.
968 <owner>: Rename to...
969 <m_owner>: ... this.
970 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
971 methods.
972 (TYPE_ALLOC): Adjust.
973 * gdbtypes.c (alloc_type): Adjust.
974 (alloc_type_arch): Adjust.
975 (alloc_type_copy): Adjust.
976 (get_type_arch): Adjust.
977 (smash_type): Adjust.
978 (lookup_array_range_type): Adjust.
979 (recursive_dump_type): Adjust.
980 (copy_type_recursive): Adjust.
981 * compile/compile-c-types.c (convert_func): Adjust.
982 (convert_type_basic): Adjust.
983 * compile/compile-cplus-types.c (compile_cplus_convert_func):
984 Adjust.
985 * language.c
986 (language_arch_info::type_and_symbol::alloc_type_symbol):
987 Adjust.
988
989 2021-01-21 Luis Machado <luis.machado@linaro.org>
990
991 * coffread.c (enter_linenos): Passing string to complaint.
992 * valops.c (value_assign): Make array view.
993
994 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
995
996 * auto-load.h (debug_auto_load): Move here.
997 (auto_load_debug_printf): New.
998 * auto-load.c: Use auto_load_debug_printf.
999 (debug_auto_load): Move to header.
1000 * linux-thread-db.c (try_thread_db_load): Use
1001 auto_load_debug_printf.
1002 * main.c (captured_main_1): Likewise.
1003
1004 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1005
1006 * f-valprint.c (f77_array_offset_tbl): Remove.
1007
1008 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1009
1010 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
1011
1012 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1013
1014 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
1015 of gdb_select.
1016
1017 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
1018
1019 PR python/19151
1020 * python/py-breakpoint.c (bppy_get_location): Handle
1021 bp_hardware_breakpoint.
1022 (bppy_init): Likewise.
1023 (gdbpy_breakpoint_created): Likewise.
1024
1025 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1026
1027 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
1028
1029 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1030
1031 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
1032 (_initialize_gdb_bfd): Adjust.
1033
1034 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1035
1036 PR gdb/26828
1037 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
1038
1039 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1040
1041 * dwarf2/read.c (follow_die_offset): Add logging.
1042 (dwarf2_per_objfile::age_comp_units): Add logging.
1043
1044 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1045
1046 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
1047 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
1048 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
1049 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
1050 * arm-tdep.c (struct frame_unwind): Make static.
1051 * auto-load.c (auto_load_safe_path_vec): Make static.
1052 * csky-tdep.c (csky_stub_unwind): Make static.
1053 * gdbarch.c (gdbarch_data_registry): Make static.
1054 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
1055 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
1056 * i386-tdep.c (i386_frame_setup_skip_insns,
1057 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
1058 Make static.
1059 * infrun.c (observer_mode): Make static.
1060 * linux-nat.c (sigchld_action): Make static.
1061 * linux-thread-db.c (thread_db_list): Make static.
1062 * maint-test-options.c (maintenance_test_options_list):
1063 * mep-tdep.c (mep_csr_registers): Make static.
1064 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
1065 (stats): Make static.
1066 * nat/linux-osdata.c (struct osdata_type): Make static.
1067 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
1068 * progspace.c (last_program_space_num): Make static.
1069 * python/py-param.c (struct parm_constant): Remove struct type
1070 name.
1071 (parm_constants): Make static.
1072 * python/py-record-btrace.c (btpy_list_methods): Make static.
1073 * python/py-record.c (recpy_gap_type): Make static.
1074 * record.c (record_goto_cmdlist): Make static.
1075 * regcache.c (regcache_descr_handle): Make static.
1076 * registry.h (DEFINE_REGISTRY): Make definition static.
1077 * symmisc.c (std_in, std_out, std_err): Make static.
1078 * top.c (previous_saved_command_line): Make static.
1079 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
1080 static.
1081 * unittests/command-def-selftests.c (nr_duplicates,
1082 nr_invalid_prefixcmd, lists): Make static.
1083 * unittests/observable-selftests.c (test_notification): Make
1084 static.
1085 * unittests/optional/assignment/1.cc (counter): Make static.
1086 * unittests/optional/assignment/2.cc (counter): Make static.
1087 * unittests/optional/assignment/3.cc (counter): Make static.
1088 * unittests/optional/assignment/4.cc (counter): Make static.
1089 * unittests/optional/assignment/5.cc (counter): Make static.
1090 * unittests/optional/assignment/6.cc (counter): Make static.
1091
1092 2021-01-20 Joel Sherrill <joel@rtems.org>
1093
1094 PR gdb/27219
1095 * remote.c (struct remote_thread_info) <resume_state>: Rename
1096 to...
1097 <get_resume_state>: ... this.
1098 (remote_target::resume): Adjust.
1099 (remote_target::commit_resume): Adjust.
1100 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
1101
1102 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
1103 Tom Tromey <tom@tromey.com>
1104
1105 * stap-probe.c (stap_parse_single_operand): Handle '!'
1106 operator.
1107 (stap_parse_argument_conditionally): Likewise.
1108 Skip spaces after processing open-parenthesis sub-expression.
1109 (stap_parse_argument_1): Skip spaces after call to
1110 stap_parse_argument_conditionally.
1111 Handle case when right-side expression is a parenthesized
1112 sub-expression.
1113 Skip spaces after call to stap_parse_argument_1.
1114
1115 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
1116
1117 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
1118
1119 2021-01-19 Luis Machado <luis.machado@linaro.org>
1120
1121 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
1122 memory and save data.
1123 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
1124 (trad_frame_set_unknown, trad_frame_set_value_bytes)
1125 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
1126 (trad_frame_value_bytes_p): Remove.
1127 (trad_frame_reset_saved_regs): Adjust documentation.
1128 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
1129 constructor and reset the state of the registers.
1130 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
1131 (trad_frame_value_bytes_p, trad_frame_set_value)
1132 (trad_frame_set_realreg, trad_frame_set_addr)
1133 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
1134 (trad_frame_set_reg_realreg): Update to call member function.
1135 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
1136 (trad_frame_get_prev_register): Likewise.
1137
1138 * aarch64-tdep.c (aarch64_analyze_prologue)
1139 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
1140 (aarch64_prologue_prev_register): Update to use member functions.
1141 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1142 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
1143 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
1144 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
1145 (arm_make_epilogue_frame_cache): Likewise.
1146 * avr-tdep.c (avr_frame_unwind_cache)
1147 (avr_frame_prev_register): Likewise.
1148 * cris-tdep.c (cris_scan_prologue): Likewise.
1149 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
1150 * frv-tdep.c (frv_analyze_prologue): Likewise.
1151 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
1152 * lm32-tdep.c (lm32_frame_cache): Likewise.
1153 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1154 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1155 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
1156 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
1157 (reset_saved_regs): Adjust to set realreg.
1158 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
1159 call member functions.
1160 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
1161 * s390-tdep.c (s390_prologue_frame_unwind_cache)
1162 (s390_backchain_frame_unwind_cache): Likewise.
1163 * score-tdep.c (score7_analyze_prologue)
1164 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
1165 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
1166 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1167 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
1168 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1169 * tilegx-tdep.c (tilegx_analyze_prologue)
1170 (tilegx_frame_cache): Likewise.
1171 * v850-tdep.c (v850_frame_cache): Likewise.
1172 * vax-tdep.c (vax_frame_cache): Likewise.
1173
1174 2021-01-19 Luis Machado <luis.machado@linaro.org>
1175
1176 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
1177 of buffer + length.
1178 (put_frame_register_bytes): Likewise.
1179 Adjust documentation.
1180 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
1181 (safe_frame_unwind_memory): Likewise.
1182 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
1183 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
1184 gdb::array_view.
1185 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
1186 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
1187 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1188 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
1189 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
1190 * dwarf2/loc.c (rw_pieced_value): Likewise.
1191 * hppa-tdep.c (hppa_frame_cache): Likewise.
1192 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
1193 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
1194 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1195 (i386_linux_rt_sigtramp_start): Likewise.
1196 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1197 * i386-tdep.c (i386_register_to_value): Likewise.
1198 * i387-tdep.c (i387_register_to_value): Likewise.
1199 * ia64-tdep.c (ia64_register_to_value): Likewise.
1200 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
1201 (m32r_linux_rt_sigtramp_start): Likewise.
1202 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
1203 * m68k-tdep.c (m68k_register_to_value): Likewise.
1204 * mips-tdep.c (mips_register_to_value)
1205 (mips_value_to_register): Likewise.
1206 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
1207 (ppcfbsd_sigtramp_frame_cache): Likewise.
1208 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
1209 (ppcobsd_sigtramp_frame_cache): Likewise.
1210 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
1211 (rs6000_register_to_value): Likewise.
1212 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
1213 * tramp-frame.c (tramp_frame_start): Likewise.
1214 * valops.c (value_assign): Likewise.
1215
1216 2021-01-19 Luis Machado <luis.machado@linaro.org>
1217
1218 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
1219 array_view.
1220 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
1221 instead of buffer and size.
1222 (trad_frame_set_reg_value_bytes): Likewise.
1223 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
1224 (trad_frame_set_value_bytes): Likewise.
1225
1226 2021-01-18 Mike Frysinger <vapier@gentoo.org>
1227
1228 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
1229
1230 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
1231
1232 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
1233 (riscv_fbsd_gregset): Use riscv_supply_regset.
1234 (riscv_fbsd_fpregset): Likewise.
1235 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
1236 (riscv_linux_fregset): Likewise.
1237 * riscv-tdep.c (riscv_supply_regset): Define new function.
1238 * riscv-tdep.h (riscv_supply_regset): Declare new function.
1239
1240 2021-01-18 Tom de Vries <tdevries@suse.de>
1241
1242 PR tdep/27172
1243 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
1244 New macro.
1245 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
1246 for SEGV_BNDERR.
1247
1248 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
1249
1250 * remote.c (class remote_target) <remote_hostio_send_command,
1251 remote_hostio_parse_result>: Constify parameter.
1252 (remote_hostio_parse_result): Likewise.
1253 (remote_target::remote_hostio_send_command): Adjust.
1254 (remote_target::remote_hostio_pread_vFile): Adjust.
1255 (remote_target::fileio_readlink): Adjust.
1256 (remote_target::fileio_fstat): Adjust.
1257
1258 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
1259
1260 * remote.c (remote_target::start_remote): Move wait_status to
1261 narrower scope.
1262
1263 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
1264
1265 * remote.c (class remote_target):
1266 <add_current_inferior_and_thread>: Constify parameter.
1267 (stop_reply_extract_thread): Likewise.
1268 (remote_target::get_current_thread): Likewise.
1269 (remote_target::add_current_inferior_and_thread): Likewise.
1270
1271 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
1272
1273 * remote.c (class remote_target)
1274 <remote_unpack_thread_info_response,
1275 parse_threadlist_response>: Constify parameter and/or return
1276 value and or local variable.
1277 (stub_unpack_int): Likewise.
1278 (unpack_nibble): Likewise.
1279 (unpack_byte): Likewise.
1280 (unpack_int): Likewise.
1281 (unpack_string): Likewise.
1282 (unpack_threadid): Likewise.
1283 (remote_target::remote_unpack_thread_info_response): Likewise.
1284 (remote_target::parse_threadlist_response): Likewise.
1285
1286 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
1287
1288 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
1289
1290 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
1291
1292 * MAINTAINERS (Write After Approval): Add myself.
1293
1294 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
1295
1296 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
1297 because is_trivially_default_constructible was first implemented with
1298 gcc-5.
1299
1300 2021-01-14 Tom de Vries <tdevries@suse.de>
1301
1302 PR breakpoints/27151
1303 * objfiles.h (in_plt_section): Handle .plt.sec.
1304
1305 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
1306
1307 PR gdb/26819
1308 * remote.c
1309 (remote_target::select_thread_for_ambiguous_stop_reply): New
1310 member function.
1311 (remote_target::process_stop_reply): Call
1312 select_thread_for_ambiguous_stop_reply.
1313
1314 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
1315
1316 * record-btrace.c (class record_btrace_target): Remove.
1317 (record_btrace_target::commit_resume): Remove.
1318 * record-full.c (class record_full_target): Remove.
1319 (record_full_target::commit_resume): Remove.
1320
1321 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
1322
1323 * remote.c (enum class resume_state): New.
1324 (struct resumed_pending_vcont_info): New.
1325 (struct remote_thread_info) <resume_state, set_not_resumed,
1326 set_resumed_pending_vcont, resumed_pending_vcont_info,
1327 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
1328 New.
1329 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
1330 (remote_target::remote_add_thread): Adjust.
1331 (remote_target::process_initial_stop_replies): Adjust.
1332 (remote_target::resume): Adjust.
1333 (remote_target::commit_resume): Rely on state in
1334 remote_thread_info and not on tp->executing.
1335 (remote_target::process_stop_reply): Adjust.
1336
1337 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1338
1339 * arc-tdep.h (arc_debug_printf): New.
1340 * arc-tdep.c: Use arc_debug_printf.
1341 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
1342 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
1343 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
1344
1345 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1346
1347 * arc-tdep.h (arc_debug): Change type to bool.
1348 * arc-tdep.c (arc_debug): Change type to bool.
1349 (arc_analyze_prologue): Adjust.
1350 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
1351 * arc-linux-nat.c (ps_get_thread_area): Adjust.
1352
1353 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1354
1355 * auto-load.c (auto_load_objfile_script_1): Use bool.
1356 (execute_script_contents): Use bool.
1357
1358 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1359
1360 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
1361 comment here.
1362 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
1363 comment to header.
1364 * extension-priv.h (struct extension_language_script_ops)
1365 <auto_load_enabled>: Return bool.
1366 * extension.h (ext_lang_auto_load_enabled): Return bool, move
1367 comment here.
1368 * extension.c (ext_lang_auto_load_enabled): Return bool, move
1369 comment to header.
1370 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
1371 move comment here.
1372 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
1373 move comment to header.
1374 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
1375 move comment here.
1376 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
1377 move comment to header.
1378
1379 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1380
1381 * auto-load.h (file_is_auto_load_safe): Change return type to
1382 bool, move comment here.
1383 * auto-load.c (file_is_auto_load_safe): Change return type and
1384 advice_printed to bool. Move comment to header.
1385
1386 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1387
1388 * jit.c (jit_debug_printf): New, use throughout file.
1389
1390 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1391
1392 * infrun.c (normal_stop): Fix indentation.
1393
1394 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1395
1396 * top.h (readnow_symbol_files, readnever_symbol_files): Move
1397 declarations to ...
1398 * symfile.h: ... here.
1399 * symfile.c: Update doc.
1400
1401 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1402
1403 * target.h (baud_rate, serial_parity): Move declarations...
1404 * serial.h: ... here.
1405 * main.c: Include serial.h.
1406 * serial.c (baud_rate, serial_parity): Update doc.
1407
1408 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1409
1410 * top.c (pre_init_ui_hook): Remove.
1411
1412 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1413
1414 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
1415 (aarch64_vnv_type): Add "bf" type in h field of v registers.
1416 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
1417 * features/aarch64-fpu.xml: Add bfloat16 type.
1418
1419 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
1420
1421 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
1422
1423 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
1424
1425 * f-exp.y (dot_ops): Rename to...
1426 (fortran_operators): ...this. Add a header comment. Add symbol
1427 based operators.
1428 (yylex): Update to use fortran_operators not dot_ops. Remove
1429 special handling for '**', this is now included in
1430 fortran_operators.
1431
1432 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
1433
1434 * arch/aarch64-insn.h (aarch64_debug_printf): New.
1435 * arch/aarch64-insn.c: Use aarch64_debug_printf.
1436 * aarch64-tdep.c: Use aarch64_debug_printf.
1437
1438 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
1439
1440 * solib-aix.c (solib_aix_debug_printf): New, use throughout
1441 file.
1442
1443 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
1444
1445 * jit.c (jit_debug): Change type to bool.
1446 (_initialize_jit): Adjust.
1447
1448 2021-01-09 Tom Tromey <tom@tromey.com>
1449
1450 PR compile/23672
1451 * compile/compile.c (compile_to_object): Avoid crash when
1452 osabi_triplet_regexp returns NULL.
1453
1454 2021-01-09 Tom Tromey <tom@tromey.com>
1455
1456 * tracepoint.h (class collection_list) <append_exp>: Take a
1457 std::string.
1458 * tracepoint.c (collection_list::append_exp): Take a std::string.
1459 (encode_actions_1): Update.
1460
1461 2021-01-08 Tom Tromey <tromey@adacore.com>
1462
1463 * parse.c (parse_expression): Add void_context_p parameter. Use
1464 parse_exp_in_context.
1465 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
1466 parse_expression.
1467 (print_command, call_command): Update.
1468 * expression.h (parse_expression): Add void_context_p parameter.
1469
1470 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
1471
1472 * value.c (set_value_component_location): Adjust the VALUE_LVAL
1473 for internalvar components that have a dynamic location.
1474
1475 2021-01-08 Tom de Vries <tdevries@suse.de>
1476
1477 PR gdb/26881
1478 * breakpoint.c (create_exception_master_breakpoint_probe)
1479 (create_exception_master_breakpoint_hook): Factor out
1480 of ...
1481 (create_exception_master_breakpoint): ... here. Only try to install
1482 the master exception breakpoint in objfile.debug using the
1483 _Unwind_DebugHook method, if the install using probes in objfile
1484 failed.
1485
1486 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
1487
1488 * f-lang.c (fortran_value_subarray): Call value_from_component.
1489
1490 2021-01-07 Mike Frysinger <vapier@gentoo.org>
1491
1492 * remote-sim.c: Include memory-map.h.
1493 (gdbsim_target): Define memory_map override.
1494 (gdbsim_target::memory_map): Define.
1495
1496 2021-01-07 Tom Tromey <tromey@adacore.com>
1497
1498 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
1499
1500 2021-01-07 Tom Tromey <tromey@adacore.com>
1501
1502 * ada-lang.c (add_component_interval): Start loop using vector's
1503 updated size.
1504
1505 2021-01-06 Tom Tromey <tromey@adacore.com>
1506
1507 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
1508 Do not cast result.
1509 * valarith.c (fixed_point_binop): Handle multiplication
1510 and division specially.
1511 * valops.c (value_to_gdb_mpq): New function.
1512 (value_cast_to_fixed_point): Use it.
1513
1514 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
1515
1516 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1517 Call wnoutrefresh instead of tui_win_info::refresh_window.
1518
1519 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
1520
1521 * tui/tui-source.c (tui_source_window::show_line_number):
1522 Redraw second space after line number.
1523
1524 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
1525
1526 PR tui/26927
1527 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1528 Fix source pad size in prefresh.
1529 (tui_source_window_base::show_source_content): Grow source pad
1530 if necessary.
1531
1532 2021-01-04 Mike Frysinger <vapier@gentoo.org>
1533
1534 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
1535 (bfin_frame_align): Use align_down.
1536
1537 2021-01-04 Tom de Vries <tdevries@suse.de>
1538
1539 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
1540 terminators that do not terminate anything.
1541
1542 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
1543
1544 * debug.c (debug_print_depth): New.
1545 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
1546 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
1547 * infrun.c (start_step_over): Use
1548 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
1549 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
1550 INFRUN_SCOPED_DEBUG_START_END.
1551 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
1552
1553 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
1554
1555 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
1556
1557 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
1558
1559 * utils.c (vfprintf_unfiltered): Print timestamp only when
1560 previous debug output ended with a newline.
1561
1562 2021-01-04 Luis Machado <luis.machado@linaro.org>
1563
1564 Update all users of trad_frame_saved_reg to use the new member
1565 functions.
1566
1567 Remote all struct keywords from declarations of trad_frame_saved_reg
1568 types, except on forward declarations.
1569
1570 * aarch64-tdep.c: Update.
1571 * alpha-mdebug-tdep.c: Update.
1572 * alpha-tdep.c: Update.
1573 * arc-tdep.c: Update.
1574 * arm-tdep.c: Update.
1575 * avr-tdep.c: Update.
1576 * cris-tdep.c: Update.
1577 * csky-tdep.c: Update.
1578 * frv-tdep.c: Update.
1579 * hppa-linux-tdep.c: Update.
1580 * hppa-tdep.c: Update.
1581 * hppa-tdep.h: Update.
1582 * lm32-tdep.c: Update.
1583 * m32r-linux-tdep.c: Update.
1584 * m32r-tdep.c: Update.
1585 * m68hc11-tdep.c: Update.
1586 * mips-tdep.c: Update.
1587 * moxie-tdep.c: Update.
1588 * riscv-tdep.c: Update.
1589 * rs6000-tdep.c: Update.
1590 * s390-linux-tdep.c: Update.
1591 * s390-tdep.c: Update.
1592 * score-tdep.c: Update.
1593 * sparc-netbsd-tdep.c: Update.
1594 * sparc-sol2-tdep.c: Update.
1595 * sparc64-fbsd-tdep.c: Update.
1596 * sparc64-netbsd-tdep.c: Update.
1597 * sparc64-obsd-tdep.c: Update.
1598 * sparc64-sol2-tdep.c: Update.
1599 * tilegx-tdep.c: Update.
1600 * v850-tdep.c: Update.
1601 * vax-tdep.c: Update.
1602
1603 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
1604 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
1605
1606 * trad-frame.c: Update.
1607 Remove TF_REG_* enum.
1608 (trad_frame_alloc_saved_regs): Add a static assertion to check for
1609 a trivially-constructible struct.
1610 (trad_frame_reset_saved_regs): Adjust to use member function.
1611 (trad_frame_value_p): Likewise.
1612 (trad_frame_addr_p): Likewise.
1613 (trad_frame_realreg_p): Likewise.
1614 (trad_frame_value_bytes_p): Likewise.
1615 (trad_frame_set_value): Likewise.
1616 (trad_frame_set_realreg): Likewise.
1617 (trad_frame_set_addr): Likewise.
1618 (trad_frame_set_unknown): Likewise.
1619 (trad_frame_set_value_bytes): Likewise.
1620 (trad_frame_get_prev_register): Likewise.
1621 * trad-frame.h: Update.
1622 (trad_frame_saved_reg_kind): New enum.
1623 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
1624 <m_kind, m_reg>: New member fields.
1625 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
1626 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
1627 <is_addr, is_unknown, is_value_bytes>: New member functions.
1628
1629 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
1630
1631 * target-float.c: Fix typos.
1632
1633 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
1634
1635 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
1636
1637 2021-01-01 Joel Brobecker <brobecker@adacore.com>
1638
1639 * gdbarch.sh: Update copyright year range.
1640
1641 2021-01-01 Joel Brobecker <brobecker@adacore.com>
1642
1643 Update copyright year range in copyright header of all GDB files.
1644
1645 2021-01-01 Joel Brobecker <brobecker@adacore.com>
1646
1647 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
1648 to the list of directories to update.
1649
1650 2021-01-01 Joel Brobecker <brobecker@adacore.com>
1651
1652 * top.c (print_gdb_version): Update copyright year.
1653
1654 2021-01-01 Joel Brobecker <brobecker@adacore.com>
1655
1656 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
1657
1658 For older changes see ChangeLog-2020.
1659 \f
1660 Local Variables:
1661 mode: change-log
1662 left-margin: 8
1663 fill-column: 74
1664 version-control: never
1665 coding: utf-8
1666 End:
This page took 0.076546 seconds and 5 git commands to generate.