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