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