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