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