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