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