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