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