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