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