]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Don't unnecessarily redefine 'socklen_t' type in MinGW builds.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-07-26 Eli Zaretskii <eliz@gnu.org>
2
3 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4 ws2tcpip.h. When checking whether socklen_t type is defined, use
5 ws2tcpip.h if it is available and sys/socket.h isn't.
6 * configure: Regenerate.
7 * config.in: Regenerate.
8
9 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
10
11 PR fortran/23051
12 PR fortran/26139
13 * valops.c (value_ind): Pass address to
14 readjust_indirect_value_type.
15 * value.c (readjust_indirect_value_type): Make parameter
16 non-const, and add extra address parameter. Resolve original type
17 before using it.
18 * value.h (readjust_indirect_value_type): Update function
19 signature and comment.
20
21 2020-07-25 Tom de Vries <tdevries@suse.de>
22
23 PR symtab/26243
24 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
25 entries.
26
27 2020-07-24 Aaron Merey <amerey@redhat.com>
28
29 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
30 * configure: Rebuild.
31
32 2020-07-23 Kevin Buettner <kevinb@redhat.com>
33
34 PR corefiles/26294
35 * corelow.c (_initialize_corelow): Add period to help text
36 for "maintenance print core-file-backed-mappings".
37
38 2020-07-23 Pedro Alves <pedro@palves.net>
39
40 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
41 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
42 meanwhile.
43 * frame.c (frame_cache_generation, get_frame_cache_generation):
44 New.
45 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
46 (get_prev_frame_if_no_cycle): On exception, don't touch
47 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
48 * frame.h (get_frame_cache_generation): Declare.
49
50 2020-07-23 Tom de Vries <tdevries@suse.de>
51
52 PR tui/26282
53 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
54 New default constructor.
55
56 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
57
58 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
59 exclude non-statement entries.
60
61 2020-07-22 Kevin Buettner <kevinb@redhat.com>
62
63 * NEWS (New commands): Mention new command
64 "maintenance print core-file-backed-mappings".
65
66 2020-07-22 Kevin Buettner <kevinb@redhat.com>
67
68 * corelow.c (gdbcmd.h): Include.
69 (core_target::info_proc_mappings): New method.
70 (get_current_core_target): New function.
71 (maintenance_print_core_file_backed_mappings): New function.
72 (_initialize_corelow): Add core-file-backed-mappings to
73 "maint print" commands.
74
75 2020-07-22 Kevin Buettner <kevinb@redhat.com>
76
77 * linux-tdep.c (dump_note_entry_p): New function.
78 (linux_dump_mapping_p_ftype): New typedef.
79 (linux_find_memory_regions_full): Add new parameter,
80 should_dump_mapping_p.
81 (linux_find_memory_regions): Adjust call to
82 linux_find_memory_regions_full.
83 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
84 call to linux_find_memory_regions_full.
85
86 2020-07-22 Kevin Buettner <kevinb@redhat.com>
87
88 * corelow.c (solist.h, unordered_map): Include.
89 (class core_target): Add field m_core_file_mappings and
90 method build_file_mappings.
91 (core_target::core_target): Call build_file_mappings.
92 (core_target::~core_target): Free memory associated with
93 m_core_file_mappings.
94 (core_target::build_file_mappings): New method.
95 (core_target::xfer_partial): Use m_core_file_mappings
96 for memory transfers.
97 * linux-tdep.c (linux_read_core_file_mappings): New
98 function.
99 (linux_core_info_proc_mappings): Rewrite to use
100 linux_read_core_file_mappings.
101 (linux_init_abi): Register linux_read_core_file_mappings.
102
103 2020-07-22 Kevin Buettner <kevinb@redhat.com>
104
105 * arch-utils.c (default_read_core_file_mappings): New function.
106 * arch-utils.c (default_read_core_file_mappings): Declare.
107 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
108 * gdbarch.h, gdbarch.c: Regenerate.
109
110 2020-07-22 Kevin Buettner <kevinb@redhat.com>
111
112 PR corefiles/25631
113 * corelow.c (core_target:xfer_partial): Revise
114 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
115 case after first checking the stratum beneath the core
116 target.
117 (has_all_memory): Return true.
118 * target.c (raw_memory_xfer_partial): Revise comment
119 regarding use of has_all_memory.
120
121 2020-07-22 Kevin Buettner <kevinb@redhat.com>
122
123 * exec.h (section_table_xfer_memory): Revise declaration,
124 replacing section name parameter with an optional callback
125 predicate.
126 * exec.c (section_table_xfer_memory): Likewise.
127 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
128 of section_table_xfer_memory.
129
130 2020-07-22 Tom Tromey <tromey@adacore.com>
131
132 * mi/mi-cmd-stack.c (list_args_or_locals): Use
133 lookup_symbol_search_name.
134
135 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
136
137 * python/py-registers.c (gdbpy_register_object_data_init): Remove
138 redundant local variable.
139 (gdbpy_get_register_descriptor): Extract descriptor vector as a
140 reference, not pointer, update code accordingly.
141
142 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
143 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
144
145 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
146 * jit.c (jit_breakpoint_re_set_internal): Use the
147 `skip_jit_symbol_lookup` field.
148
149 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
150 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
151
152 * jit.c (jit_read_descriptor): Define the descriptor address once,
153 use twice.
154 (jit_breakpoint_deleted): Move the declaration of the loop variable
155 `iter` into the loop header.
156 (jit_breakpoint_re_set_internal): Move the declaration of the local
157 variable `objf_data` to the first point of definition.
158 (jit_event_handler): Move the declaration of local variables
159 `code_entry`, `entry_addr`, and `objf` to their first point of use.
160 Rename `objf` to `jited`.
161
162 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
163
164 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
165 Remove.
166 * jit.c (get_jiter_objfile_data): Update.
167
168 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
169 Simon Marchi <simon.marchi@polymtl.ca>
170
171 * jit.c (struct jit_program_space_data): Remove.
172 (jit_program_space_key): Remove.
173 (jiter_objfile_data::~jiter_objfile_data): Remove program space
174 stuff.
175 (get_jit_program_space_data): Remove.
176 (jit_breakpoint_deleted): Iterate on all of the program space's
177 objfiles.
178 (jit_inferior_init): Likewise.
179 (jit_breakpoint_re_set_internal): Likewise. Also change return
180 type to void.
181 (jit_breakpoint_re_set): Pass current_program_space to
182 jit_breakpoint_re_set_internal.
183
184 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
185
186 * jit.h (struct jiter_objfile_data) <cached_code_address,
187 jit_breakpoint>: Move to here from ...
188 * jit.c (jit_program_space_data): ... here.
189 (jiter_objfile_data::~jiter_objfile_data): Update.
190 (jit_breakpoint_deleted): Update.
191 (jit_breakpoint_re_set_internal): Update.
192
193 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
194
195 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
196 checks.
197 (jit_read_descriptor): Remove NULL check.
198 (jit_event_handler): Add an assertion.
199
200 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
201
202 * jit.h (struct jit_objfile_data): Split into...
203 (struct jiter_objfile_data): ... this ...
204 (struct jited_objfile_data): ... and this.
205 * objfiles.h (struct objfile) <jit_data>: Remove.
206 <jiter_data, jited_data>: New fields.
207 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
208 (jiter_objfile_data::~jiter_objfile_data): ... this.
209 (get_jit_objfile_data): Rename to ...
210 (get_jiter_objfile_data): ... this.
211 (add_objfile_entry): Update.
212 (jit_read_descriptor): Use get_jiter_objfile_data.
213 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
214 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
215 (jit_inferior_exit_hook): Use objfile's jited_data field.
216
217 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
218
219 * jit.h: Forward-declare `struct minimal_symbol`.
220 (struct jit_objfile_data): Migrate to here from jit.c; also add a
221 constructor, destructor, and an objfile* field.
222 * jit.c (jit_objfile_data): Remove.
223 (struct jit_objfile_data): Migrate from here to jit.h.
224 (jit_objfile_data::~jit_objfile_data): New destructor
225 implementation with code moved from free_objfile_data.
226 (free_objfile_data): Delete.
227 (get_jit_objfile_data): Update to use the jit_data field of objfile.
228 (jit_find_objf_with_entry_addr): Ditto.
229 (jit_inferior_exit_hook): Ditto.
230 (_initialize_jit): Remove the call to
231 register_objfile_data_with_cleanup.
232 * objfiles.h (struct objfile) <jit_data>: New field.
233
234 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
235
236 * jit.h: Forward-declare `struct objfile`.
237 (jit_event_handler): Add a second parameter, the JITer objfile.
238 * jit.c (jit_read_descriptor): Change the signature to take the
239 JITer objfile as an argument instead of the jit_program_space_data.
240 (jit_inferior_init): Update the call to jit_read_descriptor.
241 (jit_event_handler): Use the new JITer objfile argument when calling
242 jit_read_descriptor.
243 * breakpoint.c (handle_jit_event): Update the call to
244 jit_event_handler to pass the JITer objfile.
245
246 2020-07-21 John Baldwin <jhb@FreeBSD.org>
247
248 * gdbarch.c: Regenerate.
249 * gdbarch.h: Regenerate.
250 * gdbarch.sh (handle_segmentation_fault): Remove method.
251 * infrun.c (handle_segmentation_fault): Remove.
252 (print_signal_received_reason): Remove call to
253 handle_segmentation_fault.
254
255 2020-07-21 John Baldwin <jhb@FreeBSD.org>
256
257 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
258 Rename to sparc64_linux_report_signal_info and add siggnal
259 argument.
260 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
261 instead of sparc64_linux_handle_segmentation_fault.
262
263 2020-07-21 John Baldwin <jhb@FreeBSD.org>
264
265 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
266 i386_linux_report_signal_info instead of
267 i386_linux_handle_segmentation_fault.
268 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
269 to i386_linux_report_signal_info and add siggnal argument.
270 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
271 of i386_linux_handle_segmentation_fault.
272 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
273 to i386_linux_report_signal_info and add siggnal argument.
274
275 2020-07-21 John Baldwin <jhb@FreeBSD.org>
276
277 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
278 hook if present.
279
280 2020-07-21 John Baldwin <jhb@FreeBSD.org>
281
282 * gdbarch.c: Regenerate.
283 * gdbarch.h: Regenerate.
284 * gdbarch.sh (report_signal_info): New method.
285 * infrun.c (print_signal_received_reason): Invoke gdbarch
286 report_signal_info hook if present.
287
288 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
289
290 * python/py-registers.c : Add 'unordered_map' include.
291 (gdbpy_new_reggroup): Renamed to...
292 (gdbpy_get_reggroup): ...this. Update to only create register
293 group descriptors when needed.
294 (gdbpy_reggroup_iter_next): Update.
295
296 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
297
298 * python/py-registers.c (gdbpy_register_object_data): New static
299 global.
300 (gdbpy_register_object_data_init): New function.
301 (gdbpy_new_register_descriptor): Renamed to...
302 (gdbpy_get_register_descriptor): ...this, and update to reuse
303 existing register descriptors where possible.
304 (gdbpy_register_descriptor_iter_next): Update.
305 (gdbpy_initialize_registers): Register new gdbarch data.
306
307 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
308
309 * linux-nat.c (stopped_pids): Make static.
310
311 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
312
313 PR ada/26235
314 * gdbtypes.c (ada_discrete_type_low_bound,
315 ada_discrete_type_high_bound): Handle undefined bounds.
316
317 2020-07-21 Kamil Rytarowski <n54@gmx.com>
318
319 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
320 declaration.
321 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
322 function.
323
324 2020-07-20 John Baldwin <jhb@FreeBSD.org>
325
326 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
327 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
328 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
329 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
330 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
331 method.
332
333 2020-07-20 Ludovic Courtès <ludo@gnu.org>
334
335 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
336 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
337 which are deprecated in Guile 3.0.
338 * configure.ac (try_guile_versions): Add "guile-3.0".
339 * configure (try_guile_versions): Regenerate.
340 * NEWS: Update entry.
341
342 2020-07-20 Ludovic Courtès <ludo@gnu.org>
343 Doug Evans <dje@google.com>
344
345 PR gdb/21104
346 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
347 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
348 USING_GUILE_BEFORE_2_2.
349 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
350 Change type to 'scm_t_port_type *'.
351 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
352 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
353 parameter and honor it. Update callers.
354 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
355 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
356 functions.
357 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
358 USING_GUILE_BEFORE_2_2.
359 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
360 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
361 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
362 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
363 and 'SCM_PORT_TYPE'.
364 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
365 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
366 (gdbscm_memory_port_read, gdbscm_memory_port_write)
367 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
368 [!USING_GUILE_BEFORE_2_2]: New functions.
369 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
370 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
371 'gdbscm_memory_port_read'.
372 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
373 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
374 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
375 function.
376 (ioscm_init_memory_port): Remove.
377 (ioscm_init_memory_port_stream): New function
378 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
379 function.
380 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
381 Return scm_from_uint (0).
382 (gdbscm_set_memory_port_read_buffer_size_x)
383 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
384 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
385 Return scm_from_uint (0).
386 (gdbscm_set_memory_port_write_buffer_size_x)
387 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
388 * configure.ac (try_guile_versions): Add "guile-2.2".
389 * configure: Regenerate.
390 * NEWS: Add entry.
391
392 2020-07-18 Tom Tromey <tom@tromey.com>
393
394 * linux-nat.c (linux_multi_process): Remove.
395 (linux_nat_target::supports_multi_process): Return true.
396
397 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
398
399 * arch/riscv.c (riscv_tdesc_cache): Change map type.
400 (riscv_lookup_target_description): Return pointer out of
401 unique_ptr.
402 * target-descriptions.c (allocate_target_description): Add
403 comment.
404 (target_desc_deleter::operator()): Likewise.
405 * target-descriptions.h (struct target_desc_deleter): Moved to
406 gdbsupport/tdesc.h.
407 (target_desc_up): Likewise.
408
409 2020-07-17 Tom Tromey <tromey@adacore.com>
410
411 * linux-nat.c (linux_nat_target::supports_non_stop)
412 (linux_nat_target::always_non_stop_p): Use "true".
413 (linux_nat_target::supports_disable_randomization): Use "true" and
414 "false".
415
416 2020-07-16 Caroline Tice <cmtice@google.com>
417
418 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
419 (RNGLIST_HEADER_SIZE64): New constant definition.
420 (struct dwop_section_names): Add rnglists_dwo.
421 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
422 (struct loclist_header): Rename to 'loclists_rnglists_header'.
423 (struct dwo_sections): Add rnglists field.
424 (read_attribut_reprocess): Add tag parameter.
425 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
426 (cu_debug_rnglists_section): New function (decl & definition).
427 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
428 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
429 die whose range is being checked; get rnglist section from
430 cu_debug_rnglists_section, to get from either objfile or dwo file as
431 appropriate. Add cases for DW_RLE_base_addressx,
432 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
433 the base address to DW_RLE_offset_pairs (not to all ranges), moving
434 test inside if-condition and updating complaint message.
435 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
436 dwarf2_rnglists_process.
437 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
438 dwarf2_ranges_process.
439 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
440 need_ranges_base and update comment appropriately. Also pass die tag
441 to dwarf2_ranges_read.
442 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
443 need_ranges_base and update comment appropriately. Also pass die tag
444 to dwarf2_ranges_process.
445 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
446 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
447 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
448 need_ranges_base and update comment appropriately. Also pass die tag
449 to read_attribute_reprocess and dwarf2_ranges_read.
450 (read_loclist_header): Rename function to read_loclists_rnglists_header,
451 and update function comment appropriately.
452 (read_loclist_index): Call read_loclists_rnglists_header instead of
453 read_loclist_header.
454 (read_rnglist_index): New function.
455 (read_attribute_reprocess): Add tag parameter. Add code for
456 DW_FORM_rnglistx, passing tag to read_rnglist_index.
457 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
458
459 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
460
461 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
462 being resolved.
463
464 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
465
466 * arch-utils.c (show_architecture): Update formatting of messages.
467
468 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
469
470 * gdbtypes.h (struct type) <bounds>: Handle array and string
471 types.
472 * ada-lang.c (assign_aggregate): Use type::bounds on
473 array/string type.
474 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
475 * c-varobj.c (c_number_of_children): Likewise.
476 (c_describe_child): Likewise.
477 * eval.c (evaluate_subexp_for_sizeof): Likewise.
478 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
479 (f_type_print_base): Likewise.
480 * f-valprint.c (f77_array_offset_tbl): Likewise.
481 (f77_get_upperbound): Likewise.
482 (f77_print_array_1): Likewise.
483 * guile/scm-type.c (gdbscm_type_range): Likewise.
484 * m2-typeprint.c (m2_array): Likewise.
485 (m2_is_long_set_of_type): Likewise.
486 * m2-valprint.c (get_long_set_bounds): Likewise.
487 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
488 * python/py-type.c (typy_range): Likewise.
489 * rust-lang.c (rust_internal_print_type): Likewise.
490 * type-stack.c (type_stack::follow_types): Likewise.
491 * valarith.c (value_subscripted_rvalue): Likewise.
492 * valops.c (value_cast): Likewise.
493
494 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
495
496 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
497 callers to use the equivalent accessor methods.
498
499 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
500
501 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
502 (struct type) <bit_stride>: New method.
503 (TYPE_BIT_STRIDE): Remove.
504 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
505
506 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
507
508 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
509 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
510 callers to use the equivalent accessor methods instead.
511
512 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
513
514 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
515 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
516 callers to use the equivalent accessor methods instead.
517
518 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
519
520 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
521 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
522 to use dynamic_prop::kind.
523
524 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
525
526 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
527 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
528 to get the bound property's kind and check against
529 PROP_UNDEFINED.
530
531 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
532
533 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
534 all callers to use type::range_bounds followed by
535 dynamic_prop::{low,high}.
536
537 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
538
539 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
540 const_val, set_const_val, baton, set_locexpr, set_loclist,
541 set_addr_offset, variant_parts, set_variant_parts,
542 original_type, set_original_type>: New methods.
543 <kind>: Rename to...
544 <m_kind>: ... this. Update all users to use the new methods
545 instead.
546 <data>: Rename to...
547 <m_data>: ... this. Update all users to use the new methods
548 instead.
549
550 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
551
552 * gdbtypes.c (get_discrete_bounds): Return failure if
553 the range type's bounds are not both defined and constant
554 values.
555 (get_array_bounds): Update comment. Remove undefined bound check.
556
557 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
558
559 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
560 the type::bounds method directly.
561
562 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
563
564 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
565 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
566 are used to set the range type's bounds to use set_bounds.
567
568 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
569
570 * exec.c (_initialize_exec): Update exec-file-mismatch help.
571
572 2020-07-10 Pedro Alves <pedro@palves.net>
573
574 * gdbthread.h (inferior_ref): Define.
575 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
576 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
577 * thread.c
578 (scoped_restore_current_thread::restore):
579 Adjust to gdb::ref_ptr.
580 (scoped_restore_current_thread::~scoped_restore_current_thread):
581 Remove manual decref handling.
582 (scoped_restore_current_thread::scoped_restore_current_thread):
583 Adjust to use
584 inferior_ref::new_reference/thread_info_ref::new_reference.
585 Incref the thread before calling get_frame_id instead of after.
586 Let TARGET_CLOSE_ERROR propagate.
587
588 2020-07-10 Pedro Alves <pedro@palves.net>
589
590 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
591 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
592 NOT_AVAILABLE_ERROR.
593 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
594 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
595
596 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
597 Pedro Alves <pedro@palves.net>
598
599 PR gdb/26199
600 * infrun.c (threads_are_resumed_pending_p): Delete.
601 (do_target_wait): Remove threads_are_executing and
602 threads_are_resumed_pending_p checks from the inferior_matches
603 lambda. Update comments.
604
605 2020-07-10 Pedro Alves <pedro@palves.net>
606
607 PR gdb/26199
608 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
609 executing threads.
610
611 2020-07-10 Pedro Alves <pedro@palves.net>
612
613 PR gdb/26199
614 * infrun.c (handle_no_resumed): Handle multiple targets.
615
616 2020-07-10 Pedro Alves <pedro@palves.net>
617
618 PR gdb/26199
619 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
620 target_is_async_p.
621
622 2020-07-10 Pedro Alves <pedro@palves.net>
623
624 PR gdb/26199
625 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
626 threads, not all threads.
627
628 2020-07-10 Pedro Alves <pedro@palves.net>
629
630 PR gdb/26199
631 * remote.c (remote_target::open_1): Pass remote target pointer as
632 data to create_async_event_handler.
633 (remote_async_inferior_event_handler): Mark async event handler
634 before returning if the remote target still has either pending
635 events or unacknowledged notifications.
636
637 2020-07-10 John Baldwin <jhb@FreeBSD.org>
638
639 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
640 declaration.
641 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
642 function.
643
644 2020-07-09 John Baldwin <jhb@FreeBSD.org>
645
646 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
647 inferior_ptid.
648
649 2020-07-09 John Baldwin <jhb@FreeBSD.org>
650
651 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
652 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
653 AT_FREEBSD_PS_STRINGS.
654
655 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
656
657 * auto-load.c (auto_load_objfile_script_1): Convert drive part
658 of debugfile path on Windows.
659
660 2020-07-08 John Baldwin <jhb@FreeBSD.org>
661
662 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
663 argument to 'data'.
664
665 2020-07-08 Tom Tromey <tromey@adacore.com>
666
667 * ada-lang.c (ada_exception_message_1): Use read_memory.
668
669 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
670
671 PR python/22748
672 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
673 special handling for inline frames.
674 * findvar.c (value_of_register_lazy): Skip inline frames when
675 creating lazy register values.
676 * frame.c (frame_id_computed_p): Delete definition.
677 * frame.h (frame_id_computed_p): Delete declaration.
678
679 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
680
681 * NEWS: Mention additions to Python API.
682 * python/py-arch.c (archpy_register_groups): New function.
683 (arch_object_methods): Add 'register_groups' method.
684 * python/py-registers.c (reggroup_iterator_object): New struct.
685 (reggroup_object): New struct.
686 (gdbpy_new_reggroup): New function.
687 (gdbpy_reggroup_to_string): New function.
688 (gdbpy_reggroup_name): New function.
689 (gdbpy_reggroup_iter): New function.
690 (gdbpy_reggroup_iter_next): New function.
691 (gdbpy_new_reggroup_iterator): New function
692 (gdbpy_initialize_registers): Register new types.
693 (reggroup_iterator_object_type): Define new Python type.
694 (gdbpy_reggroup_getset): New static global.
695 (reggroup_object_type): Define new Python type.
696 * python/python-internal.h
697
698 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
699
700 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
701 * python/py-arch.c (archpy_registers): New function.
702 (arch_object_methods): Add 'registers' method.
703 * python/py-registers.c: New file.
704 * python/python-internal.h
705 (gdbpy_new_register_descriptor_iterator): Declare.
706 (gdbpy_initialize_registers): Declare.
707 * python/python.c (do_start_initialization): Call
708 gdbpy_initialize_registers.
709 * NEWS: Mention additions to the Python API.
710
711 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
712
713 * NEWS: Mention new Python API method.
714 * python/py-unwind.c (pending_framepy_architecture): New function.
715 (pending_frame_object_methods): Add architecture method.
716
717 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
718
719 * gdbarch.c: Regenerate.
720 * gdbarch.h: Regenerate.
721 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
722 (gdbarch_data): Use internal_error for the case where
723 deprecated_set_gdbarch_data was originally needed.
724 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
725 and use passed in obstack.
726 (libunwind_frame_set_descr): Should no longer get back NULL from
727 gdbarch_data.
728 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
729 type.
730 * user-regs.c (user_regs_init): Update parameters, and use passed
731 in obstack.
732 (user_reg_add): Should no longer get back NULL from gdbarch_data.
733 (_initialize_user_regs): Register as a pre-init gdbarch data type.
734
735 2020-07-06 Tom de Vries <tdevries@suse.de>
736
737 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
738 End-Of-Sequence in lte_is_less_than.
739 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
740 "gdb: Don't reorder line table entries too much when sorting".
741
742 2020-07-06 Tom de Vries <tdevries@suse.de>
743
744 PR tui/26205
745 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
746
747 2020-07-05 Tom de Vries <tdevries@suse.de>
748
749 PR build/26187
750 * inferior.h (struct infcall_suspend_state_deleter): If available, use
751 std::uncaught_exceptions instead of deprecated
752 std::uncaught_exception.
753
754 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
755
756 * macroexp.h (macro_stringify): Return
757 gdb::unique_xmalloc_ptr<char>.
758 * macroexp.c (macro_stringify): Likewise.
759 * macrotab.c (fixup_definition): Update.
760
761 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
762
763 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
764 (lex_one_token): Update.
765 * macroexp.c (struct macro_buffer) <release>: Return
766 gdb::unique_xmalloc_ptr<char>.
767 (macro_stringify): Update.
768 (macro_expand): Update.
769 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
770 * macroexp.h (macro_expand_next): Likewise.
771
772 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
773
774 * macroexp.h (macro_lookup_ftype): Remove.
775 (macro_expand, macro_expand_once, macro_expand_next): Remove
776 lookup function parameters, add scope parameter.
777 * macroexp.c (scan, substitute_args, expand, maybe_expand,
778 macro_expand, macro_expand_once, macro_expand_next): Likewise.
779 * macroscope.h (standard_macro_lookup): Change parameter type
780 to macro_scope.
781 * macroscope.c (standard_macro_lookup): Likewise.
782 * c-exp.y (lex_one_token): Update.
783 * macrocmd.c (macro_expand_command): Likewise.
784 (macro_expand_once_command): Likewise.
785
786 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
787
788 * inf-loop.c (inferior_event_handler): Remove client_data param.
789 * inf-loop.h (inferior_event_handler): Likewise.
790 * infcmd.c (step_1): Adjust.
791 * infrun.c (proceed): Adjust.
792 (fetch_inferior_event): Remove client_data param.
793 (infrun_async_inferior_event_handler): Adjust.
794 * infrun.h (fetch_inferior_event): Remove `void *` param.
795 * linux-nat.c (handle_target_event): Adjust.
796 * record-btrace.c (record_btrace_handle_async_inferior_event):
797 Adjust.
798 * record-full.c (record_full_async_inferior_event_handler):
799 Adjust.
800 * remote.c (remote_async_inferior_event_handler): Adjust.
801
802 2020-07-01 Tom Tromey <tom@tromey.com>
803
804 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
805 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
806
807 2020-07-01 Tom Tromey <tom@tromey.com>
808
809 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
810 tui_gen_win_info.
811 (tui_win_info::make_window): Merge with
812 tui_gen_win_info::make_window.
813 (tui_win_info::make_visible): Move from tui_gen_win_info.
814 * tui/tui-win.c (tui_win_info::max_width): Move from
815 tui_gen_win_info.
816 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
817 type.
818 <window_factory>: Likewise.
819 * tui/tui-layout.c (tui_win_info::resize): Move from
820 tui_gen_win_info.
821 (make_standard_window): Change return type.
822 (get_locator_window, tui_get_window_by_name): Likewise.
823 (tui_layout_window::apply): Remove a cast.
824 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
825 (struct tui_win_info): Merge with tui_gen_win_info.
826 (struct tui_gen_win_info): Remove.
827
828 2020-07-01 Tom Tromey <tom@tromey.com>
829
830 * tui/tui-stack.h (struct tui_locator_window): Derive from
831 tui_win_info.
832 <do_scroll_horizontal, do_scroll_vertical>: New methods.
833 <can_box>: New method.
834
835 2020-07-01 Tom Tromey <tom@tromey.com>
836
837 * tui/tui-stack.h (struct tui_locator_window): Remove body.
838
839 2020-07-01 Tom Tromey <tom@tromey.com>
840
841 * tui/tui-regs.c (tui_data_window::display_registers_from)
842 (tui_data_window::display_registers_from)
843 (tui_data_window::first_data_item_displayed)
844 (tui_data_window::delete_data_content_windows): Update.
845 (tui_data_window::refresh_window, tui_data_window::no_refresh):
846 Remove.
847 (tui_data_window::check_register_values): Update.
848 (tui_data_item_window::rerender): Add parameters. Update.
849 (tui_data_item_window::refresh_window): Remove.
850 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
851 virtual.
852 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
853 tui_gen_win_info.
854 <refresh_window, max_height, min_height>: Remove.
855 <rerender>: Add parameters.
856 <x, y, visible>: New members.
857 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
858 <m_item_width>: New member.
859
860 2020-07-01 Tom Tromey <tom@tromey.com>
861
862 * tui/tui-regs.c (tui_data_window::show_register_group)
863 (tui_data_window::check_register_values): Update.
864 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
865 from item_no.
866
867 2020-07-01 Tom Tromey <tom@tromey.com>
868
869 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
870 useless "if".
871
872 2020-07-01 Tom Tromey <tom@tromey.com>
873
874 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
875 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
876
877 2020-07-01 Tom Tromey <tom@tromey.com>
878
879 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
880 * tui/tui-winsource.h (enum tui_line_or_address_kind)
881 (struct tui_line_or_address): Move from tui-data.h.
882 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
883 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
884 (tui_cmd_window, tui_source_window_base, tui_source_window)
885 (tui_disasm_window): Don't declare.
886 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
887 to tui-winsource.h.
888 (SINGLE_KEY): Move to tui-stack.c.
889
890 2020-07-01 Tom Tromey <tom@tromey.com>
891
892 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
893 std::string.
894 * tui/tui-regs.c (class tab_expansion_file): New.
895 (tab_expansion_file::write): New method.
896 (tui_register_format): Change return type. Use
897 tab_expansion_file.
898 (tui_get_register, tui_data_window::display_registers_from)
899 (tui_data_item_window::rerender): Update.
900 * tui/tui-io.h (tui_expand_tabs): Don't declare.
901 * tui/tui-io.c (tui_expand_tabs): Remove.
902
903 2020-07-01 Tom Tromey <tom@tromey.com>
904
905 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
906
907 2020-07-01 Fangrui Song <maskray@google.com>
908
909 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
910
911 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
912
913 * dwarf2/read.c (set_die_type): Removed conditions to restrict
914 forms for DW_AT_associated and DW_AT_allocated attributes,
915 which is already checked in function attr_to_dynamic_prop.
916
917 2020-06-30 Tom Tromey <tromey@adacore.com>
918
919 * dwarf2/read.c (quirk_rust_enum): Correctly call
920 alloc_rust_variant for default-less enum.
921
922 2020-06-30 Tom Tromey <tromey@adacore.com>
923
924 PR build/26183:
925 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
926 gdb::to_string.
927
928 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
929
930 * gdbarch.sh (displaced_step_copy_insn): Update doc.
931 * gdbarch.h: Re-generate.
932
933 2020-06-28 Tom Tromey <tom@tromey.com>
934
935 * command.h (cmd_types): Remove.
936 (cmd_type): Don't declare.
937 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
938 typedef.
939 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
940 * cli/cli-decode.c (cmd_type): Remove.
941
942 2020-06-27 Pedro Alves <palves@redhat.com>
943
944 * fork-child.c (prefork_hook): Adjust.
945 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
946 Delete.
947 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
948 * inferior.c (inferior::set_tty, inferior::tty): New methods.
949 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
950 Remove declarations.
951 (struct inferior) <set_tty, tty>: New methods.
952 (struct inferior) <terminal>: Rename to ...
953 (struct inferior) <m_terminal>: ... this and make private.
954 * main.c (captured_main_1): Adjust.
955 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
956 (mi_cmd_inferior_tty_show): Adjust.
957 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
958 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
959
960 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
961
962 * configure.ac: Add --enable-libctf: handle --disable-static
963 properly.
964 * acinclude.m4: sinclude ../config/enable.m4.
965 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
966 (LIBCTF): Substitute in.
967 (CTF_DEPS): New, likewise.
968 (CLIBS): libctf needs symbols from libbfd: move earlier.
969 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
970 flags.
971 * ctfread.c: Surround in ENABLE_LIBCTF.
972 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
973 * configure: Regenerate.
974 * config.in: Likewise.
975
976 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
977
978 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
979
980 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
981
982 * inferior.h (struct inferior) <terminal>: Change type to
983 gdb::unique_xmalloc_ptr<char>.
984 * inferior.c (inferior::~inferior): Don't free inf->terminal.
985 * infcmd.c (set_inferior_io_terminal): Don't free terminal
986 field, adjust to unique pointer.
987 (get_inferior_io_terminal): Adjust to unique pointer.
988
989 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
990
991 * riscv-tdep.c (riscv_print_registers_info): Loop over all
992 registers, not just the known core set of registers.
993
994 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
995
996 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
997 fflags, frm, and fcsr registers.
998 (riscv_register_reggroup_p): Remove unknown CSRs from save and
999 restore groups.
1000 (riscv_tdesc_unknown_reg): New function.
1001 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1002 tdesc_use_registers.
1003 * riscv-tdep.h (struct gdbarch_tdep): Add
1004 unknown_csrs_first_regnum, unknown_csrs_count,
1005 duplicate_fflags_regnum, duplicate_frm_regnum, and
1006 duplicate_fcsr_regnum fields.
1007
1008 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1009
1010 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1011 callback, use the callback (when not null) to help number unknown
1012 registers.
1013 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1014 (tdesc_use_registers): Add extra parameter to declaration.
1015
1016 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1017
1018 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1019 in the file.
1020 (class riscv_pending_register_alias): Likewise.
1021 (riscv_register_feature::register_info): Change 'required_p' field
1022 to 'required', and change its type. Add 'check' member function.
1023 (riscv_register_feature::register_info::check): Define new member
1024 function.
1025 (riscv_xreg_feature): Change initialisation of 'required' field.
1026 (riscv_freg_feature): Likewise.
1027 (riscv_virtual_feature): Likewise.
1028 (riscv_csr_feature): Likewise.
1029 (riscv_check_tdesc_feature): Take extra parameter, the csr
1030 tdesc_feature, rewrite the function to use the new
1031 riscv_register_feature::register_info::check function.
1032 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1033
1034 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1035
1036 * features/Makefile: Remove all references to the deleted files
1037 below.
1038 * features/riscv/32bit-csr.c: Deleted.
1039 * features/riscv/32bit-csr.xml: Deleted.
1040 * features/riscv/64bit-csr.c: Deleted.
1041 * features/riscv/64bit-csr.xml: Deleted.
1042 * features/riscv/rebuild-csr-xml.sh: Deleted.
1043
1044 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1045
1046 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1047 whitespace error for declaration of names member variable.
1048 (struct riscv_register_feature): Add new prefer_first_name member
1049 variable, and fix whitespace error in declaration of registers.
1050 (riscv_xreg_feature): Initialize prefer_first_name field.
1051 (riscv_freg_feature): Likewise.
1052 (riscv_virtual_feature): Likewise.
1053 (riscv_csr_feature): Likewise.
1054 (riscv_register_name): Expand on comments. Remove register name
1055 modifications for CSR and virtual registers.
1056
1057 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1058
1059 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1060 errors.
1061
1062 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1063
1064 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1065 riscv-opc.h.
1066 (class riscv_pending_register_alias): New class.
1067 (riscv_check_tdesc_feature): Take vector of pending aliases and
1068 populate it as appropriate.
1069 (riscv_setup_register_aliases): Delete.
1070 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1071 to riscv_check_tdesc_feature in all cases. Use the vector to
1072 create the register aliases.
1073
1074 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1075
1076 * sol2-tdep.c (sol2_static_transform_name): Remove.
1077 (sol2_init_abi): Don't register it.
1078 * gdbarch.sh (static_transform_name): Remove.
1079 * gdbarch.c, gdbarch.h: Regenerate.
1080
1081 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1082 gdbarch_static_transform_name.
1083 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1084 * stabsread.c (define_symbol) <'X'>: Remove.
1085 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1086 handling.
1087 <'V'>: Likewise.
1088 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1089 <'S'>: Remove call to gdbarch_static_transform_name.
1090
1091 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1092
1093 * procfs.c (procfs_pre_trace): New function.
1094 (procfs_target::create_inferior): Pass it to fork_inferior.
1095
1096 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1097
1098 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1099 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1100 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1101 sol2-tdep.o, sparc-sol2-tdep.o.
1102 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1103 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1104 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1105 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1106
1107 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1108
1109 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1110 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1111 Call sol2_init_abi.
1112 Remove calls to set_gdbarch_skip_solib_resolver,
1113 set_gdbarch_core_pid_to_str.
1114 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1115 (i386_sol2_static_transform_name): Remove.
1116 (i386_sol2_init_abi): Call sol2_init_abi.
1117 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1118 set_gdbarch_static_transform_name,
1119 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1120 Use sol2_sigtramp_p.
1121 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1122 (sol2_sigtramp_p): New function.
1123 (sol2_static_transform_name): New function.
1124 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1125 (sol2_init_abi): New function.
1126 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1127 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1128 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1129 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1130 (sparc_sol2_static_transform_name): Remove.
1131 (sparc32_sol2_init_abi): Call sol2_init_abi.
1132 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1133 set_gdbarch_static_transform_name,
1134 set_gdbarch_skip_solib_resolver,
1135 set_gdbarch_core_pid_to_str.
1136 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1137 (sparc_sol2_static_transform_name): Remove
1138 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1139 call sol2_sigtramp_p.
1140 (sparc64_sol2_init_abi): Call sol2_init_abi.
1141 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1142 set_gdbarch_static_transform_name,
1143 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1144
1145 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1146
1147 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1148 * exec.c (validate_exec_file): If from_tty, set both
1149 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1150 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1151 and from_tty, unconditionally ask a confirmation.
1152
1153 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1154
1155 * target-descriptions.c (tdesc_architecture_name): Protect against
1156 NULL pointer dereference.
1157 (maint_print_xml_tdesc_cmd): New function.
1158 (_initialize_target_descriptions): Register new 'maint print
1159 xml-tdesc' command and give it the filename completer.
1160 * NEWS: Mention new 'maint print xml-tdesc' command.
1161
1162 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1163
1164 * target-descriptions.c (class tdesc_compatible_info): New class.
1165 (struct target_desc): Change type of compatible vector.
1166 (tdesc_compatible_p): Update for change in type of
1167 target_desc::compatible.
1168 (tdesc_compatible_info_list): New function.
1169 (tdesc_compatible_info_arch_name): New function.
1170 (tdesc_add_compatible): Update for change in type of
1171 target_desc::compatible.
1172 (print_c_tdesc::visit_pre): Likewise.
1173
1174 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1175
1176 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1177 whitespace to underscore.
1178 (maint_print_c_tdesc_cmd): Use fake filename for target
1179 descriptions that came from the target.
1180 (_initialize_target_descriptions): Add filename command completion
1181 for 'maint print c-tdesc'.
1182
1183 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1184
1185 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1186 lines.
1187
1188 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1189
1190 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1191 lines.
1192 (dwarf2_find_location_expression): Likewise.
1193 (call_site_parameter_matches): Likewise.
1194 (dwarf2_compile_expr_to_ax): Likewise.
1195 (disassemble_dwarf_expression): Likewise.
1196 (loclist_describe_location): Likewise.
1197
1198 2020-06-23 Pedro Alves <palves@redhat.com>
1199
1200 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1201 progspace-and-thread.h. Include scoped-mock-context.h instead.
1202 (register_to_value_test): Use scoped_mock_context.
1203 * regcache.c: Include "scoped-mock-context.h".
1204 (cooked_read_test): Don't error out if a target is already pushed.
1205 Use scoped_mock_context. Adjust.
1206 * scoped-mock-context.h: New file.
1207
1208 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1209
1210 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1211 initializer.
1212 (ada_language::is_string_type_p): New member function.
1213 * c-lang.c (c_language_data): Delete la_is_string_type_p
1214 initializer.
1215 (cplus_language_data): Likewise.
1216 (asm_language_data): Likewise.
1217 (minimal_language_data): Likewise.
1218 * d-lang.c (d_language_data): Likewise.
1219 * f-lang.c (f_is_string_type_p): Delete function, implementation
1220 moved to f_language::is_string_type_p.
1221 (f_language_data): Delete la_is_string_type_p initializer.
1222 (f_language::is_string_type_p): New member function,
1223 implementation from f_is_string_type_p.
1224 * go-lang.c (go_is_string_type_p): Delete function, implementation
1225 moved to go_language::is_string_type_p.
1226 (go_language_data): Delete la_is_string_type_p initializer.
1227 (go_language::is_string_type_p): New member function,
1228 implementation from go_is_string_type_p.
1229 * language.c (language_defn::is_string_type_p): Define new member
1230 function.
1231 (default_is_string_type_p): Make static, add comment copied from
1232 header file.
1233 (unknown_language_data): Delete la_is_string_type_p initializer.
1234 (unknown_language::is_string_type_p): New member function.
1235 (auto_language_data): Delete la_is_string_type_p initializer.
1236 (auto_language::is_string_type_p): New member function.
1237 * language.h (language_data): Delete la_is_string_type_p field.
1238 (language_defn::is_string_type_p): Declare new function.
1239 (default_is_string_type_p): Delete desclaration, move comment to
1240 definition.
1241 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1242 moved to m2_language::is_string_type_p.
1243 (m2_language_data): Delete la_is_string_type_p initializer.
1244 (m2_language::is_string_type_p): New member function,
1245 implementation from m2_is_string_type_p.
1246 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1247 initializer.
1248 * opencl-lang.c (opencl_language_data): Likewise.
1249 * p-lang.c (pascal_is_string_type_p): Delete function,
1250 implementation moved to pascal_language::is_string_type_p.
1251 (pascal_language_data): Delete la_is_string_type_p initializer.
1252 (pascal_language::is_string_type_p): New member function,
1253 implementation from pascal_is_string_type_p.
1254 * rust-lang.c (rust_is_string_type_p): Delete function,
1255 implementation moved to rust_language::is_string_type_p.
1256 (rust_language_data): Delete la_is_string_type_p initializer.
1257 (rust_language::is_string_type_p): New member function,
1258 implementation from rust_is_string_type_p.
1259 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1260 is_string_type_p.
1261
1262 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1263
1264 * ada-lang.c (ada_language_data): Delete la_print_typedef
1265 initializer.
1266 (ada_language::print_typedef): New member function.
1267 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1268 (cplus_language_data): Likewise.
1269 (asm_language_data): Likewise.
1270 (minimal_language_data): Likewise.
1271 * d-lang.c (d_language_data): Likewise.
1272 * f-lang.c (f_language_data): Likewise.
1273 (f_language::print_typedef): New member function.
1274 * go-lang.c (go_language_data): Delete la_print_typedef
1275 initializer.
1276 * language.c (language_defn::print_typedef): Define member
1277 function.
1278 (unknown_language_data): Delete la_print_typedef initializer.
1279 (unknown_language::print_typedef): New member function.
1280 (auto_language_data): Delete la_print_typedef initializer.
1281 (auto_language::print_typedef): New member function.
1282 * language.h (language_data): Delete la_print_typedef field.
1283 (language_defn::print_typedef): Declare new member function.
1284 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1285 (default_print_typedef): Delete declaration.
1286 * m2-lang.c (m2_language_data): Delete la_print_typedef
1287 initializer.
1288 (m2_language::print_typedef): New member function.
1289 * objc-lang.c (objc_language_data): Delete la_print_typedef
1290 initializer.
1291 * opencl-lang.c (opencl_language_data): Likewise.
1292 * p-lang.c (pascal_language_data): Likewise.
1293 (pascal_language::print_typedef): New member function.
1294 * rust-lang.c (rust_print_typedef): Delete function,
1295 implementation moved to rust_language::print_typedef.
1296 (rust_language): Delete la_print_typedef initializer.
1297 (rust_language::print_typedef): New member function,
1298 implementation from rust_print_typedef.
1299 * typeprint.c (default_print_typedef): Delete.
1300
1301 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1302
1303 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1304 (ada_language::printstr): New member function.
1305 * c-lang.c (c_language_data): Delete la_printstr initializer.
1306 (cplus_language_data): Likewise.
1307 (asm_language_data): Likewise.
1308 (minimal_language_data): Likewise.
1309 * d-lang.c (d_language_data): Likewise.
1310 * f-lang.c (f_printstr): Rename to f_language::printstr.
1311 (f_language_data): Delete la_printstr initializer.
1312 (f_language::printstr): New member function, implementation from
1313 f_printstr.
1314 * go-lang.c (go_language_data): Delete la_printstr initializer.
1315 * language.c (language_defn::printstr): Define new member
1316 function.
1317 (unk_lang_printstr): Delete.
1318 (unknown_language_data): Delete la_printstr initializer.
1319 (unknown_language::printstr): New member function.
1320 (auto_language_data): Delete la_printstr initializer.
1321 (auto_language::printstr): New member function.
1322 * language.h (language_data): Delete la_printstr field.
1323 (language_defn::printstr): Declare new member function.
1324 (LA_PRINT_STRING): Update call to printstr.
1325 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1326 (m2_language_data): Delete la_printstr initializer.
1327 (m2_language::printstr): New member function, implementation from
1328 m2_printstr.
1329 * objc-lang.c (objc_language_data): Delete la_printstr
1330 initializer.
1331 * opencl-lang.c (opencl_language_data): Likewise.
1332 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1333 (pascal_language_data): Delete la_printstr initializer.
1334 (pascal_language::printstr): New member function, implementation
1335 from pascal_printstr.
1336 * p-lang.h (pascal_printstr): Delete declaration.
1337 * rust-lang.c (rust_printstr): Update header comment.
1338 (rust_language_data): Delete la_printstr initializer.
1339 (rust_language::printstr): New member function.
1340
1341 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1342
1343 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1344 (ada_language::printchar): New member function.
1345 * c-lang.c (c_language_data): Delete la_printchar initializer.
1346 (cplus_language_data): Likewise.
1347 (asm_language_data): Likewise.
1348 (minimal_language_data): Likewise.
1349 * d-lang.c (d_language_data): Likewise.
1350 * f-lang.c (f_printchar): Rename to f_language::printchar.
1351 (f_language_data): Delete la_printchar initializer.
1352 (f_language::printchar): New member function, implementation from
1353 f_printchar.
1354 * go-lang.c (go_language_data): Delete la_printchar initializer.
1355 * language.c (unk_lang_printchar): Delete.
1356 (language_defn::printchar): Define new member function.
1357 (unknown_language_data): Delete la_printchar initializer.
1358 (unknown_language::printchar): New member function.
1359 (auto_language_data): Delete la_printchar initializer.
1360 (auto_language::printchar): New member function.
1361 * language.h (language_data): Delete la_printchar field.
1362 (language_defn::printchar): Declare new member function.
1363 (LA_PRINT_CHAR): Update call to printchar.
1364 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1365 (m2_language::printchar): New member function.
1366 * objc-lang.c (objc_language_data): Delete la_printchar
1367 initializer.
1368 * opencl-lang.c (opencl_language_data): Likewise.
1369 * p-lang.c (pascal_language_data): Delete la_printchar
1370 initializer.
1371 (pascal_language::printchar): New member function.
1372 * rust-lang.c (rust_printchar): Rename to
1373 rust_language::printchar.
1374 (rust_language_data): Delete la_printchar initializer.
1375 (rust_language::printchar): New member function, implementation
1376 from rust_printchar.
1377
1378 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1379
1380 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1381 (ada_language_data): Delete la_emitchar initializer.
1382 (ada_language::emitchar): New member function, implementation from
1383 emit_char.
1384 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1385 (cplus_language_data): Likewise.
1386 (asm_language_data): Likewise.
1387 (minimal_language_data): Likewise.
1388 * d-lang.c (d_language_data): Likewise.
1389 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1390 (f_language_data): Delete la_emitchar initializer.
1391 (f_language::emitchar): New member function, implementation from
1392 f_emit_char.
1393 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1394 * language.c (unk_lang_emit_char): Delete.
1395 (language_defn::emitchar): New member function definition.
1396 (unknown_language_data): Delete la_emitchar initializer.
1397 (unknown_language::emitchar): New member function.
1398 (auto_language_data): Delete la_emitchar initializer.
1399 (auto_language::emitchar): New member function.
1400 * language.h (language_data): Delete la_emitchar field.
1401 (language_defn::emitchar): New member field declaration.
1402 (LA_EMIT_CHAR): Update call to emitchar.
1403 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1404 (m2_language_data): Delete la_emitchar initializer.
1405 (m2_language::emitchar): New member function, implementation from
1406 m2_emit_char.
1407 * objc-lang.c (objc_language_data): Delete la_emitchar
1408 initializer.
1409 * opencl-lang.c (opencl_language_data): Likewise.
1410 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1411 (pascal_language_data): Delete la_emitchar initializer.
1412 (pascal_language::emitchar): New member function, implementation
1413 from pascal_emit_char.
1414 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1415 (rust_language_data): Delete la_emitchar initializer.
1416 (rust_language::emitchar): New member function, implementation
1417 from rust_emitchar.
1418
1419 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1420
1421 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1422 (ada_language_data): Delete la_post_parser initializer.
1423 (ada_language::post_parser): New member function.
1424 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1425 (cplus_language_data): Likewise.
1426 (asm_language_data): Likewise.
1427 (minimal_language_data): Likewise.
1428 * d-lang.c (d_language_data): Likewise.
1429 * f-lang.c (f_language_data): Likewise.
1430 * go-lang.c (go_language_data): Likewise.
1431 * language.c (unknown_language_data): Likewise.
1432 (auto_language_data): Likewise.
1433 * language.h (language_data): Delete la_post_parser field.
1434 (language_defn::post_parser): New member function.
1435 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1436 * objc-lang.c (objc_language_data): Likewise.
1437 * opencl-lang.c (opencl_language_data): Likewise.
1438 * p-lang.c (pascal_language_data): Likewise.
1439 * parse.c (parse_exp_in_context): Update call to post_parser.
1440 (null_post_parser): Delete definition.
1441 * parser-defs.h (null_post_parser): Delete declaration.
1442 * rust-lang.c (rust_language_data): Delete la_post_parser
1443 initializer.
1444
1445 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1446
1447 * ada-lang.c (parse): Rename to ada_language::parser.
1448 (ada_language_data): Delete la_parser initializer.
1449 (ada_language::parser): New member function, implementation from
1450 parse.
1451 * c-lang.c (c_language_data): Delete la_parser initializer.
1452 (cplus_language_data): Likewise.
1453 (asm_language_data): Likewise.
1454 (minimal_language_data): Likewise.
1455 * d-lang.c (d_language_data): Likewise.
1456 (d_language::parser): New member function.
1457 * f-lang.c (f_language_data): Delete la_parser initializer.
1458 (f_language::parser): New member function.
1459 * go-lang.c (go_language_data): Delete la_parser initializer.
1460 (go_language::parser): New member function.
1461 * language.c (unk_lang_parser): Delete.
1462 (language_defn::parser): Define new member function.
1463 (unknown_language_data): Delete la_parser initializer.
1464 (unknown_language::parser): New member function.
1465 (auto_language_data): Delete la_parser initializer.
1466 (auto_language::parser): New member function.
1467 * language.h (language_data): Delete la_parser field.
1468 (language_defn::parser): Declare new member function.
1469 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1470 (m2_language::parser): New member function.
1471 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1472 * opencl-lang.c (opencl_language_data): Likewise.
1473 * p-lang.c (pascal_language_data): Likewise.
1474 (pascal_language::parser): New member function.
1475 * parse.c (parse_exp_in_context): Update call to parser.
1476 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1477 (rust_language::parser): New member function.
1478
1479 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1480
1481 * top.c (print_gdb_configuration): Print --with-python-libdir
1482 configuration value.
1483
1484 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1485
1486 * NEWS: Mention change to the alias command.
1487
1488 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1489
1490 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1491 (alias_command_completer)
1492 (make_alias_options_def_group): New functions.
1493 (alias_opts, alias_option_defs): New struct and array.
1494 (alias_usage_error): Update usage.
1495 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1496 Use option framework.
1497 (_initialize_cli_cmds): Update alias command help.
1498 Update aliases command help.
1499 (show_user):
1500 Add NULL for new default_args lookup_cmd argument.
1501 (valid_command_p): Rename to validate_aliased_command.
1502 Add NULL for new default_args lookup_cmd argument. Verify that the
1503 aliased_command has no default args.
1504 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1505 (lookup_cmd_1, lookup_cmd): New argument default_args.
1506 (add_alias_cmd):
1507 Add NULL for new default_args lookup_cmd argument.
1508 (print_help_for_command): Show default args under the layout
1509 alias some_alias = some_aliased_cmd some_alias_default_arg.
1510 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1511 xfree default_args in destructor.
1512 * cli/cli-script.c (process_next_line, do_define_command):
1513 Add NULL for new default_args lookup_cmd argument.
1514 * command.h: Declare new default_args argument in lookup_cmd
1515 and lookup_cmd_1.
1516 * completer.c (complete_line_internal_1):
1517 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1518 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1519 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1520 Likewise.
1521 * infcmd.c (_initialize_infcmd): Likewise.
1522 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1523 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1524 * python/py-param.c (add_setshow_generic): Likewise.
1525 * remote.c (_initialize_remote): Likewise.
1526 * top.c (execute_command): Prepend default_args if command has some.
1527 (set_verbose):
1528 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1529 * tracepoint.c (validate_actionline, encode_actions_1):
1530 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1531
1532 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1533
1534 * jit.c (jit_read_descriptor): Use bool as the return type.
1535 (jit_breakpoint_re_set_internal): Use bool as the return type.
1536 Invert the return value logic; return true if the jit breakpoint
1537 has been successfully initialized.
1538 (jit_inferior_init): Update the call to
1539 jit_breakpoint_re_set_internal.
1540
1541 2020-06-22 Pedro Alves <palves@redhat.com>
1542
1543 PR gdb/25939
1544 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1545 Use the current inferior instead. Don't return
1546 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1547 wait again.
1548 * sol-thread.c (sol_thread_target::wait): Don't reference
1549 inferior_ptid.
1550 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1551 (sol_update_thread_list_callback): Use the current inferior's pid
1552 instead of inferior_ptid.
1553
1554 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1555
1556 * procfs.c: Cleanup many comments.
1557
1558 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1559 (AFTER_WATCHFLAG): Replace by value.
1560
1561 (MAIN_PROC_NAME_FORMAT): Inline ...
1562 (create_procinfo): ... here.
1563
1564 (procfs_debug_inferior): Remove SYS_exec handling.
1565 (syscall_is_exec): Likewise.
1566 (procfs_set_exec_trap): Likewise.
1567
1568 (syscall_is_lwp_exit): Inline in callers.
1569 (syscall_is_exit): Likewise.
1570 (syscall_is_exec): Likewise.
1571 (syscall_is_lwp_create): Likewise.
1572
1573 (invalidate_cache): Remove #if 0 code.
1574
1575 (make_signal_thread_runnable): Remove.
1576 (procfs_target::resume): Remove #if 0 code.
1577
1578 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1579
1580 PR gdb/25939
1581 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1582 call ...
1583 (procfs_target::create_inferior): ... here.
1584
1585 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1586
1587 * exec.c (validate_exec_file): Ensure the build-id is up to
1588 date by calling reopen_exec_file (that checks file timestamp
1589 to decide to re-read the file).
1590
1591 2020-06-18 Pedro Alves <palves@redhat.com>
1592
1593 PR gdb/25412
1594 * gdbthread.h (delete_thread, delete_thread_silent)
1595 (find_thread_ptid): Update comments.
1596 * thread.c (current_thread_): New global.
1597 (is_current_thread): Move higher, and reimplement.
1598 (inferior_thread): Reimplement.
1599 (set_thread_exited): Use bool. Add assertions.
1600 (add_thread_silent): Simplify thread-reuse handling by always
1601 calling delete_thread.
1602 (delete_thread): Remove intro comment.
1603 (find_thread_ptid): Skip exited threads.
1604 (switch_to_thread_no_regs): Write to current_thread_.
1605 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1606 INFERIOR_PTID. Clear current_thread_.
1607
1608 2020-06-18 Pedro Alves <palves@redhat.com>
1609
1610 * aix-thread.c (pd_update): Use switch_to_thread.
1611
1612 2020-06-18 Pedro Alves <palves@redhat.com>
1613
1614 * ravenscar-thread.c (ravenscar_thread_target): Update.
1615 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1616 (ravenscar_thread_target::add_active_thread): ... this. Don't
1617 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1618 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1619
1620 2020-06-18 Pedro Alves <palves@redhat.com>
1621
1622 * nat/windows-nat.c (current_windows_thread): Remove.
1623 * nat/windows-nat.h (current_windows_thread): Remove.
1624 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1625 Adjust.
1626 (display_selectors): Adjust to fetch the current
1627 windows_thread_info based on inferior_ptid.
1628 (fake_create_process): No longer write to current_windows_thread.
1629 (windows_nat_target::get_windows_debug_event):
1630 Don't set inferior_ptid or current_windows_thread.
1631 (windows_nat_target::wait): Adjust to not rely on
1632 current_windows_thread.
1633 (do_initial_windows_stuff): Now a method of windows_nat_target.
1634 Switch to the last_ptid thread.
1635 (windows_nat_target::attach): Adjust.
1636 (windows_nat_target::detach): Use switch_to_no_thread instead of
1637 writing to inferior_ptid directly.
1638 (windows_nat_target::create_inferior): Adjust.
1639
1640 2020-06-18 Pedro Alves <palves@redhat.com>
1641
1642 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1643
1644 2020-06-18 Pedro Alves <palves@redhat.com>
1645
1646 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1647 after creating it, instead of writing to inferior_ptid. Don't
1648 write to inferior_ptid.
1649
1650 2020-06-18 Pedro Alves <palves@redhat.com>
1651
1652 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1653
1654 2020-06-18 Pedro Alves <palves@redhat.com>
1655
1656 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1657 it, instead of writing to inferior_ptid.
1658
1659 2020-06-18 Pedro Alves <palves@redhat.com>
1660
1661 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1662 to inferior_ptid.
1663
1664 2020-06-18 Pedro Alves <palves@redhat.com>
1665
1666 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1667 instead of writing to inferior_ptid directly.
1668
1669 2020-06-18 Pedro Alves <palves@redhat.com>
1670
1671 * corelow.c (core_target::close): Use switch_to_no_thread instead
1672 of writing to inferior_ptid directly.
1673 (add_to_thread_list, core_target_open): Use switch_to_thread
1674 instead of writing to inferior_ptid directly.
1675
1676 2020-06-18 Pedro Alves <palves@redhat.com>
1677
1678 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1679 inferior_ptid.
1680 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1681 inferior_ptid.
1682 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1683 inferior_ptid directly.
1684 (darwin_nat_target::init_thread_list): Switch to thread, instead
1685 of writing to inferior_ptid.
1686 (darwin_nat_target::attach): Don't write to inferior_ptid.
1687 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1688
1689 2020-06-18 Pedro Alves <palves@redhat.com>
1690
1691 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1692 thread.
1693 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1694 Instead use switch_to_thread.
1695 (gnu_nat_target::detach): Use switch_to_no_thread
1696 instead of writing to inferior_ptid directly. Used passed-in
1697 inferior instead of looking up the inferior by pid.
1698
1699 2020-06-18 Pedro Alves <palves@redhat.com>
1700
1701 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1702 inferior_ptid.
1703
1704 2020-06-18 Pedro Alves <palves@redhat.com>
1705
1706 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1707 inferior_ptid.
1708 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1709 thread.
1710 (nto_procfs_target::detach): Avoid referencing
1711 inferior_ptid. Use switch_to_no_thread instead of writing to
1712 inferior_ptid directly.
1713 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1714 instead of writing to inferior_ptid directly.
1715 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1716 to thread.
1717
1718 2020-06-18 Pedro Alves <palves@redhat.com>
1719
1720 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1721 after creating it, instead of writing to inferior_ptid.
1722 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1723 to inferior_ptid directly.
1724 (gdbsim_target::wait): Don't write to inferior_ptid.
1725
1726 2020-06-18 Pedro Alves <palves@redhat.com>
1727
1728 * remote.c (remote_target::remote_notice_new_inferior): Use
1729 switch_to_thread instead of writing to inferior_ptid directly.
1730 (remote_target::add_current_inferior_and_thread): Use
1731 switch_to_no_thread instead of writing to inferior_ptid directly.
1732 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1733 and switch_to_thread instead of using set_current_inferior or
1734 writing to inferior_ptid directly.
1735
1736 2020-06-18 Pedro Alves <palves@redhat.com>
1737
1738 * tracectf.c (ctf_target_open): Switch to added thread instead of
1739 writing to inferior_ptid directly.
1740 (ctf_target::close): Use switch_to_no_thread instead of writing to
1741 inferior_ptid directly.
1742
1743 2020-06-18 Pedro Alves <palves@redhat.com>
1744
1745 * tracefile-tfile.c (tfile_target_open): Don't write to
1746 inferior_ptid directly, instead switch to added thread.
1747 (tfile_target::close): Use switch_to_no_thread instead of writing
1748 to inferior_ptid directly.
1749
1750 2020-06-18 Pedro Alves <palves@redhat.com>
1751
1752 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1753 (procfs_target::detach): Use switch_to_no_thread
1754 instead of writing to inferior_ptid directly.
1755 (do_attach): Change return type to void. Switch to the added
1756 thread.
1757 (procfs_target::create_inferior): Switch to the added thread.
1758 (procfs_do_thread_registers): Don't write to inferior_ptid.
1759
1760 2020-06-18 Pedro Alves <palves@redhat.com>
1761
1762 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1763 of writing to inferior_ptid.
1764 (scoped_restore_exited_inferior): Delete.
1765 (handle_vfork_child_exec_or_exit): Simplify using
1766 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1767 instead of writing to inferior_ptid.
1768 (THREAD_STOPPED_BY): Delete.
1769 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1770 (thread_stopped_by_hw_breakpoint): Delete.
1771 (save_waitstatus): Use
1772 scoped_restore_current_thread+switch_to_thread, and call
1773 target_stopped_by_watchpoint instead of
1774 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1775 instead of thread_stopped_by_sw_breakpoint, and
1776 target_stopped_by_hw_breakpoint instead of
1777 thread_stopped_by_hw_breakpoint.
1778 (handle_inferior_event)
1779 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1780 inferior_ptid directly, nor
1781 set_current_inferior/set_current_program_space. Use
1782 switch_to_thread / switch_to_inferior_no_thread instead.
1783
1784 2020-06-18 Pedro Alves <palves@redhat.com>
1785
1786 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1787 instead of writing to inferior_ptid.
1788
1789 2020-06-18 Pedro Alves <palves@redhat.com>
1790
1791 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1792 added thread.
1793 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1794 to the added thread.
1795 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1796 instead of writing to inferior_ptid.
1797
1798 2020-06-18 Pedro Alves <palves@redhat.com>
1799
1800 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1801 (register_to_value_test): Mock a program_space too. Heap-allocate
1802 the address space. Don't write to inferior_ptid. Use
1803 switch_to_thread instead.
1804
1805 2020-06-18 Pedro Alves <palves@redhat.com>
1806
1807 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1808 Delete.
1809 (find_signalled_thread()): New, factored out from
1810 linux_make_corefile_notes and adjusted to handle exited threads.
1811 (linux_make_corefile_notes): Adjust to use the new
1812 find_signalled_thread.
1813
1814 2020-06-18 Pedro Alves <palves@redhat.com>
1815
1816 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1817 of saving/restoring inferior_ptid.
1818
1819 2020-06-17 Tom Tromey <tom@tromey.com>
1820
1821 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1822 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1823 declare.
1824 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1825
1826 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1827
1828 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1829 of partial symtabs.
1830
1831 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1832
1833 * regformats/reg-arm.dat: Remove.
1834 * regformats/reg-bfin.dat: Remove.
1835 * regformats/reg-cris.dat: Remove.
1836 * regformats/reg-crisv32.dat: Remove.
1837 * regformats/reg-m32r.dat: Remove.
1838 * regformats/reg-tilegx.dat: Remove.
1839 * regformats/reg-tilegx32.dat: Remove.
1840
1841 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1842
1843 * features/Makefile (WHICH): Remove arm files.
1844 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1845 * regformats/arm/arm-with-neon.dat: Remove.
1846 * regformats/arm/arm-with-vfpv2.dat: Remove.
1847 * regformats/arm/arm-with-vfpv3.dat: Remove.
1848
1849 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1850
1851 * features/Makefile (XMLTOC): Remove rx.xml.
1852
1853 2020-06-17 Pedro Alves <palves@redhat.com>
1854
1855 * gdbthread.h (thread_control_state) <trap_expected> Update
1856 comments.
1857
1858 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1859
1860 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1861 ada_language::lookup_symbol_nonlocal.
1862 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1863 (ada_language::lookup_symbol_nonlocal): New member function,
1864 implementation from ada_lookup_symbol_nonlocal.
1865 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1866 initializer.
1867 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1868 initializer.
1869 (cplus_language::lookup_symbol_nonlocal): New member function.
1870 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1871 (minimal_language_data) Likewise.
1872 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1873 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1874 initializer.
1875 (d_language::lookup_symbol_nonlocal): New member function.
1876 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1877 initializer.
1878 (f_language::lookup_symbol_nonlocal): New member function.
1879 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1880 initializer.
1881 * language.c (unknown_language_data): Likewise.
1882 (auto_language_data): Likewise.
1883 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1884 field.
1885 (language_defn::lookup_symbol_nonlocal): New member function.
1886 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1887 initializer.
1888 * objc-lang.c (objc_language_data): Likewise.
1889 * opencl-lang.c (opencl_language_data): Likewise.
1890 * p-lang.c (pascal_language_data): Likewise.
1891 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1892 rust_language::lookup_symbol_nonlocal.
1893 (rust_language_data): Delete la_lookup_symbol_nonlocal
1894 initializer.
1895 (rust_language::lookup_symbol_nonlocal): New member function,
1896 implementation from rust_lookup_symbol_nonlocal.
1897 * symtab.c (lookup_symbol_aux): Update call to
1898 lookup_symbol_nonlocal.
1899 (basic_lookup_symbol_nonlocal): Rename to...
1900 (language_defn::lookup_symbol_nonlocal): ...this, and update
1901 header comment. Remove language_defn parameter, and replace with
1902 uses of `this'.
1903 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1904
1905 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1906
1907 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1908 initializer.
1909 (ada_language::value_print_inner): New member function.
1910 * c-lang.c (c_language_data): Delete la_value_print_inner
1911 initializer.
1912 (cplus_language_data): Likewise.
1913 (asm_language_data): Likewise.
1914 (minimal_language_data): Likewise.
1915 * d-lang.c (d_language_data): Likewise.
1916 (d_language::value_print_inner): New member function.
1917 * f-lang.c (f_language_data): Delete la_value_print_inner
1918 initializer.
1919 (f_language::value_print_inner): New member function.
1920 * f-lang.h (f_value_print_innner): Rename to...
1921 (f_value_print_inner): ...this (note spelling of 'inner').
1922 * f-valprint.c (f_value_print_innner): Rename to...
1923 (f_value_print_inner): ...this (note spelling of 'inner').
1924 * go-lang.c (go_language_data): Delete la_value_print_inner
1925 initializer.
1926 (go_language::value_print_inner): New member function.
1927 * language.c (language_defn::value_print_inner): Define new member
1928 function.
1929 (unk_lang_value_print_inner): Delete.
1930 (unknown_language_data): Delete la_value_print_inner initializer.
1931 (unknown_language::value_print_inner): New member function.
1932 (auto_language_data): Delete la_value_print_inner initializer.
1933 (auto_language::value_print_inner): New member function.
1934 * language.h (language_data): Delete la_value_print_inner field.
1935 (language_defn::value_print_inner): Delcare new member function.
1936 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1937 initializer.
1938 (m2_language::value_print_inner): New member function.
1939 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1940 initializer.
1941 * opencl-lang.c (opencl_language_data): Likewise.
1942 * p-lang.c (pascal_language_data): Likewise.
1943 (pascal_language::value_print_inner): New member function.
1944 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1945 initializer.
1946 (rust_language::value_print_inner): New member function.
1947 * valprint.c (do_val_print): Update call to value_print_inner.
1948
1949 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1950
1951 * ada-lang.c (ada_language_data): Delete la_value_print
1952 initializer.
1953 (ada_language::value_print): New member function.
1954 * c-lang.c (c_language_data): Delete la_value_print initializer.
1955 (cplus_language_data): Likewise.
1956 (asm_language_data): Likewise.
1957 (minimal_language_data): Likewise.
1958 * d-lang.c (d_language_data): Likewise.
1959 * f-lang.c (f_language_data): Likewise.
1960 * go-lang.c (go_language_data): Likewise.
1961 * language.c (unk_lang_value_print): Delete.
1962 (language_defn::value_print): Define new member function.
1963 (unknown_language_data): Delete la_value_print initializer.
1964 (unknown_language::value_print): New member function.
1965 (auto_language_data): Delete la_value_print initializer.
1966 (auto_language::value_print): New member function.
1967 * language.h (language_data): Delete la_value_print field.
1968 (language_defn::value_print): Declare new member function.
1969 (LA_VALUE_PRINT): Update call to value_print.
1970 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1971 * objc-lang.c (objc_language_data): Likewise.
1972 * opencl-lang.c (opencl_language_data): Likewise.
1973 * p-lang.c (pascal_language_data): Likewise.
1974 (pascal_language::value_print): New member function.
1975 * rust-lang.c (rust_language_data): Delete la_value_print
1976 initializer.
1977
1978 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1979
1980 * ada-lang.c (ada_watch_location_expression): Rename to
1981 ada_language::watch_location_expression.
1982 (ada_language_data): Delete la_watch_location_expression
1983 initializer.
1984 (ada_language::watch_location_expression): New member function,
1985 implementation from ada_watch_location_expression.
1986 * breakpoint.c (watch_command_1): Update call to
1987 watch_location_expression.
1988 * c-lang.c (c_watch_location_expression): Rename to
1989 language_defn::watch_location_expression.
1990 (c_language_data): Delete la_watch_location_expression
1991 initializer.
1992 (cplus_language_data): Likewise.
1993 (asm_language_data): Likewise.
1994 (minimal_language_data): Likewise.
1995 * c-lang.h (c_watch_location_expression): Delete declaration.
1996 * d-lang.c (d_language_data): Delete la_watch_location_expression
1997 initializer.
1998 * f-lang.c (f_language_data): Likewise.
1999 * go-lang.c (go_language_data): Likewise.
2000 * language.c (language_defn::watch_location_expression): Member
2001 function implementation from c_watch_location_expression.
2002 (unknown_language_data): Delete la_watch_location_expression
2003 initializer.
2004 (auto_language_data): Likewise.
2005 * language.h (language_data): Delete la_watch_location_expression
2006 field.
2007 (language_defn::watch_location_expression): Declare new member
2008 function.
2009 * m2-lang.c (m2_language_data): Delete
2010 la_watch_location_expression initializer.
2011 * objc-lang.c (objc_language_data): Likewise.
2012 * opencl-lang.c (opencl_language_data): Likewise.
2013 * p-lang.c (pascal_language_data): Likewise.
2014 * rust-lang.c (rust_watch_location_expression): Rename to
2015 rust_language::watch_location_expression.
2016 (rust_language_data): Delete la_watch_location_expression
2017 initializer.
2018 (rust_language::watch_location_expression): New member function,
2019 implementation from rust_watch_location_expression.
2020
2021 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2022
2023 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2024 ada_language::collect_symbol_completion_matches.
2025 (ada_language_data): Delete la_collect_symbol_completion_matches
2026 initializer.
2027 (ada_language::collect_symbol_completion_matches): New member
2028 function, implementation from
2029 ada_collect_symbol_completion_matches.
2030 * c-lang.c (c_language_data): Delete
2031 la_collect_symbol_completion_matches initializer.
2032 (cplus_language_data): Likewise.
2033 (asm_language_data): Likewise.
2034 (minimal_language_data): Likewise.
2035 * d-lang.c (d_language_data): Likewise.
2036 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2037 f_language::collect_symbol_completion_matches.
2038 (f_language_data): Delete la_collect_symbol_completion_matches
2039 initializer.
2040 (f_language::collect_symbol_completion_matches) New member
2041 function, implementation from f_collect_symbol_completion_matches.
2042 * go-lang.c (go_language_data): Delete
2043 la_collect_symbol_completion_matches initializer.
2044 * language.c (unknown_language_data): Likewise.
2045 (auto_language_data): Likewise.
2046 * language.h (language_data): Delete
2047 la_collect_symbol_completion_matches field.
2048 (language_defn::collect_symbol_completion_matches): New member
2049 function.
2050 * m2-lang.c (m2_language_data): Delete
2051 la_collect_symbol_completion_matches initializer.
2052 * objc-lang.c (objc_language_data): Likewise.
2053 * opencl-lang.c (opencl_language_data): Likewise.
2054 * p-lang.c (pascal_language_data): Likewise.
2055 * rust-lang.c (rust_language_data): Likewise.
2056 * symtab.c (default_collect_symbol_completion_matches): Delete.
2057 (collect_symbol_completion_matches): Update call to
2058 collect_symbol_completion_matches.
2059 (collect_symbol_completion_matches_type): Likewise.
2060 * symtab.h (default_collect_symbol_completion_matches): Delete
2061 declaration.
2062
2063 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2064
2065 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2066 (ada_language_data): Delete la_word_break_characters initializer.
2067 (ada_language::word_break_characters): New member function.
2068 * c-lang.c (c_language_data): Delete la_word_break_characters
2069 initializer.
2070 (cplus_language_data): Likewise.
2071 (asm_language_data): Likewise.
2072 (minimal_language_data): Likewise.
2073 * completer.c: Update global comment.
2074 (advance_to_expression_complete_word_point): Update call to
2075 word_break_characters.
2076 (complete_files_symbols): Likewise.
2077 (complete_line_internal_1): Likewise.
2078 (default_completer_handle_brkchars): Likewise.
2079 (skip_quoted_chars): Likewise.
2080 * d-lang.c (d_language_data): Delete la_word_break_characters
2081 initializer.
2082 * f-lang.c (f_word_break_characters): Delete.
2083 (f_language_data): Delete la_word_break_characters initializer.
2084 (f_language::word_break_characters): New member function.
2085 * go-lang.c (go_language_data): Delete la_word_break_characters
2086 initializer.
2087 * language.c (unknown_language_data): Likewise.
2088 (auto_language_data): Likewise.
2089 * language.h (default_word_break_characters): Move declaration to
2090 earlier in the file.
2091 (language_data): Delete la_word_break_characters field.
2092 (language_defn::word_break_characters): New member function.
2093 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2094 initializer.
2095 * objc-lang.c (objc_language_data): Likewise.
2096 * opencl-lang.c (opencl_language_data): Likewise.
2097 * p-lang.c (pascal_language_data): Likewise.
2098 * rust-lang.c (rust_language_data): Likewise.
2099
2100 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2101
2102 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2103 (ada_language_data): Delete la_get_symbol_name_matcher
2104 initializer.
2105 (language_defn::get_symbol_name_matcher_inner): New member
2106 function.
2107 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2108 initializer.
2109 (cplus_language_data): Likewise.
2110 (cplus_language::get_symbol_name_matcher_inner): New member
2111 function.
2112 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2113 (minimal_language_data): Likewise.
2114 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2115 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2116 initializer.
2117 * dictionary.c (iter_match_first_hashed): Update call to
2118 get_symbol_name_matcher.
2119 (iter_match_next_hashed): Likewise.
2120 (iter_match_next_linear): Likewise.
2121 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2122 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2123 initializer.
2124 (f_language::get_symbol_name_matcher_inner): New member function.
2125 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2126 initializer.
2127 * language.c (default_symbol_name_matcher): Update header comment,
2128 make static.
2129 (language_defn::get_symbol_name_matcher): New definition.
2130 (language_defn::get_symbol_name_matcher_inner): Likewise.
2131 (get_symbol_name_matcher): Delete.
2132 (unknown_language_data): Delete la_get_symbol_name_matcher
2133 initializer.
2134 (auto_language_data): Likewise.
2135 * language.h (language_data): Delete la_get_symbol_name_matcher
2136 field.
2137 (language_defn::get_symbol_name_matcher): New member function.
2138 (language_defn::get_symbol_name_matcher_inner): Likewise.
2139 (default_symbol_name_matcher): Delete declaration.
2140 * linespec.c (find_methods): Update call to
2141 get_symbol_name_matcher.
2142 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2143 initializer.
2144 * minsyms.c (lookup_minimal_symbol): Update call to
2145 get_symbol_name_matcher.
2146 (iterate_over_minimal_symbols): Likewise.
2147 * objc-lang.c (objc_language_data): Delete
2148 la_get_symbol_name_matcher initializer.
2149 * opencl-lang.c (opencl_language_data): Likewise.
2150 * p-lang.c (pascal_language_data): Likewise.
2151 * psymtab.c (psymbol_name_matches): Update call to
2152 get_symbol_name_matcher.
2153 * rust-lang.c (rust_language_data): Delete
2154 la_get_symbol_name_matcher initializer.
2155 * symtab.c (symbol_matches_search_name): Update call to
2156 get_symbol_name_matcher.
2157 (compare_symbol_name): Likewise.
2158
2159 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2160
2161 * ada-lang.c (ada_language_data): Delete la_compute_program
2162 initializer.
2163 * c-lang.c (c_language_data): Likewise.
2164 (c_language::compute_program): New member function.
2165 (cplus_language_data): Delete la_compute_program initializer.
2166 (cplus_language::compute_program): New member function.
2167 (asm_language_data): Delete la_compute_program initializer.
2168 (minimal_language_data): Likewise.
2169 * c-lang.h (c_compute_program): Update comment.
2170 (cplus_compute_program): Likewise.
2171 * compile/compile-c-support.c (c_compute_program): Likewise.
2172 (cplus_compute_program): Likewise.
2173 * compile/compile.c (compile_to_object): Update call to
2174 la_compute_program.
2175 * d-lang.c (d_language_data): Delete la_compute_program
2176 initializer.
2177 * f-lang.c (f_language_data): Likewise.
2178 * go-lang.c (go_language_data): Likewise.
2179 * language.c (unknown_language_data): Likewise.
2180 (auto_language_data): Likewise.
2181 * language.h (language_data): Delete la_compute_program field.
2182 (language_defn::compute_program): New member function.
2183 * m2-lang.c (m2_language_data): Delete la_compute_program
2184 initializer.
2185 * objc-lang.c (objc_language_data): Likewise.
2186 * opencl-lang.c (opencl_language_data): Likewise.
2187 * p-lang.c (pascal_language_data): Likewise.
2188 * rust-lang.c (rust_language_data): Likewise.
2189
2190 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2191
2192 * ada-lang.c (ada_language_data) Delete
2193 la_class_name_from_physname initializer.
2194 * c-lang.c (c_language_data): Likewise.
2195 (cplus_language_data): Likewise.
2196 (cplus_language::class_name_from_physname): New member function.
2197 (asm_language_data): Delete la_class_name_from_physname
2198 initializer.
2199 (minimal_language_data): Likewise.
2200 * d-lang.c (d_language_data): Likewise.
2201 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2202 method on language_defn class.
2203 (guess_full_die_structure_name): Likewise.
2204 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2205 initializer.
2206 * go-lang.c (go_language_data): Likewise.
2207 * language.c (language_class_name_from_physname): Delete.
2208 (unk_lang_class_name): Delete.
2209 (unknown_language_data): Delete la_class_name_from_physname
2210 initializer.
2211 (auto_language_data): Likewise.
2212 * language.h (language_data): Delete la_class_name_from_physname
2213 field.
2214 (language_defn::class_name_from_physname): New function.
2215 (language_class_name_from_physname): Delete declaration.
2216 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2217 initializer.
2218 * objc-lang.c (objc_language_data): Likewise.
2219 * opencl-lang.c (opencl_language_data): Likewise.
2220 * p-lang.c (pascal_language_data): Likewise.
2221 * rust-lang.c (rust_language_data): Likewise.
2222
2223 2020-06-16 Tom Tromey <tom@tromey.com>
2224
2225 * tui/tui-data.h (STATUS_NAME): New macro.
2226 * tui/tui-layout.c (tui_remove_some_windows)
2227 (initialize_known_windows, tui_register_window)
2228 (tui_layout_split::remove_windows, initialize_layouts)
2229 (tui_new_layout_command): Don't use hard-coded window names.
2230
2231 2020-06-16 Tom Tromey <tom@tromey.com>
2232
2233 PR tui/25348:
2234 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2235 tui_initialize_readline. Only run once. Call rl_initialize.
2236 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2237 tui_initialize_readline.
2238 * tui/tui-io.c (tui_setup_io): Call
2239 tui_ensure_readline_initialized.
2240 * tui/tui-interp.c (tui_interp::init): Update.
2241
2242 2020-06-16 Tom Tromey <tom@tromey.com>
2243
2244 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2245 Also preserve the status window.
2246
2247 2020-06-16 Tom Tromey <tom@tromey.com>
2248
2249 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2250 where m_window==nullptr.
2251
2252 2020-06-15 Tom Tromey <tromey@adacore.com>
2253
2254 * windows-nat.c (windows_nat::handle_output_debug_string):
2255 Update.
2256 (windows_nat::handle_ms_vc_exception): Update.
2257 * target.h (target_read_string): Change API.
2258 * target.c (target_read_string): Change API.
2259 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2260 Update.
2261 * solib-frv.c (frv_current_sos): Update.
2262 * solib-dsbt.c (dsbt_current_sos): Update.
2263 * solib-darwin.c (darwin_current_sos): Update.
2264 * linux-thread-db.c (inferior_has_bug): Update.
2265 * expprint.c (print_subexp_standard): Update.
2266 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2267 (ada_exception_message_1): Update.
2268
2269 2020-06-15 Tom Tromey <tromey@adacore.com>
2270
2271 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2272
2273 2020-06-15 Tom Tromey <tromey@adacore.com>
2274
2275 * valprint.c (read_string): Update comment.
2276 * target.c (MIN): Remove.
2277 (target_read_string): Rewrite.
2278
2279 2020-06-15 Tom Tromey <tromey@adacore.com>
2280
2281 * corefile.c (read_memory_string): Remove.
2282 * ada-valprint.c (ada_value_print_ptr): Update.
2283 * ada-lang.h (ada_tag_name): Change return type.
2284 * ada-lang.c (type_from_tag): Update.
2285 (ada_tag_name_from_tsd): Change return type. Use
2286 target_read_string.
2287 (ada_tag_name): Likewise.
2288 * gdbcore.h (read_memory_string): Don't declare.
2289
2290 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2291
2292 * symtab.c (rbreak_command): Ignore Windows drive colon.
2293
2294 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2295
2296 * NEWS: Mention removed GDBserver host support.
2297
2298 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2299
2300 * features/riscv/rebuild-csr-xml.sh: Updated.
2301
2302 2020-06-11 Tom Tromey <tom@tromey.com>
2303
2304 PR gdb/18318:
2305 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2306
2307 2020-06-09 Jonny Grant <jg@jguk.org>
2308 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2309
2310 * main.c (captured_main_1): Don't print new line after help.
2311 (print_gdb_help): add mailing list and IRC channel information
2312 to --help. Add new lines between items in the footer. Remove
2313 quotes around bug url.
2314
2315 2020-06-11 Keith Seitz <keiths@redhat.com>
2316
2317 PR gdb/21356
2318 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2319 Resolve typedefs for type length calculations.
2320
2321 2020-06-10 Tom de Vries <tdevries@suse.de>
2322
2323 PR ada/24713
2324 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2325 (write_psymbols): Enable .gdb_index for ada.
2326 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2327 ada.
2328
2329 2020-06-10 Tom de Vries <tdevries@suse.de>
2330
2331 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2332 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2333 namei" instead of "const char *name" argument.
2334 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2335 dw2_symtab_iter_init.
2336
2337 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2338
2339 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2340 to use type::field and field::type instead.
2341
2342 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2343
2344 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2345 to use field::type instead.
2346
2347 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2348
2349 * gdbtypes.h (struct field) <type, set_type>: New methods.
2350 Rename `type` field to...
2351 <m_type>: ... this. Change references throughout to use type or
2352 set_type methods.
2353 (FIELD_TYPE): Use field::type. Change call sites that modify
2354 the field's type to use field::set_type instead.
2355
2356 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2357
2358 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2359 to use type::index_type instead.
2360
2361 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2362
2363 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2364 methods.
2365 (TYPE_INDEX_TYPE): Use type::index_type.
2366 * gdbtypes.c (create_array_type_with_stride): Likewise.
2367
2368 2020-06-07 Tom Tromey <tom@tromey.com>
2369
2370 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2371 parameter.
2372 (generic_value_print): Update.
2373
2374 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2375
2376 Revert commit 982a38f60b0.
2377 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2378
2379 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2380
2381 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2382 avoid use after free.
2383
2384 2020-06-05 Tom de Vries <tdevries@suse.de>
2385
2386 * NEWS: Fix typos.
2387
2388 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2389
2390 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2391 the per_bfd object.
2392 (dwarf2_read_debug_names): Likewise.
2393 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2394 object when re-using a per_bfd object with an index.
2395
2396 2020-06-03 Tom de Vries <tdevries@suse.de>
2397
2398 PR symtab/26046
2399 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2400 children for C++.
2401 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2402 DW_TAG_subprogram.
2403
2404 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2405
2406 * ada-lang.c (ada_language_data): Delete skip_trampoline
2407 initializer.
2408 * c-lang.c (c_language_data): Likewise.
2409 (cplus_language_data): Likewise.
2410 (cplus_language::skip_trampoline): New member function.
2411 (asm_language_data): Delete skip_trampoline initializer.
2412 (minimal_language_data): Likewise.
2413 * d-lang.c (d_language_data): Likewise.
2414 * f-lang.c (f_language_data): Likewise.
2415 * go-lang.c (go_language_data): Likewise.
2416 * language.c (unk_lang_trampoline): Delete function.
2417 (skip_language_trampoline): Update.
2418 (unknown_language_data): Delete skip_trampoline initializer.
2419 (auto_language_data): Likewise.
2420 * language.h (language_data): Delete skip_trampoline field.
2421 (language_defn::skip_trampoline): New function.
2422 * m2-lang.c (m2_language_data): Delete skip_trampoline
2423 initializer.
2424 * objc-lang.c (objc_skip_trampoline): Delete function, move
2425 implementation to objc_language::skip_trampoline.
2426 (objc_language_data): Delete skip_trampoline initializer.
2427 (objc_language::skip_trampoline): New member function with
2428 implementation from objc_skip_trampoline.
2429 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2430 initializer.
2431 * p-lang.c (pascal_language_data): Likewise.
2432 * rust-lang.c (rust_language_data): Likewise.
2433
2434 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2435
2436 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2437 (ada_language::demangle): New member function.
2438 * c-lang.c (c_language_data): Delete la_demangle initializer.
2439 (cplus_language_data): Delete la_demangle initializer.
2440 (cplus_language::demangle): New member function.
2441 (asm_language_data): Delete la_demangle initializer.
2442 (minimal_language_data): Delete la_demangle initializer.
2443 * d-lang.c (d_language_data): Delete la_demangle initializer.
2444 (d_language::demangle): New member function.
2445 * f-lang.c (f_language_data): Delete la_demangle initializer.
2446 (f_language::demangle): New member function.
2447 * go-lang.c (go_language_data): Delete la_demangle initializer.
2448 (go_language::demangle): New member function.
2449 * language.c (language_demangle): Update.
2450 (unk_lang_demangle): Delete.
2451 (unknown_language_data): Delete la_demangle initializer.
2452 (unknown_language::demangle): New member function.
2453 (auto_language_data): Delete la_demangle initializer.
2454 (auto_language::demangle): New member function.
2455 * language.h (language_data): Delete la_demangle field.
2456 (language_defn::demangle): New function.
2457 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2458 * objc-lang.c (objc_language_data): Delete la_demangle
2459 initializer.
2460 (objc_language::demangle): New member function.
2461 * opencl-lang.c (opencl_language_data): Delete la_demangle
2462 initializer.
2463 * p-lang.c (pascal_language_data): Likewise.
2464 * rust-lang.c (rust_language_data): Likewise.
2465 (rust_language::demangle): New member function.
2466
2467 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2468
2469 * ada-lang.c (ada_language_data): Delete la_print_type
2470 initializer.
2471 (ada_language::print_type): New member function.
2472 * c-lang.c (c_language_data): Delete la_print_type initializer.
2473 (c_language::print_type): New member function.
2474 (cplus_language_data): Delete la_print_type initializer.
2475 (cplus_language::print_type): New member function.
2476 (asm_language_data): Delete la_print_type initializer.
2477 (asm_language::print_type): New member function.
2478 (minimal_language_data): Delete la_print_type initializer.
2479 (minimal_language::print_type): New member function.
2480 * d-lang.c (d_language_data): Delete la_print_type initializer.
2481 (d_language::print_type): New member function.
2482 * f-lang.c (f_language_data): Delete la_print_type initializer.
2483 (f_language::print_type): New member function.
2484 * go-lang.c (go_language_data): Delete la_print_type initializer.
2485 (go_language::print_type): New member function.
2486 * language.c (unk_lang_print_type): Delete.
2487 (unknown_language_data): Delete la_print_type initializer.
2488 (unknown_language::print_type): New member function.
2489 (auto_language_data): Delete la_print_type initializer.
2490 (auto_language::print_type): New member function.
2491 * language.h (language_data): Delete la_print_type field.
2492 (language_defn::print_type): New function.
2493 (LA_PRINT_TYPE): Update.
2494 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2495 (m2_language::print_type): New member function.
2496 * objc-lang.c (objc_language_data): Delete la_print_type
2497 initializer.
2498 (objc_language::print_type): New member function.
2499 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2500 to opencl_language::print_type.
2501 (opencl_language_data): Delete la_print_type initializer.
2502 (opencl_language::print_type): New member function, implementation
2503 from opencl_print_type.
2504 * p-lang.c (pascal_language_data): Delete la_print_type
2505 initializer.
2506 (pascal_language::print_type): New member function.
2507 * rust-lang.c (rust_print_type): Delete, implementation moved to
2508 rust_language::print_type.
2509 (rust_language_data): Delete la_print_type initializer.
2510 (rust_language::print_type): New member function, implementation
2511 from rust_print_type.
2512
2513 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2514
2515 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2516 implementation moves to...
2517 (ada_language::sniff_from_mangled_name): ...here. Update return
2518 type.
2519 (ada_language_data): Delete la_sniff_from_mangled_name
2520 initializer.
2521 * c-lang.c (c_language_data): Likewise.
2522 (cplus_language_data): Likewise.
2523 (cplus_language::sniff_from_mangled_name): New member function,
2524 implementation taken from gdb_sniff_from_mangled_name.
2525 (asm_language_data): Delete la_sniff_from_mangled_name
2526 initializer.
2527 (minimal_language_data): Likewise.
2528 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2529 implementation moves to cplus_language::sniff_from_mangled_name.
2530 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2531 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2532 moves to...
2533 (d_language::sniff_from_mangled_name): ...here.
2534 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2535 * f-lang.c (f_language_data): Likewise.
2536 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2537 moves to...
2538 (go_language::sniff_from_mangled_name): ...here.
2539 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2540 * language.c (language_sniff_from_mangled_name): Delete.
2541 (unknown_language_data): Delete la_sniff_from_mangled_name
2542 initializer.
2543 (auto_language_data): Likewise.
2544 * language.h (language_data): Delete la_sniff_from_mangled_name
2545 field.
2546 (language_defn::sniff_from_mangled_name): New function.
2547 (language_sniff_from_mangled_name): Delete declaration.
2548 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2549 field.
2550 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2551 implementation moves to...
2552 (objc_language::sniff_from_mangled_name): ...here.
2553 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2554 * opencl-lang.c (opencl_language_data): Likewise.
2555 * p-lang.c (pascal_language_data): Likewise.
2556 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2557 implementation moves to...
2558 (rust_language::sniff_from_mangled_name): ...here.
2559 (rust_language_data): Delete la_sniff_from_mangled_name
2560 initializer.
2561 * symtab.c (symbol_find_demangled_name): Call
2562 sniff_from_mangled_name member function.
2563
2564 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2565
2566 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2567 initializer.
2568 * c-lang.c (c_language_data): Likewise.
2569 (cplus_language_data): Likewise.
2570 (cplus_language::search_name_hash): New member function.
2571 (asm_language_data): Delete la_search_name_hash initializer.
2572 (minimal_language_data): Likewise.
2573 * d-lang.c (d_language_data): Likewise.
2574 * dictionary.c (default_search_name_hash): Rename to...
2575 (language_defn::search_name_hash): ...this.
2576 * f-lang.c (f_language_data): Likewise.
2577 (f_language::search_name_hash): New member function.
2578 * go-lang.c (go_language_data): Delete la_search_name_hash
2579 initializer.
2580 * language.c (unknown_language_data): Likewise.
2581 (auto_language_data): Likewise.
2582 * language.h (struct language_data): Delete la_search_name_hash
2583 field.
2584 (language_defn::search_name_hash): Declare new member function.
2585 (default_search_name_hash): Delete declaration.
2586 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2587 initializer.
2588 * objc-lang.c (objc_language_data): Likewise.
2589 * opencl-lang.c (opencl_language_data): Likewise.
2590 * p-lang.c (pascal_language_data): Likewise.
2591 * rust-lang.c (rust_language_data): Likewise.
2592 * symtab.c (search_name_hash): Update call.
2593
2594 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2595
2596 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2597 initializer.
2598 * c-lang.c (class compile_instance): Declare.
2599 (c_language_data): Delete la_get_compile_instance initializer.
2600 (c_language::get_compile_instance): New member function.
2601 (cplus_language_data): Delete la_get_compile_instance initializer.
2602 (cplus_language::get_compile_instance): New member function.
2603 (asm_language_data): Delete la_get_compile_instance initializer.
2604 (minimal_language_data): Likewise.
2605 * c-lang.h (c_get_compile_context): Update comment.
2606 (cplus_get_compile_context): Update comment.
2607 * compile/compile.c (compile_to_object): Update calls, don't rely
2608 on function pointer being NULL.
2609 * d-lang.c (d_language_data): Delete la_get_compile_instance
2610 initializer.
2611 * f-lang.c (f_language_data): Likewise.
2612 * go-lang.c (go_language_data): Likewise.
2613 * language.c (unknown_language_data): Likewise.
2614 (auto_language_data): Likewise.
2615 * language.h (language_data): Delete la_get_compile_instance field.
2616 (language_defn::get_compile_instance): New member function.
2617 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2618 initializer.
2619 * objc-lang.c (objc_language_data): Likewise.
2620 * opencl-lang.c (opencl_language_data): Likewise.
2621 * p-lang.c (pascal_language_data): Likewise.
2622 * rust-lang.c (rust_language_data): Likewise.
2623
2624 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2625
2626 * ada-lang.c (ada_add_all_symbols): Update comment.
2627 (ada_iterate_over_symbols): Delete, move implementation to...
2628 (ada_language::iterate_over_symbols): ...here, a new member
2629 function, rewrite to use range based for loop.
2630 (ada_language_data): Delete la_iterate_over_symbols initializer.
2631 * c-lang.c (c_language_data): Likewise.
2632 (cplus_language_data): Likewise.
2633 (asm_language_data): Likewise.
2634 (minimal_language_data): Likewise.
2635 * d-lang.c (d_language_data): Likewise.
2636 * f-lang.c (f_language_data): Likewise.
2637 * go-lang.c (go_language_data): Likewise.
2638 * language.c (unknown_language_data): Likewise.
2639 (auto_language_data): Likewise.
2640 * language.h (language_data): Delete la_iterate_over_symbols field.
2641 (language_defn::iterate_over_symbols): New member function.
2642 (LA_ITERATE_OVER_SYMBOLS): Update.
2643 * linespec.c (iterate_over_all_matching_symtabs): Update.
2644 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2645 initializer.
2646 * objc-lang.c (objc_language_data): Likewise.
2647 * opencl-lang.c (opencl_language_data): Likewise.
2648 * p-lang.c (pascal_language_data): Likewise.
2649 * rust-lang.c (rust_language_data): Likewise.
2650
2651 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2652
2653 * ada-lang.c (ada_language_data): Delete
2654 la_lookup_transparent_type initializer.
2655 * c-lang.c (c_language_data): Likewise.
2656 (cplus_language_data): Likewise.
2657 (cplus_language::lookup_transparent_type): New member function.
2658 (asm_language_data): Delete la_lookup_transparent_type
2659 initializer.
2660 (minimal_language_data): Likewise.
2661 * d-lang.c (d_language_data): Likewise.
2662 * f-lang.c (f_language_data): Likewise.
2663 * go-lang.c (go_language_data): Likewise.
2664 * language.c (unknown_language_data): Likewise.
2665 (auto_language_data): Likewise.
2666 * language.h (struct language_data): Delete
2667 la_lookup_transparent_type field.
2668 (language_defn::lookup_transparent_type): New member function.
2669 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2670 initializer.
2671 * objc-lang.c (objc_language_data): Likewise.
2672 * opencl-lang.c (opencl_language_data): Likewise.
2673 * p-lang.c (pascal_language_data): Likewise.
2674 * rust-lang.c (rust_language_data): Likewise.
2675 * symtab.c (symbol_matches_domain): Update call.
2676
2677 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2678
2679 * ada-lang.c (ada_language_arch_info): Delete function, move
2680 implementation to...
2681 (ada_language::language_arch_info): ...here, a new member
2682 function.
2683 (ada_language_data): Delete la_language_arch_info.
2684 * c-lang.c (c_language_data): Likewise.
2685 (c_language::language_arch_info): New member function.
2686 (cplus_language_arch_info): Delete function, move
2687 implementation to...
2688 (cplus_language::language_arch_info): ...here, a new member
2689 function.
2690 (cplus_language_data): Delete la_language_arch_info.
2691 (asm_language_data): Likewise.
2692 (asm_language::language_arch_info): New member function.
2693 (minimal_language_data): Delete la_language_arch_info.
2694 (minimal_language::language_arch_info): New member function.
2695 * d-lang.c (d_language_arch_info): Delete function, move
2696 implementation to...
2697 (d_language::language_arch_info): ...here, a new member
2698 function.
2699 (d_language_data): Delete la_language_arch_info.
2700 * f-lang.c (f_language_arch_info): Delete function, move
2701 implementation to...
2702 (f_language::language_arch_info): ...here, a new member
2703 function.
2704 (f_language_data): Delete la_language_arch_info.
2705 * go-lang.c (go_language_arch_info): Delete function, move
2706 implementation to...
2707 (go_language::language_arch_info): ...here, a new member
2708 function.
2709 (go_language_data): Delete la_language_arch_info.
2710 * language.c (unknown_language_data): Likewise.
2711 (unknown_language::language_arch_info): New member function.
2712 (auto_language_data): Delete la_language_arch_info.
2713 (auto_language::language_arch_info): New member function.
2714 (language_gdbarch_post_init): Update call to
2715 la_language_arch_info.
2716 * language.h (language_data): Delete la_language_arch_info
2717 function pointer.
2718 (language_defn::language_arch_info): New function.
2719 * m2-lang.c (m2_language_arch_info): Delete function, move
2720 implementation to...
2721 (m2_language::language_arch_info): ...here, a new member
2722 function.
2723 (m2_language_data): Delete la_language_arch_info.
2724 * objc-lang.c (objc_language_arch_info): Delete function, move
2725 implementation to...
2726 (objc_language::language_arch_info): ...here, a new member
2727 function.
2728 (objc_language_data): Delete la_language_arch_info.
2729 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2730 implementation to...
2731 (opencl_language::language_arch_info): ...here, a new member
2732 function.
2733 (opencl_language_data): Delete la_language_arch_info.
2734 * p-lang.c (pascal_language_arch_info): Delete function, move
2735 implementation to...
2736 (pascal_language::language_arch_info): ...here, a new member
2737 function.
2738 (pascal_language_data): Delete la_language_arch_info.
2739 * rust-lang.c (rust_language_arch_info): Delete function, move
2740 implementation to...
2741 (rust_language::language_arch_info): ...here, a new member
2742 function.
2743 (rust_language_data): Delete la_language_arch_info.
2744
2745 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2746
2747 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2748 initializer.
2749 * c-lang.c (c_language_data): Likewise.
2750 (cplus_language_data): Likewise.
2751 (cplus_language::pass_by_reference_info): New method.
2752 (asm_language_data): Delete la_pass_by_reference initializer.
2753 (minimal_language_data): Likewise.
2754 * cp-abi.c (cp_pass_by_reference): Remove use of
2755 default_pass_by_reference.
2756 * d-lang.c (d_language_data): Likewise.
2757 * f-lang.c (f_language_data): Likewise.
2758 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2759 default_pass_by_reference.
2760 * go-lang.c (go_language_data): Likewise.
2761 * language.c (language_pass_by_reference): Update.
2762 (default_pass_by_reference): Delete.
2763 (unknown_language_data): Delete la_pass_by_reference
2764 initializer.
2765 (auto_language_data): Likewise.
2766 * language.h (struct language_data): Delete la_pass_by_reference
2767 field.
2768 (language_defn::pass_by_reference_info): New member function.
2769 (default_pass_by_reference): Delete declaration.
2770 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2771 initializer.
2772 * objc-lang.c (objc_language_data): Likewise.
2773 * opencl-lang.c (opencl_language_data): Likewise.
2774 * p-lang.c (pascal_language_data): Likewise.
2775 * rust-lang.c (rust_language_data): Likewise.
2776
2777 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2778
2779 * ada-lang.c (ada_read_var_value): Delete function, move
2780 implementation to...
2781 (ada_language::read_var_value): ...here.
2782 (ada_language_data): Delete la_read_var_value initializer.
2783 * c-lang.c (c_language_data): Likewise.
2784 (cplus_language_data): Likewise.
2785 (minimal_language_data): Likewise.
2786 * d-lang.c (d_language_data): Likewise.
2787 * f-lang.c (f_language_data): Likewise.
2788 * findvar.c (default_read_var_value): Rename to...
2789 (language_defn::read_var_value): ...this.
2790 * findvar.c (read_var_value): Update header comment, and change to
2791 call member function instead of function pointer.
2792 * go-lang.c (go_language_data): Likewise.
2793 * language.c (unknown_language_data): Delete la_read_var_value
2794 initializer.
2795 (auto_language_data): Likewise.
2796 * language.h (struct language_data): Delete la_read_var_value
2797 field.
2798 (language_defn::read_var_value): New member function.
2799 (default_read_var_value): Delete declaration.
2800 * m2-lang.c (m2_language_data): Delete la_read_var_value
2801 initializer.
2802 * objc-lang.c (objc_language_data): Likewise.
2803 * opencl-lang.c (opencl_language_data): Likewise.
2804 * p-lang.c (pascal_language_data): Likewise.
2805 * rust-lang.c (rust_language_data): Likewise.
2806 * value.h (default_read_var_value): Delete declaration.
2807
2808 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2809
2810 * ada-lang.c (ada_print_array_index): Delete function, move
2811 implementation to...
2812 (ada_language::print_array_index): ...here.
2813 (ada_language_data): Delete la_print_array_index initializer.
2814 * c-lang.c (c_language_data): Likewise.
2815 (cplus_language_data): Likewise.
2816 (minimal_language_data): Likewise.
2817 * d-lang.c (d_language_data): Likewise.
2818 * f-lang.c (f_language_data): Likewise.
2819 * go-lang.c (go_language_data): Likewise.
2820 * language.c (default_print_array_index): Delete function, move
2821 implementation to...
2822 (language_defn::print_array_index): ...here.
2823 (unknown_language_data): Delete la_print_array_index initializer.
2824 (auto_language_data): Likewise.
2825 * language.h (struct language_data): Delete la_print_array_index
2826 field.
2827 (language_defn::print_array_index): New member function.
2828 (LA_PRINT_ARRAY_INDEX): Update.
2829 (default_print_array_index): Delete declaration.
2830 * m2-lang.c (m2_language_data): Delete la_print_array_index
2831 initializer.
2832 * objc-lang.c (objc_language_data): Likewise.
2833 * opencl-lang.c (opencl_language_data): Likewise.
2834 * p-lang.c (pascal_language_data): Likewise.
2835 * rust-lang.c (rust_language_data): Likewise.
2836
2837 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2838
2839 * gdb/ada-lang.c (ada_language_defn): Convert to...
2840 (ada_language_data): ...this.
2841 (class ada_language): New class.
2842 (ada_language_defn): New static global.
2843 * gdb/c-lang.c (c_language_defn): Convert to...
2844 (c_language_data): ...this.
2845 (class c_language): New class.
2846 (c_language_defn): New static global.
2847 (cplus_language_defn): Convert to...
2848 (cplus_language_data): ...this.
2849 (class cplus_language): New class.
2850 (cplus_language_defn): New static global.
2851 (asm_language_defn): Convert to...
2852 (asm_language_data): ...this.
2853 (class asm_language): New class.
2854 (asm_language_defn): New static global.
2855 (minimal_language_defn): Convert to...
2856 (minimal_language_data): ...this.
2857 (class minimal_language): New class.
2858 (minimal_language_defn): New static global.
2859 * gdb/d-lang.c (d_language_defn): Convert to...
2860 (d_language_data): ...this.
2861 (class d_language): New class.
2862 (d_language_defn): New static global.
2863 * gdb/f-lang.c (f_language_defn): Convert to...
2864 (f_language_data): ...this.
2865 (class f_language): New class.
2866 (f_language_defn): New static global.
2867 * gdb/go-lang.c (go_language_defn): Convert to...
2868 (go_language_data): ...this.
2869 (class go_language): New class.
2870 (go_language_defn): New static global.
2871 * gdb/language.c (unknown_language_defn): Remove declaration.
2872 (current_language): Initialize to nullptr, real initialization is
2873 moved to _initialize_language.
2874 (languages): Delete global.
2875 (language_defn::languages): Define.
2876 (set_language_command): Use language_defn::languages.
2877 (set_language): Likewise.
2878 (range_error): Likewise.
2879 (language_enum): Likewise.
2880 (language_def): Likewise.
2881 (add_set_language_command): Use language_def::languages for the
2882 language list, and language_def to lookup language pointers.
2883 (skip_language_trampoline): Use language_defn::languages.
2884 (unknown_language_defn): Convert to...
2885 (unknown_language_data): ...this.
2886 (class unknown_language): New class.
2887 (unknown_language_defn): New static global.
2888 (auto_language_defn): Convert to...
2889 (auto_language_data): ...this.
2890 (class auto_language): New class.
2891 (auto_language_defn): New static global.
2892 (language_gdbarch_post_init): Use language_defn::languages.
2893 (_initialize_language): Initialize current_language.
2894 * gdb/language.h (struct language_defn): Rename to...
2895 (struct language_data): ...this.
2896 (struct language_defn): New.
2897 (auto_language_defn): Delete.
2898 (unknown_language_defn): Delete.
2899 (minimal_language_defn): Delete.
2900 (ada_language_defn): Delete.
2901 (asm_language_defn): Delete.
2902 (c_language_defn): Delete.
2903 (cplus_language_defn): Delete.
2904 (d_language_defn): Delete.
2905 (f_language_defn): Delete.
2906 (go_language_defn): Delete.
2907 (m2_language_defn): Delete.
2908 (objc_language_defn): Delete.
2909 (opencl_language_defn): Delete.
2910 (pascal_language_defn): Delete.
2911 (rust_language_defn): Delete.
2912 * gdb/m2-lang.c (m2_language_defn): Convert to...
2913 (m2_language_data): ...this.
2914 (class m2_language): New class.
2915 (m2_language_defn): New static global.
2916 * gdb/objc-lang.c (objc_language_defn): Convert to...
2917 (objc_language_data): ...this.
2918 (class objc_language): New class.
2919 (objc_language_defn): New static global.
2920 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2921 (opencl_language_data): ...this.
2922 (class opencl_language): New class.
2923 (opencl_language_defn): New static global.
2924 * gdb/p-lang.c (pascal_language_defn): Convert to...
2925 (pascal_language_data): ...this.
2926 (class pascal_language): New class.
2927 (pascal_language_defn): New static global.
2928 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2929 language pointer, update comment format.
2930 * gdb/rust-lang.c (rust_language_defn): Convert to...
2931 (rust_language_data): ...this.
2932 (class rust_language): New class.
2933 (rust_language_defn): New static global.
2934
2935 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2936
2937 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2938 member variable.
2939 <m_stmt_at_address>: New member variable.
2940 (lnp_state_machine::record_line): Don't record some lines, update
2941 tracking of is_stmt at the same address.
2942 (lnp_state_machine::lnp_state_machine): Initialise new member
2943 variables.
2944
2945 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2946
2947 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2948 "-include gnu-nat-mig.h".
2949 * gnu-nat-mig.h: New file.
2950 * gnu-nat.c: Include "gnu-nat-mig.h".
2951 (exc_server, msg_reply_server, notify_server,
2952 process_reply_server): Remove declarations.
2953
2954 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2955
2956 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2957 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2958 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2959 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2960 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2961 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2962 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2963 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2964 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2965 to gnu_nat_target class.
2966 * gnu-nat.c: Likewise.
2967 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2968 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2969 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2970 object.
2971 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2972 instead of `gnu_target'.
2973
2974 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2975
2976 * i386-gnu-tdep.c: Include "gdbcore.h"
2977 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2978 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2979 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2980 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2981 i386_gnu_sigcontext_addr): New functions
2982 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2983 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2984 tdep.
2985
2986 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2987
2988 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2989 before fork_inferior call. Avoid calling it if target_is_pushed returns
2990 true.
2991
2992 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2993
2994 * gnu-nat.h (gnu_target): New variable declaration.
2995 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2996 gnu_target.
2997 * gnu-nat.c (gnu_target): New variable.
2998 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2999 add_thread_silent, and add_thread calls.
3000 (gnu_nat_target::create_inferior): Pass gnu_target to
3001 add_thread_silent, thread_change_ptid call.
3002 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3003 call.
3004
3005 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3006
3007 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3008 (gnu_nat_target::find_memory_regions): Remove unused
3009 `old_address' variable.
3010
3011 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3012
3013 * gnu-nat.c: Include "gdbarch.h".
3014
3015 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3016
3017 * reply_mig_hack.awk (Error return): Cast function through
3018 void *, to bypass compiler function call check.
3019
3020 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3021
3022 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3023 $(srcdir)/reply_mig_hack.awk.
3024
3025 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3026
3027 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3028
3029 2020-05-30 Jonny Grant <jg@jguk.org>
3030
3031 * configure.ac (ACX_BUGURL): change bug URL to https.
3032
3033 2020-05-30 Pedro Alves <palves@redhat.com>
3034
3035 * cp-support.c (replace_typedefs_template): New.
3036 (replace_typedefs_qualified_name): Handle
3037 DEMANGLE_COMPONENT_TEMPLATE.
3038
3039 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3040
3041 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3042 dwarf2/index-cache.h, dwarf2/index-write.c,
3043 dwarf2/index-write.h, dwarf2/line-header.c,
3044 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3045 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3046 variables and fields from `dwarf2_per_objfile` to just
3047 `per_objfile` throughout.
3048
3049 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3050
3051 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3052 <push_dwarf_reg_entry_value>: Add comment.
3053
3054 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3055 Keith Seitz <keiths@redhat.com>
3056
3057 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3058 instead of PyEval_ReleaseLock.
3059 (class gdbpy_gil): Move to earlier in file.
3060 (finalize_python): Set gdb_python_initialized.
3061 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3062 when not initialized.
3063
3064 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3065
3066 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3067 <push_dwarf_reg_entry_value>: Remove assert. Override
3068 per_objfile with caller_per_objfile.
3069
3070 2020-05-28 Tom de Vries <tdevries@suse.de>
3071
3072 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3073 PR gold/15646 workaround to symbol kind "type".
3074
3075 2020-05-27 Tom Tromey <tromey@adacore.com>
3076
3077 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3078
3079 2020-05-27 Tom Tromey <tromey@adacore.com>
3080
3081 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3082 Use htab_find_with_hash.
3083 <add_abbrev>: Remove "abbrev_number" parameter.
3084 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3085 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3086 (hash_abbrev): Add comment.
3087 (abbrev_table::lookup_abbrev): Move to header file.
3088 (abbrev_table::read): Update.
3089
3090 2020-05-27 Tom Tromey <tromey@adacore.com>
3091
3092 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3093 method.
3094 <canonical_name>: New member.
3095 <raw_name>: Rename from "name".
3096 (partial_die_info): Initialize canonical_name.
3097 (scan_partial_symbols): Check raw_name.
3098 (partial_die_parent_scope, partial_die_full_name)
3099 (add_partial_symbol, add_partial_subprogram)
3100 (add_partial_enumeration, load_partial_dies): Use "name" method.
3101 (partial_die_info::name): New method.
3102 (partial_die_info::read, guess_partial_die_structure_name)
3103 (partial_die_info::fixup): Update.
3104
3105 2020-05-27 Tom Tromey <tromey@adacore.com>
3106
3107 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3108 <get_ref_die_offset>: Inline.
3109 <get_ref_die_offset_complaint>: New method.
3110 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3111 (attribute::get_ref_die_offset_complaint): Rename from
3112 get_ref_die_offset. Just issue complaint.
3113
3114 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3115
3116 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3117
3118 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3119
3120 * exec.c (exec_file_attach): Use errno value of first openp failure.
3121
3122 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3123
3124 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3125 Don't close thread handle.
3126
3127 2020-05-27 Tom Tromey <tom@tromey.com>
3128 Simon Marchi <simon.marchi@efficios.com>
3129
3130 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3131 shared_ptr.
3132 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3133 member.
3134 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3135 dwarf2_per_bfd_objfile_data_key>: New globals.
3136 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3137 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3138 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3139 shared.
3140 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3141 short-circuit when sharing.
3142 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3143 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3144
3145 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3146
3147 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3148 to...
3149 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3150 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3151
3152 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3153
3154 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3155 build_name_components, find_name_components_bounds>:
3156 Add per_objfile parameter.
3157 (struct mapped_index) <symbol_name_at>: Likewise.
3158 (struct mapped_debug_names): Remove constructor.
3159 <dwarf2_per_objfile>: Remove field.
3160 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3161 (mapped_index_base::find_name_components_bounds,
3162 mapped_index_base::build_name_components,
3163 dw2_expand_symtabs_matching_symbol): Likewise.
3164 (class mock_mapped_index) <symbol_name_at>: Likewise.
3165 (check_match): Likewise.
3166 (check_find_bounds_finds): Likewise.
3167 (test_mapped_index_find_name_component_bounds): Update.
3168 (CHECK_MATCH): Update.
3169 (dw2_expand_symtabs_matching): Update.
3170 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3171 per_objfile parameter.
3172 <find_vec_in_debug_names>: Likewise.
3173 <m_per_objfile>: New field.
3174 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3175 parameter.
3176 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3177 (dw2_debug_names_iterator::next): Update.
3178 (dw2_debug_names_lookup_symbol): Update.
3179 (dw2_debug_names_expand_symtabs_for_function): Update.
3180 (dw2_debug_names_map_matching_symbols): Update.
3181 (dw2_debug_names_expand_symtabs_matching): Update.
3182 (dwarf2_read_debug_names): Update.
3183
3184 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3185
3186 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3187 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3188 move to dwarf2_per_objfile.
3189 <read_in_chain>: Remove.
3190 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3191 remove_all_cus, age_comp_units>: New methods.
3192 <m_dwarf2_cus>: New member.
3193 (struct dwarf2_per_cu_data) <cu>: Remove.
3194 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3195 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3196 moved to methods of dwarf2_per_objfile.
3197 (dwarf2_clear_marks): Remove.
3198 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3199 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3200 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3201 (dwarf2_per_objfile::remove_all_cus): New.
3202 (class free_cached_comp_units) <~free_cached_comp_units>:
3203 Update.
3204 (load_cu): Update.
3205 (dw2_do_instantiate_symtab): Adjust.
3206 (fill_in_sig_entry_from_dwo_entry): Adjust.
3207 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3208 (cutu_reader::cutu_reader): Likewise.
3209 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3210 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3211 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3212 and dwarf2_per_objfile::age_comp_units.
3213 (load_partial_comp_unit): Update.
3214 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3215 (process_queue): Likewise.
3216 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3217 backlink.
3218 (dwarf2_read_addr_index): Likewise.
3219 (follow_die_offset): Likewise.
3220 (dwarf2_fetch_die_loc_sect_off): Likewise.
3221 (dwarf2_fetch_constant_bytes): Likewise.
3222 (dwarf2_fetch_die_type_sect_off): Likewise.
3223 (follow_die_sig_1): Likewise.
3224 (load_full_type_unit): Likewise.
3225 (read_signatured_type): Likewise.
3226 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3227 (dwarf2_cu::~dwarf2_cu): Remove.
3228 (dwarf2_per_objfile::get_cu): New.
3229 (dwarf2_per_objfile::set_cu): New.
3230 (age_cached_comp_units): Rename to...
3231 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3232 to std::unordered_map.
3233 (free_one_cached_comp_unit): Rename to...
3234 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3235 to std::unordered_map.
3236 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3237 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3238 a dwarf2_per_objfile in data.
3239 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3240 (dwarf2_clear_marks): Remove.
3241
3242 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3243
3244 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3245 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3246 (init_tu_and_read_dwo_dies): Likewise.
3247 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3248 (cutu_reader::cutu_reader): Likewise.
3249 (load_partial_comp_unit): Likewise.
3250 (process_psymtab_comp_unit): Update.
3251 (build_type_psymtabs_1): Update.
3252 (process_skeletonless_type_unit): Update.
3253 (load_full_comp_unit): Update.
3254 (find_partial_die): Update.
3255 (dwarf2_read_addr_index): Update.
3256 (read_signatured_type): Update.
3257
3258 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3259
3260 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3261 m_header_read_in>: New fields.
3262 <get_header>: New method.
3263 * dwarf2/read.c (per_cu_header_read_in): Remove.
3264 (dwarf2_per_cu_data::get_header): New.
3265 (dwarf2_per_cu_data::addr_size): Update.
3266 (dwarf2_per_cu_data::offset_size): Update.
3267 (dwarf2_per_cu_data::ref_addr_size): Update.
3268
3269 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3270
3271 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3272 (dw2_do_instantiate_symtab): Update.
3273 (queue_and_load_all_dwo_tus): Change parameter from
3274 dwarf2_per_cu_data to dwarf2_cu.
3275 (dwarf2_fetch_die_loc_sect_off): Update.
3276 (dwarf2_fetch_constant_bytes): Update.
3277 (dwarf2_fetch_die_type_sect_off): Update.
3278
3279 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3280
3281 * dwarf2/read.c (process_full_comp_unit,
3282 process_full_type_unit): Remove per_cu, per_objfile paramters.
3283 Add dwarf2_cu parameter.
3284 (process_queue): Update.
3285
3286 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3287
3288 * dwarf2/read.c (create_cu_from_index_list): Replace
3289 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3290 (create_cus_from_index_list): Likewise.
3291 (create_cus_from_index): Likewise.
3292 (create_signatured_type_table_from_index): Likewise.
3293 (create_cus_from_debug_names_list): Likewise.
3294 (create_cus_from_debug_names): Likewise.
3295 (dwarf2_read_gdb_index): Update.
3296 (dwarf2_read_debug_names): Update.
3297
3298 2020-05-27 Tom Tromey <tom@tromey.com>
3299 Simon Marchi <simon.marchi@efficios.com>
3300
3301 * dwarf2/read.h (struct dwarf2_per_objfile)
3302 <get_type_for_signatured_type, set_type_for_signatured_type>:
3303 New methods.
3304 <m_type_map>: New member.
3305 (struct signatured_type) <type>: Remove.
3306 * dwarf2/read.c
3307 (dwarf2_per_objfile::get_type_for_signatured_type,
3308 dwarf2_per_objfile::set_type_for_signatured_type): New.
3309 (get_signatured_type): Use new methods.
3310
3311 2020-05-27 Tom Tromey <tom@tromey.com>
3312 Simon Marchi <simon.marchi@efficios.com>
3313
3314 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3315 (struct dwarf2_per_objfile) <type_units>: New member.
3316 <get_type_unit_group_unshareable>: New method.
3317 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3318 num_symtabs, symtabs>: Remove; move to
3319 type_unit_group_unshareable.
3320 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3321 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3322 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3323
3324 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3325
3326 * dwarf2/read.h (struct dwarf2_per_cu_data):
3327 <dwarf2_per_objfile>: Remove.
3328 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3329 dwarf2_per_objfile.
3330 (create_signatured_type_table_from_index): Likewise.
3331 (create_signatured_type_table_from_debug_names): Likewise.
3332 (create_debug_type_hash_table): Likewise.
3333 (fill_in_sig_entry_from_dwo_entry): Likewise.
3334 (create_type_unit_group): Likewise.
3335 (read_comp_units_from_section): Likewise.
3336 (create_cus_hash_table): Likewise.
3337
3338 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3339
3340 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3341 dwarf2_per_cu_data::dwarf2_per_objfile.
3342 (compute_compunit_symtab_includes): Likewise.
3343 (dwarf2_cu::start_symtab): Likewise.
3344
3345 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3346
3347 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3348 parameter.
3349 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3350 (read_namespace_alias): Update.
3351 (lookup_die_type): Update.
3352 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3353 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3354 Update.
3355 (disassemble_dwarf_expression): Update.
3356
3357 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3358
3359 * dwarf2/read.h (struct dwarf2_queue_item): Add
3360 dwarf2_per_objfile parameter, assign new parameter.
3361 <per_objfile>: New field.
3362 * dwarf2/read.c (free_one_cached_comp_unit): Add
3363 dwarf2_per_objfile parameter.
3364 (queue_comp_unit): Likewise.
3365 (dw2_do_instantiate_symtab): Update.
3366 (process_psymtab_comp_unit): Update.
3367 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3368 (process_imported_unit_die): Update.
3369 (queue_and_load_dwo_tu): Update.
3370 (follow_die_offset): Update.
3371 (follow_die_sig_1): Update.
3372
3373 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3374
3375 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3376 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3377 (read_call_site_scope): Assign per_objfile.
3378 (dwarf2_per_cu_data::objfile): Remove.
3379 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3380 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3381 dwarf2_per_objfile parameter.
3382 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3383 dwarf2_per_objfile parameter.
3384 (dwarf_expr_reg_to_entry_parameter): Add output
3385 dwarf2_per_objfile parameter.
3386 (locexpr_get_frame_base): Update.
3387 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3388 <push_dwarf_reg_entry_value>: Update.
3389 <call_site_to_target_addr>: Update.
3390 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3391 parameter.
3392 (value_of_dwarf_reg_entry): Update.
3393 (rw_pieced_value): Update.
3394 (indirect_synthetic_pointer): Update.
3395 (dwarf2_evaluate_property): Update.
3396 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3397 parameter.
3398 (locexpr_read_variable): Update.
3399 (locexpr_get_symbol_read_needs): Update.
3400 (loclist_read_variable): Update.
3401
3402 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3403
3404 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3405 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3406 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3407 parameter.
3408 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3409 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3410 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3411 parameter.
3412 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3413 sect_variable_value): Add dwarf2_per_objfile parameter.
3414 (class dwarf_evaluate_loc_desc) <dwarf_call,
3415 dwarf_variable_value>: Update.
3416 (fetch_const_value_from_synthetic_pointer): Add
3417 dwarf2_per_objfile parameter.
3418 (fetch_const_value_from_synthetic_pointer): Update.
3419 (coerced_pieced_ref): Update.
3420 (class symbol_needs_eval_context) <dwarf_call,
3421 dwarf_variable_value>: Update.
3422 (dwarf2_compile_expr_to_ax): Update.
3423
3424 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3425
3426 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3427 parameter.
3428 (dwarf2_evaluate_loc_desc_full): Update.
3429
3430 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3431
3432 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3433 parameter.
3434 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3435 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3436 dwarf2_per_objfile parameter.
3437 (decode_debug_loc_dwo_addresses): Likewise.
3438 (dwarf2_find_location_expression): Update.
3439 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3440 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3441 parameter.
3442 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3443 parameter.
3444 (locexpr_describe_location_1): Likewise.
3445 (locexpr_describe_location): Update.
3446
3447 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3448
3449 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3450 Remove.
3451 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3452 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3453 (dwarf2_compile_property_to_c): Update.
3454 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3455 use text offset from objfile.
3456 (locexpr_tracepoint_var_ref): Update.
3457 (locexpr_generate_c_location): Update.
3458 (loclist_describe_location): Update.
3459 (loclist_tracepoint_var_ref): Update.
3460 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3461 dwarf2_per_objfile parameter.
3462 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3463 use text offset from objfile.
3464 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3465
3466 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3467
3468 * dwarf2/expr.h (struct dwarf_expr_context)
3469 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3470 <offset>: Remove.
3471 <per_objfile>: New member.
3472 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3473 dwarf2_per_objfile parameter. Don't set offset, set
3474 per_objfile.
3475 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3476 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3477 a dwarf2_per_objfile object instead of an offset.
3478 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3479 constructor.
3480 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3481 to dwarf2_expr_executor constructor. Don't set offset.
3482 (dwarf2_fetch_cfa_info): Update.
3483 (struct dwarf2_frame_cache) <text_offset>: Remove.
3484 <per_objfile>: New field.
3485 (dwarf2_frame_cache): Update.
3486 (dwarf2_frame_prev_register): Update.
3487 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3488 <dwarf_evaluate_loc_desc>: Add constructor.
3489 (dwarf2_evaluate_loc_desc_full): Update.
3490 (dwarf2_locexpr_baton_eval): Update.
3491 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3492 Add constructor.
3493 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3494
3495 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3496
3497 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3498 addr_sized_int_type>: Move to dwarf2_cu.
3499 <int_type>: Move to dwarf2_per_objfile.
3500 (struct dwarf2_per_objfile) <int_type>: Move here.
3501 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3502 addr_sized_int_type>: Move here.
3503 (read_func_scope): Update.
3504 (read_array_type): Update.
3505 (read_tag_string_type): Update.
3506 (attr_to_dynamic_prop): Update.
3507 (dwarf2_per_cu_data::int_type): Rename to...
3508 (dwarf2_per_objfile::int_type): ... this.
3509 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3510 (dwarf2_cu::addr_sized_int_type): ... this.
3511 (read_subrange_type): Update.
3512 (dwarf2_per_cu_data::addr_type): Rename to...
3513 (dwarf2_cu::addr_type): ... this.
3514 (set_die_type): Update.
3515
3516 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3517
3518 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3519 data through per_cu->cu.
3520
3521 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3522
3523 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3524 dwarf2_per_cu_data parameter fo dwarf2_cu.
3525 (lookup_dwo_type_unit): Likewise.
3526 (read_cutu_die_from_dwo): Likewise.
3527 (lookup_dwo_unit): Likewise.
3528 (open_and_init_dwo_file): Likewise.
3529 (lookup_dwo_cutu): Likewise.
3530 (lookup_dwo_comp_unit): Likewise.
3531 (lookup_dwo_type_unit): Likewise.
3532 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3533 (cutu_reader::cutu_reader): Update.
3534
3535 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3536
3537 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3538 parameter.
3539 (process_full_type_unit): Likewise.
3540 (process_queue): Update.
3541
3542 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3543
3544 * dwarf2/read.c (recursively_compute_inclusions): Add
3545 dwarf2_per_objfile parameter.
3546 (compute_compunit_symtab_includes): Likewise.
3547 (process_cu_includes): Update.
3548
3549 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3550
3551 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3552 parameter.
3553 (create_type_unit_group): Update.
3554 (process_psymtab_comp_unit_reader): Update.
3555 (build_type_psymtabs_reader): Update.
3556
3557 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3558
3559 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3560 object through m_this_cu->cu.
3561
3562 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3563
3564 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3565 the info parameter.
3566 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3567
3568 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3569
3570 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3571 per_objfile parameter.
3572 (load_full_type_unit): Add per_objfile parameter.
3573 (read_signatured_type): Likewise.
3574 (load_full_comp_unit): Likewise.
3575 (load_cu): Likewise.
3576 (dw2_do_instantiate_symtab): Likewise.
3577 (dw2_get_file_names): Likewise.
3578 (dw2_map_symtabs_matching_filename): Update.
3579 (dw_expand_symtabs_matching_file_matcher): Update.
3580 (dw2_map_symbol_filenames): Update.
3581 (process_psymtab_comp_unit): Add per_objfile parameter.
3582 (build_type_psymtabs_1): Update.
3583 (process_skeletonless_type_unit): Update.
3584 (dwarf2_build_psymtabs_hard): Update.
3585 (load_partial_comp_unit): Add per_objfile parameter.
3586 (scan_partial_symbols): Update.
3587 (load_full_comp_unit): Add per_objfile parameter.
3588 (process_imported_unit_die): Update.
3589 (create_cus_hash_table): Update.
3590 (find_partial_die): Update.
3591 (dwarf2_read_addr_index): Update.
3592 (follow_die_offset): Update.
3593 (dwarf2_fetch_die_loc_sect_off): Update.
3594 (dwarf2_fetch_constant_bytes): Update.
3595 (dwarf2_fetch_die_type_sect_off): Update.
3596 (follow_die_sig_1): Update.
3597 (load_full_type_unit): Add per_objfile parameter.
3598 (read_signatured_type): Likewise.
3599
3600 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3601
3602 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3603 of objfile_name.
3604
3605 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3606
3607 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3608 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3609 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3610 field.
3611 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3612 (create_cus_from_index): Update.
3613 (dwarf2_read_gdb_index): Update.
3614 (create_cus_from_debug_names): Update.
3615 (dwarf2_read_debug_names): Update.
3616 (get_abbrev_section_for_cu): Update.
3617 (create_all_comp_units): Update.
3618 (read_attribute_value): Update.
3619 (get_debug_line_section): Update.
3620 * dwarf2/index-cache.c (index_cache::store): Update.
3621 * dwarf2/index-write.c (save_gdb_index_command): Update.
3622 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3623
3624 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3625
3626 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3627 member.
3628 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3629 dwarf2_per_cu_data::per_bfd.
3630 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3631 (create_type_unit_group): Likewise.
3632 (queue_comp_unit): Remove reference to
3633 per_cu->dwarf2_per_objfile.
3634 (maybe_queue_comp_unit): Likewise.
3635 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3636 (create_cus_hash_table): Assign new field.
3637
3638 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3639
3640 * dwarf2/read.c: Replace
3641 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3642 dwarf2_cu->per_objfile throughout.
3643
3644 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3645
3646 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3647 parameter, don't use per_cu->dwarf2_per_objfile.
3648 (dw2_instantiate_symtab): Likewise.
3649 (dw2_find_last_source_symtab): Update.
3650 (dw2_map_expand_apply): Update.
3651 (dw2_lookup_symbol): Update.
3652 (dw2_expand_symtabs_for_function): Update.
3653 (dw2_expand_all_symtabs): Update.
3654 (dw2_expand_symtabs_with_fullname): Update.
3655 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3656 don't use per_cu->dwarf2_per_objfile.
3657 (dw2_expand_marked_cus): Update.
3658 (dw2_find_pc_sect_compunit_symtab): Update.
3659 (dw2_debug_names_lookup_symbol): Update.
3660 (dw2_debug_names_expand_symtabs_for_function): Update.
3661 (dw2_debug_names_map_matching_symbols): Update.
3662 (dwarf2_psymtab::expand_psymtab): Update.
3663
3664 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3665
3666 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3667 <per_objfile>: New member.
3668 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3669 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3670 call to dwarf2_cu.
3671 (cutu_reader::cutu_reader): Update.
3672 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3673
3674 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3675
3676 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3677 struct dwarf2_per_objfile.
3678 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3679 dwarf2_per_bfd.
3680 * dwarf2/read.c (set_die_type): Update.
3681 (get_die_type_at_offset): Update.
3682
3683 2020-05-27 Tom Tromey <tom@tromey.com>
3684 Simon Marchi <simon.marchi@efficios.com>
3685
3686 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3687 method.
3688 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3689 get_symtab, set_symtab>: New methods.
3690 <m_symtabs>: New field.
3691 (struct dwarf2_psymtab): Derive from partial_symtab.
3692 <readin_p, get_compunit_symtab>: Declare methods.
3693 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3694 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3695 New methods.
3696 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3697 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3698 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3699 (dw2_symtab_iter_next, dw2_print_stats)
3700 (dw2_expand_symtabs_with_fullname)
3701 (dw2_expand_symtabs_matching_one)
3702 (dw_expand_symtabs_matching_file_matcher)
3703 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3704 (dw2_debug_names_iterator::next)
3705 (dw2_debug_names_map_matching_symbols)
3706 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3707 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3708 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3709 New methods.
3710 (get_compunit_symtab, process_full_comp_unit)
3711 (process_full_type_unit): Update.
3712 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3713
3714 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3715
3716 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3717 then introduce a new dwarf2_per_objfile type.
3718 <read_line_string>: Move to the new dwarf2_per_objfile type.
3719 <objfile>: Likewise.
3720 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3721 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3722 dwarf2_per_objfile->per_bfd.
3723 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3724 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3725 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3726 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3727 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3728 (dwarf2_per_objfile::locate_sections): Rename to...
3729 (dwarf2_per_bfd::locate_sections): ... this.
3730 (dwarf2_per_objfile::get_cutu): Rename to...
3731 (dwarf2_per_bfd::get_cutu): ... this.
3732 (dwarf2_per_objfile::get_cu): Rename to...
3733 (dwarf2_per_bfd::get_cu): ... this.
3734 (dwarf2_per_objfile::get_tu): Rename to...
3735 (dwarf2_per_bfd::get_tu): ... this.
3736 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3737 (dwarf2_per_bfd::allocate_per_cu): ... this.
3738 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3739 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3740 (get_gdb_index_contents_ftype): Change parameter from
3741 dwarf2_per_objfile to dwarf2_per_bfd.
3742 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3743 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3744
3745 2020-05-27 Tom Tromey <tom@tromey.com>
3746 Simon Marchi <simon.marchi@efficios.com>
3747
3748 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3749 (allocate_piece_closure): Set "per_objfile" member.
3750 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3751 (locexpr_describe_location, loclist_describe_location): Use new
3752 member.
3753 * dwarf2/read.c (read_call_site_scope)
3754 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3755 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3756 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3757 handle_data_member_location): Set per_objfile member.
3758 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3759 member.
3760 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3761
3762 2020-05-27 Tom Tromey <tom@tromey.com>
3763
3764 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3765 allocate_signatured_type>: Declare new methods.
3766 <m_num_psymtabs>: New member.
3767 (struct dwarf2_per_cu_data) <index>: New member.
3768 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3769 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3770 (create_cu_from_index_list): Use allocate_per_cu.
3771 (create_signatured_type_table_from_index)
3772 (create_signatured_type_table_from_debug_names)
3773 (create_debug_type_hash_table, add_type_unit)
3774 (read_comp_units_from_section): Use allocate_signatured_type.
3775
3776 2020-05-27 Tom Tromey <tom@tromey.com>
3777
3778 * psymtab.c (partial_map_expand_apply)
3779 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3780 (psym_lookup_global_symbol_language)
3781 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3782 (psym_print_stats, psym_expand_symtabs_for_function)
3783 (psym_map_symbol_filenames, psym_map_matching_symbols)
3784 (psym_expand_symtabs_matching)
3785 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3786 (maintenance_check_psymtabs): Update.
3787 * psympriv.h (struct partial_symtab) <readin_p,
3788 get_compunit_symtab>: Add objfile parameter.
3789 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3790 Likewise.
3791 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3792 get_compunit_symtab>: Likewise.
3793 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3794
3795 2020-05-27 Tom Tromey <tom@tromey.com>
3796
3797 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3798 member.
3799 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3800 (create_cu_from_index_list)
3801 (create_signatured_type_table_from_index)
3802 (create_signatured_type_table_from_debug_names)
3803 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3804 (dwarf2_create_include_psymtab)
3805 (create_debug_type_hash_table, add_type_unit)
3806 (create_type_unit_group, read_comp_units_from_section)
3807 (dwarf2_compute_name, create_cus_hash_table)
3808 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3809 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3810 obstack.
3811 (dw2_get_real_path): Likewise. Change argument to
3812 dwarf2_per_objfile.
3813
3814 2020-05-27 Luis Machado <luis.machado@linaro.org>
3815
3816 PR tdep/26000
3817 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3818 for ldrd (immediate).
3819
3820 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3821
3822 * command.h: Add comment giving the name of class_tui.
3823 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3824 create the fake command for the help for class_tui.
3825
3826 2020-05-26 Tom Tromey <tromey@adacore.com>
3827
3828 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3829 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3830 (val_atr): New function.
3831 (value_val_atr): Use it.
3832 * ada-valprint.c (print_optional_low_bound): Change low bound
3833 handling for enums.
3834 (val_print_packed_array_elements): Don't call discrete_position.
3835 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3836 discrete_position for enum types.
3837 * language.c (default_print_array_index): Change type.
3838 * language.h (struct language_defn) <la_print_array_index>: Add
3839 index_type parameter, change type of index_value.
3840 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3841 (default_print_array_index): Update.
3842 * valprint.c (maybe_print_array_index): Don't call
3843 value_from_longest. Update.
3844 (value_print_array_elements): Don't call discrete_position.
3845
3846 2020-05-26 Tom Tromey <tromey@adacore.com>
3847
3848 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3849 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3850
3851 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3852
3853 PR gdb/13519
3854 * avr-tdep.c (avr_integer_to_address): Return data or code
3855 address accordingly to the second 'type' argument of the
3856 function.
3857
3858 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3859
3860 * infcmd.c, inferior.h: (construct_inferior_arguments):
3861 Moved function from here to gdbsupport/common-inferior.{h,cc}
3862
3863 2020-05-23 Tom Tromey <tom@tromey.com>
3864
3865 Revert commit eca1f90c:
3866 * NEWS: Remove entry for completion styling.
3867 * completer.c (_rl_completion_prefix_display_length): Move
3868 declaration later.
3869 (gdb_fnprint): Revert.
3870 (gdb_display_match_list_1): Likewise.
3871 * cli/cli-style.c (completion_prefix_style)
3872 (completion_difference_style, completion_suffix_style): Remove.
3873 (_initialize_cli_style): Revert.
3874 * cli/cli-style.h (completion_prefix_style)
3875 (completion_difference_style, completion_suffix_style): Don't
3876 declare.
3877
3878 2020-05-24 Pedro Alves <palves@redhat.com>
3879
3880 * symtab.c (completion_list_add_name): Return boolean indication
3881 of whether the symbol matched.
3882 (completion_list_add_symbol): Don't try to remove C++ aliases if
3883 the symbol didn't match in the first place.
3884 * symtab.h (completion_list_add_name): Return bool.
3885
3886 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3887
3888 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3889 type::field.
3890
3891 2020-05-23 Joel Brobecker <brobecker@adacore.com>
3892
3893 GDB 9.2 released.
3894
3895 2020-05-23 Tom Tromey <tom@tromey.com>
3896
3897 * NEWS: Add entry for completion styling.
3898 * completer.c (_rl_completion_prefix_display_length): Move
3899 declaration earlier.
3900 (gdb_fnprint): Use completion_style.
3901 (gdb_display_match_list_1): Likewise.
3902 * cli/cli-style.c (completion_prefix_style)
3903 (completion_difference_style, completion_suffix_style): New
3904 globals.
3905 (_initialize_cli_style): Register new globals.
3906 * cli/cli-style.h (completion_prefix_style)
3907 (completion_difference_style, completion_suffix_style): Declare.
3908
3909 2020-05-23 Pedro Alves <palves@redhat.com>
3910
3911 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3912 (parse_escape): Use ISDIGIT instead of isdigit.
3913 (puts_debug): Use gdb_isprint instead of isprint.
3914 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3915 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3916 ISSPACE instead of isspace.
3917 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3918 instead of isspace.
3919 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3920 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3921 instead of isxdigit and ISDIGIT instead of isdigit.
3922
3923 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3924
3925 * gdbtypes.h (struct type) <field>: New method.
3926 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3927 or type::field.
3928
3929 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3930
3931 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3932 (TYPE_FIELDS): Use type::fields. Change all call sites that
3933 modify the propery to use type::set_fields instead.
3934
3935 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3936
3937 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3938 type::num_fields instead.
3939
3940 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3941
3942 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3943 methods.
3944 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3945 that modify the number of fields to use type::set_num_fields
3946 instead.
3947
3948 2020-05-22 Tom Tromey <tromey@adacore.com>
3949
3950 * compile/compile-object-load.h (munmap_list_free): Don't
3951 declare.
3952
3953 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3954
3955 * annotate.c (annotate_source_line): Update return type, add call
3956 to update current symtab and line.
3957 * annotate.h (annotate_source_line): Update return type, and
3958 extend header comment.
3959 * source.c (info_line_command): Check annotation_level before
3960 calling annotate_source_line.
3961 * stack.c (print_frame_info): If calling annotate_source_line
3962 returns true, then don't print any other source line information.
3963
3964 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3965
3966 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3967
3968 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3969
3970 * coffread.c (patch_type): Remove NULL check before xfree.
3971 * corefile.c (set_gnutarget): Likewise.
3972 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3973 * exec.c (build_section_table): Likewise.
3974 * remote.c (remote_target::pass_signals): Likewise.
3975 * utils.c (n_spaces): Likewise.
3976 * cli/cli-script.c (document_command): Likewise.
3977 * i386-windows-tdep.c (core_process_module_section): Likewise.
3978 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3979
3980 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
3981
3982 * symfile.c (reread_symbols): Clear objfile's section_offsets
3983 vector and section indices, re-compute them by calling
3984 sym_offsets.
3985
3986 2020-05-20 Tom Tromey <tromey@adacore.com>
3987
3988 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
3989 (desc_one_bound, desc_index_type): Compute field name.
3990
3991 2020-05-20 Tom de Vries <tdevries@suse.de>
3992
3993 PR symtab/25833
3994 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3995
3996 2020-05-20 Alan Modra <amodra@gmail.com>
3997
3998 PR 25993
3999 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4000 bfd_set_filename.
4001 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4002 passed to bfd_set_filename.
4003 * symfile-mem.c (add_vsyscall_page): Likewise for string
4004 passed to symbol_file_add_from_memory.
4005 (symbol_file_add_from_memory): Make name param a const char* and
4006 don't strdup.
4007
4008 2020-05-20 Alan Modra <amodra@gmail.com>
4009
4010 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4011 rather than accessing bfd->filename directly.
4012 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4013 and use bfd_section_name.
4014 * dwarf2/frame.c (decode_frame_entry): Likewise.
4015 * exec.c (exec_set_section_address): Likewise.
4016 * solib-aix.c (solib_aix_bfd_open): Likewise.
4017 * stap-probe.c (get_stap_base_address): Likewise.
4018 * symfile.c (reread_symbols): Likewise.
4019
4020 2020-05-19 Tom Tromey <tromey@adacore.com>
4021
4022 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4023
4024 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4025
4026 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4027
4028 2020-05-19 Pedro Alves <palves@redhat.com>
4029
4030 * NEWS (set exec-file-mismatch): Adjust entry.
4031 * exec.c: Include "build-id.h".
4032 (validate_exec_file): Try to match build IDs instead of filenames.
4033 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4034 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4035 and pass down 'warn_if_slow'.
4036 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4037 gdb_bfd_open_closure to pass it down.
4038 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4039
4040 2020-05-19 Pedro Alves <palves@redhat.com>
4041
4042 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4043 * target.c (target_fileio_open_1): Rename to target_fileio_open
4044 and make extern. Use bool.
4045 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4046 (target_fileio_read_alloc_1): Adjust.
4047 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4048 (target_fileio_open_warn_if_slow): Delete declaration.
4049
4050 2020-05-19 Pedro Alves <palves@redhat.com>
4051
4052 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4053 Adjust all callers.
4054
4055 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4056
4057 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4058 whether disp is negative.
4059
4060 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4061
4062 * symfile.h (struct symfile_segment_data)
4063 <~symfile_segment_data>: Remove.
4064 <segment_info>: Change to std::vector.
4065 * symfile.c (default_symfile_segments): Update.
4066 * elfread.c (elf_symfile_segments): Update.
4067
4068 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4069
4070 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4071 <segments>: New.
4072 <segment_bases, segment_sizes>: Remove.
4073 * symfile.c (default_symfile_segments): Update.
4074 * elfread.c (elf_symfile_segments): Update.
4075 * remote.c (remote_target::get_offsets): Update.
4076 * solib-target.c (solib_target_relocate_section_addresses):
4077 Update.
4078
4079 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4080
4081 * symfile.h (struct symfile_segment_data): Initialize fields.
4082 <~symfile_segment_data>: Add.
4083 (symfile_segment_data_up): New.
4084 (struct sym_fns) <sym_segments>: Return a
4085 symfile_segment_data_up.
4086 (default_symfile_segments): Return a symfile_segment_data_up.
4087 (free_symfile_segment_data): Remove.
4088 (get_symfile_segment_data): Return a symfile_segment_data_up.
4089 * symfile.c (default_symfile_segments): Likewise.
4090 (get_symfile_segment_data): Likewise.
4091 (free_symfile_segment_data): Remove.
4092 (symfile_find_segment_sections): Update.
4093 * elfread.c (elf_symfile_segments): Return a
4094 symfile_segment_data_up.
4095 * remote.c (remote_target::get_offsets): Update.
4096 * solib-target.c (solib_target_relocate_section_addresses):
4097 Update.
4098 * symfile-debug.c (debug_sym_segments): Return a
4099 symfile_segment_data_up.
4100
4101 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4102
4103 PR build/25981
4104 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4105 Hardcode register numbers.
4106
4107 PR build/25981
4108 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4109 procfs_find_LDT_entry): Remove.
4110 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4111 procfs_find_LDT_entry): Remove.
4112 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4113 Remove.
4114
4115 2020-05-17 Pedro Alves <palves@redhat.com>
4116 Andrew Burgess <andrew.burgess@embecosm.com>
4117 Keno Fischer <keno@juliacomputing.com>
4118
4119 PR gdb/25741
4120 * breakpoint.c (build_target_condition_list): Update comments.
4121 (build_target_command_list): Update comments and skip matching
4122 locations.
4123 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4124 a separate function. Simplify "set breakpoint auto-hw off"
4125 handling.
4126 (insert_breakpoints): Update comment.
4127 (tracepoint_locations_match): New parameter. For breakpoints,
4128 compare location types too, if the caller wants to.
4129 (handle_automatic_hardware_breakpoints): New functions.
4130 (bp_location_is_less_than): Also sort by location type and
4131 hardware breakpoint length.
4132 (update_global_location_list): Handle "set breakpoint auto-hw on"
4133 here.
4134 (update_breakpoint_locations): Ask breakpoint_locations_match to
4135 ignore location types.
4136
4137 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4138
4139 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4140 type::name instead.
4141
4142 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4143
4144 * gdbtypes.h (struct type) <name, set_name>: New methods.
4145 (TYPE_CODE): Use type::name. Change all call sites used to set
4146 the name to use type::set_name instead.
4147
4148 2020-05-16 Tom Tromey <tom@tromey.com>
4149
4150 * top.c (quit_force): Update.
4151 * infrun.c (handle_no_resumed): Update.
4152 * top.h (all_uis): New function.
4153 (ALL_UIS): Remove.
4154
4155 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4156
4157 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4158
4159 2020-05-16 Pedro Alves <palves@redhat.com>
4160
4161 * ia64-linux-nat.c
4162 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4163 Declare method.
4164 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4165
4166 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4167
4168 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4169 (sparc64_adi_info): Likewise.
4170
4171 2020-05-15 Tom Tromey <tom@tromey.com>
4172
4173 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4174 block_objfile.
4175 (lookup_objfile_from_block): Remove.
4176 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4177 (lookup_global_symbol): Use block_objfile.
4178 * symtab.h (lookup_objfile_from_block): Don't declare.
4179 * printcmd.c (clear_dangling_display_expressions): Use
4180 block_objfile.
4181 * parse.c (operator_check_standard): Use block_objfile.
4182
4183 2020-05-15 Tom Tromey <tom@tromey.com>
4184
4185 * language.c (language_alloc_type_symbol): Set
4186 SYMBOL_SECTION.
4187 * symtab.c (initialize_objfile_symbol): Remove.
4188 (allocate_symbol): Remove.
4189 (allocate_template_symbol): Remove.
4190 * dwarf2/read.c (fixup_go_packaging): Use "new".
4191 (new_symbol): Use "new".
4192 (read_variable): Don't call initialize_objfile_symbol. Use
4193 "new".
4194 (read_func_scope): Use "new".
4195 * xcoffread.c (process_xcoff_symbol): Don't call
4196 initialize_objfile_symbol.
4197 (SYMBOL_DUP): Remove.
4198 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4199 "new".
4200 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4201 (allocate_template_symbol): Don't declare.
4202 (struct symbol): Add copy constructor. Change defaults.
4203 * jit.c (finalize_symtab): Use "new".
4204 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4205 Use "new".
4206 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4207 (common_block_end): Use "new".
4208 * mdebugread.c (parse_symbol): Use "new".
4209 (new_symbol): Likewise.
4210
4211 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4212
4213 * NEWS: Mention changes to help and apropos.
4214
4215 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4216
4217 * command.h (enum command_class): Improve comments, document
4218 that class_alias is for user-defined aliases, give the class
4219 name for each class, remove unused class_xdb.
4220 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4221 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4222 by a precise class.
4223 * infcmd.c (_initialize_infcmd): Likewise.
4224 * reverse.c (_initialize_reverse): Likewise.
4225 * stack.c (_initialize_stack): Likewise.
4226 * symfile.c (_initialize_symfile): Likewise.
4227 * tracepoint.c (_initialize_tracepoint): Likewise.
4228
4229 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4230
4231 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4232 when their aliased command is traversed.
4233 (help_cmd): Add fput_command_names_styled call to
4234 output command name and aliases when command has an alias.
4235
4236 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4237
4238 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4239 * cli/cli-decode.c (help_cmd_list): Declare as static,
4240 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4241 a command together with the command.
4242 (fput_command_name_styled, fput_command_names_styled): New functions.
4243 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4244 fput_command_name_styled.
4245 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4246 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4247
4248 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4249
4250 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4251 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4252 * command.h (cmd_show_list): Likewise.
4253 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4254 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4255
4256 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4257
4258 * unittests/command-def-selftests.c (traverse_command_structure):
4259 Verify all commands of a list have the same prefix command and
4260 that only the top cmdlist commands have a null prefix.
4261
4262 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4263
4264 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4265 as prefix, not one of its aliases.
4266 (set_cmd_prefix): Remove.
4267 (do_add_cmd): Centralize the setting of the prefix of a command, when
4268 command is defined after its full chain of prefix commands.
4269 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4270 (add_setshow_cmd_full): Likewise.
4271 (update_prefix_field_of_prefixed_commands): New function.
4272 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4273 update_prefix_field_of_prefixed_commands.
4274 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4275 addresses of remote_set_cmdlist and remote_show_cmdlist given
4276 as argument, not the address of an argument.
4277 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4278 * gdb/remote.c (_initialize_remote): Likewise.
4279
4280 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4281
4282 * cli/cli-cmds.c (alias_command): Check for an existing alias
4283 using lookup_cmd_composition, as valid_command_p is too strict
4284 and forbids aliases that are the prefix of an existing alias
4285 or command.
4286 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4287 command is properly recognised as a valid command.
4288
4289 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4290
4291 * unittests/help-doc-selftests.c: Rename to
4292 unittests/command-def-selftests.c
4293 * unittests/command-def-selftests.c (help_doc_tests): Update some
4294 comments.
4295 (command_structure_tests, traverse_command_structure): New namespace
4296 and function.
4297 (command_structure_invariants_tests): New function.
4298 (_initialize_command_def_selftests) Renamed from
4299 _initialize_help_doc_selftests, register command_structure_invariants
4300 selftest.
4301
4302 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4303
4304 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4305 an alias of 'show'.
4306
4307 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4308
4309 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4310 ada_is_fixed_point_type. Update all callers.
4311 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4312 all callers.
4313 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4314 Update all callers.
4315 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4316 print_fixed_point_type. Update all callers.
4317 * ada-valprint.c (ada_value_print_num): Replace call to
4318 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4319
4320 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4321
4322 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4323 processors.
4324 (cpu_supports_bts): Add CV_AMD case.
4325
4326 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4327 Simon Marchi <simon.marchi@efficios.com>
4328
4329 * infrun.c (stop_all_threads): Collect multiple wait events at
4330 each pass.
4331
4332 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4333
4334 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4335 type::code instead.
4336
4337 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4338
4339 * gdbtypes.h (struct type) <code, set_code>: New methods.
4340 (TYPE_CODE): Use type::code. Change all call sites used to set
4341 the code to use type::set_code instead.
4342
4343 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4344 Tom de Vries <tdevries@suse.de>
4345 Pedro Alves <palves@redhat.com>
4346
4347 PR threads/25478
4348 * infrun.c (stop_all_threads): Do NOT ignore
4349 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4350 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4351 received.
4352 (handle_no_resumed): Remove code handling a live inferior with no
4353 threads.
4354 * remote.c (has_single_non_exited_thread): New.
4355 (remote_target::update_thread_list): Do not delete a thread if is
4356 the last thread of the process.
4357 * thread.c (thread_select): Call delete_exited_threads instead of
4358 prune_threads.
4359
4360 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4361
4362 * infrun.c (stop_all_threads): Enable/disable thread events of all
4363 targets. Move a debug message denoting the end of the function
4364 into the SCOPED_EXIT block.
4365
4366 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4367
4368 * process-stratum-target.h: Include <set>.
4369 (all_non_exited_process_targets, switch_to_target_no_thread): New
4370 function declarations.
4371 * process-stratum-target.c (all_non_exited_process_targets)
4372 (switch_to_target_no_thread): New function implementations.
4373
4374 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4375
4376 * infrun.c (handle_inferior_event): Extract out a piece of code
4377 into...
4378 (mark_non_executing_threads): ...this new function.
4379
4380 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4381
4382 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4383 use.
4384
4385 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4386
4387 * regcache.c (regcache_read_pc_protected): New function
4388 implementation that returns 0 if the PC cannot read via
4389 'regcache_read_pc'.
4390 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4391 instead of 'regcache_read_pc'.
4392 (keep_going_pass_signal): Ditto.
4393
4394 2020-05-13 Tom Tromey <tromey@adacore.com>
4395
4396 * ada-lang.c (align_value): Remove.
4397 (ada_template_to_fixed_record_type_1): Use align_up.
4398
4399 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4400
4401 * async-event.c: Update the copyright year.
4402 * async-event.h: Update the copyright year.
4403
4404 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4405
4406 * objfiles.h (is_addr_in_objfile,
4407 shared_objfile_contains_address_p): Return bool.
4408 * objfile.c (is_addr_in_objfile,
4409 shared_objfile_contains_address_p): Return bool.
4410
4411 2020-05-11 Tom Tromey <tromey@adacore.com>
4412
4413 * cli/cli-cmds.c (info_command): Restore.
4414 (_initialize_cli_cmds): Use add_prefix_command for "info".
4415 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4416
4417 2020-05-11 Tom Tromey <tromey@adacore.com>
4418
4419 * ada-lang.c (ada_value_primitive_field): Now public.
4420 * ada-lang.h (ada_value_primitive_field): Declare.
4421 * ada-valprint.c (print_field_values): Use
4422 ada_value_primitive_field for wrapper fields.
4423
4424 2020-05-11 Tom de Vries <tdevries@suse.de>
4425
4426 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4427 MODULE_DOMAIN.
4428
4429 2020-05-11 Tom de Vries <tdevries@suse.de>
4430
4431 PR symtab/25941
4432 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4433 with length 0, if not gdb-produced.
4434 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4435
4436 2020-05-09 Tom de Vries <tdevries@suse.de>
4437
4438 PR gdb/25955
4439 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4440 calculation.
4441
4442 2020-05-09 Tom Tromey <tom@tromey.com>
4443
4444 * top.c (server_command): Now bool.
4445 * top.h (server_command): Now bool.
4446
4447 2020-05-08 Tom Tromey <tromey@adacore.com>
4448
4449 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4450 already being processed.
4451
4452 2020-05-08 Tom Tromey <tom@tromey.com>
4453
4454 * printcmd.c (struct display) <next>: Remove.
4455 <display>: New constructor.
4456 <exp_string>: Now a std::string.
4457 <enabled_p>: Now a bool.
4458 (display_number): Move definition earlier.
4459 (displays): Rename from display_chain. Now a std::vector.
4460 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4461 (display_command): Update.
4462 (do_one_display, disable_display)
4463 (enable_disable_display_command, do_enable_disable_display):
4464 Update.
4465 (free_display): Remove.
4466 (clear_displays): Rewrite.
4467 (delete_display): Update.
4468 (map_display_numbers): Use function_view. Remove "data"
4469 parameter. Update.
4470 (do_delete_display): Remove.
4471 (undisplay_command): Update.
4472 (do_one_display, do_displays, disable_display)
4473 (info_display_command): Update.
4474 (do_enable_disable_display): Remove.
4475 (enable_disable_display_command)
4476 (clear_dangling_display_expressions): Update.
4477
4478 2020-05-08 Tom Tromey <tom@tromey.com>
4479
4480 * symtab.c (set_symbol_cache_size)
4481 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4482 (maintenance_print_symbol_cache_statistics): Update.
4483 * symmisc.c (print_symbol_bcache_statistics)
4484 (print_objfile_statistics, maintenance_print_objfiles)
4485 (maintenance_info_symtabs, maintenance_check_symtabs)
4486 (maintenance_expand_symtabs, maintenance_info_line_tables):
4487 Update.
4488 * symfile-debug.c (set_debug_symfile): Update.
4489 * source.c (forget_cached_source_info): Update.
4490 * python/python.c (gdbpy_progspaces): Update.
4491 * psymtab.c (maintenance_info_psymtabs): Update.
4492 * probe.c (parse_probes): Update.
4493 * linespec.c (iterate_over_all_matching_symtabs)
4494 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4495 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4496 * exec.c (exec_target::close): Update.
4497 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4498 * breakpoint.c (print_one_breakpoint_location)
4499 (create_longjmp_master_breakpoint)
4500 (create_std_terminate_master_breakpoint): Update.
4501 * progspace.c (program_spaces): Now a std::vector.
4502 (maybe_new_address_space): Update.
4503 (add_program_space): Remove.
4504 (program_space::program_space): Update.
4505 (remove_program_space): Update.
4506 (number_of_program_spaces): Remove.
4507 (print_program_space, update_address_spaces): Update.
4508 * progspace.h (program_spaces): Change type.
4509 (ALL_PSPACES): Remove.
4510 (number_of_program_spaces): Don't declare.
4511 (struct program_space) <next>: Remove.
4512
4513 2020-05-08 Tom Tromey <tom@tromey.com>
4514
4515 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4516 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4517 (enable_break): Update.
4518 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4519 (frv_fdpic_find_canonical_descriptor): Update.
4520 (frv_fetch_objfile_link_map): Update.
4521 * progspace.c (program_space::free_all_objfiles): Update.
4522 (program_space::solibs): New method.
4523 * progspace.h (struct program_space) <solibs>: New method.
4524 * solist.h (master_so_list): Don't declare.
4525 (ALL_SO_LIBS): Remove.
4526 * solib.h (so_list_head): Remove.
4527 (update_solib_list): Update comment.
4528 * solib.c (master_so_list): Remove.
4529 (solib_used, update_solib_list, solib_add)
4530 (info_sharedlibrary_command, clear_solib)
4531 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4532
4533 2020-05-08 Tom Tromey <tom@tromey.com>
4534
4535 * extension.c (extension_languages): Now a std::array.
4536 (ALL_EXTENSION_LANGUAGES): Remove.
4537 (get_ext_lang_defn, get_ext_lang_of_file)
4538 (eval_ext_lang_from_control_command): Update.
4539 (finish_ext_lang_initialization)
4540 (auto_load_ext_lang_scripts_for_objfile)
4541 (ext_lang_type_printers::ext_lang_type_printers)
4542 (apply_ext_lang_type_printers)
4543 (ext_lang_type_printers::~ext_lang_type_printers)
4544 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4545 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4546 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4547 (get_matching_xmethod_workers, ext_lang_colorize)
4548 (ext_lang_before_prompt): Update.
4549 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4550
4551 2020-05-08 Tom Tromey <tom@tromey.com>
4552
4553 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4554 overload.
4555 <swap_string, m_string>: Remove.
4556 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4557 Update.
4558 * stabsread.c (define_symbol, read_type): Update.
4559 * linespec.c (find_linespec_symbols): Update.
4560 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4561 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4562 * dbxread.c (read_dbx_symtab): Update.
4563 * cp-support.h (cp_canonicalize_string_full)
4564 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4565 Return unique_xmalloc_ptr.
4566 * cp-support.c (inspect_type): Update.
4567 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4568 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4569 Likewise.
4570 * c-typeprint.c (print_name_maybe_canonical): Update.
4571 * break-catch-throw.c (check_status_exception_catchpoint):
4572 Update.
4573
4574 2020-05-08 Tom de Vries <tdevries@suse.de>
4575
4576 * infrun.c (follow_fork): Copy current_line and current_symtab to
4577 child thread.
4578
4579 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4580
4581 * async-event.c (struct async_signal_handler, struct
4582 async_event_handler): Reformat, remove typedef.
4583
4584 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4585
4586 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4587 access thistype->main_type->dyn_prop_list directly.
4588
4589 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4590
4591 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4592 (remove_dyn_prop): Remove. Update all users to use
4593 type::remove_dyn_prop.
4594 * gdbtypes.c (remove_dyn_prop): Rename to...
4595 (type::remove_dyn_prop): ... this.
4596
4597 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4598
4599 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4600 (add_dyn_prop): Remove. Update all users to use
4601 type::add_dyn_prop.
4602 * gdbtypes.c (add_dyn_prop): Rename to...
4603 (type::add_dyn_prop): ... this.
4604
4605 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4606
4607 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4608 (get_dyn_prop): Remove. Update all users to use
4609 type::dyn_prop.
4610 * gdbtypes.c (get_dyn_prop): Rename to...
4611 (type::dyn_prop): ... this.
4612
4613 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4614
4615 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4616
4617 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4618
4619 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4620 instruction, skip it if it's there.
4621
4622 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4623
4624 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4625
4626 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4627
4628 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4629 * gdbtypes.c (recursive_dump_type): Remove use of
4630 TYPE_INCOMPLETE.
4631
4632 2020-05-03 Tom Tromey <tom@tromey.com>
4633
4634 * breakpoint.c (catch_command, tcatch_command): Remove.
4635 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4636 add_show_prefix_cmd.
4637 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4638 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4639 Remove.
4640 (add_internal_problem_command): Use add_basic_prefix_cmd,
4641 add_show_prefix_cmd.
4642 * mips-tdep.c (set_mipsfpu_command): Remove.
4643 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4644 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4645 (_initialize_index_cache): Use add_basic_prefix_cmd.
4646 * memattr.c (dummy_cmd): Remove.
4647 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4648 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4649 (_initialize_tui_win): Use add_basic_prefix_cmd,
4650 add_show_prefix_cmd.
4651 * cli/cli-logging.c (set_logging_command): Remove.
4652 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4653 add_show_prefix_cmd.
4654 (show_logging_command): Remove.
4655 * target.c (target_command): Remove.
4656 (add_target): Use add_basic_prefix_cmd.
4657
4658 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4659
4660 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4661
4662 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4663
4664 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4665 info_command.
4666
4667 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4668
4669 * nbsd-nat.c (nbsd_enable_proc_events)
4670 (nbsd_nat_target::post_startup_inferior): Add.
4671 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4672 (nbsd_nat_target::update_thread_list): Rewrite.
4673 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4674 "PTRACE_LWP_CREATE".
4675 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4676
4677 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4678
4679 * stack.c (_initialize_stack): Remove duplicated creation
4680 of "frame" command and "f" alias.
4681
4682 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4683
4684 PR gdb/18706
4685 * gdbtypes.c (check_typedef): Calculate size of array of
4686 stubbed type.
4687
4688 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4689
4690 PR gdb/15559
4691 * i386-tdep.c (i386_push_dummy_call): Call
4692 i386_thiscall_push_dummy_call.
4693 (i386_thiscall_push_dummy_call): New function.
4694 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4695 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4696 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4697
4698 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4699
4700 * gdbarch.sh (do_read): Add shellcheck disable directive for
4701 warning SC2162.
4702
4703 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4704
4705 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4706 "referenced but not assigned" warning.
4707
4708 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4709
4710 * gdbarch.sh: Remove code that sets fallbackdefault.
4711
4712 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4713
4714 * gdbarch.sh: Use shell operators && and || instead of
4715 -a and -o.
4716
4717 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4718
4719 * gdbarch.sh: Use $(...) instead of `...`.
4720
4721 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4722
4723 * gdbarch.sh: Use double quotes around variables.
4724
4725 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4726
4727 * gdbarch.sh: Use %s with printf, instead of variables in the
4728 format string.
4729
4730 2020-04-29 Tom Tromey <tromey@adacore.com>
4731
4732 PR ada/25875:
4733 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4734 type fields here.
4735 (read_enumeration_type): Call
4736 update_enumeration_type_from_children later. Update comments.
4737 (process_enumeration_scope): Don't create type fields.
4738
4739 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4740
4741 * nbsd-tdep.c: Include "xml-syscall.h".
4742 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4743
4744 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4745
4746 * nbsd-nat.c: Include "sys/wait.h".
4747 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4748 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4749 (nbsd_nat_target::remove_exec_catchpoint)
4750 (nbsd_nat_target::set_syscall_catchpoint): Add.
4751 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4752 (nbsd_nat_target::insert_exec_catchpoint)
4753 (nbsd_nat_target::remove_exec_catchpoint)
4754 (nbsd_nat_target::set_syscall_catchpoint): Add.
4755 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4756 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4757 `nbsd_get_syscall_number'.
4758
4759 2020-04-29 Tom Tromey <tom@tromey.com>
4760
4761 * stack.c (print_block_frame_labels): Remove.
4762
4763 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4764
4765 PR gdb/17320
4766 * ada-valprint.c (val_print_packed_array_elements): Move array
4767 end bracket to new line.
4768 (ada_val_print_string): Remove extra spaces before first array
4769 element.
4770 * c-valprint.c (c_value_print_array): Likewise.
4771 * m2-valprint.c (m2_print_array_contents): Likewise.
4772 (m2_value_print_inner): Likewise.
4773 * p-valprint.c (pascal_value_print_inner): Likewise.
4774 * valprint.c (generic_val_print_array): Likewise.
4775 (value_print_array_elements): Move first array element and array
4776 end bracket to new line.
4777
4778 2020-04-29 Tom de Vries <tdevries@suse.de>
4779
4780 PR symtab/25889
4781 * linespec.c (find_method): Fix ix calculation.
4782
4783 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4784
4785 * syscalls/update-netbsd.sh: New file.
4786 * syscalls/netbsd.xml: Regenerate.
4787 * data-directory/Makefile.in: Register `netbsd.xml' in
4788 `SYSCALLS_FILES'.
4789
4790 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4791
4792 * syscalls/update-freebsd.sh: Add double quotes.
4793
4794 2020-04-28 Tom Tromey <tom@tromey.com>
4795
4796 * NEWS: Update.
4797 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4798 (cmdpy_init): Allow class_tui.
4799
4800 2020-04-28 Mark Williams <mark@myosotissp.com>
4801
4802 PR gdb/24480
4803 * dwarf2read.c: Add missing assingments to list_in_scope when
4804 start_symtab was already called.
4805
4806 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4807
4808 PR gdb/25881
4809 * dwarf2/read.c (offset_map_type): Use
4810 gdb:hash_enum<sect_offset> as hash function.
4811
4812 2020-04-28 Tom de Vries <tdevries@suse.de>
4813
4814 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4815 with DW_AT_signature.
4816
4817 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4818
4819 * configure.ac: Remove check for fs_base/gs_base in
4820 user_regs_struct.
4821 * configure: Re-generate.
4822 * config.in: Re-generate.
4823 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4824 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4825 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4826
4827 2020-04-27 Luis Machado <luis.machado@linaro.org>
4828
4829 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4830 problematic inline frame unwinding situation.
4831 * frame.c (frame_id_computed_p): New function.
4832 * frame.h (frame_id_computed_p): New prototype.
4833
4834 2020-04-26 Tom Tromey <tom@tromey.com>
4835
4836 * command.h (enum command_class) <class_pseudo>: Remove.
4837
4838 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4839
4840 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4841 and whitespace.
4842
4843 2020-04-25 Kamil Rytarowski <n54@gmx.com>
4844
4845 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4846 `PT_GET_PROCESS_STATE' block.
4847
4848 2020-04-24 Tom Tromey <tom@tromey.com>
4849
4850 * symtab.h (symbol_get_demangled_name): Don't declare.
4851 * symtab.c (symbol_get_demangled_name): Remove.
4852 (general_symbol_info::natural_name)
4853 (general_symbol_info::demangled_name): Update.
4854
4855 2020-04-24 Tom Tromey <tom@tromey.com>
4856
4857 PR rust/25025:
4858 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4859
4860 2020-04-24 Tom Tromey <tom@tromey.com>
4861
4862 PR symtab/12707:
4863 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4864 exists.
4865 (new_symbol): Likewise.
4866 * compile/compile-object-load.c (get_out_value_type): Use
4867 symbol_matches_search_name.
4868
4869 2020-04-24 Tom Tromey <tom@tromey.com>
4870
4871 * dwarf2/read.c (add_partial_symbol): Do not call
4872 compute_and_set_names.
4873
4874 2020-04-24 Tom Tromey <tom@tromey.com>
4875
4876 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4877 overload.
4878
4879 2020-04-24 Tom Tromey <tom@tromey.com>
4880
4881 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4882 (add_psymbol_to_list): New overload. Make old overload call new
4883 one.
4884 * psympriv.h (add_psymbol_to_list): New overload.
4885
4886 2020-04-24 Tom Tromey <tom@tromey.com>
4887
4888 * dwarf2/read.c (partial_die_info::read) <case
4889 DW_AT_linkage_name>: Use value_as_string.
4890 (dwarf2_string_attr): Use value_as_string.
4891 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4892 method.
4893 * dwarf2/attribute.c (attribute::value_as_string): New method.
4894
4895 2020-04-24 Tom Tromey <tom@tromey.com>
4896
4897 * symtab.c (general_symbol_info::natural_name)
4898 (general_symbol_info::demangled_name): Check for language_rust.
4899
4900 2020-04-24 Tom Tromey <tom@tromey.com>
4901
4902 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4903 (dwarf2_physname): ... from here.
4904 (partial_die_info::read): Add Rust "{" hack.
4905
4906 2020-04-24 Tom Tromey <tom@tromey.com>
4907
4908 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4909 method.
4910 (symbol_set_demangled_name): Don't declare.
4911 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4912 symbol_set_demangled_name.
4913 (general_symbol_info::set_language)
4914 (general_symbol_info::compute_and_set_names): Update.
4915 * minsyms.c (minimal_symbol_reader::install): Update.
4916 * dwarf2/read.c (new_symbol): Update.
4917
4918 2020-04-24 Tom Tromey <tromey@adacore.com>
4919
4920 PR python/23662:
4921 * python/py-type.c (convert_field): Handle
4922 FIELD_LOC_KIND_DWARF_BLOCK.
4923 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4924 (typy_get_dynamic): Nw function.
4925 (type_object_getset): Add "dynamic".
4926 * NEWS: Add entry.
4927
4928 2020-04-24 Tom Tromey <tromey@adacore.com>
4929
4930 * ada-typeprint.c (print_choices, print_variant_part)
4931 (print_record_field_types_dynamic): New functions.
4932 (print_record_field_types): Use print_record_field_types_dynamic.
4933
4934 2020-04-24 Tom Tromey <tromey@adacore.com>
4935
4936 * dwarf2/read.c (handle_data_member_location): New overload.
4937 (dwarf2_add_field): Use it.
4938 (decode_locdesc): Add "computed" parameter. Update comment.
4939 * gdbtypes.c (is_dynamic_type_internal): Also look for
4940 FIELD_LOC_KIND_DWARF_BLOCK.
4941 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4942 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4943 virtual base classes.
4944 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4945 FIELD_LOC_KIND_DWARF_BLOCK.
4946
4947 2020-04-24 Tom Tromey <tromey@adacore.com>
4948
4949 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4950 * gdbtypes.c (is_dynamic_type_internal): Check
4951 TYPE_HAS_DYNAMIC_LENGTH.
4952 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4953 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4954 New macros.
4955 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4956 constant.
4957
4958 2020-04-24 Tom Tromey <tromey@adacore.com>
4959
4960 * dwarf2/read.c (struct variant_field): Rewrite.
4961 (struct variant_part_builder): New.
4962 (struct nextfield): Remove "variant" field. Add "offset".
4963 (struct field_info): Add "current_variant_part" and
4964 "variant_parts".
4965 (alloc_discriminant_info): Remove.
4966 (alloc_rust_variant): New function.
4967 (quirk_rust_enum): Update.
4968 (dwarf2_add_field): Set "offset" member. Don't handle
4969 DW_TAG_variant_part.
4970 (offset_map_type): New typedef.
4971 (convert_variant_range, create_one_variant)
4972 (create_one_variant_part, create_variant_parts)
4973 (add_variant_property): New functions.
4974 (dwarf2_attach_fields_to_type): Call add_variant_property.
4975 (read_structure_type): Don't handle DW_TAG_variant_part.
4976 (handle_variant_part, handle_variant): New functions.
4977 (handle_struct_member_die): Use them.
4978 (process_structure_scope): Don't handle variant parts.
4979 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4980 (struct discriminant_info): Remove.
4981 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4982 (struct main_type) <flag_discriminated_union>: Remove.
4983 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4984 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4985 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4986 Update.
4987 * valops.c (value_union_variant): Remove.
4988 * value.h (value_union_variant): Don't declare.
4989
4990 2020-04-24 Tom Tromey <tromey@adacore.com>
4991
4992 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4993 (ada_value_primitive_packed_val): Update.
4994 * ada-valprint.c (ada_value_print_1): Update.
4995 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4996 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4997 just an address. Use evaluate_for_locexpr_baton.
4998 (dwarf2_evaluate_property): Update.
4999 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5000 array_view.
5001 * findvar.c (default_read_var_value): Update.
5002 * gdbtypes.c (compute_variant_fields_inner)
5003 (resolve_dynamic_type_internal): Update.
5004 (resolve_dynamic_type): Change type of valaddr parameter.
5005 * gdbtypes.h (resolve_dynamic_type): Update.
5006 * valarith.c (value_subscripted_rvalue): Update.
5007 * value.c (value_from_contents_and_address): Update.
5008
5009 2020-04-24 Tom Tromey <tromey@adacore.com>
5010
5011 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5012 "push_initial_value" parameter.
5013 (dwarf2_evaluate_property): Likewise.
5014 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5015
5016 2020-04-24 Tom Tromey <tromey@adacore.com>
5017
5018 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5019 (variant::matches, compute_variant_fields_recurse)
5020 (compute_variant_fields_inner, compute_variant_fields): New
5021 functions.
5022 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5023 Use resolved_type after type is made.
5024 (operator==): Add new cases.
5025 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5026 (struct discriminant_range, struct variant, struct variant_part):
5027 New.
5028 (union dynamic_prop_data) <variant_parts, original_type>: New
5029 members.
5030 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5031 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5032 constants.
5033 * value.c (unpack_bits_as_long): Now public.
5034 * value.h (unpack_bits_as_long): Declare.
5035
5036 2020-04-24 Tom Tromey <tromey@adacore.com>
5037
5038 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5039 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5040
5041 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5042
5043 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5044
5045 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5046
5047 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5048 (remove_fork_catchpoint, post_startup_inferior)
5049 (post_attach): Move...
5050 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5051 (remove_fork_catchpoint, post_startup_inferior)
5052 (post_attach): ...here.
5053 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5054 (remove_fork_catchpoint, post_startup_inferior)
5055 (post_attach): Move...
5056 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5057 (remove_fork_catchpoint, post_startup_inferior)
5058 (post_attach): ...here.
5059
5060 2020-04-24 Tom Tromey <tromey@adacore.com>
5061
5062 * nat/windows-nat.h (struct windows_thread_info)
5063 <pc_adjusted>: New member.
5064 * windows-nat.c (windows_fetch_one_register): Check
5065 pc_adjusted.
5066 (windows_nat_target::get_windows_debug_event)
5067 (windows_nat_target::wait): Set pc_adjusted.
5068
5069 2020-04-24 Tom de Vries <tdevries@suse.de>
5070
5071 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5072 Run gdb-add-index inside temp dir.
5073
5074 2020-04-23 Tom Tromey <tromey@adacore.com>
5075
5076 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5077 in loop.
5078
5079 2020-04-23 Luis Machado <luis.machado@linaro.org>
5080
5081 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5082 get_frame_register instead of gdbarch_unwind_pc.
5083
5084 2020-04-23 Tom de Vries <tdevries@suse.de>
5085
5086 * symtab.c (lookup_global_symbol): Prefer def over decl.
5087
5088 2020-04-23 Tom de Vries <tdevries@suse.de>
5089
5090 PR symtab/25807
5091 * block.c (best_symbol, better_symbol): Promote to external.
5092 * block.h (best_symbol, better_symbol): Declare.
5093 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5094 decl.
5095
5096 2020-04-23 Tom Tromey <tromey@adacore.com>
5097
5098 PR ada/25837:
5099 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5100 "const char *", not a "const std::string &".
5101 <name_and_matcher::operator==>: Update.
5102 * unittests/lookup_name_info-selftests.c: Change type of
5103 "result".
5104
5105 2020-04-23 Tom Tromey <tom@tromey.com>
5106
5107 * inferior.h (iterate_over_inferiors): Don't declare.
5108 * inferior.c (iterate_over_inferiors): Remove.
5109 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5110 Remove.
5111 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5112 use iterate_over_inferiors.
5113 (darwin_resume_inferior_it)
5114 (struct resume_inferior_threads_param)
5115 (darwin_resume_inferior_threads_it): Remove.
5116 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5117
5118 2020-04-23 Tom de Vries <tdevries@suse.de>
5119
5120 * blockframe.c (find_pc_partial_function): Use
5121 find_pc_sect_compunit_symtab rather than
5122 objfile->sf->qf->find_pc_sect_compunit_symtab.
5123
5124 2020-04-22 Tom de Vries <tdevries@suse.de>
5125
5126 PR symtab/25764
5127 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5128 in psymtabs.
5129
5130 2020-04-22 Tom de Vries <tdevries@suse.de>
5131
5132 PR symtab/25801
5133 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5134 symtabs.
5135
5136 2020-04-22 Tom de Vries <tdevries@suse.de>
5137
5138 PR symtab/25700
5139 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5140 CU if already created.
5141
5142 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5143
5144 * infrun.c (displaced_step_fixup): Switch to the event_thread
5145 before calling displaced_step_restore, not after.
5146
5147 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5148
5149 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5150 its inferior is not recorded by us.
5151 (record_btrace_target_open): Replace call to
5152 all_non_exited_threads () with call to current_inferior
5153 ()->non_exited_threads ().
5154 (record_btrace_target::stop_recording): Likewise.
5155 (record_btrace_target::close): Likewise.
5156 (record_btrace_target::wait): Likewise.
5157 (record_btrace_target::record_stop_replaying): Likewise.
5158
5159 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5160
5161 * btrace.c (btrace_enable): Throw an error on double enables and
5162 when enabling recording fails.
5163 (btrace_disable): Throw an error if the thread is not recorded.
5164
5165 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5166
5167 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5168 request if we do not have a thread_info.
5169
5170 2020-04-21 Tom de Vries <tdevries@suse.de>
5171
5172 PR gdb/25471
5173 * thread.c
5174 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5175 exception in get_frame_id.
5176
5177 2020-04-20 Tom Tromey <tromey@adacore.com>
5178
5179 * python/python.c (struct gdbpy_event): Mark move constructor as
5180 noexcept.
5181 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5182 constructor as noexcept.
5183 * completer.h (struct completion_result): Mark move constructor as
5184 noexcept.
5185 * completer.c (completion_result::completion_result): Use
5186 initialization style. Don't call reset_match_list.
5187
5188 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5189
5190 * MAINTAINERS (Write After Approval): Add myself.
5191
5192 2020-04-18 Tom Tromey <tom@tromey.com>
5193
5194 * windows-tdep.c (init_w32_command_list)
5195 (w32_prefix_command_valid): Restore.
5196 (_initialize_windows_tdep): Call init_w32_command_list.
5197
5198 2020-04-18 Tom Tromey <tom@tromey.com>
5199
5200 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5201 * value.c (value_fn_field): Update.
5202 * valops.c (find_function_in_inferior)
5203 (value_allocate_space_in_inferior): Update.
5204 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5205 Update.
5206 * tui/tui-source.c (tui_source_window::set_contents): Update.
5207 * symtab.c (lookup_global_or_static_symbol)
5208 (find_function_start_sal_1, skip_prologue_sal)
5209 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5210 * symmisc.c (dump_msymbols, dump_symtab_1)
5211 (maintenance_print_one_line_table): Update.
5212 * symfile.c (init_entry_point_info, section_is_mapped)
5213 (list_overlays_command, simple_read_overlay_table)
5214 (simple_overlay_update_1): Update.
5215 * stap-probe.c (handle_stap_probe): Update.
5216 * stabsread.c (dbx_init_float_type, define_symbol)
5217 (read_one_struct_field, read_enum_type, read_range_type): Update.
5218 * source.c (info_line_command): Update.
5219 * python/python.c (gdbpy_source_objfile_script)
5220 (gdbpy_execute_objfile_script): Update.
5221 * python/py-type.c (save_objfile_types): Update.
5222 * python/py-objfile.c (py_free_objfile): Update.
5223 * python/py-inferior.c (python_new_objfile): Update.
5224 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5225 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5226 (maintenance_check_psymtabs): Update.
5227 * printcmd.c (info_address_command): Update.
5228 * objfiles.h (struct objfile) <arch>: New method, from
5229 get_objfile_arch.
5230 (get_objfile_arch): Don't declare.
5231 * objfiles.c (get_objfile_arch): Remove.
5232 (filter_overlapping_sections): Update.
5233 * minsyms.c (msymbol_is_function): Update.
5234 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5235 (output_nondebug_symbol): Update.
5236 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5237 (mdebug_expand_psymtab): Update.
5238 * machoread.c (macho_add_oso_symfile): Update.
5239 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5240 Update.
5241 * linux-fork.c (checkpoint_command): Update.
5242 * linespec.c (convert_linespec_to_sals): Update.
5243 * jit.c (finalize_symtab): Update.
5244 * infrun.c (insert_exception_resume_from_probe): Update.
5245 * ia64-tdep.c (ia64_find_unwind_table): Update.
5246 * hppa-tdep.c (internalize_unwinds): Update.
5247 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5248 Update.
5249 * gcore.c (call_target_sbrk): Update.
5250 * elfread.c (record_minimal_symbol, elf_symtab_read)
5251 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5252 (elf_gnu_ifunc_resolve_by_got): Update.
5253 * dwarf2/read.c (create_addrmap_from_index)
5254 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5255 (read_debug_names_from_section)
5256 (process_psymtab_comp_unit_reader, add_partial_symbol)
5257 (add_partial_subprogram, process_full_comp_unit)
5258 (read_file_scope, read_func_scope, read_lexical_block_scope)
5259 (read_call_site_scope, dwarf2_ranges_read)
5260 (dwarf2_record_block_ranges, dwarf2_add_field)
5261 (mark_common_block_symbol_computed, read_tag_pointer_type)
5262 (read_tag_string_type, dwarf2_init_float_type)
5263 (dwarf2_init_complex_target_type, read_base_type)
5264 (partial_die_info::read, partial_die_info::read)
5265 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5266 (dwarf2_fetch_die_loc_sect_off): Update.
5267 * dwarf2/loc.c (dwarf2_find_location_expression)
5268 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5269 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5270 (dwarf2_loc_desc_get_symbol_read_needs)
5271 (locexpr_describe_location_piece, locexpr_describe_location_1)
5272 (loclist_describe_location): Update.
5273 * dwarf2/index-write.c (write_debug_names): Update.
5274 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5275 * dtrace-probe.c (dtrace_process_dof): Update.
5276 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5277 (process_one_symbol): Update.
5278 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5279 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5280 (coff_read_enum_type): Update.
5281 * cli/cli-cmds.c (edit_command, list_command): Update.
5282 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5283 * breakpoint.c (create_overlay_event_breakpoint)
5284 (create_longjmp_master_breakpoint)
5285 (create_std_terminate_master_breakpoint)
5286 (create_exception_master_breakpoint, get_sal_arch): Update.
5287 * block.c (block_gdbarch): Update.
5288 * annotate.c (annotate_source_line): Update.
5289
5290 2020-04-17 Tom Tromey <tromey@adacore.com>
5291
5292 * auto-load.c (show_auto_load_cmd): Remove.
5293 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5294 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5295 (maintenance_print_arc_command): Remove.
5296 * tui/tui-win.c (tui_command): Remove.
5297 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5298 * tui/tui-layout.c (tui_layout_command): Remove.
5299 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5300 * python/python.c (user_set_python, user_show_python): Remove.
5301 (_initialize_python): Use add_basic_prefix_cmd,
5302 add_show_prefix_cmd.
5303 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5304 (install_gdb_commands): Use add_basic_prefix_cmd,
5305 add_show_prefix_cmd.
5306 (info_guile_command): Remove.
5307 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5308 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5309 add_show_prefix_cmd.
5310 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5311 Remove do_set and do_show parameters.
5312 * cli/cli-style.c (set_style, show_style): Remove.
5313 (_initialize_cli_style): Use add_basic_prefix_cmd,
5314 add_show_prefix_cmd.
5315 (cli_style_option::add_setshow_commands): Remove do_set and
5316 do_show parameters.
5317 (cli_style_option::add_setshow_commands): Use
5318 add_basic_prefix_cmd, add_show_prefix_cmd.
5319 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5320 (set_style_name): Remove.
5321 * cli/cli-dump.c (dump_command, append_command): Remove.
5322 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5323 (tekhex_dump_command, binary_dump_command)
5324 (binary_append_command): Remove.
5325 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5326 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5327 (init_w32_command_list): Remove; move into ...
5328 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5329 * valprint.c (set_print, show_print, set_print_raw)
5330 (show_print_raw): Remove.
5331 (_initialize_valprint): Use add_basic_prefix_cmd,
5332 add_show_prefix_cmd.
5333 * typeprint.c (set_print_type, show_print_type): Remove.
5334 (_initialize_typeprint): Use add_basic_prefix_cmd,
5335 add_show_prefix_cmd.
5336 * record.c (set_record_command, show_record_command): Remove.
5337 (_initialize_record): Use add_basic_prefix_cmd,
5338 add_show_prefix_cmd.
5339 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5340 add_show_prefix_cmd.
5341 (info_command, show_command, set_debug, show_debug): Remove.
5342 * top.h (set_history, show_history): Don't declare.
5343 * top.c (set_history, show_history): Remove.
5344 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5345 (unset_tdesc_cmd): Remove.
5346 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5347 add_show_prefix_cmd.
5348 * symtab.c (info_module_command): Remove.
5349 (_initialize_symtab): Use add_basic_prefix_cmd.
5350 * symfile.c (overlay_command): Remove.
5351 (_initialize_symfile): Use add_basic_prefix_cmd.
5352 * sparc64-tdep.c (info_adi_command): Remove.
5353 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5354 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5355 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5356 add_show_prefix_cmd.
5357 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5358 (_initialize_serial): Use add_basic_prefix_cmd,
5359 add_show_prefix_cmd.
5360 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5361 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5362 add_show_prefix_cmd.
5363 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5364 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5365 add_show_prefix_cmd.
5366 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5367 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5368 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5369 add_show_prefix_cmd.
5370 * remote.c (remote_command, set_remote_cmd): Remove.
5371 (_initialize_remote): Use add_basic_prefix_cmd.
5372 * record-full.c (set_record_full_command)
5373 (show_record_full_command): Remove.
5374 (_initialize_record_full): Use add_basic_prefix_cmd,
5375 add_show_prefix_cmd.
5376 * record-btrace.c (cmd_set_record_btrace)
5377 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5378 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5379 (cmd_show_record_btrace_pt): Remove.
5380 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5381 add_show_prefix_cmd.
5382 * ravenscar-thread.c (set_ravenscar_command)
5383 (show_ravenscar_command): Remove.
5384 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5385 add_show_prefix_cmd.
5386 * mips-tdep.c (show_mips_command, set_mips_command)
5387 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5388 add_show_prefix_cmd.
5389 * maint.c (maintenance_command, maintenance_info_command)
5390 (maintenance_check_command, maintenance_print_command)
5391 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5392 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5393 add_show_prefix_cmd.
5394 (show_per_command_cmd): Remove.
5395 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5396 Remove.
5397 (maintenance_show_test_settings_cmd): Remove.
5398 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5399 add_show_prefix_cmd.
5400 * maint-test-options.c (maintenance_test_options_command):
5401 Remove.
5402 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5403 * macrocmd.c (macro_command): Remove
5404 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5405 * language.c (set_check, show_check): Remove.
5406 (_initialize_language): Use add_basic_prefix_cmd,
5407 add_show_prefix_cmd.
5408 * infcmd.c (unset_command): Remove.
5409 (_initialize_infcmd): Use add_basic_prefix_cmd.
5410 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5411 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5412 add_show_prefix_cmd.
5413 * go32-nat.c (go32_info_dos_command): Remove.
5414 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5415 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5416 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5417 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5418 (_initialize_frame): Use add_basic_prefix_cmd,
5419 add_show_prefix_cmd.
5420 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5421 (_initialize_dcache): Use add_basic_prefix_cmd,
5422 add_show_prefix_cmd.
5423 * cp-support.c (maint_cplus_command): Remove.
5424 (_initialize_cp_support): Use add_basic_prefix_cmd.
5425 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5426 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5427 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5428 add_basic_prefix_cmd, add_show_prefix_cmd.
5429 * breakpoint.c (save_command): Remove.
5430 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5431 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5432 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5433 add_show_prefix_cmd.
5434 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5435 (set_ada_command, show_ada_command): Remove.
5436 (_initialize_ada_language): Use add_basic_prefix_cmd,
5437 add_show_prefix_cmd.
5438 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5439
5440 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5441
5442 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5443 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5444
5445 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5446
5447 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5448 warning messages.
5449
5450 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5451
5452 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5453 import table is not at beginning of .idata section.
5454
5455 2020-04-16 Pedro Alves <palves@redhat.com>
5456
5457 * inferior.c (delete_inferior): Use delete operator directly
5458 instead of delete_program_space.
5459 * progspace.c (add_program_space): New, factored out from
5460 program_space::program_space.
5461 (remove_program_space): New, factored out from
5462 delete_program_space.
5463 (program_space::program_space): Remove intro comment. Rewrite.
5464 (program_space::~program_space): Remove intro comment. Call
5465 remove_program_space.
5466 (delete_program_space): Delete.
5467 * progspace.h (program_space::program_space): Make explicit. Move
5468 intro comment here, adjusted.
5469 (program_space::~program_space): Move intro comment here,
5470 adjusted.
5471 (delete_program_space): Remove.
5472
5473 2020-04-16 Tom Tromey <tromey@adacore.com>
5474
5475 * windows-nat.c (windows_nat::handle_access_violation): New
5476 function.
5477 * nat/windows-nat.h (handle_access_violation): Declare.
5478 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5479 windows-nat.c. Call handle_access_violation.
5480
5481 2020-04-16 Tom de Vries <tdevries@suse.de>
5482
5483 PR symtab/25791
5484 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5485 CUs without psymtab.
5486
5487 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5488
5489 * python/python.c (do_start_initialization): Don't call
5490 PyEval_InitThreads for Python 3.9 and beyond.
5491
5492 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5493
5494 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5495 thread functions.
5496 (obsd_nat_target::wait): Likewise.
5497
5498 2020-04-15 Tom Tromey <tromey@adacore.com>
5499
5500 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5501 (DEBUG_EXCEPT): Use debug_printf.
5502
5503 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5504
5505 * completer.c (class completion_tracker::completion_hash_entry)
5506 <hash_name>: New member function.
5507 (completion_tracker::discard_completions): New callback to hash a
5508 completion_hash_entry, pass this to htab_create_alloc.
5509
5510 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5511
5512 * windows-nat.c (windows_make_so): Warn rather than stopping with
5513 an error if realpath() fails.
5514
5515 2020-04-14 Kamil Rytarowski <n54@gmx.com>
5516
5517 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5518 (nbsd_nat_target::info_proc): Add do_status.
5519
5520 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5521 Tom de Vries <tdevries@suse.de>
5522
5523 PR symtab/25718
5524 * psympriv.h (struct partial_symtab::read_symtab)
5525 (struct partial_symtab::expand_psymtab)
5526 (struct partial_symtab::read_dependencies): Update comments.
5527 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5528 read_symtab for includer.
5529 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5530 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5531 (struct dwarf2_include_psymtab::m_readin): Remove.
5532 (struct dwarf2_include_psymtab::includer): New member function.
5533 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5534
5535 2020-04-14 Tom de Vries <tdevries@suse.de>
5536
5537 PR symtab/25720
5538 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5539 with NULL symbol_matcher and lookup_name.
5540 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5541 and lookup_name.
5542 * dwarf2/read.c (dw2_expand_symtabs_matching)
5543 (dw2_debug_names_expand_symtabs_matching): Same.
5544 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5545 Make lookup_name a pointer. Update comment.
5546 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5547 lookup_name being a pointer.
5548 * symfile.c (expand_symtabs_matching): Same.
5549 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5550 * linespec.c (iterate_over_all_matching_symtabs): Same.
5551
5552 2020-04-13 Tom Tromey <tom@tromey.com>
5553
5554 * run-on-main-thread.c: Update include.
5555 * unittests/main-thread-selftests.c: Update include.
5556 * tui/tui-win.c: Update include.
5557 * tui/tui-io.c: Update include.
5558 * tui/tui-interp.c: Update include.
5559 * tui/tui-hooks.c: Update include.
5560 * top.h: Update include.
5561 * top.c: Update include.
5562 * ser-base.c: Update include.
5563 * remote.c: Update include.
5564 * remote-notif.c: Update include.
5565 * remote-fileio.c: Update include.
5566 * record-full.c: Update include.
5567 * record-btrace.c: Update include.
5568 * python/python.c: Update include.
5569 * posix-hdep.c: Update include.
5570 * mingw-hdep.c: Update include.
5571 * mi/mi-main.c: Update include.
5572 * mi/mi-interp.c: Update include.
5573 * main.c: Update include.
5574 * linux-nat.c: Update include.
5575 * interps.c: Update include.
5576 * infrun.c: Update include.
5577 * inf-loop.c: Update include.
5578 * event-top.c: Update include.
5579 * event-loop.c: Move to ../gdbsupport/.
5580 * event-loop.h: Move to ../gdbsupport/.
5581 * async-event.h: Update include.
5582 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5583
5584 2020-04-13 Tom Tromey <tom@tromey.com>
5585
5586 * tui/tui-win.c: Include async-event.h.
5587 * remote.c: Include async-event.h.
5588 * remote-notif.c: Include async-event.h.
5589 * record-full.c: Include async-event.h.
5590 * record-btrace.c: Include async-event.h.
5591 * infrun.c: Include async-event.h.
5592 * event-top.c: Include async-event.h.
5593 * event-loop.h: Move some declarations to async-event.h.
5594 * event-loop.c: Don't include ser-event.h or top.h. Move some
5595 code to async-event.c.
5596 * async-event.h: New file.
5597 * async-event.c: New file.
5598 * Makefile.in (COMMON_SFILES): Add async-event.c.
5599 (HFILES_NO_SRCDIR): Add async-event.h.
5600
5601 2020-04-13 Tom Tromey <tom@tromey.com>
5602
5603 * utils.c (flush_streams): New function.
5604 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5605
5606 2020-04-13 Tom Tromey <tom@tromey.com>
5607
5608 * event-loop.c (handle_file_event): Use warning, not
5609 printf_unfiltered.
5610
5611 2020-04-13 Tom Tromey <tom@tromey.com>
5612
5613 * event-loop.c: Include <chrono>.
5614
5615 2020-04-13 Tom Tromey <tom@tromey.com>
5616
5617 * gdb_select.h: Move to ../gdbsupport/.
5618 * event-loop.c: Update include path.
5619 * top.c: Update include path.
5620 * ser-base.c: Update include path.
5621 * ui-file.c: Update include path.
5622 * ser-tcp.c: Update include path.
5623 * guile/scm-ports.c: Update include path.
5624 * posix-hdep.c: Update include path.
5625 * ser-unix.c: Update include path.
5626 * gdb_usleep.c: Update include path.
5627 * mingw-hdep.c: Update include path.
5628 * inflow.c: Update include path.
5629 * infrun.c: Update include path.
5630 * event-top.c: Update include path.
5631
5632 2020-04-13 Tom Tromey <tom@tromey.com>
5633
5634 * configure: Rebuild.
5635 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5636
5637 2020-04-13 Tom Tromey <tom@tromey.com>
5638
5639 * event-loop.h (start_event_loop): Don't declare.
5640 * event-loop.c (start_event_loop): Move...
5641 * main.c (start_event_loop): ...here. Now static.
5642
5643 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5644
5645 * MAINTAINERS: Update my email address.
5646
5647 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5648
5649 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5650 IP_ALL.
5651
5652 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5653
5654 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5655 (nbsd_nat_target::info_proc): Add do_cmdline.
5656
5657 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5658
5659 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5660 (nbsd_nat_target::info_proc): Add do_cwd.
5661
5662 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5663
5664 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5665
5666 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5667
5668 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5669 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5670 (nbsd_nat_target::info_proc): New functions.
5671 * nbsd-nat.c (kinfo_get_vmmap): New function.
5672 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5673 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5674 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5675 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5676 functions.
5677 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5678 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5679 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5680 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5681 (KINFO_VME_FLAG_GROWS_DOWN): New.
5682
5683 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5684
5685 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5686 bit shift.
5687
5688 2020-04-10 Tom Tromey <tromey@adacore.com>
5689
5690 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5691
5692 2020-04-10 Tom Tromey <tromey@adacore.com>
5693
5694 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5695 separate debug files.
5696
5697 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5698
5699 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5700 Move to...
5701 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5702 ... here.
5703 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5704 Check for STATUS_WX86_BREAKPOINT.
5705 (windows_nat_target::wait): Same.
5706
5707 2020-04-10 Tom de Vries <tdevries@suse.de>
5708
5709 PR cli/25808
5710 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5711
5712 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5713
5714 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5715 (Write After Approval): Remove Tom de Vries.
5716
5717 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5718
5719 revert partially:
5720 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5721
5722 * buildsym.c (record_line): Fix undefined behavior and preserve
5723 lines at eof.
5724
5725 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5726
5727 * auxv.h (svr4_auxv_parse): New.
5728 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5729 and generic_auxv_parse.
5730 (svr4_auxv_parse): Add.
5731 * obsd-tdep.c: Include "auxv.h".
5732 (obsd_auxv_parse): Remove.
5733 (obsd_init_abi): Remove comment.
5734 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5735 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5736 * nbsd-tdep.c: Include "auxv.h".
5737 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5738
5739 2020-04-08 Tom Tromey <tromey@adacore.com>
5740
5741 * nat/windows-nat.h (last_wait_event): Don't declare.
5742 (wait_for_debug_event): Update comment.
5743 * nat/windows-nat.c (last_wait_event): Now static.
5744
5745 2020-04-08 Tom Tromey <tromey@adacore.com>
5746
5747 * windows-nat.c (wait_for_debug_event): Move to
5748 nat/windows-nat.c.
5749 * nat/windows-nat.h (wait_for_debug_event): Declare.
5750 * nat/windows-nat.c (wait_for_debug_event): Move from
5751 windows-nat.c. No longer static.
5752
5753 2020-04-08 Tom Tromey <tromey@adacore.com>
5754
5755 * windows-nat.c (get_windows_debug_event): Use
5756 fetch_pending_stop.
5757 * nat/windows-nat.h (fetch_pending_stop): Declare.
5758 * nat/windows-nat.c (fetch_pending_stop): New function.
5759
5760 2020-04-08 Tom Tromey <tromey@adacore.com>
5761
5762 * windows-nat.c (windows_continue): Use matching_pending_stop and
5763 continue_last_debug_event.
5764 * nat/windows-nat.h (matching_pending_stop)
5765 (continue_last_debug_event): Declare.
5766 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5767 (matching_pending_stop, continue_last_debug_event): New
5768 functions.
5769
5770 2020-04-08 Tom Tromey <tromey@adacore.com>
5771
5772 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5773 (handle_exception_result): Move to nat/windows-nat.h.
5774 (DEBUG_EXCEPTION_SIMPLE): Remove.
5775 (windows_nat::handle_ms_vc_exception): New function.
5776 (handle_exception): Move to nat/windows-nat.c.
5777 (get_windows_debug_event): Update.
5778 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5779 nat/windows-nat.c.
5780 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5781 (handle_exception_result): Move from windows-nat.c.
5782 (handle_exception): Declare.
5783 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5784 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5785 windows-nat.c.
5786
5787 2020-04-08 Tom Tromey <tromey@adacore.com>
5788
5789 * windows-nat.c (exception_count, event_count): Remove.
5790 (handle_exception, get_windows_debug_event)
5791 (do_initial_windows_stuff): Update.
5792
5793 2020-04-08 Tom Tromey <tromey@adacore.com>
5794
5795 * windows-nat.c (windows_nat::handle_load_dll)
5796 (windows_nat::handle_unload_dll): Rename. No longer static.
5797 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5798 Declare.
5799
5800 2020-04-08 Tom Tromey <tromey@adacore.com>
5801
5802 * complaints.h (stop_whining): Declare at top-level.
5803 (complaint): Don't declare stop_whining.
5804
5805 2020-04-08 Tom Tromey <tromey@adacore.com>
5806
5807 * windows-nat.c (windows_nat::handle_output_debug_string):
5808 Rename. No longer static.
5809 * nat/windows-nat.h (handle_output_debug_string): Declare.
5810
5811 2020-04-08 Tom Tromey <tromey@adacore.com>
5812
5813 * windows-nat.c (current_process_handle, current_process_id)
5814 (main_thread_id, last_sig, current_event, last_wait_event)
5815 (current_windows_thread, desired_stop_thread_id, pending_stops)
5816 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5817 (display_selectors, fake_create_process)
5818 (get_windows_debug_event): Update.
5819 * nat/windows-nat.h (current_process_handle, current_process_id)
5820 (main_thread_id, last_sig, current_event, last_wait_event)
5821 (current_windows_thread, desired_stop_thread_id, pending_stops)
5822 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5823 * nat/windows-nat.c (current_process_handle, current_process_id)
5824 (main_thread_id, last_sig, current_event, last_wait_event)
5825 (current_windows_thread, desired_stop_thread_id, pending_stops)
5826 (siginfo_er): New globals. Move from windows-nat.c.
5827
5828 2020-04-08 Tom Tromey <tromey@adacore.com>
5829
5830 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5831 (handle_load_dll): Update.
5832 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5833
5834 2020-04-08 Tom Tromey <tromey@adacore.com>
5835
5836 * windows-nat.c (enum thread_disposition_type): Move to
5837 nat/windows-nat.h.
5838 (windows_nat::thread_rec): Rename from thread_rec. No longer
5839 static.
5840 (windows_add_thread, windows_nat_target::fetch_registers)
5841 (windows_nat_target::store_registers, handle_exception)
5842 (windows_nat_target::resume, get_windows_debug_event)
5843 (windows_nat_target::get_tib_address)
5844 (windows_nat_target::thread_name)
5845 (windows_nat_target::thread_alive): Update.
5846 * nat/windows-nat.h (enum thread_disposition_type): Move from
5847 windows-nat.c.
5848 (thread_rec): Declare.
5849
5850 2020-04-08 Tom Tromey <tromey@adacore.com>
5851
5852 * windows-nat.c: Add "using namespace".
5853 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5854 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5855
5856 2020-04-08 Tom Tromey <tromey@adacore.com>
5857
5858 * nat/windows-nat.h (struct windows_thread_info): Declare
5859 destructor.
5860 * nat/windows-nat.c (~windows_thread_info): New.
5861
5862 2020-04-08 Tom Tromey <tromey@adacore.com>
5863
5864 PR gdb/22992
5865 * windows-nat.c (current_event): Update comment.
5866 (last_wait_event, desired_stop_thread_id): New globals.
5867 (struct pending_stop): New.
5868 (pending_stops): New global.
5869 (windows_nat_target) <stopped_by_sw_breakpoint>
5870 <supports_stopped_by_sw_breakpoint>: New methods.
5871 (windows_fetch_one_register): Add assertions. Adjust PC.
5872 (windows_continue): Handle pending stops. Suspend other threads
5873 when stepping. Use last_wait_event
5874 (wait_for_debug_event): New function.
5875 (get_windows_debug_event): Use wait_for_debug_event. Handle
5876 pending stops. Queue spurious stops.
5877 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5878 (windows_nat_target::kill): Use wait_for_debug_event.
5879 * nat/windows-nat.h (struct windows_thread_info)
5880 <stopped_at_software_breakpoint>: New field.
5881 * nat/windows-nat.c (windows_thread_info::resume): Clear
5882 stopped_at_software_breakpoint.
5883
5884 2020-04-08 Tom Tromey <tromey@adacore.com>
5885
5886 * windows-nat.c (enum thread_disposition_type): New.
5887 (thread_rec): Replace "get_context" parameter with "disposition";
5888 change type.
5889 (windows_add_thread, windows_nat_target::fetch_registers)
5890 (windows_nat_target::store_registers, handle_exception)
5891 (windows_nat_target::resume, get_windows_debug_event)
5892 (windows_nat_target::get_tib_address)
5893 (windows_nat_target::thread_name)
5894 (windows_nat_target::thread_alive): Update.
5895
5896 2020-04-08 Tom Tromey <tromey@adacore.com>
5897
5898 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5899 (windows_continue): Use windows_continue::resume.
5900 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5901 resume>: Declare new methods.
5902 * nat/windows-nat.c: New file.
5903 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5904
5905 2020-04-08 Tom Tromey <tromey@adacore.com>
5906
5907 * windows-nat.c (windows_add_thread, windows_delete_thread)
5908 (windows_nat_target::fetch_registers)
5909 (windows_nat_target::store_registers, fake_create_process)
5910 (windows_nat_target::resume, windows_nat_target::resume)
5911 (get_windows_debug_event, windows_nat_target::wait)
5912 (windows_nat_target::pid_to_str)
5913 (windows_nat_target::get_tib_address)
5914 (windows_nat_target::get_ada_task_ptid)
5915 (windows_nat_target::thread_name)
5916 (windows_nat_target::thread_alive): Use lwp, not tid.
5917
5918 2020-04-08 Tom Tromey <tromey@adacore.com>
5919
5920 * windows-nat.c (handle_exception)
5921 (windows_nat_target::thread_name): Update.
5922 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5923 <name>: Now unique_xmalloc_ptr.
5924
5925 2020-04-08 Tom Tromey <tromey@adacore.com>
5926
5927 * windows-nat.c (thread_rec)
5928 (windows_nat_target::fetch_registers): Update.
5929 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5930 Update comment.
5931 <debug_registers_changed, reload_context>: Now bool.
5932
5933 2020-04-08 Tom Tromey <tromey@adacore.com>
5934
5935 * windows-nat.c (windows_add_thread): Use new.
5936 (windows_init_thread_list, windows_delete_thread): Use delete.
5937 (get_windows_debug_event): Update.
5938 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5939 destructor, and initializers.
5940
5941 2020-04-08 Tom Tromey <tromey@adacore.com>
5942
5943 * windows-nat.c (struct windows_thread_info): Remove.
5944 * nat/windows-nat.h: New file.
5945
5946 2020-04-08 Tom Tromey <tromey@adacore.com>
5947
5948 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5949 (thread_rec, windows_add_thread, windows_delete_thread)
5950 (windows_continue): Update.
5951
5952 2020-04-08 Tom Tromey <tromey@adacore.com>
5953
5954 * windows-nat.c (struct windows_thread_info): Remove typedef.
5955 (thread_head): Remove.
5956 (thread_list): New global.
5957 (thread_rec, windows_add_thread, windows_init_thread_list)
5958 (windows_delete_thread, windows_continue): Update.
5959
5960 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5961
5962 * windows-tdep.h (windows_init_abi): Add comment.
5963 (cygwin_init_abi): New declaration.
5964 * windows-tdep.c: Split signal enumeration in two, one for
5965 Windows and one for Cygwin.
5966 (windows_gdb_signal_to_target): Only deal with signal of the
5967 Windows OS ABI.
5968 (cygwin_gdb_signal_to_target): New function.
5969 (windows_init_abi): Rename to windows_init_abi_common, don't set
5970 gdb_signal_to_target gdbarch method. Add new new function with
5971 this name.
5972 (cygwin_init_abi): New function.
5973 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5974 comment. Don't call windows_init_abi.
5975 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5976 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5977 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5978 i386_windows_init_abi_common, don't call windows_init_abi. Add
5979 a new function of this name.
5980 (i386_cygwin_init_abi): New function.
5981 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5982 OS ABI Cygwin.
5983
5984 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5985
5986 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5987 parameter.c.
5988 (dwarf2_read_gdb_index): Update.
5989
5990 2020-04-07 Kamil Rytarowski <n54@gmx.com>
5991
5992 * nbsd-tdep.c: Include "objfiles.h".
5993 (nbsd_skip_solib_resolver): New.
5994 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5995
5996 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5997
5998 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5999 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6000 with DW_LLE_base_addressx are being emitted in DWARFv5.
6001 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6002 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6003 unsigned integer.
6004
6005 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6006
6007 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6008 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6009 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6010 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6011 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6012 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6013 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6014
6015
6016 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6017
6018 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6019 (read_loclist_index): New function definition.
6020 (lookup_loclist_base): New function definition.
6021 (read_loclist_header): New function definition.
6022 (dwarf2_cu): Add loclist_base and loclist_header field.
6023 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6024 (read_full_die_1): Read the value of DW_AT_loclists_base.
6025 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6026 (read_attribute_value): Handle DW_FORM_loclistx.
6027 (skip_one_die): Handle DW_FORM_loclistx.
6028 (loclist_header): New structure declaration.
6029 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6030
6031 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6032
6033 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6034 constructor. Remove `addr` parameter from other constructor and
6035 add `per_cu` parameter.
6036 * dwarf2/read.c (create_partial_symtab): Update.
6037
6038 2020-04-07 Tom de Vries <tdevries@suse.de>
6039
6040 PR symtab/25796
6041 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6042 (partial_die_info::fixup): Inherit has_const_value.
6043
6044 2020-04-07 Tom de Vries <tdevries@suse.de>
6045
6046 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6047 symbols without address.
6048
6049 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6050
6051 * nbsd-nat.h (struct thread_info): Add forward declaration.
6052 (nbsd_nat_target::thread_alive): Add.
6053 (nbsd_nat_target::thread_name): Likewise.
6054 (nbsd_nat_target::update_thread_list): Likewise.
6055 (update_thread_list::post_attach): Likewise.
6056 (post_attach::pid_to_str): Likewise.
6057 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6058 (nbsd_thread_lister): Add.
6059 (nbsd_nat_target::thread_alive): Likewise.
6060 (nbsd_nat_target::thread_name): Likewise.
6061 (nbsd_add_threads): Likewise.
6062 (update_thread_list::post_attach): Likewise.
6063 (nbsd_nat_target::update_thread_list): Likewise.
6064 (post_attach::pid_to_str): Likewise.
6065
6066 2020-04-06 Tom Tromey <tromey@adacore.com>
6067
6068 * ada-valprint.c (print_variant_part): Extract the variant field.
6069 (print_field_values): Use the field as the outer value when
6070 recursing.
6071
6072 2020-04-06 Tom Tromey <tromey@adacore.com>
6073
6074 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6075 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6076 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6077 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6078 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6079
6080 2020-04-06 Tom Tromey <tromey@adacore.com>
6081
6082 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6083 TYPE_CODE_ERROR.
6084
6085 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6086
6087 * nbsd-tdep.c: Include "gdbarch.h".
6088 Define enum with NetBSD signal numbers.
6089 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6090 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6091 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6092 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6093 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6094 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6095 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6096 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6097 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6098 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6099 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6100 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6101
6102 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6103
6104 PR gdb/25325
6105 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6106
6107 2020-04-03 Tom Tromey <tromey@adacore.com>
6108
6109 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6110 Read constant block.
6111
6112 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6113
6114 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6115 (gdb_bfd_get_full_section_contents): New declaration.
6116 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6117 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6118 gdb_bfd_get_full_section_contents.
6119
6120 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6121
6122 * exec.c (build_section_table): Replace internal_error with
6123 gdb_assert.
6124 (section_table_xfer_memory_partial): Likewise.
6125 * mdebugread.c (parse_partial_symbols): Likewise.
6126 * psymtab.c (lookup_partial_symbol): Likewise.
6127 * utils.c (wrap_here): Likewise.
6128
6129 2020-04-02 Tom Tromey <tromey@adacore.com>
6130
6131 * f-lang.c (build_fortran_types): Use arch_type to initialize
6132 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6133
6134 2020-04-02 Tom Tromey <tromey@adacore.com>
6135
6136 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6137 of attributes.
6138
6139 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6140 Bernd Edlinger <bernd.edlinger@hotmail.de>
6141 Tom Tromey <tromey@adacore.com>
6142
6143 * buildsym.c (buildsym_compunit::record_line): Remove
6144 deduplication code.
6145
6146 2020-04-02 Tom de Vries <tdevries@suse.de>
6147
6148 PR ada/24671
6149 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6150
6151 2020-04-02 Tom de Vries <tdevries@suse.de>
6152
6153 * dwarf2/read.c (dwarf2_gdb_index_functions,
6154 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6155 NULL.
6156 * psymtab.c (psym_lookup_global_symbol_language): New function.
6157 (psym_functions): Init psym_lookup_global_symbol_language with
6158 psym_lookup_global_symbol_language.
6159 * symfile-debug.c (debug_sym_quick_functions): Init
6160 lookup_global_symbol_language with NULL.
6161 * symfile.c (set_initial_language): Remove fixme comment.
6162 * symfile.h (struct quick_symbol_functions): Add
6163 lookup_global_symbol_language.
6164 * symtab.c (find_quick_global_symbol_language): New function.
6165 (find_main_name): Use find_quick_global_symbol_language.
6166
6167 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6168
6169 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6170
6171 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6172
6173 * buildsym.c (record_line): Fix undefined behavior and preserve
6174 lines at eof.
6175
6176 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6177
6178 * buildsym.c (record_line): Fix the resizing condition.
6179
6180 2020-04-01 Tom Tromey <tom@tromey.com>
6181
6182 * value.h (value_literal_complex): Add comment.
6183 * valops.c (value_literal_complex): Refer to value.h.
6184
6185 2020-04-01 Tom Tromey <tom@tromey.com>
6186
6187 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6188 (scalar_type): New rule, from typebase.
6189 (typebase): Use scalar_type. Recognize complex types.
6190 (field_name): Handle FLOAT_KEYWORD.
6191 (ident_tokens): Add _Complex and __complex__.
6192
6193 2020-04-01 Tom Tromey <tom@tromey.com>
6194
6195 PR exp/25299:
6196 * valarith.c (promotion_type, complex_binop): New functions.
6197 (scalar_binop): Handle complex numbers. Use promotion_type.
6198 (value_pos, value_neg, value_complement): Handle complex numbers.
6199
6200 2020-04-01 Tom Tromey <tom@tromey.com>
6201
6202 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6203 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6204 (parse_number): Handle complex numbers.
6205
6206 2020-04-01 Tom Tromey <tom@tromey.com>
6207
6208 * c-valprint.c (c_decorations): Change complex suffix to "i".
6209
6210 2020-04-01 Tom Tromey <tom@tromey.com>
6211
6212 * valprint.c (generic_value_print_complex): Use accessors.
6213 * value.h (value_real_part, value_imaginary_part): Declare.
6214 * valops.c (value_real_part, value_imaginary_part): New
6215 functions.
6216 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6217
6218 2020-04-01 Tom Tromey <tom@tromey.com>
6219
6220 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6221 (read_range_type): Update.
6222 * mdebugread.c (basic_type): Update.
6223 * go-lang.c (build_go_types): Use init_complex_type.
6224 * gdbtypes.h (struct main_type) <complex_type>: New member.
6225 (init_complex_type): Update.
6226 (arch_complex_type): Don't declare.
6227 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6228 Make name if none given. Use alloc_type_copy. Look for cached
6229 complex type.
6230 (arch_complex_type): Remove.
6231 (gdbtypes_post_init): Use init_complex_type.
6232 * f-lang.c (build_fortran_types): Use init_complex_type.
6233 * dwarf2/read.c (read_base_type): Update.
6234 * d-lang.c (build_d_types): Use init_complex_type.
6235 * ctfread.c (read_base_type): Update.
6236
6237 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6238
6239 * infrun.c (stop_all_threads): Update assertion, plus when
6240 stopping threads, take into account that we might be trying
6241 to stop an all-stop target.
6242 (stop_waiting): Call 'stop_all_threads' if there exists a
6243 non-stop target.
6244
6245 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6246
6247 * target.h (exists_non_stop_target): New function declaration.
6248 * target.c (exists_non_stop_target): New function.
6249
6250 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6251
6252 PR gdb/24789
6253 * eval.c (is_integral_or_integral_reference): New function.
6254 (evaluate_subexp_standard): Allow integer references in
6255 pointer arithmetic.
6256
6257 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6258
6259 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6260 check for no ptid in the stop reply when the target is non-stop.
6261
6262 2020-04-01 Tom Tromey <tromey@adacore.com>
6263
6264 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6265 "name" parameter to rvalue reference. Initialize m_name_holder.
6266 <lookup_name_info>: New overloads.
6267 <name>: Return gdb::string_view.
6268 <c_str>: New method.
6269 <make_ignore_params>: Update.
6270 <search_name_hash>: Update.
6271 <language_lookup_name>: Return const char *.
6272 <m_name>: Change type.
6273 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6274 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6275 (lookup_name_info::match_any): Update.
6276 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6277 Update.
6278 * minsyms.c (linkage_name_str): Update.
6279 * language.c (default_symbol_name_matcher): Update.
6280 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6281 Update.
6282 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6283 (ada_lookup_name_info::ada_lookup_name_info): Update.
6284 (literal_symbol_name_matcher): Update.
6285
6286 2020-04-01 Tom Tromey <tromey@adacore.com>
6287
6288 * psymtab.c (psymtab_search_name): Remove function.
6289 (psym_lookup_symbol): Create search name and lookup name here.
6290 (lookup_partial_symbol): Remove "name" parameter; add
6291 lookup_name.
6292 (psym_expand_symtabs_for_function): Update.
6293
6294 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6295
6296 PR tui/25597:
6297 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6298
6299 2020-03-31 Tom Tromey <tromey@adacore.com>
6300
6301 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6302 memcpy.
6303
6304 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6305
6306 * features/riscv/32bit-csr.xml: Regenerated.
6307 * features/riscv/64bit-csr.xml: Regenerated.
6308
6309 2020-03-30 Tom Tromey <tromey@adacore.com>
6310
6311 * ada-valprint.c (print_variant_part): Update.
6312 * ada-lang.h (ada_which_variant_applies): Update.
6313 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6314 outer_valaddr parameters; replace with "outer" value parameter.
6315 (to_fixed_variant_branch_type): Update.
6316
6317 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6318
6319 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6320 <list>. Remove inclusion of observable.h.
6321 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6322 (struct arch_lwp_info): New struct.
6323 (class ppc_linux_dreg_interface): New class.
6324 (struct ppc_linux_process_info): New struct.
6325 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6326 <low_new_clone, low_forget_process, low_prepare_to_resume>
6327 <copy_thread_dreg_state, mark_thread_stale>
6328 <mark_debug_registers_changed, register_hw_breakpoint>
6329 <clear_hw_breakpoint, register_wp, clear_wp>
6330 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6331 <num_memory_accesses, get_trigger_type>
6332 <create_watchpoint_request, hwdebug_point_cmp>
6333 <init_arch_lwp_info, get_arch_lwp_info>
6334 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6335 methods.
6336 <struct ptid_hash>: New inner struct.
6337 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6338 members.
6339 (saved_dabr_value, hwdebug_info, max_slots_number)
6340 (struct hw_break_tuple, struct thread_points, ppc_threads)
6341 (have_ptrace_hwdebug_interface)
6342 (hwdebug_find_thread_points_by_tid)
6343 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6344 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6345 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6346 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6347 use m_dreg_interface.
6348 (hwdebug_point_cmp): Change to...
6349 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6350 reference arguments instead of pointers.
6351 (ppc_linux_nat_target::ranged_break_num_registers): Use
6352 m_dreg_interface.
6353 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6354 m_dreg_interface. Call register_hw_breakpoint.
6355 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6356 m_dreg_interface. Call clear_hw_breakpoint.
6357 (get_trigger_type): Change to...
6358 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6359 comment.
6360 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6361 use m_dreg_interface. Call register_hw_breakpoint.
6362 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6363 use m_dreg_interface. Call clear_hw_breakpoint.
6364 (can_use_watchpoint_cond_accel): Change to...
6365 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6366 method. Update comment, use m_dreg_interface and
6367 m_process_info.
6368 (calculate_dvc): Change to...
6369 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6370 m_dreg_interface.
6371 (num_memory_accesses): Change to...
6372 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6373 (check_condition): Change to...
6374 (ppc_linux_nat_target::check_condition): ...this method.
6375 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6376 comment, use m_dreg_interface.
6377 (create_watchpoint_request): Change to...
6378 (ppc_linux_nat_target::create_watchpoint_request): ...this
6379 method. Use m_dreg_interface.
6380 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6381 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6382 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6383 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6384 (ppc_linux_nat_target::low_forget_process)
6385 (ppc_linux_nat_target::low_new_fork)
6386 (ppc_linux_nat_target::low_new_clone)
6387 (ppc_linux_nat_target::low_delete_thread)
6388 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6389 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6390 only call mark_thread_stale.
6391 (ppc_linux_thread_exit): Remove.
6392 (ppc_linux_nat_target::stopped_data_address): Change to...
6393 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6394 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6395 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6396 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6397 comment. Call low_stopped_data_address.
6398 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6399 m_dreg_interface.
6400 (ppc_linux_nat_target::masked_watch_num_registers): Use
6401 m_dreg_interface.
6402 (ppc_linux_nat_target::copy_thread_dreg_state)
6403 (ppc_linux_nat_target::mark_thread_stale)
6404 (ppc_linux_nat_target::mark_debug_registers_changed)
6405 (ppc_linux_nat_target::register_hw_breakpoint)
6406 (ppc_linux_nat_target::clear_hw_breakpoint)
6407 (ppc_linux_nat_target::register_wp)
6408 (ppc_linux_nat_target::clear_wp)
6409 (ppc_linux_nat_target::init_arch_lwp_info)
6410 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6411 (_initialize_ppc_linux_nat): Remove observer callback.
6412
6413 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6414
6415 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6416 (ppc_linux_nat_target::auxv_parse)
6417 (ppc_linux_nat_target::read_description)
6418 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6419 Move up.
6420
6421 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6422
6423 * linux-nat.h (low_new_clone): New method.
6424 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6425
6426 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6427
6428 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6429 (dbx_expand_psymtab): ... this.
6430 (start_psymtab): Update.
6431 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6432 (mdebug_expand_psymtab): ... this.
6433 (parse_partial_symbols): Update.
6434 (new_psymtab): Update.
6435 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6436 (xcoff_expand_psymtab): ... this.
6437 (xcoff_start_psymtab): Update.
6438
6439 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6440
6441 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6442 <expand_dependencies>: ... this.
6443 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6444 (partial_symtab::expand_dependencies): ... this.
6445 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6446 Update.
6447 (dwarf2_psymtab::expand_psymtab): Update.
6448 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6449 * mdebugread.c (psymtab_to_symtab_1): Update.
6450 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6451
6452 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6453
6454 * psympriv.h (discard_psymtab): Remove.
6455 * dbxread.c (dbx_end_psymtab): Update.
6456 * xcoffread.c (xcoff_end_psymtab): Update.
6457
6458 2020-03-28 Tom Tromey <tom@tromey.com>
6459
6460 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6461 comment.
6462
6463 2020-03-28 Tom Tromey <tom@tromey.com>
6464
6465 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6466
6467 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6468
6469 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6470
6471 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6472
6473 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6474
6475 2020-03-26 Tom Tromey <tom@tromey.com>
6476
6477 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6478 (mark_common_block_symbol_computed, read_tag_string_type)
6479 (attr_to_dynamic_prop, read_subrange_type): Update.
6480 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6481 to be methods on struct attribute.
6482 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6483 (read_call_site_scope, partial_die_info::read)
6484 (partial_die_info::read, lookup_die_type, follow_die_ref):
6485 Update.
6486 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6487 from dwarf2_get_ref_die_offset.
6488 (attribute::constant_value): New method, from
6489 dwarf2_get_attr_constant_value.
6490 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6491 Declare method.
6492 <constant_value>: New method.
6493
6494 2020-03-26 Tom Tromey <tom@tromey.com>
6495
6496 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6497 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6498 (dwarf_type_encoding_name): Move to stringify.c.
6499 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6500 * dwarf2/stringify.c: New file.
6501 * dwarf2/stringify.h: New file.
6502
6503 2020-03-26 Tom Tromey <tom@tromey.com>
6504
6505 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6506 Rewrite.
6507
6508 2020-03-26 Tom Tromey <tom@tromey.com>
6509
6510 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6511 methods.
6512 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6513 (lookup_ranges_base): Likewise.
6514 (read_cutu_die_from_dwo, read_full_die_1): Update.
6515
6516 2020-03-26 Tom Tromey <tom@tromey.com>
6517
6518 * dwarf2/read.c (read_import_statement, read_file_scope)
6519 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6520 (read_lexical_block_scope, read_call_site_scope)
6521 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6522 (handle_struct_member_die, process_structure_scope)
6523 (update_enumeration_type_from_children)
6524 (process_enumeration_scope, read_array_type, read_common_block)
6525 (read_namespace, read_module, read_subroutine_type): Update.
6526 (sibling_die): Remove.
6527
6528 2020-03-26 Tom Tromey <tom@tromey.com>
6529
6530 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6531 (build_type_psymtabs_reader, read_structure_type)
6532 (read_enumeration_type, read_full_die_1): Update.
6533 (dwarf2_attr_no_follow): Move to die.h.
6534 * dwarf2/die.h (struct die_info) <attr>: New method.
6535
6536 2020-03-26 Tom Tromey <tom@tromey.com>
6537
6538 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6539 <base_address>: Now an optional.
6540 (dwarf2_find_base_address, dwarf2_rnglists_process)
6541 (dwarf2_ranges_process, fill_in_loclist_baton)
6542 (dwarf2_symbol_mark_computed): Update.
6543
6544 2020-03-26 Tom Tromey <tom@tromey.com>
6545
6546 * dwarf2/read.c (struct die_info): Move to die.h.
6547 * dwarf2/die.h: New file.
6548
6549 2020-03-26 Tom Tromey <tom@tromey.com>
6550
6551 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6552 * dwarf2/read.c
6553 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6554 Move to line-header.c.
6555 (read_checked_initial_length_and_offset, read_formatted_entries):
6556 Likewise.
6557 (dwarf_decode_line_header): Split into two.
6558 * dwarf2/line-header.c
6559 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6560 Move from read.c.
6561 (read_checked_initial_length_and_offset, read_formatted_entries):
6562 Likewise.
6563 (dwarf_decode_line_header): New function, split from read.c.
6564
6565 2020-03-26 Tom Tromey <tom@tromey.com>
6566
6567 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6568 Declare method.
6569 * dwarf2/read.c (read_attribute_value): Update.
6570 (dwarf2_per_objfile::read_line_string): Rename from
6571 read_indirect_line_string.
6572 (read_formatted_entries): Update.
6573
6574 2020-03-26 Tom Tromey <tom@tromey.com>
6575
6576 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6577 variable.
6578
6579 2020-03-26 Tom Tromey <tom@tromey.com>
6580
6581 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6582 const.
6583 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6584 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6585 parameter const.
6586
6587 2020-03-26 Tom Tromey <tom@tromey.com>
6588
6589 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6590 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6591 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6592 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6593
6594 2020-03-26 Tom Tromey <tom@tromey.com>
6595
6596 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6597 file_names_size, file_full_name, file_file_name>: Use const.
6598 <file_name_at, file_names>: Add const overload.
6599 * dwarf2/line-header.c (line_header::file_file_name)
6600 (line_header::file_full_name): Update.
6601
6602 2020-03-26 Tom Tromey <tom@tromey.com>
6603
6604 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6605 (macro_start_file, consume_improper_spaces)
6606 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6607 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6608 (dwarf_decode_macros): Move to macro.c.
6609 * dwarf2/macro.c: New file.
6610 * dwarf2/macro.h: New file.
6611 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6612
6613 2020-03-26 Tom Tromey <tom@tromey.com>
6614
6615 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6616 method.
6617 * dwarf2/section.c: New method. From
6618 read_indirect_string_at_offset_from.
6619 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6620 (read_indirect_string_at_offset_from): Move to section.c.
6621 (read_indirect_string_at_offset): Rewrite.
6622 (read_indirect_line_string_at_offset): Remove.
6623 (read_indirect_string, read_indirect_line_string)
6624 (dwarf_decode_macro_bytes): Update.
6625
6626 2020-03-26 Tom Tromey <tom@tromey.com>
6627
6628 * dwarf2/section.h (struct dwarf2_section_info)
6629 <overload_complaint>: Declare.
6630 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6631 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6632 Rename from dwarf2_section_buffer_overflow_complaint.
6633 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6634 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6635
6636 2020-03-26 Tom Tromey <tom@tromey.com>
6637
6638 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6639 Declare.
6640 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6641 Move from read.c.
6642 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6643 to section.c.
6644
6645 2020-03-26 Tom Tromey <tom@tromey.com>
6646
6647 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6648
6649 2020-03-26 Tom Tromey <tom@tromey.com>
6650
6651 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6652 "builder".
6653 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6654 parameter.
6655 (dwarf_decode_macros): Update.
6656
6657 2020-03-26 Tom Tromey <tom@tromey.com>
6658
6659 * dwarf2/read.c (read_attribute_value): Update.
6660 (read_indirect_string_from_dwz): Move to dwz.c; change into
6661 method.
6662 (dwarf_decode_macro_bytes): Update.
6663 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6664 * dwarf2/dwz.c: New file.
6665 * Makefile.in (COMMON_SFILES): Add dwz.c.
6666
6667 2020-03-26 Tom Tromey <tom@tromey.com>
6668
6669 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6670 * dwarf2/read.c: Add include.
6671 * dwarf2/index-write.c: Add include.
6672 * dwarf2/index-cache.c: Add include.
6673 * dwarf2/dwz.h: New file.
6674
6675 2020-03-25 Tom Tromey <tom@tromey.com>
6676
6677 * compile/compile-object-load.c (get_out_value_type): Mention
6678 correct symbol name in error message.
6679
6680 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6681
6682 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6683
6684 2020-03-25 Tom de Vries <tdevries@suse.de>
6685
6686 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6687 * symmisc.c (dump_symtab_1): Print user and includes fields.
6688 (maintenance_info_symtabs): Same.
6689
6690 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6691
6692 PR gdb/25534
6693 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6694 (riscv_regcache_cooked_write): New function.
6695 (riscv_push_dummy_call): Use new function.
6696 (riscv_return_value): Likewise.
6697
6698 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6699
6700 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6701 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6702 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6703 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6704 * infrun.c (follow_fork): Likewise.
6705 (follow_fork_inferior): Likewise.
6706 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6707 * linux-nat.h (class linux_nat_target): Likewise.
6708 * remote.c (class remote_target) <follow_fork>: Likewise.
6709 (remote_target::follow_fork): Likewise.
6710 * target-delegates.c: Re-generate.
6711 * target.c (default_follow_fork): Likewise.
6712 (target_follow_fork): Likewise.
6713 * target.h (struct target_ops) <follow_fork>: Likewise.
6714 (target_follow_fork): Likewise.
6715
6716 2020-03-24 Tom de Vries <tdevries@suse.de>
6717
6718 * psymtab.c (maintenance_info_psymtabs): Print user field.
6719
6720 2020-03-20 Tom Tromey <tromey@adacore.com>
6721
6722 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6723 const.
6724 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6725 const.
6726
6727 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6728
6729 * ptrace.m4: Don't check for ptrace declaration.
6730 * config.in: Re-generate.
6731 * configure: Re-generate.
6732 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6733 not defined.
6734
6735 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6736
6737 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6738 `PTRACE_TYPE_RET'.
6739 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6740 * sparc-nat.c (gdb_ptrace): Likewise.
6741 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6742
6743 2020-03-20 Tom Tromey <tromey@adacore.com>
6744
6745 * c-exp.y (lex_one_token): Fix assert.
6746
6747 2020-03-20 Tom Tromey <tromey@adacore.com>
6748
6749 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6750 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6751 strncpy call.
6752
6753 2020-03-20 Tom Tromey <tromey@adacore.com>
6754
6755 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6756
6757 2020-03-20 Tom Tromey <tromey@adacore.com>
6758
6759 * ada-valprint.c (print_variant_part): Remove parameters; switch
6760 to value-based API.
6761 (print_field_values): Likewise.
6762 (ada_val_print_struct_union): Likewise.
6763 (ada_value_print_1): Update.
6764
6765 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6766
6767 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6768 nbsd_nat_target instead of inf_ptrace_target.
6769 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6770 nbsd_nat_target.
6771
6772 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6773
6774 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6775 it to the ptrace call.
6776 * (store_registers): Likewise.
6777
6778 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6779
6780 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6781 it to the ptrace call.
6782 * (store_registers): Likewise.
6783
6784 2020-03-19 Luis Machado <luis.machado@linaro.org>
6785
6786 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6787 valid, fetch vg value from ptrace.
6788
6789 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6790 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6791 * inf-ptrace.c: Likewise.
6792 * (gdb_ptrace): Add.
6793 * (inf_ptrace_target::resume): Update.
6794 * (inf_ptrace_target::xfer_partial): Likewise.
6795 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6796 * (inf_ptrace_peek_poke): Update.
6797
6798 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6799
6800 * x86-bsd-nat.c (gdb_ptrace): New.
6801 * (x86bsd_dr_set): Add new argument `ptid'.
6802 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6803 x86bsd_dr_set_addr): Update.
6804
6805 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6806
6807 * remote.c (remote_target::process_stop_reply): Handle events for
6808 all threads differently.
6809
6810 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6811
6812 * completer.c (completion_tracker::remove_completion): Define new
6813 function.
6814 * completer.h (completion_tracker::remove_completion): Declare new
6815 function.
6816 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6817 when adding a C++ function symbol.
6818
6819 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6820
6821 * completer.c (completion_tracker::completion_hash_entry): Define
6822 new class.
6823 (advance_to_filename_complete_word_point): Call
6824 recompute_lowest_common_denominator.
6825 (completion_tracker::completion_tracker): Call discard_completions
6826 to setup the hash table.
6827 (completion_tracker::discard_completions): Allow for being called
6828 from the constructor, pass new equal function, and element deleter
6829 when constructing the hash table. Initialise new class member
6830 variables.
6831 (completion_tracker::maybe_add_completion): Remove use of
6832 m_entries_vec, and store more information into m_entries_hash.
6833 (completion_tracker::recompute_lcd_visitor): New function, most
6834 content taken from...
6835 (completion_tracker::recompute_lowest_common_denominator):
6836 ...here, this now just visits each item in the hash calling the
6837 above visitor.
6838 (completion_tracker::build_completion_result): Remove use of
6839 m_entries_vec, call recompute_lowest_common_denominator.
6840 * completer.h (completion_tracker::have_completions): Remove use
6841 of m_entries_vec.
6842 (completion_tracker::completion_hash_entry): Declare new class.
6843 (completion_tracker::recompute_lowest_common_denominator): Change
6844 function signature.
6845 (completion_tracker::recompute_lcd_visitor): Declare new function.
6846 (completion_tracker::m_entries_vec): Delete.
6847 (completion_tracker::m_entries_hash): Initialize to NULL.
6848 (completion_tracker::m_lowest_common_denominator_valid): New
6849 member variable.
6850 (completion_tracker::m_lowest_common_denominator_max_length): New
6851 member variable.
6852
6853 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6854
6855 * regformats/regdef.h: Put reg in gdb namespace.
6856
6857 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6858
6859 * i386-bsd-nat.c (gdb_ptrace): New.
6860 * (i386bsd_fetch_inferior_registers,
6861 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6862 * (i386bsd_fetch_inferior_registers,
6863 i386bsd_store_inferior_registers) Use gdb_ptrace.
6864
6865 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6866
6867 * amd64-bsd-nat.c (gdb_ptrace): New.
6868 * (amd64bsd_fetch_inferior_registers,
6869 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6870 * (amd64bsd_fetch_inferior_registers,
6871 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6872
6873 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6874
6875 * user-regs.c (user_reg::read): Rename to...
6876 (user_reg::xread): ...this.
6877 * (append_user_reg): Rename argument `read' to `xread'.
6878 * (user_reg_add_builtin): Likewise.
6879 * (user_reg_add): Likewise.
6880 * (value_of_user_reg): Likewise.
6881
6882 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6883
6884 * sparc-nat.c (gdb_ptrace): New.
6885 * sparc-nat.c (sparc_fetch_inferior_registers)
6886 (sparc_store_inferior_registers) Remove obsolete comment.
6887 * sparc-nat.c (sparc_fetch_inferior_registers)
6888 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6889 * sparc-nat.c (sparc_fetch_inferior_registers)
6890 (sparc_store_inferior_registers) Use gdb_ptrace.
6891
6892 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6893
6894 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6895 it to the ptrace call.
6896 * sh-nbsd-nat.c (store_registers): Likewise.
6897
6898 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6899
6900 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6901 nbsd_nat_target instead of inf_ptrace_target.
6902 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6903 nbsd_nat_target.
6904
6905 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6906
6907 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6908
6909 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6910
6911 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6912 <sys/sysctl.h>.
6913 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6914
6915 2020-03-17 Tom de Vries <tdevries@suse.de>
6916
6917 PR gdb/23710
6918 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6919 fields.
6920 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6921 fields.
6922 (process_imported_unit_die): Skip import of c++ CUs.
6923
6924 2020-03-16 Tom Tromey <tom@tromey.com>
6925
6926 * p-valprint.c (pascal_object_print_value): Initialize
6927 base_value.
6928
6929 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6930 Shahab Vahedi <shahab@synopsys.com>
6931
6932 * Makefile.in: Add arch/arc.o
6933 * configure.tgt: Likewise.
6934 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6935 (_initialize_arc_tdep): Don't initialize old target descriptions.
6936 (arc_read_description): New function to cache target descriptions.
6937 * arc-tdep.h (arc_read_description): Add proto type.
6938 * arch/arc.c: New file.
6939 * arch/arc.h: Likewise.
6940 * features/Makefile: Replace old target descriptions with new.
6941 * features/arc-arcompact.c: Remove.
6942 * features/arc-arcompact.xml: Likewise.
6943 * features/arc-v2.c: Likewise
6944 * features/arc-v2.xml: Likewise
6945 * features/arc/aux-arcompact.xml: New file.
6946 * features/arc/aux-v2.xml: Likewise.
6947 * features/arc/core-arcompact.xml: Likewise.
6948 * features/arc/core-v2.xml: Likewise.
6949 * features/arc/aux-arcompact.c: Generate.
6950 * features/arc/aux-v2.c: Likewise.
6951 * features/arc/core-arcompact.c: Likewise.
6952 * features/arc/core-v2.c: Likewise.
6953 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6954
6955 2020-03-16 Tom Tromey <tromey@adacore.com>
6956
6957 PR gdb/25663:
6958 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6959 putting value into bcache.
6960
6961 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6962
6963 PR gdb/21500
6964 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6965 to...
6966 (amd64_windows_init_abi_common): ... this. Don't set size of
6967 long type.
6968 (amd64_windows_init_abi): New function.
6969 (amd64_cygwin_init_abi): New function.
6970 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6971 the Cygwin OS ABI.
6972 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6973 comment.
6974
6975 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6976
6977 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6978 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6979 (pe_import_directory_entry): New struct type.
6980 (is_linked_with_cygwin_dll): New function.
6981 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6982 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6983 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6984
6985 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6986
6987 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6988 i386_cygwin_core_osabi_sniffer.
6989
6990 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6991
6992 * i386-cygwin-tdep.c: Rename to...
6993 * i386-windows-tdep.c: ... this.
6994 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6995 i386-windows-tdep.c.
6996 * configure.tgt: Likewise.
6997
6998 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6999
7000 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7001 * osabi.c (gdb_osabi_names): Add "Windows".
7002 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7003 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7004 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7005 i386_cygwin_osabi_sniffer.
7006 (_initialize_i386_cygwin_tdep): Register OS ABI
7007 GDB_OSABI_WINDOWS for i386.
7008 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7009 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7010 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7011 for x86-64.
7012 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7013 when the target matches '*-*-mingw*'.
7014
7015 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7016
7017 * defs.h (enum gdb_osabi): Move to...
7018 * osabi.h (enum gdb_osabi): ... here.
7019 * gdbarch.sh: Include osabi.h in gdbarch.h.
7020 * gdbarch.h: Re-generate.
7021
7022 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7023
7024 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7025 function.
7026 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7027
7028 2020-03-14 Tom Tromey <tom@tromey.com>
7029
7030 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7031 for C++.
7032 (c_type_print_modifier): Likewise. Add "language" parameter.
7033 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7034 (c_type_print_base_1): Update.
7035 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7036 constants.
7037 * type-stack.c (type_stack::insert): Handle tp_atomic and
7038 tp_restrict.
7039 (type_stack::follow_type_instance_flags): Likewise.
7040 (type_stack::follow_types): Likewise. Merge type-following code.
7041 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7042 (space_identifier, cv_with_space_id)
7043 (const_or_volatile_or_space_identifier_noopt)
7044 (const_or_volatile_or_space_identifier): Remove.
7045 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7046 rules.
7047 (ptr_operator, typebase): Update.
7048 (enum token_flag) <FLAG_C>: New constant.
7049 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7050 "_Atomic".
7051 (lex_one_token): Handle FLAG_C.
7052
7053 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7054
7055 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7056 it to the ptrace call.
7057 * m68k-bsd-nat.c (store_registers): Likewise.
7058
7059 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7060
7061 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7062 gdb_byte *.
7063 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7064 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7065 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7066
7067 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7068
7069 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7070 nbsd_nat_target instead of inf_ptrace_target.
7071 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7072 nbsd_nat_target.
7073
7074 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7075
7076 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7077 register_t.
7078
7079 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7080
7081 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7082 it to the ptrace call.
7083 * alpha-bsd-nat.c (store_registers): Likewise.
7084
7085 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7086
7087 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7088 includes.
7089 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7090 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7091 fill_fpregset): Likewise.
7092
7093 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7094
7095 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7096 nbsd_nat_target instead of inf_ptrace_target.
7097 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7098 nbsd_nat_target.
7099
7100 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7101
7102 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7103 register_t.
7104
7105 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7106
7107 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7108 it to the ptrace call.
7109 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7110 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7111 * arm-nbsd-nat.c (store_register): Likewise.
7112 * arm-nbsd-nat.c (store_regs): Likewise.
7113 * arm-nbsd-nat.c (store_fp_register): Likewise.
7114 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7115
7116 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7117
7118 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7119 nbsd_nat_target instead of inf_ptrace_target.
7120 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7121 nbsd_nat_target.
7122
7123 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7124
7125 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7126 it to the ptrace call.
7127 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7128
7129 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7130
7131 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7132 it to the ptrace call.
7133 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7134
7135 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7136
7137 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7138 gdb_byte *.
7139 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7140
7141 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7142
7143 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7144 instead of inf_ptrace_target.
7145 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7146 nbsd_nat_target.
7147
7148 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7149
7150 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7151 register_t.
7152
7153 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7154
7155 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7156 register_t.
7157
7158 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7159
7160 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7161 register_t.
7162
7163 2020-03-13 Tom Tromey <tom@tromey.com>
7164
7165 * value.h (val_print): Don't declare.
7166 * valprint.h (val_print_array_elements)
7167 (val_print_scalar_formatted, generic_val_print): Don't declare.
7168 * valprint.c (generic_val_print_array): Take a struct value.
7169 (generic_val_print_ptr, generic_val_print_memberptr)
7170 (generic_val_print_bool, generic_val_print_int)
7171 (generic_val_print_char, generic_val_print_complex)
7172 (generic_val_print): Remove.
7173 (generic_value_print): Update.
7174 (do_val_print): Remove unused parameters. Don't call
7175 la_val_print.
7176 (val_print): Remove.
7177 (common_val_print): Update. Don't call value_check_printable.
7178 (val_print_scalar_formatted, val_print_array_elements): Remove.
7179 * rust-lang.c (rust_val_print): Remove.
7180 (rust_language_defn): Update.
7181 * p-valprint.c (pascal_val_print): Remove.
7182 (pascal_value_print_inner): Update.
7183 (pascal_object_print_val_fields, pascal_object_print_val):
7184 Remove.
7185 (pascal_object_print_static_field): Update.
7186 * p-lang.h (pascal_val_print): Don't declare.
7187 * p-lang.c (pascal_language_defn): Update.
7188 * opencl-lang.c (opencl_language_defn): Update.
7189 * objc-lang.c (objc_language_defn): Update.
7190 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7191 * m2-lang.h (m2_val_print): Don't declare.
7192 * m2-lang.c (m2_language_defn): Update.
7193 * language.h (struct language_defn) <la_val_print>: Remove.
7194 * language.c (unk_lang_value_print_inner): Rename. Change
7195 argument types.
7196 (unknown_language_defn, auto_language_defn): Update.
7197 * go-valprint.c (go_val_print): Remove.
7198 * go-lang.h (go_val_print): Don't declare.
7199 * go-lang.c (go_language_defn): Update.
7200 * f-valprint.c (f_val_print): Remove.
7201 * f-lang.h (f_value_print): Don't declare.
7202 * f-lang.c (f_language_defn): Update.
7203 * d-valprint.c (d_val_print): Remove.
7204 * d-lang.h (d_value_print): Don't declare.
7205 * d-lang.c (d_language_defn): Update.
7206 * cp-valprint.c (cp_print_value_fields)
7207 (cp_print_value_fields_rtti, cp_print_value): Remove.
7208 (cp_print_static_field): Update.
7209 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7210 (c_val_print_struct, c_val_print_union, c_val_print_int)
7211 (c_val_print_memberptr, c_val_print): Remove.
7212 * c-lang.h (c_val_print_array, cp_print_value_fields)
7213 (cp_print_value_fields_rtti): Don't declare.
7214 * c-lang.c (c_language_defn, cplus_language_defn)
7215 (asm_language_defn, minimal_language_defn): Update.
7216 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7217 (ada_val_print_enum): Take a struct value.
7218 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7219 (ada_val_print): Remove.
7220 (ada_value_print_1): Update.
7221 (printable_val_type): Remove.
7222 * ada-lang.h (ada_val_print): Don't declare.
7223 * ada-lang.c (ada_language_defn): Update.
7224
7225 2020-03-13 Tom Tromey <tom@tromey.com>
7226
7227 * valprint.c (do_val_print): Update.
7228 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7229 a struct value.
7230 (value_to_value_object_no_release): Declare.
7231 * python/py-value.c (value_to_value_object_no_release): New
7232 function.
7233 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7234 struct value.
7235 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7236 function.
7237 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7238 a struct value.
7239 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7240 Declare.
7241 (gdbscm_apply_val_pretty_printer): Take a struct value.
7242 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7243 value.
7244 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7245 value.
7246 * extension-priv.h (struct extension_language_ops)
7247 <apply_val_pretty_printer>: Take a struct value.
7248 * cp-valprint.c (cp_print_value): Create a struct value.
7249 (cp_print_value): Update.
7250
7251 2020-03-13 Tom Tromey <tom@tromey.com>
7252
7253 * ada-valprint.c (print_field_values): Call common_val_print.
7254
7255 2020-03-13 Tom Tromey <tom@tromey.com>
7256
7257 * ada-valprint.c (val_print_packed_array_elements): Remove
7258 bitoffset and val parameters. Call common_val_print.
7259 (ada_val_print_string): Remove offset, address, and original_value
7260 parameters.
7261 (ada_val_print_array): Update.
7262 (ada_value_print_array): New function.
7263 (ada_value_print_1): Call it.
7264
7265 2020-03-13 Tom Tromey <tom@tromey.com>
7266
7267 * ada-valprint.c (ada_value_print): Use common_val_print.
7268
7269 2020-03-13 Tom Tromey <tom@tromey.com>
7270
7271 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7272
7273 2020-03-13 Tom Tromey <tom@tromey.com>
7274
7275 * ada-valprint.c (ada_value_print_num): New function.
7276 (ada_value_print_1): Use it.
7277
7278 2020-03-13 Tom Tromey <tom@tromey.com>
7279
7280 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7281
7282 2020-03-13 Tom Tromey <tom@tromey.com>
7283
7284 * ada-valprint.c (ada_value_print_ptr): New function.
7285 (ada_value_print_1): Use it.
7286
7287 2020-03-13 Tom Tromey <tom@tromey.com>
7288
7289 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7290 call common_val_print.
7291 (ada_val_print_1): Update.
7292 (ada_value_print_1): New function.
7293 (ada_value_print_inner): Rewrite.
7294
7295 2020-03-13 Tom Tromey <tom@tromey.com>
7296
7297 * cp-valprint.c (cp_print_value_fields): Update.
7298 (cp_print_value): New function.
7299
7300 2020-03-13 Tom Tromey <tom@tromey.com>
7301
7302 * m2-valprint.c (m2_value_print_inner): Use
7303 cp_print_value_fields.
7304 * cp-valprint.c (cp_print_value_fields): New function.
7305 * c-valprint.c (c_value_print_struct): New function.
7306 (c_value_print_inner): Use c_value_print_struct.
7307 * c-lang.h (cp_print_value_fields): Declare.
7308
7309 2020-03-13 Tom Tromey <tom@tromey.com>
7310
7311 * c-valprint.c (c_value_print_array): New function.
7312 (c_value_print_inner): Use it.
7313
7314 2020-03-13 Tom Tromey <tom@tromey.com>
7315
7316 * c-valprint.c (c_value_print_memberptr): New function.
7317 (c_value_print_inner): Use it.
7318
7319 2020-03-13 Tom Tromey <tom@tromey.com>
7320
7321 * c-valprint.c (c_value_print_int): New function.
7322 (c_value_print_inner): Use it.
7323
7324 2020-03-13 Tom Tromey <tom@tromey.com>
7325
7326 * c-valprint.c (c_value_print_ptr): New function.
7327 (c_value_print_inner): Use it.
7328
7329 2020-03-13 Tom Tromey <tom@tromey.com>
7330
7331 * c-valprint.c (c_value_print_inner): Rewrite.
7332
7333 2020-03-13 Tom Tromey <tom@tromey.com>
7334
7335 * valprint.c (generic_value_print_complex): New function.
7336 (generic_value_print): Use it.
7337
7338 2020-03-13 Tom Tromey <tom@tromey.com>
7339
7340 * valprint.c (generic_val_print_float): Don't call
7341 val_print_scalar_formatted.
7342 (generic_val_print, generic_value_print): Update.
7343
7344 2020-03-13 Tom Tromey <tom@tromey.com>
7345
7346 * valprint.c (generic_value_print_char): New function
7347 (generic_value_print): Use it.
7348
7349 2020-03-13 Tom Tromey <tom@tromey.com>
7350
7351 * valprint.c (generic_value_print_int): New function.
7352 (generic_value_print): Use it.
7353
7354 2020-03-13 Tom Tromey <tom@tromey.com>
7355
7356 * valprint.c (generic_value_print_bool): New function.
7357 (generic_value_print): Use it.
7358
7359 2020-03-13 Tom Tromey <tom@tromey.com>
7360
7361 * valprint.c (generic_val_print_func): Simplify.
7362 (generic_val_print, generic_value_print): Update.
7363
7364 2020-03-13 Tom Tromey <tom@tromey.com>
7365
7366 * valprint.c (generic_val_print_flags): Remove.
7367 (generic_val_print, generic_value_print): Update.
7368 (val_print_type_code_flags): Add original_value parameter.
7369
7370 2020-03-13 Tom Tromey <tom@tromey.com>
7371
7372 * valprint.c (generic_val_print): Update.
7373 (generic_value_print): Update.
7374 * valprint.c (generic_val_print_enum): Don't call
7375 val_print_scalar_formatted.
7376
7377 2020-03-13 Tom Tromey <tom@tromey.com>
7378
7379 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7380 * valprint.c (generic_value_print_ptr): New function.
7381
7382 2020-03-13 Tom Tromey <tom@tromey.com>
7383
7384 * valprint.c (generic_value_print): Rewrite.
7385
7386 2020-03-13 Tom Tromey <tom@tromey.com>
7387
7388 * p-valprint.c (pascal_object_print_value_fields)
7389 (pascal_object_print_value): New functions.
7390
7391 2020-03-13 Tom Tromey <tom@tromey.com>
7392
7393 * p-valprint.c (pascal_value_print_inner): Rewrite.
7394
7395 2020-03-13 Tom Tromey <tom@tromey.com>
7396
7397 * f-valprint.c (f_value_print_innner): Rewrite.
7398
7399 2020-03-13 Tom Tromey <tom@tromey.com>
7400
7401 * m2-valprint.c (m2_print_unbounded_array): New overload.
7402 (m2_print_unbounded_array): Update.
7403 (m2_print_array_contents): Take a struct value.
7404 (m2_value_print_inner): Rewrite.
7405
7406 2020-03-13 Tom Tromey <tom@tromey.com>
7407
7408 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7409 (d_value_print_inner): New function.
7410 * d-lang.h (d_value_print_inner): Declare.
7411 * d-lang.c (d_language_defn): Use d_value_print_inner.
7412
7413 2020-03-13 Tom Tromey <tom@tromey.com>
7414
7415 * go-valprint.c (go_value_print_inner): New function.
7416 * go-lang.h (go_value_print_inner): Declare.
7417 * go-lang.c (go_language_defn): Use go_value_print_inner.
7418
7419 2020-03-13 Tom Tromey <tom@tromey.com>
7420
7421 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7422 API.
7423 (rust_val_print): Rewrite.
7424 (rust_value_print_inner): New function, from rust_val_print.
7425 (rust_language_defn): Use rust_value_print_inner.
7426
7427 2020-03-13 Tom Tromey <tom@tromey.com>
7428
7429 * ada-valprint.c (ada_value_print_inner): New function.
7430 * ada-lang.h (ada_value_print_inner): Declare.
7431 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7432
7433 2020-03-13 Tom Tromey <tom@tromey.com>
7434
7435 * f-valprint.c (f_value_print_innner): New function.
7436 * f-lang.h (f_value_print_innner): Declare.
7437 * f-lang.c (f_language_defn): Use f_value_print_innner.
7438
7439 2020-03-13 Tom Tromey <tom@tromey.com>
7440
7441 * p-valprint.c (pascal_value_print_inner): New function.
7442 * p-lang.h (pascal_value_print_inner): Declare.
7443 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7444
7445 2020-03-13 Tom Tromey <tom@tromey.com>
7446
7447 * m2-valprint.c (m2_value_print_inner): New function.
7448 * m2-lang.h (m2_value_print_inner): Declare.
7449 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7450
7451 2020-03-13 Tom Tromey <tom@tromey.com>
7452
7453 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7454 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7455 * c-valprint.c (c_value_print_inner): New function.
7456 * c-lang.h (c_value_print_inner): Declare.
7457 * c-lang.c (c_language_defn, cplus_language_defn)
7458 (asm_language_defn, minimal_language_defn): Use
7459 c_value_print_inner.
7460
7461 2020-03-13 Tom Tromey <tom@tromey.com>
7462
7463 * p-valprint.c (pascal_object_print_value_fields): Now static.
7464 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7465
7466 2020-03-13 Tom Tromey <tom@tromey.com>
7467
7468 * c-valprint.c (c_val_print_array): Simplify.
7469
7470 2020-03-13 Tom Tromey <tom@tromey.com>
7471
7472 * valprint.c (value_print_array_elements): New function.
7473 * valprint.h (value_print_array_elements): Declare.
7474
7475 2020-03-13 Tom Tromey <tom@tromey.com>
7476
7477 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7478 * mips-tdep.c (mips_print_register): Use
7479 value_print_scalar_formatted.
7480
7481 2020-03-13 Tom Tromey <tom@tromey.com>
7482
7483 * valprint.h (value_print_scalar_formatted): Declare.
7484 * valprint.c (value_print_scalar_formatted): New function.
7485
7486 2020-03-13 Tom Tromey <tom@tromey.com>
7487
7488 * valprint.h (generic_value_print): Declare.
7489 * valprint.c (generic_value_print): New function.
7490
7491 2020-03-13 Tom Tromey <tom@tromey.com>
7492
7493 * valprint.c (do_val_print): Call la_value_print_inner, if
7494 available.
7495 * rust-lang.c (rust_language_defn): Update.
7496 * p-lang.c (pascal_language_defn): Update.
7497 * opencl-lang.c (opencl_language_defn): Update.
7498 * objc-lang.c (objc_language_defn): Update.
7499 * m2-lang.c (m2_language_defn): Update.
7500 * language.h (struct language_defn) <la_value_print_inner>: New
7501 member.
7502 * language.c (unknown_language_defn, auto_language_defn): Update.
7503 * go-lang.c (go_language_defn): Update.
7504 * f-lang.c (f_language_defn): Update.
7505 * d-lang.c (d_language_defn): Update.
7506 * c-lang.c (c_language_defn, cplus_language_defn)
7507 (asm_language_defn, minimal_language_defn): Update.
7508 * ada-lang.c (ada_language_defn): Update.
7509
7510 2020-03-13 Tom Tromey <tom@tromey.com>
7511
7512 * c-valprint.c (c_value_print): Use common_val_print.
7513
7514 2020-03-13 Tom Tromey <tom@tromey.com>
7515
7516 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7517
7518 2020-03-13 Tom Tromey <tom@tromey.com>
7519
7520 * f-valprint.c (f77_print_array_1, f_val_print): Use
7521 common_val_print.
7522
7523 2020-03-13 Tom Tromey <tom@tromey.com>
7524
7525 * riscv-tdep.c (riscv_print_one_register_info): Use
7526 common_val_print.
7527
7528 2020-03-13 Tom Tromey <tom@tromey.com>
7529
7530 * mi/mi-main.c (output_register): Use common_val_print.
7531
7532 2020-03-13 Tom Tromey <tom@tromey.com>
7533
7534 * infcmd.c (default_print_one_register_info): Use
7535 common_val_print.
7536
7537 2020-03-13 Tom Tromey <tom@tromey.com>
7538
7539 * valprint.h (common_val_print_checked): Declare.
7540 * valprint.c (common_val_print_checked): New function.
7541 * stack.c (print_frame_arg): Use common_val_print_checked.
7542
7543 2020-03-13 Tom Tromey <tom@tromey.com>
7544
7545 * valprint.c (do_val_print): New function, from val_print.
7546 (val_print): Use do_val_print.
7547 (common_val_print): Use do_val_print.
7548
7549 2020-03-13 Tom Tromey <tom@tromey.com>
7550
7551 * valprint.c (value_print): Use scoped_value_mark.
7552
7553 2020-03-13 Tom de Vries <tdevries@suse.de>
7554
7555 PR symtab/25646
7556 * psymtab.c (partial_symtab::partial_symtab): Don't set
7557 globals_offset and statics_offset. Push element onto
7558 current_global_psymbols and current_static_psymbols stacks.
7559 (concat): New function.
7560 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7561 element from current_global_psymbols and current_static_psymbols
7562 stacks. Concat popped elements to global_psymbols and
7563 static_symbols.
7564 (add_psymbol_to_list): Use current_global_psymbols and
7565 current_static_psymbols stacks.
7566 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7567 current_static_psymbols fields.
7568
7569 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7570
7571 * corelow.c (sniff_core_bfd): Remove.
7572 (class core_target) <m_core_vec>: Remove.
7573 (core_target::core_target): Update.
7574 (core_file_fns): Remove.
7575 (deprecated_add_core_fns): Remove.
7576 (default_core_sniffer): Remove.
7577 (sniff_core_bfd): Remove.
7578 (default_check_format): Remove.
7579 (gdb_check_format): Remove.
7580 (core_target_open): Update.
7581 (core_target::get_core_register_section): Update.
7582 (get_core_registers_cb): Update.
7583 (core_target::fetch_registers): Update.
7584 * gdbcore.h (struct core_fns): Remove.
7585 (deprecated_add_core_fns): Remove.
7586 (default_core_sniffer): Remove.
7587 (default_check_format): Remove.
7588
7589 2020-03-12 Tom Tromey <tom@tromey.com>
7590
7591 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7592 CORE_ADDR.
7593 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7594
7595 2020-03-12 Tom Tromey <tom@tromey.com>
7596
7597 * remote.c (remote_target::download_tracepoint)
7598 (remote_target::enable_tracepoint)
7599 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7600 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7601 sprintf_vma.
7602
7603 2020-03-12 Tom Tromey <tom@tromey.com>
7604
7605 * symfile-mem.c: Update CORE_ADDR size assert.
7606
7607 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7608
7609 * selftest.m4: Move to gdbsupport/.
7610 * acinclude.m4: Update path to selftest.m4.
7611
7612 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7613
7614 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7615 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7616 gdbarch-selfselftests.c and selftest-arch.c.
7617 (SUBDIR_UNITTESTS_OBS): Rename to...
7618 (SELFTESTS_OBS): ... this.
7619 (COMMON_SFILES): Remove disasm-selftests.c and
7620 gdbarch-selftests.c.
7621 * configure.ac: Don't add selftest-arch.{c,o} to
7622 CONFIG_{SRCS,OBS}.
7623 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7624 preprocessor conditions.
7625
7626 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7627
7628 * configure.ac: Don't source bfd/development.sh.
7629 * selftest.m4: Modify comment.
7630 * configure: Re-generate.
7631
7632 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7633
7634 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7635 not "true" or "false".
7636 * configure: Re-generate.
7637
7638 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7639
7640 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7641 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7642 renamed to arm_nbsd_supply_gregset.
7643 (fetch_register): Update to call arm_nbsd_supply_gregset.
7644 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7645 (arm_netbsd_nat_target::fetch_registers): Update.
7646 (fetch_elfcore_registers): Removed.
7647 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7648 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7649 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7650 not require NetBSD system headers.
7651 (arm_nbsd_regset): New struct.
7652 (arm_nbsd_iterate_over_regset_sections): New function.
7653 (arm_netbsd_init_abi_common): Updated to call
7654 set_gdbarch_iterate_over_regset_sections.
7655 * arm-nbsd-tdep.h: New file.
7656
7657 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7658
7659 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7660 recursion.
7661
7662 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7663
7664 * configure: Re-generate.
7665
7666 2020-03-11 Tom Tromey <tromey@adacore.com>
7667
7668 * ada-typeprint.c (print_choices): Fix comment.
7669
7670 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7671
7672 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7673 previous item in the list, when the list has no items.
7674
7675 2020-03-11 Tom de Vries <tdevries@suse.de>
7676
7677 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7678 PROP_LOCLIST handling code.
7679
7680 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7681
7682 * buildsym-legacy.c (record_line): Pass extra parameter to
7683 record_line.
7684 * buildsym.c (buildsym_compunit::record_line): Take an extra
7685 parameter, reduce duplication in the line table, and record the
7686 is_stmt flag in the line table.
7687 * buildsym.h (buildsym_compunit::record_line): Add extra
7688 parameter.
7689 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7690 non-statement lines.
7691 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7692 this to the symtab builder.
7693 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7694 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7695 through to dwarf_record_line_1.
7696 * infrun.c (process_event_stop_test): When stepping, don't stop at
7697 a non-statement instruction, and only refresh the step info when
7698 we land in the middle of a line's range. Also add an extra
7699 comment.
7700 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7701 field.
7702 * record-btrace.c (btrace_find_line_range): Only record lines
7703 marked as is-statement.
7704 * stack.c (frame_show_address): Show the frame address if we are
7705 in a non-statement sal.
7706 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7707 (maintenance_print_one_line_table): Print a header for the is_stmt
7708 column, and include is_stmt information in the output.
7709 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7710 preference to non-statements.
7711 (find_pcs_for_symtab_line): Prefer is-statement entries.
7712 (find_line_common): Likewise.
7713 * symtab.h (struct linetable_entry): Add is_stmt field.
7714 (struct symtab_and_line): Likewise.
7715 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7716 arranging the line table.
7717
7718 2020-03-07 Tom de Vries <tdevries@suse.de>
7719
7720 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7721 DIE.
7722
7723 2020-03-07 Tom Tromey <tom@tromey.com>
7724
7725 * valops.c (value_literal_complex): Remove obsolete comment.
7726 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7727 comment.
7728
7729 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7730
7731 * infrun.h: Forward-declare thread_info.
7732 (set_step_info): Add thread_info parameter, add doc.
7733 * infrun.c (set_step_info): Add thread_info parameter, move doc
7734 to header.
7735 * infrun.c (process_event_stop_test): Pass thread to
7736 set_step_info call.
7737 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7738 set_step_info.
7739 (prepare_one_step): Add thread_info parameter, pass it to
7740 set_step_frame and prepare_one_step (recursive) call.
7741 (step_1): Pass thread to prepare_one_step call.
7742 (step_command_fsm::should_stop): Pass thread to
7743 prepare_one_step.
7744 (until_next_fsm): Pass thread to set_step_frame call.
7745 (finish_command): Pass thread to set_step_info call.
7746
7747 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7748
7749 * windows-tdep.c (windows_solib_create_inferior_hook):
7750 Check if inferior is running.
7751
7752 2020-03-06 Tom de Vries <tdevries@suse.de>
7753
7754 * NEWS: Fix "the the".
7755 * ctfread.c: Same.
7756
7757 2020-03-06 Tom de Vries <tdevries@suse.de>
7758
7759 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7760
7761 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7762
7763 * .dir-locals.el: Add a comment referencing the other copies of
7764 this file.
7765
7766 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7767
7768 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7769 psargs.
7770
7771 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7772
7773 * .gitattributes: New file.
7774
7775 2020-03-04 Tom Tromey <tom@tromey.com>
7776
7777 * symmisc.c (print_symbol_bcache_statistics)
7778 (print_objfile_statistics): Update.
7779 * symfile.c (allocate_symtab): Use intern.
7780 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7781 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7782 macro_cache>: Remove.
7783 <string_cache>: New member.
7784 (struct objfile) <intern>: New methods.
7785 * elfread.c (elf_symtab_read): Use intern.
7786 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7787 (dwarf2_compute_name, dwarf2_physname)
7788 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7789 names.
7790 (guess_partial_die_structure_name): Update.
7791 (partial_die_info::fixup): Intern name.
7792 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7793 name.
7794 (dwarf2_name): Intern name. Update.
7795 * buildsym.c (buildsym_compunit::get_macro_table): Use
7796 string_cache.
7797
7798 2020-03-04 Tom Tromey <tom@tromey.com>
7799
7800 * jit.c (bfd_open_from_target_memory): Make "target" const.
7801 * corefile.c (gnutarget): Now const.
7802 * gdbcore.h (gnutarget): Now const.
7803
7804 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7805
7806 * NEWS: Mention support for WOW64 processes.
7807 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7808 (amd64_windows_segment_register_p): Remove static.
7809 (_initialize_amd64_windows_nat): Update.
7810 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7811 * i386-windows-nat.c (context_offset): Update.
7812 (i386_mappings): Rename and remove static.
7813 (i386_windows_segment_register_p): Remove static.
7814 (_initialize_i386_windows_nat): Update.
7815 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7816 (STATUS_WX86_SINGLE_STEP): New macro.
7817 (EnumProcessModulesEx): New macro.
7818 (Wow64SuspendThread): New macro.
7819 (Wow64GetThreadContext): New macro.
7820 (Wow64SetThreadContext): New macro.
7821 (Wow64GetThreadSelectorEntry): New macro.
7822 (windows_set_context_register_offsets): Add static.
7823 (windows_set_segment_register_p): Likewise.
7824 (windows_add_thread): Adapt for WOW64 processes.
7825 (windows_fetch_one_register): Likewise.
7826 (windows_nat_target::fetch_registers): Likewise.
7827 (windows_store_one_register): Likewise.
7828 (display_selector): Likewise.
7829 (display_selectors): Likewise.
7830 (handle_exception): Likewise.
7831 (windows_continue): Likewise.
7832 (windows_nat_target::resume): Likewise.
7833 (windows_add_all_dlls): Likewise.
7834 (do_initial_windows_stuff): Likewise.
7835 (windows_nat_target::attach): Likewise.
7836 (windows_get_exec_module_filename): Likewise.
7837 (windows_nat_target::create_inferior): Likewise.
7838 (windows_xfer_siginfo): Likewise.
7839 (_initialize_loadable): Initialize Wow64SuspendThread,
7840 Wow64GetThreadContext, Wow64SetThreadContext,
7841 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7842 * windows-nat.h (windows_set_context_register_offsets):
7843 Remove declaration.
7844 (windows_set_segment_register_p): Likewise.
7845 (i386_windows_segment_register_p): Add declaration.
7846 (amd64_windows_segment_register_p): Likewise.
7847
7848 2020-03-04 Luis Machado <luis.machado@linaro.org>
7849
7850 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7851 in "info registers" for AArch64/ARM.
7852
7853 The change caused "info registers" to not print GPR's.
7854
7855 gdb/ChangeLog:
7856
7857 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7858
7859 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7860 when reg->group is empty and reggroup is not.
7861
7862 2020-03-03 Tom Tromey <tromey@adacore.com>
7863
7864 * dwarf2/frame.c (struct dwarf2_frame_cache)
7865 <checked_tailcall_bottom, entry_cfa_sp_offset,
7866 entry_cfa_sp_offset_p>: Remove members.
7867 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7868 (dwarf2_frame_prev_register): Don't call
7869 dwarf2_tailcall_sniffer_first.
7870 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7871 * frame-unwind.c (add_unwinder): New fuction.
7872 (frame_unwind_init): Use it. Add tailcall unwinder.
7873
7874 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7875 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7876
7877 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7878 value should be printed as true.
7879
7880 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
7881
7882 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7883 (windows_init_abi): Set and use windows_so_ops.
7884
7885 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7886
7887 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7888 when verifying if dealing with a convenience variable.
7889
7890 2020-03-03 Luis Machado <luis.machado@linaro.org>
7891
7892 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7893
7894 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7895
7896 * infrun.c (gdbarch_supports_displaced_stepping): New.
7897 (use_displaced_stepping): Break up conditions in smaller pieces.
7898 Use gdbarch_supports_displaced_stepping.
7899 (displaced_step_prepare_throw): Use
7900 gdbarch_supports_displaced_stepping.
7901
7902 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7903
7904 * NEWS: Mention new behaviour of the history filename.
7905 * top.c (write_history_p): Add comment.
7906 (show_write_history_p): Add header comment, give a different
7907 message when history writing is on, but the history filename is
7908 empty.
7909 (history_filename): Add comment.
7910 (history_filename_empty): New function.
7911 (show_history_filename): Add header comment, give a different
7912 message when the filename is empty.
7913 (init_history): Compare history_filename against nullptr, and only
7914 read history if the filename is not empty.
7915 (set_history_filename): Add header comment, and only make
7916 non-empty filenames absolute.
7917 (init_main): Make the filename argument to 'set history filename'
7918 optional.
7919
7920 2020-03-02 Christian Biesinger <cbiesinger@google.com>
7921
7922 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7923 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7924 (fetch_fp_register): Update.
7925 (fetch_fp_regs): Update.
7926 (store_fp_register): Update.
7927 (store_fp_regs): Update.
7928 (arm_netbsd_nat_target::read_description): New function.
7929 (fetch_elfcore_registers): Update.
7930
7931 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7932
7933 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7934 general_thread if the stop reply is missing a thread-id.
7935 (remote_target::process_stop_reply): Use the first non-exited
7936 thread if the target didn't pass a thread-id.
7937 * infrun.c (do_target_wait): Move call to
7938 switch_to_inferior_no_thread to ....
7939 (do_target_wait_1): ... here.
7940
7941 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7942
7943 * debuginfod-support.c: Include defs.h first.
7944
7945 2020-02-28 Tom de Vries <tdevries@suse.de>
7946
7947 * symfile.c (set_initial_language): Use default language for lookup.
7948
7949 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
7950
7951 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7952 reader variable, pass `this` to read_cutu_die_from_dwo.
7953
7954 2020-02-27 Aaron Merey <amerey@redhat.com>
7955
7956 * source.c (open_source_file): Check for nullptr when computing
7957 srcpath.
7958
7959 2020-02-27 Tom Tromey <tromey@adacore.com>
7960
7961 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7962 member.
7963 (dwarf2_add_field): Don't update nfields.
7964 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7965
7966 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7967
7968 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7969 abs.
7970
7971 2020-02-26 Tom Tromey <tom@tromey.com>
7972
7973 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7974 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7975 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7976 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7977 per_cu_data.
7978
7979 2020-02-26 Tom Tromey <tom@tromey.com>
7980
7981 * dwarf2/index-write.c (psym_index_map): Change type.
7982 (add_address_entry_worker, write_one_signatured_type)
7983 (recursively_count_psymbols, recursively_write_psymbols)
7984 (class debug_names, psyms_seen_size, write_gdbindex)
7985 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7986
7987 2020-02-26 Aaron Merey <amerey@redhat.com>
7988
7989 * Makefile.in: Handle optional debuginfod support.
7990 * NEWS: Update.
7991 * README: Add --with-debuginfod summary.
7992 * config.in: Regenerate.
7993 * configure: Regenerate.
7994 * configure.ac: Handle optional debuginfod support.
7995 * debuginfod-support.c: debuginfod helper functions.
7996 * debuginfod-support.h: Ditto.
7997 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7998 summary.
7999 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8000 when a dwz file cannot be found.
8001 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8002 debuginfo file cannot be found.
8003 * source.c (open_source_file): Query debuginfod servers when a
8004 source file cannot be found.
8005 * top.c (print_gdb_configuration): Include
8006 --{with,without}-debuginfod in the output.
8007
8008 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8009
8010 * thread.c (thr_try_catch_cmd): Print thread name.
8011
8012 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8013
8014 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8015 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8016 dwarf2_fetch_die_type_sect_off): Move to...
8017 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8018 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8019 dwarf2_fetch_die_type_sect_off): ... here.
8020 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8021 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8022 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8023
8024 2020-02-26 Tom de Vries <tdevries@suse.de>
8025
8026 PR gdb/25603
8027 * symfile.c (set_initial_language): Exit-early if
8028 language_mode == language_mode_manual.
8029
8030 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8031
8032 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8033 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8034 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8035
8036 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8037
8038 * gdbtypes.c (create_array_type_with_stride): Handle negative
8039 array strides.
8040 * valarith.c (value_subscripted_rvalue): Likewise.
8041
8042 2020-02-25 Luis Machado <luis.machado@linaro.org>
8043
8044 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8045
8046 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8047
8048 * loc.h (dwarf2_get_die_type): Move to...
8049 * read.h (dwarf2_get_die_type): ... here.
8050 * read.c (dwarf2_get_die_type): Move doc to header.
8051
8052 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8053
8054 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8055 'gnulib/Makefile.in' to the list.
8056
8057 2020-02-24 Tom Tromey <tom@tromey.com>
8058
8059 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8060 Remove.
8061 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8062 XOBNEWVEC.
8063
8064 2020-02-24 Tom Tromey <tom@tromey.com>
8065
8066 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8067 New method.
8068 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8069 (dw2_do_instantiate_symtab, dw2_get_file_names)
8070 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8071
8072 2020-02-24 Tom Tromey <tom@tromey.com>
8073
8074 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8075 make_scoped_restore.
8076 (dwarf2_psymtab::read_symtab): Don't clear
8077 reading_partial_symbols.
8078
8079 2020-02-24 Tom de Vries <tdevries@suse.de>
8080
8081 PR gdb/25592
8082 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8083
8084 2020-02-24 Tom de Vries <tdevries@suse.de>
8085
8086 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8087 commands layout next/prev/regs.
8088
8089 2020-02-22 Tom Tromey <tom@tromey.com>
8090
8091 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8092 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8093
8094 2020-02-22 Tom Tromey <tom@tromey.com>
8095
8096 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8097
8098 2020-02-22 Tom Tromey <tom@tromey.com>
8099
8100 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8101 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8102 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8103 * tui/tui.c (_initialize_tui): Add usage text.
8104
8105 2020-02-22 Tom Tromey <tom@tromey.com>
8106
8107 * tui/tui-win.c (tui_set_focus_command)
8108 (tui_set_win_height_command): Use error_no_arg.
8109 (_initialize_tui_win): Update help text.
8110 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8111
8112 2020-02-22 Tom Tromey <tom@tromey.com>
8113
8114 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8115 * tui/tui-disasm.h (struct tui_disasm_window)
8116 <display_start_addr>: Declare.
8117 * tui/tui-source.h (struct tui_source_window)
8118 <display_start_addr>: Declare.
8119 * tui/tui-winsource.h (struct tui_source_window_base)
8120 <show_source_line, display_start_addr>: New methods.
8121 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8122 Rename and move to protected section.
8123 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8124 (tui_source_window_base::do_erase_source_content): Update.
8125 (tui_source_window_base::show_source_line): Now a method.
8126 (tui_source_window_base::show_source_content)
8127 (tui_source_window_base::tui_source_window_base)
8128 (tui_source_window_base::rerender)
8129 (tui_source_window_base::refill)
8130 (tui_source_window_base::do_scroll_horizontal)
8131 (tui_source_window_base::set_is_exec_point_at)
8132 (tui_source_window_base::update_breakpoint_info)
8133 (tui_source_window_base::update_exec_info): Update.
8134 * tui/tui-source.c (tui_source_window::set_contents)
8135 (tui_source_window::showing_source_p)
8136 (tui_source_window::do_scroll_vertical)
8137 (tui_source_window::location_matches_p)
8138 (tui_source_window::line_is_displayed): Update.
8139 (tui_source_window::display_start_addr): New method.
8140 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8141 (tui_disasm_window::do_scroll_vertical)
8142 (tui_disasm_window::location_matches_p): Update.
8143 (tui_disasm_window::display_start_addr): New method.
8144
8145 2020-02-22 Tom Tromey <tom@tromey.com>
8146
8147 * NEWS: Add entry for gdb.register_window_type.
8148 * tui/tui-layout.h (window_factory): New typedef.
8149 (tui_register_window): Declare.
8150 * tui/tui-layout.c (saved_tui_windows): New global.
8151 (tui_apply_current_layout): Use it.
8152 (tui_register_window): New function.
8153 * python/python.c (do_start_initialization): Call
8154 gdbpy_initialize_tui.
8155 (python_GdbMethods): Add "register_window_type" function.
8156 * python/python-internal.h (gdbpy_register_tui_window)
8157 (gdbpy_initialize_tui): Declare.
8158 * python/py-tui.c: New file.
8159 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8160
8161 2020-02-22 Tom Tromey <tom@tromey.com>
8162
8163 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8164
8165 2020-02-22 Tom Tromey <tom@tromey.com>
8166
8167 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8168 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8169 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8170 (tui_set_win_focus_to): Move from tui-win.c.
8171
8172 2020-02-22 Tom Tromey <tom@tromey.com>
8173
8174 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8175 functions.
8176 (known_window_types): New global.
8177 (tui_get_window_by_name): Reimplement.
8178 (initialize_known_windows): New function.
8179 (validate_window_name): Rewrite.
8180 (_initialize_tui_layout): Call initialize_known_windows.
8181
8182 2020-02-22 Tom Tromey <tom@tromey.com>
8183
8184 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8185 Remove constants.
8186 * tui/tui-winsource.h (struct tui_source_window_base)
8187 <tui_source_window_base>: Remove parameter.
8188 * tui/tui-winsource.c
8189 (tui_source_window_base::tui_source_window_base): Remove
8190 parameter.
8191 (tui_source_window_base::refill): Update.
8192 * tui/tui-stack.h (struct tui_locator_window)
8193 <tui_locator_window>: Update.
8194 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8195 Default the constructor.
8196 * tui/tui-regs.h (struct tui_data_item_window)
8197 <tui_data_item_window>: Default the constructor.
8198 (struct tui_data_window) <tui_data_window>: Likewise.
8199 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8200 Default the constructor.
8201 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8202 Default the constructor.
8203 <type>: Remove.
8204 (struct tui_win_info) <tui_win_info>: Default the constructor.
8205 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8206 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8207 Default the constructor.
8208
8209 2020-02-22 Tom Tromey <tom@tromey.com>
8210
8211 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8212 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8213 * tui/tui-win.c (tui_resize_all): Don't call
8214 tui_delete_invisible_windows.
8215 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8216 done.
8217 (tui_set_layout): Update.
8218 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8219 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8220 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8221
8222 2020-02-22 Tom Tromey <tom@tromey.com>
8223
8224 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8225 correctly.
8226
8227 2020-02-22 Tom Tromey <tom@tromey.com>
8228
8229 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8230
8231 2020-02-22 Tom Tromey <tom@tromey.com>
8232
8233 * tui/tui-winsource.h (struct tui_source_window_iterator)
8234 <inner_iterator>: New etytypedef.
8235 <tui_source_window_iterator>: Take "end" parameter.
8236 <tui_source_window_iterator>: Take iterator.
8237 <operator*, advance>: Update.
8238 <m_iter>: Change type.
8239 <m_end>: New field.
8240 (struct tui_source_windows) <begin, end>: Update.
8241 * tui/tui-layout.c (tui_windows): New global.
8242 (tui_apply_current_layout): Clear tui_windows.
8243 (tui_layout_window::apply): Update tui_windows.
8244 * tui/tui-data.h (tui_windows): Declare.
8245 (all_tui_windows): Now inline function.
8246 (class tui_window_iterator, struct all_tui_windows): Remove.
8247
8248 2020-02-22 Tom Tromey <tom@tromey.com>
8249
8250 PR tui/17850:
8251 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8252 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8253 "height" argument.
8254 (class tui_layout_window) <get_sizes>: Likewise.
8255 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8256 argument.
8257 <get_sizes>: Add "height" argument.
8258 <m_vertical>: New field.
8259 * tui/tui-layout.c (tui_layout_split::clone): Update.
8260 (tui_layout_split::get_sizes): Add "height" argument.
8261 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8262 (tui_new_layout_command): Parse "-horizontal".
8263 (_initialize_tui_layout): Update help string.
8264 (tui_layout_split::specification): Add "-horizontal" when needed.
8265 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8266 argument.
8267 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8268 New methods.
8269
8270 2020-02-22 Tom Tromey <tom@tromey.com>
8271
8272 * tui/tui-layout.h (enum tui_adjust_result): New.
8273 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8274 (class tui_layout_window) <adjust_size>: Return
8275 tui_adjust_result. Rewrite.
8276 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8277 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8278
8279 2020-02-22 Tom Tromey <tom@tromey.com>
8280
8281 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8282 parameter and return types.
8283 (class tui_layout_base) <specification>: Add "depth".
8284 (class tui_layout_window) <specification>: Add "depth".
8285 (class tui_layout_split) <specification>: Add "depth".
8286 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8287 and return types.
8288 (tui_new_layout_command): Parse sub-layouts.
8289 (_initialize_tui_layout): Update help string.
8290 (tui_layout_window::specification): Add "depth".
8291 (add_layout_command): Update.
8292
8293 2020-02-22 Tom Tromey <tom@tromey.com>
8294
8295 * NEWS: Add "tui new-layout" item.
8296 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8297 Add new-layout command to help text.
8298 (validate_window_name): New function.
8299 (tui_new_layout_command): New function.
8300 (_initialize_tui_layout): Register "new-layout".
8301 (tui_layout_window::specification): New method.
8302 (tui_layout_window::specification): New method.
8303 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8304 method.
8305 (class tui_layout_window) <specification>: New method.
8306 (class tui_layout_split) <specification>: New method.
8307
8308 2020-02-22 Tom Tromey <tom@tromey.com>
8309
8310 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8311 * tui/tui-win.c (window_name_completer): Update comment.
8312 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8313 Declare method.
8314 (class tui_layout_window) <replace_window>: Likewise.
8315 (class tui_layout_split) <replace_window>: Likewise.
8316 (tui_set_layout): Don't declare.
8317 (tui_set_initial_layout): Declare function.
8318 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8319 (asm_regs_layout): New globals.
8320 (tui_current_layout, show_layout): Remove.
8321 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8322 (find_layout, tui_apply_layout): New function.
8323 (layout_completer): Remove.
8324 (tui_next_layout): Reimplement.
8325 (tui_next_layout_command): New function.
8326 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8327 (tui_regs_layout): Reimplement.
8328 (tui_regs_layout_command): New function.
8329 (extract_display_start_addr): Rewrite.
8330 (next_layout, prev_layout): Remove.
8331 (tui_layout_window::replace_window): New method.
8332 (tui_layout_split::replace_window): New method.
8333 (destroy_layout): New function.
8334 (layout_list): New global.
8335 (add_layout_command): New function.
8336 (initialize_layouts): Update.
8337 (tui_layout_command): New function.
8338 (_initialize_tui_layout): Install "layout" commands.
8339 * tui/tui-data.h (enum tui_layout_type): Remove.
8340 (tui_current_layout): Don't declare.
8341
8342 2020-02-22 Tom Tromey <tom@tromey.com>
8343
8344 * tui/tui-regs.c (tui_reg_layout): Remove.
8345 (tui_reg_command): Use tui_regs_layout.
8346 * tui/tui-layout.h (tui_reg_command): Declare.
8347 * tui/tui-layout.c (tui_reg_command): New function.
8348
8349 2020-02-22 Tom Tromey <tom@tromey.com>
8350
8351 * tui/tui.c (tui_rl_delete_other_windows): Call
8352 tui_remove_some_windows.
8353 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8354 Declare method.
8355 (class tui_layout_window) <remove_windows>: New method.
8356 (class tui_layout_split) <remove_windows>: Declare.
8357 (tui_remove_some_windows): Declare.
8358 * tui/tui-layout.c (tui_remove_some_windows): New function.
8359 (tui_layout_split::remove_windows): New method.
8360
8361 2020-02-22 Tom Tromey <tom@tromey.com>
8362
8363 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8364 * tui/tui-layout.h (tui_next_layout): Declare.
8365 * tui/tui-layout.c (tui_next_layout): New function.
8366
8367 2020-02-22 Tom Tromey <tom@tromey.com>
8368
8369 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8370 correct coordinates.
8371
8372 2020-02-22 Tom Tromey <tom@tromey.com>
8373
8374 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8375 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8376 DATA_WIN case.
8377
8378 2020-02-22 Tom Tromey <tom@tromey.com>
8379
8380 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8381 TUI_DISASM_WIN, not tui_win_list.
8382
8383 2020-02-22 Tom Tromey <tom@tromey.com>
8384
8385 * valprint.c (generic_val_print_enum_1)
8386 (val_print_type_code_flags): Style member names.
8387 * rust-lang.c (val_print_struct, rust_print_enum)
8388 (rust_print_struct_def, rust_internal_print_type): Style member
8389 names.
8390 * p-valprint.c (pascal_object_print_value_fields): Style member
8391 names. Only call fprintf_symbol_filtered for static members.
8392 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8393 * f-valprint.c (f_val_print): Style member names.
8394 * f-typeprint.c (f_type_print_base): Style member names.
8395 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8396 call fprintf_symbol_filtered for static members.
8397 (cp_print_class_member): Style member names.
8398 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8399 member names.
8400 * ada-valprint.c (ada_print_scalar): Style enum names.
8401 (ada_val_print_enum): Likewise.
8402 * ada-typeprint.c (print_enum_type): Style enum names.
8403
8404 2020-02-21 Tom Tromey <tom@tromey.com>
8405
8406 * psympriv.h (struct partial_symtab): Update comment.
8407
8408 2020-02-21 Tom Tromey <tromey@adacore.com>
8409
8410 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8411 type is CORE_ADDR.
8412
8413 2020-02-21 Tom de Vries <tdevries@suse.de>
8414
8415 PR gdb/25534
8416 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8417 if dependencies[i]->user != NULL.
8418
8419 2020-02-21 Ali Tamur <tamur@google.com>
8420
8421 * dwarf2/read.c (dwarf2_name): Add null check.
8422
8423 2020-02-20 Tom Tromey <tom@tromey.com>
8424
8425 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8426 ">=", in binary search.
8427 (dwarf2_find_containing_comp_unit): New overload.
8428 (run_test): New self-test.
8429 (_initialize_dwarf2_read): Register new test.
8430
8431 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8432
8433 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8434 * riscv-tdep.h: Likewise.
8435 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8436 rv32-only CSR.
8437 * features/riscv/64bit-csr.xml: Regenerated.
8438
8439 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8440 Tom Tromey <tom@tromey.com>
8441
8442 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8443 of 'fputc_unfiltered'.
8444 (putchar_unfiltered): Call 'fputc_unfiltered'.
8445 (fputc_unfiltered): Call 'fputs_unfiltered'.
8446
8447 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8448
8449 * config.in: Regenerate.
8450 * configure: Regenerate.
8451 * configure.ac: Add --with-python-libdir option.
8452 * main.c: Use WITH_PYTHON_LIBDIR.
8453
8454 2020-02-19 Tom Tromey <tom@tromey.com>
8455
8456 * symtab.c (general_symbol_info::compute_and_set_names): Use
8457 obstack_strndup. Simplify call to symbol_set_demangled_name.
8458
8459 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8460
8461 * dwarf2/read.c (allocate_signatured_type_table,
8462 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8463 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8464 Remove objfile parameter, update all callers.
8465
8466 2020-02-19 Doug Evans <dje@google.com>
8467
8468 PR rust/25535
8469 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8470 rust_enum_variant calculation.
8471
8472 2020-02-19 Tom Tromey <tromey@adacore.com>
8473
8474 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8475
8476 2020-02-19 Tom Tromey <tromey@adacore.com>
8477
8478 * ada-lang.c (cache_symbol): Use obstack_strdup.
8479
8480 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8481
8482 * configure: Regenerate.
8483
8484 2020-02-19 Tom Tromey <tromey@adacore.com>
8485
8486 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8487 NULL check.
8488
8489 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8490
8491 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8492
8493 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8494
8495 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8496 if GDBSERVER is not defined.
8497 (riscv_tdesc_cache): Likewise, also store const target_desc.
8498 (STATIC_IN_GDB): Define.
8499 (riscv_create_target_description): Update declaration with
8500 STATIC_IN_GDB.
8501 (riscv_lookup_target_description): New function, only define if
8502 GDBSERVER is not defined.
8503 * arch/riscv.h (riscv_create_target_description): Declare only
8504 when GDBSERVER is defined.
8505 (riscv_lookup_target_description): New declaration when GDBSERVER
8506 is not defined.
8507 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8508 (riscv_linux_read_features): ...this, and return
8509 riscv_gdbarch_features instead of target_desc.
8510 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8511 (riscv_linux_read_description): Rename to...
8512 (riscv_linux_read_features): ...this.
8513 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8514 Update to use riscv_gdbarch_features and
8515 riscv_lookup_target_description.
8516 * riscv-tdep.c (riscv_find_default_target_description): Use
8517 riscv_lookup_target_description instead of
8518 riscv_create_target_description.
8519
8520 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8521
8522 * valprint.c (generic_val_print_enum_1): When printing a flag
8523 enum with value 0 and there is no enumerator with value 0, print
8524 just "0" instead of "(unknown: 0x0)".
8525
8526 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8527
8528 * valprint.c (generic_val_print_enum_1): Print unknown part of
8529 flag enum in hex.
8530
8531 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8532
8533 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8534 flag enums to contain duplicate enumerators.
8535 * valprint.c (generic_val_print_enum_1): Update comment.
8536
8537 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8538
8539 * dwarf2/read.c: Include "count-one-bits.h".
8540 (update_enumeration_type_from_children): If an enumerator has
8541 multiple bits set, don't treat the enumeration as a "flag enum".
8542 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8543 of flag enums have 0 or 1 bit set.
8544
8545 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8546
8547 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8548 conversion.
8549 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8550 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8551 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8552 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8553 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8554
8555 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8556
8557 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8558
8559 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8560
8561 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8562 displaced_step_closure_up.
8563 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8564 (struct displaced_step_closure_up):
8565 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8566 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8567 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8568 Likewise.
8569 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8570 * gdbarch.c, gdbarch.h: Re-generate.
8571 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8572 displaced_step_closure_up.
8573 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8574 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8575 * infrun.h (displaced_step_closure_up): New type alias.
8576 (struct displaced_step_inferior_state) <step_closure>: Change
8577 type to displaced_step_closure_up.
8578 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8579 displaced_step_closure_up.
8580 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8581
8582 2020-02-14 Tom Tromey <tom@tromey.com>
8583
8584 * minidebug.c (gnu_debug_key): New global.
8585 (find_separate_debug_file_in_section): Use it.
8586
8587 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8588
8589 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8590 std::unique_ptr.
8591 * gdbarch.c: Re-generate.
8592 * gdbarch.h: Re-generate.
8593 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8594 change.
8595 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8596 type to std::unique_ptr.
8597 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8598 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8599 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8600 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8601 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8602 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8603 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8604 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8605 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8606
8607 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8608
8609 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8610 std::unique_ptr.
8611 (displaced_step_clear): Rename to...
8612 (displaced_step_reset): ... this. Just call displaced->reset ().
8613 (displaced_step_clear_cleanup): Rename to...
8614 (displaced_step_reset_cleanup): ... this.
8615 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8616 (displaced_step_fixup): Likewise.
8617 (resume_1): Likewise.
8618 (handle_inferior_event): Restore child's memory before calling
8619 displaced_step_fixup on the parent.
8620 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8621 to std::unique_ptr.
8622 <step_closure>: Change type to std::unique_ptr.
8623
8624 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8625
8626 * arm-tdep.c: Include count-one-bits.h.
8627 (cleanup_block_store_pc): Use count_one_bits.
8628 (cleanup_block_load_pc): Use count_one_bits.
8629 (arm_copy_block_xfer): Use count_one_bits.
8630 (thumb2_copy_block_xfer): Use count_one_bits.
8631 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8632 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8633 (thumb_get_next_pcs_raw): Use count_one_bits.
8634 (arm_get_next_pcs_raw): Use count_one_bits_l.
8635 * arch/arm.c (bitcount): Remove.
8636 * arch/arm.h (bitcount): Remove.
8637
8638 2020-02-14 Tom Tromey <tromey@adacore.com>
8639
8640 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8641 Update.
8642 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8643 * dwarf2/loc.c (call_site_find_chain_1): Return
8644 unique_xmalloc_ptr.
8645 (call_site_find_chain): Likewise.
8646
8647 2020-02-14 Richard Biener <rguenther@suse.de>
8648
8649 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8650 on expression with division operators.
8651
8652 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8653
8654 * MAINTAINERS (Write After Approval): Adding myself.
8655
8656 2020-02-12 Tom Tromey <tom@tromey.com>
8657
8658 * event-loop.c (event_data, gdb_event, event_handler_func):
8659 Remove.
8660
8661 2020-02-12 Tom Tromey <tom@tromey.com>
8662
8663 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8664 (dwarf2_frame_objfile_data): Add comment.
8665 (find_comp_unit, set_comp_unit): New functions.
8666 (dwarf2_frame_find_fde): Use find_comp_unit.
8667 (dwarf2_build_frame_info): Use set_comp_unit.
8668
8669 2020-02-12 Tom Tromey <tom@tromey.com>
8670
8671 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8672 (comp_unit): Don't initialize objfile.
8673 (execute_cfa_program): Add text_offset parameter.
8674 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8675 (dwarf2_frame_cache): Update.
8676 (dwarf2_build_frame_info): Don't set "objfile" member.
8677
8678 2020-02-12 Tom Tromey <tom@tromey.com>
8679
8680 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8681 (decode_frame_entry): Likewise.
8682 (dwarf2_build_frame_info): Update.
8683
8684 2020-02-12 Tom Tromey <tom@tromey.com>
8685
8686 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8687 (decode_frame_entry_1): Use the comp_unit obstack.
8688
8689 2020-02-12 Tom Tromey <tom@tromey.com>
8690
8691 * dwarf2/frame.c (struct comp_unit): Add initializers and
8692 constructor.
8693 (dwarf2_frame_objfile_data): Store a comp_unit.
8694 (dwarf2_frame_find_fde): Update.
8695 (dwarf2_build_frame_info): Use "new".
8696
8697 2020-02-12 Tom Tromey <tom@tromey.com>
8698
8699 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8700 (dwarf2_fde_table): Typedef for std::vector.
8701 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8702 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8703 (decode_frame_entry): Update.
8704 (dwarf2_build_frame_info): Use "new".
8705
8706 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8707
8708 * arm-tdep.c (arm_gdbarch_init): Update.
8709 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8710 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8711 have_neon, is_m>: Change to bool.
8712
8713 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8714
8715 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8716
8717 2020-02-12 Tom Tromey <tom@tromey.com>
8718
8719 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8720
8721 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8722
8723 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8724 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8725
8726 2020-02-11 Tom Tromey <tom@tromey.com>
8727
8728 * psymtab.h: Update comment.
8729
8730 2020-02-11 Tom Tromey <tom@tromey.com>
8731
8732 * gdb_obstack.h (struct auto_obstack): Use
8733 DISABLE_COPY_AND_ASSIGN.
8734
8735 2020-02-11 Tom Tromey <tom@tromey.com>
8736
8737 * dwarf2/frame.h (struct objfile): Don't forward declare.
8738
8739 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8740
8741 * cris-tdep.c (cris_supply_gregset): Change signature to match
8742 what struct regset expects.
8743 (cris_regset): New struct.
8744 (fetch_core_registers): Remove.
8745 (cris_iterate_over_regset_sections): New function.
8746 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8747 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8748
8749 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8750
8751 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8752 registers.
8753
8754 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8755
8756 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8757
8758 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8759
8760 * configure: Re-generate.
8761
8762 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8763
8764 * configure: Re-generate.
8765
8766 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8767
8768 * acinclude: Update warning.m4 path.
8769 * warning.m4: Move to gdbsupport.
8770
8771 2020-02-11 Tom Tromey <tromey@adacore.com>
8772
8773 * remote.c (remote_console_output): Update.
8774 * printcmd.c (printf_command): Update.
8775 * event-loop.c (gdb_wait_for_event): Update.
8776 * linux-nat.c (sigchld_handler): Update.
8777 * remote-sim.c (gdb_os_write_stdout): Update.
8778 (gdb_os_flush_stdout): Update.
8779 (gdb_os_flush_stderr): Update.
8780 (gdb_os_write_stderr): Update.
8781 * exceptions.c (print_exception): Update.
8782 * remote-fileio.c (remote_fileio_func_read): Update.
8783 (remote_fileio_func_write): Update.
8784 * tui/tui.c (tui_enable): Update.
8785 * tui/tui-interp.c (tui_interp::init): Update.
8786 * utils.c (init_page_info): Update.
8787 (putchar_unfiltered, fputc_unfiltered): Update.
8788 (gdb_flush): Update.
8789 (emit_style_escape): Update.
8790 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8791 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8792 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8793 (stderr_file::write): Update.
8794 (stderr_file::puts): Update.
8795 * ui-file.h (ui_file_isatty, ui_file_write)
8796 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8797 (ui_file_puts): Don't declare.
8798
8799 2020-02-10 Tom de Vries <tdevries@suse.de>
8800
8801 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8802 sentinel to char *.
8803
8804 2020-02-09 Tom de Vries <tdevries@suse.de>
8805
8806 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8807 filename if it matches "<artificial>".
8808
8809 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8810
8811 * windows-tdep.c (struct enum_value_name): New struct.
8812 (create_enum): New function.
8813 (windows_get_siginfo_type): Create and use enum types.
8814
8815 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8816
8817 * NEWS: Mention $_siginfo support for Windows.
8818 * windows-nat.c (handle_exception): Set siginfo_er.
8819 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8820 (windows_xfer_siginfo): New function.
8821 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8822 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8823 (init_windows_gdbarch_data): New function.
8824 (get_windows_gdbarch_data): New function.
8825 (windows_get_siginfo_type): New function.
8826 (windows_init_abi): Register windows_get_siginfo_type.
8827 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8828
8829 2020-02-08 Tom Tromey <tom@tromey.com>
8830
8831 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8832 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8833 <keep>: Declare method.
8834 <m_keep>: Remove member.
8835 <~cutu_reader>: Remove.
8836 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8837 (cutu_reader::cutu_reader): Update.
8838 (cutu_reader::keep): Rename from ~cutu_reader.
8839 (process_psymtab_comp_unit, build_type_psymtabs_1)
8840 (process_skeletonless_type_unit, load_partial_comp_unit)
8841 (load_full_comp_unit, dwarf2_read_addr_index)
8842 (read_signatured_type): Update.
8843
8844 2020-02-08 Tom Tromey <tom@tromey.com>
8845
8846 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8847 "want_partial_unit" parameter.
8848 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8849 Inline check for DW_TAG_partial_unit.
8850 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8851
8852 2020-02-08 Tom Tromey <tom@tromey.com>
8853
8854 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8855 read.c.
8856 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8857 read.c.
8858
8859 2020-02-08 Tom Tromey <tom@tromey.com>
8860
8861 * dwarf2/read.c (read_address): Move to comp-unit.c.
8862 (dwarf2_rnglists_process, dwarf2_ranges_process)
8863 (read_attribute_value, dwarf_decode_lines_1)
8864 (var_decode_location, decode_locdesc): Update.
8865 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8866 read.c. Remove "cu" parameter.
8867 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8868 method.
8869
8870 2020-02-08 Tom Tromey <tom@tromey.com>
8871
8872 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8873 (read_indirect_line_string): Update.
8874 * dwarf2/comp-unit.c (read_offset): Remove.
8875 (read_comp_unit_head): Update.
8876 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8877 method.
8878 (read_offset): Don't declare.
8879
8880 2020-02-08 Tom Tromey <tom@tromey.com>
8881
8882 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8883 * dwarf2/read.c (struct comp_unit_head): Move to
8884 dwarf2/comp-unit.h.
8885 (enum class rcuh_kind): Move to comp-unit.h.
8886 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8887 (read_comp_unit_head, error_check_comp_unit_head)
8888 (read_and_check_comp_unit_head): Move to comp-unit.c.
8889 (read_offset, dwarf_unit_type_name): Likewise.
8890 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8891 (cutu_reader::cutu_reader, read_call_site_scope)
8892 (find_partial_die, follow_die_offset): Update.
8893 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8894
8895 2020-02-08 Tom Tromey <tom@tromey.com>
8896
8897 * dwarf2/read.c (read_offset_1): Move to leb.c.
8898 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8899 (dwarf_decode_macro_bytes): Update.
8900 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8901 * dwarf2/leb.h (read_offset): Declare.
8902
8903 2020-02-08 Tom Tromey <tom@tromey.com>
8904
8905 * dwarf2/read.c (dwarf2_section_size): Remove.
8906 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8907 Update.
8908 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8909
8910 2020-02-08 Tom Tromey <tom@tromey.com>
8911
8912 * dwarf2/read.c (read_initial_length): Move to leb.c.
8913 * dwarf2/leb.h (read_initial_length): Declare.
8914 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8915 handle_nonstd parameter.
8916 * dwarf2/frame.c (read_initial_length): Remove.
8917 (decode_frame_entry_1): Update.
8918
8919 2020-02-08 Tom Tromey <tom@tromey.com>
8920
8921 * dwarf2/loc.c (dwarf2_find_location_expression)
8922 (dwarf_evaluate_loc_desc::get_tls_address)
8923 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8924 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8925 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8926 (dwarf2_compile_property_to_c)
8927 (dwarf2_loc_desc_get_symbol_read_needs)
8928 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8929 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8930 (loclist_describe_location, loclist_tracepoint_var_ref)
8931 (loclist_generate_c_location): Update.
8932 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8933 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8934 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8935 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8936 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8937 (dwarf2_per_cu_data::addr_size)
8938 (dwarf2_per_cu_data::ref_addr_size)
8939 (dwarf2_per_cu_data::text_offset)
8940 (dwarf2_per_cu_data::addr_type): Now methods.
8941 (per_cu_header_read_in): Make per_cu "const".
8942 (dwarf2_version): Remove.
8943 (dwarf2_per_cu_data::int_type): Now a method.
8944 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8945 (set_die_type, read_array_type, read_subrange_index_type)
8946 (read_tag_string_type, read_subrange_type): Update.
8947 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8948 offset_size, ref_addr_size, text_offset, addr_type, version,
8949 objfile, int_type, addr_sized_int_type>: Declare methods.
8950
8951 2020-02-08 Tom Tromey <tom@tromey.com>
8952
8953 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8954 Move earlier.
8955
8956 2020-02-08 Tom Tromey <tom@tromey.com>
8957
8958 * dwarf2/read.h (dwarf_line_debug): Declare.
8959 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8960 * dwarf2/read.c: Move line_header code to new files.
8961 (dwarf_line_debug): No longer static.
8962 * dwarf2/line-header.c: New file.
8963 * dwarf2/line-header.h: New file.
8964
8965 2020-02-08 Tom Tromey <tom@tromey.com>
8966
8967 * dwarf2/read.c (struct line_header) <file_full_name,
8968 file_file_name>: Return unique_xmalloc_ptr.
8969 (line_header::file_file_name): Update.
8970 (line_header::file_full_name): Update.
8971 (dw2_get_file_names_reader): Update.
8972 (macro_start_file): Update.
8973
8974 2020-02-08 Tom Tromey <tom@tromey.com>
8975
8976 * dwarf2/read.c (struct line_header) <file_full_name,
8977 file_file_name>: Declare methods.
8978 (dw2_get_file_names_reader): Update.
8979 (file_file_name): Now a method.
8980 (file_full_name): Likewise.
8981 (macro_start_file): Update.
8982
8983 2020-02-08 Tom Tromey <tom@tromey.com>
8984
8985 * dwarf2/read.c (dwarf_always_disassemble)
8986 (show_dwarf_always_disassemble): Move to loc.c.
8987 (_initialize_dwarf2_read): Move "always-disassemble" registration
8988 to loc.c.
8989 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8990 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8991 static.
8992 (show_dwarf_always_disassemble): Move from read.c.
8993 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8994
8995 2020-02-08 Tom Tromey <tom@tromey.com>
8996
8997 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8998 (create_quick_file_names_table): Return htab_up.
8999 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9000 Update.
9001 * dwarf2/read.h (struct dwarf2_per_objfile)
9002 <quick_file_names_table>: Now htab_up.
9003
9004 2020-02-08 Tom Tromey <tom@tromey.com>
9005
9006 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9007
9008 2020-02-08 Tom Tromey <tom@tromey.com>
9009
9010 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9011 Rewrite.
9012 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9013 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9014 (abbrev_table::abbrev_table): No longer inline.
9015 (ABBREV_HASH_SIZE): Remove.
9016 (abbrev_table::m_abbrevs): Now an htab_up.
9017
9018 2020-02-08 Tom Tromey <tom@tromey.com>
9019
9020 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9021 (cutu_reader): Update.
9022 (build_type_psymtabs_1): Update.
9023 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9024 (abbrev_table::alloc_abbrev): Update.
9025 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9026 (abbrev_table::read): New static method, renamed from
9027 abbrev_table_read_table.
9028 (abbrev_table::alloc_abbrev)
9029 (abbrev_table::add_abbrev): Now private.
9030 (abbrev_table::abbrev_table): Now private.
9031 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9032
9033 2020-02-08 Tom Tromey <tom@tromey.com>
9034
9035 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9036 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9037 htab_up.
9038
9039 2020-02-08 Tom Tromey <tom@tromey.com>
9040
9041 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9042 htab_up.
9043 (lookup_dwo_unit_in_dwp): Update.
9044 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9045 on obstack.
9046
9047 2020-02-08 Tom Tromey <tom@tromey.com>
9048
9049 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9050 obstack.
9051
9052 2020-02-08 Tom Tromey <tom@tromey.com>
9053
9054 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9055 line_header_hash.
9056 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9057 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9058 Change type to htab_up.
9059
9060 2020-02-08 Tom Tromey <tom@tromey.com>
9061
9062 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9063 htab_up. Don't allocate on obstack.
9064 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9065 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9066 Change type to htab_up.
9067
9068 2020-02-08 Tom Tromey <tom@tromey.com>
9069
9070 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9071 Change type to htab_up.
9072 * dwarf2/read.c (create_signatured_type_table_from_index)
9073 (create_signatured_type_table_from_debug_names)
9074 (create_all_type_units, add_type_unit)
9075 (lookup_dwo_signatured_type, lookup_signatured_type)
9076 (process_skeletonless_type_unit): Update.
9077 (create_debug_type_hash_table, create_debug_types_hash_table):
9078 Change type of types_htab.
9079 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9080 htab_up. Don't allocate on obstack.
9081 (create_cus_hash_table): Change type of cus_htab parameter.
9082 (struct dwo_file) <cus, tus>: Now htab_up.
9083 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9084 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9085 (queue_and_load_all_dwo_tus): Update.
9086 * dwarf2/index-write.c (write_gdbindex): Update.
9087 (write_debug_names): Update.
9088
9089 2020-02-08 Tom Tromey <tom@tromey.com>
9090
9091 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9092 dwarf2/read.c. Remove "next" member. Add constructor ntad
9093 destructor.
9094 (struct dwarf2_per_objfile) <queue>: New member.
9095 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9096 dwarf2/read.h.
9097 (dwarf2_queue, dwarf2_queue_tail): Remove.
9098 (class dwarf2_queue_guard): Add parameter to constructor. Use
9099 DISABLE_COPY_AND_ASSIGN.
9100 <m_per_objfile>: New member.
9101 <~dwarf2_queue_guard>: Rewrite.
9102 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9103 Update.
9104 (~dwarf2_queue_item): New.
9105
9106 2020-02-08 Tom Tromey <tom@tromey.com>
9107
9108 * dwarf2/read.c (struct die_info) <has_children>: New member.
9109 (dw2_get_file_names_reader): Remove has_children.
9110 (dw2_get_file_names): Update.
9111 (read_cutu_die_from_dwo): Remove has_children.
9112 (cutu_reader::init_tu_and_read_dwo_dies)
9113 (cutu_reader::cutu_reader): Update.
9114 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9115 Remove has_children.
9116 (build_type_psymtabs_1, process_skeletonless_type_unit)
9117 (load_partial_comp_unit, load_full_comp_unit): Update.
9118 (create_dwo_cu_reader): Remove has_children.
9119 (create_cus_hash_table, read_die_and_children): Update.
9120 (read_full_die_1,read_full_die): Remove has_children.
9121 (read_signatured_type): Update.
9122 (class cutu_reader) <has_children>: Remove.
9123
9124 2020-02-08 Tom Tromey <tom@tromey.com>
9125
9126 * dwarf2/expr.c: Rename from dwarf2expr.c.
9127 * dwarf2/expr.h: Rename from dwarf2expr.h.
9128 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9129 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9130 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9131 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9132 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9133 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9134 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9135 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9136 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9137 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9138 * dwarf2/loc.c: Rename from dwarf2loc.c.
9139 * dwarf2/loc.h: Rename from dwarf2loc.h.
9140 * dwarf2/read.c: Rename from dwarf2read.c.
9141 * dwarf2/read.h: Rename from dwarf2read.h.
9142 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9143 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9144 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9145 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9146 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9147 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9148 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9149 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9150 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9151 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9152 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9153 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9154 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9155 Update.
9156 * Makefile.in (COMMON_SFILES): Update.
9157 (HFILES_NO_SRCDIR): Update.
9158
9159 2020-02-08 Tom Tromey <tom@tromey.com>
9160
9161 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9162 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9163
9164 2020-02-08 Tom Tromey <tom@tromey.com>
9165
9166 * dwarf2read.h (struct die_info): Don't declare.
9167
9168 2020-02-08 Tom Tromey <tom@tromey.com>
9169
9170 * dwarf2read.h (die_info_ptr): Remove typedef.
9171
9172 2020-02-08 Tom Tromey <tom@tromey.com>
9173
9174 * dwarf2read.c (read_call_site_scope)
9175 (handle_data_member_location, dwarf2_add_member_fn)
9176 (mark_common_block_symbol_computed, read_common_block)
9177 (attr_to_dynamic_prop, partial_die_info::read)
9178 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9179 (dwarf2_symbol_mark_computed, set_die_type): Update.
9180 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9181 method.
9182 (attr_form_is_block): Don't declare.
9183 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9184
9185 2020-02-08 Tom Tromey <tom@tromey.com>
9186
9187 * dwarf2read.c (dwarf2_find_base_address, )
9188 (read_call_site_scope, rust_containing_type)
9189 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9190 (handle_data_member_location, dwarf2_add_member_fn)
9191 (get_alignment, read_structure_type, process_structure_scope)
9192 (mark_common_block_symbol_computed, read_common_block)
9193 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9194 (partial_die_info::read, read_attribute_value, new_symbol)
9195 (lookup_die_type, dwarf2_get_ref_die_offset)
9196 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9197 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9198 (dwarf2_symbol_mark_computed): Update.
9199 * dwarf2/attribute.h (struct attribute) <value_as_address,
9200 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9201 methods.
9202 (value_as_address, attr_form_is_section_offset)
9203 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9204 * dwarf2/attribute.c (attribute::value_as_address)
9205 (attribute::form_is_section_offset, attribute::form_is_constant)
9206 (attribute::form_is_ref): Now methods.
9207
9208 2020-02-08 Tom Tromey <tom@tromey.com>
9209
9210 * dwarf2read.c (struct attribute, DW_STRING)
9211 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9212 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9213 (attr_form_is_block, attr_form_is_section_offset)
9214 (attr_form_is_constant, attr_form_is_ref): Move.
9215 * dwarf2/attribute.h: New file.
9216 * dwarf2/attribute.c: New file, from dwarf2read.c.
9217 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9218
9219 2020-02-08 Tom Tromey <tom@tromey.com>
9220
9221 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9222 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9223 Move.
9224 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9225 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9226 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9227 abbrev.c.
9228 * dwarf2/abbrev.h: New file.
9229 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9230 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9231
9232 2020-02-08 Tom Tromey <tom@tromey.com>
9233
9234 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9235 (dwarf2_section_size, dwarf2_get_section_info)
9236 (create_signatured_type_table_from_debug_names)
9237 (create_addrmap_from_aranges, read_debug_names_from_section)
9238 (get_gdb_index_contents_from_section, read_comp_unit_head)
9239 (error_check_comp_unit_head, read_abbrev_offset)
9240 (create_debug_type_hash_table, init_cu_die_reader)
9241 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9242 (read_comp_units_from_section, create_cus_hash_table)
9243 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9244 (create_dwp_v2_section, dwarf2_rnglists_process)
9245 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9246 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9247 (read_indirect_string_from_dwz, read_addr_index_1)
9248 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9249 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9250 (fill_in_loclist_baton): Update.
9251 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9252 get_containing_section, get_bfd_owner, get_bfd_section,
9253 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9254 (dwarf2_read_section, get_section_name, get_section_file_name)
9255 (get_containing_section, get_section_bfd_owner)
9256 (get_section_bfd_section, get_section_name, get_section_file_name)
9257 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9258 declare.
9259 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9260 (dwarf2_section_info::get_bfd_owner)
9261 (dwarf2_section_info::get_bfd_section)
9262 (dwarf2_section_info::get_name)
9263 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9264 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9265 (dwarf2_section_info::read): Now methods.
9266 * dwarf-index-write.c (class debug_names): Update.
9267
9268 2020-02-08 Tom Tromey <tom@tromey.com>
9269
9270 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9271 Move to dwarf2/section.h.
9272 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9273 (get_section_bfd_section, get_section_name)
9274 (get_section_file_name, get_section_id, get_section_flags)
9275 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9276 dwarf2/section.c.
9277 * dwarf2/section.h: New file.
9278 * dwarf2/section.c: New file, from dwarf2read.c.
9279 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9280
9281 2020-02-08 Tom Tromey <tom@tromey.com>
9282
9283 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9284 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9285 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9286 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9287 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9288 * dwarf2/leb.h: New file, from dwarf2read.c.
9289 * dwarf2/leb.c: New file, from dwarf2read.c.
9290 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9291 Remove.
9292 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9293 (COMMON_SFILES): Add dwarf2/leb.c.
9294
9295 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9296
9297 GDB 9.1 released.
9298
9299 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9300
9301 PR gdb/25190:
9302 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9303 * gdb/remote.c (remote_console_output): Update.
9304 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9305 (ui_file_puts): ...this.
9306 * gdb/ui-file.h (ui_file_puts): Add declaration.
9307 * gdb/utils.c (emit_style_escape): Update.
9308 (flush_wrap_buffer): Update.
9309 (fputs_maybe_filtered): Update.
9310 (fputs_unfiltered): Add function.
9311
9312 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9313
9314 * gdb/event-loop.c (gdb_wait_for_event): Update.
9315 * gdb/printcmd.c (printf_command): Update.
9316 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9317 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9318 (gdb_os_flush_stderr): Update.
9319 * gdb/remote.c (remote_console_output): Update.
9320 * gdb/ui-file.c (gdb_flush): Rename to...
9321 (ui_file_flush): ...this.
9322 (stderr_file::write): Update.
9323 (stderr_file::puts): Update.
9324 * gdb/ui-file.h (gdb_flush): Rename to...
9325 (ui_file_flush): ...this.
9326 * gdb/utils.c (gdb_flush): Add function.
9327 * gdb/utils.h (gdb_flush): Add declaration.
9328
9329 2020-02-07 Tom Tromey <tromey@adacore.com>
9330
9331 PR breakpoints/24915:
9332 * source.c (find_and_open_source): Do not check basenames_may_differ.
9333
9334 2020-02-07 Tom Tromey <tom@tromey.com>
9335
9336 * README: Update gdbserver documentation.
9337 * gdbserver: Move to top level.
9338 * configure.tgt (build_gdbserver): Remove.
9339 * configure.ac: Remove --enable-gdbserver.
9340 * configure: Rebuild.
9341 * Makefile.in (distclean): Don't mention gdbserver.
9342
9343 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9344
9345 * source-cache.c (source_cache::ensure): Surround
9346 get_plain_source_lines with a try/catch.
9347 (source_cache::get_line_charpos): Get rid of try/catch
9348 and only check for the return value of "ensure".
9349 * tui/tui-source.c (tui_source_window::set_contents):
9350 Simplify "nlines" calculation.
9351
9352 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9353
9354 * MAINTAINERS (Write After Approval): Add myself.
9355
9356 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9357
9358 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9359 function call.
9360
9361 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9362
9363 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9364
9365 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9366
9367 * nat/riscv-linux-tdesc.h: New file.
9368 * nat/riscv-linux-tdesc.c: New file, taking code from...
9369 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9370 ... here.
9371 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9372 NATDEPFILES.
9373
9374 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9375
9376 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9377 we don't set the fake simulator ptid to the null_ptid.
9378
9379 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9380
9381 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9382 * gdbthread.h (class thread_info) <resumed>: Likewise.
9383 * infrun.c (resume_1): Likewise.
9384 (proceed): Likewise.
9385 (infrun_thread_stop_requested): Likewise.
9386 (stop_all_threads): Likewise.
9387 (handle_inferior_event): Likewise.
9388 (restart_threads): Likewise.
9389 (finish_step_over): Likewise.
9390 (keep_going_stepped_thread): Likewise.
9391 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9392 (linux_handle_extended_wait): Likewise.
9393 * record-btrace.c (get_thread_current_frame_id): Likewise.
9394 * record-full.c (record_full_wait_1): Likewise.
9395 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9396 * target.c (target_resume): Likewise.
9397 * thread.c (set_running_thread): Likewise.
9398
9399 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9400
9401 * f-valprint.c (f77_print_array_1): Changed datatype of index
9402 variable to LONGEST from int to enable it to contain bound
9403 values correctly.
9404
9405 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9406
9407 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9408 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9409 offsets according to FLEN determined.
9410 (riscv_linux_nat_target::read_description): Determine FLEN
9411 dynamically.
9412 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9413 according to FLEN determined.
9414 (riscv_linux_nat_target::store_registers): Likewise.
9415
9416 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9417
9418 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9419 when reg->group is empty and reggroup is not.
9420
9421 2020-01-31 Tom Tromey <tromey@adacore.com>
9422
9423 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9424 Call beneath target's mourn_inferior after unpushing.
9425
9426 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9427
9428 PR tui/9765
9429 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9430 have enough lines to fill the screen, still return the lowest
9431 address we found.
9432
9433 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9434
9435 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9436 '-', '<', and '>' commands.
9437
9438 2020-01-29 Pedro Alves <palves@redhat.com>
9439 Sergio Durigan Junior <sergiodj@redhat.com>
9440
9441 * infcmd.c (construct_inferior_arguments): Assert that
9442 'argc' is greater than 0.
9443
9444 2020-01-29 Luis Machado <luis.machado@linaro.org>
9445
9446 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9447 (BRK_INSN_MASK): Define to 0xd4200000.
9448 (aarch64_program_breakpoint_here_p): New function.
9449 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9450 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9451 breakpoint.c.
9452 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9453 breakpoint.h
9454 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9455 call gdbarch_program_breakpoint_here_p.
9456 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9457 default_program_breakpoint_here_p, changed return type to bool and
9458 simplified.
9459 * breakpoint.h (program_breakpoint_here): Moved prototype to
9460 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9461 return type to bool.
9462 * gdbarch.c: Regenerate.
9463 * gdbarch.h: Regenerate.
9464 * gdbarch.sh (program_breakpoint_here_p): New method.
9465 * infrun.c (handle_signal_stop): Call
9466 gdbarch_program_breakpoint_here_p.
9467
9468 2020-01-26 Tom Tromey <tom@tromey.com>
9469
9470 * ctfread.c (struct ctf_fp_info): Reindent.
9471 (_initialize_ctfread): Remove.
9472
9473 2020-01-26 Tom Tromey <tom@tromey.com>
9474
9475 * psymtab.c (partial_map_expand_apply)
9476 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9477 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9478 (psym_print_stats, psym_expand_symtabs_for_function)
9479 (psym_map_symbol_filenames, psym_map_matching_symbols)
9480 (psym_expand_symtabs_matching)
9481 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9482 (maintenance_check_psymtabs): Use new methods.
9483 * psympriv.h (struct partial_symtab) <readin_p,
9484 get_compunit_symtab>: New methods.
9485 <readin, compunit_symtab>: Remove members.
9486 (struct standard_psymtab): New.
9487 (struct legacy_psymtab): Derive from standard_psymtab.
9488 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9489 standard_psymtab.
9490 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9491
9492 2020-01-26 Tom Tromey <tom@tromey.com>
9493
9494 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9495 read_dependencies. Add assert.
9496 * psymtab.c (partial_symtab::read_dependencies): New method.
9497 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9498 method.
9499 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9500 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9501 read_dependencies.
9502 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9503 Add assert.
9504
9505 2020-01-26 Tom Tromey <tom@tromey.com>
9506
9507 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9508 Call expand_psymtab.
9509 (xcoff_read_symtab): Call expand_psymtab.
9510 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9511 legacy_expand_psymtab.
9512 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9513 method.
9514 (struct legacy_psymtab) <expand_psymtab>: Implement.
9515 <legacy_expand_psymtab>: New member.
9516 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9517 (parse_partial_symbols): Set legacy_expand_psymtab.
9518 (psymtab_to_symtab_1): Change argument order. Call
9519 expand_psymtab.
9520 (new_psymtab): Set legacy_expand_psymtab.
9521 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9522 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9523 expand_psymtab.
9524 (dwarf2_psymtab::expand_psymtab): Rename from
9525 psymtab_to_symtab_1. Call expand_psymtab.
9526 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9527 (dbx_end_psymtab): Likewise.
9528 (dbx_psymtab_to_symtab_1): Change argument order. Call
9529 expand_psymtab.
9530 (dbx_read_symtab): Call expand_psymtab.
9531 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9532 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9533 (ctf_psymtab::read_symtab): Call expand_psymtab.
9534
9535 2020-01-26 Tom Tromey <tom@tromey.com>
9536
9537 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9538 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9539 messages.
9540 * mdebugread.c (mdebug_read_symtab): Remove prints.
9541 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9542 assert.
9543 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9544
9545 2020-01-26 Tom Tromey <tom@tromey.com>
9546
9547 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9548 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9549 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9550 legacy_symtab.
9551 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9552 * psymtab.c (psymtab_to_symtab): Call method.
9553 (dump_psymtab): Update.
9554 * psympriv.h (struct partial_symtab): Add virtual destructor.
9555 <read_symtab>: New method.
9556 (struct legacy_symtab): New.
9557 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9558 (struct pst_map) <pst>: Now a legacy_psymtab.
9559 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9560 (new_psymtab): Use legacy_psymtab.
9561 * dwarf2read.h (struct dwarf2_psymtab): New.
9562 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9563 * dwarf2read.c (dwarf2_create_include_psymtab)
9564 (dwarf2_build_include_psymtabs, create_type_unit_group)
9565 (create_partial_symtab, process_psymtab_comp_unit_reader)
9566 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9567 (set_partial_user): Use dwarf2_psymtab.
9568 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9569 (psymtab_to_symtab_1, process_full_comp_unit)
9570 (process_full_type_unit, dwarf2_ranges_read)
9571 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9572 (dwarf_decode_lines): Use dwarf2_psymtab.
9573 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9574 (add_address_entry_worker, write_one_signatured_type)
9575 (recursively_count_psymbols, recursively_write_psymbols)
9576 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9577 (write_debug_names): Likewise.
9578 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9579 <pst>: Now a legacy_psymtab.
9580 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9581 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9582 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9583 * ctfread.c (struct ctf_psymtab): New.
9584 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9585 ctf_psymtab.
9586 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9587 (create_partial_symtab): Return a ctf_psymtab.
9588 (scan_partial_symbols): Update.
9589
9590 2020-01-26 Tom Tromey <tom@tromey.com>
9591
9592 * xcoffread.c (xcoff_start_psymtab): Use new.
9593 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9594 renamed from start_psymtab_common.
9595 * psympriv.h (struct partial_symtab): Add new constructor.
9596 (start_psymtab_common): Don't declare.
9597 * mdebugread.c (parse_partial_symbols): Use new.
9598 * dwarf2read.c (create_partial_symtab): Use new.
9599 * dbxread.c (start_psymtab): Use new.
9600 * ctfread.c (create_partial_symtab): Use new.
9601
9602 2020-01-26 Tom Tromey <tom@tromey.com>
9603
9604 * xcoffread.c (xcoff_end_psymtab): Use new.
9605 * psymtab.c (start_psymtab_common): Use new.
9606 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9607 Update.
9608 * psympriv.h (struct partial_symtab): Add parameters to
9609 constructor. Don't inline.
9610 (allocate_psymtab): Don't declare.
9611 * mdebugread.c (new_psymtab): Use new.
9612 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9613 * dbxread.c (dbx_end_psymtab): Use new.
9614
9615 2020-01-26 Tom Tromey <tom@tromey.com>
9616
9617 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9618 allocate_psymtab. Update documentation.
9619 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9620 allocate_psymtab. Do not use new.
9621 (allocate_psymtab): Use new. Update.
9622
9623 2020-01-26 Tom Tromey <tom@tromey.com>
9624
9625 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9626 * psymtab.c (psym_print_stats): Update.
9627 * psympriv.h (struct partial_symtab) <readin,
9628 psymtabs_addrmap_supported, anonymous>: Now bool.
9629 * mdebugread.c (psymtab_to_symtab_1): Update.
9630 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9631 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9632 (process_full_comp_unit, process_full_type_unit): Update.
9633 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9634 * ctfread.c (psymtab_to_symtab): Update.
9635
9636 2020-01-26 Tom Tromey <tom@tromey.com>
9637
9638 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9639 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9640 * psymtab.c (psymtab_storage): Delete psymtabs.
9641 (psymtab_storage::allocate_psymtab): Use new.
9642 (psymtab_storage::discard_psymtab): Use delete.
9643 * psympriv.h (struct partial_symtab): Add constructor and
9644 initializers.
9645
9646 2020-01-26 Tom Tromey <tom@tromey.com>
9647
9648 * machoread.c: Do not include psympriv.h.
9649
9650 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9651
9652 * NEWS: Mention the new option and the set/show commands.
9653
9654 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9655
9656 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9657 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9658 (validate_exec_file): New variables, enums, functions.
9659 (exec_file_locate_attach, print_section_info): Style the filenames.
9660 (_initialize_exec): Install show_exec_file_mismatch_command and
9661 set_exec_file_mismatch_command.
9662 * gdbcore.h (validate_exec_file): Declare.
9663 * infcmd.c (attach_command): Call validate_exec_file.
9664 * remote.c ( remote_target::remote_add_inferior): Likewise.
9665
9666 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9667
9668 * frame.c (find_frame_sal): Move call to get_next_frame into more
9669 inner scope.
9670 * inline-frame.c (inilne_state) <inline_state>: Update argument
9671 types.
9672 (inilne_state) <skipped_symbol>: Rename to...
9673 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9674 (skip_inline_frames): Build vector of skipped symbols and use this
9675 to reate the inline_state.
9676 (inline_skipped_symbol): Add a comment and some assertions, fetch
9677 skipped symbol from the list.
9678
9679 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9680
9681 * buildsym.c (lte_is_less_than): Delete.
9682 (buildsym_compunit::end_symtab_with_blockvector): Create local
9683 lambda function to sort line table entries, and use
9684 std::stable_sort instead of std::sort.
9685 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9686 markers when looking for a previous line.
9687
9688 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9689
9690 * dwarf2read.c (lnp_state_machine::record_line): Include
9691 end_sequence parameter in debug print out. Record the line if we
9692 are at an end_sequence marker even if it's not the start of a
9693 statement.
9694 * symmisc.c (maintenance_print_one_line_table): Print end of
9695 sequence markers with 'END' not '0'.
9696
9697 2020-01-24 Pedro Alves <palves@redhat.com>
9698
9699 PR gdb/25410
9700 * thread.c (scoped_restore_current_thread::restore): Use
9701 switch_to_inferior_no_thread.
9702 * exec.c: Include "progspace-and-thread.h".
9703 (add_target_sections, remove_target_sections):
9704 scoped_restore_current_pspace_and_thread instead of
9705 scoped_restore_current_thread.
9706 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9707 and aspace to the inferior before calling clone_program_space.
9708 Remove stale comment.
9709
9710 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9711
9712 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9713 (arm_netbsd_nat_target::fetch_registers): ...this.
9714 (arm_nbsd_nat_target::store_registers): Rename to...
9715 (arm_netbsd_nat_target::store_registers): ...this.
9716
9717 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9718
9719 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9720 register_t.
9721
9722 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9723
9724 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9725 Update comment.
9726 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9727 Likewise.
9728 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9729 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9730 the correct replacement (iterate_over_regset_sections).
9731 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9732 Update comment.
9733
9734 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9735
9736 PR gdb/23718
9737 * gdb/python/python.c (execute_gdb_command): Call
9738 async_enable_stdin in catch block.
9739
9740 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9741
9742 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9743 SWITCH_THRU_ALL_UIS.
9744
9745 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9746
9747 PR tui/9765
9748 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9749 comment, add extra parameter, and update to store previous symbol
9750 when appropriate.
9751 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9752 add extra parameter.
9753 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9754 remove unneeded parameter, add try/catch around gdb_print_insn,
9755 rewrite to add items to asm_lines vector.
9756 (tui_find_backward_disassembly_start_address): New function.
9757 (tui_find_disassembly_address): Updated throughout.
9758 (tui_disasm_window::set_contents): Update for changes to
9759 tui_disassemble.
9760 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9761 number of lines to scroll.
9762
9763 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9764
9765 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9766 (SECT_OFF_DATA): Likewise.
9767 (SECT_OFF_RODATA): Likewise.
9768 (SECT_OFF_TEXT): Likewise.
9769 (SECT_OFF_BSS): Likewise.
9770 (struct objfile) <text_section_offset, data_section_offset>: New
9771 methods.
9772 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9773 objfile::text_section_offset.
9774 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9775 * coffread.c (coff_symtab_read): Likewise.
9776 (enter_linenos): Likewise.
9777 (process_coff_symbol): Likewise.
9778 * ctfread.c (get_objfile_text_range): Likewise.
9779 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9780 Use objfile::data_section_offset.
9781 * dwarf2-frame.c (execute_cfa_program): Use
9782 objfile::text_section_offset.
9783 (dwarf2_frame_find_fde): Likewise.
9784 * dwarf2read.c (create_addrmap_from_index): Likewise.
9785 (create_addrmap_from_aranges): Likewise.
9786 (dw2_find_pc_sect_compunit_symtab): Likewise.
9787 (process_psymtab_comp_unit_reader): Likewise.
9788 (add_partial_symbol): Likewise.
9789 (add_partial_subprogram): Likewise.
9790 (process_full_comp_unit): Likewise.
9791 (read_file_scope): Likewise.
9792 (read_func_scope): Likewise.
9793 (read_lexical_block_scope): Likewise.
9794 (read_call_site_scope): Likewise.
9795 (dwarf2_rnglists_process): Likewise.
9796 (dwarf2_ranges_process): Likewise.
9797 (dwarf2_ranges_read): Likewise.
9798 (dwarf_decode_lines_1): Likewise.
9799 (new_symbol): Likewise.
9800 (dwarf2_fetch_die_loc_sect_off): Likewise.
9801 (dwarf2_per_cu_text_offset): Likewise.
9802 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9803 * hppa-tdep.c (read_unwind_info): Likewise.
9804 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9805 * psympriv.h (struct partial_symtab): Likewise.
9806 * psymtab.c (find_pc_sect_psymtab): Likewise.
9807 * solib-svr4.c (enable_break): Likewise.
9808 * stap-probe.c (relocate_address): Use
9809 objfile::data_section_offset.
9810 * xcoffread.c (enter_line_range): Use
9811 objfile::text_section_offset.
9812 (read_xcoff_symtab): Likewise.
9813
9814 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9815
9816 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9817 declaration to narrower scopes.
9818
9819 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9820
9821 * darwin-nat.h (struct darwin_exception_msg, enum
9822 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9823 Move up.
9824 (class darwin_nat_target) <wait_1, check_new_threads,
9825 decode_exception_message, decode_message, stop_inferior,
9826 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9827 * darwin-nat.c (darwin_check_new_threads): Rename to...
9828 (darwin_nat_target::check_new_threads): ... this.
9829 (darwin_suspend_inferior_it): Remove.
9830 (darwin_decode_exception_message): Rename to...
9831 (darwin_nat_target::decode_exception_message): ... this.
9832 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9833 (darwin_decode_message): Rename to...
9834 (darwin_nat_target::decode_message): ... this.
9835 (cancel_breakpoint): Rename to...
9836 (darwin_nat_target::cancel_breakpoint): ... this.
9837 (darwin_wait): Rename to...
9838 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9839 instead of iterate_over_inferiors.
9840 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9841 (darwin_stop_inferior): Rename to...
9842 (darwin_nat_target::stop_inferior): ... this.
9843 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9844 (darwin_init_thread_list): Rename to...
9845 (darwin_nat_target::init_thread_list): ... this.
9846 (darwin_ptrace_him): Rename to...
9847 (darwin_nat_target::ptrace_him): ... this.
9848 (darwin_nat_target::create_inferior): Pass lambda function to
9849 fork_inferior.
9850 (darwin_nat_target::detach): Call stop_inferior instead of
9851 darwin_stop_inferior.
9852 * fork-inferior.h (fork_inferior): Change init_trace_fun
9853 parameter to gdb::function_view.
9854 * fork-inferior.c (fork_inferior): Likewise.
9855
9856 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
9857
9858 * i386-cygwin-tdep.c (core_process_module_section): Update.
9859 * windows-nat.c (struct lm_info_windows): Add text_offset.
9860 (windows_xfer_shared_libraries): Update.
9861 * windows-tdep.c (windows_xfer_shared_library):
9862 Add text_offset_cached argument.
9863 * windows-tdep.h (windows_xfer_shared_library): Update.
9864
9865 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9866
9867 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9868
9869 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9870
9871 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9872 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9873 replace with range-based for.
9874 (gdbsim_interrupt_inferior): Remove.
9875 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9876 with a range-based for. Inline code from
9877 gdbsim_interrupt_inferior.
9878
9879 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9880
9881 * infrun.c (proceed): Fix indentation.
9882
9883 2020-01-21 Tom Tromey <tromey@adacore.com>
9884
9885 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9886 * python/python.c (python_extension_ops): Update.
9887 (gdbpy_colorize): New function.
9888 * python/lib/gdb/__init__.py (colorize): New function.
9889 * extension.h (ext_lang_colorize): Declare.
9890 * extension.c (ext_lang_colorize): New function.
9891 * extension-priv.h (struct extension_language_ops) <colorize>: New
9892 member.
9893 * cli/cli-style.c (_initialize_cli_style): Update help text.
9894
9895 2020-01-21 Luis Machado <luis.machado@linaro.org>
9896
9897 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9898 <cond>: Change type to bool.
9899 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9900 (aarch64_displaced_step_cb): Likewise.
9901 (aarch64_displaced_step_tb): Likewise.
9902
9903 2020-01-21 Luis Machado <luis.machado@linaro.org>
9904
9905 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9906 output.
9907
9908 2020-01-21 Luis Machado <luis.machado@linaro.org>
9909
9910 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9911 <pc_adjust>: Adjust the documentation.
9912 (aarch64_displaced_step_fixup): Check if PC really moved before
9913 adjusting it.
9914
9915 2020-01-19 Tom Tromey <tom@tromey.com>
9916
9917 * disasm.c (~gdb_disassembler): New destructor.
9918 (gdb_buffered_insn_length): Call disassemble_free_target.
9919 * disasm.h (class gdb_disassembler): Declare destructor. Use
9920 DISABLE_COPY_AND_ASSIGN.
9921
9922 2020-01-19 Tom Tromey <tom@tromey.com>
9923
9924 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9925 (die_reader_func_ftype): Remove.
9926 (cutu_reader): New class.
9927 (dw2_get_file_names_reader): Remove "data" parameter.
9928 (dw2_get_file_names): Use cutu_reader.
9929 (create_debug_type_hash_table): Update.
9930 (read_cutu_die_from_dwo): Update comment.
9931 (lookup_dwo_unit): Add dwo_name parameter.
9932 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9933 die_reader_func_ftype and data parameters.
9934 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9935 Remove die_reader_func_ftype and data parameters.
9936 (~cutu_reader): New; from init_cutu_and_read_dies.
9937 (cutu_reader::cutu_reader): Rename from
9938 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9939 and data parameters.
9940 (init_cutu_and_read_dies_simple): Remove.
9941 (struct process_psymtab_comp_unit_data): Remove.
9942 (process_psymtab_comp_unit_reader): Remove data parameter; add
9943 want_partial_unit and pretend_language parameters.
9944 (process_psymtab_comp_unit): Use cutu_reader.
9945 (build_type_psymtabs_reader): Remove data parameter.
9946 (build_type_psymtabs_1): Use cutu_reader.
9947 (process_skeletonless_type_unit): Likewise.
9948 (load_partial_comp_unit_reader): Remove.
9949 (load_partial_comp_unit): Use cutu_reader.
9950 (load_full_comp_unit_reader): Remove.
9951 (load_full_comp_unit): Use cutu_reader.
9952 (struct create_dwo_cu_data): Remove.
9953 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9954 dwo_unit parameters.
9955 (create_cus_hash_table): Use cutu_reader.
9956 (struct dwarf2_read_addr_index_data): Remove.
9957 (dwarf2_read_addr_index_reader): Remove.
9958 (dwarf2_read_addr_index): Use cutu_reader.
9959 (read_signatured_type_reader): Remove.
9960 (read_signatured_type): Use cutu_reader.
9961
9962 2020-01-19 Tom Tromey <tom@tromey.com>
9963
9964 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9965 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9966 (tui_wrefresh): Declare.
9967 * tui/tui-wingeneral.c (suppress_output): New global.
9968 (tui_suppress_output, ~tui_suppress_output): New constructor and
9969 destructor.
9970 (tui_wrefresh): New function.
9971 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9972 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9973 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9974 method.
9975 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9976 tui_wrefresh.
9977 (tui_data_window::no_refresh): New method.
9978 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9979 (tui_reg_command): Use tui_suppress_output
9980 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9981 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9982 method.
9983 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9984
9985 2020-01-19 Tom Tromey <tom@tromey.com>
9986
9987 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9988 Handle case where symtab is null.
9989
9990 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9991
9992 * linux-fork.c (one_fork_p): Simplify.
9993
9994 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9995
9996 * top.c (struct qt_args): Remove.
9997 (kill_or_detach): Change return type to void, replace `void *`
9998 parameter with a proper one.
9999 (print_inferior_quit_action): Likewise.
10000 (quit_confirm): Use range-based for loop to iterate over inferiors.
10001 (quit_force): Likewise.
10002
10003 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10004
10005 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10006 `void *` parameter with proper parameters.
10007 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10008 (print_one_inferior): Change return type to void, replace `void *`
10009 parameter with proper parameters.
10010 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10011 inferiors.
10012 (get_other_inferior): Remove.
10013 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10014 inferiors.
10015
10016 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10017
10018 * mi/mi-interp.c (report_initial_inferior): Remove.
10019 (mi_interp::init): Use range-based for to iterate over inferiors.
10020
10021 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10022
10023 * python/py-inferior.c (build_inferior_list): Remove.
10024 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10025
10026 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10027
10028 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10029 (btrace_stitch_trace): Likewise.
10030 * charset.c (intermediate_encoding): Likewise (vaild).
10031 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10032 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10033 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10034
10035 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10036
10037 * windows-tdep.c (windows_get_tlb_type):
10038 Add rtl_user_process_parameters type.
10039
10040 2020-01-16 Pedro Alves <palves@redhat.com>
10041 Norbert Lange <nolange79@gmail.com>
10042
10043 PR build/24805
10044 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10045 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10046 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10047 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10048 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10049 (ps_plog): Redeclare exported functions with default visibility.
10050
10051 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10052
10053 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10054 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10055
10056 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10057
10058 * infcmd.c (post_create_inferior): Use get_thread_regcache
10059 instead of get_current_regcache.
10060
10061 2020-01-14 Tom Tromey <tom@tromey.com>
10062
10063 PR symtab/12535:
10064 * python/python.c (gdbpy_decode_line): Treat empty string the same
10065 as no argument.
10066
10067 2020-01-14 Tom Tromey <tom@tromey.com>
10068
10069 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10070
10071 2020-01-14 Tom Tromey <tom@tromey.com>
10072
10073 * nat/linux-btrace.c: Don't include <config.h>.
10074 * nat/linux-ptrace.c: Don't include <config.h>.
10075 * nat/x86-linux-dregs.c: Don't include <config.h>.
10076
10077 2020-01-14 Tom Tromey <tom@tromey.com>
10078
10079 * configure: Rebuild.
10080 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10081
10082 2020-01-14 Tom Tromey <tom@tromey.com>
10083
10084 * nat/x86-linux-dregs.c: Include configh.h.
10085 * nat/linux-ptrace.c: Include configh.h.
10086 * nat/linux-btrace.c: Include configh.h.
10087 * defs.h: Include config.h, bfd.h.
10088 * configure.ac: Don't source common.host.
10089 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10090 * configure: Rebuild.
10091 * acinclude.m4: Update path.
10092 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10093 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10094 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10095 (CLIBS): Add LIBSUPPORT.
10096 (CDEPS): Likewise.
10097 (COMMON_SFILES): Remove gdbsupport files.
10098 (HFILES_NO_SRCDIR): Likewise.
10099 (stamp-version): Update path to create-version.sh.
10100 (ALLDEPFILES): Remove gdbsupport files.
10101
10102 2020-01-14 Tom Tromey <tom@tromey.com>
10103
10104 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10105 USE_WIN32API when needed.
10106 * configure.ac (USE_WIN32API): Don't define.
10107 (WIN32LIBS): Use WIN32APILIBS.
10108 * configure: Rebuild.
10109
10110 2020-01-14 Tom Tromey <tom@tromey.com>
10111
10112 * configure: Rebuild.
10113 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10114
10115 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10116
10117 * skip.c (skip_function_command): Make skip w/o arguments use the
10118 name of the inlined function if pc is inside any inlined function.
10119
10120 2020-01-14 Luis Machado <luis.machado@linaro.org>
10121
10122 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10123 * infrun.c (resume_1): Likewise.
10124 (handle_inferior_event): Remove stale comment.
10125 * linux-nat.c (linux_nat_target::resume): Update comments.
10126 (save_stop_reason): Likewise.
10127 (linux_nat_filter_event): Likewise.
10128 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10129
10130 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10131
10132 * elfread.c (record_minimal_symbol): Set section index to 0 for
10133 non-allocatable sections.
10134
10135
10136 2020-01-13 Ali Tamur <tamur@google.com>
10137
10138 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10139 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10140 to gdb::optional. Update comments.
10141 (dwo_file): Update comments.
10142 (read_attribute): Update API to take an additional out parameter,
10143 need_reprocess. This is used to mark attributes that need other
10144 attributes (e.g. str_offsets_base) for correct computation which may not
10145 have been read yet.
10146 (read_attribute_reprocess): New function declaration.
10147 (read_addr_index): Likewise.
10148 (read_dwo_str_index): Likewise.
10149 (read_stub_str_index): Likewise.
10150 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10151 (lookup_addr_base): New function definition.
10152 (lookup_ranges_base): Likewise.
10153 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10154 lookup_ranges_base.
10155 (init_cutu_and_read_dies): Update comments.
10156 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10157 unit. This is used to inherit parent's str_offsets_base and addr_base.
10158 Update comments.
10159 (init_cutu_and_read_dies_simple): Reflect API changes.
10160 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10161 (create_cus_hash_table): Change API to take parent compile unit.
10162 Reflect API changes.
10163 (open_and_init_dwo_file): Reflect API changes.
10164 (dwarf2_get_pc_bounds): Update comments.
10165 (dwarf2_record_block_ranges): Likewise.
10166 (read_full_die_1): Change implementation to reprocess attributes that
10167 need str_offsets_base and addr_base.
10168 (partial_die_info::read): Likewise.
10169 (read_attribute_reprocess): New function definition.
10170 (read_attribute_value): Change API to take an additional out parameter,
10171 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10172 when a non-dwo compile unit has index based attributes.
10173 (read_attribute): Reflect API changes.
10174 (read_addr_index_1): Reflect API changes. Update comments.
10175 (dwarf2_read_addr_index_data): Reflect API changes.
10176 (dwarf2_read_addr_index): Likewise.
10177 (read_str_index): Change API and implementation. This becomes a helper
10178 to be used by the new string index related methods. Update error
10179 message and comments.
10180 (read_dwo_str_index): New function definition.
10181 (read_stub_str_index): Likewise.
10182 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10183 * symfile.h (dwarf2_debug_sections): Likewise.
10184 * xcoffread.c (dwarf2_debug_sections): Likewise.
10185
10186 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10187
10188 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10189 core_reg_sect type to gdb_byte *.
10190 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10191 * cris-tdep.c (fetch_core_registers): Likewise.
10192 * corelow.c (core_target::get_core_register_section): Change
10193 type of `contents` to gdb::byte_vector.
10194
10195 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10196
10197 * tui/tui-wingeneral.c (box_win): Position the title in the center
10198 of the border.
10199
10200 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10201
10202 * corelow.c (core_target::get_core_register_section): Use
10203 std::vector instead of alloca.
10204
10205 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10206
10207 * warning.m4: Add -Wmissing-declarations to build_warnings.
10208 * configure: Re-generate.
10209
10210 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10211
10212 * python/python.c (init__gdb_module): Add declaration.
10213
10214 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10215
10216 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10217 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10218 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10219 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10220 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10221 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10222 * ada-exp.y (_initialize_ada_exp): Add declaration.
10223 * ada-lang.c (_initialize_ada_language): Add declaration.
10224 * ada-tasks.c (_initialize_tasks): Add declaration.
10225 * agent.c (_initialize_agent): Add declaration.
10226 * aix-thread.c (_initialize_aix_thread): Add declaration.
10227 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10228 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10229 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10230 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10231 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10232 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10233 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10234 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10235 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10236 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10237 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10238 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10239 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10240 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10241 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10242 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10243 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10244 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10245 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10246 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10247 * annotate.c (_initialize_annotate): Add declaration.
10248 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10249 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10250 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10251 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10252 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10253 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10254 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10255 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10256 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10257 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10258 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10259 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10260 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10261 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10262 * auto-load.c (_initialize_auto_load): Add declaration.
10263 * auxv.c (_initialize_auxv): Add declaration.
10264 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10265 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10266 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10267 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10268 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10269 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10270 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10271 * breakpoint.c (_initialize_breakpoint): Add declaration.
10272 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10273 * btrace.c (_initialize_btrace): Add declaration.
10274 * charset.c (_initialize_charset): Add declaration.
10275 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10276 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10277 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10278 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10279 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10280 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10281 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10282 * coffread.c (_initialize_coffread): Add declaration.
10283 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10284 * compile/compile.c (_initialize_compile): Add declaration.
10285 * complaints.c (_initialize_complaints): Add declaration.
10286 * completer.c (_initialize_completer): Add declaration.
10287 * copying.c (_initialize_copying): Add declaration.
10288 * corefile.c (_initialize_core): Add declaration.
10289 * corelow.c (_initialize_corelow): Add declaration.
10290 * cp-abi.c (_initialize_cp_abi): Add declaration.
10291 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10292 * cp-support.c (_initialize_cp_support): Add declaration.
10293 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10294 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10295 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10296 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10297 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10298 * ctfread.c (_initialize_ctfread): Add declaration.
10299 * d-lang.c (_initialize_d_language): Add declaration.
10300 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10301 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10302 * dbxread.c (_initialize_dbxread): Add declaration.
10303 * dcache.c (_initialize_dcache): Add declaration.
10304 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10305 * disasm.c (_initialize_disasm): Add declaration.
10306 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10307 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10308 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10309 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10310 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10311 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10312 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10313 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10314 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10315 * elfread.c (_initialize_elfread): Add declaration.
10316 * exec.c (_initialize_exec): Add declaration.
10317 * extension.c (_initialize_extension): Add declaration.
10318 * f-lang.c (_initialize_f_language): Add declaration.
10319 * f-valprint.c (_initialize_f_valprint): Add declaration.
10320 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10321 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10322 * filesystem.c (_initialize_filesystem): Add declaration.
10323 * findcmd.c (_initialize_mem_search): Add declaration.
10324 * findvar.c (_initialize_findvar): Add declaration.
10325 * fork-child.c (_initialize_fork_child): Add declaration.
10326 * frame-base.c (_initialize_frame_base): Add declaration.
10327 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10328 * frame.c (_initialize_frame): Add declaration.
10329 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10330 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10331 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10332 * gcore.c (_initialize_gcore): Add declaration.
10333 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10334 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10335 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10336 * gdbarch.c (_initialize_gdbarch): Add declaration.
10337 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10338 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10339 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10340 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10341 * go-lang.c (_initialize_go_language): Add declaration.
10342 * go32-nat.c (_initialize_go32_nat): Add declaration.
10343 * guile/guile.c (_initialize_guile): Add declaration.
10344 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10345 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10346 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10347 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10348 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10349 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10350 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10351 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10352 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10353 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10354 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10355 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10356 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10357 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10358 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10359 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10360 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10361 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10362 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10363 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10364 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10365 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10366 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10367 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10368 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10369 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10370 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10371 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10372 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10373 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10374 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10375 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10376 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10377 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10378 * infcall.c (_initialize_infcall): Add declaration.
10379 * infcmd.c (_initialize_infcmd): Add declaration.
10380 * inflow.c (_initialize_inflow): Add declaration.
10381 * infrun.c (_initialize_infrun): Add declaration.
10382 * interps.c (_initialize_interpreter): Add declaration.
10383 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10384 * jit.c (_initialize_jit): Add declaration.
10385 * language.c (_initialize_language): Add declaration.
10386 * linux-fork.c (_initialize_linux_fork): Add declaration.
10387 * linux-nat.c (_initialize_linux_nat): Add declaration.
10388 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10389 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10390 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10391 * m2-lang.c (_initialize_m2_language): Add declaration.
10392 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10393 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10394 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10395 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10396 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10397 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10398 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10399 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10400 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10401 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10402 * machoread.c (_initialize_machoread): Add declaration.
10403 * macrocmd.c (_initialize_macrocmd): Add declaration.
10404 * macroscope.c (_initialize_macroscope): Add declaration.
10405 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10406 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10407 * maint.c (_initialize_maint_cmds): Add declaration.
10408 * mdebugread.c (_initialize_mdebugread): Add declaration.
10409 * memattr.c (_initialize_mem): Add declaration.
10410 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10411 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10412 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10413 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10414 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10415 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10416 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10417 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10418 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10419 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10420 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10421 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10422 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10423 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10424 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10425 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10426 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10427 * mipsread.c (_initialize_mipsread): Add declaration.
10428 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10429 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10430 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10431 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10432 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10433 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10434 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10435 * nto-procfs.c (_initialize_procfs): Add declaration.
10436 * objc-lang.c (_initialize_objc_language): Add declaration.
10437 * observable.c (_initialize_observer): Add declaration.
10438 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10439 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10440 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10441 * osabi.c (_initialize_gdb_osabi): Add declaration.
10442 * osdata.c (_initialize_osdata): Add declaration.
10443 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10444 * parse.c (_initialize_parse): Add declaration.
10445 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10446 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10447 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10448 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10449 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10450 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10451 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10452 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10453 * printcmd.c (_initialize_printcmd): Add declaration.
10454 * probe.c (_initialize_probe): Add declaration.
10455 * proc-api.c (_initialize_proc_api): Add declaration.
10456 * proc-events.c (_initialize_proc_events): Add declaration.
10457 * proc-service.c (_initialize_proc_service): Add declaration.
10458 * procfs.c (_initialize_procfs): Add declaration.
10459 * producer.c (_initialize_producer): Add declaration.
10460 * psymtab.c (_initialize_psymtab): Add declaration.
10461 * python/python.c (_initialize_python): Add declaration.
10462 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10463 * record-btrace.c (_initialize_record_btrace): Add declaration.
10464 * record-full.c (_initialize_record_full): Add declaration.
10465 * record.c (_initialize_record): Add declaration.
10466 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10467 * regcache.c (_initialize_regcache): Add declaration.
10468 * reggroups.c (_initialize_reggroup): Add declaration.
10469 * remote-notif.c (_initialize_notif): Add declaration.
10470 * remote-sim.c (_initialize_remote_sim): Add declaration.
10471 * remote.c (_initialize_remote): Add declaration.
10472 * reverse.c (_initialize_reverse): Add declaration.
10473 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10474 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10475 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10476 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10477 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10478 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10479 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10480 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10481 Add declaration.
10482 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10483 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10484 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10485 * rust-exp.y (_initialize_rust_exp): Add declaration.
10486 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10487 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10488 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10489 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10490 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10491 * score-tdep.c (_initialize_score_tdep): Add declaration.
10492 * ser-go32.c (_initialize_ser_dos): Add declaration.
10493 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10494 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10495 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10496 * ser-uds.c (_initialize_ser_socket): Add declaration.
10497 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10498 * serial.c (_initialize_serial): Add declaration.
10499 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10500 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10501 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10502 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10503 * skip.c (_initialize_step_skip): Add declaration.
10504 * sol-thread.c (_initialize_sol_thread): Add declaration.
10505 * solib-aix.c (_initialize_solib_aix): Add declaration.
10506 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10507 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10508 * solib-frv.c (_initialize_frv_solib): Add declaration.
10509 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10510 * solib-target.c (_initialize_solib_target): Add declaration.
10511 * solib.c (_initialize_solib): Add declaration.
10512 * source-cache.c (_initialize_source_cache): Add declaration.
10513 * source.c (_initialize_source): Add declaration.
10514 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10515 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10516 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10517 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10518 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10519 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10520 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10521 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10522 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10523 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10524 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10525 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10526 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10527 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10528 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10529 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10530 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10531 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10532 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10533 * stabsread.c (_initialize_stabsread): Add declaration.
10534 * stack.c (_initialize_stack): Add declaration.
10535 * stap-probe.c (_initialize_stap_probe): Add declaration.
10536 * std-regs.c (_initialize_frame_reg): Add declaration.
10537 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10538 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10539 * symfile.c (_initialize_symfile): Add declaration.
10540 * symmisc.c (_initialize_symmisc): Add declaration.
10541 * symtab.c (_initialize_symtab): Add declaration.
10542 * target.c (_initialize_target): Add declaration.
10543 * target-connection.c (_initialize_target_connection): Add
10544 declaration.
10545 * target-dcache.c (_initialize_target_dcache): Add declaration.
10546 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10547 * thread.c (_initialize_thread): Add declaration.
10548 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10549 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10550 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10551 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10552 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10553 * tracectf.c (_initialize_ctf): Add declaration.
10554 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10555 * tracefile.c (_initialize_tracefile): Add declaration.
10556 * tracepoint.c (_initialize_tracepoint): Add declaration.
10557 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10558 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10559 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10560 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10561 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10562 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10563 * tui/tui.c (_initialize_tui): Add declaration.
10564 * typeprint.c (_initialize_typeprint): Add declaration.
10565 * ui-style.c (_initialize_ui_style): Add declaration.
10566 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10567 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10568 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10569 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10570 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10571 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10572 * unittests/filtered_iterator-selftests.c
10573 (_initialize_filtered_iterator_selftests): Add declaration.
10574 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10575 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10576 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10577 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10578 * unittests/main-thread-selftests.c
10579 (_initialize_main_thread_selftests): Add declaration.
10580 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10581 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10582 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10583 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10584 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10585 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10586 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10587 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10588 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10589 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10590 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10591 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10592 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10593 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10594 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10595 declaration.
10596 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10597 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10598 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10599 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10600 * user-regs.c (_initialize_user_regs): Add declaration.
10601 * utils.c (_initialize_utils): Add declaration.
10602 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10603 * valops.c (_initialize_valops): Add declaration.
10604 * valprint.c (_initialize_valprint): Add declaration.
10605 * value.c (_initialize_values): Add declaration.
10606 * varobj.c (_initialize_varobj): Add declaration.
10607 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10608 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10609 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10610 * windows-nat.c (_initialize_windows_nat): Add declaration.
10611 (_initialize_check_for_gdb_ini): Add declaration.
10612 (_initialize_loadable): Add declaration.
10613 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10614 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10615 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10616 * xcoffread.c (_initialize_xcoffread): Add declaration.
10617 * xml-support.c (_initialize_xml_support): Add declaration.
10618 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10619 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10620 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10621 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10622
10623 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10624
10625 * regformats/regdat.sh: Generate declaration for init function.
10626
10627 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10628
10629 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10630 up.
10631 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10632 close_one_inferior>: New methods.
10633 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10634 pass down target to find_inferior_pid.
10635 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10636 Pass down target to find_inferior_ptid.
10637 (gdbsim_target::create_inferior): Pass down target to
10638 add_thread_silent.
10639 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10640 target down to find_inferior_ptid and switch_to_thread.
10641 (gdbsim_target::close): Update to call close_one_inferior.
10642 (struct resume_data): Remove.
10643 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10644 directly, rather than through a void pointer.
10645 (gdbsim_target::resume): Update to call resume_one_inferior.
10646
10647 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10648
10649 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10650
10651 2020-01-12 Pedro Alves <palves@redhat.com>
10652
10653 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10654 directly for the current inferior instead of
10655 discard_all_inferiors.
10656 (discard_all_inferiors): Delete.
10657
10658 2020-01-11 Tom Tromey <tom@tromey.com>
10659
10660 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10661 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10662 deprecated_safe_get_selected_frame.
10663
10664 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10665
10666 * inferior.c (print_inferior): Switch inferior before printing it.
10667
10668 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10669 Pedro Alves <palves@redhat.com>
10670
10671 * progspace-and-thread.c (switch_to_program_space_and_thread):
10672 Assert there's an inferior for PSPACE. Use
10673 switch_to_inferior_no_thread to switch the inferior too.
10674 * progspace.c (program_space::~program_space): Call
10675 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10676 (program_space::free_all_objfiles): Don't call clear_symtab_users
10677 here.
10678 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10679
10680 2020-01-10 Pedro Alves <palves@redhat.com>
10681
10682 * NEWS: Mention multi-target debugging, "info connections", and
10683 "add-inferior -no-connection".
10684
10685 2020-01-10 Pedro Alves <palves@redhat.com>
10686
10687 * infrun.c: Include "target-connection.h".
10688 (check_multi_target_resumption): New.
10689 (proceed): Call it.
10690 * target-connection.c (make_target_connection_string): Make
10691 extern.
10692 * target-connection.h (make_target_connection_string): Declare.
10693
10694 2020-01-10 Pedro Alves <palves@redhat.com>
10695
10696 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10697 * inferior.c (uiout_field_connection): New function.
10698 (print_inferior): Add new "connection-id" column.
10699 (add_inferior_command): Show connection number/string of added
10700 inferior.
10701 * process-stratum-target.h
10702 (process_stratum_target::connection_string): New virtual method.
10703 (process_stratum_target::connection_number): New field.
10704 * remote.c (remote_target::connection_string): New override.
10705 * target-connection.c: New file.
10706 * target-connection.h: New file.
10707 * target.c (decref_target): Remove process_stratum targets from
10708 the connection list.
10709 (target_stack::push): Add process_stratum targets to the
10710 connection list.
10711
10712 2020-01-10 Pedro Alves <palves@redhat.com>
10713
10714 Revert:
10715 2016-04-12 Pedro Alves <palves@redhat.com>
10716 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10717 Remove references to name.
10718 * serial.h (struct serial) <name>: Delete.
10719
10720 2020-01-10 Pedro Alves <palves@redhat.com>
10721
10722 * gdbarch-selftests.c (register_to_value_test): Remove "target
10723 already pushed" check.
10724
10725 2020-01-10 Pedro Alves <palves@redhat.com>
10726 John Baldwin <jhb@FreeBSD.org>
10727
10728 * aarch64-linux-nat.c
10729 (aarch64_linux_nat_target::thread_architecture): Adjust.
10730 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10731 (task_command_1): Likewise.
10732 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10733 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10734 (aix_thread_target::store_registers)
10735 (aix_thread_target::thread_alive): Adjust.
10736 * amd64-fbsd-tdep.c: Include "inferior.h".
10737 (amd64fbsd_get_thread_local_address): Pass down target.
10738 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10739 thread's gdbarch instead of target_gdbarch.
10740 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10741 get_last_target_status.
10742 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10743 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10744 inferiors.
10745 (update_inserted_breakpoint_locations): Skip if inferiors with no
10746 execution.
10747 (update_global_location_list): When handling moribund locations,
10748 find representative inferior for location's pspace, and use thread
10749 count of its process_stratum target.
10750 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10751 * bsd-uthread.c (bsd_uthread_target::wait): Use
10752 as_process_stratum_target and adjust thread_change_ptid and
10753 add_thread calls.
10754 (bsd_uthread_target::update_thread_list): Use
10755 as_process_stratum_target and adjust find_thread_ptid,
10756 thread_change_ptid and add_thread calls.
10757 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10758 find_thread_ptid call.
10759 * corelow.c (add_to_thread_list): Adjust add_thread call.
10760 (core_target_open): Adjust add_thread_silent and thread_count
10761 calls.
10762 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10763 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10764 * event-top.c (async_disconnect): Pop targets from all inferiors.
10765 * exec.c (add_target_sections): Push exec target on all inferiors
10766 sharing the program space.
10767 (remove_target_sections): Remove the exec target from all
10768 inferiors sharing the program space.
10769 (exec_on_vfork): New.
10770 * exec.h (exec_on_vfork): Declare.
10771 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10772 Pass it down.
10773 (fbsd_nat_target::update_thread_list): Adjust.
10774 (fbsd_nat_target::resume): Adjust.
10775 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10776 down.
10777 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10778 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10779 get_thread_arch_regcache call.
10780 * fork-child.c (gdb_startup_inferior): Pass target down to
10781 startup_inferior and set_executing.
10782 * gdbthread.h (struct process_stratum_target): Forward declare.
10783 (add_thread, add_thread_silent, add_thread_with_info)
10784 (in_thread_list): Add process_stratum_target parameter.
10785 (find_thread_ptid(inferior*, ptid_t)): New overload.
10786 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10787 parameter.
10788 (all_threads()): Delete overload.
10789 (all_threads, all_non_exited_threads): Add process_stratum_target
10790 parameter.
10791 (all_threads_safe): Use brace initialization.
10792 (thread_count): Add process_stratum_target parameter.
10793 (set_resumed, set_running, set_stop_requested, set_executing)
10794 (threads_are_executing, finish_thread_state): Add
10795 process_stratum_target parameter.
10796 (switch_to_thread): Use is_current_thread.
10797 * i386-fbsd-tdep.c: Include "inferior.h".
10798 (i386fbsd_get_thread_local_address): Pass down target.
10799 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10800 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10801 have_inferiors check.
10802 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10803 (inf_ptrace_target::attach): Adjust.
10804 * infcall.c (run_inferior_call): Adjust.
10805 * infcmd.c (run_command_1): Pass target to
10806 scoped_finish_thread_state.
10807 (proceed_thread_callback): Skip inferiors with no execution.
10808 (continue_command): Rename 'all_threads' local to avoid hiding
10809 'all_threads' function. Adjust get_last_target_status call.
10810 (prepare_one_step): Adjust set_running call.
10811 (signal_command): Use user_visible_resume_target. Compare thread
10812 pointers instead of inferior_ptid.
10813 (info_program_command): Adjust to pass down target.
10814 (attach_command): Mark target's 'thread_executing' flag.
10815 (stop_current_target_threads_ns): New, factored out from ...
10816 (interrupt_target_1): ... this. Switch inferior before making
10817 target calls.
10818 * inferior-iter.h
10819 (struct all_inferiors_iterator, struct all_inferiors_range)
10820 (struct all_inferiors_safe_range)
10821 (struct all_non_exited_inferiors_range): Filter on
10822 process_stratum_target too. Remove explicit.
10823 * inferior.c (inferior::inferior): Push dummy target on target
10824 stack.
10825 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10826 Add process_stratum_target parameter, and pass it down.
10827 (have_live_inferiors): Adjust.
10828 (switch_to_inferior_and_push_target): New.
10829 (add_inferior_command, clone_inferior_command): Handle
10830 "-no-connection" parameter. Use
10831 switch_to_inferior_and_push_target.
10832 (_initialize_inferior): Mention "-no-connection" option in
10833 the help of "add-inferior" and "clone-inferior" commands.
10834 * inferior.h: Include "process-stratum-target.h".
10835 (interrupt_target_1): Use bool.
10836 (struct inferior) <push_target, unpush_target, target_is_pushed,
10837 find_target_beneath, top_target, process_target, target_at,
10838 m_stack>: New.
10839 (discard_all_inferiors): Delete.
10840 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10841 (all_inferiors, all_non_exited_inferiors): Add
10842 process_stratum_target parameter.
10843 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10844 (target_last_proc_target): New global.
10845 (follow_fork_inferior): Push target on new inferior. Pass target
10846 to add_thread_silent. Call exec_on_vfork. Handle target's
10847 reference count.
10848 (follow_fork): Adjust get_last_target_status call. Also consider
10849 target.
10850 (follow_exec): Push target on new inferior.
10851 (struct execution_control_state) <target>: New field.
10852 (user_visible_resume_target): New.
10853 (do_target_resume): Call target_async.
10854 (resume_1): Set target's threads_executing flag. Consider resume
10855 target.
10856 (commit_resume_all_targets): New.
10857 (proceed): Also consider resume target. Skip threads of inferiors
10858 with no execution. Commit resumtion in all targets.
10859 (start_remote): Pass current inferior to wait_for_inferior.
10860 (infrun_thread_stop_requested): Consider target as well. Pass
10861 thread_info pointer to clear_inline_frame_state instead of ptid.
10862 (infrun_thread_thread_exit): Consider target as well.
10863 (random_pending_event_thread): New inferior parameter. Use it.
10864 (do_target_wait): Rename to ...
10865 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10866 down.
10867 (threads_are_resumed_pending_p, do_target_wait): New.
10868 (prepare_for_detach): Adjust calls.
10869 (wait_for_inferior): New inferior parameter. Handle it. Use
10870 do_target_wait_1 instead of do_target_wait.
10871 (fetch_inferior_event): Adjust. Switch to representative
10872 inferior. Pass target down.
10873 (set_last_target_status): Add process_stratum_target parameter.
10874 Save target in global.
10875 (get_last_target_status): Add process_stratum_target parameter and
10876 handle it.
10877 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10878 (context_switch): Check inferior_ptid == null_ptid before calling
10879 inferior_thread().
10880 (get_inferior_stop_soon): Pass down target.
10881 (wait_one): Rename to ...
10882 (poll_one_curr_target): ... this.
10883 (struct wait_one_event): New.
10884 (wait_one): New.
10885 (stop_all_threads): Adjust.
10886 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10887 event's target.
10888 (switch_back_to_stepped_thread): Also consider target.
10889 (print_stop_event): Update.
10890 (normal_stop): Update. Also consider the resume target.
10891 * infrun.h (wait_for_inferior): Remove declaration.
10892 (user_visible_resume_target): New declaration.
10893 (get_last_target_status, set_last_target_status): New
10894 process_stratum_target parameter.
10895 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10896 process_stratum_target parameter, and use it.
10897 (clear_inline_frame_state (thread_info*)): New.
10898 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10899 process_stratum_target parameter.
10900 (clear_inline_frame_state (thread_info*)): Declare.
10901 * linux-fork.c (delete_checkpoint_command): Pass target down to
10902 find_thread_ptid.
10903 (checkpoint_command): Adjust.
10904 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10905 instead of just tweaking inferior_ptid.
10906 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10907 (exit_lwp): Pass target down to find_thread_ptid.
10908 (attach_proc_task_lwp_callback): Pass target down to
10909 add_thread/set_running/set_executing.
10910 (linux_nat_target::attach): Pass target down to
10911 thread_change_ptid.
10912 (get_detach_signal): Pass target down to find_thread_ptid.
10913 Consider last target status's target.
10914 (linux_resume_one_lwp_throw, resume_lwp)
10915 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10916 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10917 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10918 (linux_nat_target::async_wait_fd): New.
10919 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10920 target down.
10921 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10922 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10923 * linux-thread-db.c (struct thread_db_info::process_target): New
10924 field.
10925 (add_thread_db_info): Save target.
10926 (get_thread_db_info): New process_stratum_target parameter. Also
10927 match target.
10928 (delete_thread_db_info): New process_stratum_target parameter.
10929 Also match target.
10930 (thread_from_lwp): Adjust to pass down target.
10931 (thread_db_notice_clone): Pass down target.
10932 (check_thread_db_callback): Pass down target.
10933 (try_thread_db_load_1): Always push the thread_db target.
10934 (try_thread_db_load, record_thread): Pass target down.
10935 (thread_db_target::detach): Pass target down. Always unpush the
10936 thread_db target.
10937 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10938 target down. Always unpush the thread_db target.
10939 (find_new_threads_callback, thread_db_find_new_threads_2)
10940 (thread_db_target::update_thread_list): Pass target down.
10941 (thread_db_target::pid_to_str): Pass current inferior down.
10942 (thread_db_target::get_thread_local_address): Pass target down.
10943 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10944 target down.
10945 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10946 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10947 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10948 (procfs_init_inferior): Rename to ...
10949 (procfs_target::procfs_init_inferior): ... this and adjust.
10950 (procfs_target::create_inferior, procfs_notice_thread)
10951 (procfs_do_thread_registers): Adjust.
10952 * ppc-fbsd-tdep.c: Include "inferior.h".
10953 (ppcfbsd_get_thread_local_address): Pass down target.
10954 * proc-service.c (ps_xfer_memory): Switch current inferior and
10955 program space as well.
10956 (get_ps_regcache): Pass target down.
10957 * process-stratum-target.c
10958 (process_stratum_target::thread_address_space)
10959 (process_stratum_target::thread_architecture): Pass target down.
10960 * process-stratum-target.h
10961 (process_stratum_target::threads_executing): New field.
10962 (as_process_stratum_target): New.
10963 * ravenscar-thread.c
10964 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10965 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10966 down.
10967 * record-btrace.c (record_btrace_target::info_record): Adjust.
10968 (record_btrace_target::record_method)
10969 (record_btrace_target::record_is_replaying)
10970 (record_btrace_target::fetch_registers)
10971 (get_thread_current_frame_id, record_btrace_target::resume)
10972 (record_btrace_target::wait, record_btrace_target::stop): Pass
10973 target down.
10974 * record-full.c (record_full_wait_1): Switch to event thread.
10975 Pass target down.
10976 * regcache.c (regcache::regcache)
10977 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10978 process_stratum_target parameter and handle it.
10979 (current_thread_target): New global.
10980 (get_thread_regcache): Add process_stratum_target parameter and
10981 handle it. Switch inferior before calling target method.
10982 (get_thread_regcache): Pass target down.
10983 (get_thread_regcache_for_ptid): Pass target down.
10984 (registers_changed_ptid): Add process_stratum_target parameter and
10985 handle it.
10986 (registers_changed_thread, registers_changed): Pass target down.
10987 (test_get_thread_arch_aspace_regcache): New.
10988 (current_regcache_test): Define a couple local test_target_ops
10989 instances and use them for testing.
10990 (readwrite_regcache): Pass process_stratum_target parameter.
10991 (cooked_read_test, cooked_write_test): Pass mock_target down.
10992 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10993 (get_thread_arch_aspace_regcache): Add process_stratum_target
10994 parameter.
10995 (regcache::target): New method.
10996 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10997 (regcache::registers_changed_ptid): Add process_stratum_target
10998 parameter.
10999 (regcache::m_target): New field.
11000 (registers_changed_ptid): Add process_stratum_target parameter.
11001 * remote.c (remote_state::supports_vCont_probed): New field.
11002 (remote_target::async_wait_fd): New method.
11003 (remote_unpush_and_throw): Add remote_target parameter.
11004 (get_current_remote_target): Adjust.
11005 (remote_target::remote_add_inferior): Push target.
11006 (remote_target::remote_add_thread)
11007 (remote_target::remote_notice_new_inferior)
11008 (get_remote_thread_info): Pass target down.
11009 (remote_target::update_thread_list): Skip threads of inferiors
11010 bound to other targets. (remote_target::close): Don't discard
11011 inferiors. (remote_target::add_current_inferior_and_thread)
11012 (remote_target::process_initial_stop_replies)
11013 (remote_target::start_remote)
11014 (remote_target::remote_serial_quit_handler): Pass down target.
11015 (remote_target::remote_unpush_target): New remote_target
11016 parameter. Unpush the target from all inferiors.
11017 (remote_target::remote_unpush_and_throw): New remote_target
11018 parameter. Pass it down.
11019 (remote_target::open_1): Check whether the current inferior has
11020 execution instead of checking whether any inferior is live. Pass
11021 target down.
11022 (remote_target::remote_detach_1): Pass down target. Use
11023 remote_unpush_target.
11024 (extended_remote_target::attach): Pass down target.
11025 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11026 (remote_target::append_resumption): Pass down target.
11027 (remote_target::append_pending_thread_resumptions)
11028 (remote_target::remote_resume_with_hc, remote_target::resume)
11029 (remote_target::commit_resume): Pass down target.
11030 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11031 (remote_target::interrupt_query)
11032 (remote_target::remove_new_fork_children)
11033 (remote_target::check_pending_events_prevent_wildcard_vcont)
11034 (remote_target::remote_parse_stop_reply)
11035 (remote_target::process_stop_reply): Pass down target.
11036 (first_remote_resumed_thread): New remote_target parameter. Pass
11037 it down.
11038 (remote_target::wait_as): Pass down target.
11039 (unpush_and_perror): New remote_target parameter. Pass it down.
11040 (remote_target::readchar, remote_target::remote_serial_write)
11041 (remote_target::getpkt_or_notif_sane_1)
11042 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11043 down target.
11044 (remote_target::mourn_inferior): Pass down target. Use
11045 remote_unpush_target.
11046 (remote_target::core_of_thread)
11047 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11048 (remote_target::pid_to_exec_file)
11049 (remote_target::thread_handle_to_thread_info): Pass down target.
11050 (remote_target::async_wait_fd): New.
11051 * riscv-fbsd-tdep.c: Include "inferior.h".
11052 (riscv_fbsd_get_thread_local_address): Pass down target.
11053 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11054 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11055 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11056 Adjust.
11057 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11058 * solib-svr4.c (enable_break): Pass down target.
11059 * spu-multiarch.c (parse_spufs_run): Pass down target.
11060 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11061 * target-delegates.c: Regenerate.
11062 * target.c (g_target_stack): Delete.
11063 (current_top_target): Return the current inferior's top target.
11064 (target_has_execution_1): Refer to the passed-in inferior's top
11065 target.
11066 (target_supports_terminal_ours): Check whether the initial
11067 inferior was already created.
11068 (decref_target): New.
11069 (target_stack::push): Incref/decref the target.
11070 (push_target, push_target, unpush_target): Adjust.
11071 (target_stack::unpush): Defref target.
11072 (target_is_pushed): Return bool. Adjust to refer to the current
11073 inferior's target stack.
11074 (dispose_inferior): Delete, and inline parts ...
11075 (target_preopen): ... here. Only dispose of the current inferior.
11076 (target_detach): Hold strong target reference while detaching.
11077 Pass target down.
11078 (target_thread_name): Add assertion.
11079 (target_resume): Pass down target.
11080 (target_ops::beneath, find_target_at): Adjust to refer to the
11081 current inferior's target stack.
11082 (get_dummy_target): New.
11083 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11084 has a thread running.
11085 (initialize_targets): Rename to ...
11086 (_initialize_target): ... this.
11087 * target.h: Include "gdbsupport/refcounted-object.h".
11088 (struct target_ops): Inherit refcounted_object.
11089 (target_ops::shortname, target_ops::longname): Make const.
11090 (target_ops::async_wait_fd): New method.
11091 (decref_target): Declare.
11092 (struct target_ops_ref_policy): New.
11093 (target_ops_ref): New typedef.
11094 (get_dummy_target): Declare function.
11095 (target_is_pushed): Return bool.
11096 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11097 (all_matching_threads_iterator::all_matching_threads_iterator):
11098 Handle filter target.
11099 * thread-iter.h (struct all_matching_threads_iterator, struct
11100 all_matching_threads_range, class all_non_exited_threads_range):
11101 Filter by target too. Remove explicit.
11102 * thread.c (threads_executing): Delete.
11103 (inferior_thread): Pass down current inferior.
11104 (clear_thread_inferior_resources): Pass down thread pointer
11105 instead of ptid_t.
11106 (add_thread_silent, add_thread_with_info, add_thread): Add
11107 process_stratum_target parameter. Use it for thread and inferior
11108 searches.
11109 (is_current_thread): New.
11110 (thread_info::deletable): Use it.
11111 (find_thread_ptid, thread_count, in_thread_list)
11112 (thread_change_ptid, set_resumed, set_running): New
11113 process_stratum_target parameter. Pass it down.
11114 (set_executing): New process_stratum_target parameter. Pass it
11115 down. Adjust reference to 'threads_executing'.
11116 (threads_are_executing): New process_stratum_target parameter.
11117 Adjust reference to 'threads_executing'.
11118 (set_stop_requested, finish_thread_state): New
11119 process_stratum_target parameter. Pass it down.
11120 (switch_to_thread): Also match inferior.
11121 (switch_to_thread): New process_stratum_target parameter. Pass it
11122 down.
11123 (update_threads_executing): Reimplement.
11124 * top.c (quit_force): Pop targets from all inferior.
11125 (gdb_init): Don't call initialize_targets.
11126 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11127 Declare.
11128 (windows_add_thread, windows_delete_thread): Adjust.
11129 (get_windows_debug_event): Rename to ...
11130 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11131 * tracefile-tfile.c (tfile_target_open): Pass down target.
11132 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11133 Forward declare.
11134 (switch_to_thread): Add process_stratum_target parameter.
11135 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11136 parameter. Use it.
11137 (mi_on_resume): Pass target down.
11138 * nat/fork-inferior.c (startup_inferior): Add
11139 process_stratum_target parameter. Pass it down.
11140 * nat/fork-inferior.h (startup_inferior): Add
11141 process_stratum_target parameter.
11142 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11143
11144 2020-01-10 Pedro Alves <palves@redhat.com>
11145
11146 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11147 directly. Instead find the first thread in the thread list and
11148 use switch_to_thread.
11149
11150 2020-01-10 Pedro Alves <palves@redhat.com>
11151
11152 * remote.c (remote_target::remote_add_inferior): Don't bind a
11153 process to the current inferior if the current inferior is already
11154 bound to a process.
11155
11156 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11157 Pedro Alves <palves@redhat.com>
11158
11159 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11160 If no process is specified, return null_ptid instead of
11161 inferior_ptid.
11162 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11163 TARGET_WAITKIND_SIGNALLED with no pid.
11164
11165 2020-01-10 Pedro Alves <palves@redhat.com>
11166
11167 * remote.c (first_remote_resumed_thread): New.
11168 (remote_target::wait_as): Use it as default event_ptid instead of
11169 inferior_ptid.
11170
11171 2020-01-10 Pedro Alves <palves@redhat.com>
11172
11173 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11174
11175 2020-01-10 Pedro Alves <palves@redhat.com>
11176
11177 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11178 not -1.
11179
11180 2020-01-10 Pedro Alves <palves@redhat.com>
11181
11182 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11183 ptid to get_last_target_status.
11184 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11185 ptid to get_last_target_status.
11186 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11187 get_last_target_status.
11188 (info_program_command): Don't pass a target_waitstatus to
11189 get_last_target_status.
11190 * infrun.c (init_wait_for_inferior): Use
11191 nullify_last_target_wait_ptid.
11192 (get_last_target_status): Handle nullptr arguments.
11193 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11194 (print_stop_event): Don't pass a ptid to get_last_target_status.
11195 (normal_stop): Don't pass a ptid to get_last_target_status.
11196 * infrun.h (get_last_target_status, set_last_target_status): Move
11197 comments here and update.
11198 (nullify_last_target_wait_ptid): Declare.
11199 * linux-fork.c (fork_load_infrun_state): Remove local extern
11200 declaration of nullify_last_target_wait_ptid.
11201 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11202 to get_last_target_status.
11203
11204 2020-01-10 Pedro Alves <palves@redhat.com>
11205
11206 * gdbthread.h (scoped_restore_current_thread)
11207 <dont_restore, restore, m_dont_restore>: Declare.
11208 * thread.c (thread_alive): Add assertion. Return bool.
11209 (switch_to_thread_if_alive): New.
11210 (prune_threads): Switch inferior/thread.
11211 (print_thread_info_1): Switch thread before calling target methods.
11212 (scoped_restore_current_thread::restore): New, factored out from
11213 ...
11214 (scoped_restore_current_thread::~scoped_restore_current_thread):
11215 ... this.
11216 (scoped_restore_current_thread::scoped_restore_current_thread):
11217 Add assertion.
11218 (thread_apply_all_command, thread_select): Use
11219 switch_to_thread_if_alive.
11220 * infrun.c (proceed, restart_threads, handle_signal_stop)
11221 (switch_back_to_stepped_thread): Switch current thread before
11222 calling target methods.
11223
11224 2020-01-10 Pedro Alves <palves@redhat.com>
11225
11226 * inferior.c (switch_to_inferior_no_thread): New function,
11227 factored out from ...
11228 (inferior_command): ... here.
11229 * inferior.h (switch_to_inferior_no_thread): Declare.
11230 * mi/mi-main.c (run_one_inferior): Use
11231 switch_to_inferior_no_thread.
11232
11233 2020-01-10 Pedro Alves <palves@redhat.com>
11234
11235 * infcmd.c (kill_command): Remove dead code.
11236
11237 2020-01-10 Pedro Alves <palves@redhat.com>
11238
11239 * remote.c (remote_target::mourn_inferior): No longer check
11240 whether the target is running.
11241
11242 2020-01-10 Pedro Alves <palves@redhat.com>
11243
11244 * corelow.c (core_target::has_execution): Change parameter type to
11245 inferior pointer.
11246 * inferior.c (number_of_live_inferiors): Use
11247 inferior::has_execution instead of target_has_execution_1.
11248 * inferior.h (inferior::has_execution): New.
11249 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11250 inferior::has_execution instead of target_has_execution_1.
11251 * process-stratum-target.c
11252 (process_stratum_target::has_execution): Change parameter type to
11253 inferior pointer. Check the inferior's PID instead of
11254 inferior_ptid.
11255 * process-stratum-target.h
11256 (process_stratum_target::has_execution): Change parameter type to
11257 inferior pointer.
11258 * record-full.c (record_full_core_target::has_execution): Change
11259 parameter type to inferior pointer.
11260 * target.c (target_has_execution_1): Change parameter type to
11261 inferior pointer.
11262 (target_has_execution_current): Adjust.
11263 * target.h (target_ops::has_execution): Change parameter type to
11264 inferior pointer.
11265 (target_has_execution_1): Change parameter type to inferior
11266 pointer. Change return type to bool.
11267 * tracefile.h (tracefile_target::has_execution): Change parameter
11268 type to inferior pointer.
11269
11270 2020-01-10 Pedro Alves <palves@redhat.com>
11271
11272 * exceptions.c (print_flush): Remove current_top_target() check.
11273
11274 2020-01-10 Pedro Alves <palves@redhat.com>
11275
11276 * remote.c (show_remote_exec_file): Show the current inferior's
11277 exec-file instead of the command variable's value.
11278
11279 2020-01-10 Pedro Alves <palves@redhat.com>
11280
11281 * record-full.c (record_full_resume_ptid): New global.
11282 (record_full_target::resume): Set it.
11283 (record_full_wait_1): Use record_full_resume_ptid instead of
11284 inferior_ptid.
11285
11286 2020-01-10 Pedro Alves <palves@redhat.com>
11287
11288 * gdbthread.h (scoped_restore_current_thread)
11289 <dont_restore, restore, m_dont_restore>: Declare.
11290 * thread.c (thread_alive): Add assertion. Return bool.
11291 (switch_to_thread_if_alive): New.
11292 (prune_threads): Switch inferior/thread.
11293 (print_thread_info_1): Switch thread before calling target methods.
11294 (scoped_restore_current_thread::restore): New, factored out from
11295 ...
11296 (scoped_restore_current_thread::~scoped_restore_current_thread):
11297 ... this.
11298 (scoped_restore_current_thread::scoped_restore_current_thread):
11299 Add assertion.
11300 (thread_apply_all_command, thread_select): Use
11301 switch_to_thread_if_alive.
11302
11303 2020-01-10 George Barrett <bob@bob131.so>
11304
11305 * stap-probe.c (stap_modify_semaphore): Don't check for null
11306 semaphores.
11307 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11308 for null semaphores.
11309
11310 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11311
11312 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11313 all source windows, and maintain horizontal scroll status while
11314 doing so.
11315
11316 2020-01-09 Tom Tromey <tom@tromey.com>
11317
11318 PR tui/18932:
11319 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11320 update_source_window, not print_source_lines.
11321
11322 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11323
11324 * tui/tui.c (tui_enable): Register tui hooks after calling
11325 tui_display_main.
11326
11327 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11328
11329 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11330
11331 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11332
11333 * thread.c (print_thread_info_1): Fix indentation.
11334
11335 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11336
11337 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11338 unique_xmalloc_ptr outside the if to always free the demangled name.
11339
11340 2020-01-08 Tom Tromey <tromey@adacore.com>
11341
11342 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11343 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11344 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11345 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11346 Remove.
11347 (section_offsets): New typedef.
11348 * symtab.c (fixup_section, get_msymbol_address): Update.
11349 * symmisc.c (dump_msymbols): Update.
11350 * symfile.h (relative_addr_info_to_section_offsets)
11351 (symfile_map_offsets_to_segments): Update.
11352 * symfile.c (build_section_addr_info_from_objfile)
11353 (init_objfile_sect_indices): Update.
11354 (struct place_section_arg): Change type of "offsets".
11355 (place_section): Update.
11356 (relative_addr_info_to_section_offsets): Change type of
11357 "section_offsets". Remove "num_sections" parameter.
11358 (default_symfile_offsets, syms_from_objfile_1)
11359 (set_objfile_default_section_offset): Update.
11360 (reread_symbols): No need to preserve section offsets by hand.
11361 (symfile_map_offsets_to_segments): Change type of "offsets".
11362 * stap-probe.c (relocate_address): Update.
11363 * stabsread.h (process_one_symbol): Update.
11364 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11365 (solib_target_relocate_section_addresses): Update.
11366 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11367 Update.
11368 * solib-frv.c (frv_relocate_main_executable): Update.
11369 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11370 * solib-aix.c (solib_aix_get_section_offsets): Change return
11371 type.
11372 (solib_aix_solib_create_inferior_hook): Update.
11373 * remote.c (remote_target::get_offsets): Update.
11374 * psymtab.c (find_pc_sect_psymtab): Update.
11375 * psympriv.h (struct partial_symbol) <address, text_low,
11376 text_high>: Update.
11377 * objfiles.h (obj_section_offset): Update.
11378 (struct objfile) <section_offsets>: Change type.
11379 <num_sections>: Remove.
11380 (objfile_relocate): Update.
11381 * objfiles.c (entry_point_address_query): Update
11382 (relocate_one_symbol): Change type of "section_offsets".
11383 (objfile_relocate1, objfile_relocate1): Change type of
11384 "new_offsets".
11385 (objfile_rebase1): Update.
11386 * mipsread.c (mipscoff_symfile_read): Update.
11387 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11388 parameter.
11389 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11390 (parse_external, psymtab_to_symtab_1): Update.
11391 * machoread.c (macho_symfile_offsets): Update.
11392 * ia64-tdep.c (ia64_find_unwind_table): Update.
11393 * hppa-tdep.c (read_unwind_info): Update.
11394 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11395 * dwarf2read.c (create_addrmap_from_index)
11396 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11397 (process_psymtab_comp_unit_reader, add_partial_symbol)
11398 (add_partial_subprogram, process_full_comp_unit)
11399 (read_file_scope, read_func_scope, read_lexical_block_scope)
11400 (read_call_site_scope, dwarf2_rnglists_process)
11401 (dwarf2_ranges_process, dwarf2_ranges_read)
11402 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11403 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11404 Update.
11405 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11406 Update.
11407 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11408 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11409 (process_one_symbol): Change type of "section_offsets".
11410 * ctfread.c (get_objfile_text_range): Update.
11411 * coffread.c (coff_symtab_read, enter_linenos)
11412 (process_coff_symbol): Update.
11413 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11414 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11415
11416 2020-01-08 Tom Tromey <tromey@adacore.com>
11417
11418 * dwarf2read.c (parse_macro_definition): Use std::string.
11419 (parse_macro_definition): Likewise.
11420
11421 2020-01-08 Tom Tromey <tromey@adacore.com>
11422
11423 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11424 (ATTR_ALLOC_CHUNK): Remove.
11425
11426 2020-01-08 Tom Tromey <tromey@adacore.com>
11427
11428 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11429
11430 2020-01-08 Tom Tromey <tromey@adacore.com>
11431
11432 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11433 (dwarf2_compute_name, open_dwo_file): Likewise.
11434 (process_enumeration_scope): Use std::vector.
11435 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11436 (partial_die_info::fixup, dwarf2_start_subfile)
11437 (guess_full_die_structure_name, dwarf2_name): Likewise.
11438 (determine_prefix): Update.
11439 (guess_full_die_structure_name): Make return type const.
11440 (partial_die_full_name): Return unique_xmalloc_ptr.
11441 (DW_FIELD_ALLOC_CHUNK): Remove.
11442
11443 2020-01-07 Tom Tromey <tromey@adacore.com>
11444
11445 PR build/24937:
11446 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11447
11448 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11449
11450 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11451
11452 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11453
11454 * stack.c (print_frame_info): Move disassemble_next_line code
11455 inside source_print block.
11456
11457 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11458
11459 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11460 gdb/signals.h, as we are now using native signal symbols.
11461
11462 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11463
11464 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11465 overflow by an early check of content vs threshold.
11466 * tui/tui-source.c (tui_source_window::line_is_displayed):
11467 Likewise.
11468
11469 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11470
11471 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11472
11473 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11474
11475 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11476 export table if no section contains it's RVA.
11477
11478 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11479
11480 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11481
11482 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11483
11484 * source.c (print_source_lines_base): Set last_line_listed.
11485
11486 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11487
11488 * tui/tui-disasm.c: Remove trailing spaces.
11489
11490 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11491 Pedro Alves <palves@redhat.com>
11492
11493 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11494 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11495 (windows_gdb_signal_to_target): New function, uses the above
11496 enumeration to convert GDB internal signal codes to equivalent
11497 Windows codes.
11498 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11499 * windows-nat.c: Include "gdb_wait.h".
11500 (get_windows_debug_event): Extract the fatal exception from the
11501 exit status and convert to the equivalent Posix signal number.
11502 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11503 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11504 * gdbsupport/gdb_wait.c: New file, implements
11505 windows_status_to_termsig.
11506 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11507 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11508
11509 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11510
11511 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11512 show_layout.
11513
11514 2020-01-05 Luis Machado <luis.machado@linaro.org>
11515
11516 * aarch64-linux-nat.c
11517 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11518 and bfd_mach_aarch64.
11519
11520 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11521
11522 * ui-file.c (stdio_file::can_emit_style_escape)
11523 (tee_file::can_emit_style_escape): Ensure style is used also on
11524 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11525 to gdb_stdout.
11526 * main.c (set_gdb_data_directory): Use file style to output the
11527 warning that the given pathname is not a directory.
11528 * top.c (show_history_filename, gdb_safe_append_history)
11529 (show_gdb_datadir): Use file style.
11530
11531 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11532
11533 * solib-target.c (struct lm_info_target):
11534 Change offsets to be a unique_xmalloc_ptr.
11535 (solib_target_relocate_section_addresses): Update.
11536
11537 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11538
11539 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11540
11541 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11542
11543 * MAINTAINERS (Write After Approval): Add myself.
11544
11545 2020-01-02 Luis Machado <luis.machado@linaro.org>
11546
11547 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11548 Cell BE architecture.
11549 * target.h (struct target_ops) <thread_architecture>: Likewise.
11550
11551 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11552
11553 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11554
11555 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11556
11557 * MAINTAINERS (Write After Approval): Add myself.
11558
11559 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11560
11561 * gdbarch.sh: Update copyright year range of generated files.
11562
11563 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11564
11565 Update copyright year range in all GDB files.
11566
11567 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11568
11569 * copyright.py: Convert to Python 3.
11570
11571 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11572
11573 * copyright.py: Adapt after move of gnulib directory from gdb
11574 directory to toplevel directory.
11575
11576 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11577
11578 * copyright.py (main): Exit if run from the wrong directory.
11579
11580 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11581
11582 * top.c (print_gdb_version): Change copyright year to 2020.
11583
11584 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11585
11586 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
11587
11588 For older changes see ChangeLog-2019.
11589 \f
11590 Local Variables:
11591 mode: change-log
11592 left-margin: 8
11593 fill-column: 74
11594 version-control: never
11595 coding: utf-8
11596 End: