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