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