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