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