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