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