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