[PATCH v2] binutils: arm: Fix disassembly of conditional VDUPs.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3557f442
KR
12020-04-16 Kamil Rytarowski <n54@gmx.com>
2
3 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5
16197208
SM
62020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7
8 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9 warning messages.
10
00ac85d3
SM
112020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12
13 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
14 import table is not at beginning of .idata section.
15
381ce63f
PA
162020-04-16 Pedro Alves <palves@redhat.com>
17
18 * inferior.c (delete_inferior): Use delete operator directly
19 instead of delete_program_space.
20 * progspace.c (add_program_space): New, factored out from
21 program_space::program_space.
22 (remove_program_space): New, factored out from
23 delete_program_space.
24 (program_space::program_space): Remove intro comment. Rewrite.
25 (program_space::~program_space): Remove intro comment. Call
26 remove_program_space.
27 (delete_program_space): Delete.
28 * progspace.h (program_space::program_space): Make explicit. Move
29 intro comment here, adjusted.
30 (program_space::~program_space): Move intro comment here,
31 adjusted.
32 (delete_program_space): Remove.
33
a010605f
TT
342020-04-16 Tom Tromey <tromey@adacore.com>
35
36 * windows-nat.c (windows_nat::handle_access_violation): New
37 function.
38 * nat/windows-nat.h (handle_access_violation): Declare.
39 * nat/windows-nat.c (handle_exception): Move Cygwin code to
40 windows-nat.c. Call handle_access_violation.
41
efba5c23
TV
422020-04-16 Tom de Vries <tdevries@suse.de>
43
44 PR symtab/25791
45 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
46 CUs without psymtab.
47
97ed802d
KB
482020-04-16 Kevin Buettner <kevinb@redhat.com>
49
50 * python/python.c (do_start_initialization): Don't call
51 PyEval_InitThreads for Python 3.9 and beyond.
52
c7d64809
KR
532020-04-15 Kamil Rytarowski <n54@gmx.com>
54
55 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
56 thread functions.
57 (obsd_nat_target::wait): Likewise.
58
ce127a96
TT
592020-04-15 Tom Tromey <tromey@adacore.com>
60
61 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
62 (DEBUG_EXCEPT): Use debug_printf.
63
99f1bc6a
AB
642020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
65
66 * completer.c (class completion_tracker::completion_hash_entry)
67 <hash_name>: New member function.
68 (completion_tracker::discard_completions): New callback to hash a
69 completion_hash_entry, pass this to htab_create_alloc.
70
a0e9b532
JT
712016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
72
73 * windows-nat.c (windows_make_so): Warn rather than stopping with
74 an error if realpath() fails.
75
06ca5dd4
KR
762020-04-14 Kamil Rytarowski <n54@gmx.com>
77
78 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
79 (nbsd_nat_target::info_proc): Add do_status.
80
194d088f
TV
812020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
82 Tom de Vries <tdevries@suse.de>
83
84 PR symtab/25718
85 * psympriv.h (struct partial_symtab::read_symtab)
86 (struct partial_symtab::expand_psymtab)
87 (struct partial_symtab::read_dependencies): Update comments.
88 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
89 read_symtab for includer.
90 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
91 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
92 (struct dwarf2_include_psymtab::m_readin): Remove.
93 (struct dwarf2_include_psymtab::includer): New member function.
94 (dwarf2_psymtab::expand_psymtab): Assert !readin.
95
c1a66c06
TV
962020-04-14 Tom de Vries <tdevries@suse.de>
97
98 PR symtab/25720
99 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
100 with NULL symbol_matcher and lookup_name.
101 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
102 and lookup_name.
103 * dwarf2/read.c (dw2_expand_symtabs_matching)
104 (dw2_debug_names_expand_symtabs_matching): Same.
105 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
106 Make lookup_name a pointer. Update comment.
107 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
108 lookup_name being a pointer.
109 * symfile.c (expand_symtabs_matching): Same.
110 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
111 * linespec.c (iterate_over_all_matching_symtabs): Same.
112
400b5eca
TT
1132020-04-13 Tom Tromey <tom@tromey.com>
114
115 * run-on-main-thread.c: Update include.
116 * unittests/main-thread-selftests.c: Update include.
117 * tui/tui-win.c: Update include.
118 * tui/tui-io.c: Update include.
119 * tui/tui-interp.c: Update include.
120 * tui/tui-hooks.c: Update include.
121 * top.h: Update include.
122 * top.c: Update include.
123 * ser-base.c: Update include.
124 * remote.c: Update include.
125 * remote-notif.c: Update include.
126 * remote-fileio.c: Update include.
127 * record-full.c: Update include.
128 * record-btrace.c: Update include.
129 * python/python.c: Update include.
130 * posix-hdep.c: Update include.
131 * mingw-hdep.c: Update include.
132 * mi/mi-main.c: Update include.
133 * mi/mi-interp.c: Update include.
134 * main.c: Update include.
135 * linux-nat.c: Update include.
136 * interps.c: Update include.
137 * infrun.c: Update include.
138 * inf-loop.c: Update include.
139 * event-top.c: Update include.
140 * event-loop.c: Move to ../gdbsupport/.
141 * event-loop.h: Move to ../gdbsupport/.
142 * async-event.h: Update include.
143 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
144
93b54c8e
TT
1452020-04-13 Tom Tromey <tom@tromey.com>
146
147 * tui/tui-win.c: Include async-event.h.
148 * remote.c: Include async-event.h.
149 * remote-notif.c: Include async-event.h.
150 * record-full.c: Include async-event.h.
151 * record-btrace.c: Include async-event.h.
152 * infrun.c: Include async-event.h.
153 * event-top.c: Include async-event.h.
154 * event-loop.h: Move some declarations to async-event.h.
155 * event-loop.c: Don't include ser-event.h or top.h. Move some
156 code to async-event.c.
157 * async-event.h: New file.
158 * async-event.c: New file.
159 * Makefile.in (COMMON_SFILES): Add async-event.c.
160 (HFILES_NO_SRCDIR): Add async-event.h.
161
c1cd3163
TT
1622020-04-13 Tom Tromey <tom@tromey.com>
163
164 * utils.c (flush_streams): New function.
165 * event-loop.c (gdb_wait_for_event): Call flush_streams.
166
29f2bf4f
TT
1672020-04-13 Tom Tromey <tom@tromey.com>
168
169 * event-loop.c (handle_file_event): Use warning, not
170 printf_unfiltered.
171
98029d02
TT
1722020-04-13 Tom Tromey <tom@tromey.com>
173
174 * event-loop.c: Include <chrono>.
175
06cc9596
TT
1762020-04-13 Tom Tromey <tom@tromey.com>
177
178 * gdb_select.h: Move to ../gdbsupport/.
179 * event-loop.c: Update include path.
180 * top.c: Update include path.
181 * ser-base.c: Update include path.
182 * ui-file.c: Update include path.
183 * ser-tcp.c: Update include path.
184 * guile/scm-ports.c: Update include path.
185 * posix-hdep.c: Update include path.
186 * ser-unix.c: Update include path.
187 * gdb_usleep.c: Update include path.
188 * mingw-hdep.c: Update include path.
189 * inflow.c: Update include path.
190 * infrun.c: Update include path.
191 * event-top.c: Update include path.
192
8ae8e197
TT
1932020-04-13 Tom Tromey <tom@tromey.com>
194
195 * configure: Rebuild.
196 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
197
58cf28e8
TT
1982020-04-13 Tom Tromey <tom@tromey.com>
199
200 * event-loop.h (start_event_loop): Don't declare.
201 * event-loop.c (start_event_loop): Move...
202 * main.c (start_event_loop): ...here. Now static.
203
b7f999ae
SDJ
2042020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
205
206 * MAINTAINERS: Update my email address.
207
1085dfd4
KR
2082020-04-12 Kamil Rytarowski <n54@gmx.com>
209
210 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
211 IP_ALL.
212
49d1d1f5
KR
2132020-04-12 Kamil Rytarowski <n54@gmx.com>
214
215 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
216 (nbsd_nat_target::info_proc): Add do_cmdline.
217
b4848d2a
KR
2182020-04-12 Kamil Rytarowski <n54@gmx.com>
219
220 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
221 (nbsd_nat_target::info_proc): Add do_cwd.
222
51c133d5
KR
2232020-04-12 Kamil Rytarowski <n54@gmx.com>
224
225 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
226
54b8cbd0
KR
2272020-04-11 Kamil Rytarowski <n54@gmx.com>
228
229 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
230 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
231 (nbsd_nat_target::info_proc): New functions.
232 * nbsd-nat.c (kinfo_get_vmmap): New function.
233 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
234 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
235 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
236 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
237 functions.
238 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
239 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
240 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
241 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
242 (KINFO_VME_FLAG_GROWS_DOWN): New.
243
cf83625d
AS
2442020-04-10 Artur Shepilko <nomadbyte@gmail.com>
245
246 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
247 bit shift.
248
0c4311ab
TT
2492020-04-10 Tom Tromey <tromey@adacore.com>
250
251 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
252
3e65b3e9
TT
2532020-04-10 Tom Tromey <tromey@adacore.com>
254
255 * symtab.c (get_symbol_address, get_msymbol_address): Skip
256 separate debug files.
257
13302e95
HD
2582020-04-10 Hannes Domani <ssbssa@yahoo.de>
259
260 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
261 Move to...
262 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
263 ... here.
264 * windows-nat.c (windows_nat_target::get_windows_debug_event):
265 Check for STATUS_WX86_BREAKPOINT.
266 (windows_nat_target::wait): Same.
267
bdfc1e8a
TV
2682020-04-10 Tom de Vries <tdevries@suse.de>
269
270 PR cli/25808
271 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
272
f4460aec
SM
2732020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
274
275 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
276 (Write After Approval): Remove Tom de Vries.
277
a25198bb
BE
2782020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
279
280 revert partially:
281 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
282
283 * buildsym.c (record_line): Fix undefined behavior and preserve
284 lines at eof.
285
206c98a6
KR
2862020-04-09 Kamil Rytarowski <n54@gmx.com>
287
288 * auxv.h (svr4_auxv_parse): New.
289 * auxv.c (default_auxv_parse): Split into default_auxv_parse
290 and generic_auxv_parse.
291 (svr4_auxv_parse): Add.
292 * obsd-tdep.c: Include "auxv.h".
293 (obsd_auxv_parse): Remove.
294 (obsd_init_abi): Remove comment.
295 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
296 from `obsd_auxv_parse' to `svr4_auxv_parse'.
297 * nbsd-tdep.c: Include "auxv.h".
298 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
299
71fbdbaf
TT
3002020-04-08 Tom Tromey <tromey@adacore.com>
301
302 * nat/windows-nat.h (last_wait_event): Don't declare.
303 (wait_for_debug_event): Update comment.
304 * nat/windows-nat.c (last_wait_event): Now static.
305
2c1d95e8
TT
3062020-04-08 Tom Tromey <tromey@adacore.com>
307
308 * windows-nat.c (wait_for_debug_event): Move to
309 nat/windows-nat.c.
310 * nat/windows-nat.h (wait_for_debug_event): Declare.
311 * nat/windows-nat.c (wait_for_debug_event): Move from
312 windows-nat.c. No longer static.
313
d2977bc4
TT
3142020-04-08 Tom Tromey <tromey@adacore.com>
315
316 * windows-nat.c (get_windows_debug_event): Use
317 fetch_pending_stop.
318 * nat/windows-nat.h (fetch_pending_stop): Declare.
319 * nat/windows-nat.c (fetch_pending_stop): New function.
320
e758e19c
TT
3212020-04-08 Tom Tromey <tromey@adacore.com>
322
323 * windows-nat.c (windows_continue): Use matching_pending_stop and
324 continue_last_debug_event.
325 * nat/windows-nat.h (matching_pending_stop)
326 (continue_last_debug_event): Declare.
327 * nat/windows-nat.c (DEBUG_EVENTS): New define.
328 (matching_pending_stop, continue_last_debug_event): New
329 functions.
330
8d30e395
TT
3312020-04-08 Tom Tromey <tromey@adacore.com>
332
333 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
334 (handle_exception_result): Move to nat/windows-nat.h.
335 (DEBUG_EXCEPTION_SIMPLE): Remove.
336 (windows_nat::handle_ms_vc_exception): New function.
337 (handle_exception): Move to nat/windows-nat.c.
338 (get_windows_debug_event): Update.
339 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
340 nat/windows-nat.c.
341 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
342 (handle_exception_result): Move from windows-nat.c.
343 (handle_exception): Declare.
344 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
345 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
346 windows-nat.c.
347
29de418d
TT
3482020-04-08 Tom Tromey <tromey@adacore.com>
349
350 * windows-nat.c (exception_count, event_count): Remove.
351 (handle_exception, get_windows_debug_event)
352 (do_initial_windows_stuff): Update.
353
a816ba18
TT
3542020-04-08 Tom Tromey <tromey@adacore.com>
355
356 * windows-nat.c (windows_nat::handle_load_dll)
357 (windows_nat::handle_unload_dll): Rename. No longer static.
358 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
359 Declare.
360
a00caa12
TT
3612020-04-08 Tom Tromey <tromey@adacore.com>
362
363 * complaints.h (stop_whining): Declare at top-level.
364 (complaint): Don't declare stop_whining.
365
d41b524f
TT
3662020-04-08 Tom Tromey <tromey@adacore.com>
367
368 * windows-nat.c (windows_nat::handle_output_debug_string):
369 Rename. No longer static.
370 * nat/windows-nat.h (handle_output_debug_string): Declare.
371
3c76026d
TT
3722020-04-08 Tom Tromey <tromey@adacore.com>
373
374 * windows-nat.c (current_process_handle, current_process_id)
375 (main_thread_id, last_sig, current_event, last_wait_event)
376 (current_windows_thread, desired_stop_thread_id, pending_stops)
377 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
378 (display_selectors, fake_create_process)
379 (get_windows_debug_event): Update.
380 * nat/windows-nat.h (current_process_handle, current_process_id)
381 (main_thread_id, last_sig, current_event, last_wait_event)
382 (current_windows_thread, desired_stop_thread_id, pending_stops)
383 (struct pending_stop, siginfo_er): Move from windows-nat.c.
384 * nat/windows-nat.c (current_process_handle, current_process_id)
385 (main_thread_id, last_sig, current_event, last_wait_event)
386 (current_windows_thread, desired_stop_thread_id, pending_stops)
387 (siginfo_er): New globals. Move from windows-nat.c.
388
9d8679cc
TT
3892020-04-08 Tom Tromey <tromey@adacore.com>
390
391 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
392 (handle_load_dll): Update.
393 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
394
28688adf
TT
3952020-04-08 Tom Tromey <tromey@adacore.com>
396
397 * windows-nat.c (enum thread_disposition_type): Move to
398 nat/windows-nat.h.
399 (windows_nat::thread_rec): Rename from thread_rec. No longer
400 static.
401 (windows_add_thread, windows_nat_target::fetch_registers)
402 (windows_nat_target::store_registers, handle_exception)
403 (windows_nat_target::resume, get_windows_debug_event)
404 (windows_nat_target::get_tib_address)
405 (windows_nat_target::thread_name)
406 (windows_nat_target::thread_alive): Update.
407 * nat/windows-nat.h (enum thread_disposition_type): Move from
408 windows-nat.c.
409 (thread_rec): Declare.
410
4834dad0
TT
4112020-04-08 Tom Tromey <tromey@adacore.com>
412
413 * windows-nat.c: Add "using namespace".
414 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
415 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
416
65bafd5b
TT
4172020-04-08 Tom Tromey <tromey@adacore.com>
418
419 * nat/windows-nat.h (struct windows_thread_info): Declare
420 destructor.
421 * nat/windows-nat.c (~windows_thread_info): New.
422
0a4afda3
TT
4232020-04-08 Tom Tromey <tromey@adacore.com>
424
425 PR gdb/22992
426 * windows-nat.c (current_event): Update comment.
427 (last_wait_event, desired_stop_thread_id): New globals.
428 (struct pending_stop): New.
429 (pending_stops): New global.
430 (windows_nat_target) <stopped_by_sw_breakpoint>
431 <supports_stopped_by_sw_breakpoint>: New methods.
432 (windows_fetch_one_register): Add assertions. Adjust PC.
433 (windows_continue): Handle pending stops. Suspend other threads
434 when stepping. Use last_wait_event
435 (wait_for_debug_event): New function.
436 (get_windows_debug_event): Use wait_for_debug_event. Handle
437 pending stops. Queue spurious stops.
438 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
439 (windows_nat_target::kill): Use wait_for_debug_event.
440 * nat/windows-nat.h (struct windows_thread_info)
441 <stopped_at_software_breakpoint>: New field.
442 * nat/windows-nat.c (windows_thread_info::resume): Clear
443 stopped_at_software_breakpoint.
444
8e61ebec
TT
4452020-04-08 Tom Tromey <tromey@adacore.com>
446
447 * windows-nat.c (enum thread_disposition_type): New.
448 (thread_rec): Replace "get_context" parameter with "disposition";
449 change type.
450 (windows_add_thread, windows_nat_target::fetch_registers)
451 (windows_nat_target::store_registers, handle_exception)
452 (windows_nat_target::resume, get_windows_debug_event)
453 (windows_nat_target::get_tib_address)
454 (windows_nat_target::thread_name)
455 (windows_nat_target::thread_alive): Update.
456
98a03287
TT
4572020-04-08 Tom Tromey <tromey@adacore.com>
458
459 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
460 (windows_continue): Use windows_continue::resume.
461 * nat/windows-nat.h (struct windows_thread_info) <suspend,
462 resume>: Declare new methods.
463 * nat/windows-nat.c: New file.
464 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
465
7c7411bc
TT
4662020-04-08 Tom Tromey <tromey@adacore.com>
467
468 * windows-nat.c (windows_add_thread, windows_delete_thread)
469 (windows_nat_target::fetch_registers)
470 (windows_nat_target::store_registers, fake_create_process)
471 (windows_nat_target::resume, windows_nat_target::resume)
472 (get_windows_debug_event, windows_nat_target::wait)
473 (windows_nat_target::pid_to_str)
474 (windows_nat_target::get_tib_address)
475 (windows_nat_target::get_ada_task_ptid)
476 (windows_nat_target::thread_name)
477 (windows_nat_target::thread_alive): Use lwp, not tid.
478
2950fdf7
TT
4792020-04-08 Tom Tromey <tromey@adacore.com>
480
481 * windows-nat.c (handle_exception)
482 (windows_nat_target::thread_name): Update.
483 * nat/windows-nat.h (windows_thread_info): Remove destructor.
484 <name>: Now unique_xmalloc_ptr.
485
62fe396b
TT
4862020-04-08 Tom Tromey <tromey@adacore.com>
487
488 * windows-nat.c (thread_rec)
489 (windows_nat_target::fetch_registers): Update.
490 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
491 Update comment.
492 <debug_registers_changed, reload_context>: Now bool.
493
e9534bd2
TT
4942020-04-08 Tom Tromey <tromey@adacore.com>
495
496 * windows-nat.c (windows_add_thread): Use new.
497 (windows_init_thread_list, windows_delete_thread): Use delete.
498 (get_windows_debug_event): Update.
499 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
500 destructor, and initializers.
501
ae1f8880
TT
5022020-04-08 Tom Tromey <tromey@adacore.com>
503
504 * windows-nat.c (struct windows_thread_info): Remove.
505 * nat/windows-nat.h: New file.
506
55a1e039
TT
5072020-04-08 Tom Tromey <tromey@adacore.com>
508
509 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
510 (thread_rec, windows_add_thread, windows_delete_thread)
511 (windows_continue): Update.
512
93366324
TT
5132020-04-08 Tom Tromey <tromey@adacore.com>
514
515 * windows-nat.c (struct windows_thread_info): Remove typedef.
516 (thread_head): Remove.
517 (thread_list): New global.
518 (thread_rec, windows_add_thread, windows_init_thread_list)
519 (windows_delete_thread, windows_continue): Update.
520
0f2265e2
SM
5212020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
522
523 * windows-tdep.h (windows_init_abi): Add comment.
524 (cygwin_init_abi): New declaration.
525 * windows-tdep.c: Split signal enumeration in two, one for
526 Windows and one for Cygwin.
527 (windows_gdb_signal_to_target): Only deal with signal of the
528 Windows OS ABI.
529 (cygwin_gdb_signal_to_target): New function.
530 (windows_init_abi): Rename to windows_init_abi_common, don't set
531 gdb_signal_to_target gdbarch method. Add new new function with
532 this name.
533 (cygwin_init_abi): New function.
534 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
535 comment. Don't call windows_init_abi.
536 (amd64_windows_init_abi): Add comment, call windows_init_abi.
537 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
538 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
539 i386_windows_init_abi_common, don't call windows_init_abi. Add
540 a new function of this name.
541 (i386_cygwin_init_abi): New function.
542 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
543 OS ABI Cygwin.
544
3810f182
SM
5452020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
546
547 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
548 parameter.c.
549 (dwarf2_read_gdb_index): Update.
550
063f8e80
KR
5512020-04-07 Kamil Rytarowski <n54@gmx.com>
552
553 * nbsd-tdep.c: Include "objfiles.h".
554 (nbsd_skip_solib_resolver): New.
555 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
556
85a9510c 5572020-04-07 Nitika Achra <Nitika.Achra@amd.com>
558
559 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
560 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
561 with DW_LLE_base_addressx are being emitted in DWARFv5.
562 Add the newly added kind DW_LOC_OFFSET_PAIR also.
563 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
564 unsigned integer.
565
9fc3eaae 5662020-04-07 Nitika Achra <Nitika.Achra@amd.com>
567
568 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
569 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
570 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
571 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
572 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
573 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
574 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
575
576
41144253 5772020-04-07 Nitika Achra <Nitika.Achra@amd.com>
578
579 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
580 (read_loclist_index): New function definition.
581 (lookup_loclist_base): New function definition.
582 (read_loclist_header): New function definition.
583 (dwarf2_cu): Add loclist_base and loclist_header field.
584 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
585 (read_full_die_1): Read the value of DW_AT_loclists_base.
586 (read_attribute_reprocess): Handle DW_FORM_loclistx.
587 (read_attribute_value): Handle DW_FORM_loclistx.
588 (skip_one_die): Handle DW_FORM_loclistx.
589 (loclist_header): New structure declaration.
590 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
591
9f4e76a4
SM
5922020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
593
594 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
595 constructor. Remove `addr` parameter from other constructor and
596 add `per_cu` parameter.
597 * dwarf2/read.c (create_partial_symtab): Update.
598
25c11aca
TV
5992020-04-07 Tom de Vries <tdevries@suse.de>
600
601 PR symtab/25796
602 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
603 (partial_die_info::fixup): Inherit has_const_value.
604
5707e24b
TV
6052020-04-07 Tom de Vries <tdevries@suse.de>
606
607 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
608 symbols without address.
609
05f00e22
KR
6102020-04-06 Kamil Rytarowski <n54@gmx.com>
611
612 * nbsd-nat.h (struct thread_info): Add forward declaration.
613 (nbsd_nat_target::thread_alive): Add.
614 (nbsd_nat_target::thread_name): Likewise.
615 (nbsd_nat_target::update_thread_list): Likewise.
616 (update_thread_list::post_attach): Likewise.
617 (post_attach::pid_to_str): Likewise.
618 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
619 (nbsd_thread_lister): Add.
620 (nbsd_nat_target::thread_alive): Likewise.
621 (nbsd_nat_target::thread_name): Likewise.
622 (nbsd_add_threads): Likewise.
623 (update_thread_list::post_attach): Likewise.
624 (nbsd_nat_target::update_thread_list): Likewise.
625 (post_attach::pid_to_str): Likewise.
626
6ee448cc
TT
6272020-04-06 Tom Tromey <tromey@adacore.com>
628
629 * ada-valprint.c (print_variant_part): Extract the variant field.
630 (print_field_values): Use the field as the outer value when
631 recursing.
632
dea34e8c
TT
6332020-04-06 Tom Tromey <tromey@adacore.com>
634
635 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
636 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
637 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
638 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
639 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
640
93689ce9
TT
6412020-04-06 Tom Tromey <tromey@adacore.com>
642
643 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
644 TYPE_CODE_ERROR.
645
79743962
KR
6462020-04-06 Kamil Rytarowski <n54@gmx.com>
647
648 * nbsd-tdep.c: Include "gdbarch.h".
649 Define enum with NetBSD signal numbers.
650 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
651 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
652 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
653 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
654 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
655 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
656 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
657 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
658 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
659 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
660 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
661 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
662
9e7c9a03
HD
6632020-04-03 Hannes Domani <ssbssa@yahoo.de>
664
665 PR gdb/25325
666 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
667
d9e49b61
TT
6682020-04-03 Tom Tromey <tromey@adacore.com>
669
670 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
671 Read constant block.
672
e0fc5c3f
SM
6732020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
674
675 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
676 (gdb_bfd_get_full_section_contents): New declaration.
677 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
678 * windows-tdep.c (is_linked_with_cygwin_dll): Use
679 gdb_bfd_get_full_section_contents.
680
e2ff18a0
SM
6812020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
682
683 * exec.c (build_section_table): Replace internal_error with
684 gdb_assert.
685 (section_table_xfer_memory_partial): Likewise.
686 * mdebugread.c (parse_partial_symbols): Likewise.
687 * psymtab.c (lookup_partial_symbol): Likewise.
688 * utils.c (wrap_here): Likewise.
689
0830d301
TT
6902020-04-02 Tom Tromey <tromey@adacore.com>
691
692 * f-lang.c (build_fortran_types): Use arch_type to initialize
693 builtin_complex_s32 in the TYPE_CODE_ERROR case.
694
e7da7f8f
TT
6952020-04-02 Tom Tromey <tromey@adacore.com>
696
697 * dwarf2/read.c (partial_die_info::read): Do not create a vector
698 of attributes.
699
c90d28ac
AB
7002020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
701 Bernd Edlinger <bernd.edlinger@hotmail.de>
702 Tom Tromey <tromey@adacore.com>
703
704 * buildsym.c (buildsym_compunit::record_line): Remove
705 deduplication code.
706
1aa98955
TV
7072020-04-02 Tom de Vries <tdevries@suse.de>
708
709 PR ada/24671
710 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
711
d3214198
TV
7122020-04-02 Tom de Vries <tdevries@suse.de>
713
714 * dwarf2/read.c (dwarf2_gdb_index_functions,
715 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
716 NULL.
717 * psymtab.c (psym_lookup_global_symbol_language): New function.
718 (psym_functions): Init psym_lookup_global_symbol_language with
719 psym_lookup_global_symbol_language.
720 * symfile-debug.c (debug_sym_quick_functions): Init
721 lookup_global_symbol_language with NULL.
722 * symfile.c (set_initial_language): Remove fixme comment.
723 * symfile.h (struct quick_symbol_functions): Add
724 lookup_global_symbol_language.
725 * symtab.c (find_quick_global_symbol_language): New function.
726 (find_main_name): Use find_quick_global_symbol_language.
727
2836752f
SM
7282020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
729
730 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
731
64dc2d4b
BE
7322020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
733
734 * buildsym.c (record_line): Fix undefined behavior and preserve
735 lines at eof.
736
bbe3dc41
BE
7372020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
738
739 * buildsym.c (record_line): Fix the resizing condition.
740
6b4a335b
TT
7412020-04-01 Tom Tromey <tom@tromey.com>
742
743 * value.h (value_literal_complex): Add comment.
744 * valops.c (value_literal_complex): Refer to value.h.
745
3638a098
TT
7462020-04-01 Tom Tromey <tom@tromey.com>
747
748 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
749 (scalar_type): New rule, from typebase.
750 (typebase): Use scalar_type. Recognize complex types.
751 (field_name): Handle FLOAT_KEYWORD.
752 (ident_tokens): Add _Complex and __complex__.
753
c34e8714
TT
7542020-04-01 Tom Tromey <tom@tromey.com>
755
756 PR exp/25299:
757 * valarith.c (promotion_type, complex_binop): New functions.
758 (scalar_binop): Handle complex numbers. Use promotion_type.
759 (value_pos, value_neg, value_complement): Handle complex numbers.
760
fa649bb7
TT
7612020-04-01 Tom Tromey <tom@tromey.com>
762
763 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
764 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
765 (parse_number): Handle complex numbers.
766
981c08ce
TT
7672020-04-01 Tom Tromey <tom@tromey.com>
768
769 * c-valprint.c (c_decorations): Change complex suffix to "i".
770
4c99290d
TT
7712020-04-01 Tom Tromey <tom@tromey.com>
772
773 * valprint.c (generic_value_print_complex): Use accessors.
774 * value.h (value_real_part, value_imaginary_part): Declare.
775 * valops.c (value_real_part, value_imaginary_part): New
776 functions.
777 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
778
5b930b45
TT
7792020-04-01 Tom Tromey <tom@tromey.com>
780
781 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
782 (read_range_type): Update.
783 * mdebugread.c (basic_type): Update.
784 * go-lang.c (build_go_types): Use init_complex_type.
785 * gdbtypes.h (struct main_type) <complex_type>: New member.
786 (init_complex_type): Update.
787 (arch_complex_type): Don't declare.
788 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
789 Make name if none given. Use alloc_type_copy. Look for cached
790 complex type.
791 (arch_complex_type): Remove.
792 (gdbtypes_post_init): Use init_complex_type.
793 * f-lang.c (build_fortran_types): Use init_complex_type.
794 * dwarf2/read.c (read_base_type): Update.
795 * d-lang.c (build_d_types): Use init_complex_type.
796 * ctfread.c (read_base_type): Update.
797
53cccef1
TBA
7982020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
799
800 * infrun.c (stop_all_threads): Update assertion, plus when
801 stopping threads, take into account that we might be trying
802 to stop an all-stop target.
803 (stop_waiting): Call 'stop_all_threads' if there exists a
804 non-stop target.
805
a0714d30
TBA
8062020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
807
808 * target.h (exists_non_stop_target): New function declaration.
809 * target.c (exists_non_stop_target): New function.
810
60e22c1e
HD
8112020-04-01 Hannes Domani <ssbssa@yahoo.de>
812
813 PR gdb/24789
814 * eval.c (is_integral_or_integral_reference): New function.
815 (evaluate_subexp_standard): Allow integer references in
816 pointer arithmetic.
817
e139a727
TBA
8182020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
819
820 * remote.c (remote_target::remote_parse_stop_reply): Remove the
821 check for no ptid in the stop reply when the target is non-stop.
822
e0802d59
TT
8232020-04-01 Tom Tromey <tromey@adacore.com>
824
825 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
826 "name" parameter to rvalue reference. Initialize m_name_holder.
827 <lookup_name_info>: New overloads.
828 <name>: Return gdb::string_view.
829 <c_str>: New method.
830 <make_ignore_params>: Update.
831 <search_name_hash>: Update.
832 <language_lookup_name>: Return const char *.
833 <m_name>: Change type.
834 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
835 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
836 (lookup_name_info::match_any): Update.
837 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
838 Update.
839 * minsyms.c (linkage_name_str): Update.
840 * language.c (default_symbol_name_matcher): Update.
841 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
842 Update.
843 * ada-lang.c (ada_fold_name): Change parameter to string_view.
844 (ada_lookup_name_info::ada_lookup_name_info): Update.
845 (literal_symbol_name_matcher): Update.
846
8c072cb6
TT
8472020-04-01 Tom Tromey <tromey@adacore.com>
848
849 * psymtab.c (psymtab_search_name): Remove function.
850 (psym_lookup_symbol): Create search name and lookup name here.
851 (lookup_partial_symbol): Remove "name" parameter; add
852 lookup_name.
853 (psym_expand_symtabs_for_function): Update.
854
6f29a534
TT
8552020-03-31 Joel Jones <joelkevinjones@gmail.com>
856
857 PR tui/25597:
858 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
859
af62665e
TT
8602020-03-31 Tom Tromey <tromey@adacore.com>
861
862 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
863 memcpy.
864
d1a89da5
NC
8652020-03-30 Nelson Chu <nelson.chu@sifive.com>
866
867 * features/riscv/32bit-csr.xml: Regenerated.
868 * features/riscv/64bit-csr.xml: Regenerated.
869
d8af9068
TT
8702020-03-30 Tom Tromey <tromey@adacore.com>
871
872 * ada-valprint.c (print_variant_part): Update.
873 * ada-lang.h (ada_which_variant_applies): Update.
874 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
875 outer_valaddr parameters; replace with "outer" value parameter.
876 (to_fixed_variant_branch_type): Update.
877
227c0bf4
PFC
8782020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
879
880 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
881 <list>. Remove inclusion of observable.h.
882 (PPC_DEBUG_CURRENT_VERSION): Move up define.
883 (struct arch_lwp_info): New struct.
884 (class ppc_linux_dreg_interface): New class.
885 (struct ppc_linux_process_info): New struct.
886 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
887 <low_new_clone, low_forget_process, low_prepare_to_resume>
888 <copy_thread_dreg_state, mark_thread_stale>
889 <mark_debug_registers_changed, register_hw_breakpoint>
890 <clear_hw_breakpoint, register_wp, clear_wp>
891 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
892 <num_memory_accesses, get_trigger_type>
893 <create_watchpoint_request, hwdebug_point_cmp>
894 <init_arch_lwp_info, get_arch_lwp_info>
895 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
896 methods.
897 <struct ptid_hash>: New inner struct.
898 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
899 members.
900 (saved_dabr_value, hwdebug_info, max_slots_number)
901 (struct hw_break_tuple, struct thread_points, ppc_threads)
902 (have_ptrace_hwdebug_interface)
903 (hwdebug_find_thread_points_by_tid)
904 (hwdebug_insert_point, hwdebug_remove_point): Remove.
905 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
906 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
907 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
908 use m_dreg_interface.
909 (hwdebug_point_cmp): Change to...
910 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
911 reference arguments instead of pointers.
912 (ppc_linux_nat_target::ranged_break_num_registers): Use
913 m_dreg_interface.
914 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
915 m_dreg_interface. Call register_hw_breakpoint.
916 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
917 m_dreg_interface. Call clear_hw_breakpoint.
918 (get_trigger_type): Change to...
919 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
920 comment.
921 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
922 use m_dreg_interface. Call register_hw_breakpoint.
923 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
924 use m_dreg_interface. Call clear_hw_breakpoint.
925 (can_use_watchpoint_cond_accel): Change to...
926 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
927 method. Update comment, use m_dreg_interface and
928 m_process_info.
929 (calculate_dvc): Change to...
930 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
931 m_dreg_interface.
932 (num_memory_accesses): Change to...
933 (ppc_linux_nat_target::num_memory_accesses): ...this method.
934 (check_condition): Change to...
935 (ppc_linux_nat_target::check_condition): ...this method.
936 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
937 comment, use m_dreg_interface.
938 (create_watchpoint_request): Change to...
939 (ppc_linux_nat_target::create_watchpoint_request): ...this
940 method. Use m_dreg_interface.
941 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
942 m_dreg_interface. Call register_hw_breakpoint or register_wp.
943 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
944 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
945 (ppc_linux_nat_target::low_forget_process)
946 (ppc_linux_nat_target::low_new_fork)
947 (ppc_linux_nat_target::low_new_clone)
948 (ppc_linux_nat_target::low_delete_thread)
949 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
950 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
951 only call mark_thread_stale.
952 (ppc_linux_thread_exit): Remove.
953 (ppc_linux_nat_target::stopped_data_address): Change to...
954 (ppc_linux_nat_target::low_stopped_data_address): This. Add
955 comment, use m_dreg_interface and m_thread_hw_breakpoints.
956 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
957 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
958 comment. Call low_stopped_data_address.
959 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
960 m_dreg_interface.
961 (ppc_linux_nat_target::masked_watch_num_registers): Use
962 m_dreg_interface.
963 (ppc_linux_nat_target::copy_thread_dreg_state)
964 (ppc_linux_nat_target::mark_thread_stale)
965 (ppc_linux_nat_target::mark_debug_registers_changed)
966 (ppc_linux_nat_target::register_hw_breakpoint)
967 (ppc_linux_nat_target::clear_hw_breakpoint)
968 (ppc_linux_nat_target::register_wp)
969 (ppc_linux_nat_target::clear_wp)
970 (ppc_linux_nat_target::init_arch_lwp_info)
971 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
972 (_initialize_ppc_linux_nat): Remove observer callback.
973
4db10d8f
PFC
9742020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
975
976 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
977 (ppc_linux_nat_target::auxv_parse)
978 (ppc_linux_nat_target::read_description)
979 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
980 Move up.
981
1310c1b0
PFC
9822020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
983
984 * linux-nat.h (low_new_clone): New method.
985 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
986
69b037c3
SM
9872020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
988
989 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
990 (dbx_expand_psymtab): ... this.
991 (start_psymtab): Update.
992 * mdebugread.c (psymtab_to_symtab_1): Rename to...
993 (mdebug_expand_psymtab): ... this.
994 (parse_partial_symbols): Update.
995 (new_psymtab): Update.
996 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
997 (xcoff_expand_psymtab): ... this.
998 (xcoff_start_psymtab): Update.
999
48993951
SM
10002020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
1001
1002 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
1003 <expand_dependencies>: ... this.
1004 * psymtab.c (partial_symtab::read_dependencies): Rename to...
1005 (partial_symtab::expand_dependencies): ... this.
1006 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
1007 Update.
1008 (dwarf2_psymtab::expand_psymtab): Update.
1009 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
1010 * mdebugread.c (psymtab_to_symtab_1): Update.
1011 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
1012
3ad83046
SM
10132020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
1014
1015 * psympriv.h (discard_psymtab): Remove.
1016 * dbxread.c (dbx_end_psymtab): Update.
1017 * xcoffread.c (xcoff_end_psymtab): Update.
1018
4d1b9ab6
TT
10192020-03-28 Tom Tromey <tom@tromey.com>
1020
1021 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
1022 comment.
1023
f1749218
TT
10242020-03-28 Tom Tromey <tom@tromey.com>
1025
1026 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
1027
ebea7626
HD
10282020-03-27 Hannes Domani <ssbssa@yahoo.de>
1029
1030 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
1031
a879b4d5
JB
10322020-03-26 John Baldwin <jhb@FreeBSD.org>
1033
1034 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
1035
0826b30a
TT
10362020-03-26 Tom Tromey <tom@tromey.com>
1037
1038 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
1039 (mark_common_block_symbol_computed, read_tag_string_type)
1040 (attr_to_dynamic_prop, read_subrange_type): Update.
1041 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
1042 to be methods on struct attribute.
1043 (skip_one_die, process_imported_unit_die, read_namespace_alias)
1044 (read_call_site_scope, partial_die_info::read)
1045 (partial_die_info::read, lookup_die_type, follow_die_ref):
1046 Update.
1047 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
1048 from dwarf2_get_ref_die_offset.
1049 (attribute::constant_value): New method, from
1050 dwarf2_get_attr_constant_value.
1051 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
1052 Declare method.
1053 <constant_value>: New method.
1054
2b2558bf
TT
10552020-03-26 Tom Tromey <tom@tromey.com>
1056
1057 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
1058 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
1059 (dwarf_type_encoding_name): Move to stringify.c.
1060 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
1061 * dwarf2/stringify.c: New file.
1062 * dwarf2/stringify.h: New file.
1063
eeb64781
TT
10642020-03-26 Tom Tromey <tom@tromey.com>
1065
1066 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
1067 Rewrite.
1068
a39fdb41
TT
10692020-03-26 Tom Tromey <tom@tromey.com>
1070
1071 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
1072 methods.
1073 * dwarf2/read.c (lookup_addr_base): Move to die.h.
1074 (lookup_ranges_base): Likewise.
1075 (read_cutu_die_from_dwo, read_full_die_1): Update.
1076
436c571c
TT
10772020-03-26 Tom Tromey <tom@tromey.com>
1078
1079 * dwarf2/read.c (read_import_statement, read_file_scope)
1080 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
1081 (read_lexical_block_scope, read_call_site_scope)
1082 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
1083 (handle_struct_member_die, process_structure_scope)
1084 (update_enumeration_type_from_children)
1085 (process_enumeration_scope, read_array_type, read_common_block)
1086 (read_namespace, read_module, read_subroutine_type): Update.
1087 (sibling_die): Remove.
1088
052c8bb8
TT
10892020-03-26 Tom Tromey <tom@tromey.com>
1090
1091 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
1092 (build_type_psymtabs_reader, read_structure_type)
1093 (read_enumeration_type, read_full_die_1): Update.
1094 (dwarf2_attr_no_follow): Move to die.h.
1095 * dwarf2/die.h (struct die_info) <attr>: New method.
1096
2b24b6e4
TT
10972020-03-26 Tom Tromey <tom@tromey.com>
1098
1099 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
1100 <base_address>: Now an optional.
1101 (dwarf2_find_base_address, dwarf2_rnglists_process)
1102 (dwarf2_ranges_process, fill_in_loclist_baton)
1103 (dwarf2_symbol_mark_computed): Update.
1104
c2d50fd0
TT
11052020-03-26 Tom Tromey <tom@tromey.com>
1106
1107 * dwarf2/read.c (struct die_info): Move to die.h.
1108 * dwarf2/die.h: New file.
1109
0df7ad3a
TT
11102020-03-26 Tom Tromey <tom@tromey.com>
1111
1112 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
1113 * dwarf2/read.c
1114 (dwarf2_statement_list_fits_in_line_number_section_complaint):
1115 Move to line-header.c.
1116 (read_checked_initial_length_and_offset, read_formatted_entries):
1117 Likewise.
1118 (dwarf_decode_line_header): Split into two.
1119 * dwarf2/line-header.c
1120 (dwarf2_statement_list_fits_in_line_number_section_complaint):
1121 Move from read.c.
1122 (read_checked_initial_length_and_offset, read_formatted_entries):
1123 Likewise.
1124 (dwarf_decode_line_header): New function, split from read.c.
1125
86c0bb4c
TT
11262020-03-26 Tom Tromey <tom@tromey.com>
1127
1128 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
1129 Declare method.
1130 * dwarf2/read.c (read_attribute_value): Update.
1131 (dwarf2_per_objfile::read_line_string): Rename from
1132 read_indirect_line_string.
1133 (read_formatted_entries): Update.
1134
2ef46c2f
TT
11352020-03-26 Tom Tromey <tom@tromey.com>
1136
1137 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
1138 variable.
1139
4f9c1eda
TT
11402020-03-26 Tom Tromey <tom@tromey.com>
1141
1142 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
1143 const.
1144 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
1145 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
1146 parameter const.
1147
5a0e026f
TT
11482020-03-26 Tom Tromey <tom@tromey.com>
1149
1150 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
1151 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
1152 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
1153 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
1154
8844c11b
TT
11552020-03-26 Tom Tromey <tom@tromey.com>
1156
1157 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
1158 file_names_size, file_full_name, file_file_name>: Use const.
1159 <file_name_at, file_names>: Add const overload.
1160 * dwarf2/line-header.c (line_header::file_file_name)
1161 (line_header::file_full_name): Update.
1162
c90ec28a
TT
11632020-03-26 Tom Tromey <tom@tromey.com>
1164
1165 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
1166 (macro_start_file, consume_improper_spaces)
1167 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
1168 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
1169 (dwarf_decode_macros): Move to macro.c.
1170 * dwarf2/macro.c: New file.
1171 * dwarf2/macro.h: New file.
1172 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
1173
4f44ae6c
TT
11742020-03-26 Tom Tromey <tom@tromey.com>
1175
1176 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
1177 method.
1178 * dwarf2/section.c: New method. From
1179 read_indirect_string_at_offset_from.
1180 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
1181 (read_indirect_string_at_offset_from): Move to section.c.
1182 (read_indirect_string_at_offset): Rewrite.
1183 (read_indirect_line_string_at_offset): Remove.
1184 (read_indirect_string, read_indirect_line_string)
1185 (dwarf_decode_macro_bytes): Update.
1186
a0194fa8
TT
11872020-03-26 Tom Tromey <tom@tromey.com>
1188
1189 * dwarf2/section.h (struct dwarf2_section_info)
1190 <overload_complaint>: Declare.
1191 (dwarf2_section_buffer_overflow_complaint): Don't declare.
1192 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
1193 Rename from dwarf2_section_buffer_overflow_complaint.
1194 * dwarf2/read.c (skip_one_die, partial_die_info::read)
1195 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
1196
3d27bbdb
TT
11972020-03-26 Tom Tromey <tom@tromey.com>
1198
1199 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
1200 Declare.
1201 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
1202 Move from read.c.
1203 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
1204 to section.c.
1205
9eac9650
TT
12062020-03-26 Tom Tromey <tom@tromey.com>
1207
1208 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
1209
bf80d710
TT
12102020-03-26 Tom Tromey <tom@tromey.com>
1211
1212 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
1213 "builder".
1214 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
1215 parameter.
1216 (dwarf_decode_macros): Update.
1217
0314b390
TT
12182020-03-26 Tom Tromey <tom@tromey.com>
1219
1220 * dwarf2/read.c (read_attribute_value): Update.
1221 (read_indirect_string_from_dwz): Move to dwz.c; change into
1222 method.
1223 (dwarf_decode_macro_bytes): Update.
1224 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
1225 * dwarf2/dwz.c: New file.
1226 * Makefile.in (COMMON_SFILES): Add dwz.c.
1227
9fda78b6
TT
12282020-03-26 Tom Tromey <tom@tromey.com>
1229
1230 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
1231 * dwarf2/read.c: Add include.
1232 * dwarf2/index-write.c: Add include.
1233 * dwarf2/index-cache.c: Add include.
1234 * dwarf2/dwz.h: New file.
1235
33aa3c10
TT
12362020-03-25 Tom Tromey <tom@tromey.com>
1237
1238 * compile/compile-object-load.c (get_out_value_type): Mention
1239 correct symbol name in error message.
1240
d503b685
HD
12412020-03-25 Hannes Domani <ssbssa@yahoo.de>
1242
1243 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
1244
7b1eff95
TV
12452020-03-25 Tom de Vries <tdevries@suse.de>
1246
1247 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
1248 * symmisc.c (dump_symtab_1): Print user and includes fields.
1249 (maintenance_info_symtabs): Same.
1250
dd895392
AB
12512020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
1252
1253 PR gdb/25534
1254 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
1255 (riscv_regcache_cooked_write): New function.
1256 (riscv_push_dummy_call): Use new function.
1257 (riscv_return_value): Likewise.
1258
5ab2fbf1
SM
12592020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1260
1261 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
1262 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
1263 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
1264 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
1265 * infrun.c (follow_fork): Likewise.
1266 (follow_fork_inferior): Likewise.
1267 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
1268 * linux-nat.h (class linux_nat_target): Likewise.
1269 * remote.c (class remote_target) <follow_fork>: Likewise.
1270 (remote_target::follow_fork): Likewise.
1271 * target-delegates.c: Re-generate.
1272 * target.c (default_follow_fork): Likewise.
1273 (target_follow_fork): Likewise.
1274 * target.h (struct target_ops) <follow_fork>: Likewise.
1275 (target_follow_fork): Likewise.
1276
a64fafb5
TV
12772020-03-24 Tom de Vries <tdevries@suse.de>
1278
1279 * psymtab.c (maintenance_info_psymtabs): Print user field.
1280
fe26d3a3
TT
12812020-03-20 Tom Tromey <tromey@adacore.com>
1282
1283 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
1284 const.
1285 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
1286 const.
1287
c884cc46
SM
12882020-03-20 Simon Marchi <simon.marchi@efficios.com>
1289
1290 * ptrace.m4: Don't check for ptrace declaration.
1291 * config.in: Re-generate.
1292 * configure: Re-generate.
1293 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
1294 not defined.
1295
1ff700c2
KR
12962020-03-20 Kamil Rytarowski <n54@gmx.com>
1297
1298 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
1299 `PTRACE_TYPE_RET'.
1300 * i386-bsd-nat.c (gdb_ptrace): Likewise.
1301 * sparc-nat.c (gdb_ptrace): Likewise.
1302 * x86-bsd-nat.c (gdb_ptrace): Likewise.
1303
f7d4f0b1
TT
13042020-03-20 Tom Tromey <tromey@adacore.com>
1305
1306 * c-exp.y (lex_one_token): Fix assert.
1307
f67210ff
TT
13082020-03-20 Tom Tromey <tromey@adacore.com>
1309
1310 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
1311 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
1312 strncpy call.
1313
1773be9e
TT
13142020-03-20 Tom Tromey <tromey@adacore.com>
1315
1316 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
1317
70304be9
TT
13182020-03-20 Tom Tromey <tromey@adacore.com>
1319
1320 * ada-valprint.c (print_variant_part): Remove parameters; switch
1321 to value-based API.
1322 (print_field_values): Likewise.
1323 (ada_val_print_struct_union): Likewise.
1324 (ada_value_print_1): Update.
1325
9faa006d
KR
13262020-03-20 Kamil Rytarowski <n54@gmx.com>
1327
1328 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
1329 nbsd_nat_target instead of inf_ptrace_target.
1330 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
1331 nbsd_nat_target.
1332
4a90f062
KR
13332020-03-20 Kamil Rytarowski <n54@gmx.com>
1334
1335 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
1336 it to the ptrace call.
1337 * (store_registers): Likewise.
1338
13392020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
1340
1341 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
1342 it to the ptrace call.
1343 * (store_registers): Likewise.
1344
2d07da27
LM
13452020-03-19 Luis Machado <luis.machado@linaro.org>
1346
1347 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
1348 valid, fetch vg value from ptrace.
1349
f09db380
KR
13502020-03-19 Kamil Rytarowski <n54@gmx.com>
1351 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
1352 * inf-ptrace.c: Likewise.
1353 * (gdb_ptrace): Add.
1354 * (inf_ptrace_target::resume): Update.
1355 * (inf_ptrace_target::xfer_partial): Likewise.
1356 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
1357 * (inf_ptrace_peek_poke): Update.
1358
fcc7376e
KR
13592020-03-19 Kamil Rytarowski <n54@gmx.com>
1360
1361 * x86-bsd-nat.c (gdb_ptrace): New.
1362 * (x86bsd_dr_set): Add new argument `ptid'.
1363 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
1364 x86bsd_dr_set_addr): Update.
1365
cada5fc9
AB
13662020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
1367
1368 * remote.c (remote_target::process_stop_reply): Handle events for
1369 all threads differently.
1370
19a2740f
AB
13712020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
1372
1373 * completer.c (completion_tracker::remove_completion): Define new
1374 function.
1375 * completer.h (completion_tracker::remove_completion): Declare new
1376 function.
1377 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
1378 when adding a C++ function symbol.
1379
724fd9ba
AB
13802020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
1381
1382 * completer.c (completion_tracker::completion_hash_entry): Define
1383 new class.
1384 (advance_to_filename_complete_word_point): Call
1385 recompute_lowest_common_denominator.
1386 (completion_tracker::completion_tracker): Call discard_completions
1387 to setup the hash table.
1388 (completion_tracker::discard_completions): Allow for being called
1389 from the constructor, pass new equal function, and element deleter
1390 when constructing the hash table. Initialise new class member
1391 variables.
1392 (completion_tracker::maybe_add_completion): Remove use of
1393 m_entries_vec, and store more information into m_entries_hash.
1394 (completion_tracker::recompute_lcd_visitor): New function, most
1395 content taken from...
1396 (completion_tracker::recompute_lowest_common_denominator):
1397 ...here, this now just visits each item in the hash calling the
1398 above visitor.
1399 (completion_tracker::build_completion_result): Remove use of
1400 m_entries_vec, call recompute_lowest_common_denominator.
1401 * completer.h (completion_tracker::have_completions): Remove use
1402 of m_entries_vec.
1403 (completion_tracker::completion_hash_entry): Declare new class.
1404 (completion_tracker::recompute_lowest_common_denominator): Change
1405 function signature.
1406 (completion_tracker::recompute_lcd_visitor): Declare new function.
1407 (completion_tracker::m_entries_vec): Delete.
1408 (completion_tracker::m_entries_hash): Initialize to NULL.
1409 (completion_tracker::m_lowest_common_denominator_valid): New
1410 member variable.
1411 (completion_tracker::m_lowest_common_denominator_max_length): New
1412 member variable.
1413
5a82b8a1
KR
14142020-03-17 Kamil Rytarowski <n54@gmx.com>
1415
1416 * regformats/regdef.h: Put reg in gdb namespace.
1417
fb516a69
KR
14182020-03-17 Kamil Rytarowski <n54@gmx.com>
1419
1420 * i386-bsd-nat.c (gdb_ptrace): New.
1421 * (i386bsd_fetch_inferior_registers,
1422 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
1423 * (i386bsd_fetch_inferior_registers,
1424 i386bsd_store_inferior_registers) Use gdb_ptrace.
1425
1c0aa1fb
KR
14262020-03-17 Kamil Rytarowski <n54@gmx.com>
1427
1428 * amd64-bsd-nat.c (gdb_ptrace): New.
1429 * (amd64bsd_fetch_inferior_registers,
1430 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
1431 * (amd64bsd_fetch_inferior_registers,
1432 amd64bsd_store_inferior_registers) Use gdb_ptrace.
1433
5ccd2fb7
KR
14342020-03-17 Kamil Rytarowski <n54@gmx.com>
1435
1436 * user-regs.c (user_reg::read): Rename to...
1437 (user_reg::xread): ...this.
1438 * (append_user_reg): Rename argument `read' to `xread'.
1439 * (user_reg_add_builtin): Likewise.
1440 * (user_reg_add): Likewise.
1441 * (value_of_user_reg): Likewise.
1442
2108a63a
KR
14432020-03-17 Kamil Rytarowski <n54@gmx.com>
1444
1445 * sparc-nat.c (gdb_ptrace): New.
1446 * sparc-nat.c (sparc_fetch_inferior_registers)
1447 (sparc_store_inferior_registers) Remove obsolete comment.
1448 * sparc-nat.c (sparc_fetch_inferior_registers)
1449 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
1450 * sparc-nat.c (sparc_fetch_inferior_registers)
1451 (sparc_store_inferior_registers) Use gdb_ptrace.
1452
a225c9a8
KR
14532020-03-17 Kamil Rytarowski <n54@gmx.com>
1454
1455 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
1456 it to the ptrace call.
1457 * sh-nbsd-nat.c (store_registers): Likewise.
1458
98097623
KR
14592020-03-17 Kamil Rytarowski <n54@gmx.com>
1460
1461 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
1462 nbsd_nat_target instead of inf_ptrace_target.
1463 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
1464 nbsd_nat_target.
1465
9e38d619
KR
14662020-03-17 Kamil Rytarowski <n54@gmx.com>
1467
1468 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
1469
a2ecbe9f
KR
14702020-03-17 Kamil Rytarowski <n54@gmx.com>
1471
1472 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
1473 <sys/sysctl.h>.
1474 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
1475
58990295
TV
14762020-03-17 Tom de Vries <tdevries@suse.de>
1477
1478 PR gdb/23710
1479 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
1480 fields.
1481 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
1482 fields.
1483 (process_imported_unit_die): Skip import of c++ CUs.
1484
771dd3a8
TT
14852020-03-16 Tom Tromey <tom@tromey.com>
1486
1487 * p-valprint.c (pascal_object_print_value): Initialize
1488 base_value.
1489
817a7585
AK
14902020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
1491 Shahab Vahedi <shahab@synopsys.com>
1492
1493 * Makefile.in: Add arch/arc.o
1494 * configure.tgt: Likewise.
1495 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
1496 (_initialize_arc_tdep): Don't initialize old target descriptions.
1497 (arc_read_description): New function to cache target descriptions.
1498 * arc-tdep.h (arc_read_description): Add proto type.
1499 * arch/arc.c: New file.
1500 * arch/arc.h: Likewise.
1501 * features/Makefile: Replace old target descriptions with new.
1502 * features/arc-arcompact.c: Remove.
1503 * features/arc-arcompact.xml: Likewise.
1504 * features/arc-v2.c: Likewise
1505 * features/arc-v2.xml: Likewise
1506 * features/arc/aux-arcompact.xml: New file.
1507 * features/arc/aux-v2.xml: Likewise.
1508 * features/arc/core-arcompact.xml: Likewise.
1509 * features/arc/core-v2.xml: Likewise.
1510 * features/arc/aux-arcompact.c: Generate.
1511 * features/arc/aux-v2.c: Likewise.
1512 * features/arc/core-arcompact.c: Likewise.
1513 * features/arc/core-v2.c: Likewise.
1514 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
1515
67430cd0
TT
15162020-03-16 Tom Tromey <tromey@adacore.com>
1517
1518 PR gdb/25663:
1519 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
1520 putting value into bcache.
1521
30efb6c7
SM
15222020-03-16 Simon Marchi <simon.marchi@efficios.com>
1523
1524 PR gdb/21500
1525 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
1526 to...
1527 (amd64_windows_init_abi_common): ... this. Don't set size of
1528 long type.
1529 (amd64_windows_init_abi): New function.
1530 (amd64_cygwin_init_abi): New function.
1531 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
1532 the Cygwin OS ABI.
1533 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
1534 comment.
1535
8db52437
SM
15362020-03-16 Simon Marchi <simon.marchi@efficios.com>
1537
1538 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
1539 * windows-tdep.c (CYGWIN_DLL_NAME): New.
1540 (pe_import_directory_entry): New struct type.
1541 (is_linked_with_cygwin_dll): New function.
1542 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
1543 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
1544 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
1545
5982a56a
SM
15462020-03-16 Simon Marchi <simon.marchi@efficios.com>
1547
1548 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
1549 i386_cygwin_core_osabi_sniffer.
1550
7a1998df
SM
15512020-03-16 Simon Marchi <simon.marchi@efficios.com>
1552
1553 * i386-cygwin-tdep.c: Rename to...
1554 * i386-windows-tdep.c: ... this.
1555 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
1556 i386-windows-tdep.c.
1557 * configure.tgt: Likewise.
1558
053205cc
SM
15592020-03-16 Simon Marchi <simon.marchi@efficios.com>
1560
1561 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
1562 * osabi.c (gdb_osabi_names): Add "Windows".
1563 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
1564 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
1565 (i386_cygwin_core_osabi_sniffer): New function, extracted from
1566 i386_cygwin_osabi_sniffer.
1567 (_initialize_i386_cygwin_tdep): Register OS ABI
1568 GDB_OSABI_WINDOWS for i386.
1569 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
1570 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
1571 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
1572 for x86-64.
1573 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
1574 when the target matches '*-*-mingw*'.
1575
fe4b2ee6
SM
15762020-03-16 Simon Marchi <simon.marchi@efficios.com>
1577
1578 * defs.h (enum gdb_osabi): Move to...
1579 * osabi.h (enum gdb_osabi): ... here.
1580 * gdbarch.sh: Include osabi.h in gdbarch.h.
1581 * gdbarch.h: Re-generate.
1582
cb9b645d
SM
15832020-03-16 Simon Marchi <simon.marchi@efficios.com>
1584
1585 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
1586 function.
1587 (_initialize_amd64_windows_tdep): Register osabi sniffer.
1588
3293bbaf
TT
15892020-03-14 Tom Tromey <tom@tromey.com>
1590
1591 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
1592 for C++.
1593 (c_type_print_modifier): Likewise. Add "language" parameter.
1594 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
1595 (c_type_print_base_1): Update.
1596 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
1597 constants.
1598 * type-stack.c (type_stack::insert): Handle tp_atomic and
1599 tp_restrict.
1600 (type_stack::follow_type_instance_flags): Likewise.
1601 (type_stack::follow_types): Likewise. Merge type-following code.
1602 * c-exp.y (RESTRICT, ATOMIC): New tokens.
1603 (space_identifier, cv_with_space_id)
1604 (const_or_volatile_or_space_identifier_noopt)
1605 (const_or_volatile_or_space_identifier): Remove.
1606 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
1607 rules.
1608 (ptr_operator, typebase): Update.
1609 (enum token_flag) <FLAG_C>: New constant.
1610 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
1611 "_Atomic".
1612 (lex_one_token): Handle FLAG_C.
1613
154151a6
KR
16142020-03-14 Kamil Rytarowski <n54@gmx.com>
1615
1616 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
1617 it to the ptrace call.
1618 * m68k-bsd-nat.c (store_registers): Likewise.
1619
bc107784
KR
16202020-03-14 Kamil Rytarowski <n54@gmx.com>
1621
1622 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
1623 gdb_byte *.
1624 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
1625 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
1626 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
1627
01a80117
KR
16282020-03-14 Kamil Rytarowski <n54@gmx.com>
1629
1630 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
1631 nbsd_nat_target instead of inf_ptrace_target.
1632 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
1633 nbsd_nat_target.
1634
f90280ca
KR
16352020-03-14 Kamil Rytarowski <n54@gmx.com>
1636
1637 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
1638 register_t.
1639
6def66f1
KR
16402020-03-14 Kamil Rytarowski <n54@gmx.com>
1641
1642 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
1643 it to the ptrace call.
1644 * alpha-bsd-nat.c (store_registers): Likewise.
1645
66eaca97
KR
16462020-03-14 Kamil Rytarowski <n54@gmx.com>
1647
1648 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
1649 includes.
1650 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
1651 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
1652 fill_fpregset): Likewise.
1653
4fed520b
KR
16542020-03-14 Kamil Rytarowski <n54@gmx.com>
1655
1656 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
1657 nbsd_nat_target instead of inf_ptrace_target.
1658 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
1659 nbsd_nat_target.
1660
2190cf06
KR
16612020-03-14 Kamil Rytarowski <n54@gmx.com>
1662
1663 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
1664 register_t.
1665
75c56d3d
KR
16662020-03-14 Kamil Rytarowski <n54@gmx.com>
1667
1668 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
1669 it to the ptrace call.
1670 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
1671 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
1672 * arm-nbsd-nat.c (store_register): Likewise.
1673 * arm-nbsd-nat.c (store_regs): Likewise.
1674 * arm-nbsd-nat.c (store_fp_register): Likewise.
1675 * arm-nbsd-nat.c (store_fp_regs): Likewise.
1676
6018d381
KR
16772020-03-14 Kamil Rytarowski <n54@gmx.com>
1678
1679 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
1680 nbsd_nat_target instead of inf_ptrace_target.
1681 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
1682 nbsd_nat_target.
1683
013f99f0
KR
16842020-03-14 Kamil Rytarowski <n54@gmx.com>
1685
1686 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
1687 it to the ptrace call.
1688 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
1689
12753073
KR
16902020-03-14 Kamil Rytarowski <n54@gmx.com>
1691
6227b330
KR
1692 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
1693 it to the ptrace call.
1694 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
1695
16962020-03-14 Kamil Rytarowski <n54@gmx.com>
1697
1698 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
1699 gdb_byte *.
12753073
KR
1700 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
1701
d5be5fa4
KR
17022020-03-14 Kamil Rytarowski <n54@gmx.com>
1703
1704 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
1705 instead of inf_ptrace_target.
1706 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
1707 nbsd_nat_target.
1708
8110f842
KR
17092020-03-14 Kamil Rytarowski <n54@gmx.com>
1710
1711 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
1712 register_t.
1713
52feded7
KR
17142020-03-14 Kamil Rytarowski <n54@gmx.com>
1715
1716 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
1717 register_t.
1718
25567eee
KR
17192020-03-14 Kamil Rytarowski <n54@gmx.com>
1720
1721 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
1722 register_t.
1723
426a9c18
TT
17242020-03-13 Tom Tromey <tom@tromey.com>
1725
1726 * value.h (val_print): Don't declare.
1727 * valprint.h (val_print_array_elements)
1728 (val_print_scalar_formatted, generic_val_print): Don't declare.
1729 * valprint.c (generic_val_print_array): Take a struct value.
1730 (generic_val_print_ptr, generic_val_print_memberptr)
1731 (generic_val_print_bool, generic_val_print_int)
1732 (generic_val_print_char, generic_val_print_complex)
1733 (generic_val_print): Remove.
1734 (generic_value_print): Update.
1735 (do_val_print): Remove unused parameters. Don't call
1736 la_val_print.
1737 (val_print): Remove.
1738 (common_val_print): Update. Don't call value_check_printable.
1739 (val_print_scalar_formatted, val_print_array_elements): Remove.
1740 * rust-lang.c (rust_val_print): Remove.
1741 (rust_language_defn): Update.
1742 * p-valprint.c (pascal_val_print): Remove.
1743 (pascal_value_print_inner): Update.
1744 (pascal_object_print_val_fields, pascal_object_print_val):
1745 Remove.
1746 (pascal_object_print_static_field): Update.
1747 * p-lang.h (pascal_val_print): Don't declare.
1748 * p-lang.c (pascal_language_defn): Update.
1749 * opencl-lang.c (opencl_language_defn): Update.
1750 * objc-lang.c (objc_language_defn): Update.
1751 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
1752 * m2-lang.h (m2_val_print): Don't declare.
1753 * m2-lang.c (m2_language_defn): Update.
1754 * language.h (struct language_defn) <la_val_print>: Remove.
1755 * language.c (unk_lang_value_print_inner): Rename. Change
1756 argument types.
1757 (unknown_language_defn, auto_language_defn): Update.
1758 * go-valprint.c (go_val_print): Remove.
1759 * go-lang.h (go_val_print): Don't declare.
1760 * go-lang.c (go_language_defn): Update.
1761 * f-valprint.c (f_val_print): Remove.
1762 * f-lang.h (f_value_print): Don't declare.
1763 * f-lang.c (f_language_defn): Update.
1764 * d-valprint.c (d_val_print): Remove.
1765 * d-lang.h (d_value_print): Don't declare.
1766 * d-lang.c (d_language_defn): Update.
1767 * cp-valprint.c (cp_print_value_fields)
1768 (cp_print_value_fields_rtti, cp_print_value): Remove.
1769 (cp_print_static_field): Update.
1770 * c-valprint.c (c_val_print_array, c_val_print_ptr)
1771 (c_val_print_struct, c_val_print_union, c_val_print_int)
1772 (c_val_print_memberptr, c_val_print): Remove.
1773 * c-lang.h (c_val_print_array, cp_print_value_fields)
1774 (cp_print_value_fields_rtti): Don't declare.
1775 * c-lang.c (c_language_defn, cplus_language_defn)
1776 (asm_language_defn, minimal_language_defn): Update.
1777 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
1778 (ada_val_print_enum): Take a struct value.
1779 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
1780 (ada_val_print): Remove.
1781 (ada_value_print_1): Update.
1782 (printable_val_type): Remove.
1783 * ada-lang.h (ada_val_print): Don't declare.
1784 * ada-lang.c (ada_language_defn): Update.
1785
42331a1e
TT
17862020-03-13 Tom Tromey <tom@tromey.com>
1787
1788 * valprint.c (do_val_print): Update.
1789 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
1790 a struct value.
1791 (value_to_value_object_no_release): Declare.
1792 * python/py-value.c (value_to_value_object_no_release): New
1793 function.
1794 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
1795 struct value.
1796 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
1797 function.
1798 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
1799 a struct value.
1800 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
1801 Declare.
1802 (gdbscm_apply_val_pretty_printer): Take a struct value.
1803 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
1804 value.
1805 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
1806 value.
1807 * extension-priv.h (struct extension_language_ops)
1808 <apply_val_pretty_printer>: Take a struct value.
1809 * cp-valprint.c (cp_print_value): Create a struct value.
1810 (cp_print_value): Update.
1811
3a916a97
TT
18122020-03-13 Tom Tromey <tom@tromey.com>
1813
1814 * ada-valprint.c (print_field_values): Call common_val_print.
1815
b59eac37
TT
18162020-03-13 Tom Tromey <tom@tromey.com>
1817
1818 * ada-valprint.c (val_print_packed_array_elements): Remove
1819 bitoffset and val parameters. Call common_val_print.
1820 (ada_val_print_string): Remove offset, address, and original_value
1821 parameters.
1822 (ada_val_print_array): Update.
1823 (ada_value_print_array): New function.
1824 (ada_value_print_1): Call it.
1825
03371129
TT
18262020-03-13 Tom Tromey <tom@tromey.com>
1827
1828 * ada-valprint.c (ada_value_print): Use common_val_print.
1829
2e088f8b
TT
18302020-03-13 Tom Tromey <tom@tromey.com>
1831
1832 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
1833
39ef85a8
TT
18342020-03-13 Tom Tromey <tom@tromey.com>
1835
1836 * ada-valprint.c (ada_value_print_num): New function.
1837 (ada_value_print_1): Use it.
1838
b9fa6e07
TT
18392020-03-13 Tom Tromey <tom@tromey.com>
1840
1841 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
1842
416595d6
TT
18432020-03-13 Tom Tromey <tom@tromey.com>
1844
1845 * ada-valprint.c (ada_value_print_ptr): New function.
1846 (ada_value_print_1): Use it.
1847
5b5e15ec
TT
18482020-03-13 Tom Tromey <tom@tromey.com>
1849
1850 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
1851 call common_val_print.
1852 (ada_val_print_1): Update.
1853 (ada_value_print_1): New function.
1854 (ada_value_print_inner): Rewrite.
1855
fbf54e75
TT
18562020-03-13 Tom Tromey <tom@tromey.com>
1857
1858 * cp-valprint.c (cp_print_value_fields): Update.
1859 (cp_print_value): New function.
1860
64b653ca
TT
18612020-03-13 Tom Tromey <tom@tromey.com>
1862
1863 * m2-valprint.c (m2_value_print_inner): Use
1864 cp_print_value_fields.
1865 * cp-valprint.c (cp_print_value_fields): New function.
1866 * c-valprint.c (c_value_print_struct): New function.
1867 (c_value_print_inner): Use c_value_print_struct.
1868 * c-lang.h (cp_print_value_fields): Declare.
1869
6999f067
TT
18702020-03-13 Tom Tromey <tom@tromey.com>
1871
1872 * c-valprint.c (c_value_print_array): New function.
1873 (c_value_print_inner): Use it.
1874
ce80b8bd
TT
18752020-03-13 Tom Tromey <tom@tromey.com>
1876
1877 * c-valprint.c (c_value_print_memberptr): New function.
1878 (c_value_print_inner): Use it.
1879
2faac269
TT
18802020-03-13 Tom Tromey <tom@tromey.com>
1881
1882 * c-valprint.c (c_value_print_int): New function.
1883 (c_value_print_inner): Use it.
1884
da3e2c29
TT
18852020-03-13 Tom Tromey <tom@tromey.com>
1886
1887 * c-valprint.c (c_value_print_ptr): New function.
1888 (c_value_print_inner): Use it.
1889
50836231
TT
18902020-03-13 Tom Tromey <tom@tromey.com>
1891
1892 * c-valprint.c (c_value_print_inner): Rewrite.
1893
4f412b6e
TT
18942020-03-13 Tom Tromey <tom@tromey.com>
1895
1896 * valprint.c (generic_value_print_complex): New function.
1897 (generic_value_print): Use it.
1898
f5354008
TT
18992020-03-13 Tom Tromey <tom@tromey.com>
1900
1901 * valprint.c (generic_val_print_float): Don't call
1902 val_print_scalar_formatted.
1903 (generic_val_print, generic_value_print): Update.
1904
3eec3b05
TT
19052020-03-13 Tom Tromey <tom@tromey.com>
1906
1907 * valprint.c (generic_value_print_char): New function
1908 (generic_value_print): Use it.
1909
fdddfccb
TT
19102020-03-13 Tom Tromey <tom@tromey.com>
1911
1912 * valprint.c (generic_value_print_int): New function.
1913 (generic_value_print): Use it.
1914
6dde7521
TT
19152020-03-13 Tom Tromey <tom@tromey.com>
1916
1917 * valprint.c (generic_value_print_bool): New function.
1918 (generic_value_print): Use it.
1919
4112d2e6
TT
19202020-03-13 Tom Tromey <tom@tromey.com>
1921
1922 * valprint.c (generic_val_print_func): Simplify.
1923 (generic_val_print, generic_value_print): Update.
1924
65786af6
TT
19252020-03-13 Tom Tromey <tom@tromey.com>
1926
1927 * valprint.c (generic_val_print_flags): Remove.
1928 (generic_val_print, generic_value_print): Update.
1929 (val_print_type_code_flags): Add original_value parameter.
1930
40f3ce18
TT
19312020-03-13 Tom Tromey <tom@tromey.com>
1932
1933 * valprint.c (generic_val_print): Update.
1934 (generic_value_print): Update.
1935 * valprint.c (generic_val_print_enum): Don't call
1936 val_print_scalar_formatted.
1937
2a5b130b
TT
19382020-03-13 Tom Tromey <tom@tromey.com>
1939
1940 * valprint.c (generic_value_print): Call generic_value_print_ptr.
1941 * valprint.c (generic_value_print_ptr): New function.
1942
abc66ce9
TT
19432020-03-13 Tom Tromey <tom@tromey.com>
1944
1945 * valprint.c (generic_value_print): Rewrite.
1946
07a32858
TT
19472020-03-13 Tom Tromey <tom@tromey.com>
1948
1949 * p-valprint.c (pascal_object_print_value_fields)
1950 (pascal_object_print_value): New functions.
1951
64d64d3a
TT
19522020-03-13 Tom Tromey <tom@tromey.com>
1953
1954 * p-valprint.c (pascal_value_print_inner): Rewrite.
1955
6a95a1f5
TT
19562020-03-13 Tom Tromey <tom@tromey.com>
1957
1958 * f-valprint.c (f_value_print_innner): Rewrite.
1959
59fcdac6
TT
19602020-03-13 Tom Tromey <tom@tromey.com>
1961
1962 * m2-valprint.c (m2_print_unbounded_array): New overload.
1963 (m2_print_unbounded_array): Update.
1964 (m2_print_array_contents): Take a struct value.
1965 (m2_value_print_inner): Rewrite.
1966
d133c3e1
TT
19672020-03-13 Tom Tromey <tom@tromey.com>
1968
1969 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
1970 (d_value_print_inner): New function.
1971 * d-lang.h (d_value_print_inner): Declare.
1972 * d-lang.c (d_language_defn): Use d_value_print_inner.
1973
23b0f06b
TT
19742020-03-13 Tom Tromey <tom@tromey.com>
1975
1976 * go-valprint.c (go_value_print_inner): New function.
1977 * go-lang.h (go_value_print_inner): Declare.
1978 * go-lang.c (go_language_defn): Use go_value_print_inner.
1979
5f56f7cb
TT
19802020-03-13 Tom Tromey <tom@tromey.com>
1981
1982 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
1983 API.
1984 (rust_val_print): Rewrite.
1985 (rust_value_print_inner): New function, from rust_val_print.
1986 (rust_language_defn): Use rust_value_print_inner.
1987
26792ee0
TT
19882020-03-13 Tom Tromey <tom@tromey.com>
1989
1990 * ada-valprint.c (ada_value_print_inner): New function.
1991 * ada-lang.h (ada_value_print_inner): Declare.
1992 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
1993
24051bbe
TT
19942020-03-13 Tom Tromey <tom@tromey.com>
1995
1996 * f-valprint.c (f_value_print_innner): New function.
1997 * f-lang.h (f_value_print_innner): Declare.
1998 * f-lang.c (f_language_defn): Use f_value_print_innner.
1999
c0941be6
TT
20002020-03-13 Tom Tromey <tom@tromey.com>
2001
2002 * p-valprint.c (pascal_value_print_inner): New function.
2003 * p-lang.h (pascal_value_print_inner): Declare.
2004 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
2005
62c4663d
TT
20062020-03-13 Tom Tromey <tom@tromey.com>
2007
2008 * m2-valprint.c (m2_value_print_inner): New function.
2009 * m2-lang.h (m2_value_print_inner): Declare.
2010 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
2011
62182190
TT
20122020-03-13 Tom Tromey <tom@tromey.com>
2013
2014 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
2015 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
2016 * c-valprint.c (c_value_print_inner): New function.
2017 * c-lang.h (c_value_print_inner): Declare.
2018 * c-lang.c (c_language_defn, cplus_language_defn)
2019 (asm_language_defn, minimal_language_defn): Use
2020 c_value_print_inner.
2021
1e592a8a
TT
20222020-03-13 Tom Tromey <tom@tromey.com>
2023
2024 * p-valprint.c (pascal_object_print_value_fields): Now static.
2025 * p-lang.h (pascal_object_print_value_fields): Don't declare.
2026
7fe471e9
TT
20272020-03-13 Tom Tromey <tom@tromey.com>
2028
2029 * c-valprint.c (c_val_print_array): Simplify.
2030
d121c6ce
TT
20312020-03-13 Tom Tromey <tom@tromey.com>
2032
2033 * valprint.c (value_print_array_elements): New function.
2034 * valprint.h (value_print_array_elements): Declare.
2035
4dba70ee
TT
20362020-03-13 Tom Tromey <tom@tromey.com>
2037
2038 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
2039 * mips-tdep.c (mips_print_register): Use
2040 value_print_scalar_formatted.
2041
4f9ae810
TT
20422020-03-13 Tom Tromey <tom@tromey.com>
2043
2044 * valprint.h (value_print_scalar_formatted): Declare.
2045 * valprint.c (value_print_scalar_formatted): New function.
2046
156bfec9
TT
20472020-03-13 Tom Tromey <tom@tromey.com>
2048
2049 * valprint.h (generic_value_print): Declare.
2050 * valprint.c (generic_value_print): New function.
2051
2b4e573d
TT
20522020-03-13 Tom Tromey <tom@tromey.com>
2053
2054 * valprint.c (do_val_print): Call la_value_print_inner, if
2055 available.
2056 * rust-lang.c (rust_language_defn): Update.
2057 * p-lang.c (pascal_language_defn): Update.
2058 * opencl-lang.c (opencl_language_defn): Update.
2059 * objc-lang.c (objc_language_defn): Update.
2060 * m2-lang.c (m2_language_defn): Update.
2061 * language.h (struct language_defn) <la_value_print_inner>: New
2062 member.
2063 * language.c (unknown_language_defn, auto_language_defn): Update.
2064 * go-lang.c (go_language_defn): Update.
2065 * f-lang.c (f_language_defn): Update.
2066 * d-lang.c (d_language_defn): Update.
2067 * c-lang.c (c_language_defn, cplus_language_defn)
2068 (asm_language_defn, minimal_language_defn): Update.
2069 * ada-lang.c (ada_language_defn): Update.
2070
a1f6a07c
TT
20712020-03-13 Tom Tromey <tom@tromey.com>
2072
2073 * c-valprint.c (c_value_print): Use common_val_print.
2074
410cf315
TT
20752020-03-13 Tom Tromey <tom@tromey.com>
2076
2077 * cp-valprint.c (cp_print_static_field): Use common_val_print.
2078
72a45c93
TT
20792020-03-13 Tom Tromey <tom@tromey.com>
2080
2081 * f-valprint.c (f77_print_array_1, f_val_print): Use
2082 common_val_print.
2083
040f66bd
TT
20842020-03-13 Tom Tromey <tom@tromey.com>
2085
2086 * riscv-tdep.c (riscv_print_one_register_info): Use
2087 common_val_print.
2088
a6e05a6c
TT
20892020-03-13 Tom Tromey <tom@tromey.com>
2090
2091 * mi/mi-main.c (output_register): Use common_val_print.
2092
3444c526
TT
20932020-03-13 Tom Tromey <tom@tromey.com>
2094
2095 * infcmd.c (default_print_one_register_info): Use
2096 common_val_print.
2097
c2a44efe
TT
20982020-03-13 Tom Tromey <tom@tromey.com>
2099
2100 * valprint.h (common_val_print_checked): Declare.
2101 * valprint.c (common_val_print_checked): New function.
2102 * stack.c (print_frame_arg): Use common_val_print_checked.
2103
b0c26e99
TT
21042020-03-13 Tom Tromey <tom@tromey.com>
2105
2106 * valprint.c (do_val_print): New function, from val_print.
2107 (val_print): Use do_val_print.
2108 (common_val_print): Use do_val_print.
2109
ce3acbe9
TT
21102020-03-13 Tom Tromey <tom@tromey.com>
2111
2112 * valprint.c (value_print): Use scoped_value_mark.
2113
96c7f873
TV
21142020-03-13 Tom de Vries <tdevries@suse.de>
2115
2116 PR symtab/25646
2117 * psymtab.c (partial_symtab::partial_symtab): Don't set
2118 globals_offset and statics_offset. Push element onto
2119 current_global_psymbols and current_static_psymbols stacks.
2120 (concat): New function.
2121 (end_psymtab_common): Set globals_offset and statics_offset. Pop
2122 element from current_global_psymbols and current_static_psymbols
2123 stacks. Concat popped elements to global_psymbols and
2124 static_symbols.
2125 (add_psymbol_to_list): Use current_global_psymbols and
2126 current_static_psymbols stacks.
2127 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
2128 current_static_psymbols fields.
2129
6ba0a321
CB
21302020-03-12 Christian Biesinger <cbiesinger@google.com>
2131
2132 * corelow.c (sniff_core_bfd): Remove.
2133 (class core_target) <m_core_vec>: Remove.
2134 (core_target::core_target): Update.
2135 (core_file_fns): Remove.
2136 (deprecated_add_core_fns): Remove.
2137 (default_core_sniffer): Remove.
2138 (sniff_core_bfd): Remove.
2139 (default_check_format): Remove.
2140 (gdb_check_format): Remove.
2141 (core_target_open): Update.
2142 (core_target::get_core_register_section): Update.
2143 (get_core_registers_cb): Update.
2144 (core_target::fetch_registers): Update.
2145 * gdbcore.h (struct core_fns): Remove.
2146 (deprecated_add_core_fns): Remove.
2147 (default_core_sniffer): Remove.
2148 (default_check_format): Remove.
2149
227031b2
TT
21502020-03-12 Tom Tromey <tom@tromey.com>
2151
2152 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
2153 CORE_ADDR.
2154 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
2155
53807e9f
TT
21562020-03-12 Tom Tromey <tom@tromey.com>
2157
2158 * remote.c (remote_target::download_tracepoint)
2159 (remote_target::enable_tracepoint)
2160 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
2161 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
2162 sprintf_vma.
2163
64f25102
TT
21642020-03-12 Tom Tromey <tom@tromey.com>
2165
2166 * symfile-mem.c: Update CORE_ADDR size assert.
2167
272cd5a3
SM
21682020-03-12 Simon Marchi <simon.marchi@efficios.com>
2169
2170 * selftest.m4: Move to gdbsupport/.
2171 * acinclude.m4: Update path to selftest.m4.
2172
74cd3f9d
SM
21732020-03-12 Simon Marchi <simon.marchi@efficios.com>
2174
2175 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
2176 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
2177 gdbarch-selfselftests.c and selftest-arch.c.
2178 (SUBDIR_UNITTESTS_OBS): Rename to...
2179 (SELFTESTS_OBS): ... this.
2180 (COMMON_SFILES): Remove disasm-selftests.c and
2181 gdbarch-selftests.c.
2182 * configure.ac: Don't add selftest-arch.{c,o} to
2183 CONFIG_{SRCS,OBS}.
2184 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
2185 preprocessor conditions.
2186
db6878ac
SM
21872020-03-12 Simon Marchi <simon.marchi@efficios.com>
2188
2189 * configure.ac: Don't source bfd/development.sh.
2190 * selftest.m4: Modify comment.
2191 * configure: Re-generate.
2192
4d696a5c
SM
21932020-03-12 Simon Marchi <simon.marchi@efficios.com>
2194
2195 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
2196 not "true" or "false".
2197 * configure: Re-generate.
2198
8dd8e1c7
CB
21992020-03-12 Christian Biesinger <cbiesinger@google.com>
2200
2201 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
2202 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
2203 renamed to arm_nbsd_supply_gregset.
2204 (fetch_register): Update to call arm_nbsd_supply_gregset.
2205 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
2206 (arm_netbsd_nat_target::fetch_registers): Update.
2207 (fetch_elfcore_registers): Removed.
2208 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
2209 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
2210 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
2211 not require NetBSD system headers.
2212 (arm_nbsd_regset): New struct.
2213 (arm_nbsd_iterate_over_regset_sections): New function.
2214 (arm_netbsd_init_abi_common): Updated to call
2215 set_gdbarch_iterate_over_regset_sections.
2216 * arm-nbsd-tdep.h: New file.
2217
dd69bf7a
KB
22182020-03-11 Kevin Buettner <kevinb@redhat.com>
2219
2220 * symtab.c (find_pc_sect_line): Add check which prevents infinite
2221 recursion.
2222
a0761e34
SM
22232020-03-11 Simon Marchi <simon.marchi@efficios.com>
2224
2225 * configure: Re-generate.
2226
e7a82140
TT
22272020-03-11 Tom Tromey <tromey@adacore.com>
2228
2229 * ada-typeprint.c (print_choices): Fix comment.
2230
dcc050c8
AB
22312020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
2232
2233 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
2234 previous item in the list, when the list has no items.
2235
1c33af77
TV
22362020-03-11 Tom de Vries <tdevries@suse.de>
2237
2238 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
2239 PROP_LOCLIST handling code.
2240
8c95582d
AB
22412020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
2242
2243 * buildsym-legacy.c (record_line): Pass extra parameter to
2244 record_line.
2245 * buildsym.c (buildsym_compunit::record_line): Take an extra
2246 parameter, reduce duplication in the line table, and record the
2247 is_stmt flag in the line table.
2248 * buildsym.h (buildsym_compunit::record_line): Add extra
2249 parameter.
2250 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
2251 non-statement lines.
2252 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
2253 this to the symtab builder.
2254 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
2255 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
2256 through to dwarf_record_line_1.
2257 * infrun.c (process_event_stop_test): When stepping, don't stop at
2258 a non-statement instruction, and only refresh the step info when
2259 we land in the middle of a line's range. Also add an extra
2260 comment.
2261 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
2262 field.
2263 * record-btrace.c (btrace_find_line_range): Only record lines
2264 marked as is-statement.
2265 * stack.c (frame_show_address): Show the frame address if we are
2266 in a non-statement sal.
2267 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
2268 (maintenance_print_one_line_table): Print a header for the is_stmt
2269 column, and include is_stmt information in the output.
2270 * symtab.c (find_pc_sect_line): Find lines marked as statements in
2271 preference to non-statements.
2272 (find_pcs_for_symtab_line): Prefer is-statement entries.
2273 (find_line_common): Likewise.
2274 * symtab.h (struct linetable_entry): Add is_stmt field.
2275 (struct symtab_and_line): Likewise.
2276 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
2277 arranging the line table.
2278
e4003a34
TV
22792020-03-07 Tom de Vries <tdevries@suse.de>
2280
2281 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
2282 DIE.
2283
e8932576
TT
22842020-03-07 Tom Tromey <tom@tromey.com>
2285
2286 * valops.c (value_literal_complex): Remove obsolete comment.
2287 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
2288 comment.
2289
29734269
SM
22902020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
2291
2292 * infrun.h: Forward-declare thread_info.
2293 (set_step_info): Add thread_info parameter, add doc.
2294 * infrun.c (set_step_info): Add thread_info parameter, move doc
2295 to header.
2296 * infrun.c (process_event_stop_test): Pass thread to
2297 set_step_info call.
2298 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
2299 set_step_info.
2300 (prepare_one_step): Add thread_info parameter, pass it to
2301 set_step_frame and prepare_one_step (recursive) call.
2302 (step_1): Pass thread to prepare_one_step call.
2303 (step_command_fsm::should_stop): Pass thread to
2304 prepare_one_step.
2305 (until_next_fsm): Pass thread to set_step_frame call.
2306 (finish_command): Pass thread to set_step_info call.
2307
b7d64b29
HD
23082020-03-06 Hannes Domani <ssbssa@yahoo.de>
2309
2310 * windows-tdep.c (windows_solib_create_inferior_hook):
2311 Check if inferior is running.
2312
09f2921c
TV
23132020-03-06 Tom de Vries <tdevries@suse.de>
2314
2315 * NEWS: Fix "the the".
2316 * ctfread.c: Same.
2317
fd760e79
TV
23182020-03-06 Tom de Vries <tdevries@suse.de>
2319
2320 * psymtab.c (psymtab_to_symtab): Don't print "done.".
2321
20ea4a60
AB
23222020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2323
2324 * .dir-locals.el: Add a comment referencing the other copies of
2325 this file.
2326
0afbabf0
JB
23272020-03-05 John Baldwin <jhb@FreeBSD.org>
2328
2329 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
2330 psargs.
2331
842806cb
TBA
23322020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2333
2334 * .gitattributes: New file.
2335
be1e3d3e
TT
23362020-03-04 Tom Tromey <tom@tromey.com>
2337
2338 * symmisc.c (print_symbol_bcache_statistics)
2339 (print_objfile_statistics): Update.
2340 * symfile.c (allocate_symtab): Use intern.
2341 * psymtab.c (partial_symtab::partial_symtab): Use intern.
2342 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
2343 macro_cache>: Remove.
2344 <string_cache>: New member.
2345 (struct objfile) <intern>: New methods.
2346 * elfread.c (elf_symtab_read): Use intern.
2347 * dwarf2/read.c (fixup_go_packaging): Intern package name.
2348 (dwarf2_compute_name, dwarf2_physname)
2349 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
2350 names.
2351 (guess_partial_die_structure_name): Update.
2352 (partial_die_info::fixup): Intern name.
2353 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
2354 name.
2355 (dwarf2_name): Intern name. Update.
2356 * buildsym.c (buildsym_compunit::get_macro_table): Use
2357 string_cache.
2358
4e7625fd
TT
23592020-03-04 Tom Tromey <tom@tromey.com>
2360
2361 * jit.c (bfd_open_from_target_memory): Make "target" const.
2362 * corefile.c (gnutarget): Now const.
2363 * gdbcore.h (gnutarget): Now const.
2364
46f9f931
HD
23652020-03-04 Hannes Domani <ssbssa@yahoo.de>
2366
2367 * NEWS: Mention support for WOW64 processes.
2368 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
2369 (amd64_windows_segment_register_p): Remove static.
2370 (_initialize_amd64_windows_nat): Update.
2371 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
2372 * i386-windows-nat.c (context_offset): Update.
2373 (i386_mappings): Rename and remove static.
2374 (i386_windows_segment_register_p): Remove static.
2375 (_initialize_i386_windows_nat): Update.
2376 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
2377 (STATUS_WX86_SINGLE_STEP): New macro.
2378 (EnumProcessModulesEx): New macro.
2379 (Wow64SuspendThread): New macro.
2380 (Wow64GetThreadContext): New macro.
2381 (Wow64SetThreadContext): New macro.
2382 (Wow64GetThreadSelectorEntry): New macro.
2383 (windows_set_context_register_offsets): Add static.
2384 (windows_set_segment_register_p): Likewise.
2385 (windows_add_thread): Adapt for WOW64 processes.
2386 (windows_fetch_one_register): Likewise.
2387 (windows_nat_target::fetch_registers): Likewise.
2388 (windows_store_one_register): Likewise.
2389 (display_selector): Likewise.
2390 (display_selectors): Likewise.
2391 (handle_exception): Likewise.
2392 (windows_continue): Likewise.
2393 (windows_nat_target::resume): Likewise.
2394 (windows_add_all_dlls): Likewise.
2395 (do_initial_windows_stuff): Likewise.
2396 (windows_nat_target::attach): Likewise.
2397 (windows_get_exec_module_filename): Likewise.
2398 (windows_nat_target::create_inferior): Likewise.
2399 (windows_xfer_siginfo): Likewise.
2400 (_initialize_loadable): Initialize Wow64SuspendThread,
2401 Wow64GetThreadContext, Wow64SetThreadContext,
2402 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
2403 * windows-nat.h (windows_set_context_register_offsets):
2404 Remove declaration.
2405 (windows_set_segment_register_p): Likewise.
2406 (i386_windows_segment_register_p): Add declaration.
2407 (amd64_windows_segment_register_p): Likewise.
2408
440cf44e
LM
24092020-03-04 Luis Machado <luis.machado@linaro.org>
2410
2411 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
2412 in "info registers" for AArch64/ARM.
2413
2414 The change caused "info registers" to not print GPR's.
2415
2416 gdb/ChangeLog:
2417
2418 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
2419
2420 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
2421 when reg->group is empty and reggroup is not.
2422
1009d92f
TT
24232020-03-03 Tom Tromey <tromey@adacore.com>
2424
2425 * dwarf2/frame.c (struct dwarf2_frame_cache)
2426 <checked_tailcall_bottom, entry_cfa_sp_offset,
2427 entry_cfa_sp_offset_p>: Remove members.
2428 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
2429 (dwarf2_frame_prev_register): Don't call
2430 dwarf2_tailcall_sniffer_first.
2431 (dwarf2_append_unwinders): Don't append tailcall unwinder.
2432 * frame-unwind.c (add_unwinder): New fuction.
2433 (frame_unwind_init): Use it. Add tailcall unwinder.
2434
5e5d66b6
AB
24352020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
2436 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2437
2438 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
2439 value should be printed as true.
2440
584cf46d
HD
24412020-03-03 Hannes Domani <ssbssa@yahoo.de>
2442
2443 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
2444 (windows_init_abi): Set and use windows_so_ops.
2445
7b973adc
SDJ
24462020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
2447
2448 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
2449 when verifying if dealing with a convenience variable.
2450
bb7b70ab
LM
24512020-03-03 Luis Machado <luis.machado@linaro.org>
2452
2453 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
2454
9822cb57
SM
24552020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2456
2457 * infrun.c (gdbarch_supports_displaced_stepping): New.
2458 (use_displaced_stepping): Break up conditions in smaller pieces.
2459 Use gdbarch_supports_displaced_stepping.
2460 (displaced_step_prepare_throw): Use
2461 gdbarch_supports_displaced_stepping.
2462
63e163f2
AB
24632020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2464
2465 * NEWS: Mention new behaviour of the history filename.
2466 * top.c (write_history_p): Add comment.
2467 (show_write_history_p): Add header comment, give a different
2468 message when history writing is on, but the history filename is
2469 empty.
2470 (history_filename): Add comment.
2471 (history_filename_empty): New function.
2472 (show_history_filename): Add header comment, give a different
2473 message when the filename is empty.
2474 (init_history): Compare history_filename against nullptr, and only
2475 read history if the filename is not empty.
2476 (set_history_filename): Add header comment, and only make
2477 non-empty filenames absolute.
2478 (init_main): Make the filename argument to 'set history filename'
2479 optional.
2480
81b86b97
CB
24812020-03-02 Christian Biesinger <cbiesinger@google.com>
2482
2483 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
2484 (arm_supply_vfpregset): ...this, and update to use VFP registers.
2485 (fetch_fp_register): Update.
2486 (fetch_fp_regs): Update.
2487 (store_fp_register): Update.
2488 (store_fp_regs): Update.
2489 (arm_netbsd_nat_target::read_description): New function.
2490 (fetch_elfcore_registers): Update.
2491
24ed6739
AB
24922020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2493
2494 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
2495 general_thread if the stop reply is missing a thread-id.
2496 (remote_target::process_stop_reply): Use the first non-exited
2497 thread if the target didn't pass a thread-id.
2498 * infrun.c (do_target_wait): Move call to
2499 switch_to_inferior_no_thread to ....
2500 (do_target_wait_1): ... here.
2501
a84bb2a0
JT
25022020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
2503
2504 * debuginfod-support.c: Include defs.h first.
2505
658dadf0
TV
25062020-02-28 Tom de Vries <tdevries@suse.de>
2507
2508 * symfile.c (set_initial_language): Use default language for lookup.
2509
4ebe4877
SM
25102020-02-28 Simon Marchi <simon.marchi@efficios.com>
2511
2512 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
2513 reader variable, pass `this` to read_cutu_die_from_dwo.
2514
e5da1139
AM
25152020-02-27 Aaron Merey <amerey@redhat.com>
2516
2517 * source.c (open_source_file): Check for nullptr when computing
2518 srcpath.
2519
317f7127
TT
25202020-02-27 Tom Tromey <tromey@adacore.com>
2521
2522 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
2523 member.
2524 (dwarf2_add_field): Don't update nfields.
2525 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
2526
3104d9ee
AB
25272020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
2528
2529 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
2530 abs.
2531
b83470bf
TT
25322020-02-26 Tom Tromey <tom@tromey.com>
2533
2534 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
2535 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
2536 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
2537 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
2538 per_cu_data.
2539
edfe0a0c
TT
25402020-02-26 Tom Tromey <tom@tromey.com>
2541
2542 * dwarf2/index-write.c (psym_index_map): Change type.
2543 (add_address_entry_worker, write_one_signatured_type)
2544 (recursively_count_psymbols, recursively_write_psymbols)
2545 (class debug_names, psyms_seen_size, write_gdbindex)
2546 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
2547
0d79cdc4
AM
25482020-02-26 Aaron Merey <amerey@redhat.com>
2549
2550 * Makefile.in: Handle optional debuginfod support.
2551 * NEWS: Update.
2552 * README: Add --with-debuginfod summary.
2553 * config.in: Regenerate.
2554 * configure: Regenerate.
2555 * configure.ac: Handle optional debuginfod support.
2556 * debuginfod-support.c: debuginfod helper functions.
2557 * debuginfod-support.h: Ditto.
2558 * doc/gdb.texinfo: Add --with-debuginfod to configure options
2559 summary.
2560 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
2561 when a dwz file cannot be found.
2562 * elfread.c (elf_symfile_read): Query debuginfod servers when a
2563 debuginfo file cannot be found.
2564 * source.c (open_source_file): Query debuginfod servers when a
2565 source file cannot be found.
2566 * top.c (print_gdb_configuration): Include
2567 --{with,without}-debuginfod in the output.
2568
b65ce565
JG
25692020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
2570
2571 * thread.c (thr_try_catch_cmd): Print thread name.
2572
d4c9a4f8
SM
25732020-02-26 Simon Marchi <simon.marchi@efficios.com>
2574
2575 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
2576 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2577 dwarf2_fetch_die_type_sect_off): Move to...
2578 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2579 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2580 dwarf2_fetch_die_type_sect_off): ... here.
2581 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2582 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2583 dwarf2_fetch_die_type_sect_off): Move doc to header file.
2584
0dce4280
TV
25852020-02-26 Tom de Vries <tdevries@suse.de>
2586
2587 PR gdb/25603
2588 * symfile.c (set_initial_language): Exit-early if
2589 language_mode == language_mode_manual.
2590
450a1bfc
SM
25912020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
2592
2593 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
2594 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
2595 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
2596
9e80cfa1
AB
25972020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2598
2599 * gdbtypes.c (create_array_type_with_stride): Handle negative
2600 array strides.
2601 * valarith.c (value_subscripted_rvalue): Likewise.
2602
09624f1f
LM
26032020-02-25 Luis Machado <luis.machado@linaro.org>
2604
2605 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
2606
8cb5117c
SM
26072020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
2608
2609 * loc.h (dwarf2_get_die_type): Move to...
2610 * read.h (dwarf2_get_die_type): ... here.
2611 * read.c (dwarf2_get_die_type): Move doc to header.
2612
c325c44e
JB
26132020-02-25 Joel Brobecker <brobecker@adacore.com>
2614
2615 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
2616 'gnulib/Makefile.in' to the list.
2617
4ac93832
TT
26182020-02-24 Tom Tromey <tom@tromey.com>
2619
2620 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
2621 Remove.
2622 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
2623 XOBNEWVEC.
2624
197400e8
TT
26252020-02-24 Tom Tromey <tom@tromey.com>
2626
2627 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
2628 New method.
2629 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
2630 (dw2_do_instantiate_symtab, dw2_get_file_names)
2631 (build_type_psymtab_dependencies, load_full_type_unit): Update.
2632
76935768
TT
26332020-02-24 Tom Tromey <tom@tromey.com>
2634
2635 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
2636 make_scoped_restore.
2637 (dwarf2_psymtab::read_symtab): Don't clear
2638 reading_partial_symbols.
2639
a88ef40d
TV
26402020-02-24 Tom de Vries <tdevries@suse.de>
2641
2642 PR gdb/25592
2643 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
2644
c9af6521
TV
26452020-02-24 Tom de Vries <tdevries@suse.de>
2646
2647 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
2648 commands layout next/prev/regs.
2649
5707a07a
TT
26502020-02-22 Tom Tromey <tom@tromey.com>
2651
2652 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
2653 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
2654
3b0fb49e
TT
26552020-02-22 Tom Tromey <tom@tromey.com>
2656
2657 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
2658
283be8bf
TT
26592020-02-22 Tom Tromey <tom@tromey.com>
2660
2661 * tui/tui-win.c (_initialize_tui_win): Add usage text.
2662 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
2663 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
2664 * tui/tui.c (_initialize_tui): Add usage text.
2665
ca793b96
TT
26662020-02-22 Tom Tromey <tom@tromey.com>
2667
2668 * tui/tui-win.c (tui_set_focus_command)
2669 (tui_set_win_height_command): Use error_no_arg.
2670 (_initialize_tui_win): Update help text.
2671 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
2672
432b5c40
TT
26732020-02-22 Tom Tromey <tom@tromey.com>
2674
2675 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
2676 * tui/tui-disasm.h (struct tui_disasm_window)
2677 <display_start_addr>: Declare.
2678 * tui/tui-source.h (struct tui_source_window)
2679 <display_start_addr>: Declare.
2680 * tui/tui-winsource.h (struct tui_source_window_base)
2681 <show_source_line, display_start_addr>: New methods.
2682 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
2683 Rename and move to protected section.
2684 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
2685 (tui_source_window_base::do_erase_source_content): Update.
2686 (tui_source_window_base::show_source_line): Now a method.
2687 (tui_source_window_base::show_source_content)
2688 (tui_source_window_base::tui_source_window_base)
2689 (tui_source_window_base::rerender)
2690 (tui_source_window_base::refill)
2691 (tui_source_window_base::do_scroll_horizontal)
2692 (tui_source_window_base::set_is_exec_point_at)
2693 (tui_source_window_base::update_breakpoint_info)
2694 (tui_source_window_base::update_exec_info): Update.
2695 * tui/tui-source.c (tui_source_window::set_contents)
2696 (tui_source_window::showing_source_p)
2697 (tui_source_window::do_scroll_vertical)
2698 (tui_source_window::location_matches_p)
2699 (tui_source_window::line_is_displayed): Update.
2700 (tui_source_window::display_start_addr): New method.
2701 * tui/tui-disasm.c (tui_disasm_window::set_contents)
2702 (tui_disasm_window::do_scroll_vertical)
2703 (tui_disasm_window::location_matches_p): Update.
2704 (tui_disasm_window::display_start_addr): New method.
2705
01b1af32
TT
27062020-02-22 Tom Tromey <tom@tromey.com>
2707
2708 * NEWS: Add entry for gdb.register_window_type.
2709 * tui/tui-layout.h (window_factory): New typedef.
2710 (tui_register_window): Declare.
2711 * tui/tui-layout.c (saved_tui_windows): New global.
2712 (tui_apply_current_layout): Use it.
2713 (tui_register_window): New function.
2714 * python/python.c (do_start_initialization): Call
2715 gdbpy_initialize_tui.
2716 (python_GdbMethods): Add "register_window_type" function.
2717 * python/python-internal.h (gdbpy_register_tui_window)
2718 (gdbpy_initialize_tui): Declare.
2719 * python/py-tui.c: New file.
2720 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
2721
fc96d20b
TT
27222020-02-22 Tom Tromey <tom@tromey.com>
2723
2724 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
2725
935c78c0
TT
27262020-02-22 Tom Tromey <tom@tromey.com>
2727
2728 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
2729 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
2730 * tui/tui-data.c (tui_set_win_with_focus): Remove.
2731 (tui_set_win_focus_to): Move from tui-win.c.
2732
0240c8f1
TT
27332020-02-22 Tom Tromey <tom@tromey.com>
2734
2735 * tui/tui-layout.c (make_standard_window, get_locator_window): New
2736 functions.
2737 (known_window_types): New global.
2738 (tui_get_window_by_name): Reimplement.
2739 (initialize_known_windows): New function.
2740 (validate_window_name): Rewrite.
2741 (_initialize_tui_layout): Call initialize_known_windows.
2742
fdb01f0c
TT
27432020-02-22 Tom Tromey <tom@tromey.com>
2744
2745 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
2746 Remove constants.
2747 * tui/tui-winsource.h (struct tui_source_window_base)
2748 <tui_source_window_base>: Remove parameter.
2749 * tui/tui-winsource.c
2750 (tui_source_window_base::tui_source_window_base): Remove
2751 parameter.
2752 (tui_source_window_base::refill): Update.
2753 * tui/tui-stack.h (struct tui_locator_window)
2754 <tui_locator_window>: Update.
2755 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
2756 Default the constructor.
2757 * tui/tui-regs.h (struct tui_data_item_window)
2758 <tui_data_item_window>: Default the constructor.
2759 (struct tui_data_window) <tui_data_window>: Likewise.
2760 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
2761 Default the constructor.
2762 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
2763 Default the constructor.
2764 <type>: Remove.
2765 (struct tui_win_info) <tui_win_info>: Default the constructor.
2766 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
2767 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2768 Default the constructor.
2769
865a5aec
TT
27702020-02-22 Tom Tromey <tom@tromey.com>
2771
2772 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
2773 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
2774 * tui/tui-win.c (tui_resize_all): Don't call
2775 tui_delete_invisible_windows.
2776 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
2777 done.
2778 (tui_set_layout): Update.
2779 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
2780 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
2781 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
2782
e098d18c
TT
27832020-02-22 Tom Tromey <tom@tromey.com>
2784
2785 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
2786 correctly.
2787
eb9c8874
TT
27882020-02-22 Tom Tromey <tom@tromey.com>
2789
2790 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
2791
7eed1a8e
TT
27922020-02-22 Tom Tromey <tom@tromey.com>
2793
2794 * tui/tui-winsource.h (struct tui_source_window_iterator)
2795 <inner_iterator>: New etytypedef.
2796 <tui_source_window_iterator>: Take "end" parameter.
2797 <tui_source_window_iterator>: Take iterator.
2798 <operator*, advance>: Update.
2799 <m_iter>: Change type.
2800 <m_end>: New field.
2801 (struct tui_source_windows) <begin, end>: Update.
2802 * tui/tui-layout.c (tui_windows): New global.
2803 (tui_apply_current_layout): Clear tui_windows.
2804 (tui_layout_window::apply): Update tui_windows.
2805 * tui/tui-data.h (tui_windows): Declare.
2806 (all_tui_windows): Now inline function.
2807 (class tui_window_iterator, struct all_tui_windows): Remove.
2808
7c043ba6
TT
28092020-02-22 Tom Tromey <tom@tromey.com>
2810
2811 PR tui/17850:
2812 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
2813 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
2814 "height" argument.
2815 (class tui_layout_window) <get_sizes>: Likewise.
2816 (class tui_layout_split) <tui_layout_split>: Add "vertical"
2817 argument.
2818 <get_sizes>: Add "height" argument.
2819 <m_vertical>: New field.
2820 * tui/tui-layout.c (tui_layout_split::clone): Update.
2821 (tui_layout_split::get_sizes): Add "height" argument.
2822 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
2823 (tui_new_layout_command): Parse "-horizontal".
2824 (_initialize_tui_layout): Update help string.
2825 (tui_layout_split::specification): Add "-horizontal" when needed.
2826 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
2827 argument.
2828 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
2829 New methods.
2830
6bc56648
TT
28312020-02-22 Tom Tromey <tom@tromey.com>
2832
2833 * tui/tui-layout.h (enum tui_adjust_result): New.
2834 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
2835 (class tui_layout_window) <adjust_size>: Return
2836 tui_adjust_result. Rewrite.
2837 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
2838 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
2839
c22fef7e
TT
28402020-02-22 Tom Tromey <tom@tromey.com>
2841
2842 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
2843 parameter and return types.
2844 (class tui_layout_base) <specification>: Add "depth".
2845 (class tui_layout_window) <specification>: Add "depth".
2846 (class tui_layout_split) <specification>: Add "depth".
2847 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
2848 and return types.
2849 (tui_new_layout_command): Parse sub-layouts.
2850 (_initialize_tui_layout): Update help string.
2851 (tui_layout_window::specification): Add "depth".
2852 (add_layout_command): Update.
2853
ee325b61
TT
28542020-02-22 Tom Tromey <tom@tromey.com>
2855
2856 * NEWS: Add "tui new-layout" item.
2857 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
2858 Add new-layout command to help text.
2859 (validate_window_name): New function.
2860 (tui_new_layout_command): New function.
2861 (_initialize_tui_layout): Register "new-layout".
2862 (tui_layout_window::specification): New method.
2863 (tui_layout_window::specification): New method.
2864 * tui/tui-layout.h (class tui_layout_base) <specification>: New
2865 method.
2866 (class tui_layout_window) <specification>: New method.
2867 (class tui_layout_split) <specification>: New method.
2868
416eb92d
TT
28692020-02-22 Tom Tromey <tom@tromey.com>
2870
2871 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
2872 * tui/tui-win.c (window_name_completer): Update comment.
2873 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
2874 Declare method.
2875 (class tui_layout_window) <replace_window>: Likewise.
2876 (class tui_layout_split) <replace_window>: Likewise.
2877 (tui_set_layout): Don't declare.
2878 (tui_set_initial_layout): Declare function.
2879 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
2880 (asm_regs_layout): New globals.
2881 (tui_current_layout, show_layout): Remove.
2882 (tui_set_layout, tui_add_win_to_layout): Rewrite.
2883 (find_layout, tui_apply_layout): New function.
2884 (layout_completer): Remove.
2885 (tui_next_layout): Reimplement.
2886 (tui_next_layout_command): New function.
2887 (tui_set_initial_layout, tui_prev_layout_command): New functions.
2888 (tui_regs_layout): Reimplement.
2889 (tui_regs_layout_command): New function.
2890 (extract_display_start_addr): Rewrite.
2891 (next_layout, prev_layout): Remove.
2892 (tui_layout_window::replace_window): New method.
2893 (tui_layout_split::replace_window): New method.
2894 (destroy_layout): New function.
2895 (layout_list): New global.
2896 (add_layout_command): New function.
2897 (initialize_layouts): Update.
2898 (tui_layout_command): New function.
2899 (_initialize_tui_layout): Install "layout" commands.
2900 * tui/tui-data.h (enum tui_layout_type): Remove.
2901 (tui_current_layout): Don't declare.
2902
0dbc2fc7
TT
29032020-02-22 Tom Tromey <tom@tromey.com>
2904
2905 * tui/tui-regs.c (tui_reg_layout): Remove.
2906 (tui_reg_command): Use tui_regs_layout.
2907 * tui/tui-layout.h (tui_reg_command): Declare.
2908 * tui/tui-layout.c (tui_reg_command): New function.
2909
5afe342e
TT
29102020-02-22 Tom Tromey <tom@tromey.com>
2911
2912 * tui/tui.c (tui_rl_delete_other_windows): Call
2913 tui_remove_some_windows.
2914 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
2915 Declare method.
2916 (class tui_layout_window) <remove_windows>: New method.
2917 (class tui_layout_split) <remove_windows>: Declare.
2918 (tui_remove_some_windows): Declare.
2919 * tui/tui-layout.c (tui_remove_some_windows): New function.
2920 (tui_layout_split::remove_windows): New method.
2921
427326a8
TT
29222020-02-22 Tom Tromey <tom@tromey.com>
2923
2924 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
2925 * tui/tui-layout.h (tui_next_layout): Declare.
2926 * tui/tui-layout.c (tui_next_layout): New function.
2927
3fe12b6d
TT
29282020-02-22 Tom Tromey <tom@tromey.com>
2929
2930 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
2931 correct coordinates.
2932
59b8b5d2
TT
29332020-02-22 Tom Tromey <tom@tromey.com>
2934
2935 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
2936 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
2937 DATA_WIN case.
2938
2a3d458b
TT
29392020-02-22 Tom Tromey <tom@tromey.com>
2940
2941 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
2942 TUI_DISASM_WIN, not tui_win_list.
2943
3f0cbb04
TT
29442020-02-22 Tom Tromey <tom@tromey.com>
2945
2946 * valprint.c (generic_val_print_enum_1)
2947 (val_print_type_code_flags): Style member names.
2948 * rust-lang.c (val_print_struct, rust_print_enum)
2949 (rust_print_struct_def, rust_internal_print_type): Style member
2950 names.
2951 * p-valprint.c (pascal_object_print_value_fields): Style member
2952 names. Only call fprintf_symbol_filtered for static members.
2953 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
2954 * f-valprint.c (f_val_print): Style member names.
2955 * f-typeprint.c (f_type_print_base): Style member names.
2956 * cp-valprint.c (cp_print_value_fields): Style member names. Only
2957 call fprintf_symbol_filtered for static members.
2958 (cp_print_class_member): Style member names.
2959 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
2960 member names.
2961 * ada-valprint.c (ada_print_scalar): Style enum names.
2962 (ada_val_print_enum): Likewise.
2963 * ada-typeprint.c (print_enum_type): Style enum names.
2964
d4d947ae
TT
29652020-02-21 Tom Tromey <tom@tromey.com>
2966
2967 * psympriv.h (struct partial_symtab): Update comment.
2968
e94e944b
TT
29692020-02-21 Tom Tromey <tromey@adacore.com>
2970
2971 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
2972 type is CORE_ADDR.
2973
1eb73179
TV
29742020-02-21 Tom de Vries <tdevries@suse.de>
2975
2976 PR gdb/25534
2977 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
2978 if dependencies[i]->user != NULL.
2979
4f180d53
AT
29802020-02-21 Ali Tamur <tamur@google.com>
2981
2982 * dwarf2/read.c (dwarf2_name): Add null check.
2983
22b6cd70
TT
29842020-02-20 Tom Tromey <tom@tromey.com>
2985
2986 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
2987 ">=", in binary search.
2988 (dwarf2_find_containing_comp_unit): New overload.
2989 (run_test): New self-test.
2990 (_initialize_dwarf2_read): Register new test.
2991
bd0cf5a6
NC
29922020-02-20 Nelson Chu <nelson.chu@sifive.com>
2993
2994 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
2995 * riscv-tdep.h: Likewise.
2996 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
2997 rv32-only CSR.
2998 * features/riscv/64bit-csr.xml: Regenerated.
2999
3f702acd
SDJ
30002020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3001 Tom Tromey <tom@tromey.com>
3002
3003 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
3004 of 'fputc_unfiltered'.
3005 (putchar_unfiltered): Call 'fputc_unfiltered'.
3006 (fputc_unfiltered): Call 'fputs_unfiltered'.
3007
d13c7322
AB
30082020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
3009
3010 * config.in: Regenerate.
3011 * configure: Regenerate.
3012 * configure.ac: Add --with-python-libdir option.
3013 * main.c: Use WITH_PYTHON_LIBDIR.
3014
869d8950
TT
30152020-02-19 Tom Tromey <tom@tromey.com>
3016
3017 * symtab.c (general_symbol_info::compute_and_set_names): Use
3018 obstack_strndup. Simplify call to symbol_set_demangled_name.
3019
298e9637
SM
30202020-02-19 Simon Marchi <simon.marchi@efficios.com>
3021
3022 * dwarf2/read.c (allocate_signatured_type_table,
3023 allocate_dwo_unit_table, allocate_type_unit_groups_table,
3024 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
3025 Remove objfile parameter, update all callers.
3026
08410482
DE
30272020-02-19 Doug Evans <dje@google.com>
3028
3029 PR rust/25535
3030 * rust-lang.c (rust_print_enum): Apply embedded_offset to
3031 rust_enum_variant calculation.
3032
dfdeeca1
TT
30332020-02-19 Tom Tromey <tromey@adacore.com>
3034
3035 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
3036
2ef5453b
TT
30372020-02-19 Tom Tromey <tromey@adacore.com>
3038
3039 * ada-lang.c (cache_symbol): Use obstack_strdup.
3040
9f1528a1
AB
30412020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3042
3043 * configure: Regenerate.
3044
d3c22fa8
TT
30452020-02-19 Tom Tromey <tromey@adacore.com>
3046
3047 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
3048 NULL check.
3049
bf84f706
MR
30502020-02-19 Maciej W. Rozycki <macro@wdc.com>
3051
3052 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
3053
d1c9b20f
AB
30542020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3055
3056 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
3057 if GDBSERVER is not defined.
3058 (riscv_tdesc_cache): Likewise, also store const target_desc.
3059 (STATIC_IN_GDB): Define.
3060 (riscv_create_target_description): Update declaration with
3061 STATIC_IN_GDB.
3062 (riscv_lookup_target_description): New function, only define if
3063 GDBSERVER is not defined.
3064 * arch/riscv.h (riscv_create_target_description): Declare only
3065 when GDBSERVER is defined.
3066 (riscv_lookup_target_description): New declaration when GDBSERVER
3067 is not defined.
3068 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
3069 (riscv_linux_read_features): ...this, and return
3070 riscv_gdbarch_features instead of target_desc.
3071 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
3072 (riscv_linux_read_description): Rename to...
3073 (riscv_linux_read_features): ...this.
3074 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
3075 Update to use riscv_gdbarch_features and
3076 riscv_lookup_target_description.
3077 * riscv-tdep.c (riscv_find_default_target_description): Use
3078 riscv_lookup_target_description instead of
3079 riscv_create_target_description.
3080
373d7ac0
SM
30812020-02-18 Simon Marchi <simon.marchi@efficios.com>
3082
3083 * valprint.c (generic_val_print_enum_1): When printing a flag
3084 enum with value 0 and there is no enumerator with value 0, print
3085 just "0" instead of "(unknown: 0x0)".
3086
b29a2df0
SM
30872020-02-18 Simon Marchi <simon.marchi@efficios.com>
3088
3089 * valprint.c (generic_val_print_enum_1): Print unknown part of
3090 flag enum in hex.
3091
6740f0cc
SM
30922020-02-18 Simon Marchi <simon.marchi@efficios.com>
3093
3094 * dwarf2/read.c (update_enumeration_type_from_children): Allow
3095 flag enums to contain duplicate enumerators.
3096 * valprint.c (generic_val_print_enum_1): Update comment.
3097
edd45eb0
SM
30982020-02-18 Simon Marchi <simon.marchi@efficios.com>
3099
3100 * dwarf2/read.c: Include "count-one-bits.h".
3101 (update_enumeration_type_from_children): If an enumerator has
3102 multiple bits set, don't treat the enumeration as a "flag enum".
3103 * valprint.c (generic_val_print_enum_1): Assert that enumerators
3104 of flag enums have 0 or 1 bit set.
3105
6d0cf446
BE
31062020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
3107
3108 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
3109 conversion.
3110 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
3111 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3112 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3113 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
3114 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
3115
7001c1b7
SM
31162020-02-18 Simon Marchi <simon.marchi@efficios.com>
3117
3118 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
3119
fdb61c6c
SM
31202020-02-14 Simon Marchi <simon.marchi@efficios.com>
3121
3122 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
3123 displaced_step_closure_up.
3124 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
3125 (struct displaced_step_closure_up):
3126 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
3127 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
3128 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
3129 Likewise.
3130 * gdbarch.sh (displaced_step_copy_insn): Likewise.
3131 * gdbarch.c, gdbarch.h: Re-generate.
3132 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
3133 displaced_step_closure_up.
3134 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3135 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
3136 * infrun.h (displaced_step_closure_up): New type alias.
3137 (struct displaced_step_inferior_state) <step_closure>: Change
3138 type to displaced_step_closure_up.
3139 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
3140 displaced_step_closure_up.
3141 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
3142
a4a38eb4
TT
31432020-02-14 Tom Tromey <tom@tromey.com>
3144
3145 * minidebug.c (gnu_debug_key): New global.
3146 (find_separate_debug_file_in_section): Use it.
3147
e8217e61
SM
31482020-02-14 Simon Marchi <simon.marchi@efficios.com>
3149
3150 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
3151 std::unique_ptr.
3152 * gdbarch.c: Re-generate.
3153 * gdbarch.h: Re-generate.
3154 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
3155 change.
3156 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
3157 type to std::unique_ptr.
3158 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
3159 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
3160 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
3161 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3162 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
3163 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3164 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
3165 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
3166 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
3167
d8d83535
SM
31682020-02-14 Simon Marchi <simon.marchi@efficios.com>
3169
3170 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
3171 std::unique_ptr.
3172 (displaced_step_clear): Rename to...
3173 (displaced_step_reset): ... this. Just call displaced->reset ().
3174 (displaced_step_clear_cleanup): Rename to...
3175 (displaced_step_reset_cleanup): ... this.
3176 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
3177 (displaced_step_fixup): Likewise.
3178 (resume_1): Likewise.
3179 (handle_inferior_event): Restore child's memory before calling
3180 displaced_step_fixup on the parent.
3181 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
3182 to std::unique_ptr.
3183 <step_closure>: Change type to std::unique_ptr.
3184
5f661e03
SM
31852020-02-14 Simon Marchi <simon.marchi@efficios.com>
3186
3187 * arm-tdep.c: Include count-one-bits.h.
3188 (cleanup_block_store_pc): Use count_one_bits.
3189 (cleanup_block_load_pc): Use count_one_bits.
3190 (arm_copy_block_xfer): Use count_one_bits.
3191 (thumb2_copy_block_xfer): Use count_one_bits.
3192 (thumb_copy_pop_pc_16bit): Use count_one_bits.
3193 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
3194 (thumb_get_next_pcs_raw): Use count_one_bits.
3195 (arm_get_next_pcs_raw): Use count_one_bits_l.
3196 * arch/arm.c (bitcount): Remove.
3197 * arch/arm.h (bitcount): Remove.
3198
8084e579
TT
31992020-02-14 Tom Tromey <tromey@adacore.com>
3200
3201 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
3202 Update.
3203 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
3204 * dwarf2/loc.c (call_site_find_chain_1): Return
3205 unique_xmalloc_ptr.
3206 (call_site_find_chain): Likewise.
3207
258bf0ee
RB
32082020-02-14 Richard Biener <rguenther@suse.de>
3209
3210 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
3211 on expression with division operators.
3212
f98a8458
AKS
32132020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3214
3215 * MAINTAINERS (Write After Approval): Adding myself.
3216
d1437c0e
TT
32172020-02-12 Tom Tromey <tom@tromey.com>
3218
3219 * event-loop.c (event_data, gdb_event, event_handler_func):
3220 Remove.
3221
3d4560f7
TT
32222020-02-12 Tom Tromey <tom@tromey.com>
3223
3224 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
3225 (dwarf2_frame_objfile_data): Add comment.
3226 (find_comp_unit, set_comp_unit): New functions.
3227 (dwarf2_frame_find_fde): Use find_comp_unit.
3228 (dwarf2_build_frame_info): Use set_comp_unit.
3229
21982304
TT
32302020-02-12 Tom Tromey <tom@tromey.com>
3231
3232 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
3233 (comp_unit): Don't initialize objfile.
3234 (execute_cfa_program): Add text_offset parameter.
3235 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
3236 (dwarf2_frame_cache): Update.
3237 (dwarf2_build_frame_info): Don't set "objfile" member.
3238
4debb237
TT
32392020-02-12 Tom Tromey <tom@tromey.com>
3240
3241 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
3242 (decode_frame_entry): Likewise.
3243 (dwarf2_build_frame_info): Update.
3244
0d404d44
TT
32452020-02-12 Tom Tromey <tom@tromey.com>
3246
3247 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
3248 (decode_frame_entry_1): Use the comp_unit obstack.
3249
a7a3ae5c
TT
32502020-02-12 Tom Tromey <tom@tromey.com>
3251
3252 * dwarf2/frame.c (struct comp_unit): Add initializers and
3253 constructor.
3254 (dwarf2_frame_objfile_data): Store a comp_unit.
3255 (dwarf2_frame_find_fde): Update.
3256 (dwarf2_build_frame_info): Use "new".
3257
a9d65418
TT
32582020-02-12 Tom Tromey <tom@tromey.com>
3259
3260 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
3261 (dwarf2_fde_table): Typedef for std::vector.
3262 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
3263 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
3264 (decode_frame_entry): Update.
3265 (dwarf2_build_frame_info): Use "new".
3266
7559c217
CB
32672020-02-12 Christian Biesinger <cbiesinger@google.com>
3268
3269 * arm-tdep.c (arm_gdbarch_init): Update.
3270 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
3271 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
3272 have_neon, is_m>: Change to bool.
3273
aeefc73c
CB
32742020-02-12 Christian Biesinger <cbiesinger@google.com>
3275
3276 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
3277
d27b8e5f
TT
32782020-02-12 Tom Tromey <tom@tromey.com>
3279
3280 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
3281
cd5900f3
HD
32822020-02-12 Hannes Domani <ssbssa@yahoo.de>
3283
3284 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
3285 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
3286
f056b22b
TT
32872020-02-11 Tom Tromey <tom@tromey.com>
3288
3289 * psymtab.h: Update comment.
3290
f92ff6b5
TT
32912020-02-11 Tom Tromey <tom@tromey.com>
3292
3293 * gdb_obstack.h (struct auto_obstack): Use
3294 DISABLE_COPY_AND_ASSIGN.
3295
3fd6912b
TT
32962020-02-11 Tom Tromey <tom@tromey.com>
3297
3298 * dwarf2/frame.h (struct objfile): Don't forward declare.
3299
69ed9b74
CB
33002020-02-11 Christian Biesinger <cbiesinger@google.com>
3301
3302 * cris-tdep.c (cris_supply_gregset): Change signature to match
3303 what struct regset expects.
3304 (cris_regset): New struct.
3305 (fetch_core_registers): Remove.
3306 (cris_iterate_over_regset_sections): New function.
3307 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
3308 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
3309
bda874f6
CB
33102020-02-11 Christian Biesinger <cbiesinger@google.com>
3311
3312 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
3313 registers.
3314
754e1564
CB
33152020-02-11 Christian Biesinger <cbiesinger@google.com>
3316
3317 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
3318
8ddd8e0e
SM
33192020-02-11 Simon Marchi <simon.marchi@efficios.com>
3320
3321 * configure: Re-generate.
3322
898e7f60
SM
33232020-02-11 Simon Marchi <simon.marchi@efficios.com>
3324
3325 * configure: Re-generate.
3326
58df732b
SM
33272020-02-11 Simon Marchi <simon.marchi@efficios.com>
3328
3329 * acinclude: Update warning.m4 path.
3330 * warning.m4: Move to gdbsupport.
3331
da5bd37e
TT
33322020-02-11 Tom Tromey <tromey@adacore.com>
3333
3334 * remote.c (remote_console_output): Update.
3335 * printcmd.c (printf_command): Update.
3336 * event-loop.c (gdb_wait_for_event): Update.
3337 * linux-nat.c (sigchld_handler): Update.
3338 * remote-sim.c (gdb_os_write_stdout): Update.
3339 (gdb_os_flush_stdout): Update.
3340 (gdb_os_flush_stderr): Update.
3341 (gdb_os_write_stderr): Update.
3342 * exceptions.c (print_exception): Update.
3343 * remote-fileio.c (remote_fileio_func_read): Update.
3344 (remote_fileio_func_write): Update.
3345 * tui/tui.c (tui_enable): Update.
3346 * tui/tui-interp.c (tui_interp::init): Update.
3347 * utils.c (init_page_info): Update.
3348 (putchar_unfiltered, fputc_unfiltered): Update.
3349 (gdb_flush): Update.
3350 (emit_style_escape): Update.
3351 (flush_wrap_buffer, fputs_maybe_filtered): Update.
3352 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
3353 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
3354 (stderr_file::write): Update.
3355 (stderr_file::puts): Update.
3356 * ui-file.h (ui_file_isatty, ui_file_write)
3357 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
3358 (ui_file_puts): Don't declare.
3359
85f0dd3c
TV
33602020-02-10 Tom de Vries <tdevries@suse.de>
3361
3362 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
3363 sentinel to char *.
3364
2e927613
TV
33652020-02-09 Tom de Vries <tdevries@suse.de>
3366
3367 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
3368 filename if it matches "<artificial>".
3369
6bafc845
HD
33702020-02-09 Hannes Domani <ssbssa@yahoo.de>
3371
3372 * windows-tdep.c (struct enum_value_name): New struct.
3373 (create_enum): New function.
3374 (windows_get_siginfo_type): Create and use enum types.
3375
7928d571
HD
33762020-02-09 Hannes Domani <ssbssa@yahoo.de>
3377
3378 * NEWS: Mention $_siginfo support for Windows.
3379 * windows-nat.c (handle_exception): Set siginfo_er.
3380 (windows_nat_target::mourn_inferior): Reset siginfo_er.
3381 (windows_xfer_siginfo): New function.
3382 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
3383 * windows-tdep.c (struct windows_gdbarch_data): New struct.
3384 (init_windows_gdbarch_data): New function.
3385 (get_windows_gdbarch_data): New function.
3386 (windows_get_siginfo_type): New function.
3387 (windows_init_abi): Register windows_get_siginfo_type.
3388 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
3389
6751ebae
TT
33902020-02-08 Tom Tromey <tom@tromey.com>
3391
3392 * dwarf2/read.c (class cutu_reader) <cutu_reader,
3393 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
3394 <keep>: Declare method.
3395 <m_keep>: Remove member.
3396 <~cutu_reader>: Remove.
3397 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3398 (cutu_reader::cutu_reader): Update.
3399 (cutu_reader::keep): Rename from ~cutu_reader.
3400 (process_psymtab_comp_unit, build_type_psymtabs_1)
3401 (process_skeletonless_type_unit, load_partial_comp_unit)
3402 (load_full_comp_unit, dwarf2_read_addr_index)
3403 (read_signatured_type): Update.
3404
135f5437
TT
34052020-02-08 Tom Tromey <tom@tromey.com>
3406
3407 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
3408 "want_partial_unit" parameter.
3409 (process_psymtab_comp_unit): Change want_partial_unit to bool.
3410 Inline check for DW_TAG_partial_unit.
3411 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
3412
9f66ff1c
TT
34132020-02-08 Tom Tromey <tom@tromey.com>
3414
3415 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
3416 read.c.
3417 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
3418 read.c.
3419
c8a7a66f
TT
34202020-02-08 Tom Tromey <tom@tromey.com>
3421
3422 * dwarf2/read.c (read_address): Move to comp-unit.c.
3423 (dwarf2_rnglists_process, dwarf2_ranges_process)
3424 (read_attribute_value, dwarf_decode_lines_1)
3425 (var_decode_location, decode_locdesc): Update.
3426 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
3427 read.c. Remove "cu" parameter.
3428 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
3429 method.
3430
8266302d
TT
34312020-02-08 Tom Tromey <tom@tromey.com>
3432
3433 * dwarf2/read.c (read_attribute_value, read_indirect_string)
3434 (read_indirect_line_string): Update.
3435 * dwarf2/comp-unit.c (read_offset): Remove.
3436 (read_comp_unit_head): Update.
3437 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
3438 method.
3439 (read_offset): Don't declare.
3440
4057dfde
TT
34412020-02-08 Tom Tromey <tom@tromey.com>
3442
3443 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
3444 * dwarf2/read.c (struct comp_unit_head): Move to
3445 dwarf2/comp-unit.h.
3446 (enum class rcuh_kind): Move to comp-unit.h.
3447 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
3448 (read_comp_unit_head, error_check_comp_unit_head)
3449 (read_and_check_comp_unit_head): Move to comp-unit.c.
3450 (read_offset, dwarf_unit_type_name): Likewise.
3451 (create_debug_type_hash_table, read_cutu_die_from_dwo)
3452 (cutu_reader::cutu_reader, read_call_site_scope)
3453 (find_partial_die, follow_die_offset): Update.
3454 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
3455
24aa364d
TT
34562020-02-08 Tom Tromey <tom@tromey.com>
3457
3458 * dwarf2/read.c (read_offset_1): Move to leb.c.
3459 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
3460 (dwarf_decode_macro_bytes): Update.
3461 * dwarf2/leb.c (read_offset): Rename; move from read.c.
3462 * dwarf2/leb.h (read_offset): Declare.
3463
2c7d5afc
TT
34642020-02-08 Tom Tromey <tom@tromey.com>
3465
3466 * dwarf2/read.c (dwarf2_section_size): Remove.
3467 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
3468 Update.
3469 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
3470
4075cb26
TT
34712020-02-08 Tom Tromey <tom@tromey.com>
3472
3473 * dwarf2/read.c (read_initial_length): Move to leb.c.
3474 * dwarf2/leb.h (read_initial_length): Declare.
3475 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
3476 handle_nonstd parameter.
3477 * dwarf2/frame.c (read_initial_length): Remove.
3478 (decode_frame_entry_1): Update.
3479
09ba997f
TT
34802020-02-08 Tom Tromey <tom@tromey.com>
3481
3482 * dwarf2/loc.c (dwarf2_find_location_expression)
3483 (dwarf_evaluate_loc_desc::get_tls_address)
3484 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
3485 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
3486 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
3487 (dwarf2_compile_property_to_c)
3488 (dwarf2_loc_desc_get_symbol_read_needs)
3489 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
3490 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
3491 (loclist_describe_location, loclist_tracepoint_var_ref)
3492 (loclist_generate_c_location): Update.
3493 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
3494 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
3495 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
3496 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
3497 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
3498 (dwarf2_per_cu_data::addr_size)
3499 (dwarf2_per_cu_data::ref_addr_size)
3500 (dwarf2_per_cu_data::text_offset)
3501 (dwarf2_per_cu_data::addr_type): Now methods.
3502 (per_cu_header_read_in): Make per_cu "const".
3503 (dwarf2_version): Remove.
3504 (dwarf2_per_cu_data::int_type): Now a method.
3505 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
3506 (set_die_type, read_array_type, read_subrange_index_type)
3507 (read_tag_string_type, read_subrange_type): Update.
3508 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
3509 offset_size, ref_addr_size, text_offset, addr_type, version,
3510 objfile, int_type, addr_sized_int_type>: Declare methods.
3511
96c738c0
TT
35122020-02-08 Tom Tromey <tom@tromey.com>
3513
3514 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
3515 Move earlier.
3516
8fdd972c
TT
35172020-02-08 Tom Tromey <tom@tromey.com>
3518
3519 * dwarf2/read.h (dwarf_line_debug): Declare.
3520 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
3521 * dwarf2/read.c: Move line_header code to new files.
3522 (dwarf_line_debug): No longer static.
3523 * dwarf2/line-header.c: New file.
3524 * dwarf2/line-header.h: New file.
3525
03075812
TT
35262020-02-08 Tom Tromey <tom@tromey.com>
3527
3528 * dwarf2/read.c (struct line_header) <file_full_name,
3529 file_file_name>: Return unique_xmalloc_ptr.
3530 (line_header::file_file_name): Update.
3531 (line_header::file_full_name): Update.
3532 (dw2_get_file_names_reader): Update.
3533 (macro_start_file): Update.
3534
bb822404
TT
35352020-02-08 Tom Tromey <tom@tromey.com>
3536
3537 * dwarf2/read.c (struct line_header) <file_full_name,
3538 file_file_name>: Declare methods.
3539 (dw2_get_file_names_reader): Update.
3540 (file_file_name): Now a method.
3541 (file_full_name): Likewise.
3542 (macro_start_file): Update.
3543
009b64fc
TT
35442020-02-08 Tom Tromey <tom@tromey.com>
3545
3546 * dwarf2/read.c (dwarf_always_disassemble)
3547 (show_dwarf_always_disassemble): Move to loc.c.
3548 (_initialize_dwarf2_read): Move "always-disassemble" registration
3549 to loc.c.
3550 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
3551 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
3552 static.
3553 (show_dwarf_always_disassemble): Move from read.c.
3554 (_initialize_dwarf2loc): Move always-disassemble from read.c.
3555
5895093f
TT
35562020-02-08 Tom Tromey <tom@tromey.com>
3557
3558 * dwarf2/read.c (~dwarf2_per_objfile): Update.
3559 (create_quick_file_names_table): Return htab_up.
3560 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
3561 Update.
3562 * dwarf2/read.h (struct dwarf2_per_objfile)
3563 <quick_file_names_table>: Now htab_up.
3564
b3b32279
TT
35652020-02-08 Tom Tromey <tom@tromey.com>
3566
3567 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
3568
1d33d811
TT
35692020-02-08 Tom Tromey <tom@tromey.com>
3570
3571 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
3572 Rewrite.
3573 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
3574 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
3575 (abbrev_table::abbrev_table): No longer inline.
3576 (ABBREV_HASH_SIZE): Remove.
3577 (abbrev_table::m_abbrevs): Now an htab_up.
3578
86de1d91
TT
35792020-02-08 Tom Tromey <tom@tromey.com>
3580
3581 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
3582 (cutu_reader): Update.
3583 (build_type_psymtabs_1): Update.
3584 * dwarf2/abbrev.c (abbrev_table::read): Rename.
3585 (abbrev_table::alloc_abbrev): Update.
3586 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
3587 (abbrev_table::read): New static method, renamed from
3588 abbrev_table_read_table.
3589 (abbrev_table::alloc_abbrev)
3590 (abbrev_table::add_abbrev): Now private.
3591 (abbrev_table::abbrev_table): Now private.
3592 (abbrev_table::m_abbrev_obstack): Now private. Rename.
3593
0335378b
TT
35942020-02-08 Tom Tromey <tom@tromey.com>
3595
3596 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
3597 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
3598 htab_up.
3599
48b490f2
TT
36002020-02-08 Tom Tromey <tom@tromey.com>
3601
3602 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
3603 htab_up.
3604 (lookup_dwo_unit_in_dwp): Update.
3605 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
3606 on obstack.
3607
bc68fb19
TT
36082020-02-08 Tom Tromey <tom@tromey.com>
3609
3610 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
3611 obstack.
3612
d15acc42
TT
36132020-02-08 Tom Tromey <tom@tromey.com>
3614
3615 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
3616 line_header_hash.
3617 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
3618 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
3619 Change type to htab_up.
3620
eaa5fa8b
TT
36212020-02-08 Tom Tromey <tom@tromey.com>
3622
3623 * dwarf2/read.c (allocate_type_unit_groups_table): Return
3624 htab_up. Don't allocate on obstack.
3625 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
3626 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
3627 Change type to htab_up.
3628
b0b6a987
TT
36292020-02-08 Tom Tromey <tom@tromey.com>
3630
3631 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
3632 Change type to htab_up.
3633 * dwarf2/read.c (create_signatured_type_table_from_index)
3634 (create_signatured_type_table_from_debug_names)
3635 (create_all_type_units, add_type_unit)
3636 (lookup_dwo_signatured_type, lookup_signatured_type)
3637 (process_skeletonless_type_unit): Update.
3638 (create_debug_type_hash_table, create_debug_types_hash_table):
3639 Change type of types_htab.
3640 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
3641 htab_up. Don't allocate on obstack.
3642 (create_cus_hash_table): Change type of cus_htab parameter.
3643 (struct dwo_file) <cus, tus>: Now htab_up.
3644 (lookup_dwo_signatured_type, lookup_dwo_cutu)
3645 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
3646 (queue_and_load_all_dwo_tus): Update.
3647 * dwarf2/index-write.c (write_gdbindex): Update.
3648 (write_debug_names): Update.
3649
39856def
TT
36502020-02-08 Tom Tromey <tom@tromey.com>
3651
3652 * dwarf2/read.h (struct dwarf2_queue_item): Move from
3653 dwarf2/read.c. Remove "next" member. Add constructor ntad
3654 destructor.
3655 (struct dwarf2_per_objfile) <queue>: New member.
3656 * dwarf2/read.c (struct dwarf2_queue_item): Move to
3657 dwarf2/read.h.
3658 (dwarf2_queue, dwarf2_queue_tail): Remove.
3659 (class dwarf2_queue_guard): Add parameter to constructor. Use
3660 DISABLE_COPY_AND_ASSIGN.
3661 <m_per_objfile>: New member.
3662 <~dwarf2_queue_guard>: Rewrite.
3663 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
3664 Update.
3665 (~dwarf2_queue_item): New.
3666
3e225074
TT
36672020-02-08 Tom Tromey <tom@tromey.com>
3668
3669 * dwarf2/read.c (struct die_info) <has_children>: New member.
3670 (dw2_get_file_names_reader): Remove has_children.
3671 (dw2_get_file_names): Update.
3672 (read_cutu_die_from_dwo): Remove has_children.
3673 (cutu_reader::init_tu_and_read_dwo_dies)
3674 (cutu_reader::cutu_reader): Update.
3675 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
3676 Remove has_children.
3677 (build_type_psymtabs_1, process_skeletonless_type_unit)
3678 (load_partial_comp_unit, load_full_comp_unit): Update.
3679 (create_dwo_cu_reader): Remove has_children.
3680 (create_cus_hash_table, read_die_and_children): Update.
3681 (read_full_die_1,read_full_die): Remove has_children.
3682 (read_signatured_type): Update.
3683 (class cutu_reader) <has_children>: Remove.
3684
82ca8957
TT
36852020-02-08 Tom Tromey <tom@tromey.com>
3686
3687 * dwarf2/expr.c: Rename from dwarf2expr.c.
3688 * dwarf2/expr.h: Rename from dwarf2expr.h.
3689 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
3690 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
3691 * dwarf2/frame.c: Rename from dwarf2-frame.c.
3692 * dwarf2/frame.h: Rename from dwarf2-frame.h.
3693 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
3694 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
3695 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
3696 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
3697 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
3698 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
3699 * dwarf2/loc.c: Rename from dwarf2loc.c.
3700 * dwarf2/loc.h: Rename from dwarf2loc.h.
3701 * dwarf2/read.c: Rename from dwarf2read.c.
3702 * dwarf2/read.h: Rename from dwarf2read.h.
3703 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
3704 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
3705 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
3706 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
3707 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
3708 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
3709 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
3710 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
3711 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
3712 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
3713 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
3714 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
3715 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
3716 Update.
3717 * Makefile.in (COMMON_SFILES): Update.
3718 (HFILES_NO_SRCDIR): Update.
3719
9e35d499
TT
37202020-02-08 Tom Tromey <tom@tromey.com>
3721
3722 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
3723 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
3724
1eba2311
TT
37252020-02-08 Tom Tromey <tom@tromey.com>
3726
3727 * dwarf2read.h (struct die_info): Don't declare.
3728
e41c2da2
TT
37292020-02-08 Tom Tromey <tom@tromey.com>
3730
3731 * dwarf2read.h (die_info_ptr): Remove typedef.
3732
4fc6c0d5
TT
37332020-02-08 Tom Tromey <tom@tromey.com>
3734
3735 * dwarf2read.c (read_call_site_scope)
3736 (handle_data_member_location, dwarf2_add_member_fn)
3737 (mark_common_block_symbol_computed, read_common_block)
3738 (attr_to_dynamic_prop, partial_die_info::read)
3739 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
3740 (dwarf2_symbol_mark_computed, set_die_type): Update.
3741 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
3742 method.
3743 (attr_form_is_block): Don't declare.
3744 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
3745
cd6c91b4
TT
37462020-02-08 Tom Tromey <tom@tromey.com>
3747
3748 * dwarf2read.c (dwarf2_find_base_address, )
3749 (read_call_site_scope, rust_containing_type)
3750 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3751 (handle_data_member_location, dwarf2_add_member_fn)
3752 (get_alignment, read_structure_type, process_structure_scope)
3753 (mark_common_block_symbol_computed, read_common_block)
3754 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
3755 (partial_die_info::read, read_attribute_value, new_symbol)
3756 (lookup_die_type, dwarf2_get_ref_die_offset)
3757 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
3758 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
3759 (dwarf2_symbol_mark_computed): Update.
3760 * dwarf2/attribute.h (struct attribute) <value_as_address,
3761 form_is_section_offset, form_is_constant, form_is_ref>: Declare
3762 methods.
3763 (value_as_address, attr_form_is_section_offset)
3764 (attr_form_is_constant, attr_form_is_ref): Don't declare.
3765 * dwarf2/attribute.c (attribute::value_as_address)
3766 (attribute::form_is_section_offset, attribute::form_is_constant)
3767 (attribute::form_is_ref): Now methods.
3768
162dce55
TT
37692020-02-08 Tom Tromey <tom@tromey.com>
3770
3771 * dwarf2read.c (struct attribute, DW_STRING)
3772 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
3773 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
3774 (attr_form_is_block, attr_form_is_section_offset)
3775 (attr_form_is_constant, attr_form_is_ref): Move.
3776 * dwarf2/attribute.h: New file.
3777 * dwarf2/attribute.c: New file, from dwarf2read.c.
3778 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
3779
3054dd54
TT
37802020-02-08 Tom Tromey <tom@tromey.com>
3781
3782 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
3783 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
3784 Move.
3785 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
3786 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
3787 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
3788 abbrev.c.
3789 * dwarf2/abbrev.h: New file.
3790 * dwarf2/abbrev.c: New file, from dwarf2read.c.
3791 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
3792
96b79293
TT
37932020-02-08 Tom Tromey <tom@tromey.com>
3794
3795 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
3796 (dwarf2_section_size, dwarf2_get_section_info)
3797 (create_signatured_type_table_from_debug_names)
3798 (create_addrmap_from_aranges, read_debug_names_from_section)
3799 (get_gdb_index_contents_from_section, read_comp_unit_head)
3800 (error_check_comp_unit_head, read_abbrev_offset)
3801 (create_debug_type_hash_table, init_cu_die_reader)
3802 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
3803 (read_comp_units_from_section, create_cus_hash_table)
3804 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3805 (create_dwp_v2_section, dwarf2_rnglists_process)
3806 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
3807 (abbrev_table_read_table, read_indirect_string_at_offset_from)
3808 (read_indirect_string_from_dwz, read_addr_index_1)
3809 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
3810 (dwarf_decode_macro_bytes, dwarf_decode_macros)
3811 (fill_in_loclist_baton): Update.
3812 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
3813 get_containing_section, get_bfd_owner, get_bfd_section,
3814 get_file_name, get_id, get_flags, empty, read>: Declare methods.
3815 (dwarf2_read_section, get_section_name, get_section_file_name)
3816 (get_containing_section, get_section_bfd_owner)
3817 (get_section_bfd_section, get_section_name, get_section_file_name)
3818 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
3819 declare.
3820 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
3821 (dwarf2_section_info::get_bfd_owner)
3822 (dwarf2_section_info::get_bfd_section)
3823 (dwarf2_section_info::get_name)
3824 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
3825 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
3826 (dwarf2_section_info::read): Now methods.
3827 * dwarf-index-write.c (class debug_names): Update.
3828
2c86cff9
TT
38292020-02-08 Tom Tromey <tom@tromey.com>
3830
3831 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
3832 Move to dwarf2/section.h.
3833 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
3834 (get_section_bfd_section, get_section_name)
3835 (get_section_file_name, get_section_id, get_section_flags)
3836 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
3837 dwarf2/section.c.
3838 * dwarf2/section.h: New file.
3839 * dwarf2/section.c: New file, from dwarf2read.c.
3840 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
3841
f4382c45
TT
38422020-02-08 Tom Tromey <tom@tromey.com>
3843
3844 * dwarf2read.h (read_unsigned_leb128): Don't declare.
3845 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
3846 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
3847 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
3848 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
3849 * dwarf2/leb.h: New file, from dwarf2read.c.
3850 * dwarf2/leb.c: New file, from dwarf2read.c.
3851 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
3852 Remove.
3853 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
3854 (COMMON_SFILES): Add dwarf2/leb.c.
3855
01840b7a
JB
38562020-02-08 Joel Brobecker <brobecker@adacore.com>
3857
3858 GDB 9.1 released.
3859
dfcb27e4
IB
38602020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
3861
3862 PR gdb/25190:
3863 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
3864 * gdb/remote.c (remote_console_output): Update.
3865 * gdb/ui-file.c (fputs_unfiltered): Rename to...
3866 (ui_file_puts): ...this.
3867 * gdb/ui-file.h (ui_file_puts): Add declaration.
3868 * gdb/utils.c (emit_style_escape): Update.
3869 (flush_wrap_buffer): Update.
3870 (fputs_maybe_filtered): Update.
3871 (fputs_unfiltered): Add function.
3872
faa17681
IB
38732020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
3874
3875 * gdb/event-loop.c (gdb_wait_for_event): Update.
3876 * gdb/printcmd.c (printf_command): Update.
3877 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
3878 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
3879 (gdb_os_flush_stderr): Update.
3880 * gdb/remote.c (remote_console_output): Update.
3881 * gdb/ui-file.c (gdb_flush): Rename to...
3882 (ui_file_flush): ...this.
3883 (stderr_file::write): Update.
3884 (stderr_file::puts): Update.
3885 * gdb/ui-file.h (gdb_flush): Rename to...
3886 (ui_file_flush): ...this.
3887 * gdb/utils.c (gdb_flush): Add function.
3888 * gdb/utils.h (gdb_flush): Add declaration.
3889
5abbbe1d
TT
38902020-02-07 Tom Tromey <tromey@adacore.com>
3891
3892 PR breakpoints/24915:
3893 * source.c (find_and_open_source): Do not check basenames_may_differ.
3894
919adfe8
TT
38952020-02-07 Tom Tromey <tom@tromey.com>
3896
3897 * README: Update gdbserver documentation.
3898 * gdbserver: Move to top level.
3899 * configure.tgt (build_gdbserver): Remove.
3900 * configure.ac: Remove --enable-gdbserver.
3901 * configure: Rebuild.
3902 * Makefile.in (distclean): Don't mention gdbserver.
3903
1d5d29e7
SV
39042020-02-06 Shahab Vahedi <shahab@synopsys.com>
3905
3906 * source-cache.c (source_cache::ensure): Surround
3907 get_plain_source_lines with a try/catch.
3908 (source_cache::get_line_charpos): Get rid of try/catch
3909 and only check for the return value of "ensure".
3910 * tui/tui-source.c (tui_source_window::set_contents):
3911 Simplify "nlines" calculation.
3912
6eb1129c
SV
39132020-02-06 Shahab Vahedi <shahab@synopsys.com>
3914
3915 * MAINTAINERS (Write After Approval): Add myself.
3916
c6a42d11
CB
39172020-02-05 Christian Biesinger <cbiesinger@google.com>
3918
3919 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
3920 function call.
3921
c8ecdda6
CB
39222020-02-05 Christian Biesinger <cbiesinger@google.com>
3923
3924 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
3925
f6480e70
MR
39262020-02-05 Maciej W. Rozycki <macro@wdc.com>
3927
3928 * nat/riscv-linux-tdesc.h: New file.
3929 * nat/riscv-linux-tdesc.c: New file, taking code from...
3930 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
3931 ... here.
3932 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
3933 NATDEPFILES.
3934
dcc9fbc6
AB
39352020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
3936
3937 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
3938 we don't set the fake simulator ptid to the null_ptid.
3939
719546c4
SM
39402020-02-03 Simon Marchi <simon.marchi@efficios.com>
3941
3942 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
3943 * gdbthread.h (class thread_info) <resumed>: Likewise.
3944 * infrun.c (resume_1): Likewise.
3945 (proceed): Likewise.
3946 (infrun_thread_stop_requested): Likewise.
3947 (stop_all_threads): Likewise.
3948 (handle_inferior_event): Likewise.
3949 (restart_threads): Likewise.
3950 (finish_step_over): Likewise.
3951 (keep_going_stepped_thread): Likewise.
3952 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
3953 (linux_handle_extended_wait): Likewise.
3954 * record-btrace.c (get_thread_current_frame_id): Likewise.
3955 * record-full.c (record_full_wait_1): Likewise.
3956 * remote.c (remote_target::process_initial_stop_replies): Likewise.
3957 * target.c (target_resume): Likewise.
3958 * thread.c (set_running_thread): Likewise.
3959
e409c542
AKS
39602020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3961
3962 * f-valprint.c (f77_print_array_1): Changed datatype of index
3963 variable to LONGEST from int to enable it to contain bound
3964 values correctly.
3965
ee98c0da
MR
39662020-02-03 Maciej W. Rozycki <macro@wdc.com>
3967
3968 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
3969 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
3970 offsets according to FLEN determined.
3971 (riscv_linux_nat_target::read_description): Determine FLEN
3972 dynamically.
3973 (riscv_linux_nat_target::fetch_registers): Size regset buffer
3974 according to FLEN determined.
3975 (riscv_linux_nat_target::store_registers): Likewise.
3976
aa66aac4
SV
39772020-02-01 Shahab Vahedi <shahab@synopsys.com>
3978
3979 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
3980 when reg->group is empty and reggroup is not.
3981
fd9faca8
TT
39822020-01-31 Tom Tromey <tromey@adacore.com>
3983
3984 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
3985 Call beneath target's mourn_inferior after unpushing.
3986
42330a68
AB
39872020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
3988
3989 PR tui/9765
3990 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
3991 have enough lines to fill the screen, still return the lowest
3992 address we found.
3993
7a27a45b
AB
39942020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
3995
3996 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
3997 '-', '<', and '>' commands.
3998
c47f70e2
PA
39992020-01-29 Pedro Alves <palves@redhat.com>
4000 Sergio Durigan Junior <sergiodj@redhat.com>
4001
4002 * infcmd.c (construct_inferior_arguments): Assert that
4003 'argc' is greater than 0.
4004
5133a315
LM
40052020-01-29 Luis Machado <luis.machado@linaro.org>
4006
4007 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
4008 (BRK_INSN_MASK): Define to 0xd4200000.
4009 (aarch64_program_breakpoint_here_p): New function.
4010 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
4011 * arch-utils.c (default_program_breakpoint_here_p): Moved from
4012 breakpoint.c.
4013 * arch-utils.h (default_program_breakpoint_here_p): Moved from
4014 breakpoint.h
4015 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
4016 call gdbarch_program_breakpoint_here_p.
4017 (program_breakpoint_here): Moved to arch-utils.c, renamed to
4018 default_program_breakpoint_here_p, changed return type to bool and
4019 simplified.
4020 * breakpoint.h (program_breakpoint_here): Moved prototype to
4021 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
4022 return type to bool.
4023 * gdbarch.c: Regenerate.
4024 * gdbarch.h: Regenerate.
4025 * gdbarch.sh (program_breakpoint_here_p): New method.
4026 * infrun.c (handle_signal_stop): Call
4027 gdbarch_program_breakpoint_here_p.
4028
168f8c6b
TT
40292020-01-26 Tom Tromey <tom@tromey.com>
4030
4031 * ctfread.c (struct ctf_fp_info): Reindent.
4032 (_initialize_ctfread): Remove.
4033
128a391f
TT
40342020-01-26 Tom Tromey <tom@tromey.com>
4035
4036 * psymtab.c (partial_map_expand_apply)
4037 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4038 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4039 (psym_print_stats, psym_expand_symtabs_for_function)
4040 (psym_map_symbol_filenames, psym_map_matching_symbols)
4041 (psym_expand_symtabs_matching)
4042 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4043 (maintenance_check_psymtabs): Use new methods.
4044 * psympriv.h (struct partial_symtab) <readin_p,
4045 get_compunit_symtab>: New methods.
4046 <readin, compunit_symtab>: Remove members.
4047 (struct standard_psymtab): New.
4048 (struct legacy_psymtab): Derive from standard_psymtab.
4049 * dwarf2read.h (struct dwarf2_psymtab): Derive from
4050 standard_psymtab.
4051 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
4052
0494dbec
TT
40532020-01-26 Tom Tromey <tom@tromey.com>
4054
4055 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
4056 read_dependencies. Add assert.
4057 * psymtab.c (partial_symtab::read_dependencies): New method.
4058 * psympriv.h (struct partial_symtab) <read_dependencies>: New
4059 method.
4060 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
4061 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
4062 read_dependencies.
4063 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
4064 Add assert.
4065
8566b89b
TT
40662020-01-26 Tom Tromey <tom@tromey.com>
4067
4068 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
4069 Call expand_psymtab.
4070 (xcoff_read_symtab): Call expand_psymtab.
4071 (xcoff_start_psymtab, xcoff_end_psymtab): Set
4072 legacy_expand_psymtab.
4073 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
4074 method.
4075 (struct legacy_psymtab) <expand_psymtab>: Implement.
4076 <legacy_expand_psymtab>: New member.
4077 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
4078 (parse_partial_symbols): Set legacy_expand_psymtab.
4079 (psymtab_to_symtab_1): Change argument order. Call
4080 expand_psymtab.
4081 (new_psymtab): Set legacy_expand_psymtab.
4082 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
4083 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
4084 expand_psymtab.
4085 (dwarf2_psymtab::expand_psymtab): Rename from
4086 psymtab_to_symtab_1. Call expand_psymtab.
4087 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
4088 (dbx_end_psymtab): Likewise.
4089 (dbx_psymtab_to_symtab_1): Change argument order. Call
4090 expand_psymtab.
4091 (dbx_read_symtab): Call expand_psymtab.
4092 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
4093 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
4094 (ctf_psymtab::read_symtab): Call expand_psymtab.
4095
077cbab2
TT
40962020-01-26 Tom Tromey <tom@tromey.com>
4097
4098 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
4099 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
4100 messages.
4101 * mdebugread.c (mdebug_read_symtab): Remove prints.
4102 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
4103 assert.
4104 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
4105
891813be
TT
41062020-01-26 Tom Tromey <tom@tromey.com>
4107
4108 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
4109 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
4110 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
4111 legacy_symtab.
4112 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
4113 * psymtab.c (psymtab_to_symtab): Call method.
4114 (dump_psymtab): Update.
4115 * psympriv.h (struct partial_symtab): Add virtual destructor.
4116 <read_symtab>: New method.
4117 (struct legacy_symtab): New.
4118 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
4119 (struct pst_map) <pst>: Now a legacy_psymtab.
4120 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
4121 (new_psymtab): Use legacy_psymtab.
4122 * dwarf2read.h (struct dwarf2_psymtab): New.
4123 (struct dwarf2_per_cu_data) <psymtab>: Use it.
4124 * dwarf2read.c (dwarf2_create_include_psymtab)
4125 (dwarf2_build_include_psymtabs, create_type_unit_group)
4126 (create_partial_symtab, process_psymtab_comp_unit_reader)
4127 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
4128 (set_partial_user): Use dwarf2_psymtab.
4129 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
4130 (psymtab_to_symtab_1, process_full_comp_unit)
4131 (process_full_type_unit, dwarf2_ranges_read)
4132 (dwarf2_get_pc_bounds, psymtab_include_file_name)
4133 (dwarf_decode_lines): Use dwarf2_psymtab.
4134 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
4135 (add_address_entry_worker, write_one_signatured_type)
4136 (recursively_count_psymbols, recursively_write_psymbols)
4137 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
4138 (write_debug_names): Likewise.
4139 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
4140 <pst>: Now a legacy_psymtab.
4141 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
4142 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
4143 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
4144 * ctfread.c (struct ctf_psymtab): New.
4145 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
4146 ctf_psymtab.
4147 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
4148 (create_partial_symtab): Return a ctf_psymtab.
4149 (scan_partial_symbols): Update.
4150
c3693a1d
TT
41512020-01-26 Tom Tromey <tom@tromey.com>
4152
4153 * xcoffread.c (xcoff_start_psymtab): Use new.
4154 * psymtab.c (partial_symtab::partial_symtab): New constructor,
4155 renamed from start_psymtab_common.
4156 * psympriv.h (struct partial_symtab): Add new constructor.
4157 (start_psymtab_common): Don't declare.
4158 * mdebugread.c (parse_partial_symbols): Use new.
4159 * dwarf2read.c (create_partial_symtab): Use new.
4160 * dbxread.c (start_psymtab): Use new.
4161 * ctfread.c (create_partial_symtab): Use new.
4162
32caafd0
TT
41632020-01-26 Tom Tromey <tom@tromey.com>
4164
4165 * xcoffread.c (xcoff_end_psymtab): Use new.
4166 * psymtab.c (start_psymtab_common): Use new.
4167 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
4168 Update.
4169 * psympriv.h (struct partial_symtab): Add parameters to
4170 constructor. Don't inline.
4171 (allocate_psymtab): Don't declare.
4172 * mdebugread.c (new_psymtab): Use new.
4173 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
4174 * dbxread.c (dbx_end_psymtab): Use new.
4175
abaa2f23
TT
41762020-01-26 Tom Tromey <tom@tromey.com>
4177
4178 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
4179 allocate_psymtab. Update documentation.
4180 * psymtab.c (psymtab_storage::install_psymtab): Rename from
4181 allocate_psymtab. Do not use new.
4182 (allocate_psymtab): Use new. Update.
4183
6d94535f
TT
41842020-01-26 Tom Tromey <tom@tromey.com>
4185
4186 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4187 * psymtab.c (psym_print_stats): Update.
4188 * psympriv.h (struct partial_symtab) <readin,
4189 psymtabs_addrmap_supported, anonymous>: Now bool.
4190 * mdebugread.c (psymtab_to_symtab_1): Update.
4191 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
4192 (build_type_psymtabs_reader, psymtab_to_symtab_1)
4193 (process_full_comp_unit, process_full_type_unit): Update.
4194 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
4195 * ctfread.c (psymtab_to_symtab): Update.
4196
6f17252b
TT
41972020-01-26 Tom Tromey <tom@tromey.com>
4198
4199 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
4200 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
4201 * psymtab.c (psymtab_storage): Delete psymtabs.
4202 (psymtab_storage::allocate_psymtab): Use new.
4203 (psymtab_storage::discard_psymtab): Use delete.
4204 * psympriv.h (struct partial_symtab): Add constructor and
4205 initializers.
4206
f6f1cebc
TT
42072020-01-26 Tom Tromey <tom@tromey.com>
4208
4209 * machoread.c: Do not include psympriv.h.
4210
e47e48f6
PW
42112020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4212
4213 * NEWS: Mention the new option and the set/show commands.
4214
a2fedca9
PW
42152020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4216
4217 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
4218 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
4219 (validate_exec_file): New variables, enums, functions.
4220 (exec_file_locate_attach, print_section_info): Style the filenames.
4221 (_initialize_exec): Install show_exec_file_mismatch_command and
4222 set_exec_file_mismatch_command.
4223 * gdbcore.h (validate_exec_file): Declare.
4224 * infcmd.c (attach_command): Call validate_exec_file.
4225 * remote.c ( remote_target::remote_add_inferior): Likewise.
4226
7ffa82e1
AB
42272020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4228
4229 * frame.c (find_frame_sal): Move call to get_next_frame into more
4230 inner scope.
4231 * inline-frame.c (inilne_state) <inline_state>: Update argument
4232 types.
4233 (inilne_state) <skipped_symbol>: Rename to...
4234 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
4235 (skip_inline_frames): Build vector of skipped symbols and use this
4236 to reate the inline_state.
4237 (inline_skipped_symbol): Add a comment and some assertions, fetch
4238 skipped symbol from the list.
4239
3d92a3e3
AB
42402020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4241
4242 * buildsym.c (lte_is_less_than): Delete.
4243 (buildsym_compunit::end_symtab_with_blockvector): Create local
4244 lambda function to sort line table entries, and use
4245 std::stable_sort instead of std::sort.
4246 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
4247 markers when looking for a previous line.
4248
94a72be7
AB
42492020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4250
4251 * dwarf2read.c (lnp_state_machine::record_line): Include
4252 end_sequence parameter in debug print out. Record the line if we
4253 are at an end_sequence marker even if it's not the start of a
4254 statement.
4255 * symmisc.c (maintenance_print_one_line_table): Print end of
4256 sequence markers with 'END' not '0'.
4257
53af73bf
PA
42582020-01-24 Pedro Alves <palves@redhat.com>
4259
4260 PR gdb/25410
4261 * thread.c (scoped_restore_current_thread::restore): Use
4262 switch_to_inferior_no_thread.
4263 * exec.c: Include "progspace-and-thread.h".
4264 (add_target_sections, remove_target_sections):
4265 scoped_restore_current_pspace_and_thread instead of
4266 scoped_restore_current_thread.
4267 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
4268 and aspace to the inferior before calling clone_program_space.
4269 Remove stale comment.
4270
3050c6f4
CB
42712020-01-24 Christian Biesinger <cbiesinger@google.com>
4272
4273 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
4274 (arm_netbsd_nat_target::fetch_registers): ...this.
4275 (arm_nbsd_nat_target::store_registers): Rename to...
4276 (arm_netbsd_nat_target::store_registers): ...this.
4277
73685c7e
CB
42782020-01-24 Christian Biesinger <cbiesinger@google.com>
4279
4280 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
4281 register_t.
4282
89203d40
CB
42832020-01-24 Christian Biesinger <cbiesinger@google.com>
4284
4285 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
4286 Update comment.
4287 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
4288 Likewise.
4289 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
4290 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
4291 the correct replacement (iterate_over_regset_sections).
4292 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
4293 Update comment.
4294
1ba1ac88
AB
42952020-01-24 Graham Markall <graham.markall@embecosm.com>
4296
4297 PR gdb/23718
4298 * gdb/python/python.c (execute_gdb_command): Call
4299 async_enable_stdin in catch block.
4300
f3364a6d
AB
43012020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4302
4303 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
4304 SWITCH_THRU_ALL_UIS.
4305
733d0a67
AB
43062020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4307
4308 PR tui/9765
4309 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
4310 comment, add extra parameter, and update to store previous symbol
4311 when appropriate.
4312 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
4313 add extra parameter.
4314 * tui/tui-disasm.c (tui_disassemble): Update header comment,
4315 remove unneeded parameter, add try/catch around gdb_print_insn,
4316 rewrite to add items to asm_lines vector.
4317 (tui_find_backward_disassembly_start_address): New function.
4318 (tui_find_disassembly_address): Updated throughout.
4319 (tui_disasm_window::set_contents): Update for changes to
4320 tui_disassemble.
4321 (tui_disasm_window::do_scroll_vertical): No need to adjust the
4322 number of lines to scroll.
4323
b3b3bada
SM
43242020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
4325
4326 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
4327 (SECT_OFF_DATA): Likewise.
4328 (SECT_OFF_RODATA): Likewise.
4329 (SECT_OFF_TEXT): Likewise.
4330 (SECT_OFF_BSS): Likewise.
4331 (struct objfile) <text_section_offset, data_section_offset>: New
4332 methods.
4333 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
4334 objfile::text_section_offset.
4335 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
4336 * coffread.c (coff_symtab_read): Likewise.
4337 (enter_linenos): Likewise.
4338 (process_coff_symbol): Likewise.
4339 * ctfread.c (get_objfile_text_range): Likewise.
4340 * dtrace-probe.c (dtrace_probe::get_relocated_address):
4341 Use objfile::data_section_offset.
4342 * dwarf2-frame.c (execute_cfa_program): Use
4343 objfile::text_section_offset.
4344 (dwarf2_frame_find_fde): Likewise.
4345 * dwarf2read.c (create_addrmap_from_index): Likewise.
4346 (create_addrmap_from_aranges): Likewise.
4347 (dw2_find_pc_sect_compunit_symtab): Likewise.
4348 (process_psymtab_comp_unit_reader): Likewise.
4349 (add_partial_symbol): Likewise.
4350 (add_partial_subprogram): Likewise.
4351 (process_full_comp_unit): Likewise.
4352 (read_file_scope): Likewise.
4353 (read_func_scope): Likewise.
4354 (read_lexical_block_scope): Likewise.
4355 (read_call_site_scope): Likewise.
4356 (dwarf2_rnglists_process): Likewise.
4357 (dwarf2_ranges_process): Likewise.
4358 (dwarf2_ranges_read): Likewise.
4359 (dwarf_decode_lines_1): Likewise.
4360 (new_symbol): Likewise.
4361 (dwarf2_fetch_die_loc_sect_off): Likewise.
4362 (dwarf2_per_cu_text_offset): Likewise.
4363 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4364 * hppa-tdep.c (read_unwind_info): Likewise.
4365 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
4366 * psympriv.h (struct partial_symtab): Likewise.
4367 * psymtab.c (find_pc_sect_psymtab): Likewise.
4368 * solib-svr4.c (enable_break): Likewise.
4369 * stap-probe.c (relocate_address): Use
4370 objfile::data_section_offset.
4371 * xcoffread.c (enter_line_range): Use
4372 objfile::text_section_offset.
4373 (read_xcoff_symtab): Likewise.
4374
ab53f382
SM
43752020-01-23 Simon Marchi <simon.marchi@efficios.com>
4376
4377 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
4378 declaration to narrower scopes.
4379
e7eee665
SM
43802020-01-23 Simon Marchi <simon.marchi@efficios.com>
4381
4382 * darwin-nat.h (struct darwin_exception_msg, enum
4383 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
4384 Move up.
4385 (class darwin_nat_target) <wait_1, check_new_threads,
4386 decode_exception_message, decode_message, stop_inferior,
4387 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
4388 * darwin-nat.c (darwin_check_new_threads): Rename to...
4389 (darwin_nat_target::check_new_threads): ... this.
4390 (darwin_suspend_inferior_it): Remove.
4391 (darwin_decode_exception_message): Rename to...
4392 (darwin_nat_target::decode_exception_message): ... this.
4393 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
4394 (darwin_decode_message): Rename to...
4395 (darwin_nat_target::decode_message): ... this.
4396 (cancel_breakpoint): Rename to...
4397 (darwin_nat_target::cancel_breakpoint): ... this.
4398 (darwin_wait): Rename to...
4399 (darwin_nat_target::wait_1): ... this. Use range-based for loop
4400 instead of iterate_over_inferiors.
4401 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
4402 (darwin_stop_inferior): Rename to...
4403 (darwin_nat_target::stop_inferior): ... this.
4404 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
4405 (darwin_init_thread_list): Rename to...
4406 (darwin_nat_target::init_thread_list): ... this.
4407 (darwin_ptrace_him): Rename to...
4408 (darwin_nat_target::ptrace_him): ... this.
4409 (darwin_nat_target::create_inferior): Pass lambda function to
4410 fork_inferior.
4411 (darwin_nat_target::detach): Call stop_inferior instead of
4412 darwin_stop_inferior.
4413 * fork-inferior.h (fork_inferior): Change init_trace_fun
4414 parameter to gdb::function_view.
4415 * fork-inferior.c (fork_inferior): Likewise.
4416
c162ed3e
HD
44172020-01-23 Hannes Domani <ssbssa@yahoo.de>
4418
4419 * i386-cygwin-tdep.c (core_process_module_section): Update.
4420 * windows-nat.c (struct lm_info_windows): Add text_offset.
4421 (windows_xfer_shared_libraries): Update.
4422 * windows-tdep.c (windows_xfer_shared_library):
4423 Add text_offset_cached argument.
4424 * windows-tdep.h (windows_xfer_shared_library): Update.
4425
a1237872
SM
44262020-01-21 Simon Marchi <simon.marchi@efficios.com>
4427
4428 * gdbarch.sh: Add declaration for _initialize_gdbarch.
4429
b3ee6dd9
SM
44302020-01-21 Simon Marchi <simon.marchi@efficios.com>
4431
4432 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
4433 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
4434 replace with range-based for.
4435 (gdbsim_interrupt_inferior): Remove.
4436 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
4437 with a range-based for. Inline code from
4438 gdbsim_interrupt_inferior.
4439
f9fac3c8
SM
44402020-01-21 Simon Marchi <simon.marchi@efficios.com>
4441
4442 * infrun.c (proceed): Fix indentation.
4443
f6474de9
TT
44442020-01-21 Tom Tromey <tromey@adacore.com>
4445
4446 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
4447 * python/python.c (python_extension_ops): Update.
4448 (gdbpy_colorize): New function.
4449 * python/lib/gdb/__init__.py (colorize): New function.
4450 * extension.h (ext_lang_colorize): Declare.
4451 * extension.c (ext_lang_colorize): New function.
4452 * extension-priv.h (struct extension_language_ops) <colorize>: New
4453 member.
4454 * cli/cli-style.c (_initialize_cli_style): Update help text.
4455
f0c702d4
LM
44562020-01-21 Luis Machado <luis.machado@linaro.org>
4457
4458 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
4459 <cond>: Change type to bool.
4460 (aarch64_displaced_step_b_cond): Update cond to use bool type.
4461 (aarch64_displaced_step_cb): Likewise.
4462 (aarch64_displaced_step_tb): Likewise.
4463
1ab139e5
LM
44642020-01-21 Luis Machado <luis.machado@linaro.org>
4465
4466 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
4467 output.
4468
0c271889
LM
44692020-01-21 Luis Machado <luis.machado@linaro.org>
4470
4471 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
4472 <pc_adjust>: Adjust the documentation.
4473 (aarch64_displaced_step_fixup): Check if PC really moved before
4474 adjusting it.
4475
4d89c1c7
TT
44762020-01-19 Tom Tromey <tom@tromey.com>
4477
4478 * disasm.c (~gdb_disassembler): New destructor.
4479 (gdb_buffered_insn_length): Call disassemble_free_target.
4480 * disasm.h (class gdb_disassembler): Declare destructor. Use
4481 DISABLE_COPY_AND_ASSIGN.
4482
c0ab21c2
TT
44832020-01-19 Tom Tromey <tom@tromey.com>
4484
4485 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
4486 (die_reader_func_ftype): Remove.
4487 (cutu_reader): New class.
4488 (dw2_get_file_names_reader): Remove "data" parameter.
4489 (dw2_get_file_names): Use cutu_reader.
4490 (create_debug_type_hash_table): Update.
4491 (read_cutu_die_from_dwo): Update comment.
4492 (lookup_dwo_unit): Add dwo_name parameter.
4493 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
4494 die_reader_func_ftype and data parameters.
4495 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
4496 Remove die_reader_func_ftype and data parameters.
4497 (~cutu_reader): New; from init_cutu_and_read_dies.
4498 (cutu_reader::cutu_reader): Rename from
4499 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
4500 and data parameters.
4501 (init_cutu_and_read_dies_simple): Remove.
4502 (struct process_psymtab_comp_unit_data): Remove.
4503 (process_psymtab_comp_unit_reader): Remove data parameter; add
4504 want_partial_unit and pretend_language parameters.
4505 (process_psymtab_comp_unit): Use cutu_reader.
4506 (build_type_psymtabs_reader): Remove data parameter.
4507 (build_type_psymtabs_1): Use cutu_reader.
4508 (process_skeletonless_type_unit): Likewise.
4509 (load_partial_comp_unit_reader): Remove.
4510 (load_partial_comp_unit): Use cutu_reader.
4511 (load_full_comp_unit_reader): Remove.
4512 (load_full_comp_unit): Use cutu_reader.
4513 (struct create_dwo_cu_data): Remove.
4514 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
4515 dwo_unit parameters.
4516 (create_cus_hash_table): Use cutu_reader.
4517 (struct dwarf2_read_addr_index_data): Remove.
4518 (dwarf2_read_addr_index_reader): Remove.
4519 (dwarf2_read_addr_index): Use cutu_reader.
4520 (read_signatured_type_reader): Remove.
4521 (read_signatured_type): Use cutu_reader.
4522
45bbae5c
TT
45232020-01-19 Tom Tromey <tom@tromey.com>
4524
4525 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
4526 * tui/tui-wingeneral.h (class tui_suppress_output): New.
4527 (tui_wrefresh): Declare.
4528 * tui/tui-wingeneral.c (suppress_output): New global.
4529 (tui_suppress_output, ~tui_suppress_output): New constructor and
4530 destructor.
4531 (tui_wrefresh): New function.
4532 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
4533 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
4534 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
4535 method.
4536 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
4537 tui_wrefresh.
4538 (tui_data_window::no_refresh): New method.
4539 (tui_data_item_window::refresh_window): Call tui_wrefresh.
4540 (tui_reg_command): Use tui_suppress_output
4541 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
4542 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
4543 method.
4544 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
4545
4f13c1c0
TT
45462020-01-19 Tom Tromey <tom@tromey.com>
4547
4548 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4549 Handle case where symtab is null.
4550
fa47e446
SM
45512020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
4552
4553 * linux-fork.c (one_fork_p): Simplify.
4554
26f42329
SM
45552020-01-17 Simon Marchi <simon.marchi@efficios.com>
4556
4557 * top.c (struct qt_args): Remove.
4558 (kill_or_detach): Change return type to void, replace `void *`
4559 parameter with a proper one.
4560 (print_inferior_quit_action): Likewise.
4561 (quit_confirm): Use range-based for loop to iterate over inferiors.
4562 (quit_force): Likewise.
4563
a9ac81b1
SM
45642020-01-17 Simon Marchi <simon.marchi@efficios.com>
4565
4566 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
4567 `void *` parameter with proper parameters.
4568 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
4569 (print_one_inferior): Change return type to void, replace `void *`
4570 parameter with proper parameters.
4571 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
4572 inferiors.
4573 (get_other_inferior): Remove.
4574 (mi_cmd_remove_inferior): Use range-based loop to iterate over
4575 inferiors.
4576
788eca49
SM
45772020-01-17 Simon Marchi <simon.marchi@efficios.com>
4578
4579 * mi/mi-interp.c (report_initial_inferior): Remove.
4580 (mi_interp::init): Use range-based for to iterate over inferiors.
4581
d9bc85b6
SM
45822020-01-17 Simon Marchi <simon.marchi@efficios.com>
4583
4584 * python/py-inferior.c (build_inferior_list): Remove.
4585 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
4586
40c94099
CB
45872020-01-16 Christian Biesinger <cbiesinger@google.com>
4588
4589 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
4590 (btrace_stitch_trace): Likewise.
4591 * charset.c (intermediate_encoding): Likewise (vaild).
4592 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
4593 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
4594 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
4595
e0cdfe3c
HD
45962020-01-16 Hannes Domani <ssbssa@yahoo.de>
4597
4598 * windows-tdep.c (windows_get_tlb_type):
4599 Add rtl_user_process_parameters type.
4600
790f1718
PA
46012020-01-16 Pedro Alves <palves@redhat.com>
4602 Norbert Lange <nolange79@gmail.com>
4603
4604 PR build/24805
4605 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
4606 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
4607 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
4608 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
4609 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
4610 (ps_plog): Redeclare exported functions with default visibility.
4611
3112ed97
NA
46122020-01-16 Nitika Achra <Nitika.Achra@amd.com>
4613
4614 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
4615 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
4616
8dc3273e
SM
46172020-01-15 Simon Marchi <simon.marchi@efficios.com>
4618
4619 * infcmd.c (post_create_inferior): Use get_thread_regcache
4620 instead of get_current_regcache.
4621
ff47f4f0
TT
46222020-01-14 Tom Tromey <tom@tromey.com>
4623
4624 PR symtab/12535:
4625 * python/python.c (gdbpy_decode_line): Treat empty string the same
4626 as no argument.
4627
975f45b7
TT
46282020-01-14 Tom Tromey <tom@tromey.com>
4629
4630 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
4631
25e57356
TT
46322020-01-14 Tom Tromey <tom@tromey.com>
4633
4634 * nat/linux-btrace.c: Don't include <config.h>.
4635 * nat/linux-ptrace.c: Don't include <config.h>.
4636 * nat/x86-linux-dregs.c: Don't include <config.h>.
4637
05ea2a05
TT
46382020-01-14 Tom Tromey <tom@tromey.com>
4639
4640 * configure: Rebuild.
4641 * configure.ac: Move many checks to ../gdbsupport/common.m4.
4642
01027315
TT
46432020-01-14 Tom Tromey <tom@tromey.com>
4644
4645 * nat/x86-linux-dregs.c: Include configh.h.
4646 * nat/linux-ptrace.c: Include configh.h.
4647 * nat/linux-btrace.c: Include configh.h.
4648 * defs.h: Include config.h, bfd.h.
4649 * configure.ac: Don't source common.host.
4650 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
4651 * configure: Rebuild.
4652 * acinclude.m4: Update path.
4653 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
4654 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
4655 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
4656 (CLIBS): Add LIBSUPPORT.
4657 (CDEPS): Likewise.
4658 (COMMON_SFILES): Remove gdbsupport files.
4659 (HFILES_NO_SRCDIR): Likewise.
4660 (stamp-version): Update path to create-version.sh.
4661 (ALLDEPFILES): Remove gdbsupport files.
4662
b2ceabe8
TT
46632020-01-14 Tom Tromey <tom@tromey.com>
4664
4665 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
4666 USE_WIN32API when needed.
4667 * configure.ac (USE_WIN32API): Don't define.
4668 (WIN32LIBS): Use WIN32APILIBS.
4669 * configure: Rebuild.
4670
25c51f71
TT
46712020-01-14 Tom Tromey <tom@tromey.com>
4672
4673 * configure: Rebuild.
4674 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
4675
717c684d
BE
46762020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
4677
4678 * skip.c (skip_function_command): Make skip w/o arguments use the
4679 name of the inlined function if pc is inside any inlined function.
4680
7da6a5b9
LM
46812020-01-14 Luis Machado <luis.machado@linaro.org>
4682
4683 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
4684 * infrun.c (resume_1): Likewise.
4685 (handle_inferior_event): Remove stale comment.
4686 * linux-nat.c (linux_nat_target::resume): Update comments.
4687 (save_stop_reason): Likewise.
4688 (linux_nat_filter_event): Likewise.
4689 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
4690
44e4c775
AB
46912020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
4692
4693 * elfread.c (record_minimal_symbol): Set section index to 0 for
4694 non-allocatable sections.
4695
18a8505e
AT
4696
46972020-01-13 Ali Tamur <tamur@google.com>
4698
4699 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
4700 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
4701 to gdb::optional. Update comments.
4702 (dwo_file): Update comments.
4703 (read_attribute): Update API to take an additional out parameter,
4704 need_reprocess. This is used to mark attributes that need other
4705 attributes (e.g. str_offsets_base) for correct computation which may not
4706 have been read yet.
4707 (read_attribute_reprocess): New function declaration.
4708 (read_addr_index): Likewise.
4709 (read_dwo_str_index): Likewise.
4710 (read_stub_str_index): Likewise.
4711 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
4712 (lookup_addr_base): New function definition.
4713 (lookup_ranges_base): Likewise.
4714 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
4715 lookup_ranges_base.
4716 (init_cutu_and_read_dies): Update comments.
4717 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
4718 unit. This is used to inherit parent's str_offsets_base and addr_base.
4719 Update comments.
4720 (init_cutu_and_read_dies_simple): Reflect API changes.
4721 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
4722 (create_cus_hash_table): Change API to take parent compile unit.
4723 Reflect API changes.
4724 (open_and_init_dwo_file): Reflect API changes.
4725 (dwarf2_get_pc_bounds): Update comments.
4726 (dwarf2_record_block_ranges): Likewise.
4727 (read_full_die_1): Change implementation to reprocess attributes that
4728 need str_offsets_base and addr_base.
4729 (partial_die_info::read): Likewise.
4730 (read_attribute_reprocess): New function definition.
4731 (read_attribute_value): Change API to take an additional out parameter,
4732 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
4733 when a non-dwo compile unit has index based attributes.
4734 (read_attribute): Reflect API changes.
4735 (read_addr_index_1): Reflect API changes. Update comments.
4736 (dwarf2_read_addr_index_data): Reflect API changes.
4737 (dwarf2_read_addr_index): Likewise.
4738 (read_str_index): Change API and implementation. This becomes a helper
4739 to be used by the new string index related methods. Update error
4740 message and comments.
4741 (read_dwo_str_index): New function definition.
4742 (read_stub_str_index): Likewise.
4743 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
4744 * symfile.h (dwarf2_debug_sections): Likewise.
4745 * xcoffread.c (dwarf2_debug_sections): Likewise.
4746
0cac9354
SM
47472020-01-13 Simon Marchi <simon.marchi@efficios.com>
4748
4749 * gdbcore.h (struct core_fns) <core_read_registers>: Change
4750 core_reg_sect type to gdb_byte *.
4751 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
4752 * cris-tdep.c (fetch_core_registers): Likewise.
4753 * corelow.c (core_target::get_core_register_section): Change
4754 type of `contents` to gdb::byte_vector.
4755
9a6d629c
AB
47562020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
4757
4758 * tui/tui-wingeneral.c (box_win): Position the title in the center
4759 of the border.
4760
d8b2f9e3
SM
47612020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4762
4763 * corelow.c (core_target::get_core_register_section): Use
4764 std::vector instead of alloca.
4765
bb564c58
SM
47662020-01-13 Simon Marchi <simon.marchi@efficios.com>
4767
4768 * warning.m4: Add -Wmissing-declarations to build_warnings.
4769 * configure: Re-generate.
4770
6b366111
SM
47712020-01-13 Simon Marchi <simon.marchi@efficios.com>
4772
4773 * python/python.c (init__gdb_module): Add declaration.
4774
6c265988
SM
47752020-01-13 Simon Marchi <simon.marchi@efficios.com>
4776
4777 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
4778 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
4779 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
4780 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
4781 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
4782 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
4783 * ada-exp.y (_initialize_ada_exp): Add declaration.
4784 * ada-lang.c (_initialize_ada_language): Add declaration.
4785 * ada-tasks.c (_initialize_tasks): Add declaration.
4786 * agent.c (_initialize_agent): Add declaration.
4787 * aix-thread.c (_initialize_aix_thread): Add declaration.
4788 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
4789 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
4790 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
4791 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
4792 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
4793 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4794 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
4795 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
4796 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
4797 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
4798 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
4799 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
4800 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
4801 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
4802 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
4803 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
4804 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
4805 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
4806 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
4807 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
4808 * annotate.c (_initialize_annotate): Add declaration.
4809 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
4810 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
4811 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
4812 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
4813 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
4814 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
4815 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
4816 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
4817 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
4818 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
4819 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
4820 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
4821 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4822 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
4823 * auto-load.c (_initialize_auto_load): Add declaration.
4824 * auxv.c (_initialize_auxv): Add declaration.
4825 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
4826 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
4827 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
4828 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
4829 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
4830 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
4831 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
4832 * breakpoint.c (_initialize_breakpoint): Add declaration.
4833 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
4834 * btrace.c (_initialize_btrace): Add declaration.
4835 * charset.c (_initialize_charset): Add declaration.
4836 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
4837 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4838 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4839 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
4840 * cli/cli-script.c (_initialize_cli_script): Add declaration.
4841 * cli/cli-style.c (_initialize_cli_style): Add declaration.
4842 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
4843 * coffread.c (_initialize_coffread): Add declaration.
4844 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
4845 * compile/compile.c (_initialize_compile): Add declaration.
4846 * complaints.c (_initialize_complaints): Add declaration.
4847 * completer.c (_initialize_completer): Add declaration.
4848 * copying.c (_initialize_copying): Add declaration.
4849 * corefile.c (_initialize_core): Add declaration.
4850 * corelow.c (_initialize_corelow): Add declaration.
4851 * cp-abi.c (_initialize_cp_abi): Add declaration.
4852 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
4853 * cp-support.c (_initialize_cp_support): Add declaration.
4854 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
4855 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
4856 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
4857 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
4858 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
4859 * ctfread.c (_initialize_ctfread): Add declaration.
4860 * d-lang.c (_initialize_d_language): Add declaration.
4861 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
4862 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
4863 * dbxread.c (_initialize_dbxread): Add declaration.
4864 * dcache.c (_initialize_dcache): Add declaration.
4865 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
4866 * disasm.c (_initialize_disasm): Add declaration.
4867 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
4868 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
4869 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
4870 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
4871 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
4872 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
4873 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
4874 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
4875 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
4876 * elfread.c (_initialize_elfread): Add declaration.
4877 * exec.c (_initialize_exec): Add declaration.
4878 * extension.c (_initialize_extension): Add declaration.
4879 * f-lang.c (_initialize_f_language): Add declaration.
4880 * f-valprint.c (_initialize_f_valprint): Add declaration.
4881 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
4882 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
4883 * filesystem.c (_initialize_filesystem): Add declaration.
4884 * findcmd.c (_initialize_mem_search): Add declaration.
4885 * findvar.c (_initialize_findvar): Add declaration.
4886 * fork-child.c (_initialize_fork_child): Add declaration.
4887 * frame-base.c (_initialize_frame_base): Add declaration.
4888 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4889 * frame.c (_initialize_frame): Add declaration.
4890 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
4891 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
4892 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
4893 * gcore.c (_initialize_gcore): Add declaration.
4894 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
4895 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
4896 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
4897 * gdbarch.c (_initialize_gdbarch): Add declaration.
4898 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
4899 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
4900 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
4901 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
4902 * go-lang.c (_initialize_go_language): Add declaration.
4903 * go32-nat.c (_initialize_go32_nat): Add declaration.
4904 * guile/guile.c (_initialize_guile): Add declaration.
4905 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4906 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
4907 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
4908 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
4909 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
4910 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
4911 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
4912 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
4913 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
4914 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
4915 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
4916 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
4917 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
4918 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
4919 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
4920 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
4921 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
4922 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
4923 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
4924 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
4925 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
4926 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
4927 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
4928 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
4929 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
4930 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
4931 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
4932 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
4933 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
4934 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
4935 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
4936 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
4937 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
4938 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
4939 * infcall.c (_initialize_infcall): Add declaration.
4940 * infcmd.c (_initialize_infcmd): Add declaration.
4941 * inflow.c (_initialize_inflow): Add declaration.
4942 * infrun.c (_initialize_infrun): Add declaration.
4943 * interps.c (_initialize_interpreter): Add declaration.
4944 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
4945 * jit.c (_initialize_jit): Add declaration.
4946 * language.c (_initialize_language): Add declaration.
4947 * linux-fork.c (_initialize_linux_fork): Add declaration.
4948 * linux-nat.c (_initialize_linux_nat): Add declaration.
4949 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
4950 * linux-thread-db.c (_initialize_thread_db): Add declaration.
4951 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
4952 * m2-lang.c (_initialize_m2_language): Add declaration.
4953 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
4954 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
4955 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
4956 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
4957 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4958 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
4959 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
4960 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
4961 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
4962 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4963 * machoread.c (_initialize_machoread): Add declaration.
4964 * macrocmd.c (_initialize_macrocmd): Add declaration.
4965 * macroscope.c (_initialize_macroscope): Add declaration.
4966 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
4967 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
4968 * maint.c (_initialize_maint_cmds): Add declaration.
4969 * mdebugread.c (_initialize_mdebugread): Add declaration.
4970 * memattr.c (_initialize_mem): Add declaration.
4971 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
4972 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
4973 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
4974 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
4975 * mi/mi-main.c (_initialize_mi_main): Add declaration.
4976 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
4977 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
4978 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
4979 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
4980 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
4981 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
4982 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
4983 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
4984 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
4985 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4986 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
4987 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
4988 * mipsread.c (_initialize_mipsread): Add declaration.
4989 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
4990 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
4991 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
4992 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
4993 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
4994 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
4995 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
4996 * nto-procfs.c (_initialize_procfs): Add declaration.
4997 * objc-lang.c (_initialize_objc_language): Add declaration.
4998 * observable.c (_initialize_observer): Add declaration.
4999 * opencl-lang.c (_initialize_opencl_language): Add declaration.
5000 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
5001 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
5002 * osabi.c (_initialize_gdb_osabi): Add declaration.
5003 * osdata.c (_initialize_osdata): Add declaration.
5004 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5005 * parse.c (_initialize_parse): Add declaration.
5006 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
5007 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
5008 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
5009 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
5010 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
5011 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
5012 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
5013 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
5014 * printcmd.c (_initialize_printcmd): Add declaration.
5015 * probe.c (_initialize_probe): Add declaration.
5016 * proc-api.c (_initialize_proc_api): Add declaration.
5017 * proc-events.c (_initialize_proc_events): Add declaration.
5018 * proc-service.c (_initialize_proc_service): Add declaration.
5019 * procfs.c (_initialize_procfs): Add declaration.
5020 * producer.c (_initialize_producer): Add declaration.
5021 * psymtab.c (_initialize_psymtab): Add declaration.
5022 * python/python.c (_initialize_python): Add declaration.
5023 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
5024 * record-btrace.c (_initialize_record_btrace): Add declaration.
5025 * record-full.c (_initialize_record_full): Add declaration.
5026 * record.c (_initialize_record): Add declaration.
5027 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
5028 * regcache.c (_initialize_regcache): Add declaration.
5029 * reggroups.c (_initialize_reggroup): Add declaration.
5030 * remote-notif.c (_initialize_notif): Add declaration.
5031 * remote-sim.c (_initialize_remote_sim): Add declaration.
5032 * remote.c (_initialize_remote): Add declaration.
5033 * reverse.c (_initialize_reverse): Add declaration.
5034 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
5035 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
5036 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
5037 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
5038 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
5039 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
5040 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
5041 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
5042 Add declaration.
5043 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
5044 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
5045 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
5046 * rust-exp.y (_initialize_rust_exp): Add declaration.
5047 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
5048 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
5049 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
5050 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
5051 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
5052 * score-tdep.c (_initialize_score_tdep): Add declaration.
5053 * ser-go32.c (_initialize_ser_dos): Add declaration.
5054 * ser-mingw.c (_initialize_ser_windows): Add declaration.
5055 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
5056 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
5057 * ser-uds.c (_initialize_ser_socket): Add declaration.
5058 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
5059 * serial.c (_initialize_serial): Add declaration.
5060 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
5061 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
5062 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
5063 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
5064 * skip.c (_initialize_step_skip): Add declaration.
5065 * sol-thread.c (_initialize_sol_thread): Add declaration.
5066 * solib-aix.c (_initialize_solib_aix): Add declaration.
5067 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
5068 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
5069 * solib-frv.c (_initialize_frv_solib): Add declaration.
5070 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5071 * solib-target.c (_initialize_solib_target): Add declaration.
5072 * solib.c (_initialize_solib): Add declaration.
5073 * source-cache.c (_initialize_source_cache): Add declaration.
5074 * source.c (_initialize_source): Add declaration.
5075 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
5076 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
5077 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
5078 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
5079 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
5080 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
5081 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
5082 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
5083 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
5084 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
5085 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
5086 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
5087 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
5088 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
5089 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
5090 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
5091 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
5092 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
5093 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
5094 * stabsread.c (_initialize_stabsread): Add declaration.
5095 * stack.c (_initialize_stack): Add declaration.
5096 * stap-probe.c (_initialize_stap_probe): Add declaration.
5097 * std-regs.c (_initialize_frame_reg): Add declaration.
5098 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
5099 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
5100 * symfile.c (_initialize_symfile): Add declaration.
5101 * symmisc.c (_initialize_symmisc): Add declaration.
5102 * symtab.c (_initialize_symtab): Add declaration.
5103 * target.c (_initialize_target): Add declaration.
5104 * target-connection.c (_initialize_target_connection): Add
5105 declaration.
5106 * target-dcache.c (_initialize_target_dcache): Add declaration.
5107 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
5108 * thread.c (_initialize_thread): Add declaration.
5109 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
5110 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
5111 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
5112 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
5113 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
5114 * tracectf.c (_initialize_ctf): Add declaration.
5115 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
5116 * tracefile.c (_initialize_tracefile): Add declaration.
5117 * tracepoint.c (_initialize_tracepoint): Add declaration.
5118 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
5119 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
5120 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
5121 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
5122 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
5123 * tui/tui-win.c (_initialize_tui_win): Add declaration.
5124 * tui/tui.c (_initialize_tui): Add declaration.
5125 * typeprint.c (_initialize_typeprint): Add declaration.
5126 * ui-style.c (_initialize_ui_style): Add declaration.
5127 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
5128 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
5129 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
5130 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
5131 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
5132 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
5133 * unittests/filtered_iterator-selftests.c
5134 (_initialize_filtered_iterator_selftests): Add declaration.
5135 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
5136 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
5137 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
5138 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
5139 * unittests/main-thread-selftests.c
5140 (_initialize_main_thread_selftests): Add declaration.
5141 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
5142 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
5143 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
5144 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
5145 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
5146 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
5147 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
5148 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
5149 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
5150 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
5151 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
5152 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
5153 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
5154 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
5155 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
5156 declaration.
5157 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
5158 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
5159 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
5160 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
5161 * user-regs.c (_initialize_user_regs): Add declaration.
5162 * utils.c (_initialize_utils): Add declaration.
5163 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
5164 * valops.c (_initialize_valops): Add declaration.
5165 * valprint.c (_initialize_valprint): Add declaration.
5166 * value.c (_initialize_values): Add declaration.
5167 * varobj.c (_initialize_varobj): Add declaration.
5168 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
5169 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
5170 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5171 * windows-nat.c (_initialize_windows_nat): Add declaration.
5172 (_initialize_check_for_gdb_ini): Add declaration.
5173 (_initialize_loadable): Add declaration.
5174 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
5175 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
5176 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
5177 * xcoffread.c (_initialize_xcoffread): Add declaration.
5178 * xml-support.c (_initialize_xml_support): Add declaration.
5179 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
5180 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
5181 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
5182 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
5183
e2de1eec
SM
51842020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5185
5186 * regformats/regdat.sh: Generate declaration for init function.
5187
e0037b4c
SM
51882020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5189
5190 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
5191 up.
5192 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
5193 close_one_inferior>: New methods.
5194 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
5195 pass down target to find_inferior_pid.
5196 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
5197 Pass down target to find_inferior_ptid.
5198 (gdbsim_target::create_inferior): Pass down target to
5199 add_thread_silent.
5200 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
5201 target down to find_inferior_ptid and switch_to_thread.
5202 (gdbsim_target::close): Update to call close_one_inferior.
5203 (struct resume_data): Remove.
5204 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
5205 directly, rather than through a void pointer.
5206 (gdbsim_target::resume): Update to call resume_one_inferior.
5207
58920b5b
SM
52082020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5209
5210 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
5211
4ec89149
PA
52122020-01-12 Pedro Alves <palves@redhat.com>
5213
5214 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
5215 directly for the current inferior instead of
5216 discard_all_inferiors.
5217 (discard_all_inferiors): Delete.
5218
7c392d1d
TT
52192020-01-11 Tom Tromey <tom@tromey.com>
5220
5221 * tui/tui-wingeneral.c (box_win): Check cli_styling.
5222 * tui/tui-winsource.c (tui_source_window_base::refill): Use
5223 deprecated_safe_get_selected_frame.
5224
d9ebdab7
TBA
52252020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5226
5227 * inferior.c (print_inferior): Switch inferior before printing it.
5228
f3c469b9
PA
52292020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
5230 Pedro Alves <palves@redhat.com>
5231
5232 * progspace-and-thread.c (switch_to_program_space_and_thread):
5233 Assert there's an inferior for PSPACE. Use
5234 switch_to_inferior_no_thread to switch the inferior too.
5235 * progspace.c (program_space::~program_space): Call
5236 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
5237 (program_space::free_all_objfiles): Don't call clear_symtab_users
5238 here.
5239 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
5240
65c574f6
PA
52412020-01-10 Pedro Alves <palves@redhat.com>
5242
5243 * NEWS: Mention multi-target debugging, "info connections", and
5244 "add-inferior -no-connection".
5245
2f4fcf00
PA
52462020-01-10 Pedro Alves <palves@redhat.com>
5247
5248 * infrun.c: Include "target-connection.h".
5249 (check_multi_target_resumption): New.
5250 (proceed): Call it.
5251 * target-connection.c (make_target_connection_string): Make
5252 extern.
5253 * target-connection.h (make_target_connection_string): Declare.
5254
121b3efd
PA
52552020-01-10 Pedro Alves <palves@redhat.com>
5256
5257 * Makefile.in (COMMON_SFILES): Add target-connection.c.
5258 * inferior.c (uiout_field_connection): New function.
5259 (print_inferior): Add new "connection-id" column.
5260 (add_inferior_command): Show connection number/string of added
5261 inferior.
5262 * process-stratum-target.h
5263 (process_stratum_target::connection_string): New virtual method.
5264 (process_stratum_target::connection_number): New field.
5265 * remote.c (remote_target::connection_string): New override.
5266 * target-connection.c: New file.
5267 * target-connection.h: New file.
5268 * target.c (decref_target): Remove process_stratum targets from
5269 the connection list.
5270 (target_stack::push): Add process_stratum targets to the
5271 connection list.
5272
4f837581
PA
52732020-01-10 Pedro Alves <palves@redhat.com>
5274
5275 Revert:
5276 2016-04-12 Pedro Alves <palves@redhat.com>
5277 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
5278 Remove references to name.
5279 * serial.h (struct serial) <name>: Delete.
5280
f4ec508e
PA
52812020-01-10 Pedro Alves <palves@redhat.com>
5282
5283 * gdbarch-selftests.c (register_to_value_test): Remove "target
5284 already pushed" check.
5285
5b6d1e4f
PA
52862020-01-10 Pedro Alves <palves@redhat.com>
5287 John Baldwin <jhb@FreeBSD.org>
5288
5289 * aarch64-linux-nat.c
5290 (aarch64_linux_nat_target::thread_architecture): Adjust.
5291 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
5292 (task_command_1): Likewise.
5293 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
5294 (aix_thread_target::wait, aix_thread_target::fetch_registers)
5295 (aix_thread_target::store_registers)
5296 (aix_thread_target::thread_alive): Adjust.
5297 * amd64-fbsd-tdep.c: Include "inferior.h".
5298 (amd64fbsd_get_thread_local_address): Pass down target.
5299 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
5300 thread's gdbarch instead of target_gdbarch.
5301 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
5302 get_last_target_status.
5303 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
5304 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
5305 inferiors.
5306 (update_inserted_breakpoint_locations): Skip if inferiors with no
5307 execution.
5308 (update_global_location_list): When handling moribund locations,
5309 find representative inferior for location's pspace, and use thread
5310 count of its process_stratum target.
5311 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
5312 * bsd-uthread.c (bsd_uthread_target::wait): Use
5313 as_process_stratum_target and adjust thread_change_ptid and
5314 add_thread calls.
5315 (bsd_uthread_target::update_thread_list): Use
5316 as_process_stratum_target and adjust find_thread_ptid,
5317 thread_change_ptid and add_thread calls.
5318 * btrace.c (maint_btrace_packet_history_cmd): Adjust
5319 find_thread_ptid call.
5320 * corelow.c (add_to_thread_list): Adjust add_thread call.
5321 (core_target_open): Adjust add_thread_silent and thread_count
5322 calls.
5323 (core_target::pid_to_str): Adjust find_inferior_ptid call.
5324 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
5325 * event-top.c (async_disconnect): Pop targets from all inferiors.
5326 * exec.c (add_target_sections): Push exec target on all inferiors
5327 sharing the program space.
5328 (remove_target_sections): Remove the exec target from all
5329 inferiors sharing the program space.
5330 (exec_on_vfork): New.
5331 * exec.h (exec_on_vfork): Declare.
5332 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
5333 Pass it down.
5334 (fbsd_nat_target::update_thread_list): Adjust.
5335 (fbsd_nat_target::resume): Adjust.
5336 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
5337 down.
5338 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
5339 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
5340 get_thread_arch_regcache call.
5341 * fork-child.c (gdb_startup_inferior): Pass target down to
5342 startup_inferior and set_executing.
5343 * gdbthread.h (struct process_stratum_target): Forward declare.
5344 (add_thread, add_thread_silent, add_thread_with_info)
5345 (in_thread_list): Add process_stratum_target parameter.
5346 (find_thread_ptid(inferior*, ptid_t)): New overload.
5347 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
5348 parameter.
5349 (all_threads()): Delete overload.
5350 (all_threads, all_non_exited_threads): Add process_stratum_target
5351 parameter.
5352 (all_threads_safe): Use brace initialization.
5353 (thread_count): Add process_stratum_target parameter.
5354 (set_resumed, set_running, set_stop_requested, set_executing)
5355 (threads_are_executing, finish_thread_state): Add
5356 process_stratum_target parameter.
5357 (switch_to_thread): Use is_current_thread.
5358 * i386-fbsd-tdep.c: Include "inferior.h".
5359 (i386fbsd_get_thread_local_address): Pass down target.
5360 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
5361 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
5362 have_inferiors check.
5363 * inf-ptrace.c (inf_ptrace_target::create_inferior)
5364 (inf_ptrace_target::attach): Adjust.
5365 * infcall.c (run_inferior_call): Adjust.
5366 * infcmd.c (run_command_1): Pass target to
5367 scoped_finish_thread_state.
5368 (proceed_thread_callback): Skip inferiors with no execution.
5369 (continue_command): Rename 'all_threads' local to avoid hiding
5370 'all_threads' function. Adjust get_last_target_status call.
5371 (prepare_one_step): Adjust set_running call.
5372 (signal_command): Use user_visible_resume_target. Compare thread
5373 pointers instead of inferior_ptid.
5374 (info_program_command): Adjust to pass down target.
5375 (attach_command): Mark target's 'thread_executing' flag.
5376 (stop_current_target_threads_ns): New, factored out from ...
5377 (interrupt_target_1): ... this. Switch inferior before making
5378 target calls.
5379 * inferior-iter.h
5380 (struct all_inferiors_iterator, struct all_inferiors_range)
5381 (struct all_inferiors_safe_range)
5382 (struct all_non_exited_inferiors_range): Filter on
5383 process_stratum_target too. Remove explicit.
5384 * inferior.c (inferior::inferior): Push dummy target on target
5385 stack.
5386 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
5387 Add process_stratum_target parameter, and pass it down.
5388 (have_live_inferiors): Adjust.
5389 (switch_to_inferior_and_push_target): New.
5390 (add_inferior_command, clone_inferior_command): Handle
5391 "-no-connection" parameter. Use
5392 switch_to_inferior_and_push_target.
5393 (_initialize_inferior): Mention "-no-connection" option in
5394 the help of "add-inferior" and "clone-inferior" commands.
5395 * inferior.h: Include "process-stratum-target.h".
5396 (interrupt_target_1): Use bool.
5397 (struct inferior) <push_target, unpush_target, target_is_pushed,
5398 find_target_beneath, top_target, process_target, target_at,
5399 m_stack>: New.
5400 (discard_all_inferiors): Delete.
5401 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
5402 (all_inferiors, all_non_exited_inferiors): Add
5403 process_stratum_target parameter.
5404 * infrun.c: Include "gdb_select.h" and <unordered_map>.
5405 (target_last_proc_target): New global.
5406 (follow_fork_inferior): Push target on new inferior. Pass target
5407 to add_thread_silent. Call exec_on_vfork. Handle target's
5408 reference count.
5409 (follow_fork): Adjust get_last_target_status call. Also consider
5410 target.
5411 (follow_exec): Push target on new inferior.
5412 (struct execution_control_state) <target>: New field.
5413 (user_visible_resume_target): New.
5414 (do_target_resume): Call target_async.
5415 (resume_1): Set target's threads_executing flag. Consider resume
5416 target.
5417 (commit_resume_all_targets): New.
5418 (proceed): Also consider resume target. Skip threads of inferiors
5419 with no execution. Commit resumtion in all targets.
5420 (start_remote): Pass current inferior to wait_for_inferior.
5421 (infrun_thread_stop_requested): Consider target as well. Pass
5422 thread_info pointer to clear_inline_frame_state instead of ptid.
5423 (infrun_thread_thread_exit): Consider target as well.
5424 (random_pending_event_thread): New inferior parameter. Use it.
5425 (do_target_wait): Rename to ...
5426 (do_target_wait_1): ... this. Add inferior parameter, and pass it
5427 down.
5428 (threads_are_resumed_pending_p, do_target_wait): New.
5429 (prepare_for_detach): Adjust calls.
5430 (wait_for_inferior): New inferior parameter. Handle it. Use
5431 do_target_wait_1 instead of do_target_wait.
5432 (fetch_inferior_event): Adjust. Switch to representative
5433 inferior. Pass target down.
5434 (set_last_target_status): Add process_stratum_target parameter.
5435 Save target in global.
5436 (get_last_target_status): Add process_stratum_target parameter and
5437 handle it.
5438 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
5439 (context_switch): Check inferior_ptid == null_ptid before calling
5440 inferior_thread().
5441 (get_inferior_stop_soon): Pass down target.
5442 (wait_one): Rename to ...
5443 (poll_one_curr_target): ... this.
5444 (struct wait_one_event): New.
5445 (wait_one): New.
5446 (stop_all_threads): Adjust.
5447 (handle_no_resumed, handle_inferior_event): Adjust to consider the
5448 event's target.
5449 (switch_back_to_stepped_thread): Also consider target.
5450 (print_stop_event): Update.
5451 (normal_stop): Update. Also consider the resume target.
5452 * infrun.h (wait_for_inferior): Remove declaration.
5453 (user_visible_resume_target): New declaration.
5454 (get_last_target_status, set_last_target_status): New
5455 process_stratum_target parameter.
5456 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
5457 process_stratum_target parameter, and use it.
5458 (clear_inline_frame_state (thread_info*)): New.
5459 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
5460 process_stratum_target parameter.
5461 (clear_inline_frame_state (thread_info*)): Declare.
5462 * linux-fork.c (delete_checkpoint_command): Pass target down to
5463 find_thread_ptid.
5464 (checkpoint_command): Adjust.
5465 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
5466 instead of just tweaking inferior_ptid.
5467 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
5468 (exit_lwp): Pass target down to find_thread_ptid.
5469 (attach_proc_task_lwp_callback): Pass target down to
5470 add_thread/set_running/set_executing.
5471 (linux_nat_target::attach): Pass target down to
5472 thread_change_ptid.
5473 (get_detach_signal): Pass target down to find_thread_ptid.
5474 Consider last target status's target.
5475 (linux_resume_one_lwp_throw, resume_lwp)
5476 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
5477 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
5478 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
5479 (linux_nat_target::async_wait_fd): New.
5480 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
5481 target down.
5482 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
5483 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
5484 * linux-thread-db.c (struct thread_db_info::process_target): New
5485 field.
5486 (add_thread_db_info): Save target.
5487 (get_thread_db_info): New process_stratum_target parameter. Also
5488 match target.
5489 (delete_thread_db_info): New process_stratum_target parameter.
5490 Also match target.
5491 (thread_from_lwp): Adjust to pass down target.
5492 (thread_db_notice_clone): Pass down target.
5493 (check_thread_db_callback): Pass down target.
5494 (try_thread_db_load_1): Always push the thread_db target.
5495 (try_thread_db_load, record_thread): Pass target down.
5496 (thread_db_target::detach): Pass target down. Always unpush the
5497 thread_db target.
5498 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
5499 target down. Always unpush the thread_db target.
5500 (find_new_threads_callback, thread_db_find_new_threads_2)
5501 (thread_db_target::update_thread_list): Pass target down.
5502 (thread_db_target::pid_to_str): Pass current inferior down.
5503 (thread_db_target::get_thread_local_address): Pass target down.
5504 (thread_db_target::resume, maintenance_check_libthread_db): Pass
5505 target down.
5506 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
5507 * procfs.c (procfs_target::procfs_init_inferior): Declare.
5508 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
5509 (procfs_init_inferior): Rename to ...
5510 (procfs_target::procfs_init_inferior): ... this and adjust.
5511 (procfs_target::create_inferior, procfs_notice_thread)
5512 (procfs_do_thread_registers): Adjust.
5513 * ppc-fbsd-tdep.c: Include "inferior.h".
5514 (ppcfbsd_get_thread_local_address): Pass down target.
5515 * proc-service.c (ps_xfer_memory): Switch current inferior and
5516 program space as well.
5517 (get_ps_regcache): Pass target down.
5518 * process-stratum-target.c
5519 (process_stratum_target::thread_address_space)
5520 (process_stratum_target::thread_architecture): Pass target down.
5521 * process-stratum-target.h
5522 (process_stratum_target::threads_executing): New field.
5523 (as_process_stratum_target): New.
5524 * ravenscar-thread.c
5525 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
5526 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
5527 down.
5528 * record-btrace.c (record_btrace_target::info_record): Adjust.
5529 (record_btrace_target::record_method)
5530 (record_btrace_target::record_is_replaying)
5531 (record_btrace_target::fetch_registers)
5532 (get_thread_current_frame_id, record_btrace_target::resume)
5533 (record_btrace_target::wait, record_btrace_target::stop): Pass
5534 target down.
5535 * record-full.c (record_full_wait_1): Switch to event thread.
5536 Pass target down.
5537 * regcache.c (regcache::regcache)
5538 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
5539 process_stratum_target parameter and handle it.
5540 (current_thread_target): New global.
5541 (get_thread_regcache): Add process_stratum_target parameter and
5542 handle it. Switch inferior before calling target method.
5543 (get_thread_regcache): Pass target down.
5544 (get_thread_regcache_for_ptid): Pass target down.
5545 (registers_changed_ptid): Add process_stratum_target parameter and
5546 handle it.
5547 (registers_changed_thread, registers_changed): Pass target down.
5548 (test_get_thread_arch_aspace_regcache): New.
5549 (current_regcache_test): Define a couple local test_target_ops
5550 instances and use them for testing.
5551 (readwrite_regcache): Pass process_stratum_target parameter.
5552 (cooked_read_test, cooked_write_test): Pass mock_target down.
5553 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
5554 (get_thread_arch_aspace_regcache): Add process_stratum_target
5555 parameter.
5556 (regcache::target): New method.
5557 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
5558 (regcache::registers_changed_ptid): Add process_stratum_target
5559 parameter.
5560 (regcache::m_target): New field.
5561 (registers_changed_ptid): Add process_stratum_target parameter.
5562 * remote.c (remote_state::supports_vCont_probed): New field.
5563 (remote_target::async_wait_fd): New method.
5564 (remote_unpush_and_throw): Add remote_target parameter.
5565 (get_current_remote_target): Adjust.
5566 (remote_target::remote_add_inferior): Push target.
5567 (remote_target::remote_add_thread)
5568 (remote_target::remote_notice_new_inferior)
5569 (get_remote_thread_info): Pass target down.
5570 (remote_target::update_thread_list): Skip threads of inferiors
5571 bound to other targets. (remote_target::close): Don't discard
5572 inferiors. (remote_target::add_current_inferior_and_thread)
5573 (remote_target::process_initial_stop_replies)
5574 (remote_target::start_remote)
5575 (remote_target::remote_serial_quit_handler): Pass down target.
5576 (remote_target::remote_unpush_target): New remote_target
5577 parameter. Unpush the target from all inferiors.
5578 (remote_target::remote_unpush_and_throw): New remote_target
5579 parameter. Pass it down.
5580 (remote_target::open_1): Check whether the current inferior has
5581 execution instead of checking whether any inferior is live. Pass
5582 target down.
5583 (remote_target::remote_detach_1): Pass down target. Use
5584 remote_unpush_target.
5585 (extended_remote_target::attach): Pass down target.
5586 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
5587 (remote_target::append_resumption): Pass down target.
5588 (remote_target::append_pending_thread_resumptions)
5589 (remote_target::remote_resume_with_hc, remote_target::resume)
5590 (remote_target::commit_resume): Pass down target.
5591 (remote_target::remote_stop_ns): Check supports_vCont_probed.
5592 (remote_target::interrupt_query)
5593 (remote_target::remove_new_fork_children)
5594 (remote_target::check_pending_events_prevent_wildcard_vcont)
5595 (remote_target::remote_parse_stop_reply)
5596 (remote_target::process_stop_reply): Pass down target.
5597 (first_remote_resumed_thread): New remote_target parameter. Pass
5598 it down.
5599 (remote_target::wait_as): Pass down target.
5600 (unpush_and_perror): New remote_target parameter. Pass it down.
5601 (remote_target::readchar, remote_target::remote_serial_write)
5602 (remote_target::getpkt_or_notif_sane_1)
5603 (remote_target::kill_new_fork_children, remote_target::kill): Pass
5604 down target.
5605 (remote_target::mourn_inferior): Pass down target. Use
5606 remote_unpush_target.
5607 (remote_target::core_of_thread)
5608 (remote_target::remote_btrace_maybe_reopen): Pass down target.
5609 (remote_target::pid_to_exec_file)
5610 (remote_target::thread_handle_to_thread_info): Pass down target.
5611 (remote_target::async_wait_fd): New.
5612 * riscv-fbsd-tdep.c: Include "inferior.h".
5613 (riscv_fbsd_get_thread_local_address): Pass down target.
5614 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
5615 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
5616 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
5617 Adjust.
5618 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
5619 * solib-svr4.c (enable_break): Pass down target.
5620 * spu-multiarch.c (parse_spufs_run): Pass down target.
5621 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
5622 * target-delegates.c: Regenerate.
5623 * target.c (g_target_stack): Delete.
5624 (current_top_target): Return the current inferior's top target.
5625 (target_has_execution_1): Refer to the passed-in inferior's top
5626 target.
5627 (target_supports_terminal_ours): Check whether the initial
5628 inferior was already created.
5629 (decref_target): New.
5630 (target_stack::push): Incref/decref the target.
5631 (push_target, push_target, unpush_target): Adjust.
5632 (target_stack::unpush): Defref target.
5633 (target_is_pushed): Return bool. Adjust to refer to the current
5634 inferior's target stack.
5635 (dispose_inferior): Delete, and inline parts ...
5636 (target_preopen): ... here. Only dispose of the current inferior.
5637 (target_detach): Hold strong target reference while detaching.
5638 Pass target down.
5639 (target_thread_name): Add assertion.
5640 (target_resume): Pass down target.
5641 (target_ops::beneath, find_target_at): Adjust to refer to the
5642 current inferior's target stack.
5643 (get_dummy_target): New.
5644 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
5645 has a thread running.
5646 (initialize_targets): Rename to ...
5647 (_initialize_target): ... this.
5648 * target.h: Include "gdbsupport/refcounted-object.h".
5649 (struct target_ops): Inherit refcounted_object.
5650 (target_ops::shortname, target_ops::longname): Make const.
5651 (target_ops::async_wait_fd): New method.
5652 (decref_target): Declare.
5653 (struct target_ops_ref_policy): New.
5654 (target_ops_ref): New typedef.
5655 (get_dummy_target): Declare function.
5656 (target_is_pushed): Return bool.
5657 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
5658 (all_matching_threads_iterator::all_matching_threads_iterator):
5659 Handle filter target.
5660 * thread-iter.h (struct all_matching_threads_iterator, struct
5661 all_matching_threads_range, class all_non_exited_threads_range):
5662 Filter by target too. Remove explicit.
5663 * thread.c (threads_executing): Delete.
5664 (inferior_thread): Pass down current inferior.
5665 (clear_thread_inferior_resources): Pass down thread pointer
5666 instead of ptid_t.
5667 (add_thread_silent, add_thread_with_info, add_thread): Add
5668 process_stratum_target parameter. Use it for thread and inferior
5669 searches.
5670 (is_current_thread): New.
5671 (thread_info::deletable): Use it.
5672 (find_thread_ptid, thread_count, in_thread_list)
5673 (thread_change_ptid, set_resumed, set_running): New
5674 process_stratum_target parameter. Pass it down.
5675 (set_executing): New process_stratum_target parameter. Pass it
5676 down. Adjust reference to 'threads_executing'.
5677 (threads_are_executing): New process_stratum_target parameter.
5678 Adjust reference to 'threads_executing'.
5679 (set_stop_requested, finish_thread_state): New
5680 process_stratum_target parameter. Pass it down.
5681 (switch_to_thread): Also match inferior.
5682 (switch_to_thread): New process_stratum_target parameter. Pass it
5683 down.
5684 (update_threads_executing): Reimplement.
5685 * top.c (quit_force): Pop targets from all inferior.
5686 (gdb_init): Don't call initialize_targets.
5687 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
5688 Declare.
5689 (windows_add_thread, windows_delete_thread): Adjust.
5690 (get_windows_debug_event): Rename to ...
5691 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
5692 * tracefile-tfile.c (tfile_target_open): Pass down target.
5693 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
5694 Forward declare.
5695 (switch_to_thread): Add process_stratum_target parameter.
5696 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
5697 parameter. Use it.
5698 (mi_on_resume): Pass target down.
5699 * nat/fork-inferior.c (startup_inferior): Add
5700 process_stratum_target parameter. Pass it down.
5701 * nat/fork-inferior.h (startup_inferior): Add
5702 process_stratum_target parameter.
5703 * python/py-threadevent.c (py_get_event_thread): Pass target down.
5704
75c6c844
PA
57052020-01-10 Pedro Alves <palves@redhat.com>
5706
5707 * remote.c (remote_target::start_remote): Don't set inferior_ptid
5708 directly. Instead find the first thread in the thread list and
5709 use switch_to_thread.
5710
78f2c40a
PA
57112020-01-10 Pedro Alves <palves@redhat.com>
5712
5713 * remote.c (remote_target::remote_add_inferior): Don't bind a
5714 process to the current inferior if the current inferior is already
5715 bound to a process.
5716
e7af6c70
TBA
57172020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5718 Pedro Alves <palves@redhat.com>
5719
5720 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
5721 If no process is specified, return null_ptid instead of
5722 inferior_ptid.
5723 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
5724 TARGET_WAITKIND_SIGNALLED with no pid.
5725
31ba933e
PA
57262020-01-10 Pedro Alves <palves@redhat.com>
5727
5728 * remote.c (first_remote_resumed_thread): New.
5729 (remote_target::wait_as): Use it as default event_ptid instead of
5730 inferior_ptid.
5731
735fc2ca
PA
57322020-01-10 Pedro Alves <palves@redhat.com>
5733
5734 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
5735
c17e02e1
PA
57362020-01-10 Pedro Alves <palves@redhat.com>
5737
5738 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
5739 not -1.
5740
ab1ddbcf
PA
57412020-01-10 Pedro Alves <palves@redhat.com>
5742
5743 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
5744 ptid to get_last_target_status.
5745 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
5746 ptid to get_last_target_status.
5747 * infcmd.c (continue_command): Don't pass a target_waitstatus to
5748 get_last_target_status.
5749 (info_program_command): Don't pass a target_waitstatus to
5750 get_last_target_status.
5751 * infrun.c (init_wait_for_inferior): Use
5752 nullify_last_target_wait_ptid.
5753 (get_last_target_status): Handle nullptr arguments.
5754 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
5755 (print_stop_event): Don't pass a ptid to get_last_target_status.
5756 (normal_stop): Don't pass a ptid to get_last_target_status.
5757 * infrun.h (get_last_target_status, set_last_target_status): Move
5758 comments here and update.
5759 (nullify_last_target_wait_ptid): Declare.
5760 * linux-fork.c (fork_load_infrun_state): Remove local extern
5761 declaration of nullify_last_target_wait_ptid.
5762 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
5763 to get_last_target_status.
5764
f3f8ece4
PA
57652020-01-10 Pedro Alves <palves@redhat.com>
5766
5767 * gdbthread.h (scoped_restore_current_thread)
5768 <dont_restore, restore, m_dont_restore>: Declare.
5769 * thread.c (thread_alive): Add assertion. Return bool.
5770 (switch_to_thread_if_alive): New.
5771 (prune_threads): Switch inferior/thread.
5772 (print_thread_info_1): Switch thread before calling target methods.
5773 (scoped_restore_current_thread::restore): New, factored out from
5774 ...
5775 (scoped_restore_current_thread::~scoped_restore_current_thread):
5776 ... this.
5777 (scoped_restore_current_thread::scoped_restore_current_thread):
5778 Add assertion.
5779 (thread_apply_all_command, thread_select): Use
5780 switch_to_thread_if_alive.
5781 * infrun.c (proceed, restart_threads, handle_signal_stop)
5782 (switch_back_to_stepped_thread): Switch current thread before
5783 calling target methods.
5784
db2d40f7
PA
57852020-01-10 Pedro Alves <palves@redhat.com>
5786
5787 * inferior.c (switch_to_inferior_no_thread): New function,
5788 factored out from ...
5789 (inferior_command): ... here.
5790 * inferior.h (switch_to_inferior_no_thread): Declare.
5791 * mi/mi-main.c (run_one_inferior): Use
5792 switch_to_inferior_no_thread.
5793
bd420a2d
PA
57942020-01-10 Pedro Alves <palves@redhat.com>
5795
5796 * infcmd.c (kill_command): Remove dead code.
5797
ddf5db90
PA
57982020-01-10 Pedro Alves <palves@redhat.com>
5799
5800 * remote.c (remote_target::mourn_inferior): No longer check
5801 whether the target is running.
5802
5018ce90
PA
58032020-01-10 Pedro Alves <palves@redhat.com>
5804
5805 * corelow.c (core_target::has_execution): Change parameter type to
5806 inferior pointer.
5807 * inferior.c (number_of_live_inferiors): Use
5808 inferior::has_execution instead of target_has_execution_1.
5809 * inferior.h (inferior::has_execution): New.
5810 * linux-thread-db.c (thread_db_target::update_thread_list): Use
5811 inferior::has_execution instead of target_has_execution_1.
5812 * process-stratum-target.c
5813 (process_stratum_target::has_execution): Change parameter type to
5814 inferior pointer. Check the inferior's PID instead of
5815 inferior_ptid.
5816 * process-stratum-target.h
5817 (process_stratum_target::has_execution): Change parameter type to
5818 inferior pointer.
5819 * record-full.c (record_full_core_target::has_execution): Change
5820 parameter type to inferior pointer.
5821 * target.c (target_has_execution_1): Change parameter type to
5822 inferior pointer.
5823 (target_has_execution_current): Adjust.
5824 * target.h (target_ops::has_execution): Change parameter type to
5825 inferior pointer.
5826 (target_has_execution_1): Change parameter type to inferior
5827 pointer. Change return type to bool.
5828 * tracefile.h (tracefile_target::has_execution): Change parameter
5829 type to inferior pointer.
5830
74375d18
PA
58312020-01-10 Pedro Alves <palves@redhat.com>
5832
5833 * exceptions.c (print_flush): Remove current_top_target() check.
5834
acdf84a6
PA
58352020-01-10 Pedro Alves <palves@redhat.com>
5836
5837 * remote.c (show_remote_exec_file): Show the current inferior's
5838 exec-file instead of the command variable's value.
5839
ec506636
PA
58402020-01-10 Pedro Alves <palves@redhat.com>
5841
5842 * record-full.c (record_full_resume_ptid): New global.
5843 (record_full_target::resume): Set it.
5844 (record_full_wait_1): Use record_full_resume_ptid instead of
5845 inferior_ptid.
5846
873657b9
PA
58472020-01-10 Pedro Alves <palves@redhat.com>
5848
5849 * gdbthread.h (scoped_restore_current_thread)
5850 <dont_restore, restore, m_dont_restore>: Declare.
5851 * thread.c (thread_alive): Add assertion. Return bool.
5852 (switch_to_thread_if_alive): New.
5853 (prune_threads): Switch inferior/thread.
5854 (print_thread_info_1): Switch thread before calling target methods.
5855 (scoped_restore_current_thread::restore): New, factored out from
5856 ...
5857 (scoped_restore_current_thread::~scoped_restore_current_thread):
5858 ... this.
5859 (scoped_restore_current_thread::scoped_restore_current_thread):
5860 Add assertion.
5861 (thread_apply_all_command, thread_select): Use
5862 switch_to_thread_if_alive.
5863
7f0ae84c
GB
58642020-01-10 George Barrett <bob@bob131.so>
5865
5866 * stap-probe.c (stap_modify_semaphore): Don't check for null
5867 semaphores.
5868 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
5869 for null semaphores.
5870
f5a7c406
AB
58712020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
5872
5873 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
5874 all source windows, and maintain horizontal scroll status while
5875 doing so.
5876
9ae6bf64
TT
58772020-01-09 Tom Tromey <tom@tromey.com>
5878
5879 PR tui/18932:
5880 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
5881 update_source_window, not print_source_lines.
5882
b2efe70c
AB
58832020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
5884
5885 * tui/tui.c (tui_enable): Register tui hooks after calling
5886 tui_display_main.
5887
5f23a082
CB
58882020-01-09 Christian Biesinger <cbiesinger@google.com>
5889
5890 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
5891
3061113b
SM
58922020-01-08 Simon Marchi <simon.marchi@efficios.com>
5893
5894 * thread.c (print_thread_info_1): Fix indentation.
5895
57d75002
CB
58962020-01-09 Christian Biesinger <cbiesinger@google.com>
5897
5898 * symtab.c (general_symbol_info::compute_and_set_names): Move the
5899 unique_xmalloc_ptr outside the if to always free the demangled name.
5900
6a053cb1
TT
59012020-01-08 Tom Tromey <tromey@adacore.com>
5902
5903 * xcoffread.c (enter_line_range, read_xcoff_symtab)
5904 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
5905 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
5906 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
5907 Remove.
5908 (section_offsets): New typedef.
5909 * symtab.c (fixup_section, get_msymbol_address): Update.
5910 * symmisc.c (dump_msymbols): Update.
5911 * symfile.h (relative_addr_info_to_section_offsets)
5912 (symfile_map_offsets_to_segments): Update.
5913 * symfile.c (build_section_addr_info_from_objfile)
5914 (init_objfile_sect_indices): Update.
5915 (struct place_section_arg): Change type of "offsets".
5916 (place_section): Update.
5917 (relative_addr_info_to_section_offsets): Change type of
5918 "section_offsets". Remove "num_sections" parameter.
5919 (default_symfile_offsets, syms_from_objfile_1)
5920 (set_objfile_default_section_offset): Update.
5921 (reread_symbols): No need to preserve section offsets by hand.
5922 (symfile_map_offsets_to_segments): Change type of "offsets".
5923 * stap-probe.c (relocate_address): Update.
5924 * stabsread.h (process_one_symbol): Update.
5925 * solib-target.c (struct lm_info_target) <offsets>: Change type.
5926 (solib_target_relocate_section_addresses): Update.
5927 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
5928 Update.
5929 * solib-frv.c (frv_relocate_main_executable): Update.
5930 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
5931 * solib-aix.c (solib_aix_get_section_offsets): Change return
5932 type.
5933 (solib_aix_solib_create_inferior_hook): Update.
5934 * remote.c (remote_target::get_offsets): Update.
5935 * psymtab.c (find_pc_sect_psymtab): Update.
5936 * psympriv.h (struct partial_symbol) <address, text_low,
5937 text_high>: Update.
5938 * objfiles.h (obj_section_offset): Update.
5939 (struct objfile) <section_offsets>: Change type.
5940 <num_sections>: Remove.
5941 (objfile_relocate): Update.
5942 * objfiles.c (entry_point_address_query): Update
5943 (relocate_one_symbol): Change type of "section_offsets".
5944 (objfile_relocate1, objfile_relocate1): Change type of
5945 "new_offsets".
5946 (objfile_rebase1): Update.
5947 * mipsread.c (mipscoff_symfile_read): Update.
5948 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
5949 parameter.
5950 * mdebugread.c (parse_symbol): Change type of "section_offsets".
5951 (parse_external, psymtab_to_symtab_1): Update.
5952 * machoread.c (macho_symfile_offsets): Update.
5953 * ia64-tdep.c (ia64_find_unwind_table): Update.
5954 * hppa-tdep.c (read_unwind_info): Update.
5955 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
5956 * dwarf2read.c (create_addrmap_from_index)
5957 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5958 (process_psymtab_comp_unit_reader, add_partial_symbol)
5959 (add_partial_subprogram, process_full_comp_unit)
5960 (read_file_scope, read_func_scope, read_lexical_block_scope)
5961 (read_call_site_scope, dwarf2_rnglists_process)
5962 (dwarf2_ranges_process, dwarf2_ranges_read)
5963 (dwarf_decode_lines_1, var_decode_location, new_symbol)
5964 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
5965 Update.
5966 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
5967 Update.
5968 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
5969 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
5970 (process_one_symbol): Change type of "section_offsets".
5971 * ctfread.c (get_objfile_text_range): Update.
5972 * coffread.c (coff_symtab_read, enter_linenos)
5973 (process_coff_symbol): Update.
5974 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5975 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
5976
456e800a
TT
59772020-01-08 Tom Tromey <tromey@adacore.com>
5978
5979 * dwarf2read.c (parse_macro_definition): Use std::string.
5980 (parse_macro_definition): Likewise.
5981
6dfa2fc2
TT
59822020-01-08 Tom Tromey <tromey@adacore.com>
5983
5984 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
5985 (ATTR_ALLOC_CHUNK): Remove.
5986
421d1616
TT
59872020-01-08 Tom Tromey <tromey@adacore.com>
5988
5989 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
5990
43816ebc
TT
59912020-01-08 Tom Tromey <tromey@adacore.com>
5992
5993 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
5994 (dwarf2_compute_name, open_dwo_file): Likewise.
5995 (process_enumeration_scope): Use std::vector.
5996 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
5997 (partial_die_info::fixup, dwarf2_start_subfile)
5998 (guess_full_die_structure_name, dwarf2_name): Likewise.
5999 (determine_prefix): Update.
6000 (guess_full_die_structure_name): Make return type const.
6001 (partial_die_full_name): Return unique_xmalloc_ptr.
6002 (DW_FIELD_ALLOC_CHUNK): Remove.
6003
4212d509
TT
60042020-01-07 Tom Tromey <tromey@adacore.com>
6005
6006 PR build/24937:
6007 * stap-probe.c (class stap_static_probe_ops): Add constructor.
6008
06a6207a
JT
60092020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
6010
6011 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
6012
153d79c4
AB
60132020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
6014
6015 * stack.c (print_frame_info): Move disassemble_next_line code
6016 inside source_print block.
6017
66182876
EZ
60182020-01-06 Eli Zaretskii <eliz@gnu.org>
6019
6020 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
6021 gdb/signals.h, as we are now using native signal symbols.
6022
cbfa8581
SV
60232020-01-06 Shahab Vahedi <shahab@synopsys.com>
6024
6025 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
6026 overflow by an early check of content vs threshold.
6027 * tui/tui-source.c (tui_source_window::line_is_displayed):
6028 Likewise.
6029
3f602821
EZ
60302020-01-06 Eli Zaretskii <eliz@gnu.org>
6031
6032 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
6033
a08c904d
JT
60342020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
6035
6036 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
6037 export table if no section contains it's RVA.
6038
89a65580
EZ
60392020-01-06 Eli Zaretskii <eliz@gnu.org>
6040
6041 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
6042
8b7fcda2
HD
60432020-01-06 Hannes Domani <ssbssa@yahoo.de>
6044
6045 * source.c (print_source_lines_base): Set last_line_listed.
6046
a61b4f69
SV
60472020-01-06 Shahab Vahedi <shahab@synopsys.com>
6048
6049 * tui/tui-disasm.c: Remove trailing spaces.
6050
559e7e50
EZ
60512020-01-06 Eli Zaretskii <eliz@gnu.org>
6052 Pedro Alves <palves@redhat.com>
6053
6054 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
6055 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
6056 (windows_gdb_signal_to_target): New function, uses the above
6057 enumeration to convert GDB internal signal codes to equivalent
6058 Windows codes.
6059 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
6060 * windows-nat.c: Include "gdb_wait.h".
6061 (get_windows_debug_event): Extract the fatal exception from the
6062 exit status and convert to the equivalent Posix signal number.
6063 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
6064 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
6065 * gdbsupport/gdb_wait.c: New file, implements
6066 windows_status_to_termsig.
6067 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
6068 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
6069
f2302a34
AB
60702020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
6071
6072 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
6073 show_layout.
6074
6a5206eb
LM
60752020-01-05 Luis Machado <luis.machado@linaro.org>
6076
6077 * aarch64-linux-nat.c
6078 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
6079 and bfd_mach_aarch64.
6080
6ec1d75e
PW
60812020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6082
6083 * ui-file.c (stdio_file::can_emit_style_escape)
6084 (tee_file::can_emit_style_escape): Ensure style is used also on
6085 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
6086 to gdb_stdout.
6087 * main.c (set_gdb_data_directory): Use file style to output the
6088 warning that the given pathname is not a directory.
6089 * top.c (show_history_filename, gdb_safe_append_history)
6090 (show_gdb_datadir): Use file style.
6091
44f81a76
HD
60922020-01-03 Hannes Domani <ssbssa@yahoo.de>
6093
6094 * solib-target.c (struct lm_info_target):
6095 Change offsets to be a unique_xmalloc_ptr.
6096 (solib_target_relocate_section_addresses): Update.
6097
25057eb0
HD
60982020-01-03 Hannes Domani <ssbssa@yahoo.de>
6099
6100 * windows-nat.c (windows_clear_solib): Free so_list linked list.
6101
6e2118f5
BE
61022020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
6103
6104 * MAINTAINERS (Write After Approval): Add myself.
6105
8133c7dc
LM
61062020-01-02 Luis Machado <luis.machado@linaro.org>
6107
6108 * proc-service.c (get_ps_regcache): Remove reference to obsolete
6109 Cell BE architecture.
6110 * target.h (struct target_ops) <thread_architecture>: Likewise.
6111
48189bec
HD
61122020-01-01 Hannes Domani <ssbssa@yahoo.de>
6113
6114 * Makefile.in: Use INSTALL_PROGRAM_ENV.
6115
ead1063b
HD
61162020-01-01 Hannes Domani <ssbssa@yahoo.de>
6117
6118 * MAINTAINERS (Write After Approval): Add myself.
6119
e5d78223
JB
61202020-01-01 Joel Brobecker <brobecker@adacore.com>
6121
6122 * gdbarch.sh: Update copyright year range of generated files.
6123
b811d2c2
JB
61242020-01-01 Joel Brobecker <brobecker@adacore.com>
6125
6126 Update copyright year range in all GDB files.
6127
5f4def5c
JB
61282020-01-01 Joel Brobecker <brobecker@adacore.com>
6129
6130 * copyright.py: Convert to Python 3.
6131
51fd4002
JB
61322020-01-01 Joel Brobecker <brobecker@adacore.com>
6133
6134 * copyright.py: Adapt after move of gnulib directory from gdb
6135 directory to toplevel directory.
6136
5fb651f2
JB
61372020-01-01 Joel Brobecker <brobecker@adacore.com>
6138
6139 * copyright.py (main): Exit if run from the wrong directory.
6140
5dd8bf88
JB
61412020-01-01 Joel Brobecker <brobecker@adacore.com>
6142
6143 * top.c (print_gdb_version): Change copyright year to 2020.
6144
9f71dacb 61452020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 6146
9f71dacb 6147 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 6148
9f71dacb 6149For older changes see ChangeLog-2019.
c906108c
SS
6150\f
6151Local Variables:
6152mode: change-log
6153left-margin: 8
6154fill-column: 74
6155version-control: never
57da7796 6156coding: utf-8
c906108c 6157End:
This page took 2.705725 seconds and 4 git commands to generate.