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