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