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