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