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