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