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