]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: Represent all languages as sub-classes of language_defn
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0874fd07
AB
12020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * gdb/ada-lang.c (ada_language_defn): Convert to...
4 (ada_language_data): ...this.
5 (class ada_language): New class.
6 (ada_language_defn): New static global.
7 * gdb/c-lang.c (c_language_defn): Convert to...
8 (c_language_data): ...this.
9 (class c_language): New class.
10 (c_language_defn): New static global.
11 (cplus_language_defn): Convert to...
12 (cplus_language_data): ...this.
13 (class cplus_language): New class.
14 (cplus_language_defn): New static global.
15 (asm_language_defn): Convert to...
16 (asm_language_data): ...this.
17 (class asm_language): New class.
18 (asm_language_defn): New static global.
19 (minimal_language_defn): Convert to...
20 (minimal_language_data): ...this.
21 (class minimal_language): New class.
22 (minimal_language_defn): New static global.
23 * gdb/d-lang.c (d_language_defn): Convert to...
24 (d_language_data): ...this.
25 (class d_language): New class.
26 (d_language_defn): New static global.
27 * gdb/f-lang.c (f_language_defn): Convert to...
28 (f_language_data): ...this.
29 (class f_language): New class.
30 (f_language_defn): New static global.
31 * gdb/go-lang.c (go_language_defn): Convert to...
32 (go_language_data): ...this.
33 (class go_language): New class.
34 (go_language_defn): New static global.
35 * gdb/language.c (unknown_language_defn): Remove declaration.
36 (current_language): Initialize to nullptr, real initialization is
37 moved to _initialize_language.
38 (languages): Delete global.
39 (language_defn::languages): Define.
40 (set_language_command): Use language_defn::languages.
41 (set_language): Likewise.
42 (range_error): Likewise.
43 (language_enum): Likewise.
44 (language_def): Likewise.
45 (add_set_language_command): Use language_def::languages for the
46 language list, and language_def to lookup language pointers.
47 (skip_language_trampoline): Use language_defn::languages.
48 (unknown_language_defn): Convert to...
49 (unknown_language_data): ...this.
50 (class unknown_language): New class.
51 (unknown_language_defn): New static global.
52 (auto_language_defn): Convert to...
53 (auto_language_data): ...this.
54 (class auto_language): New class.
55 (auto_language_defn): New static global.
56 (language_gdbarch_post_init): Use language_defn::languages.
57 (_initialize_language): Initialize current_language.
58 * gdb/language.h (struct language_defn): Rename to...
59 (struct language_data): ...this.
60 (struct language_defn): New.
61 (auto_language_defn): Delete.
62 (unknown_language_defn): Delete.
63 (minimal_language_defn): Delete.
64 (ada_language_defn): Delete.
65 (asm_language_defn): Delete.
66 (c_language_defn): Delete.
67 (cplus_language_defn): Delete.
68 (d_language_defn): Delete.
69 (f_language_defn): Delete.
70 (go_language_defn): Delete.
71 (m2_language_defn): Delete.
72 (objc_language_defn): Delete.
73 (opencl_language_defn): Delete.
74 (pascal_language_defn): Delete.
75 (rust_language_defn): Delete.
76 * gdb/m2-lang.c (m2_language_defn): Convert to...
77 (m2_language_data): ...this.
78 (class m2_language): New class.
79 (m2_language_defn): New static global.
80 * gdb/objc-lang.c (objc_language_defn): Convert to...
81 (objc_language_data): ...this.
82 (class objc_language): New class.
83 (objc_language_defn): New static global.
84 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
85 (opencl_language_data): ...this.
86 (class opencl_language): New class.
87 (opencl_language_defn): New static global.
88 * gdb/p-lang.c (pascal_language_defn): Convert to...
89 (pascal_language_data): ...this.
90 (class pascal_language): New class.
91 (pascal_language_defn): New static global.
92 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
93 language pointer, update comment format.
94 * gdb/rust-lang.c (rust_language_defn): Convert to...
95 (rust_language_data): ...this.
96 (class rust_language): New class.
97 (rust_language_defn): New static global.
98
1313c56e
AB
992020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
100
101 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
102 member variable.
103 <m_stmt_at_address>: New member variable.
104 (lnp_state_machine::record_line): Don't record some lines, update
105 tracking of is_stmt at the same address.
106 (lnp_state_machine::lnp_state_machine): Initialise new member
107 variables.
108
b7ed9f3d
ST
1092020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
110
111 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
112 "-include gnu-nat-mig.h".
113 * gnu-nat-mig.h: New file.
114 * gnu-nat.c: Include "gnu-nat-mig.h".
115 (exc_server, msg_reply_server, notify_server,
116 process_reply_server): Remove declarations.
117
14a8ad62
ST
1182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
119
120 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
121 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
122 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
123 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
124 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
125 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
126 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
127 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
128 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
129 to gnu_nat_target class.
130 * gnu-nat.c: Likewise.
131 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
132 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
133 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
134 object.
135 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
136 instead of `gnu_target'.
137
0af5e106
ST
1382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
139
140 * i386-gnu-tdep.c: Include "gdbcore.h"
141 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
142 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
143 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
144 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
145 i386_gnu_sigcontext_addr): New functions
146 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
147 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
148 tdep.
149
078f2fc9
ST
1502020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
151
152 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
153 before fork_inferior call. Avoid calling it if target_is_pushed returns
154 true.
155
53dff92c
ST
1562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
157
158 * gnu-nat.h (gnu_target): New variable declaration.
159 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
160 gnu_target.
161 * gnu-nat.c (gnu_target): New variable.
162 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
163 add_thread_silent, and add_thread calls.
164 (gnu_nat_target::create_inferior): Pass gnu_target to
165 add_thread_silent, thread_change_ptid call.
166 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
167 call.
168
5a8b8627
ST
1692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
170
171 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
172 (gnu_nat_target::find_memory_regions): Remove unused
173 `old_address' variable.
174
366f550a
ST
1752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
176
177 * gnu-nat.c: Include "gdbarch.h".
178
f14871bf
ST
1792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
180
181 * reply_mig_hack.awk (Error return): Cast function through
182 void *, to bypass compiler function call check.
183
c6887cfb
ST
1842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
185
186 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
187 $(srcdir)/reply_mig_hack.awk.
188
6930bffe
ST
1892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
190
191 * gnu-nat.h (gnu_debug_flag): Set type to bool.
192
112c22ed
JG
1932020-05-30 Jonny Grant <jg@jguk.org>
194
195 * configure.ac (ACX_BUGURL): change bug URL to https.
196
f68f85b5
PA
1972020-05-30 Pedro Alves <palves@redhat.com>
198
199 * cp-support.c (replace_typedefs_template): New.
200 (replace_typedefs_qualified_name): Handle
201 DEMANGLE_COMPONENT_TEMPLATE.
202
976ca316
SM
2032020-05-29 Simon Marchi <simon.marchi@efficios.com>
204
205 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
206 dwarf2/index-cache.h, dwarf2/index-write.c,
207 dwarf2/index-write.h, dwarf2/line-header.c,
208 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
209 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
210 variables and fields from `dwarf2_per_objfile` to just
211 `per_objfile` throughout.
212
989ade05
SM
2132020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
214
215 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
216 <push_dwarf_reg_entry_value>: Add comment.
217
c47bae85
KB
2182020-05-28 Kevin Buettner <kevinb@redhat.com>
219 Keith Seitz <keiths@redhat.com>
220
221 * python/python.c (do_start_initialization): Call PyEval_SaveThread
222 instead of PyEval_ReleaseLock.
223 (class gdbpy_gil): Move to earlier in file.
224 (finalize_python): Set gdb_python_initialized.
225 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
226 when not initialized.
227
44486dcf
SM
2282020-05-28 Simon Marchi <simon.marchi@efficios.com>
229
230 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
231 <push_dwarf_reg_entry_value>: Remove assert. Override
232 per_objfile with caller_per_objfile.
233
f030440d
TV
2342020-05-28 Tom de Vries <tdevries@suse.de>
235
236 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
237 PR gold/15646 workaround to symbol kind "type".
238
f0fbb768
TT
2392020-05-27 Tom Tromey <tromey@adacore.com>
240
241 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
242
af0b2a3e
TT
2432020-05-27 Tom Tromey <tromey@adacore.com>
244
245 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
246 Use htab_find_with_hash.
247 <add_abbrev>: Remove "abbrev_number" parameter.
248 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
249 "abbrev_number" parameter. Use htab_find_slot_with_hash.
250 (hash_abbrev): Add comment.
251 (abbrev_table::lookup_abbrev): Move to header file.
252 (abbrev_table::read): Update.
253
7d00ffec
TT
2542020-05-27 Tom Tromey <tromey@adacore.com>
255
256 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
257 method.
258 <canonical_name>: New member.
259 <raw_name>: Rename from "name".
260 (partial_die_info): Initialize canonical_name.
261 (scan_partial_symbols): Check raw_name.
262 (partial_die_parent_scope, partial_die_full_name)
263 (add_partial_symbol, add_partial_subprogram)
264 (add_partial_enumeration, load_partial_dies): Use "name" method.
265 (partial_die_info::name): New method.
266 (partial_die_info::read, guess_partial_die_structure_name)
267 (partial_die_info::fixup): Update.
268
697bba18
TT
2692020-05-27 Tom Tromey <tromey@adacore.com>
270
271 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
272 <get_ref_die_offset>: Inline.
273 <get_ref_die_offset_complaint>: New method.
274 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
275 (attribute::get_ref_die_offset_complaint): Rename from
276 get_ref_die_offset. Just issue complaint.
277
c17ace43
HD
2782020-05-27 Hannes Domani <ssbssa@yahoo.de>
279
280 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
281
96445f0b
HD
2822020-05-27 Hannes Domani <ssbssa@yahoo.de>
283
284 * exec.c (exec_file_attach): Use errno value of first openp failure.
285
ac637ec3
HD
2862020-05-27 Hannes Domani <ssbssa@yahoo.de>
287
288 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
289 Don't close thread handle.
290
17ee85fc
TT
2912020-05-27 Tom Tromey <tom@tromey.com>
292 Simon Marchi <simon.marchi@efficios.com>
293
294 * objfiles.h (struct objfile) <partial_symtabs>: Now a
295 shared_ptr.
296 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
297 member.
298 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
299 dwarf2_per_bfd_objfile_data_key>: New globals.
300 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
301 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
302 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
303 shared.
304 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
305 short-circuit when sharing.
306 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
307 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
308
39b16f87
SM
3092020-05-27 Simon Marchi <simon.marchi@efficios.com>
310
311 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
312 to...
313 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
314 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
315
fcf23d5b
SM
3162020-05-27 Simon Marchi <simon.marchi@efficios.com>
317
318 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
319 build_name_components, find_name_components_bounds>:
320 Add per_objfile parameter.
321 (struct mapped_index) <symbol_name_at>: Likewise.
322 (struct mapped_debug_names): Remove constructor.
323 <dwarf2_per_objfile>: Remove field.
324 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
325 (mapped_index_base::find_name_components_bounds,
326 mapped_index_base::build_name_components,
327 dw2_expand_symtabs_matching_symbol): Likewise.
328 (class mock_mapped_index) <symbol_name_at>: Likewise.
329 (check_match): Likewise.
330 (check_find_bounds_finds): Likewise.
331 (test_mapped_index_find_name_component_bounds): Update.
332 (CHECK_MATCH): Update.
333 (dw2_expand_symtabs_matching): Update.
334 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
335 per_objfile parameter.
336 <find_vec_in_debug_names>: Likewise.
337 <m_per_objfile>: New field.
338 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
339 parameter.
340 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
341 (dw2_debug_names_iterator::next): Update.
342 (dw2_debug_names_lookup_symbol): Update.
343 (dw2_debug_names_expand_symtabs_for_function): Update.
344 (dw2_debug_names_map_matching_symbols): Update.
345 (dw2_debug_names_expand_symtabs_matching): Update.
346 (dwarf2_read_debug_names): Update.
347
7188ed02
SM
3482020-05-27 Simon Marchi <simon.marchi@efficios.com>
349
350 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
351 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
352 move to dwarf2_per_objfile.
353 <read_in_chain>: Remove.
354 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
355 remove_all_cus, age_comp_units>: New methods.
356 <m_dwarf2_cus>: New member.
357 (struct dwarf2_per_cu_data) <cu>: Remove.
358 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
359 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
360 moved to methods of dwarf2_per_objfile.
361 (dwarf2_clear_marks): Remove.
362 (dwarf2_queue_item::~dwarf2_queue_item): Update.
363 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
364 (dwarf2_per_bfd::free_cached_comp_units): Remove.
365 (dwarf2_per_objfile::remove_all_cus): New.
366 (class free_cached_comp_units) <~free_cached_comp_units>:
367 Update.
368 (load_cu): Update.
369 (dw2_do_instantiate_symtab): Adjust.
370 (fill_in_sig_entry_from_dwo_entry): Adjust.
371 (cutu_reader::init_tu_and_read_dwo_dies): Update.
372 (cutu_reader::cutu_reader): Likewise.
373 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
374 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
375 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
376 and dwarf2_per_objfile::age_comp_units.
377 (load_partial_comp_unit): Update.
378 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
379 (process_queue): Likewise.
380 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
381 backlink.
382 (dwarf2_read_addr_index): Likewise.
383 (follow_die_offset): Likewise.
384 (dwarf2_fetch_die_loc_sect_off): Likewise.
385 (dwarf2_fetch_constant_bytes): Likewise.
386 (dwarf2_fetch_die_type_sect_off): Likewise.
387 (follow_die_sig_1): Likewise.
388 (load_full_type_unit): Likewise.
389 (read_signatured_type): Likewise.
390 (dwarf2_cu::dwarf2_cu): Don't set cu field.
391 (dwarf2_cu::~dwarf2_cu): Remove.
392 (dwarf2_per_objfile::get_cu): New.
393 (dwarf2_per_objfile::set_cu): New.
394 (age_cached_comp_units): Rename to...
395 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
396 to std::unordered_map.
397 (free_one_cached_comp_unit): Rename to...
398 (dwarf2_per_objfile::remove_cu): ... this. Adjust
399 to std::unordered_map.
400 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
401 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
402 a dwarf2_per_objfile in data.
403 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
404 (dwarf2_clear_marks): Remove.
405
2e671100
SM
4062020-05-27 Simon Marchi <simon.marchi@efficios.com>
407
408 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
409 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
410 (init_tu_and_read_dwo_dies): Likewise.
411 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
412 (cutu_reader::cutu_reader): Likewise.
413 (load_partial_comp_unit): Likewise.
414 (process_psymtab_comp_unit): Update.
415 (build_type_psymtabs_1): Update.
416 (process_skeletonless_type_unit): Update.
417 (load_full_comp_unit): Update.
418 (find_partial_die): Update.
419 (dwarf2_read_addr_index): Update.
420 (read_signatured_type): Update.
421
2e6a9f79
SM
4222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
423
424 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
425 m_header_read_in>: New fields.
426 <get_header>: New method.
427 * dwarf2/read.c (per_cu_header_read_in): Remove.
428 (dwarf2_per_cu_data::get_header): New.
429 (dwarf2_per_cu_data::addr_size): Update.
430 (dwarf2_per_cu_data::offset_size): Update.
431 (dwarf2_per_cu_data::ref_addr_size): Update.
432
1b555f17
SM
4332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
434
435 * dwarf2/read.c (load_cu): Return dwarf2_cu.
436 (dw2_do_instantiate_symtab): Update.
437 (queue_and_load_all_dwo_tus): Change parameter from
438 dwarf2_per_cu_data to dwarf2_cu.
439 (dwarf2_fetch_die_loc_sect_off): Update.
440 (dwarf2_fetch_constant_bytes): Update.
441 (dwarf2_fetch_die_type_sect_off): Update.
442
8fc0b21d
SM
4432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
444
445 * dwarf2/read.c (process_full_comp_unit,
446 process_full_type_unit): Remove per_cu, per_objfile paramters.
447 Add dwarf2_cu parameter.
448 (process_queue): Update.
449
168c9250
SM
4502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
451
452 * dwarf2/read.c (create_cu_from_index_list): Replace
453 dwarf2_per_objfile parameter with dwarf2_per_bfd.
454 (create_cus_from_index_list): Likewise.
455 (create_cus_from_index): Likewise.
456 (create_signatured_type_table_from_index): Likewise.
457 (create_cus_from_debug_names_list): Likewise.
458 (create_cus_from_debug_names): Likewise.
459 (dwarf2_read_gdb_index): Update.
460 (dwarf2_read_debug_names): Update.
461
e286671b
TT
4622020-05-27 Tom Tromey <tom@tromey.com>
463 Simon Marchi <simon.marchi@efficios.com>
464
465 * dwarf2/read.h (struct dwarf2_per_objfile)
466 <get_type_for_signatured_type, set_type_for_signatured_type>:
467 New methods.
468 <m_type_map>: New member.
469 (struct signatured_type) <type>: Remove.
470 * dwarf2/read.c
471 (dwarf2_per_objfile::get_type_for_signatured_type,
472 dwarf2_per_objfile::set_type_for_signatured_type): New.
473 (get_signatured_type): Use new methods.
474
8adb8487
TT
4752020-05-27 Tom Tromey <tom@tromey.com>
476 Simon Marchi <simon.marchi@efficios.com>
477
478 * dwarf2/read.h (struct type_unit_group_unshareable): New.
479 (struct dwarf2_per_objfile) <type_units>: New member.
480 <get_type_unit_group_unshareable>: New method.
481 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
482 num_symtabs, symtabs>: Remove; move to
483 type_unit_group_unshareable.
484 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
485 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
486 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
487
127bbf4b
SM
4882020-05-27 Simon Marchi <simon.marchi@efficios.com>
489
490 * dwarf2/read.h (struct dwarf2_per_cu_data):
491 <dwarf2_per_objfile>: Remove.
492 * dwarf2/read.c (create_cu_from_index_list): Don't assign
493 dwarf2_per_objfile.
494 (create_signatured_type_table_from_index): Likewise.
495 (create_signatured_type_table_from_debug_names): Likewise.
496 (create_debug_type_hash_table): Likewise.
497 (fill_in_sig_entry_from_dwo_entry): Likewise.
498 (create_type_unit_group): Likewise.
499 (read_comp_units_from_section): Likewise.
500 (create_cus_hash_table): Likewise.
501
f6e649dd
SM
5022020-05-27 Simon Marchi <simon.marchi@efficios.com>
503
504 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
505 dwarf2_per_cu_data::dwarf2_per_objfile.
506 (compute_compunit_symtab_includes): Likewise.
507 (dwarf2_cu::start_symtab): Likewise.
508
aa66c379
SM
5092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
510
511 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
512 parameter.
513 * dwarf2/read.c (get_die_type_at_offset): Likewise.
514 (read_namespace_alias): Update.
515 (lookup_die_type): Update.
516 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
517 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
518 Update.
519 (disassemble_dwarf_expression): Update.
520
120ce1b5
SM
5212020-05-27 Simon Marchi <simon.marchi@efficios.com>
522
523 * dwarf2/read.h (struct dwarf2_queue_item): Add
524 dwarf2_per_objfile parameter, assign new parameter.
525 <per_objfile>: New field.
526 * dwarf2/read.c (free_one_cached_comp_unit): Add
527 dwarf2_per_objfile parameter.
528 (queue_comp_unit): Likewise.
529 (dw2_do_instantiate_symtab): Update.
530 (process_psymtab_comp_unit): Update.
531 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
532 (process_imported_unit_die): Update.
533 (queue_and_load_dwo_tu): Update.
534 (follow_die_offset): Update.
535 (follow_die_sig_1): Update.
536
9f47c707
SM
5372020-05-27 Simon Marchi <simon.marchi@efficios.com>
538
539 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
540 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
541 (read_call_site_scope): Assign per_objfile.
542 (dwarf2_per_cu_data::objfile): Remove.
543 * gdbtypes.h (struct call_site) <per_objfile>: New member.
544 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
545 dwarf2_per_objfile parameter.
546 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
547 dwarf2_per_objfile parameter.
548 (dwarf_expr_reg_to_entry_parameter): Add output
549 dwarf2_per_objfile parameter.
550 (locexpr_get_frame_base): Update.
551 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
552 <push_dwarf_reg_entry_value>: Update.
553 <call_site_to_target_addr>: Update.
554 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
555 parameter.
556 (value_of_dwarf_reg_entry): Update.
557 (rw_pieced_value): Update.
558 (indirect_synthetic_pointer): Update.
559 (dwarf2_evaluate_property): Update.
560 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
561 parameter.
562 (locexpr_read_variable): Update.
563 (locexpr_get_symbol_read_needs): Update.
564 (loclist_read_variable): Update.
565
14095eb3
SM
5662020-05-27 Simon Marchi <simon.marchi@efficios.com>
567
568 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
569 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
570 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
571 parameter.
572 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
573 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
574 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
575 parameter.
576 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
577 sect_variable_value): Add dwarf2_per_objfile parameter.
578 (class dwarf_evaluate_loc_desc) <dwarf_call,
579 dwarf_variable_value>: Update.
580 (fetch_const_value_from_synthetic_pointer): Add
581 dwarf2_per_objfile parameter.
582 (fetch_const_value_from_synthetic_pointer): Update.
583 (coerced_pieced_ref): Update.
584 (class symbol_needs_eval_context) <dwarf_call,
585 dwarf_variable_value>: Update.
586 (dwarf2_compile_expr_to_ax): Update.
587
3c3cd3d4
SM
5882020-05-27 Simon Marchi <simon.marchi@efficios.com>
589
590 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
591 parameter.
592 (dwarf2_evaluate_loc_desc_full): Update.
593
82ca3f51
SM
5942020-05-27 Simon Marchi <simon.marchi@efficios.com>
595
596 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
597 parameter.
598 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
599 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
600 dwarf2_per_objfile parameter.
601 (decode_debug_loc_dwo_addresses): Likewise.
602 (dwarf2_find_location_expression): Update.
603 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
604 (locexpr_describe_location_piece): Add dwarf2_per_objfile
605 parameter.
606 (disassemble_dwarf_expression): Add dwarf2_per_objfile
607 parameter.
608 (locexpr_describe_location_1): Likewise.
609 (locexpr_describe_location): Update.
610
4b167ea1
SM
6112020-05-27 Simon Marchi <simon.marchi@efficios.com>
612
613 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
614 Remove.
615 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
616 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
617 (dwarf2_compile_property_to_c): Update.
618 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
619 use text offset from objfile.
620 (locexpr_tracepoint_var_ref): Update.
621 (locexpr_generate_c_location): Update.
622 (loclist_describe_location): Update.
623 (loclist_tracepoint_var_ref): Update.
624 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
625 dwarf2_per_objfile parameter.
626 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
627 use text offset from objfile.
628 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
629
89b07335
SM
6302020-05-27 Simon Marchi <simon.marchi@efficios.com>
631
632 * dwarf2/expr.h (struct dwarf_expr_context)
633 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
634 <offset>: Remove.
635 <per_objfile>: New member.
636 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
637 dwarf2_per_objfile parameter. Don't set offset, set
638 per_objfile.
639 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
640 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
641 a dwarf2_per_objfile object instead of an offset.
642 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
643 constructor.
644 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
645 to dwarf2_expr_executor constructor. Don't set offset.
646 (dwarf2_fetch_cfa_info): Update.
647 (struct dwarf2_frame_cache) <text_offset>: Remove.
648 <per_objfile>: New field.
649 (dwarf2_frame_cache): Update.
650 (dwarf2_frame_prev_register): Update.
651 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
652 <dwarf_evaluate_loc_desc>: Add constructor.
653 (dwarf2_evaluate_loc_desc_full): Update.
654 (dwarf2_locexpr_baton_eval): Update.
655 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
656 Add constructor.
657 (dwarf2_loc_desc_get_symbol_read_needs): Update.
658
293e7e51
SM
6592020-05-27 Simon Marchi <simon.marchi@efficios.com>
660
661 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
662 addr_sized_int_type>: Move to dwarf2_cu.
663 <int_type>: Move to dwarf2_per_objfile.
664 (struct dwarf2_per_objfile) <int_type>: Move here.
665 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
666 addr_sized_int_type>: Move here.
667 (read_func_scope): Update.
668 (read_array_type): Update.
669 (read_tag_string_type): Update.
670 (attr_to_dynamic_prop): Update.
671 (dwarf2_per_cu_data::int_type): Rename to...
672 (dwarf2_per_objfile::int_type): ... this.
673 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
674 (dwarf2_cu::addr_sized_int_type): ... this.
675 (read_subrange_type): Update.
676 (dwarf2_per_cu_data::addr_type): Rename to...
677 (dwarf2_cu::addr_type): ... this.
678 (set_die_type): Update.
679
64874a40
SM
6802020-05-27 Simon Marchi <simon.marchi@efficios.com>
681
682 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
683 data through per_cu->cu.
684
4ab09049
SM
6852020-05-27 Simon Marchi <simon.marchi@efficios.com>
686
687 * dwarf2/read.c (lookup_dwo_comp_unit): Change
688 dwarf2_per_cu_data parameter fo dwarf2_cu.
689 (lookup_dwo_type_unit): Likewise.
690 (read_cutu_die_from_dwo): Likewise.
691 (lookup_dwo_unit): Likewise.
692 (open_and_init_dwo_file): Likewise.
693 (lookup_dwo_cutu): Likewise.
694 (lookup_dwo_comp_unit): Likewise.
695 (lookup_dwo_type_unit): Likewise.
696 (cutu_reader::init_tu_and_read_dwo_dies): Update.
697 (cutu_reader::cutu_reader): Update.
698
47b14e86
SM
6992020-05-27 Simon Marchi <simon.marchi@efficios.com>
700
701 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
702 parameter.
703 (process_full_type_unit): Likewise.
704 (process_queue): Update.
705
43182c09
SM
7062020-05-27 Simon Marchi <simon.marchi@efficios.com>
707
708 * dwarf2/read.c (recursively_compute_inclusions): Add
709 dwarf2_per_objfile parameter.
710 (compute_compunit_symtab_includes): Likewise.
711 (process_cu_includes): Update.
712
7aa104c4
SM
7132020-05-27 Simon Marchi <simon.marchi@efficios.com>
714
715 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
716 parameter.
717 (create_type_unit_group): Update.
718 (process_psymtab_comp_unit_reader): Update.
719 (build_type_psymtabs_reader): Update.
720
e3beb21d
SM
7212020-05-27 Simon Marchi <simon.marchi@efficios.com>
722
723 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
724 object through m_this_cu->cu.
725
d460f660
SM
7262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
727
728 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
729 the info parameter.
730 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
731
ab432490
SM
7322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
733
734 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
735 per_objfile parameter.
736 (load_full_type_unit): Add per_objfile parameter.
737 (read_signatured_type): Likewise.
738 (load_full_comp_unit): Likewise.
739 (load_cu): Likewise.
740 (dw2_do_instantiate_symtab): Likewise.
741 (dw2_get_file_names): Likewise.
742 (dw2_map_symtabs_matching_filename): Update.
743 (dw_expand_symtabs_matching_file_matcher): Update.
744 (dw2_map_symbol_filenames): Update.
745 (process_psymtab_comp_unit): Add per_objfile parameter.
746 (build_type_psymtabs_1): Update.
747 (process_skeletonless_type_unit): Update.
748 (dwarf2_build_psymtabs_hard): Update.
749 (load_partial_comp_unit): Add per_objfile parameter.
750 (scan_partial_symbols): Update.
751 (load_full_comp_unit): Add per_objfile parameter.
752 (process_imported_unit_die): Update.
753 (create_cus_hash_table): Update.
754 (find_partial_die): Update.
755 (dwarf2_read_addr_index): Update.
756 (follow_die_offset): Update.
757 (dwarf2_fetch_die_loc_sect_off): Update.
758 (dwarf2_fetch_constant_bytes): Update.
759 (dwarf2_fetch_die_type_sect_off): Update.
760 (follow_die_sig_1): Update.
761 (load_full_type_unit): Add per_objfile parameter.
762 (read_signatured_type): Likewise.
763
313bad1b
SM
7642020-05-27 Simon Marchi <simon.marchi@efficios.com>
765
766 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
767 of objfile_name.
768
c3699833
SM
7692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
770
771 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
772 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
773 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
774 field.
775 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
776 (create_cus_from_index): Update.
777 (dwarf2_read_gdb_index): Update.
778 (create_cus_from_debug_names): Update.
779 (dwarf2_read_debug_names): Update.
780 (get_abbrev_section_for_cu): Update.
781 (create_all_comp_units): Update.
782 (read_attribute_value): Update.
783 (get_debug_line_section): Update.
784 * dwarf2/index-cache.c (index_cache::store): Update.
785 * dwarf2/index-write.c (save_gdb_index_command): Update.
786 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
787
1859c670
SM
7882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
789
790 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
791 member.
792 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
793 dwarf2_per_cu_data::per_bfd.
794 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
795 (create_type_unit_group): Likewise.
796 (queue_comp_unit): Remove reference to
797 per_cu->dwarf2_per_objfile.
798 (maybe_queue_comp_unit): Likewise.
799 (fill_in_sig_entry_from_dwo_entry): Assign new field.
800 (create_cus_hash_table): Assign new field.
801
5e22e966
SM
8022020-05-27 Simon Marchi <simon.marchi@efficios.com>
803
804 * dwarf2/read.c: Replace
805 dwarf2_cu->per_cu->dwarf2_per_objfile references with
806 dwarf2_cu->per_objfile throughout.
807
97a1449a
SM
8082020-05-27 Simon Marchi <simon.marchi@efficios.com>
809
810 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
811 parameter, don't use per_cu->dwarf2_per_objfile.
812 (dw2_instantiate_symtab): Likewise.
813 (dw2_find_last_source_symtab): Update.
814 (dw2_map_expand_apply): Update.
815 (dw2_lookup_symbol): Update.
816 (dw2_expand_symtabs_for_function): Update.
817 (dw2_expand_all_symtabs): Update.
818 (dw2_expand_symtabs_with_fullname): Update.
819 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
820 don't use per_cu->dwarf2_per_objfile.
821 (dw2_expand_marked_cus): Update.
822 (dw2_find_pc_sect_compunit_symtab): Update.
823 (dw2_debug_names_lookup_symbol): Update.
824 (dw2_debug_names_expand_symtabs_for_function): Update.
825 (dw2_debug_names_map_matching_symbols): Update.
826 (dwarf2_psymtab::expand_psymtab): Update.
827
9e021579
SM
8282020-05-27 Simon Marchi <simon.marchi@efficios.com>
829
830 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
831 <per_objfile>: New member.
832 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
833 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
834 call to dwarf2_cu.
835 (cutu_reader::cutu_reader): Update.
836 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
837
ae090bdb
SM
8382020-05-27 Simon Marchi <simon.marchi@efficios.com>
839
840 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
841 struct dwarf2_per_objfile.
842 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
843 dwarf2_per_bfd.
844 * dwarf2/read.c (set_die_type): Update.
845 (get_die_type_at_offset): Update.
846
af758d11
SM
8472020-05-27 Tom Tromey <tom@tromey.com>
848 Simon Marchi <simon.marchi@efficios.com>
849
850 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
851 method.
852 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
853 get_symtab, set_symtab>: New methods.
854 <m_symtabs>: New field.
855 (struct dwarf2_psymtab): Derive from partial_symtab.
856 <readin_p, get_compunit_symtab>: Declare methods.
857 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
858 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
859 New methods.
860 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
861 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
862 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
863 (dw2_symtab_iter_next, dw2_print_stats)
864 (dw2_expand_symtabs_with_fullname)
865 (dw2_expand_symtabs_matching_one)
866 (dw_expand_symtabs_matching_file_matcher)
867 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
868 (dw2_debug_names_iterator::next)
869 (dw2_debug_names_map_matching_symbols)
870 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
871 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
872 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
873 New methods.
874 (get_compunit_symtab, process_full_comp_unit)
875 (process_full_type_unit): Update.
876 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
877
5989a64e
SM
8782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
879
880 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
881 then introduce a new dwarf2_per_objfile type.
882 <read_line_string>: Move to the new dwarf2_per_objfile type.
883 <objfile>: Likewise.
884 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
885 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
886 dwarf2_per_objfile->per_bfd.
887 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
888 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
889 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
890 (dwarf2_per_bfd::free_cached_comp_units): ... this.
891 (dwarf2_has_info): Allocate dwarf2_per_bfd.
892 (dwarf2_per_objfile::locate_sections): Rename to...
893 (dwarf2_per_bfd::locate_sections): ... this.
894 (dwarf2_per_objfile::get_cutu): Rename to...
895 (dwarf2_per_bfd::get_cutu): ... this.
896 (dwarf2_per_objfile::get_cu): Rename to...
897 (dwarf2_per_bfd::get_cu): ... this.
898 (dwarf2_per_objfile::get_tu): Rename to...
899 (dwarf2_per_bfd::get_tu): ... this.
900 (dwarf2_per_objfile::allocate_per_cu): Rename to...
901 (dwarf2_per_bfd::allocate_per_cu): ... this.
902 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
903 (dwarf2_per_bfd::allocate_signatured_type): ... this.
904 (get_gdb_index_contents_ftype): Change parameter from
905 dwarf2_per_objfile to dwarf2_per_bfd.
906 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
907 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
908
a50264ba
TT
9092020-05-27 Tom Tromey <tom@tromey.com>
910 Simon Marchi <simon.marchi@efficios.com>
911
912 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
913 (allocate_piece_closure): Set "per_objfile" member.
914 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
915 (locexpr_describe_location, loclist_describe_location): Use new
916 member.
917 * dwarf2/read.c (read_call_site_scope)
918 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
919 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
920 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
921 handle_data_member_location): Set per_objfile member.
922 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
923 member.
924 (struct dwarf2_loclist_baton) <per_objfile>: New member.
925
d3473f0c
TT
9262020-05-27 Tom Tromey <tom@tromey.com>
927
928 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
929 allocate_signatured_type>: Declare new methods.
930 <m_num_psymtabs>: New member.
931 (struct dwarf2_per_cu_data) <index>: New member.
932 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
933 (dwarf2_per_objfile::allocate_signatured_type): New methods.
934 (create_cu_from_index_list): Use allocate_per_cu.
935 (create_signatured_type_table_from_index)
936 (create_signatured_type_table_from_debug_names)
937 (create_debug_type_hash_table, add_type_unit)
938 (read_comp_units_from_section): Use allocate_signatured_type.
939
5717c425
TT
9402020-05-27 Tom Tromey <tom@tromey.com>
941
942 * psymtab.c (partial_map_expand_apply)
943 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
944 (psym_lookup_global_symbol_language)
945 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
946 (psym_print_stats, psym_expand_symtabs_for_function)
947 (psym_map_symbol_filenames, psym_map_matching_symbols)
948 (psym_expand_symtabs_matching)
949 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
950 (maintenance_check_psymtabs): Update.
951 * psympriv.h (struct partial_symtab) <readin_p,
952 get_compunit_symtab>: Add objfile parameter.
953 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
954 Likewise.
955 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
956 get_compunit_symtab>: Likewise.
957 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
958
45940949
TT
9592020-05-27 Tom Tromey <tom@tromey.com>
960
961 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
962 member.
963 * dwarf2/read.c (delete_file_name_entry): Fix comment.
964 (create_cu_from_index_list)
965 (create_signatured_type_table_from_index)
966 (create_signatured_type_table_from_debug_names)
967 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
968 (dwarf2_create_include_psymtab)
969 (create_debug_type_hash_table, add_type_unit)
970 (create_type_unit_group, read_comp_units_from_section)
971 (dwarf2_compute_name, create_cus_hash_table)
972 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
973 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
974 obstack.
975 (dw2_get_real_path): Likewise. Change argument to
976 dwarf2_per_objfile.
977
f8c6d152
LM
9782020-05-27 Luis Machado <luis.machado@linaro.org>
979
980 PR tdep/26000
981 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
982 for ldrd (immediate).
983
e98d2e6d
PW
9842020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
985
986 * command.h: Add comment giving the name of class_tui.
987 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
988 create the fake command for the help for class_tui.
989
53a47a3e
TT
9902020-05-26 Tom Tromey <tromey@adacore.com>
991
992 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
993 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
994 (val_atr): New function.
995 (value_val_atr): Use it.
996 * ada-valprint.c (print_optional_low_bound): Change low bound
997 handling for enums.
998 (val_print_packed_array_elements): Don't call discrete_position.
999 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
1000 discrete_position for enum types.
1001 * language.c (default_print_array_index): Change type.
1002 * language.h (struct language_defn) <la_print_array_index>: Add
1003 index_type parameter, change type of index_value.
1004 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
1005 (default_print_array_index): Update.
1006 * valprint.c (maybe_print_array_index): Don't call
1007 value_from_longest. Update.
1008 (value_print_array_elements): Don't call discrete_position.
1009
0bc2354b
TT
10102020-05-26 Tom Tromey <tromey@adacore.com>
1011
1012 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
1013 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
1014
1218a4bf
CDA
10152020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
1016
1017 PR gdb/13519
1018 * avr-tdep.c (avr_integer_to_address): Return data or code
1019 address accordingly to the second 'type' argument of the
1020 function.
1021
92651b1d
MW
10222020-05-25 Michael Weghorn <m.weghorn@posteo.de>
1023
1024 * infcmd.c, inferior.h: (construct_inferior_arguments):
1025 Moved function from here to gdbsupport/common-inferior.{h,cc}
1026
0a4f5f8c
TT
10272020-05-23 Tom Tromey <tom@tromey.com>
1028
1029 Revert commit eca1f90c:
1030 * NEWS: Remove entry for completion styling.
1031 * completer.c (_rl_completion_prefix_display_length): Move
1032 declaration later.
1033 (gdb_fnprint): Revert.
1034 (gdb_display_match_list_1): Likewise.
1035 * cli/cli-style.c (completion_prefix_style)
1036 (completion_difference_style, completion_suffix_style): Remove.
1037 (_initialize_cli_style): Revert.
1038 * cli/cli-style.h (completion_prefix_style)
1039 (completion_difference_style, completion_suffix_style): Don't
1040 declare.
1041
e08bd6c5
PA
10422020-05-24 Pedro Alves <palves@redhat.com>
1043
1044 * symtab.c (completion_list_add_name): Return boolean indication
1045 of whether the symbol matched.
1046 (completion_list_add_symbol): Don't try to remove C++ aliases if
1047 the symbol didn't match in the first place.
1048 * symtab.h (completion_list_add_name): Return bool.
1049
ceacbf6e
SM
10502020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
1051
1052 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
1053 type::field.
1054
26f16254
JB
10552020-05-23 Joel Brobecker <brobecker@adacore.com>
1056
1057 GDB 9.2 released.
1058
eca1f90c
TT
10592020-05-23 Tom Tromey <tom@tromey.com>
1060
1061 * NEWS: Add entry for completion styling.
1062 * completer.c (_rl_completion_prefix_display_length): Move
1063 declaration earlier.
1064 (gdb_fnprint): Use completion_style.
1065 (gdb_display_match_list_1): Likewise.
1066 * cli/cli-style.c (completion_prefix_style)
1067 (completion_difference_style, completion_suffix_style): New
1068 globals.
1069 (_initialize_cli_style): Register new globals.
1070 * cli/cli-style.h (completion_prefix_style)
1071 (completion_difference_style, completion_suffix_style): Declare.
1072
51e2cfa2
PA
10732020-05-23 Pedro Alves <palves@redhat.com>
1074
1075 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
1076 (parse_escape): Use ISDIGIT instead of isdigit.
1077 (puts_debug): Use gdb_isprint instead of isprint.
1078 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
1079 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
1080 ISSPACE instead of isspace.
1081 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
1082 instead of isspace.
1083 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
1084 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
1085 instead of isxdigit and ISDIGIT instead of isdigit.
1086
80fc5e77
SM
10872020-05-22 Simon Marchi <simon.marchi@efficios.com>
1088
1089 * gdbtypes.h (struct type) <field>: New method.
1090 (TYPE_FIELDS): Remove, replace all uses with either type::fields
1091 or type::field.
1092
3cabb6b0
SM
10932020-05-22 Simon Marchi <simon.marchi@efficios.com>
1094
1095 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
1096 (TYPE_FIELDS): Use type::fields. Change all call sites that
1097 modify the propery to use type::set_fields instead.
1098
1f704f76
SM
10992020-05-22 Simon Marchi <simon.marchi@efficios.com>
1100
1101 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
1102 type::num_fields instead.
1103
5e33d5f4
SM
11042020-05-22 Simon Marchi <simon.marchi@efficios.com>
1105
1106 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
1107 methods.
1108 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
1109 that modify the number of fields to use type::set_num_fields
1110 instead.
1111
9392ebb3
TT
11122020-05-22 Tom Tromey <tromey@adacore.com>
1113
1114 * compile/compile-object-load.h (munmap_list_free): Don't
1115 declare.
1116
7c13f4e8
AB
11172020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
1118
1119 * annotate.c (annotate_source_line): Update return type, add call
1120 to update current symtab and line.
1121 * annotate.h (annotate_source_line): Update return type, and
1122 extend header comment.
1123 * source.c (info_line_command): Check annotation_level before
1124 calling annotate_source_line.
1125 * stack.c (print_frame_info): If calling annotate_source_line
1126 returns true, then don't print any other source line information.
1127
aa370940
SM
11282020-05-21 Simon Marchi <simon.marchi@efficios.com>
1129
1130 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
1131
84d53fa9
SM
11322020-05-21 Simon Marchi <simon.marchi@efficios.com>
1133
1134 * coffread.c (patch_type): Remove NULL check before xfree.
1135 * corefile.c (set_gnutarget): Likewise.
1136 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
1137 * exec.c (build_section_table): Likewise.
1138 * remote.c (remote_target::pass_signals): Likewise.
1139 * utils.c (n_spaces): Likewise.
1140 * cli/cli-script.c (document_command): Likewise.
1141 * i386-windows-tdep.c (core_process_module_section): Likewise.
1142 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
1143
9d428aae
SM
11442020-05-20 Simon Marchi <simon.marchi@efficios.com>
1145
1146 * symfile.c (reread_symbols): Clear objfile's section_offsets
1147 vector and section indices, re-compute them by calling
1148 sym_offsets.
1149
250106a7
TT
11502020-05-20 Tom Tromey <tromey@adacore.com>
1151
1152 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
1153 (desc_one_bound, desc_index_type): Compute field name.
1154
9a0bacfb
TV
11552020-05-20 Tom de Vries <tdevries@suse.de>
1156
1157 PR symtab/25833
1158 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
1159
7b958a48
AM
11602020-05-20 Alan Modra <amodra@gmail.com>
1161
1162 PR 25993
1163 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
1164 bfd_set_filename.
1165 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
1166 passed to bfd_set_filename.
1167 * symfile-mem.c (add_vsyscall_page): Likewise for string
1168 passed to symbol_file_add_from_memory.
1169 (symbol_file_add_from_memory): Make name param a const char* and
1170 don't strdup.
1171
c7e97679
AM
11722020-05-20 Alan Modra <amodra@gmail.com>
1173
1174 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
1175 rather than accessing bfd->filename directly.
1176 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
1177 and use bfd_section_name.
1178 * dwarf2/frame.c (decode_frame_entry): Likewise.
1179 * exec.c (exec_set_section_address): Likewise.
1180 * solib-aix.c (solib_aix_bfd_open): Likewise.
1181 * stap-probe.c (get_stap_base_address): Likewise.
1182 * symfile.c (reread_symbols): Likewise.
1183
563c591b
TT
11842020-05-19 Tom Tromey <tromey@adacore.com>
1185
1186 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
1187
f408d82c
SM
11882020-05-19 Simon Marchi <simon.marchi@efficios.com>
1189
1190 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
1191
98c59b52
PA
11922020-05-19 Pedro Alves <palves@redhat.com>
1193
1194 * NEWS (set exec-file-mismatch): Adjust entry.
1195 * exec.c: Include "build-id.h".
1196 (validate_exec_file): Try to match build IDs instead of filenames.
1197 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
1198 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
1199 and pass down 'warn_if_slow'.
1200 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
1201 gdb_bfd_open_closure to pass it down.
1202 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
1203
4111f652
PA
12042020-05-19 Pedro Alves <palves@redhat.com>
1205
1206 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
1207 * target.c (target_fileio_open_1): Rename to target_fileio_open
1208 and make extern. Use bool.
1209 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
1210 (target_fileio_read_alloc_1): Adjust.
1211 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
1212 (target_fileio_open_warn_if_slow): Delete declaration.
1213
ad80db5b
PA
12142020-05-19 Pedro Alves <palves@redhat.com>
1215
1216 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
1217 Adjust all callers.
1218
1d6ce4d3
YS
12192020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
1220
1221 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
1222 whether disp is negative.
1223
9005fbbb
SM
12242020-05-19 Simon Marchi <simon.marchi@efficios.com>
1225
1226 * symfile.h (struct symfile_segment_data)
1227 <~symfile_segment_data>: Remove.
1228 <segment_info>: Change to std::vector.
1229 * symfile.c (default_symfile_segments): Update.
1230 * elfread.c (elf_symfile_segments): Update.
1231
68b888ff
SM
12322020-05-19 Simon Marchi <simon.marchi@efficios.com>
1233
1234 * symfile.h (struct symfile_segment_data) <struct segment>: New.
1235 <segments>: New.
1236 <segment_bases, segment_sizes>: Remove.
1237 * symfile.c (default_symfile_segments): Update.
1238 * elfread.c (elf_symfile_segments): Update.
1239 * remote.c (remote_target::get_offsets): Update.
1240 * solib-target.c (solib_target_relocate_section_addresses):
1241 Update.
1242
62982abd
SM
12432020-05-19 Simon Marchi <simon.marchi@efficios.com>
1244
1245 * symfile.h (struct symfile_segment_data): Initialize fields.
1246 <~symfile_segment_data>: Add.
1247 (symfile_segment_data_up): New.
1248 (struct sym_fns) <sym_segments>: Return a
1249 symfile_segment_data_up.
1250 (default_symfile_segments): Return a symfile_segment_data_up.
1251 (free_symfile_segment_data): Remove.
1252 (get_symfile_segment_data): Return a symfile_segment_data_up.
1253 * symfile.c (default_symfile_segments): Likewise.
1254 (get_symfile_segment_data): Likewise.
1255 (free_symfile_segment_data): Remove.
1256 (symfile_find_segment_sections): Update.
1257 * elfread.c (elf_symfile_segments): Return a
1258 symfile_segment_data_up.
1259 * remote.c (remote_target::get_offsets): Update.
1260 * solib-target.c (solib_target_relocate_section_addresses):
1261 Update.
1262 * symfile-debug.c (debug_sym_segments): Return a
1263 symfile_segment_data_up.
1264
7f204339
RO
12652020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1266
e52a0f1b
RO
1267 PR build/25981
1268 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
1269 Hardcode register numbers.
1270
7f204339
RO
1271 PR build/25981
1272 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
1273 procfs_find_LDT_entry): Remove.
1274 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
1275 procfs_find_LDT_entry): Remove.
1276 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
1277 Remove.
1278
7f32a4d5
PA
12792020-05-17 Pedro Alves <palves@redhat.com>
1280 Andrew Burgess <andrew.burgess@embecosm.com>
1281 Keno Fischer <keno@juliacomputing.com>
1282
1283 PR gdb/25741
1284 * breakpoint.c (build_target_condition_list): Update comments.
1285 (build_target_command_list): Update comments and skip matching
1286 locations.
1287 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
1288 a separate function. Simplify "set breakpoint auto-hw off"
1289 handling.
1290 (insert_breakpoints): Update comment.
1291 (tracepoint_locations_match): New parameter. For breakpoints,
1292 compare location types too, if the caller wants to.
1293 (handle_automatic_hardware_breakpoints): New functions.
1294 (bp_location_is_less_than): Also sort by location type and
1295 hardware breakpoint length.
1296 (update_global_location_list): Handle "set breakpoint auto-hw on"
1297 here.
1298 (update_breakpoint_locations): Ask breakpoint_locations_match to
1299 ignore location types.
1300
7d93a1e0
SM
13012020-05-16 Simon Marchi <simon.marchi@efficios.com>
1302
1303 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
1304 type::name instead.
1305
d0e39ea2
SM
13062020-05-16 Simon Marchi <simon.marchi@efficios.com>
1307
1308 * gdbtypes.h (struct type) <name, set_name>: New methods.
1309 (TYPE_CODE): Use type::name. Change all call sites used to set
1310 the name to use type::set_name instead.
1311
2dab0c7b
TT
13122020-05-16 Tom Tromey <tom@tromey.com>
1313
1314 * top.c (quit_force): Update.
1315 * infrun.c (handle_no_resumed): Update.
1316 * top.h (all_uis): New function.
1317 (ALL_UIS): Remove.
1318
59f7bd8d
SM
13192020-05-16 Simon Marchi <simon.marchi@efficios.com>
1320
1321 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
1322
9bf058f0
PA
13232020-05-16 Pedro Alves <palves@redhat.com>
1324
1325 * ia64-linux-nat.c
1326 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
1327 Declare method.
1328 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
1329
8f86ae1a
SM
13302020-05-15 Simon Marchi <simon.marchi@efficios.com>
1331
1332 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
1333 (sparc64_adi_info): Likewise.
1334
d6bc0792
TT
13352020-05-15 Tom Tromey <tom@tromey.com>
1336
1337 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
1338 block_objfile.
1339 (lookup_objfile_from_block): Remove.
1340 (lookup_symbol_in_block, lookup_symbol_in_static_block)
1341 (lookup_global_symbol): Use block_objfile.
1342 * symtab.h (lookup_objfile_from_block): Don't declare.
1343 * printcmd.c (clear_dangling_display_expressions): Use
1344 block_objfile.
1345 * parse.c (operator_check_standard): Use block_objfile.
1346
8c14c3a3
TT
13472020-05-15 Tom Tromey <tom@tromey.com>
1348
1349 * language.c (language_alloc_type_symbol): Set
1350 SYMBOL_SECTION.
1351 * symtab.c (initialize_objfile_symbol): Remove.
1352 (allocate_symbol): Remove.
1353 (allocate_template_symbol): Remove.
1354 * dwarf2/read.c (fixup_go_packaging): Use "new".
1355 (new_symbol): Use "new".
1356 (read_variable): Don't call initialize_objfile_symbol. Use
1357 "new".
1358 (read_func_scope): Use "new".
1359 * xcoffread.c (process_xcoff_symbol): Don't call
1360 initialize_objfile_symbol.
1361 (SYMBOL_DUP): Remove.
1362 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
1363 "new".
1364 * symtab.h (allocate_symbol, initialize_objfile_symbol)
1365 (allocate_template_symbol): Don't declare.
1366 (struct symbol): Add copy constructor. Change defaults.
1367 * jit.c (finalize_symtab): Use "new".
1368 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
1369 Use "new".
1370 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
1371 (common_block_end): Use "new".
1372 * mdebugread.c (parse_symbol): Use "new".
1373 (new_symbol): Likewise.
1374
5b4a1a8d
PW
13752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1376
1377 * NEWS: Mention changes to help and apropos.
1378
57b4f16e
PW
13792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1380
1381 * command.h (enum command_class): Improve comments, document
1382 that class_alias is for user-defined aliases, give the class
1383 name for each class, remove unused class_xdb.
1384 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
1385 * breakpoint.c (_initialize_breakpoint): Replace class_alias
1386 by a precise class.
1387 * infcmd.c (_initialize_infcmd): Likewise.
1388 * reverse.c (_initialize_reverse): Likewise.
1389 * stack.c (_initialize_stack): Likewise.
1390 * symfile.c (_initialize_symfile): Likewise.
1391 * tracepoint.c (_initialize_tracepoint): Likewise.
1392
7c05caf7
PW
13932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1394
1395 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
1396 when their aliased command is traversed.
1397 (help_cmd): Add fput_command_names_styled call to
1398 output command name and aliases when command has an alias.
1399
3b3aaacb
PW
14002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1401
1402 * cli/cli-decode.h (help_cmd_list): Remove declaration.
1403 * cli/cli-decode.c (help_cmd_list): Declare as static,
1404 remove prefix argument, use bool for recurse arg, rework to show the aliases of
1405 a command together with the command.
1406 (fput_command_name_styled, fput_command_names_styled): New functions.
1407 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
1408 fput_command_name_styled.
1409 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
1410 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
1411
7aa1b46f
PW
14122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1413
1414 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
1415 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
1416 * command.h (cmd_show_list): Likewise.
1417 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
1418 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
1419
89bcba74
PW
14202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1421
1422 * unittests/command-def-selftests.c (traverse_command_structure):
1423 Verify all commands of a list have the same prefix command and
1424 that only the top cmdlist commands have a null prefix.
1425
3f4d92eb
PW
14262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1427
1428 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
1429 as prefix, not one of its aliases.
1430 (set_cmd_prefix): Remove.
1431 (do_add_cmd): Centralize the setting of the prefix of a command, when
1432 command is defined after its full chain of prefix commands.
1433 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
1434 (add_setshow_cmd_full): Likewise.
1435 (update_prefix_field_of_prefixed_commands): New function.
1436 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
1437 update_prefix_field_of_prefixed_commands.
1438 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
1439 addresses of remote_set_cmdlist and remote_show_cmdlist given
1440 as argument, not the address of an argument.
1441 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
1442 * gdb/remote.c (_initialize_remote): Likewise.
1443
0605465f
PW
14442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1445
1446 * cli/cli-cmds.c (alias_command): Check for an existing alias
1447 using lookup_cmd_composition, as valid_command_p is too strict
1448 and forbids aliases that are the prefix of an existing alias
1449 or command.
1450 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
1451 command is properly recognised as a valid command.
1452
58e6ac70
PW
14532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1454
1455 * unittests/help-doc-selftests.c: Rename to
1456 unittests/command-def-selftests.c
1457 * unittests/command-def-selftests.c (help_doc_tests): Update some
1458 comments.
1459 (command_structure_tests, traverse_command_structure): New namespace
1460 and function.
1461 (command_structure_invariants_tests): New function.
1462 (_initialize_command_def_selftests) Renamed from
1463 _initialize_help_doc_selftests, register command_structure_invariants
1464 selftest.
1465
a7b9ceb8
PW
14662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1467
1468 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
1469 an alias of 'show'.
1470
b2188a06
JB
14712020-05-15 Joel Brobecker <brobecker@adacore.com>
1472
1473 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
1474 ada_is_fixed_point_type. Update all callers.
1475 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
1476 all callers.
1477 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
1478 Update all callers.
1479 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
1480 print_fixed_point_type. Update all callers.
1481 * ada-valprint.c (ada_value_print_num): Replace call to
1482 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
1483
a51951c2
KB
14842020-05-14 Kevin Buettner <kevinb@redhat.com>
1485
1486 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
1487 processors.
1488 (cpu_supports_bts): Add CV_AMD case.
1489
29d6859f
LM
14902020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
1491 Simon Marchi <simon.marchi@efficios.com>
1492
1493 * infrun.c (stop_all_threads): Collect multiple wait events at
1494 each pass.
1495
78134374
SM
14962020-05-14 Simon Marchi <simon.marchi@efficios.com>
1497
1498 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
1499 type::code instead.
1500
67607e24
SM
15012020-05-14 Simon Marchi <simon.marchi@efficios.com>
1502
1503 * gdbtypes.h (struct type) <code, set_code>: New methods.
1504 (TYPE_CODE): Use type::code. Change all call sites used to set
1505 the code to use type::set_code instead.
1506
a05575d3
TBA
15072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1508 Tom de Vries <tdevries@suse.de>
1509 Pedro Alves <palves@redhat.com>
1510
1511 PR threads/25478
1512 * infrun.c (stop_all_threads): Do NOT ignore
1513 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
1514 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
1515 received.
1516 (handle_no_resumed): Remove code handling a live inferior with no
1517 threads.
1518 * remote.c (has_single_non_exited_thread): New.
1519 (remote_target::update_thread_list): Do not delete a thread if is
1520 the last thread of the process.
1521 * thread.c (thread_select): Call delete_exited_threads instead of
1522 prune_threads.
1523
6ad82919
TBA
15242020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1525
1526 * infrun.c (stop_all_threads): Enable/disable thread events of all
1527 targets. Move a debug message denoting the end of the function
1528 into the SCOPED_EXIT block.
1529
d890404b
TBA
15302020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1531
1532 * process-stratum-target.h: Include <set>.
1533 (all_non_exited_process_targets, switch_to_target_no_thread): New
1534 function declarations.
1535 * process-stratum-target.c (all_non_exited_process_targets)
1536 (switch_to_target_no_thread): New function implementations.
1537
293b3ebc
TBA
15382020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1539
1540 * infrun.c (handle_inferior_event): Extract out a piece of code
1541 into...
1542 (mark_non_executing_threads): ...this new function.
1543
7ca9b62a
TBA
15442020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1545
1546 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
1547 use.
1548
fc75c28b
TBA
15492020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1550
1551 * regcache.c (regcache_read_pc_protected): New function
1552 implementation that returns 0 if the PC cannot read via
1553 'regcache_read_pc'.
1554 * infrun.c (proceed): Call 'regcache_read_pc_protected'
1555 instead of 'regcache_read_pc'.
1556 (keep_going_pass_signal): Ditto.
1557
a89febbd
TT
15582020-05-13 Tom Tromey <tromey@adacore.com>
1559
1560 * ada-lang.c (align_value): Remove.
1561 (ada_template_to_fixed_record_type_1): Use align_up.
1562
f7e23710
TBA
15632020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1564
1565 * async-event.c: Update the copyright year.
1566 * async-event.h: Update the copyright year.
1567
02ff80c2
SM
15682020-05-12 Simon Marchi <simon.marchi@efficios.com>
1569
1570 * objfiles.h (is_addr_in_objfile,
1571 shared_objfile_contains_address_p): Return bool.
1572 * objfile.c (is_addr_in_objfile,
1573 shared_objfile_contains_address_p): Return bool.
1574
4fd6c7e8
TT
15752020-05-11 Tom Tromey <tromey@adacore.com>
1576
1577 * cli/cli-cmds.c (info_command): Restore.
1578 (_initialize_cli_cmds): Use add_prefix_command for "info".
1579 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
1580
5eb68a39
TT
15812020-05-11 Tom Tromey <tromey@adacore.com>
1582
1583 * ada-lang.c (ada_value_primitive_field): Now public.
1584 * ada-lang.h (ada_value_primitive_field): Declare.
1585 * ada-valprint.c (print_field_values): Use
1586 ada_value_primitive_field for wrapper fields.
1587
7666722f
TV
15882020-05-11 Tom de Vries <tdevries@suse.de>
1589
1590 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
1591 MODULE_DOMAIN.
1592
3ee6bb11
TV
15932020-05-11 Tom de Vries <tdevries@suse.de>
1594
1595 PR symtab/25941
1596 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
1597 with length 0, if not gdb-produced.
1598 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
1599
43434996
TV
16002020-05-09 Tom de Vries <tdevries@suse.de>
1601
1602 PR gdb/25955
1603 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
1604 calculation.
1605
2f78cffc
TT
16062020-05-09 Tom Tromey <tom@tromey.com>
1607
1608 * top.c (server_command): Now bool.
1609 * top.h (server_command): Now bool.
1610
4f7bc5ed
TT
16112020-05-08 Tom Tromey <tromey@adacore.com>
1612
1613 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
1614 already being processed.
1615
8be4b118
TT
16162020-05-08 Tom Tromey <tom@tromey.com>
1617
1618 * printcmd.c (struct display) <next>: Remove.
1619 <display>: New constructor.
1620 <exp_string>: Now a std::string.
1621 <enabled_p>: Now a bool.
1622 (display_number): Move definition earlier.
1623 (displays): Rename from display_chain. Now a std::vector.
1624 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
1625 (display_command): Update.
1626 (do_one_display, disable_display)
1627 (enable_disable_display_command, do_enable_disable_display):
1628 Update.
1629 (free_display): Remove.
1630 (clear_displays): Rewrite.
1631 (delete_display): Update.
1632 (map_display_numbers): Use function_view. Remove "data"
1633 parameter. Update.
1634 (do_delete_display): Remove.
1635 (undisplay_command): Update.
1636 (do_one_display, do_displays, disable_display)
1637 (info_display_command): Update.
1638 (do_enable_disable_display): Remove.
1639 (enable_disable_display_command)
1640 (clear_dangling_display_expressions): Update.
1641
94c93c35
TT
16422020-05-08 Tom Tromey <tom@tromey.com>
1643
1644 * symtab.c (set_symbol_cache_size)
1645 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
1646 (maintenance_print_symbol_cache_statistics): Update.
1647 * symmisc.c (print_symbol_bcache_statistics)
1648 (print_objfile_statistics, maintenance_print_objfiles)
1649 (maintenance_info_symtabs, maintenance_check_symtabs)
1650 (maintenance_expand_symtabs, maintenance_info_line_tables):
1651 Update.
1652 * symfile-debug.c (set_debug_symfile): Update.
1653 * source.c (forget_cached_source_info): Update.
1654 * python/python.c (gdbpy_progspaces): Update.
1655 * psymtab.c (maintenance_info_psymtabs): Update.
1656 * probe.c (parse_probes): Update.
1657 * linespec.c (iterate_over_all_matching_symtabs)
1658 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
1659 * guile/scm-progspace.c (gdbscm_progspaces): Update.
1660 * exec.c (exec_target::close): Update.
1661 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
1662 * breakpoint.c (print_one_breakpoint_location)
1663 (create_longjmp_master_breakpoint)
1664 (create_std_terminate_master_breakpoint): Update.
1665 * progspace.c (program_spaces): Now a std::vector.
1666 (maybe_new_address_space): Update.
1667 (add_program_space): Remove.
1668 (program_space::program_space): Update.
1669 (remove_program_space): Update.
1670 (number_of_program_spaces): Remove.
1671 (print_program_space, update_address_spaces): Update.
1672 * progspace.h (program_spaces): Change type.
1673 (ALL_PSPACES): Remove.
1674 (number_of_program_spaces): Don't declare.
1675 (struct program_space) <next>: Remove.
1676
a1fd1ac9
TT
16772020-05-08 Tom Tromey <tom@tromey.com>
1678
1679 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
1680 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
1681 (enable_break): Update.
1682 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
1683 (frv_fdpic_find_canonical_descriptor): Update.
1684 (frv_fetch_objfile_link_map): Update.
1685 * progspace.c (program_space::free_all_objfiles): Update.
1686 (program_space::solibs): New method.
1687 * progspace.h (struct program_space) <solibs>: New method.
1688 * solist.h (master_so_list): Don't declare.
1689 (ALL_SO_LIBS): Remove.
1690 * solib.h (so_list_head): Remove.
1691 (update_solib_list): Update comment.
1692 * solib.c (master_so_list): Remove.
1693 (solib_used, update_solib_list, solib_add)
1694 (info_sharedlibrary_command, clear_solib)
1695 (reload_shared_libraries_1, remove_user_added_objfile): Update.
1696
38eae084
TT
16972020-05-08 Tom Tromey <tom@tromey.com>
1698
1699 * extension.c (extension_languages): Now a std::array.
1700 (ALL_EXTENSION_LANGUAGES): Remove.
1701 (get_ext_lang_defn, get_ext_lang_of_file)
1702 (eval_ext_lang_from_control_command): Update.
1703 (finish_ext_lang_initialization)
1704 (auto_load_ext_lang_scripts_for_objfile)
1705 (ext_lang_type_printers::ext_lang_type_printers)
1706 (apply_ext_lang_type_printers)
1707 (ext_lang_type_printers::~ext_lang_type_printers)
1708 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
1709 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
1710 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
1711 (get_matching_xmethod_workers, ext_lang_colorize)
1712 (ext_lang_before_prompt): Update.
1713 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
1714
596dc4ad
TT
17152020-05-08 Tom Tromey <tom@tromey.com>
1716
1717 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
1718 overload.
1719 <swap_string, m_string>: Remove.
1720 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
1721 Update.
1722 * stabsread.c (define_symbol, read_type): Update.
1723 * linespec.c (find_linespec_symbols): Update.
1724 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
1725 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
1726 * dbxread.c (read_dbx_symtab): Update.
1727 * cp-support.h (cp_canonicalize_string_full)
1728 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
1729 Return unique_xmalloc_ptr.
1730 * cp-support.c (inspect_type): Update.
1731 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
1732 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
1733 Likewise.
1734 * c-typeprint.c (print_name_maybe_canonical): Update.
1735 * break-catch-throw.c (check_status_exception_catchpoint):
1736 Update.
1737
bf4cb9be
TV
17382020-05-08 Tom de Vries <tdevries@suse.de>
1739
1740 * infrun.c (follow_fork): Copy current_line and current_symtab to
1741 child thread.
1742
a1b68f28
SM
17432020-05-07 Simon Marchi <simon.marchi@efficios.com>
1744
1745 * async-event.c (struct async_signal_handler, struct
1746 async_event_handler): Reformat, remove typedef.
1747
98d48915
SM
17482020-05-07 Simon Marchi <simon.marchi@efficios.com>
1749
1750 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
1751 access thistype->main_type->dyn_prop_list directly.
1752
7aa91313
SM
17532020-05-07 Simon Marchi <simon.marchi@efficios.com>
1754
1755 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
1756 (remove_dyn_prop): Remove. Update all users to use
1757 type::remove_dyn_prop.
1758 * gdbtypes.c (remove_dyn_prop): Rename to...
1759 (type::remove_dyn_prop): ... this.
1760
5c54719c
SM
17612020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
1762
1763 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
1764 (add_dyn_prop): Remove. Update all users to use
1765 type::add_dyn_prop.
1766 * gdbtypes.c (add_dyn_prop): Rename to...
1767 (type::add_dyn_prop): ... this.
1768
24e99c6c
SM
17692020-05-07 Simon Marchi <simon.marchi@efficios.com>
1770
1771 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
1772 (get_dyn_prop): Remove. Update all users to use
1773 type::dyn_prop.
1774 * gdbtypes.c (get_dyn_prop): Rename to...
1775 (type::dyn_prop): ... this.
1776
0d4bf016
SM
17772020-05-06 Simon Marchi <simon.marchi@efficios.com>
1778
1779 * gdbtypes.h (struct main_type) <flag_static>: Remove.
1780
ac4a4f1c
SM
17812020-05-06 Simon Marchi <simon.marchi@efficios.com>
1782
1783 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
1784 instruction, skip it if it's there.
1785
a3bbacc1
SM
17862020-05-05 Simon Marchi <simon.marchi@efficios.com>
1787
1788 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
1789
c3236f84
SM
17902020-05-04 Simon Marchi <simon.marchi@efficios.com>
1791
1792 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
1793 * gdbtypes.c (recursive_dump_type): Remove use of
1794 TYPE_INCOMPLETE.
1795
3b6acaee
TT
17962020-05-03 Tom Tromey <tom@tromey.com>
1797
1798 * breakpoint.c (catch_command, tcatch_command): Remove.
1799 (_initialize_breakpoint): Use add_basic_prefix_cmd,
1800 add_show_prefix_cmd.
1801 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
1802 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
1803 Remove.
1804 (add_internal_problem_command): Use add_basic_prefix_cmd,
1805 add_show_prefix_cmd.
1806 * mips-tdep.c (set_mipsfpu_command): Remove.
1807 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
1808 * dwarf2/index-cache.c (set_index_cache_command): Remove.
1809 (_initialize_index_cache): Use add_basic_prefix_cmd.
1810 * memattr.c (dummy_cmd): Remove.
1811 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
1812 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
1813 (_initialize_tui_win): Use add_basic_prefix_cmd,
1814 add_show_prefix_cmd.
1815 * cli/cli-logging.c (set_logging_command): Remove.
1816 (_initialize_cli_logging): Use add_basic_prefix_cmd,
1817 add_show_prefix_cmd.
1818 (show_logging_command): Remove.
1819 * target.c (target_command): Remove.
1820 (add_target): Use add_basic_prefix_cmd.
1821
a51119cd
HD
18222020-05-02 Hannes Domani <ssbssa@yahoo.de>
1823
1824 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
1825
652fc23a 18262020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 1827
652fc23a
PW
1828 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
1829 info_command.
1830
117539e6
KR
18312020-04-30 Kamil Rytarowski <n54@gmx.com>
1832
1833 * nbsd-nat.c (nbsd_enable_proc_events)
1834 (nbsd_nat_target::post_startup_inferior): Add.
1835 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
1836 (nbsd_nat_target::update_thread_list): Rewrite.
1837 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
1838 "PTRACE_LWP_CREATE".
1839 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
1840
102e38eb 18412020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 1842
102e38eb
PW
1843 * stack.c (_initialize_stack): Remove duplicated creation
1844 of "frame" command and "f" alias.
1845
ee9d1e5f
HD
18462020-04-30 Hannes Domani <ssbssa@yahoo.de>
1847
1848 PR gdb/18706
1849 * gdbtypes.c (check_typedef): Calculate size of array of
1850 stubbed type.
1851
627c7fb8
HD
18522020-04-30 Hannes Domani <ssbssa@yahoo.de>
1853
1854 PR gdb/15559
1855 * i386-tdep.c (i386_push_dummy_call): Call
1856 i386_thiscall_push_dummy_call.
1857 (i386_thiscall_push_dummy_call): New function.
1858 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
1859 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
1860 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
1861
ffc2844e
SM
18622020-04-29 Simon Marchi <simon.marchi@efficios.com>
1863
1864 * gdbarch.sh (do_read): Add shellcheck disable directive for
1865 warning SC2162.
1866
1207375d
SM
18672020-04-29 Simon Marchi <simon.marchi@efficios.com>
1868
1869 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
1870 "referenced but not assigned" warning.
1871
9fdb2916
SM
18722020-04-29 Simon Marchi <simon.marchi@efficios.com>
1873
1874 * gdbarch.sh: Remove code that sets fallbackdefault.
1875
759cea5e
SM
18762020-04-29 Simon Marchi <simon.marchi@efficios.com>
1877
1878 * gdbarch.sh: Use shell operators && and || instead of
1879 -a and -o.
1880
cb02ab24
SM
18812020-04-29 Simon Marchi <simon.marchi@efficios.com>
1882
1883 * gdbarch.sh: Use $(...) instead of `...`.
1884
a6fc5ffc
SM
18852020-04-29 Simon Marchi <simon.marchi@efficios.com>
1886
1887 * gdbarch.sh: Use double quotes around variables.
1888
8d113d13
SM
18892020-04-29 Simon Marchi <simon.marchi@efficios.com>
1890
1891 * gdbarch.sh: Use %s with printf, instead of variables in the
1892 format string.
1893
ed6acedd
TT
18942020-04-29 Tom Tromey <tromey@adacore.com>
1895
1896 PR ada/25875:
1897 * dwarf2/read.c (update_enumeration_type_from_children): Compute
1898 type fields here.
1899 (read_enumeration_type): Call
1900 update_enumeration_type_from_children later. Update comments.
1901 (process_enumeration_scope): Don't create type fields.
1902
b68b1b58
KR
19032020-04-29 Kamil Rytarowski <n54@gmx.com>
1904
1905 * nbsd-tdep.c: Include "xml-syscall.h".
1906 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
1907
f94b2e03
KR
19082020-04-29 Kamil Rytarowski <n54@gmx.com>
1909
1910 * nbsd-nat.c: Include "sys/wait.h".
1911 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
1912 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
1913 (nbsd_nat_target::remove_exec_catchpoint)
1914 (nbsd_nat_target::set_syscall_catchpoint): Add.
1915 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
1916 (nbsd_nat_target::insert_exec_catchpoint)
1917 (nbsd_nat_target::remove_exec_catchpoint)
1918 (nbsd_nat_target::set_syscall_catchpoint): Add.
1919 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
1920 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
1921 `nbsd_get_syscall_number'.
1922
fc49bc72
TT
19232020-04-29 Tom Tromey <tom@tromey.com>
1924
1925 * stack.c (print_block_frame_labels): Remove.
1926
d642b692
HD
19272020-04-29 Hannes Domani <ssbssa@yahoo.de>
1928
1929 PR gdb/17320
1930 * ada-valprint.c (val_print_packed_array_elements): Move array
1931 end bracket to new line.
1932 (ada_val_print_string): Remove extra spaces before first array
1933 element.
1934 * c-valprint.c (c_value_print_array): Likewise.
1935 * m2-valprint.c (m2_print_array_contents): Likewise.
1936 (m2_value_print_inner): Likewise.
1937 * p-valprint.c (pascal_value_print_inner): Likewise.
1938 * valprint.c (generic_val_print_array): Likewise.
1939 (value_print_array_elements): Move first array element and array
1940 end bracket to new line.
1941
ea90f227
TV
19422020-04-29 Tom de Vries <tdevries@suse.de>
1943
1944 PR symtab/25889
1945 * linespec.c (find_method): Fix ix calculation.
1946
4498ef4f
KR
19472020-04-28 Kamil Rytarowski <n54@gmx.com>
1948
1949 * syscalls/update-netbsd.sh: New file.
1950 * syscalls/netbsd.xml: Regenerate.
1951 * data-directory/Makefile.in: Register `netbsd.xml' in
1952 `SYSCALLS_FILES'.
1953
a55e30b5
SM
19542020-04-28 Simon Marchi <simon.marchi@efficios.com>
1955
1956 * syscalls/update-freebsd.sh: Add double quotes.
1957
2b2fbab8
TT
19582020-04-28 Tom Tromey <tom@tromey.com>
1959
1960 * NEWS: Update.
1961 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
1962 (cmdpy_init): Allow class_tui.
1963
a65189c9
TV
19642020-04-28 Mark Williams <mark@myosotissp.com>
1965
1966 PR gdb/24480
1967 * dwarf2read.c: Add missing assingments to list_in_scope when
1968 start_symtab was already called.
1969
1b95cdb7
SM
19702020-04-28 Simon Marchi <simon.marchi@efficios.com>
1971
1972 PR gdb/25881
1973 * dwarf2/read.c (offset_map_type): Use
1974 gdb:hash_enum<sect_offset> as hash function.
1975
15cd93d0
TV
19762020-04-28 Tom de Vries <tdevries@suse.de>
1977
1978 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
1979 with DW_AT_signature.
1980
1eb39914
SM
19812020-04-27 Simon Marchi <simon.marchi@efficios.com>
1982
1983 * configure.ac: Remove check for fs_base/gs_base in
1984 user_regs_struct.
1985 * configure: Re-generate.
1986 * config.in: Re-generate.
1987 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
1988 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
1989 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
1990
991a3e2e
LM
19912020-04-27 Luis Machado <luis.machado@linaro.org>
1992
1993 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
1994 problematic inline frame unwinding situation.
1995 * frame.c (frame_id_computed_p): New function.
1996 * frame.h (frame_id_computed_p): New prototype.
1997
361ba0e8
TT
19982020-04-26 Tom Tromey <tom@tromey.com>
1999
2000 * command.h (enum command_class) <class_pseudo>: Remove.
2001
bc3609fd
PW
20022020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2003
2004 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
2005 and whitespace.
2006
b9771db7
KR
20072020-04-25 Kamil Rytarowski <n54@gmx.com>
2008
2009 * inf-ptrace.c (inf_ptrace_target::wait): Remove
2010 `PT_GET_PROCESS_STATE' block.
2011
7151c1af
TT
20122020-04-24 Tom Tromey <tom@tromey.com>
2013
2014 * symtab.h (symbol_get_demangled_name): Don't declare.
2015 * symtab.c (symbol_get_demangled_name): Remove.
2016 (general_symbol_info::natural_name)
2017 (general_symbol_info::demangled_name): Update.
2018
906bb4c5
TT
20192020-04-24 Tom Tromey <tom@tromey.com>
2020
2021 PR rust/25025:
2022 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
2023
bcfe6157
TT
20242020-04-24 Tom Tromey <tom@tromey.com>
2025
2026 PR symtab/12707:
2027 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
2028 exists.
2029 (new_symbol): Likewise.
2030 * compile/compile-object-load.c (get_out_value_type): Use
2031 symbol_matches_search_name.
2032
f049a313
TT
20332020-04-24 Tom Tromey <tom@tromey.com>
2034
2035 * dwarf2/read.c (add_partial_symbol): Do not call
2036 compute_and_set_names.
2037
76e288d1
TT
20382020-04-24 Tom Tromey <tom@tromey.com>
2039
2040 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
2041 overload.
2042
2467f4f6
TT
20432020-04-24 Tom Tromey <tom@tromey.com>
2044
2045 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
2046 (add_psymbol_to_list): New overload. Make old overload call new
2047 one.
2048 * psympriv.h (add_psymbol_to_list): New overload.
2049
e61108c9
TT
20502020-04-24 Tom Tromey <tom@tromey.com>
2051
2052 * dwarf2/read.c (partial_die_info::read) <case
2053 DW_AT_linkage_name>: Use value_as_string.
2054 (dwarf2_string_attr): Use value_as_string.
2055 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2056 method.
2057 * dwarf2/attribute.c (attribute::value_as_string): New method.
2058
8c87a452
TT
20592020-04-24 Tom Tromey <tom@tromey.com>
2060
2061 * symtab.c (general_symbol_info::natural_name)
2062 (general_symbol_info::demangled_name): Check for language_rust.
2063
787de330
TT
20642020-04-24 Tom Tromey <tom@tromey.com>
2065
2066 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
2067 (dwarf2_physname): ... from here.
2068 (partial_die_info::read): Add Rust "{" hack.
2069
ff985671
TT
20702020-04-24 Tom Tromey <tom@tromey.com>
2071
2072 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
2073 method.
2074 (symbol_set_demangled_name): Don't declare.
2075 * symtab.c (general_symbol_info::set_demangled_name): Rename from
2076 symbol_set_demangled_name.
2077 (general_symbol_info::set_language)
2078 (general_symbol_info::compute_and_set_names): Update.
2079 * minsyms.c (minimal_symbol_reader::install): Update.
2080 * dwarf2/read.c (new_symbol): Update.
2081
1acda803
TT
20822020-04-24 Tom Tromey <tromey@adacore.com>
2083
2084 PR python/23662:
2085 * python/py-type.c (convert_field): Handle
2086 FIELD_LOC_KIND_DWARF_BLOCK.
2087 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
2088 (typy_get_dynamic): Nw function.
2089 (type_object_getset): Add "dynamic".
2090 * NEWS: Add entry.
2091
d656f129
TT
20922020-04-24 Tom Tromey <tromey@adacore.com>
2093
2094 * ada-typeprint.c (print_choices, print_variant_part)
2095 (print_record_field_types_dynamic): New functions.
2096 (print_record_field_types): Use print_record_field_types_dynamic.
2097
7d79de9a
TT
20982020-04-24 Tom Tromey <tromey@adacore.com>
2099
2100 * dwarf2/read.c (handle_data_member_location): New overload.
2101 (dwarf2_add_field): Use it.
2102 (decode_locdesc): Add "computed" parameter. Update comment.
2103 * gdbtypes.c (is_dynamic_type_internal): Also look for
2104 FIELD_LOC_KIND_DWARF_BLOCK.
2105 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
2106 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
2107 virtual base classes.
2108 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
2109 FIELD_LOC_KIND_DWARF_BLOCK.
2110
f8e89861
TT
21112020-04-24 Tom Tromey <tromey@adacore.com>
2112
2113 * dwarf2/read.c (read_structure_type): Handle dynamic length.
2114 * gdbtypes.c (is_dynamic_type_internal): Check
2115 TYPE_HAS_DYNAMIC_LENGTH.
2116 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
2117 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
2118 New macros.
2119 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
2120 constant.
2121
9c6a1327
TT
21222020-04-24 Tom Tromey <tromey@adacore.com>
2123
2124 * dwarf2/read.c (struct variant_field): Rewrite.
2125 (struct variant_part_builder): New.
2126 (struct nextfield): Remove "variant" field. Add "offset".
2127 (struct field_info): Add "current_variant_part" and
2128 "variant_parts".
2129 (alloc_discriminant_info): Remove.
2130 (alloc_rust_variant): New function.
2131 (quirk_rust_enum): Update.
2132 (dwarf2_add_field): Set "offset" member. Don't handle
2133 DW_TAG_variant_part.
2134 (offset_map_type): New typedef.
2135 (convert_variant_range, create_one_variant)
2136 (create_one_variant_part, create_variant_parts)
2137 (add_variant_property): New functions.
2138 (dwarf2_attach_fields_to_type): Call add_variant_property.
2139 (read_structure_type): Don't handle DW_TAG_variant_part.
2140 (handle_variant_part, handle_variant): New functions.
2141 (handle_struct_member_die): Use them.
2142 (process_structure_scope): Don't handle variant parts.
2143 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
2144 (struct discriminant_info): Remove.
2145 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
2146 (struct main_type) <flag_discriminated_union>: Remove.
2147 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
2148 (rust_enum_variant): Return int. Remove "contents". Rewrite.
2149 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
2150 Update.
2151 * valops.c (value_union_variant): Remove.
2152 * value.h (value_union_variant): Don't declare.
2153
b249d2c2
TT
21542020-04-24 Tom Tromey <tromey@adacore.com>
2155
2156 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
2157 (ada_value_primitive_packed_val): Update.
2158 * ada-valprint.c (ada_value_print_1): Update.
2159 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
2160 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
2161 just an address. Use evaluate_for_locexpr_baton.
2162 (dwarf2_evaluate_property): Update.
2163 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
2164 array_view.
2165 * findvar.c (default_read_var_value): Update.
2166 * gdbtypes.c (compute_variant_fields_inner)
2167 (resolve_dynamic_type_internal): Update.
2168 (resolve_dynamic_type): Change type of valaddr parameter.
2169 * gdbtypes.h (resolve_dynamic_type): Update.
2170 * valarith.c (value_subscripted_rvalue): Update.
2171 * value.c (value_from_contents_and_address): Update.
2172
61122aa9
TT
21732020-04-24 Tom Tromey <tromey@adacore.com>
2174
2175 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
2176 "push_initial_value" parameter.
2177 (dwarf2_evaluate_property): Likewise.
2178 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
2179
ef83a141
TT
21802020-04-24 Tom Tromey <tromey@adacore.com>
2181
2182 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
2183 (variant::matches, compute_variant_fields_recurse)
2184 (compute_variant_fields_inner, compute_variant_fields): New
2185 functions.
2186 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
2187 Use resolved_type after type is made.
2188 (operator==): Add new cases.
2189 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
2190 (struct discriminant_range, struct variant, struct variant_part):
2191 New.
2192 (union dynamic_prop_data) <variant_parts, original_type>: New
2193 members.
2194 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
2195 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
2196 constants.
2197 * value.c (unpack_bits_as_long): Now public.
2198 * value.h (unpack_bits_as_long): Declare.
2199
675127ec
TT
22002020-04-24 Tom Tromey <tromey@adacore.com>
2201
2202 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
2203 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
2204
9852ceef
HD
22052020-04-24 Hannes Domani <ssbssa@yahoo.de>
2206
2207 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
2208
7632c6ce
KR
22092020-04-24 Kamil Rytarowski <n54@gmx.com>
2210
2211 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
2212 (remove_fork_catchpoint, post_startup_inferior)
2213 (post_attach): Move...
2214 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
2215 (remove_fork_catchpoint, post_startup_inferior)
2216 (post_attach): ...here.
2217 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
2218 (remove_fork_catchpoint, post_startup_inferior)
2219 (post_attach): Move...
2220 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
2221 (remove_fork_catchpoint, post_startup_inferior)
2222 (post_attach): ...here.
2223
7be2bb4f
TT
22242020-04-24 Tom Tromey <tromey@adacore.com>
2225
2226 * nat/windows-nat.h (struct windows_thread_info)
2227 <pc_adjusted>: New member.
2228 * windows-nat.c (windows_fetch_one_register): Check
2229 pc_adjusted.
2230 (windows_nat_target::get_windows_debug_event)
2231 (windows_nat_target::wait): Set pc_adjusted.
2232
f80cb3b4
TV
22332020-04-24 Tom de Vries <tdevries@suse.de>
2234
2235 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
2236 Run gdb-add-index inside temp dir.
2237
29514b87
TT
22382020-04-23 Tom Tromey <tromey@adacore.com>
2239
2240 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
2241 in loop.
2242
5939967b
LM
22432020-04-23 Luis Machado <luis.machado@linaro.org>
2244
2245 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
2246 get_frame_register instead of gdbarch_unwind_pc.
2247
70bc38f5
TV
22482020-04-23 Tom de Vries <tdevries@suse.de>
2249
2250 * symtab.c (lookup_global_symbol): Prefer def over decl.
2251
de82891c
TV
22522020-04-23 Tom de Vries <tdevries@suse.de>
2253
2254 PR symtab/25807
2255 * block.c (best_symbol, better_symbol): Promote to external.
2256 * block.h (best_symbol, better_symbol): Declare.
2257 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
2258 decl.
2259
ecc6c606
TT
22602020-04-23 Tom Tromey <tromey@adacore.com>
2261
2262 PR ada/25837:
2263 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
2264 "const char *", not a "const std::string &".
2265 <name_and_matcher::operator==>: Update.
2266 * unittests/lookup_name_info-selftests.c: Change type of
2267 "result".
2268
740480b8
TT
22692020-04-23 Tom Tromey <tom@tromey.com>
2270
2271 * inferior.h (iterate_over_inferiors): Don't declare.
2272 * inferior.c (iterate_over_inferiors): Remove.
2273 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
2274 Remove.
2275 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
2276 use iterate_over_inferiors.
2277 (darwin_resume_inferior_it)
2278 (struct resume_inferior_threads_param)
2279 (darwin_resume_inferior_threads_it): Remove.
2280 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
2281
ae3ab1f0
TV
22822020-04-23 Tom de Vries <tdevries@suse.de>
2283
2284 * blockframe.c (find_pc_partial_function): Use
2285 find_pc_sect_compunit_symtab rather than
2286 objfile->sf->qf->find_pc_sect_compunit_symtab.
2287
317d2668
TV
22882020-04-22 Tom de Vries <tdevries@suse.de>
2289
2290 PR symtab/25764
2291 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
2292 in psymtabs.
2293
eea9e357
TV
22942020-04-22 Tom de Vries <tdevries@suse.de>
2295
2296 PR symtab/25801
2297 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
2298 symtabs.
2299
3d5afab3
TV
23002020-04-22 Tom de Vries <tdevries@suse.de>
2301
2302 PR symtab/25700
2303 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
2304 CU if already created.
2305
d43b7a2d
TBA
23062020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2307
2308 * infrun.c (displaced_step_fixup): Switch to the event_thread
2309 before calling displaced_step_restore, not after.
2310
d89edf9b
MM
23112020-04-21 Markus Metzger <markus.t.metzger@intel.com>
2312
2313 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
2314 its inferior is not recorded by us.
2315 (record_btrace_target_open): Replace call to
2316 all_non_exited_threads () with call to current_inferior
2317 ()->non_exited_threads ().
2318 (record_btrace_target::stop_recording): Likewise.
2319 (record_btrace_target::close): Likewise.
2320 (record_btrace_target::wait): Likewise.
2321 (record_btrace_target::record_stop_replaying): Likewise.
2322
5897fd49
MM
23232020-04-21 Markus Metzger <markus.t.metzger@intel.com>
2324
2325 * btrace.c (btrace_enable): Throw an error on double enables and
2326 when enabling recording fails.
2327 (btrace_disable): Throw an error if the thread is not recorded.
2328
1a476b6d
MM
23292020-04-21 Markus Metzger <markus.t.metzger@intel.com>
2330
2331 * record-btrace.c (record_btrace_target::fetch_registers): Forward
2332 request if we do not have a thread_info.
2333
4778a5f8
TV
23342020-04-21 Tom de Vries <tdevries@suse.de>
2335
2336 PR gdb/25471
2337 * thread.c
2338 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
2339 exception in get_frame_id.
2340
0fa7617d
TT
23412020-04-20 Tom Tromey <tromey@adacore.com>
2342
2343 * python/python.c (struct gdbpy_event): Mark move constructor as
2344 noexcept.
2345 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
2346 constructor as noexcept.
2347 * completer.h (struct completion_result): Mark move constructor as
2348 noexcept.
2349 * completer.c (completion_result::completion_result): Use
2350 initialization style. Don't call reset_match_list.
2351
ad23bda0
MS
23522020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
2353
2354 * MAINTAINERS (Write After Approval): Add myself.
2355
45e1f031
TT
23562020-04-18 Tom Tromey <tom@tromey.com>
2357
2358 * windows-tdep.c (init_w32_command_list)
2359 (w32_prefix_command_valid): Restore.
2360 (_initialize_windows_tdep): Call init_w32_command_list.
2361
08feed99
TT
23622020-04-18 Tom Tromey <tom@tromey.com>
2363
2364 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
2365 * value.c (value_fn_field): Update.
2366 * valops.c (find_function_in_inferior)
2367 (value_allocate_space_in_inferior): Update.
2368 * tui/tui-winsource.c (tui_update_source_windows_with_line):
2369 Update.
2370 * tui/tui-source.c (tui_source_window::set_contents): Update.
2371 * symtab.c (lookup_global_or_static_symbol)
2372 (find_function_start_sal_1, skip_prologue_sal)
2373 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
2374 * symmisc.c (dump_msymbols, dump_symtab_1)
2375 (maintenance_print_one_line_table): Update.
2376 * symfile.c (init_entry_point_info, section_is_mapped)
2377 (list_overlays_command, simple_read_overlay_table)
2378 (simple_overlay_update_1): Update.
2379 * stap-probe.c (handle_stap_probe): Update.
2380 * stabsread.c (dbx_init_float_type, define_symbol)
2381 (read_one_struct_field, read_enum_type, read_range_type): Update.
2382 * source.c (info_line_command): Update.
2383 * python/python.c (gdbpy_source_objfile_script)
2384 (gdbpy_execute_objfile_script): Update.
2385 * python/py-type.c (save_objfile_types): Update.
2386 * python/py-objfile.c (py_free_objfile): Update.
2387 * python/py-inferior.c (python_new_objfile): Update.
2388 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
2389 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
2390 (maintenance_check_psymtabs): Update.
2391 * printcmd.c (info_address_command): Update.
2392 * objfiles.h (struct objfile) <arch>: New method, from
2393 get_objfile_arch.
2394 (get_objfile_arch): Don't declare.
2395 * objfiles.c (get_objfile_arch): Remove.
2396 (filter_overlapping_sections): Update.
2397 * minsyms.c (msymbol_is_function): Update.
2398 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
2399 (output_nondebug_symbol): Update.
2400 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
2401 (mdebug_expand_psymtab): Update.
2402 * machoread.c (macho_add_oso_symfile): Update.
2403 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
2404 Update.
2405 * linux-fork.c (checkpoint_command): Update.
2406 * linespec.c (convert_linespec_to_sals): Update.
2407 * jit.c (finalize_symtab): Update.
2408 * infrun.c (insert_exception_resume_from_probe): Update.
2409 * ia64-tdep.c (ia64_find_unwind_table): Update.
2410 * hppa-tdep.c (internalize_unwinds): Update.
2411 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
2412 Update.
2413 * gcore.c (call_target_sbrk): Update.
2414 * elfread.c (record_minimal_symbol, elf_symtab_read)
2415 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2416 (elf_gnu_ifunc_resolve_by_got): Update.
2417 * dwarf2/read.c (create_addrmap_from_index)
2418 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
2419 (read_debug_names_from_section)
2420 (process_psymtab_comp_unit_reader, add_partial_symbol)
2421 (add_partial_subprogram, process_full_comp_unit)
2422 (read_file_scope, read_func_scope, read_lexical_block_scope)
2423 (read_call_site_scope, dwarf2_ranges_read)
2424 (dwarf2_record_block_ranges, dwarf2_add_field)
2425 (mark_common_block_symbol_computed, read_tag_pointer_type)
2426 (read_tag_string_type, dwarf2_init_float_type)
2427 (dwarf2_init_complex_target_type, read_base_type)
2428 (partial_die_info::read, partial_die_info::read)
2429 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
2430 (dwarf2_fetch_die_loc_sect_off): Update.
2431 * dwarf2/loc.c (dwarf2_find_location_expression)
2432 (class dwarf_evaluate_loc_desc, rw_pieced_value)
2433 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
2434 (dwarf2_loc_desc_get_symbol_read_needs)
2435 (locexpr_describe_location_piece, locexpr_describe_location_1)
2436 (loclist_describe_location): Update.
2437 * dwarf2/index-write.c (write_debug_names): Update.
2438 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
2439 * dtrace-probe.c (dtrace_process_dof): Update.
2440 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
2441 (process_one_symbol): Update.
2442 * ctfread.c (ctf_init_float_type, read_base_type): Update.
2443 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
2444 (coff_read_enum_type): Update.
2445 * cli/cli-cmds.c (edit_command, list_command): Update.
2446 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
2447 * breakpoint.c (create_overlay_event_breakpoint)
2448 (create_longjmp_master_breakpoint)
2449 (create_std_terminate_master_breakpoint)
2450 (create_exception_master_breakpoint, get_sal_arch): Update.
2451 * block.c (block_gdbarch): Update.
2452 * annotate.c (annotate_source_line): Update.
2453
0743fc83
TT
24542020-04-17 Tom Tromey <tromey@adacore.com>
2455
2456 * auto-load.c (show_auto_load_cmd): Remove.
2457 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
2458 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
2459 (maintenance_print_arc_command): Remove.
2460 * tui/tui-win.c (tui_command): Remove.
2461 (tui_get_cmd_list): Use add_basic_prefix_cmd.
2462 * tui/tui-layout.c (tui_layout_command): Remove.
2463 (_initialize_tui_layout): Use add_basic_prefix_cmd.
2464 * python/python.c (user_set_python, user_show_python): Remove.
2465 (_initialize_python): Use add_basic_prefix_cmd,
2466 add_show_prefix_cmd.
2467 * guile/guile.c (set_guile_command, show_guile_command): Remove.
2468 (install_gdb_commands): Use add_basic_prefix_cmd,
2469 add_show_prefix_cmd.
2470 (info_guile_command): Remove.
2471 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
2472 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
2473 add_show_prefix_cmd.
2474 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
2475 Remove do_set and do_show parameters.
2476 * cli/cli-style.c (set_style, show_style): Remove.
2477 (_initialize_cli_style): Use add_basic_prefix_cmd,
2478 add_show_prefix_cmd.
2479 (cli_style_option::add_setshow_commands): Remove do_set and
2480 do_show parameters.
2481 (cli_style_option::add_setshow_commands): Use
2482 add_basic_prefix_cmd, add_show_prefix_cmd.
2483 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
2484 (set_style_name): Remove.
2485 * cli/cli-dump.c (dump_command, append_command): Remove.
2486 (srec_dump_command, ihex_dump_command, verilog_dump_command)
2487 (tekhex_dump_command, binary_dump_command)
2488 (binary_append_command): Remove.
2489 (_initialize_cli_dump): Use add_basic_prefix_cmd.
2490 * windows-tdep.c (w32_prefix_command_valid): Remove global.
2491 (init_w32_command_list): Remove; move into ...
2492 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
2493 * valprint.c (set_print, show_print, set_print_raw)
2494 (show_print_raw): Remove.
2495 (_initialize_valprint): Use add_basic_prefix_cmd,
2496 add_show_prefix_cmd.
2497 * typeprint.c (set_print_type, show_print_type): Remove.
2498 (_initialize_typeprint): Use add_basic_prefix_cmd,
2499 add_show_prefix_cmd.
2500 * record.c (set_record_command, show_record_command): Remove.
2501 (_initialize_record): Use add_basic_prefix_cmd,
2502 add_show_prefix_cmd.
2503 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
2504 add_show_prefix_cmd.
2505 (info_command, show_command, set_debug, show_debug): Remove.
2506 * top.h (set_history, show_history): Don't declare.
2507 * top.c (set_history, show_history): Remove.
2508 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
2509 (unset_tdesc_cmd): Remove.
2510 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
2511 add_show_prefix_cmd.
2512 * symtab.c (info_module_command): Remove.
2513 (_initialize_symtab): Use add_basic_prefix_cmd.
2514 * symfile.c (overlay_command): Remove.
2515 (_initialize_symfile): Use add_basic_prefix_cmd.
2516 * sparc64-tdep.c (info_adi_command): Remove.
2517 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
2518 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
2519 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
2520 add_show_prefix_cmd.
2521 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
2522 (_initialize_serial): Use add_basic_prefix_cmd,
2523 add_show_prefix_cmd.
2524 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
2525 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
2526 add_show_prefix_cmd.
2527 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
2528 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
2529 add_show_prefix_cmd.
2530 * riscv-tdep.c (show_riscv_command, set_riscv_command)
2531 (show_debug_riscv_command, set_debug_riscv_command): Remove.
2532 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
2533 add_show_prefix_cmd.
2534 * remote.c (remote_command, set_remote_cmd): Remove.
2535 (_initialize_remote): Use add_basic_prefix_cmd.
2536 * record-full.c (set_record_full_command)
2537 (show_record_full_command): Remove.
2538 (_initialize_record_full): Use add_basic_prefix_cmd,
2539 add_show_prefix_cmd.
2540 * record-btrace.c (cmd_set_record_btrace)
2541 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
2542 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
2543 (cmd_show_record_btrace_pt): Remove.
2544 (_initialize_record_btrace): Use add_basic_prefix_cmd,
2545 add_show_prefix_cmd.
2546 * ravenscar-thread.c (set_ravenscar_command)
2547 (show_ravenscar_command): Remove.
2548 (_initialize_ravenscar): Use add_basic_prefix_cmd,
2549 add_show_prefix_cmd.
2550 * mips-tdep.c (show_mips_command, set_mips_command)
2551 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
2552 add_show_prefix_cmd.
2553 * maint.c (maintenance_command, maintenance_info_command)
2554 (maintenance_check_command, maintenance_print_command)
2555 (maintenance_set_cmd, maintenance_show_cmd): Remove.
2556 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
2557 add_show_prefix_cmd.
2558 (show_per_command_cmd): Remove.
2559 * maint-test-settings.c (maintenance_set_test_settings_cmd):
2560 Remove.
2561 (maintenance_show_test_settings_cmd): Remove.
2562 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
2563 add_show_prefix_cmd.
2564 * maint-test-options.c (maintenance_test_options_command):
2565 Remove.
2566 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
2567 * macrocmd.c (macro_command): Remove
2568 (_initialize_macrocmd): Use add_basic_prefix_cmd.
2569 * language.c (set_check, show_check): Remove.
2570 (_initialize_language): Use add_basic_prefix_cmd,
2571 add_show_prefix_cmd.
2572 * infcmd.c (unset_command): Remove.
2573 (_initialize_infcmd): Use add_basic_prefix_cmd.
2574 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
2575 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
2576 add_show_prefix_cmd.
2577 * go32-nat.c (go32_info_dos_command): Remove.
2578 (_initialize_go32_nat): Use add_basic_prefix_cmd.
2579 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
2580 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
2581 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
2582 (_initialize_frame): Use add_basic_prefix_cmd,
2583 add_show_prefix_cmd.
2584 * dcache.c (set_dcache_command, show_dcache_command): Remove.
2585 (_initialize_dcache): Use add_basic_prefix_cmd,
2586 add_show_prefix_cmd.
2587 * cp-support.c (maint_cplus_command): Remove.
2588 (_initialize_cp_support): Use add_basic_prefix_cmd.
2589 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
2590 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
2591 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
2592 add_basic_prefix_cmd, add_show_prefix_cmd.
2593 * breakpoint.c (save_command): Remove.
2594 (_initialize_breakpoint): Use add_basic_prefix_cmd.
2595 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
2596 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
2597 add_show_prefix_cmd.
2598 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
2599 (set_ada_command, show_ada_command): Remove.
2600 (_initialize_ada_language): Use add_basic_prefix_cmd,
2601 add_show_prefix_cmd.
2602 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
2603
3557f442
KR
26042020-04-16 Kamil Rytarowski <n54@gmx.com>
2605
2606 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
2607 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
2608
16197208
SM
26092020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
2610
2611 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
2612 warning messages.
2613
00ac85d3
SM
26142020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
2615
2616 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
2617 import table is not at beginning of .idata section.
2618
381ce63f
PA
26192020-04-16 Pedro Alves <palves@redhat.com>
2620
2621 * inferior.c (delete_inferior): Use delete operator directly
2622 instead of delete_program_space.
2623 * progspace.c (add_program_space): New, factored out from
2624 program_space::program_space.
2625 (remove_program_space): New, factored out from
2626 delete_program_space.
2627 (program_space::program_space): Remove intro comment. Rewrite.
2628 (program_space::~program_space): Remove intro comment. Call
2629 remove_program_space.
2630 (delete_program_space): Delete.
2631 * progspace.h (program_space::program_space): Make explicit. Move
2632 intro comment here, adjusted.
2633 (program_space::~program_space): Move intro comment here,
2634 adjusted.
2635 (delete_program_space): Remove.
2636
a010605f
TT
26372020-04-16 Tom Tromey <tromey@adacore.com>
2638
2639 * windows-nat.c (windows_nat::handle_access_violation): New
2640 function.
2641 * nat/windows-nat.h (handle_access_violation): Declare.
2642 * nat/windows-nat.c (handle_exception): Move Cygwin code to
2643 windows-nat.c. Call handle_access_violation.
2644
efba5c23
TV
26452020-04-16 Tom de Vries <tdevries@suse.de>
2646
2647 PR symtab/25791
2648 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
2649 CUs without psymtab.
2650
97ed802d
KB
26512020-04-16 Kevin Buettner <kevinb@redhat.com>
2652
2653 * python/python.c (do_start_initialization): Don't call
2654 PyEval_InitThreads for Python 3.9 and beyond.
2655
c7d64809
KR
26562020-04-15 Kamil Rytarowski <n54@gmx.com>
2657
2658 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
2659 thread functions.
2660 (obsd_nat_target::wait): Likewise.
2661
ce127a96
TT
26622020-04-15 Tom Tromey <tromey@adacore.com>
2663
2664 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
2665 (DEBUG_EXCEPT): Use debug_printf.
2666
99f1bc6a
AB
26672020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2668
2669 * completer.c (class completion_tracker::completion_hash_entry)
2670 <hash_name>: New member function.
2671 (completion_tracker::discard_completions): New callback to hash a
2672 completion_hash_entry, pass this to htab_create_alloc.
2673
a0e9b532
JT
26742016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
2675
2676 * windows-nat.c (windows_make_so): Warn rather than stopping with
2677 an error if realpath() fails.
2678
06ca5dd4
KR
26792020-04-14 Kamil Rytarowski <n54@gmx.com>
2680
2681 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
2682 (nbsd_nat_target::info_proc): Add do_status.
2683
194d088f
TV
26842020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
2685 Tom de Vries <tdevries@suse.de>
2686
2687 PR symtab/25718
2688 * psympriv.h (struct partial_symtab::read_symtab)
2689 (struct partial_symtab::expand_psymtab)
2690 (struct partial_symtab::read_dependencies): Update comments.
2691 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
2692 read_symtab for includer.
2693 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
2694 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
2695 (struct dwarf2_include_psymtab::m_readin): Remove.
2696 (struct dwarf2_include_psymtab::includer): New member function.
2697 (dwarf2_psymtab::expand_psymtab): Assert !readin.
2698
c1a66c06
TV
26992020-04-14 Tom de Vries <tdevries@suse.de>
2700
2701 PR symtab/25720
2702 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
2703 with NULL symbol_matcher and lookup_name.
2704 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
2705 and lookup_name.
2706 * dwarf2/read.c (dw2_expand_symtabs_matching)
2707 (dw2_debug_names_expand_symtabs_matching): Same.
2708 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
2709 Make lookup_name a pointer. Update comment.
2710 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
2711 lookup_name being a pointer.
2712 * symfile.c (expand_symtabs_matching): Same.
2713 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
2714 * linespec.c (iterate_over_all_matching_symtabs): Same.
2715
400b5eca
TT
27162020-04-13 Tom Tromey <tom@tromey.com>
2717
2718 * run-on-main-thread.c: Update include.
2719 * unittests/main-thread-selftests.c: Update include.
2720 * tui/tui-win.c: Update include.
2721 * tui/tui-io.c: Update include.
2722 * tui/tui-interp.c: Update include.
2723 * tui/tui-hooks.c: Update include.
2724 * top.h: Update include.
2725 * top.c: Update include.
2726 * ser-base.c: Update include.
2727 * remote.c: Update include.
2728 * remote-notif.c: Update include.
2729 * remote-fileio.c: Update include.
2730 * record-full.c: Update include.
2731 * record-btrace.c: Update include.
2732 * python/python.c: Update include.
2733 * posix-hdep.c: Update include.
2734 * mingw-hdep.c: Update include.
2735 * mi/mi-main.c: Update include.
2736 * mi/mi-interp.c: Update include.
2737 * main.c: Update include.
2738 * linux-nat.c: Update include.
2739 * interps.c: Update include.
2740 * infrun.c: Update include.
2741 * inf-loop.c: Update include.
2742 * event-top.c: Update include.
2743 * event-loop.c: Move to ../gdbsupport/.
2744 * event-loop.h: Move to ../gdbsupport/.
2745 * async-event.h: Update include.
2746 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
2747
93b54c8e
TT
27482020-04-13 Tom Tromey <tom@tromey.com>
2749
2750 * tui/tui-win.c: Include async-event.h.
2751 * remote.c: Include async-event.h.
2752 * remote-notif.c: Include async-event.h.
2753 * record-full.c: Include async-event.h.
2754 * record-btrace.c: Include async-event.h.
2755 * infrun.c: Include async-event.h.
2756 * event-top.c: Include async-event.h.
2757 * event-loop.h: Move some declarations to async-event.h.
2758 * event-loop.c: Don't include ser-event.h or top.h. Move some
2759 code to async-event.c.
2760 * async-event.h: New file.
2761 * async-event.c: New file.
2762 * Makefile.in (COMMON_SFILES): Add async-event.c.
2763 (HFILES_NO_SRCDIR): Add async-event.h.
2764
c1cd3163
TT
27652020-04-13 Tom Tromey <tom@tromey.com>
2766
2767 * utils.c (flush_streams): New function.
2768 * event-loop.c (gdb_wait_for_event): Call flush_streams.
2769
29f2bf4f
TT
27702020-04-13 Tom Tromey <tom@tromey.com>
2771
2772 * event-loop.c (handle_file_event): Use warning, not
2773 printf_unfiltered.
2774
98029d02
TT
27752020-04-13 Tom Tromey <tom@tromey.com>
2776
2777 * event-loop.c: Include <chrono>.
2778
06cc9596
TT
27792020-04-13 Tom Tromey <tom@tromey.com>
2780
2781 * gdb_select.h: Move to ../gdbsupport/.
2782 * event-loop.c: Update include path.
2783 * top.c: Update include path.
2784 * ser-base.c: Update include path.
2785 * ui-file.c: Update include path.
2786 * ser-tcp.c: Update include path.
2787 * guile/scm-ports.c: Update include path.
2788 * posix-hdep.c: Update include path.
2789 * ser-unix.c: Update include path.
2790 * gdb_usleep.c: Update include path.
2791 * mingw-hdep.c: Update include path.
2792 * inflow.c: Update include path.
2793 * infrun.c: Update include path.
2794 * event-top.c: Update include path.
2795
8ae8e197
TT
27962020-04-13 Tom Tromey <tom@tromey.com>
2797
2798 * configure: Rebuild.
2799 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
2800
58cf28e8
TT
28012020-04-13 Tom Tromey <tom@tromey.com>
2802
2803 * event-loop.h (start_event_loop): Don't declare.
2804 * event-loop.c (start_event_loop): Move...
2805 * main.c (start_event_loop): ...here. Now static.
2806
b7f999ae
SDJ
28072020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
2808
2809 * MAINTAINERS: Update my email address.
2810
1085dfd4
KR
28112020-04-12 Kamil Rytarowski <n54@gmx.com>
2812
2813 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
2814 IP_ALL.
2815
49d1d1f5
KR
28162020-04-12 Kamil Rytarowski <n54@gmx.com>
2817
2818 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 2819 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 2820
b4848d2a
KR
28212020-04-12 Kamil Rytarowski <n54@gmx.com>
2822
2823 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 2824 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 2825
51c133d5
KR
28262020-04-12 Kamil Rytarowski <n54@gmx.com>
2827
2828 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
2829
54b8cbd0
KR
28302020-04-11 Kamil Rytarowski <n54@gmx.com>
2831
2832 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
2833 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
2834 (nbsd_nat_target::info_proc): New functions.
2835 * nbsd-nat.c (kinfo_get_vmmap): New function.
2836 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
2837 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
2838 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
2839 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
2840 functions.
2841 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
2842 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
2843 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
2844 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
2845 (KINFO_VME_FLAG_GROWS_DOWN): New.
2846
cf83625d
AS
28472020-04-10 Artur Shepilko <nomadbyte@gmail.com>
2848
2849 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
2850 bit shift.
2851
0c4311ab
TT
28522020-04-10 Tom Tromey <tromey@adacore.com>
2853
2854 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
2855
3e65b3e9
TT
28562020-04-10 Tom Tromey <tromey@adacore.com>
2857
2858 * symtab.c (get_symbol_address, get_msymbol_address): Skip
2859 separate debug files.
2860
13302e95
HD
28612020-04-10 Hannes Domani <ssbssa@yahoo.de>
2862
2863 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
2864 Move to...
2865 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
2866 ... here.
2867 * windows-nat.c (windows_nat_target::get_windows_debug_event):
2868 Check for STATUS_WX86_BREAKPOINT.
2869 (windows_nat_target::wait): Same.
2870
bdfc1e8a
TV
28712020-04-10 Tom de Vries <tdevries@suse.de>
2872
2873 PR cli/25808
2874 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
2875
f4460aec
SM
28762020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
2877
2878 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
2879 (Write After Approval): Remove Tom de Vries.
2880
a25198bb
BE
28812020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
2882
2883 revert partially:
2884 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
2885
aac66a4c
SM
2886 * buildsym.c (record_line): Fix undefined behavior and preserve
2887 lines at eof.
a25198bb 2888
206c98a6
KR
28892020-04-09 Kamil Rytarowski <n54@gmx.com>
2890
2891 * auxv.h (svr4_auxv_parse): New.
2892 * auxv.c (default_auxv_parse): Split into default_auxv_parse
2893 and generic_auxv_parse.
2894 (svr4_auxv_parse): Add.
2895 * obsd-tdep.c: Include "auxv.h".
2896 (obsd_auxv_parse): Remove.
2897 (obsd_init_abi): Remove comment.
2898 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
2899 from `obsd_auxv_parse' to `svr4_auxv_parse'.
2900 * nbsd-tdep.c: Include "auxv.h".
2901 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
2902
71fbdbaf
TT
29032020-04-08 Tom Tromey <tromey@adacore.com>
2904
2905 * nat/windows-nat.h (last_wait_event): Don't declare.
2906 (wait_for_debug_event): Update comment.
2907 * nat/windows-nat.c (last_wait_event): Now static.
2908
2c1d95e8
TT
29092020-04-08 Tom Tromey <tromey@adacore.com>
2910
2911 * windows-nat.c (wait_for_debug_event): Move to
2912 nat/windows-nat.c.
2913 * nat/windows-nat.h (wait_for_debug_event): Declare.
2914 * nat/windows-nat.c (wait_for_debug_event): Move from
2915 windows-nat.c. No longer static.
2916
d2977bc4
TT
29172020-04-08 Tom Tromey <tromey@adacore.com>
2918
2919 * windows-nat.c (get_windows_debug_event): Use
2920 fetch_pending_stop.
2921 * nat/windows-nat.h (fetch_pending_stop): Declare.
2922 * nat/windows-nat.c (fetch_pending_stop): New function.
2923
e758e19c
TT
29242020-04-08 Tom Tromey <tromey@adacore.com>
2925
2926 * windows-nat.c (windows_continue): Use matching_pending_stop and
2927 continue_last_debug_event.
2928 * nat/windows-nat.h (matching_pending_stop)
2929 (continue_last_debug_event): Declare.
2930 * nat/windows-nat.c (DEBUG_EVENTS): New define.
2931 (matching_pending_stop, continue_last_debug_event): New
2932 functions.
2933
8d30e395
TT
29342020-04-08 Tom Tromey <tromey@adacore.com>
2935
2936 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
2937 (handle_exception_result): Move to nat/windows-nat.h.
2938 (DEBUG_EXCEPTION_SIMPLE): Remove.
2939 (windows_nat::handle_ms_vc_exception): New function.
2940 (handle_exception): Move to nat/windows-nat.c.
2941 (get_windows_debug_event): Update.
2942 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
2943 nat/windows-nat.c.
2944 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
2945 (handle_exception_result): Move from windows-nat.c.
2946 (handle_exception): Declare.
2947 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
2948 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
2949 windows-nat.c.
2950
29de418d
TT
29512020-04-08 Tom Tromey <tromey@adacore.com>
2952
2953 * windows-nat.c (exception_count, event_count): Remove.
2954 (handle_exception, get_windows_debug_event)
2955 (do_initial_windows_stuff): Update.
2956
a816ba18
TT
29572020-04-08 Tom Tromey <tromey@adacore.com>
2958
2959 * windows-nat.c (windows_nat::handle_load_dll)
2960 (windows_nat::handle_unload_dll): Rename. No longer static.
2961 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
2962 Declare.
2963
a00caa12
TT
29642020-04-08 Tom Tromey <tromey@adacore.com>
2965
2966 * complaints.h (stop_whining): Declare at top-level.
2967 (complaint): Don't declare stop_whining.
2968
d41b524f
TT
29692020-04-08 Tom Tromey <tromey@adacore.com>
2970
2971 * windows-nat.c (windows_nat::handle_output_debug_string):
2972 Rename. No longer static.
2973 * nat/windows-nat.h (handle_output_debug_string): Declare.
2974
3c76026d
TT
29752020-04-08 Tom Tromey <tromey@adacore.com>
2976
2977 * windows-nat.c (current_process_handle, current_process_id)
2978 (main_thread_id, last_sig, current_event, last_wait_event)
2979 (current_windows_thread, desired_stop_thread_id, pending_stops)
2980 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
2981 (display_selectors, fake_create_process)
2982 (get_windows_debug_event): Update.
2983 * nat/windows-nat.h (current_process_handle, current_process_id)
2984 (main_thread_id, last_sig, current_event, last_wait_event)
2985 (current_windows_thread, desired_stop_thread_id, pending_stops)
2986 (struct pending_stop, siginfo_er): Move from windows-nat.c.
2987 * nat/windows-nat.c (current_process_handle, current_process_id)
2988 (main_thread_id, last_sig, current_event, last_wait_event)
2989 (current_windows_thread, desired_stop_thread_id, pending_stops)
2990 (siginfo_er): New globals. Move from windows-nat.c.
2991
9d8679cc
TT
29922020-04-08 Tom Tromey <tromey@adacore.com>
2993
2994 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
2995 (handle_load_dll): Update.
2996 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
2997
28688adf
TT
29982020-04-08 Tom Tromey <tromey@adacore.com>
2999
3000 * windows-nat.c (enum thread_disposition_type): Move to
3001 nat/windows-nat.h.
3002 (windows_nat::thread_rec): Rename from thread_rec. No longer
3003 static.
3004 (windows_add_thread, windows_nat_target::fetch_registers)
3005 (windows_nat_target::store_registers, handle_exception)
3006 (windows_nat_target::resume, get_windows_debug_event)
3007 (windows_nat_target::get_tib_address)
3008 (windows_nat_target::thread_name)
3009 (windows_nat_target::thread_alive): Update.
3010 * nat/windows-nat.h (enum thread_disposition_type): Move from
3011 windows-nat.c.
3012 (thread_rec): Declare.
3013
4834dad0
TT
30142020-04-08 Tom Tromey <tromey@adacore.com>
3015
3016 * windows-nat.c: Add "using namespace".
3017 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
3018 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
3019
65bafd5b
TT
30202020-04-08 Tom Tromey <tromey@adacore.com>
3021
3022 * nat/windows-nat.h (struct windows_thread_info): Declare
3023 destructor.
3024 * nat/windows-nat.c (~windows_thread_info): New.
3025
0a4afda3
TT
30262020-04-08 Tom Tromey <tromey@adacore.com>
3027
3028 PR gdb/22992
3029 * windows-nat.c (current_event): Update comment.
3030 (last_wait_event, desired_stop_thread_id): New globals.
3031 (struct pending_stop): New.
3032 (pending_stops): New global.
3033 (windows_nat_target) <stopped_by_sw_breakpoint>
3034 <supports_stopped_by_sw_breakpoint>: New methods.
3035 (windows_fetch_one_register): Add assertions. Adjust PC.
3036 (windows_continue): Handle pending stops. Suspend other threads
3037 when stepping. Use last_wait_event
3038 (wait_for_debug_event): New function.
3039 (get_windows_debug_event): Use wait_for_debug_event. Handle
3040 pending stops. Queue spurious stops.
3041 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
3042 (windows_nat_target::kill): Use wait_for_debug_event.
3043 * nat/windows-nat.h (struct windows_thread_info)
3044 <stopped_at_software_breakpoint>: New field.
3045 * nat/windows-nat.c (windows_thread_info::resume): Clear
3046 stopped_at_software_breakpoint.
3047
8e61ebec
TT
30482020-04-08 Tom Tromey <tromey@adacore.com>
3049
3050 * windows-nat.c (enum thread_disposition_type): New.
3051 (thread_rec): Replace "get_context" parameter with "disposition";
3052 change type.
3053 (windows_add_thread, windows_nat_target::fetch_registers)
3054 (windows_nat_target::store_registers, handle_exception)
3055 (windows_nat_target::resume, get_windows_debug_event)
3056 (windows_nat_target::get_tib_address)
3057 (windows_nat_target::thread_name)
3058 (windows_nat_target::thread_alive): Update.
3059
98a03287
TT
30602020-04-08 Tom Tromey <tromey@adacore.com>
3061
3062 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
3063 (windows_continue): Use windows_continue::resume.
3064 * nat/windows-nat.h (struct windows_thread_info) <suspend,
3065 resume>: Declare new methods.
3066 * nat/windows-nat.c: New file.
3067 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
3068
7c7411bc
TT
30692020-04-08 Tom Tromey <tromey@adacore.com>
3070
3071 * windows-nat.c (windows_add_thread, windows_delete_thread)
3072 (windows_nat_target::fetch_registers)
3073 (windows_nat_target::store_registers, fake_create_process)
3074 (windows_nat_target::resume, windows_nat_target::resume)
3075 (get_windows_debug_event, windows_nat_target::wait)
3076 (windows_nat_target::pid_to_str)
3077 (windows_nat_target::get_tib_address)
3078 (windows_nat_target::get_ada_task_ptid)
3079 (windows_nat_target::thread_name)
3080 (windows_nat_target::thread_alive): Use lwp, not tid.
3081
2950fdf7
TT
30822020-04-08 Tom Tromey <tromey@adacore.com>
3083
3084 * windows-nat.c (handle_exception)
3085 (windows_nat_target::thread_name): Update.
3086 * nat/windows-nat.h (windows_thread_info): Remove destructor.
3087 <name>: Now unique_xmalloc_ptr.
3088
62fe396b
TT
30892020-04-08 Tom Tromey <tromey@adacore.com>
3090
3091 * windows-nat.c (thread_rec)
3092 (windows_nat_target::fetch_registers): Update.
3093 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
3094 Update comment.
3095 <debug_registers_changed, reload_context>: Now bool.
3096
e9534bd2
TT
30972020-04-08 Tom Tromey <tromey@adacore.com>
3098
3099 * windows-nat.c (windows_add_thread): Use new.
3100 (windows_init_thread_list, windows_delete_thread): Use delete.
3101 (get_windows_debug_event): Update.
3102 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
3103 destructor, and initializers.
3104
ae1f8880
TT
31052020-04-08 Tom Tromey <tromey@adacore.com>
3106
3107 * windows-nat.c (struct windows_thread_info): Remove.
3108 * nat/windows-nat.h: New file.
3109
55a1e039
TT
31102020-04-08 Tom Tromey <tromey@adacore.com>
3111
3112 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
3113 (thread_rec, windows_add_thread, windows_delete_thread)
3114 (windows_continue): Update.
3115
93366324
TT
31162020-04-08 Tom Tromey <tromey@adacore.com>
3117
3118 * windows-nat.c (struct windows_thread_info): Remove typedef.
3119 (thread_head): Remove.
3120 (thread_list): New global.
3121 (thread_rec, windows_add_thread, windows_init_thread_list)
3122 (windows_delete_thread, windows_continue): Update.
3123
0f2265e2
SM
31242020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
3125
3126 * windows-tdep.h (windows_init_abi): Add comment.
3127 (cygwin_init_abi): New declaration.
3128 * windows-tdep.c: Split signal enumeration in two, one for
3129 Windows and one for Cygwin.
3130 (windows_gdb_signal_to_target): Only deal with signal of the
3131 Windows OS ABI.
3132 (cygwin_gdb_signal_to_target): New function.
3133 (windows_init_abi): Rename to windows_init_abi_common, don't set
3134 gdb_signal_to_target gdbarch method. Add new new function with
3135 this name.
3136 (cygwin_init_abi): New function.
3137 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
3138 comment. Don't call windows_init_abi.
3139 (amd64_windows_init_abi): Add comment, call windows_init_abi.
3140 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
3141 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
3142 i386_windows_init_abi_common, don't call windows_init_abi. Add
3143 a new function of this name.
3144 (i386_cygwin_init_abi): New function.
3145 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
3146 OS ABI Cygwin.
3147
3810f182
SM
31482020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
3149
3150 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
3151 parameter.c.
3152 (dwarf2_read_gdb_index): Update.
3153
063f8e80
KR
31542020-04-07 Kamil Rytarowski <n54@gmx.com>
3155
3156 * nbsd-tdep.c: Include "objfiles.h".
3157 (nbsd_skip_solib_resolver): New.
3158 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
3159
85a9510c 31602020-04-07 Nitika Achra <Nitika.Achra@amd.com>
3161
3162 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
3163 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
3164 with DW_LLE_base_addressx are being emitted in DWARFv5.
3165 Add the newly added kind DW_LOC_OFFSET_PAIR also.
3166 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
3167 unsigned integer.
3168
9fc3eaae 31692020-04-07 Nitika Achra <Nitika.Achra@amd.com>
3170
3171 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
3172 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
3173 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
3174 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
3175 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
3176 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
3177 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
3178
3179
41144253 31802020-04-07 Nitika Achra <Nitika.Achra@amd.com>
3181
3182 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
3183 (read_loclist_index): New function definition.
3184 (lookup_loclist_base): New function definition.
3185 (read_loclist_header): New function definition.
3186 (dwarf2_cu): Add loclist_base and loclist_header field.
3187 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
3188 (read_full_die_1): Read the value of DW_AT_loclists_base.
3189 (read_attribute_reprocess): Handle DW_FORM_loclistx.
3190 (read_attribute_value): Handle DW_FORM_loclistx.
3191 (skip_one_die): Handle DW_FORM_loclistx.
3192 (loclist_header): New structure declaration.
3193 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
3194
9f4e76a4
SM
31952020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
3196
3197 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
3198 constructor. Remove `addr` parameter from other constructor and
3199 add `per_cu` parameter.
3200 * dwarf2/read.c (create_partial_symtab): Update.
3201
25c11aca
TV
32022020-04-07 Tom de Vries <tdevries@suse.de>
3203
3204 PR symtab/25796
3205 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
3206 (partial_die_info::fixup): Inherit has_const_value.
3207
5707e24b
TV
32082020-04-07 Tom de Vries <tdevries@suse.de>
3209
3210 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
3211 symbols without address.
3212
05f00e22
KR
32132020-04-06 Kamil Rytarowski <n54@gmx.com>
3214
3215 * nbsd-nat.h (struct thread_info): Add forward declaration.
3216 (nbsd_nat_target::thread_alive): Add.
3217 (nbsd_nat_target::thread_name): Likewise.
3218 (nbsd_nat_target::update_thread_list): Likewise.
3219 (update_thread_list::post_attach): Likewise.
3220 (post_attach::pid_to_str): Likewise.
3221 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
3222 (nbsd_thread_lister): Add.
3223 (nbsd_nat_target::thread_alive): Likewise.
3224 (nbsd_nat_target::thread_name): Likewise.
3225 (nbsd_add_threads): Likewise.
3226 (update_thread_list::post_attach): Likewise.
3227 (nbsd_nat_target::update_thread_list): Likewise.
3228 (post_attach::pid_to_str): Likewise.
3229
6ee448cc
TT
32302020-04-06 Tom Tromey <tromey@adacore.com>
3231
3232 * ada-valprint.c (print_variant_part): Extract the variant field.
3233 (print_field_values): Use the field as the outer value when
3234 recursing.
3235
dea34e8c
TT
32362020-04-06 Tom Tromey <tromey@adacore.com>
3237
3238 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
3239 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
3240 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
3241 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
3242 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
3243
93689ce9
TT
32442020-04-06 Tom Tromey <tromey@adacore.com>
3245
3246 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
3247 TYPE_CODE_ERROR.
3248
79743962
KR
32492020-04-06 Kamil Rytarowski <n54@gmx.com>
3250
3251 * nbsd-tdep.c: Include "gdbarch.h".
3252 Define enum with NetBSD signal numbers.
3253 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
3254 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
3255 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
3256 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
3257 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
3258 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
3259 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
3260 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
3261 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
3262 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
3263 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
3264 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
3265
9e7c9a03
HD
32662020-04-03 Hannes Domani <ssbssa@yahoo.de>
3267
3268 PR gdb/25325
3269 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
3270
d9e49b61
TT
32712020-04-03 Tom Tromey <tromey@adacore.com>
3272
3273 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
3274 Read constant block.
3275
e0fc5c3f
SM
32762020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
3277
3278 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
3279 (gdb_bfd_get_full_section_contents): New declaration.
3280 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
3281 * windows-tdep.c (is_linked_with_cygwin_dll): Use
3282 gdb_bfd_get_full_section_contents.
3283
e2ff18a0
SM
32842020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
3285
3286 * exec.c (build_section_table): Replace internal_error with
3287 gdb_assert.
3288 (section_table_xfer_memory_partial): Likewise.
3289 * mdebugread.c (parse_partial_symbols): Likewise.
3290 * psymtab.c (lookup_partial_symbol): Likewise.
3291 * utils.c (wrap_here): Likewise.
3292
0830d301
TT
32932020-04-02 Tom Tromey <tromey@adacore.com>
3294
3295 * f-lang.c (build_fortran_types): Use arch_type to initialize
3296 builtin_complex_s32 in the TYPE_CODE_ERROR case.
3297
e7da7f8f
TT
32982020-04-02 Tom Tromey <tromey@adacore.com>
3299
3300 * dwarf2/read.c (partial_die_info::read): Do not create a vector
3301 of attributes.
3302
c90d28ac
AB
33032020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
3304 Bernd Edlinger <bernd.edlinger@hotmail.de>
3305 Tom Tromey <tromey@adacore.com>
3306
3307 * buildsym.c (buildsym_compunit::record_line): Remove
3308 deduplication code.
3309
1aa98955
TV
33102020-04-02 Tom de Vries <tdevries@suse.de>
3311
3312 PR ada/24671
3313 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
3314
d3214198
TV
33152020-04-02 Tom de Vries <tdevries@suse.de>
3316
3317 * dwarf2/read.c (dwarf2_gdb_index_functions,
3318 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
3319 NULL.
3320 * psymtab.c (psym_lookup_global_symbol_language): New function.
3321 (psym_functions): Init psym_lookup_global_symbol_language with
3322 psym_lookup_global_symbol_language.
3323 * symfile-debug.c (debug_sym_quick_functions): Init
3324 lookup_global_symbol_language with NULL.
3325 * symfile.c (set_initial_language): Remove fixme comment.
3326 * symfile.h (struct quick_symbol_functions): Add
3327 lookup_global_symbol_language.
3328 * symtab.c (find_quick_global_symbol_language): New function.
3329 (find_main_name): Use find_quick_global_symbol_language.
3330
2836752f
SM
33312020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
3332
3333 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
3334
64dc2d4b
BE
33352020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3336
3337 * buildsym.c (record_line): Fix undefined behavior and preserve
3338 lines at eof.
3339
bbe3dc41
BE
33402020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3341
3342 * buildsym.c (record_line): Fix the resizing condition.
3343
6b4a335b
TT
33442020-04-01 Tom Tromey <tom@tromey.com>
3345
3346 * value.h (value_literal_complex): Add comment.
3347 * valops.c (value_literal_complex): Refer to value.h.
3348
3638a098
TT
33492020-04-01 Tom Tromey <tom@tromey.com>
3350
3351 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
3352 (scalar_type): New rule, from typebase.
3353 (typebase): Use scalar_type. Recognize complex types.
3354 (field_name): Handle FLOAT_KEYWORD.
3355 (ident_tokens): Add _Complex and __complex__.
3356
c34e8714
TT
33572020-04-01 Tom Tromey <tom@tromey.com>
3358
3359 PR exp/25299:
3360 * valarith.c (promotion_type, complex_binop): New functions.
3361 (scalar_binop): Handle complex numbers. Use promotion_type.
3362 (value_pos, value_neg, value_complement): Handle complex numbers.
3363
fa649bb7
TT
33642020-04-01 Tom Tromey <tom@tromey.com>
3365
3366 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
3367 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
3368 (parse_number): Handle complex numbers.
3369
981c08ce
TT
33702020-04-01 Tom Tromey <tom@tromey.com>
3371
3372 * c-valprint.c (c_decorations): Change complex suffix to "i".
3373
4c99290d
TT
33742020-04-01 Tom Tromey <tom@tromey.com>
3375
3376 * valprint.c (generic_value_print_complex): Use accessors.
3377 * value.h (value_real_part, value_imaginary_part): Declare.
3378 * valops.c (value_real_part, value_imaginary_part): New
3379 functions.
3380 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
3381
5b930b45
TT
33822020-04-01 Tom Tromey <tom@tromey.com>
3383
3384 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
3385 (read_range_type): Update.
3386 * mdebugread.c (basic_type): Update.
3387 * go-lang.c (build_go_types): Use init_complex_type.
3388 * gdbtypes.h (struct main_type) <complex_type>: New member.
3389 (init_complex_type): Update.
3390 (arch_complex_type): Don't declare.
3391 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
3392 Make name if none given. Use alloc_type_copy. Look for cached
3393 complex type.
3394 (arch_complex_type): Remove.
3395 (gdbtypes_post_init): Use init_complex_type.
3396 * f-lang.c (build_fortran_types): Use init_complex_type.
3397 * dwarf2/read.c (read_base_type): Update.
3398 * d-lang.c (build_d_types): Use init_complex_type.
3399 * ctfread.c (read_base_type): Update.
3400
53cccef1
TBA
34012020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3402
3403 * infrun.c (stop_all_threads): Update assertion, plus when
3404 stopping threads, take into account that we might be trying
3405 to stop an all-stop target.
3406 (stop_waiting): Call 'stop_all_threads' if there exists a
3407 non-stop target.
3408
a0714d30
TBA
34092020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3410
3411 * target.h (exists_non_stop_target): New function declaration.
3412 * target.c (exists_non_stop_target): New function.
3413
60e22c1e
HD
34142020-04-01 Hannes Domani <ssbssa@yahoo.de>
3415
3416 PR gdb/24789
3417 * eval.c (is_integral_or_integral_reference): New function.
3418 (evaluate_subexp_standard): Allow integer references in
3419 pointer arithmetic.
3420
e139a727
TBA
34212020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3422
3423 * remote.c (remote_target::remote_parse_stop_reply): Remove the
3424 check for no ptid in the stop reply when the target is non-stop.
3425
e0802d59
TT
34262020-04-01 Tom Tromey <tromey@adacore.com>
3427
3428 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
3429 "name" parameter to rvalue reference. Initialize m_name_holder.
3430 <lookup_name_info>: New overloads.
3431 <name>: Return gdb::string_view.
3432 <c_str>: New method.
3433 <make_ignore_params>: Update.
3434 <search_name_hash>: Update.
3435 <language_lookup_name>: Return const char *.
3436 <m_name>: Change type.
3437 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
3438 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
3439 (lookup_name_info::match_any): Update.
3440 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
3441 Update.
3442 * minsyms.c (linkage_name_str): Update.
3443 * language.c (default_symbol_name_matcher): Update.
3444 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
3445 Update.
3446 * ada-lang.c (ada_fold_name): Change parameter to string_view.
3447 (ada_lookup_name_info::ada_lookup_name_info): Update.
3448 (literal_symbol_name_matcher): Update.
3449
8c072cb6
TT
34502020-04-01 Tom Tromey <tromey@adacore.com>
3451
3452 * psymtab.c (psymtab_search_name): Remove function.
3453 (psym_lookup_symbol): Create search name and lookup name here.
3454 (lookup_partial_symbol): Remove "name" parameter; add
3455 lookup_name.
3456 (psym_expand_symtabs_for_function): Update.
3457
6f29a534
TT
34582020-03-31 Joel Jones <joelkevinjones@gmail.com>
3459
3460 PR tui/25597:
3461 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
3462
af62665e
TT
34632020-03-31 Tom Tromey <tromey@adacore.com>
3464
3465 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
3466 memcpy.
3467
d1a89da5
NC
34682020-03-30 Nelson Chu <nelson.chu@sifive.com>
3469
3470 * features/riscv/32bit-csr.xml: Regenerated.
3471 * features/riscv/64bit-csr.xml: Regenerated.
3472
d8af9068
TT
34732020-03-30 Tom Tromey <tromey@adacore.com>
3474
3475 * ada-valprint.c (print_variant_part): Update.
3476 * ada-lang.h (ada_which_variant_applies): Update.
3477 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
3478 outer_valaddr parameters; replace with "outer" value parameter.
3479 (to_fixed_variant_branch_type): Update.
3480
227c0bf4
PFC
34812020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3482
3483 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
3484 <list>. Remove inclusion of observable.h.
3485 (PPC_DEBUG_CURRENT_VERSION): Move up define.
3486 (struct arch_lwp_info): New struct.
3487 (class ppc_linux_dreg_interface): New class.
3488 (struct ppc_linux_process_info): New struct.
3489 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
3490 <low_new_clone, low_forget_process, low_prepare_to_resume>
3491 <copy_thread_dreg_state, mark_thread_stale>
3492 <mark_debug_registers_changed, register_hw_breakpoint>
3493 <clear_hw_breakpoint, register_wp, clear_wp>
3494 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
3495 <num_memory_accesses, get_trigger_type>
3496 <create_watchpoint_request, hwdebug_point_cmp>
3497 <init_arch_lwp_info, get_arch_lwp_info>
3498 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
3499 methods.
3500 <struct ptid_hash>: New inner struct.
3501 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
3502 members.
3503 (saved_dabr_value, hwdebug_info, max_slots_number)
3504 (struct hw_break_tuple, struct thread_points, ppc_threads)
3505 (have_ptrace_hwdebug_interface)
3506 (hwdebug_find_thread_points_by_tid)
3507 (hwdebug_insert_point, hwdebug_remove_point): Remove.
3508 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
3509 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
3510 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
3511 use m_dreg_interface.
3512 (hwdebug_point_cmp): Change to...
3513 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
3514 reference arguments instead of pointers.
3515 (ppc_linux_nat_target::ranged_break_num_registers): Use
3516 m_dreg_interface.
3517 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
3518 m_dreg_interface. Call register_hw_breakpoint.
3519 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
3520 m_dreg_interface. Call clear_hw_breakpoint.
3521 (get_trigger_type): Change to...
3522 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
3523 comment.
3524 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
3525 use m_dreg_interface. Call register_hw_breakpoint.
3526 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
3527 use m_dreg_interface. Call clear_hw_breakpoint.
3528 (can_use_watchpoint_cond_accel): Change to...
3529 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
3530 method. Update comment, use m_dreg_interface and
3531 m_process_info.
3532 (calculate_dvc): Change to...
3533 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
3534 m_dreg_interface.
3535 (num_memory_accesses): Change to...
3536 (ppc_linux_nat_target::num_memory_accesses): ...this method.
3537 (check_condition): Change to...
3538 (ppc_linux_nat_target::check_condition): ...this method.
3539 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
3540 comment, use m_dreg_interface.
3541 (create_watchpoint_request): Change to...
3542 (ppc_linux_nat_target::create_watchpoint_request): ...this
3543 method. Use m_dreg_interface.
3544 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
3545 m_dreg_interface. Call register_hw_breakpoint or register_wp.
3546 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
3547 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
3548 (ppc_linux_nat_target::low_forget_process)
3549 (ppc_linux_nat_target::low_new_fork)
3550 (ppc_linux_nat_target::low_new_clone)
3551 (ppc_linux_nat_target::low_delete_thread)
3552 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
3553 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
3554 only call mark_thread_stale.
3555 (ppc_linux_thread_exit): Remove.
3556 (ppc_linux_nat_target::stopped_data_address): Change to...
3557 (ppc_linux_nat_target::low_stopped_data_address): This. Add
3558 comment, use m_dreg_interface and m_thread_hw_breakpoints.
3559 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
3560 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
3561 comment. Call low_stopped_data_address.
3562 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
3563 m_dreg_interface.
3564 (ppc_linux_nat_target::masked_watch_num_registers): Use
3565 m_dreg_interface.
3566 (ppc_linux_nat_target::copy_thread_dreg_state)
3567 (ppc_linux_nat_target::mark_thread_stale)
3568 (ppc_linux_nat_target::mark_debug_registers_changed)
3569 (ppc_linux_nat_target::register_hw_breakpoint)
3570 (ppc_linux_nat_target::clear_hw_breakpoint)
3571 (ppc_linux_nat_target::register_wp)
3572 (ppc_linux_nat_target::clear_wp)
3573 (ppc_linux_nat_target::init_arch_lwp_info)
3574 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
3575 (_initialize_ppc_linux_nat): Remove observer callback.
3576
4db10d8f
PFC
35772020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3578
3579 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
3580 (ppc_linux_nat_target::auxv_parse)
3581 (ppc_linux_nat_target::read_description)
3582 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3583 Move up.
3584
1310c1b0
PFC
35852020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3586
3587 * linux-nat.h (low_new_clone): New method.
3588 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
3589
69b037c3
SM
35902020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
3591
3592 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
3593 (dbx_expand_psymtab): ... this.
3594 (start_psymtab): Update.
3595 * mdebugread.c (psymtab_to_symtab_1): Rename to...
3596 (mdebug_expand_psymtab): ... this.
3597 (parse_partial_symbols): Update.
3598 (new_psymtab): Update.
3599 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
3600 (xcoff_expand_psymtab): ... this.
3601 (xcoff_start_psymtab): Update.
3602
48993951
SM
36032020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
3604
3605 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
3606 <expand_dependencies>: ... this.
3607 * psymtab.c (partial_symtab::read_dependencies): Rename to...
3608 (partial_symtab::expand_dependencies): ... this.
3609 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
3610 Update.
3611 (dwarf2_psymtab::expand_psymtab): Update.
3612 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
3613 * mdebugread.c (psymtab_to_symtab_1): Update.
3614 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3615
3ad83046
SM
36162020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
3617
3618 * psympriv.h (discard_psymtab): Remove.
3619 * dbxread.c (dbx_end_psymtab): Update.
3620 * xcoffread.c (xcoff_end_psymtab): Update.
3621
4d1b9ab6
TT
36222020-03-28 Tom Tromey <tom@tromey.com>
3623
3624 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
3625 comment.
3626
f1749218
TT
36272020-03-28 Tom Tromey <tom@tromey.com>
3628
3629 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
3630
ebea7626
HD
36312020-03-27 Hannes Domani <ssbssa@yahoo.de>
3632
3633 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
3634
a879b4d5
JB
36352020-03-26 John Baldwin <jhb@FreeBSD.org>
3636
3637 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
3638
0826b30a
TT
36392020-03-26 Tom Tromey <tom@tromey.com>
3640
3641 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
3642 (mark_common_block_symbol_computed, read_tag_string_type)
3643 (attr_to_dynamic_prop, read_subrange_type): Update.
3644 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
3645 to be methods on struct attribute.
3646 (skip_one_die, process_imported_unit_die, read_namespace_alias)
3647 (read_call_site_scope, partial_die_info::read)
3648 (partial_die_info::read, lookup_die_type, follow_die_ref):
3649 Update.
3650 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
3651 from dwarf2_get_ref_die_offset.
3652 (attribute::constant_value): New method, from
3653 dwarf2_get_attr_constant_value.
3654 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
3655 Declare method.
3656 <constant_value>: New method.
3657
2b2558bf
TT
36582020-03-26 Tom Tromey <tom@tromey.com>
3659
3660 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
3661 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
3662 (dwarf_type_encoding_name): Move to stringify.c.
3663 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
3664 * dwarf2/stringify.c: New file.
3665 * dwarf2/stringify.h: New file.
3666
eeb64781
TT
36672020-03-26 Tom Tromey <tom@tromey.com>
3668
3669 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
3670 Rewrite.
3671
a39fdb41
TT
36722020-03-26 Tom Tromey <tom@tromey.com>
3673
3674 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
3675 methods.
3676 * dwarf2/read.c (lookup_addr_base): Move to die.h.
3677 (lookup_ranges_base): Likewise.
3678 (read_cutu_die_from_dwo, read_full_die_1): Update.
3679
436c571c
TT
36802020-03-26 Tom Tromey <tom@tromey.com>
3681
3682 * dwarf2/read.c (read_import_statement, read_file_scope)
3683 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
3684 (read_lexical_block_scope, read_call_site_scope)
3685 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
3686 (handle_struct_member_die, process_structure_scope)
3687 (update_enumeration_type_from_children)
3688 (process_enumeration_scope, read_array_type, read_common_block)
3689 (read_namespace, read_module, read_subroutine_type): Update.
3690 (sibling_die): Remove.
3691
052c8bb8
TT
36922020-03-26 Tom Tromey <tom@tromey.com>
3693
3694 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
3695 (build_type_psymtabs_reader, read_structure_type)
3696 (read_enumeration_type, read_full_die_1): Update.
3697 (dwarf2_attr_no_follow): Move to die.h.
3698 * dwarf2/die.h (struct die_info) <attr>: New method.
3699
2b24b6e4
TT
37002020-03-26 Tom Tromey <tom@tromey.com>
3701
3702 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
3703 <base_address>: Now an optional.
3704 (dwarf2_find_base_address, dwarf2_rnglists_process)
3705 (dwarf2_ranges_process, fill_in_loclist_baton)
3706 (dwarf2_symbol_mark_computed): Update.
3707
c2d50fd0
TT
37082020-03-26 Tom Tromey <tom@tromey.com>
3709
3710 * dwarf2/read.c (struct die_info): Move to die.h.
3711 * dwarf2/die.h: New file.
3712
0df7ad3a
TT
37132020-03-26 Tom Tromey <tom@tromey.com>
3714
3715 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
3716 * dwarf2/read.c
3717 (dwarf2_statement_list_fits_in_line_number_section_complaint):
3718 Move to line-header.c.
3719 (read_checked_initial_length_and_offset, read_formatted_entries):
3720 Likewise.
3721 (dwarf_decode_line_header): Split into two.
3722 * dwarf2/line-header.c
3723 (dwarf2_statement_list_fits_in_line_number_section_complaint):
3724 Move from read.c.
3725 (read_checked_initial_length_and_offset, read_formatted_entries):
3726 Likewise.
3727 (dwarf_decode_line_header): New function, split from read.c.
3728
86c0bb4c
TT
37292020-03-26 Tom Tromey <tom@tromey.com>
3730
3731 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
3732 Declare method.
3733 * dwarf2/read.c (read_attribute_value): Update.
3734 (dwarf2_per_objfile::read_line_string): Rename from
3735 read_indirect_line_string.
3736 (read_formatted_entries): Update.
3737
2ef46c2f
TT
37382020-03-26 Tom Tromey <tom@tromey.com>
3739
3740 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
3741 variable.
3742
4f9c1eda
TT
37432020-03-26 Tom Tromey <tom@tromey.com>
3744
3745 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
3746 const.
3747 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
3748 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
3749 parameter const.
3750
5a0e026f
TT
37512020-03-26 Tom Tromey <tom@tromey.com>
3752
3753 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
3754 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
3755 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
3756 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
3757
8844c11b
TT
37582020-03-26 Tom Tromey <tom@tromey.com>
3759
3760 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
3761 file_names_size, file_full_name, file_file_name>: Use const.
3762 <file_name_at, file_names>: Add const overload.
3763 * dwarf2/line-header.c (line_header::file_file_name)
3764 (line_header::file_full_name): Update.
3765
c90ec28a
TT
37662020-03-26 Tom Tromey <tom@tromey.com>
3767
3768 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
3769 (macro_start_file, consume_improper_spaces)
3770 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
3771 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
3772 (dwarf_decode_macros): Move to macro.c.
3773 * dwarf2/macro.c: New file.
3774 * dwarf2/macro.h: New file.
3775 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
3776
4f44ae6c
TT
37772020-03-26 Tom Tromey <tom@tromey.com>
3778
3779 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
3780 method.
3781 * dwarf2/section.c: New method. From
3782 read_indirect_string_at_offset_from.
3783 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
3784 (read_indirect_string_at_offset_from): Move to section.c.
3785 (read_indirect_string_at_offset): Rewrite.
3786 (read_indirect_line_string_at_offset): Remove.
3787 (read_indirect_string, read_indirect_line_string)
3788 (dwarf_decode_macro_bytes): Update.
3789
a0194fa8
TT
37902020-03-26 Tom Tromey <tom@tromey.com>
3791
3792 * dwarf2/section.h (struct dwarf2_section_info)
3793 <overload_complaint>: Declare.
3794 (dwarf2_section_buffer_overflow_complaint): Don't declare.
3795 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
3796 Rename from dwarf2_section_buffer_overflow_complaint.
3797 * dwarf2/read.c (skip_one_die, partial_die_info::read)
3798 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
3799
3d27bbdb
TT
38002020-03-26 Tom Tromey <tom@tromey.com>
3801
3802 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
3803 Declare.
3804 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
3805 Move from read.c.
3806 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
3807 to section.c.
3808
9eac9650
TT
38092020-03-26 Tom Tromey <tom@tromey.com>
3810
3811 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
3812
bf80d710
TT
38132020-03-26 Tom Tromey <tom@tromey.com>
3814
3815 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
3816 "builder".
3817 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
3818 parameter.
3819 (dwarf_decode_macros): Update.
3820
0314b390
TT
38212020-03-26 Tom Tromey <tom@tromey.com>
3822
3823 * dwarf2/read.c (read_attribute_value): Update.
3824 (read_indirect_string_from_dwz): Move to dwz.c; change into
3825 method.
3826 (dwarf_decode_macro_bytes): Update.
3827 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
3828 * dwarf2/dwz.c: New file.
3829 * Makefile.in (COMMON_SFILES): Add dwz.c.
3830
9fda78b6
TT
38312020-03-26 Tom Tromey <tom@tromey.com>
3832
3833 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
3834 * dwarf2/read.c: Add include.
3835 * dwarf2/index-write.c: Add include.
3836 * dwarf2/index-cache.c: Add include.
3837 * dwarf2/dwz.h: New file.
3838
33aa3c10
TT
38392020-03-25 Tom Tromey <tom@tromey.com>
3840
3841 * compile/compile-object-load.c (get_out_value_type): Mention
3842 correct symbol name in error message.
3843
d503b685
HD
38442020-03-25 Hannes Domani <ssbssa@yahoo.de>
3845
3846 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
3847
7b1eff95
TV
38482020-03-25 Tom de Vries <tdevries@suse.de>
3849
3850 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
3851 * symmisc.c (dump_symtab_1): Print user and includes fields.
3852 (maintenance_info_symtabs): Same.
3853
dd895392
AB
38542020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
3855
3856 PR gdb/25534
3857 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
3858 (riscv_regcache_cooked_write): New function.
3859 (riscv_push_dummy_call): Use new function.
3860 (riscv_return_value): Likewise.
3861
5ab2fbf1
SM
38622020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
3863
3864 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
3865 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
3866 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
3867 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
3868 * infrun.c (follow_fork): Likewise.
3869 (follow_fork_inferior): Likewise.
3870 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
3871 * linux-nat.h (class linux_nat_target): Likewise.
3872 * remote.c (class remote_target) <follow_fork>: Likewise.
3873 (remote_target::follow_fork): Likewise.
3874 * target-delegates.c: Re-generate.
3875 * target.c (default_follow_fork): Likewise.
3876 (target_follow_fork): Likewise.
3877 * target.h (struct target_ops) <follow_fork>: Likewise.
3878 (target_follow_fork): Likewise.
3879
a64fafb5
TV
38802020-03-24 Tom de Vries <tdevries@suse.de>
3881
3882 * psymtab.c (maintenance_info_psymtabs): Print user field.
3883
fe26d3a3
TT
38842020-03-20 Tom Tromey <tromey@adacore.com>
3885
3886 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
3887 const.
3888 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
3889 const.
3890
c884cc46
SM
38912020-03-20 Simon Marchi <simon.marchi@efficios.com>
3892
3893 * ptrace.m4: Don't check for ptrace declaration.
3894 * config.in: Re-generate.
3895 * configure: Re-generate.
3896 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
3897 not defined.
3898
1ff700c2
KR
38992020-03-20 Kamil Rytarowski <n54@gmx.com>
3900
3901 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
3902 `PTRACE_TYPE_RET'.
3903 * i386-bsd-nat.c (gdb_ptrace): Likewise.
3904 * sparc-nat.c (gdb_ptrace): Likewise.
3905 * x86-bsd-nat.c (gdb_ptrace): Likewise.
3906
f7d4f0b1
TT
39072020-03-20 Tom Tromey <tromey@adacore.com>
3908
3909 * c-exp.y (lex_one_token): Fix assert.
3910
f67210ff
TT
39112020-03-20 Tom Tromey <tromey@adacore.com>
3912
3913 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
3914 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
3915 strncpy call.
3916
1773be9e
TT
39172020-03-20 Tom Tromey <tromey@adacore.com>
3918
3919 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
3920
70304be9
TT
39212020-03-20 Tom Tromey <tromey@adacore.com>
3922
3923 * ada-valprint.c (print_variant_part): Remove parameters; switch
3924 to value-based API.
3925 (print_field_values): Likewise.
3926 (ada_val_print_struct_union): Likewise.
3927 (ada_value_print_1): Update.
3928
9faa006d
KR
39292020-03-20 Kamil Rytarowski <n54@gmx.com>
3930
3931 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
3932 nbsd_nat_target instead of inf_ptrace_target.
3933 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
3934 nbsd_nat_target.
3935
4a90f062
KR
39362020-03-20 Kamil Rytarowski <n54@gmx.com>
3937
3938 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
3939 it to the ptrace call.
3940 * (store_registers): Likewise.
3941
39422020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
3943
3944 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
3945 it to the ptrace call.
3946 * (store_registers): Likewise.
3947
2d07da27
LM
39482020-03-19 Luis Machado <luis.machado@linaro.org>
3949
3950 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
3951 valid, fetch vg value from ptrace.
3952
f09db380
KR
39532020-03-19 Kamil Rytarowski <n54@gmx.com>
3954 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
3955 * inf-ptrace.c: Likewise.
3956 * (gdb_ptrace): Add.
3957 * (inf_ptrace_target::resume): Update.
3958 * (inf_ptrace_target::xfer_partial): Likewise.
3959 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
3960 * (inf_ptrace_peek_poke): Update.
3961
fcc7376e
KR
39622020-03-19 Kamil Rytarowski <n54@gmx.com>
3963
3964 * x86-bsd-nat.c (gdb_ptrace): New.
3965 * (x86bsd_dr_set): Add new argument `ptid'.
3966 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
3967 x86bsd_dr_set_addr): Update.
3968
cada5fc9
AB
39692020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
3970
3971 * remote.c (remote_target::process_stop_reply): Handle events for
3972 all threads differently.
3973
19a2740f
AB
39742020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
3975
3976 * completer.c (completion_tracker::remove_completion): Define new
3977 function.
3978 * completer.h (completion_tracker::remove_completion): Declare new
3979 function.
3980 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
3981 when adding a C++ function symbol.
3982
724fd9ba
AB
39832020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
3984
3985 * completer.c (completion_tracker::completion_hash_entry): Define
3986 new class.
3987 (advance_to_filename_complete_word_point): Call
3988 recompute_lowest_common_denominator.
3989 (completion_tracker::completion_tracker): Call discard_completions
3990 to setup the hash table.
3991 (completion_tracker::discard_completions): Allow for being called
3992 from the constructor, pass new equal function, and element deleter
3993 when constructing the hash table. Initialise new class member
3994 variables.
3995 (completion_tracker::maybe_add_completion): Remove use of
3996 m_entries_vec, and store more information into m_entries_hash.
3997 (completion_tracker::recompute_lcd_visitor): New function, most
3998 content taken from...
3999 (completion_tracker::recompute_lowest_common_denominator):
4000 ...here, this now just visits each item in the hash calling the
4001 above visitor.
4002 (completion_tracker::build_completion_result): Remove use of
4003 m_entries_vec, call recompute_lowest_common_denominator.
4004 * completer.h (completion_tracker::have_completions): Remove use
4005 of m_entries_vec.
4006 (completion_tracker::completion_hash_entry): Declare new class.
4007 (completion_tracker::recompute_lowest_common_denominator): Change
4008 function signature.
4009 (completion_tracker::recompute_lcd_visitor): Declare new function.
4010 (completion_tracker::m_entries_vec): Delete.
4011 (completion_tracker::m_entries_hash): Initialize to NULL.
4012 (completion_tracker::m_lowest_common_denominator_valid): New
4013 member variable.
4014 (completion_tracker::m_lowest_common_denominator_max_length): New
4015 member variable.
4016
5a82b8a1
KR
40172020-03-17 Kamil Rytarowski <n54@gmx.com>
4018
4019 * regformats/regdef.h: Put reg in gdb namespace.
4020
fb516a69
KR
40212020-03-17 Kamil Rytarowski <n54@gmx.com>
4022
4023 * i386-bsd-nat.c (gdb_ptrace): New.
4024 * (i386bsd_fetch_inferior_registers,
4025 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
4026 * (i386bsd_fetch_inferior_registers,
4027 i386bsd_store_inferior_registers) Use gdb_ptrace.
4028
1c0aa1fb
KR
40292020-03-17 Kamil Rytarowski <n54@gmx.com>
4030
4031 * amd64-bsd-nat.c (gdb_ptrace): New.
4032 * (amd64bsd_fetch_inferior_registers,
4033 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
4034 * (amd64bsd_fetch_inferior_registers,
4035 amd64bsd_store_inferior_registers) Use gdb_ptrace.
4036
5ccd2fb7
KR
40372020-03-17 Kamil Rytarowski <n54@gmx.com>
4038
4039 * user-regs.c (user_reg::read): Rename to...
4040 (user_reg::xread): ...this.
4041 * (append_user_reg): Rename argument `read' to `xread'.
4042 * (user_reg_add_builtin): Likewise.
4043 * (user_reg_add): Likewise.
4044 * (value_of_user_reg): Likewise.
4045
2108a63a
KR
40462020-03-17 Kamil Rytarowski <n54@gmx.com>
4047
4048 * sparc-nat.c (gdb_ptrace): New.
4049 * sparc-nat.c (sparc_fetch_inferior_registers)
4050 (sparc_store_inferior_registers) Remove obsolete comment.
4051 * sparc-nat.c (sparc_fetch_inferior_registers)
4052 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
4053 * sparc-nat.c (sparc_fetch_inferior_registers)
4054 (sparc_store_inferior_registers) Use gdb_ptrace.
4055
a225c9a8
KR
40562020-03-17 Kamil Rytarowski <n54@gmx.com>
4057
4058 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
4059 it to the ptrace call.
4060 * sh-nbsd-nat.c (store_registers): Likewise.
4061
98097623
KR
40622020-03-17 Kamil Rytarowski <n54@gmx.com>
4063
4064 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
4065 nbsd_nat_target instead of inf_ptrace_target.
4066 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
4067 nbsd_nat_target.
4068
9e38d619
KR
40692020-03-17 Kamil Rytarowski <n54@gmx.com>
4070
4071 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
4072
a2ecbe9f
KR
40732020-03-17 Kamil Rytarowski <n54@gmx.com>
4074
4075 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
4076 <sys/sysctl.h>.
4077 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
4078
58990295
TV
40792020-03-17 Tom de Vries <tdevries@suse.de>
4080
4081 PR gdb/23710
4082 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
4083 fields.
4084 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
4085 fields.
4086 (process_imported_unit_die): Skip import of c++ CUs.
4087
771dd3a8
TT
40882020-03-16 Tom Tromey <tom@tromey.com>
4089
4090 * p-valprint.c (pascal_object_print_value): Initialize
4091 base_value.
4092
817a7585
AK
40932020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
4094 Shahab Vahedi <shahab@synopsys.com>
4095
4096 * Makefile.in: Add arch/arc.o
4097 * configure.tgt: Likewise.
4098 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
4099 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 4100 (arc_read_description): New function to cache target descriptions.
817a7585
AK
4101 * arc-tdep.h (arc_read_description): Add proto type.
4102 * arch/arc.c: New file.
4103 * arch/arc.h: Likewise.
4104 * features/Makefile: Replace old target descriptions with new.
4105 * features/arc-arcompact.c: Remove.
4106 * features/arc-arcompact.xml: Likewise.
4107 * features/arc-v2.c: Likewise
4108 * features/arc-v2.xml: Likewise
4109 * features/arc/aux-arcompact.xml: New file.
4110 * features/arc/aux-v2.xml: Likewise.
4111 * features/arc/core-arcompact.xml: Likewise.
4112 * features/arc/core-v2.xml: Likewise.
4113 * features/arc/aux-arcompact.c: Generate.
4114 * features/arc/aux-v2.c: Likewise.
4115 * features/arc/core-arcompact.c: Likewise.
4116 * features/arc/core-v2.c: Likewise.
4117 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
4118
67430cd0
TT
41192020-03-16 Tom Tromey <tromey@adacore.com>
4120
4121 PR gdb/25663:
4122 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
4123 putting value into bcache.
4124
30efb6c7
SM
41252020-03-16 Simon Marchi <simon.marchi@efficios.com>
4126
4127 PR gdb/21500
4128 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
4129 to...
4130 (amd64_windows_init_abi_common): ... this. Don't set size of
4131 long type.
4132 (amd64_windows_init_abi): New function.
4133 (amd64_cygwin_init_abi): New function.
4134 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
4135 the Cygwin OS ABI.
4136 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
4137 comment.
4138
8db52437
SM
41392020-03-16 Simon Marchi <simon.marchi@efficios.com>
4140
4141 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
4142 * windows-tdep.c (CYGWIN_DLL_NAME): New.
4143 (pe_import_directory_entry): New struct type.
4144 (is_linked_with_cygwin_dll): New function.
4145 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
4146 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
4147 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
4148
5982a56a
SM
41492020-03-16 Simon Marchi <simon.marchi@efficios.com>
4150
4151 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
4152 i386_cygwin_core_osabi_sniffer.
4153
7a1998df
SM
41542020-03-16 Simon Marchi <simon.marchi@efficios.com>
4155
4156 * i386-cygwin-tdep.c: Rename to...
4157 * i386-windows-tdep.c: ... this.
4158 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
4159 i386-windows-tdep.c.
4160 * configure.tgt: Likewise.
4161
053205cc
SM
41622020-03-16 Simon Marchi <simon.marchi@efficios.com>
4163
4164 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
4165 * osabi.c (gdb_osabi_names): Add "Windows".
4166 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
4167 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
4168 (i386_cygwin_core_osabi_sniffer): New function, extracted from
4169 i386_cygwin_osabi_sniffer.
4170 (_initialize_i386_cygwin_tdep): Register OS ABI
4171 GDB_OSABI_WINDOWS for i386.
4172 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
4173 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
4174 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
4175 for x86-64.
4176 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
4177 when the target matches '*-*-mingw*'.
4178
fe4b2ee6
SM
41792020-03-16 Simon Marchi <simon.marchi@efficios.com>
4180
4181 * defs.h (enum gdb_osabi): Move to...
4182 * osabi.h (enum gdb_osabi): ... here.
4183 * gdbarch.sh: Include osabi.h in gdbarch.h.
4184 * gdbarch.h: Re-generate.
4185
cb9b645d
SM
41862020-03-16 Simon Marchi <simon.marchi@efficios.com>
4187
4188 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
4189 function.
4190 (_initialize_amd64_windows_tdep): Register osabi sniffer.
4191
3293bbaf
TT
41922020-03-14 Tom Tromey <tom@tromey.com>
4193
4194 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
4195 for C++.
4196 (c_type_print_modifier): Likewise. Add "language" parameter.
4197 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
4198 (c_type_print_base_1): Update.
4199 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
4200 constants.
4201 * type-stack.c (type_stack::insert): Handle tp_atomic and
4202 tp_restrict.
4203 (type_stack::follow_type_instance_flags): Likewise.
4204 (type_stack::follow_types): Likewise. Merge type-following code.
4205 * c-exp.y (RESTRICT, ATOMIC): New tokens.
4206 (space_identifier, cv_with_space_id)
4207 (const_or_volatile_or_space_identifier_noopt)
4208 (const_or_volatile_or_space_identifier): Remove.
4209 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
4210 rules.
4211 (ptr_operator, typebase): Update.
4212 (enum token_flag) <FLAG_C>: New constant.
4213 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
4214 "_Atomic".
4215 (lex_one_token): Handle FLAG_C.
4216
154151a6
KR
42172020-03-14 Kamil Rytarowski <n54@gmx.com>
4218
4219 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
4220 it to the ptrace call.
4221 * m68k-bsd-nat.c (store_registers): Likewise.
4222
bc107784
KR
42232020-03-14 Kamil Rytarowski <n54@gmx.com>
4224
4225 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
4226 gdb_byte *.
4227 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
4228 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
4229 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
4230
01a80117
KR
42312020-03-14 Kamil Rytarowski <n54@gmx.com>
4232
4233 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
4234 nbsd_nat_target instead of inf_ptrace_target.
4235 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
4236 nbsd_nat_target.
4237
f90280ca
KR
42382020-03-14 Kamil Rytarowski <n54@gmx.com>
4239
4240 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
4241 register_t.
4242
6def66f1
KR
42432020-03-14 Kamil Rytarowski <n54@gmx.com>
4244
4245 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
4246 it to the ptrace call.
4247 * alpha-bsd-nat.c (store_registers): Likewise.
4248
66eaca97
KR
42492020-03-14 Kamil Rytarowski <n54@gmx.com>
4250
4251 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
4252 includes.
4253 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
4254 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
4255 fill_fpregset): Likewise.
4256
4fed520b
KR
42572020-03-14 Kamil Rytarowski <n54@gmx.com>
4258
4259 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
4260 nbsd_nat_target instead of inf_ptrace_target.
4261 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
4262 nbsd_nat_target.
4263
2190cf06
KR
42642020-03-14 Kamil Rytarowski <n54@gmx.com>
4265
4266 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
4267 register_t.
4268
75c56d3d
KR
42692020-03-14 Kamil Rytarowski <n54@gmx.com>
4270
4271 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
4272 it to the ptrace call.
4273 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
4274 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
4275 * arm-nbsd-nat.c (store_register): Likewise.
4276 * arm-nbsd-nat.c (store_regs): Likewise.
4277 * arm-nbsd-nat.c (store_fp_register): Likewise.
4278 * arm-nbsd-nat.c (store_fp_regs): Likewise.
4279
6018d381
KR
42802020-03-14 Kamil Rytarowski <n54@gmx.com>
4281
4282 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
4283 nbsd_nat_target instead of inf_ptrace_target.
4284 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
4285 nbsd_nat_target.
4286
013f99f0
KR
42872020-03-14 Kamil Rytarowski <n54@gmx.com>
4288
4289 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
4290 it to the ptrace call.
4291 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
4292
12753073
KR
42932020-03-14 Kamil Rytarowski <n54@gmx.com>
4294
6227b330
KR
4295 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
4296 it to the ptrace call.
4297 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
4298
42992020-03-14 Kamil Rytarowski <n54@gmx.com>
4300
4301 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
4302 gdb_byte *.
12753073
KR
4303 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
4304
d5be5fa4
KR
43052020-03-14 Kamil Rytarowski <n54@gmx.com>
4306
4307 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
4308 instead of inf_ptrace_target.
4309 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
4310 nbsd_nat_target.
4311
8110f842
KR
43122020-03-14 Kamil Rytarowski <n54@gmx.com>
4313
4314 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
4315 register_t.
4316
52feded7
KR
43172020-03-14 Kamil Rytarowski <n54@gmx.com>
4318
4319 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
4320 register_t.
4321
25567eee
KR
43222020-03-14 Kamil Rytarowski <n54@gmx.com>
4323
4324 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
4325 register_t.
4326
426a9c18
TT
43272020-03-13 Tom Tromey <tom@tromey.com>
4328
4329 * value.h (val_print): Don't declare.
4330 * valprint.h (val_print_array_elements)
4331 (val_print_scalar_formatted, generic_val_print): Don't declare.
4332 * valprint.c (generic_val_print_array): Take a struct value.
4333 (generic_val_print_ptr, generic_val_print_memberptr)
4334 (generic_val_print_bool, generic_val_print_int)
4335 (generic_val_print_char, generic_val_print_complex)
4336 (generic_val_print): Remove.
4337 (generic_value_print): Update.
4338 (do_val_print): Remove unused parameters. Don't call
4339 la_val_print.
4340 (val_print): Remove.
4341 (common_val_print): Update. Don't call value_check_printable.
4342 (val_print_scalar_formatted, val_print_array_elements): Remove.
4343 * rust-lang.c (rust_val_print): Remove.
4344 (rust_language_defn): Update.
4345 * p-valprint.c (pascal_val_print): Remove.
4346 (pascal_value_print_inner): Update.
4347 (pascal_object_print_val_fields, pascal_object_print_val):
4348 Remove.
4349 (pascal_object_print_static_field): Update.
4350 * p-lang.h (pascal_val_print): Don't declare.
4351 * p-lang.c (pascal_language_defn): Update.
4352 * opencl-lang.c (opencl_language_defn): Update.
4353 * objc-lang.c (objc_language_defn): Update.
4354 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
4355 * m2-lang.h (m2_val_print): Don't declare.
4356 * m2-lang.c (m2_language_defn): Update.
4357 * language.h (struct language_defn) <la_val_print>: Remove.
4358 * language.c (unk_lang_value_print_inner): Rename. Change
4359 argument types.
4360 (unknown_language_defn, auto_language_defn): Update.
4361 * go-valprint.c (go_val_print): Remove.
4362 * go-lang.h (go_val_print): Don't declare.
4363 * go-lang.c (go_language_defn): Update.
4364 * f-valprint.c (f_val_print): Remove.
4365 * f-lang.h (f_value_print): Don't declare.
4366 * f-lang.c (f_language_defn): Update.
4367 * d-valprint.c (d_val_print): Remove.
4368 * d-lang.h (d_value_print): Don't declare.
4369 * d-lang.c (d_language_defn): Update.
4370 * cp-valprint.c (cp_print_value_fields)
4371 (cp_print_value_fields_rtti, cp_print_value): Remove.
4372 (cp_print_static_field): Update.
4373 * c-valprint.c (c_val_print_array, c_val_print_ptr)
4374 (c_val_print_struct, c_val_print_union, c_val_print_int)
4375 (c_val_print_memberptr, c_val_print): Remove.
4376 * c-lang.h (c_val_print_array, cp_print_value_fields)
4377 (cp_print_value_fields_rtti): Don't declare.
4378 * c-lang.c (c_language_defn, cplus_language_defn)
4379 (asm_language_defn, minimal_language_defn): Update.
4380 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
4381 (ada_val_print_enum): Take a struct value.
4382 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
4383 (ada_val_print): Remove.
4384 (ada_value_print_1): Update.
4385 (printable_val_type): Remove.
4386 * ada-lang.h (ada_val_print): Don't declare.
4387 * ada-lang.c (ada_language_defn): Update.
4388
42331a1e
TT
43892020-03-13 Tom Tromey <tom@tromey.com>
4390
4391 * valprint.c (do_val_print): Update.
4392 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
4393 a struct value.
4394 (value_to_value_object_no_release): Declare.
4395 * python/py-value.c (value_to_value_object_no_release): New
4396 function.
4397 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
4398 struct value.
4399 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
4400 function.
4401 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
4402 a struct value.
4403 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
4404 Declare.
4405 (gdbscm_apply_val_pretty_printer): Take a struct value.
4406 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
4407 value.
4408 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
4409 value.
4410 * extension-priv.h (struct extension_language_ops)
4411 <apply_val_pretty_printer>: Take a struct value.
4412 * cp-valprint.c (cp_print_value): Create a struct value.
4413 (cp_print_value): Update.
4414
3a916a97
TT
44152020-03-13 Tom Tromey <tom@tromey.com>
4416
4417 * ada-valprint.c (print_field_values): Call common_val_print.
4418
b59eac37
TT
44192020-03-13 Tom Tromey <tom@tromey.com>
4420
4421 * ada-valprint.c (val_print_packed_array_elements): Remove
4422 bitoffset and val parameters. Call common_val_print.
4423 (ada_val_print_string): Remove offset, address, and original_value
4424 parameters.
4425 (ada_val_print_array): Update.
4426 (ada_value_print_array): New function.
4427 (ada_value_print_1): Call it.
4428
03371129
TT
44292020-03-13 Tom Tromey <tom@tromey.com>
4430
4431 * ada-valprint.c (ada_value_print): Use common_val_print.
4432
2e088f8b
TT
44332020-03-13 Tom Tromey <tom@tromey.com>
4434
4435 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
4436
39ef85a8
TT
44372020-03-13 Tom Tromey <tom@tromey.com>
4438
4439 * ada-valprint.c (ada_value_print_num): New function.
4440 (ada_value_print_1): Use it.
4441
b9fa6e07
TT
44422020-03-13 Tom Tromey <tom@tromey.com>
4443
4444 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
4445
416595d6
TT
44462020-03-13 Tom Tromey <tom@tromey.com>
4447
4448 * ada-valprint.c (ada_value_print_ptr): New function.
4449 (ada_value_print_1): Use it.
4450
5b5e15ec
TT
44512020-03-13 Tom Tromey <tom@tromey.com>
4452
4453 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
4454 call common_val_print.
4455 (ada_val_print_1): Update.
4456 (ada_value_print_1): New function.
4457 (ada_value_print_inner): Rewrite.
4458
fbf54e75
TT
44592020-03-13 Tom Tromey <tom@tromey.com>
4460
4461 * cp-valprint.c (cp_print_value_fields): Update.
4462 (cp_print_value): New function.
4463
64b653ca
TT
44642020-03-13 Tom Tromey <tom@tromey.com>
4465
4466 * m2-valprint.c (m2_value_print_inner): Use
4467 cp_print_value_fields.
4468 * cp-valprint.c (cp_print_value_fields): New function.
4469 * c-valprint.c (c_value_print_struct): New function.
4470 (c_value_print_inner): Use c_value_print_struct.
4471 * c-lang.h (cp_print_value_fields): Declare.
4472
6999f067
TT
44732020-03-13 Tom Tromey <tom@tromey.com>
4474
4475 * c-valprint.c (c_value_print_array): New function.
4476 (c_value_print_inner): Use it.
4477
ce80b8bd
TT
44782020-03-13 Tom Tromey <tom@tromey.com>
4479
4480 * c-valprint.c (c_value_print_memberptr): New function.
4481 (c_value_print_inner): Use it.
4482
2faac269
TT
44832020-03-13 Tom Tromey <tom@tromey.com>
4484
4485 * c-valprint.c (c_value_print_int): New function.
4486 (c_value_print_inner): Use it.
4487
da3e2c29
TT
44882020-03-13 Tom Tromey <tom@tromey.com>
4489
4490 * c-valprint.c (c_value_print_ptr): New function.
4491 (c_value_print_inner): Use it.
4492
50836231
TT
44932020-03-13 Tom Tromey <tom@tromey.com>
4494
4495 * c-valprint.c (c_value_print_inner): Rewrite.
4496
4f412b6e
TT
44972020-03-13 Tom Tromey <tom@tromey.com>
4498
4499 * valprint.c (generic_value_print_complex): New function.
4500 (generic_value_print): Use it.
4501
f5354008
TT
45022020-03-13 Tom Tromey <tom@tromey.com>
4503
4504 * valprint.c (generic_val_print_float): Don't call
4505 val_print_scalar_formatted.
4506 (generic_val_print, generic_value_print): Update.
4507
3eec3b05
TT
45082020-03-13 Tom Tromey <tom@tromey.com>
4509
4510 * valprint.c (generic_value_print_char): New function
4511 (generic_value_print): Use it.
4512
fdddfccb
TT
45132020-03-13 Tom Tromey <tom@tromey.com>
4514
4515 * valprint.c (generic_value_print_int): New function.
4516 (generic_value_print): Use it.
4517
6dde7521
TT
45182020-03-13 Tom Tromey <tom@tromey.com>
4519
4520 * valprint.c (generic_value_print_bool): New function.
4521 (generic_value_print): Use it.
4522
4112d2e6
TT
45232020-03-13 Tom Tromey <tom@tromey.com>
4524
4525 * valprint.c (generic_val_print_func): Simplify.
4526 (generic_val_print, generic_value_print): Update.
4527
65786af6
TT
45282020-03-13 Tom Tromey <tom@tromey.com>
4529
4530 * valprint.c (generic_val_print_flags): Remove.
4531 (generic_val_print, generic_value_print): Update.
4532 (val_print_type_code_flags): Add original_value parameter.
4533
40f3ce18
TT
45342020-03-13 Tom Tromey <tom@tromey.com>
4535
4536 * valprint.c (generic_val_print): Update.
4537 (generic_value_print): Update.
4538 * valprint.c (generic_val_print_enum): Don't call
4539 val_print_scalar_formatted.
4540
2a5b130b
TT
45412020-03-13 Tom Tromey <tom@tromey.com>
4542
4543 * valprint.c (generic_value_print): Call generic_value_print_ptr.
4544 * valprint.c (generic_value_print_ptr): New function.
4545
abc66ce9
TT
45462020-03-13 Tom Tromey <tom@tromey.com>
4547
4548 * valprint.c (generic_value_print): Rewrite.
4549
07a32858
TT
45502020-03-13 Tom Tromey <tom@tromey.com>
4551
4552 * p-valprint.c (pascal_object_print_value_fields)
4553 (pascal_object_print_value): New functions.
4554
64d64d3a
TT
45552020-03-13 Tom Tromey <tom@tromey.com>
4556
4557 * p-valprint.c (pascal_value_print_inner): Rewrite.
4558
6a95a1f5
TT
45592020-03-13 Tom Tromey <tom@tromey.com>
4560
4561 * f-valprint.c (f_value_print_innner): Rewrite.
4562
59fcdac6
TT
45632020-03-13 Tom Tromey <tom@tromey.com>
4564
4565 * m2-valprint.c (m2_print_unbounded_array): New overload.
4566 (m2_print_unbounded_array): Update.
4567 (m2_print_array_contents): Take a struct value.
4568 (m2_value_print_inner): Rewrite.
4569
d133c3e1
TT
45702020-03-13 Tom Tromey <tom@tromey.com>
4571
4572 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
4573 (d_value_print_inner): New function.
4574 * d-lang.h (d_value_print_inner): Declare.
4575 * d-lang.c (d_language_defn): Use d_value_print_inner.
4576
23b0f06b
TT
45772020-03-13 Tom Tromey <tom@tromey.com>
4578
4579 * go-valprint.c (go_value_print_inner): New function.
4580 * go-lang.h (go_value_print_inner): Declare.
4581 * go-lang.c (go_language_defn): Use go_value_print_inner.
4582
5f56f7cb
TT
45832020-03-13 Tom Tromey <tom@tromey.com>
4584
4585 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
4586 API.
4587 (rust_val_print): Rewrite.
4588 (rust_value_print_inner): New function, from rust_val_print.
4589 (rust_language_defn): Use rust_value_print_inner.
4590
26792ee0
TT
45912020-03-13 Tom Tromey <tom@tromey.com>
4592
4593 * ada-valprint.c (ada_value_print_inner): New function.
4594 * ada-lang.h (ada_value_print_inner): Declare.
4595 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
4596
24051bbe
TT
45972020-03-13 Tom Tromey <tom@tromey.com>
4598
4599 * f-valprint.c (f_value_print_innner): New function.
4600 * f-lang.h (f_value_print_innner): Declare.
4601 * f-lang.c (f_language_defn): Use f_value_print_innner.
4602
c0941be6
TT
46032020-03-13 Tom Tromey <tom@tromey.com>
4604
4605 * p-valprint.c (pascal_value_print_inner): New function.
4606 * p-lang.h (pascal_value_print_inner): Declare.
4607 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
4608
62c4663d
TT
46092020-03-13 Tom Tromey <tom@tromey.com>
4610
4611 * m2-valprint.c (m2_value_print_inner): New function.
4612 * m2-lang.h (m2_value_print_inner): Declare.
4613 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
4614
62182190
TT
46152020-03-13 Tom Tromey <tom@tromey.com>
4616
4617 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
4618 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
4619 * c-valprint.c (c_value_print_inner): New function.
4620 * c-lang.h (c_value_print_inner): Declare.
4621 * c-lang.c (c_language_defn, cplus_language_defn)
4622 (asm_language_defn, minimal_language_defn): Use
4623 c_value_print_inner.
4624
1e592a8a
TT
46252020-03-13 Tom Tromey <tom@tromey.com>
4626
4627 * p-valprint.c (pascal_object_print_value_fields): Now static.
4628 * p-lang.h (pascal_object_print_value_fields): Don't declare.
4629
7fe471e9
TT
46302020-03-13 Tom Tromey <tom@tromey.com>
4631
4632 * c-valprint.c (c_val_print_array): Simplify.
4633
d121c6ce
TT
46342020-03-13 Tom Tromey <tom@tromey.com>
4635
4636 * valprint.c (value_print_array_elements): New function.
4637 * valprint.h (value_print_array_elements): Declare.
4638
4dba70ee
TT
46392020-03-13 Tom Tromey <tom@tromey.com>
4640
4641 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
4642 * mips-tdep.c (mips_print_register): Use
4643 value_print_scalar_formatted.
4644
4f9ae810
TT
46452020-03-13 Tom Tromey <tom@tromey.com>
4646
4647 * valprint.h (value_print_scalar_formatted): Declare.
4648 * valprint.c (value_print_scalar_formatted): New function.
4649
156bfec9
TT
46502020-03-13 Tom Tromey <tom@tromey.com>
4651
4652 * valprint.h (generic_value_print): Declare.
4653 * valprint.c (generic_value_print): New function.
4654
2b4e573d
TT
46552020-03-13 Tom Tromey <tom@tromey.com>
4656
4657 * valprint.c (do_val_print): Call la_value_print_inner, if
4658 available.
4659 * rust-lang.c (rust_language_defn): Update.
4660 * p-lang.c (pascal_language_defn): Update.
4661 * opencl-lang.c (opencl_language_defn): Update.
4662 * objc-lang.c (objc_language_defn): Update.
4663 * m2-lang.c (m2_language_defn): Update.
4664 * language.h (struct language_defn) <la_value_print_inner>: New
4665 member.
4666 * language.c (unknown_language_defn, auto_language_defn): Update.
4667 * go-lang.c (go_language_defn): Update.
4668 * f-lang.c (f_language_defn): Update.
4669 * d-lang.c (d_language_defn): Update.
4670 * c-lang.c (c_language_defn, cplus_language_defn)
4671 (asm_language_defn, minimal_language_defn): Update.
4672 * ada-lang.c (ada_language_defn): Update.
4673
a1f6a07c
TT
46742020-03-13 Tom Tromey <tom@tromey.com>
4675
4676 * c-valprint.c (c_value_print): Use common_val_print.
4677
410cf315
TT
46782020-03-13 Tom Tromey <tom@tromey.com>
4679
4680 * cp-valprint.c (cp_print_static_field): Use common_val_print.
4681
72a45c93
TT
46822020-03-13 Tom Tromey <tom@tromey.com>
4683
4684 * f-valprint.c (f77_print_array_1, f_val_print): Use
4685 common_val_print.
4686
040f66bd
TT
46872020-03-13 Tom Tromey <tom@tromey.com>
4688
4689 * riscv-tdep.c (riscv_print_one_register_info): Use
4690 common_val_print.
4691
a6e05a6c
TT
46922020-03-13 Tom Tromey <tom@tromey.com>
4693
4694 * mi/mi-main.c (output_register): Use common_val_print.
4695
3444c526
TT
46962020-03-13 Tom Tromey <tom@tromey.com>
4697
4698 * infcmd.c (default_print_one_register_info): Use
4699 common_val_print.
4700
c2a44efe
TT
47012020-03-13 Tom Tromey <tom@tromey.com>
4702
4703 * valprint.h (common_val_print_checked): Declare.
4704 * valprint.c (common_val_print_checked): New function.
4705 * stack.c (print_frame_arg): Use common_val_print_checked.
4706
b0c26e99
TT
47072020-03-13 Tom Tromey <tom@tromey.com>
4708
4709 * valprint.c (do_val_print): New function, from val_print.
4710 (val_print): Use do_val_print.
4711 (common_val_print): Use do_val_print.
4712
ce3acbe9
TT
47132020-03-13 Tom Tromey <tom@tromey.com>
4714
4715 * valprint.c (value_print): Use scoped_value_mark.
4716
96c7f873
TV
47172020-03-13 Tom de Vries <tdevries@suse.de>
4718
4719 PR symtab/25646
4720 * psymtab.c (partial_symtab::partial_symtab): Don't set
4721 globals_offset and statics_offset. Push element onto
4722 current_global_psymbols and current_static_psymbols stacks.
4723 (concat): New function.
4724 (end_psymtab_common): Set globals_offset and statics_offset. Pop
4725 element from current_global_psymbols and current_static_psymbols
4726 stacks. Concat popped elements to global_psymbols and
4727 static_symbols.
4728 (add_psymbol_to_list): Use current_global_psymbols and
4729 current_static_psymbols stacks.
4730 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
4731 current_static_psymbols fields.
4732
6ba0a321
CB
47332020-03-12 Christian Biesinger <cbiesinger@google.com>
4734
4735 * corelow.c (sniff_core_bfd): Remove.
4736 (class core_target) <m_core_vec>: Remove.
4737 (core_target::core_target): Update.
4738 (core_file_fns): Remove.
4739 (deprecated_add_core_fns): Remove.
4740 (default_core_sniffer): Remove.
4741 (sniff_core_bfd): Remove.
4742 (default_check_format): Remove.
4743 (gdb_check_format): Remove.
4744 (core_target_open): Update.
4745 (core_target::get_core_register_section): Update.
4746 (get_core_registers_cb): Update.
4747 (core_target::fetch_registers): Update.
4748 * gdbcore.h (struct core_fns): Remove.
4749 (deprecated_add_core_fns): Remove.
4750 (default_core_sniffer): Remove.
4751 (default_check_format): Remove.
4752
227031b2
TT
47532020-03-12 Tom Tromey <tom@tromey.com>
4754
4755 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
4756 CORE_ADDR.
4757 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
4758
53807e9f
TT
47592020-03-12 Tom Tromey <tom@tromey.com>
4760
4761 * remote.c (remote_target::download_tracepoint)
4762 (remote_target::enable_tracepoint)
4763 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
4764 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
4765 sprintf_vma.
4766
64f25102
TT
47672020-03-12 Tom Tromey <tom@tromey.com>
4768
4769 * symfile-mem.c: Update CORE_ADDR size assert.
4770
272cd5a3
SM
47712020-03-12 Simon Marchi <simon.marchi@efficios.com>
4772
4773 * selftest.m4: Move to gdbsupport/.
4774 * acinclude.m4: Update path to selftest.m4.
4775
74cd3f9d
SM
47762020-03-12 Simon Marchi <simon.marchi@efficios.com>
4777
4778 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
4779 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
4780 gdbarch-selfselftests.c and selftest-arch.c.
4781 (SUBDIR_UNITTESTS_OBS): Rename to...
4782 (SELFTESTS_OBS): ... this.
4783 (COMMON_SFILES): Remove disasm-selftests.c and
4784 gdbarch-selftests.c.
4785 * configure.ac: Don't add selftest-arch.{c,o} to
4786 CONFIG_{SRCS,OBS}.
4787 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
4788 preprocessor conditions.
4789
db6878ac
SM
47902020-03-12 Simon Marchi <simon.marchi@efficios.com>
4791
4792 * configure.ac: Don't source bfd/development.sh.
4793 * selftest.m4: Modify comment.
4794 * configure: Re-generate.
4795
4d696a5c
SM
47962020-03-12 Simon Marchi <simon.marchi@efficios.com>
4797
4798 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
4799 not "true" or "false".
4800 * configure: Re-generate.
4801
8dd8e1c7
CB
48022020-03-12 Christian Biesinger <cbiesinger@google.com>
4803
4804 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
4805 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
4806 renamed to arm_nbsd_supply_gregset.
4807 (fetch_register): Update to call arm_nbsd_supply_gregset.
4808 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
4809 (arm_netbsd_nat_target::fetch_registers): Update.
4810 (fetch_elfcore_registers): Removed.
4811 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
4812 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
4813 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
4814 not require NetBSD system headers.
4815 (arm_nbsd_regset): New struct.
4816 (arm_nbsd_iterate_over_regset_sections): New function.
4817 (arm_netbsd_init_abi_common): Updated to call
4818 set_gdbarch_iterate_over_regset_sections.
4819 * arm-nbsd-tdep.h: New file.
4820
dd69bf7a
KB
48212020-03-11 Kevin Buettner <kevinb@redhat.com>
4822
4823 * symtab.c (find_pc_sect_line): Add check which prevents infinite
4824 recursion.
4825
a0761e34
SM
48262020-03-11 Simon Marchi <simon.marchi@efficios.com>
4827
4828 * configure: Re-generate.
4829
e7a82140
TT
48302020-03-11 Tom Tromey <tromey@adacore.com>
4831
4832 * ada-typeprint.c (print_choices): Fix comment.
4833
dcc050c8
AB
48342020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
4835
4836 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
4837 previous item in the list, when the list has no items.
4838
1c33af77
TV
48392020-03-11 Tom de Vries <tdevries@suse.de>
4840
4841 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
4842 PROP_LOCLIST handling code.
4843
8c95582d
AB
48442020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
4845
4846 * buildsym-legacy.c (record_line): Pass extra parameter to
4847 record_line.
4848 * buildsym.c (buildsym_compunit::record_line): Take an extra
4849 parameter, reduce duplication in the line table, and record the
4850 is_stmt flag in the line table.
4851 * buildsym.h (buildsym_compunit::record_line): Add extra
4852 parameter.
4853 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
4854 non-statement lines.
4855 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
4856 this to the symtab builder.
4857 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
4858 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
4859 through to dwarf_record_line_1.
4860 * infrun.c (process_event_stop_test): When stepping, don't stop at
4861 a non-statement instruction, and only refresh the step info when
4862 we land in the middle of a line's range. Also add an extra
4863 comment.
4864 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
4865 field.
4866 * record-btrace.c (btrace_find_line_range): Only record lines
4867 marked as is-statement.
4868 * stack.c (frame_show_address): Show the frame address if we are
4869 in a non-statement sal.
4870 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
4871 (maintenance_print_one_line_table): Print a header for the is_stmt
4872 column, and include is_stmt information in the output.
4873 * symtab.c (find_pc_sect_line): Find lines marked as statements in
4874 preference to non-statements.
4875 (find_pcs_for_symtab_line): Prefer is-statement entries.
4876 (find_line_common): Likewise.
4877 * symtab.h (struct linetable_entry): Add is_stmt field.
4878 (struct symtab_and_line): Likewise.
4879 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
4880 arranging the line table.
4881
e4003a34
TV
48822020-03-07 Tom de Vries <tdevries@suse.de>
4883
4884 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
4885 DIE.
4886
e8932576
TT
48872020-03-07 Tom Tromey <tom@tromey.com>
4888
4889 * valops.c (value_literal_complex): Remove obsolete comment.
4890 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
4891 comment.
4892
29734269
SM
48932020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
4894
4895 * infrun.h: Forward-declare thread_info.
4896 (set_step_info): Add thread_info parameter, add doc.
4897 * infrun.c (set_step_info): Add thread_info parameter, move doc
4898 to header.
4899 * infrun.c (process_event_stop_test): Pass thread to
4900 set_step_info call.
4901 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
4902 set_step_info.
4903 (prepare_one_step): Add thread_info parameter, pass it to
4904 set_step_frame and prepare_one_step (recursive) call.
4905 (step_1): Pass thread to prepare_one_step call.
4906 (step_command_fsm::should_stop): Pass thread to
4907 prepare_one_step.
4908 (until_next_fsm): Pass thread to set_step_frame call.
4909 (finish_command): Pass thread to set_step_info call.
4910
b7d64b29
HD
49112020-03-06 Hannes Domani <ssbssa@yahoo.de>
4912
4913 * windows-tdep.c (windows_solib_create_inferior_hook):
4914 Check if inferior is running.
4915
09f2921c
TV
49162020-03-06 Tom de Vries <tdevries@suse.de>
4917
4918 * NEWS: Fix "the the".
4919 * ctfread.c: Same.
4920
fd760e79
TV
49212020-03-06 Tom de Vries <tdevries@suse.de>
4922
4923 * psymtab.c (psymtab_to_symtab): Don't print "done.".
4924
20ea4a60
AB
49252020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4926
4927 * .dir-locals.el: Add a comment referencing the other copies of
4928 this file.
4929
0afbabf0
JB
49302020-03-05 John Baldwin <jhb@FreeBSD.org>
4931
4932 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
4933 psargs.
4934
842806cb
TBA
49352020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4936
4937 * .gitattributes: New file.
4938
be1e3d3e
TT
49392020-03-04 Tom Tromey <tom@tromey.com>
4940
4941 * symmisc.c (print_symbol_bcache_statistics)
4942 (print_objfile_statistics): Update.
4943 * symfile.c (allocate_symtab): Use intern.
4944 * psymtab.c (partial_symtab::partial_symtab): Use intern.
4945 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
4946 macro_cache>: Remove.
4947 <string_cache>: New member.
4948 (struct objfile) <intern>: New methods.
4949 * elfread.c (elf_symtab_read): Use intern.
4950 * dwarf2/read.c (fixup_go_packaging): Intern package name.
4951 (dwarf2_compute_name, dwarf2_physname)
4952 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
4953 names.
4954 (guess_partial_die_structure_name): Update.
4955 (partial_die_info::fixup): Intern name.
4956 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
4957 name.
4958 (dwarf2_name): Intern name. Update.
4959 * buildsym.c (buildsym_compunit::get_macro_table): Use
4960 string_cache.
4961
4e7625fd
TT
49622020-03-04 Tom Tromey <tom@tromey.com>
4963
4964 * jit.c (bfd_open_from_target_memory): Make "target" const.
4965 * corefile.c (gnutarget): Now const.
4966 * gdbcore.h (gnutarget): Now const.
4967
46f9f931
HD
49682020-03-04 Hannes Domani <ssbssa@yahoo.de>
4969
4970 * NEWS: Mention support for WOW64 processes.
4971 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
4972 (amd64_windows_segment_register_p): Remove static.
4973 (_initialize_amd64_windows_nat): Update.
4974 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
4975 * i386-windows-nat.c (context_offset): Update.
4976 (i386_mappings): Rename and remove static.
4977 (i386_windows_segment_register_p): Remove static.
4978 (_initialize_i386_windows_nat): Update.
4979 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
4980 (STATUS_WX86_SINGLE_STEP): New macro.
4981 (EnumProcessModulesEx): New macro.
4982 (Wow64SuspendThread): New macro.
4983 (Wow64GetThreadContext): New macro.
4984 (Wow64SetThreadContext): New macro.
4985 (Wow64GetThreadSelectorEntry): New macro.
4986 (windows_set_context_register_offsets): Add static.
4987 (windows_set_segment_register_p): Likewise.
4988 (windows_add_thread): Adapt for WOW64 processes.
4989 (windows_fetch_one_register): Likewise.
4990 (windows_nat_target::fetch_registers): Likewise.
4991 (windows_store_one_register): Likewise.
4992 (display_selector): Likewise.
4993 (display_selectors): Likewise.
4994 (handle_exception): Likewise.
4995 (windows_continue): Likewise.
4996 (windows_nat_target::resume): Likewise.
4997 (windows_add_all_dlls): Likewise.
4998 (do_initial_windows_stuff): Likewise.
4999 (windows_nat_target::attach): Likewise.
5000 (windows_get_exec_module_filename): Likewise.
5001 (windows_nat_target::create_inferior): Likewise.
5002 (windows_xfer_siginfo): Likewise.
5003 (_initialize_loadable): Initialize Wow64SuspendThread,
5004 Wow64GetThreadContext, Wow64SetThreadContext,
5005 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
5006 * windows-nat.h (windows_set_context_register_offsets):
5007 Remove declaration.
5008 (windows_set_segment_register_p): Likewise.
5009 (i386_windows_segment_register_p): Add declaration.
5010 (amd64_windows_segment_register_p): Likewise.
5011
440cf44e
LM
50122020-03-04 Luis Machado <luis.machado@linaro.org>
5013
5014 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
5015 in "info registers" for AArch64/ARM.
5016
5017 The change caused "info registers" to not print GPR's.
5018
5019 gdb/ChangeLog:
5020
5021 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
5022
5023 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
5024 when reg->group is empty and reggroup is not.
5025
1009d92f
TT
50262020-03-03 Tom Tromey <tromey@adacore.com>
5027
5028 * dwarf2/frame.c (struct dwarf2_frame_cache)
5029 <checked_tailcall_bottom, entry_cfa_sp_offset,
5030 entry_cfa_sp_offset_p>: Remove members.
5031 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
5032 (dwarf2_frame_prev_register): Don't call
5033 dwarf2_tailcall_sniffer_first.
5034 (dwarf2_append_unwinders): Don't append tailcall unwinder.
5035 * frame-unwind.c (add_unwinder): New fuction.
5036 (frame_unwind_init): Use it. Add tailcall unwinder.
5037
5e5d66b6
AB
50382020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
5039 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5040
5041 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
5042 value should be printed as true.
5043
584cf46d
HD
50442020-03-03 Hannes Domani <ssbssa@yahoo.de>
5045
5046 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
5047 (windows_init_abi): Set and use windows_so_ops.
5048
7b973adc
SDJ
50492020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
5050
5051 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
5052 when verifying if dealing with a convenience variable.
5053
bb7b70ab
LM
50542020-03-03 Luis Machado <luis.machado@linaro.org>
5055
5056 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
5057
9822cb57
SM
50582020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5059
5060 * infrun.c (gdbarch_supports_displaced_stepping): New.
5061 (use_displaced_stepping): Break up conditions in smaller pieces.
5062 Use gdbarch_supports_displaced_stepping.
5063 (displaced_step_prepare_throw): Use
5064 gdbarch_supports_displaced_stepping.
5065
63e163f2
AB
50662020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
5067
5068 * NEWS: Mention new behaviour of the history filename.
5069 * top.c (write_history_p): Add comment.
5070 (show_write_history_p): Add header comment, give a different
5071 message when history writing is on, but the history filename is
5072 empty.
5073 (history_filename): Add comment.
5074 (history_filename_empty): New function.
5075 (show_history_filename): Add header comment, give a different
5076 message when the filename is empty.
5077 (init_history): Compare history_filename against nullptr, and only
5078 read history if the filename is not empty.
5079 (set_history_filename): Add header comment, and only make
5080 non-empty filenames absolute.
5081 (init_main): Make the filename argument to 'set history filename'
5082 optional.
5083
81b86b97
CB
50842020-03-02 Christian Biesinger <cbiesinger@google.com>
5085
5086 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
5087 (arm_supply_vfpregset): ...this, and update to use VFP registers.
5088 (fetch_fp_register): Update.
5089 (fetch_fp_regs): Update.
5090 (store_fp_register): Update.
5091 (store_fp_regs): Update.
5092 (arm_netbsd_nat_target::read_description): New function.
5093 (fetch_elfcore_registers): Update.
5094
24ed6739
AB
50952020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
5096
5097 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
5098 general_thread if the stop reply is missing a thread-id.
5099 (remote_target::process_stop_reply): Use the first non-exited
5100 thread if the target didn't pass a thread-id.
5101 * infrun.c (do_target_wait): Move call to
5102 switch_to_inferior_no_thread to ....
5103 (do_target_wait_1): ... here.
5104
a84bb2a0
JT
51052020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
5106
5107 * debuginfod-support.c: Include defs.h first.
5108
658dadf0
TV
51092020-02-28 Tom de Vries <tdevries@suse.de>
5110
5111 * symfile.c (set_initial_language): Use default language for lookup.
5112
4ebe4877
SM
51132020-02-28 Simon Marchi <simon.marchi@efficios.com>
5114
5115 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
5116 reader variable, pass `this` to read_cutu_die_from_dwo.
5117
e5da1139
AM
51182020-02-27 Aaron Merey <amerey@redhat.com>
5119
5120 * source.c (open_source_file): Check for nullptr when computing
5121 srcpath.
5122
317f7127
TT
51232020-02-27 Tom Tromey <tromey@adacore.com>
5124
5125 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
5126 member.
5127 (dwarf2_add_field): Don't update nfields.
5128 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
5129
3104d9ee
AB
51302020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5131
5132 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
5133 abs.
5134
b83470bf
TT
51352020-02-26 Tom Tromey <tom@tromey.com>
5136
5137 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
5138 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
5139 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
5140 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
5141 per_cu_data.
5142
edfe0a0c
TT
51432020-02-26 Tom Tromey <tom@tromey.com>
5144
5145 * dwarf2/index-write.c (psym_index_map): Change type.
5146 (add_address_entry_worker, write_one_signatured_type)
5147 (recursively_count_psymbols, recursively_write_psymbols)
5148 (class debug_names, psyms_seen_size, write_gdbindex)
5149 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
5150
0d79cdc4
AM
51512020-02-26 Aaron Merey <amerey@redhat.com>
5152
5153 * Makefile.in: Handle optional debuginfod support.
5154 * NEWS: Update.
5155 * README: Add --with-debuginfod summary.
5156 * config.in: Regenerate.
5157 * configure: Regenerate.
5158 * configure.ac: Handle optional debuginfod support.
5159 * debuginfod-support.c: debuginfod helper functions.
5160 * debuginfod-support.h: Ditto.
5161 * doc/gdb.texinfo: Add --with-debuginfod to configure options
5162 summary.
5163 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
5164 when a dwz file cannot be found.
5165 * elfread.c (elf_symfile_read): Query debuginfod servers when a
5166 debuginfo file cannot be found.
5167 * source.c (open_source_file): Query debuginfod servers when a
5168 source file cannot be found.
5169 * top.c (print_gdb_configuration): Include
5170 --{with,without}-debuginfod in the output.
5171
b65ce565
JG
51722020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
5173
5174 * thread.c (thr_try_catch_cmd): Print thread name.
5175
d4c9a4f8
SM
51762020-02-26 Simon Marchi <simon.marchi@efficios.com>
5177
5178 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
5179 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5180 dwarf2_fetch_die_type_sect_off): Move to...
5181 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5182 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5183 dwarf2_fetch_die_type_sect_off): ... here.
5184 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5185 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5186 dwarf2_fetch_die_type_sect_off): Move doc to header file.
5187
0dce4280
TV
51882020-02-26 Tom de Vries <tdevries@suse.de>
5189
5190 PR gdb/25603
5191 * symfile.c (set_initial_language): Exit-early if
5192 language_mode == language_mode_manual.
5193
450a1bfc
SM
51942020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5195
5196 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
5197 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
5198 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
5199
9e80cfa1
AB
52002020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5201
5202 * gdbtypes.c (create_array_type_with_stride): Handle negative
5203 array strides.
5204 * valarith.c (value_subscripted_rvalue): Likewise.
5205
09624f1f
LM
52062020-02-25 Luis Machado <luis.machado@linaro.org>
5207
5208 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
5209
8cb5117c
SM
52102020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5211
5212 * loc.h (dwarf2_get_die_type): Move to...
5213 * read.h (dwarf2_get_die_type): ... here.
5214 * read.c (dwarf2_get_die_type): Move doc to header.
5215
c325c44e
JB
52162020-02-25 Joel Brobecker <brobecker@adacore.com>
5217
5218 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
5219 'gnulib/Makefile.in' to the list.
5220
4ac93832
TT
52212020-02-24 Tom Tromey <tom@tromey.com>
5222
5223 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
5224 Remove.
5225 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
5226 XOBNEWVEC.
5227
197400e8
TT
52282020-02-24 Tom Tromey <tom@tromey.com>
5229
5230 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
5231 New method.
5232 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
5233 (dw2_do_instantiate_symtab, dw2_get_file_names)
5234 (build_type_psymtab_dependencies, load_full_type_unit): Update.
5235
76935768
TT
52362020-02-24 Tom Tromey <tom@tromey.com>
5237
5238 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
5239 make_scoped_restore.
5240 (dwarf2_psymtab::read_symtab): Don't clear
5241 reading_partial_symbols.
5242
a88ef40d
TV
52432020-02-24 Tom de Vries <tdevries@suse.de>
5244
5245 PR gdb/25592
5246 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
5247
c9af6521
TV
52482020-02-24 Tom de Vries <tdevries@suse.de>
5249
5250 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
5251 commands layout next/prev/regs.
5252
5707a07a
TT
52532020-02-22 Tom Tromey <tom@tromey.com>
5254
5255 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
5256 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
5257
3b0fb49e
TT
52582020-02-22 Tom Tromey <tom@tromey.com>
5259
5260 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
5261
283be8bf
TT
52622020-02-22 Tom Tromey <tom@tromey.com>
5263
5264 * tui/tui-win.c (_initialize_tui_win): Add usage text.
5265 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
5266 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
5267 * tui/tui.c (_initialize_tui): Add usage text.
5268
ca793b96
TT
52692020-02-22 Tom Tromey <tom@tromey.com>
5270
5271 * tui/tui-win.c (tui_set_focus_command)
5272 (tui_set_win_height_command): Use error_no_arg.
5273 (_initialize_tui_win): Update help text.
5274 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
5275
432b5c40
TT
52762020-02-22 Tom Tromey <tom@tromey.com>
5277
5278 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
5279 * tui/tui-disasm.h (struct tui_disasm_window)
5280 <display_start_addr>: Declare.
5281 * tui/tui-source.h (struct tui_source_window)
5282 <display_start_addr>: Declare.
5283 * tui/tui-winsource.h (struct tui_source_window_base)
5284 <show_source_line, display_start_addr>: New methods.
5285 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
5286 Rename and move to protected section.
5287 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
5288 (tui_source_window_base::do_erase_source_content): Update.
5289 (tui_source_window_base::show_source_line): Now a method.
5290 (tui_source_window_base::show_source_content)
5291 (tui_source_window_base::tui_source_window_base)
5292 (tui_source_window_base::rerender)
5293 (tui_source_window_base::refill)
5294 (tui_source_window_base::do_scroll_horizontal)
5295 (tui_source_window_base::set_is_exec_point_at)
5296 (tui_source_window_base::update_breakpoint_info)
5297 (tui_source_window_base::update_exec_info): Update.
5298 * tui/tui-source.c (tui_source_window::set_contents)
5299 (tui_source_window::showing_source_p)
5300 (tui_source_window::do_scroll_vertical)
5301 (tui_source_window::location_matches_p)
5302 (tui_source_window::line_is_displayed): Update.
5303 (tui_source_window::display_start_addr): New method.
5304 * tui/tui-disasm.c (tui_disasm_window::set_contents)
5305 (tui_disasm_window::do_scroll_vertical)
5306 (tui_disasm_window::location_matches_p): Update.
5307 (tui_disasm_window::display_start_addr): New method.
5308
01b1af32
TT
53092020-02-22 Tom Tromey <tom@tromey.com>
5310
5311 * NEWS: Add entry for gdb.register_window_type.
5312 * tui/tui-layout.h (window_factory): New typedef.
5313 (tui_register_window): Declare.
5314 * tui/tui-layout.c (saved_tui_windows): New global.
5315 (tui_apply_current_layout): Use it.
5316 (tui_register_window): New function.
5317 * python/python.c (do_start_initialization): Call
5318 gdbpy_initialize_tui.
5319 (python_GdbMethods): Add "register_window_type" function.
5320 * python/python-internal.h (gdbpy_register_tui_window)
5321 (gdbpy_initialize_tui): Declare.
5322 * python/py-tui.c: New file.
5323 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
5324
fc96d20b
TT
53252020-02-22 Tom Tromey <tom@tromey.com>
5326
5327 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
5328
935c78c0
TT
53292020-02-22 Tom Tromey <tom@tromey.com>
5330
5331 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
5332 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
5333 * tui/tui-data.c (tui_set_win_with_focus): Remove.
5334 (tui_set_win_focus_to): Move from tui-win.c.
5335
0240c8f1
TT
53362020-02-22 Tom Tromey <tom@tromey.com>
5337
5338 * tui/tui-layout.c (make_standard_window, get_locator_window): New
5339 functions.
5340 (known_window_types): New global.
5341 (tui_get_window_by_name): Reimplement.
5342 (initialize_known_windows): New function.
5343 (validate_window_name): Rewrite.
5344 (_initialize_tui_layout): Call initialize_known_windows.
5345
fdb01f0c
TT
53462020-02-22 Tom Tromey <tom@tromey.com>
5347
5348 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
5349 Remove constants.
5350 * tui/tui-winsource.h (struct tui_source_window_base)
5351 <tui_source_window_base>: Remove parameter.
5352 * tui/tui-winsource.c
5353 (tui_source_window_base::tui_source_window_base): Remove
5354 parameter.
5355 (tui_source_window_base::refill): Update.
5356 * tui/tui-stack.h (struct tui_locator_window)
5357 <tui_locator_window>: Update.
5358 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
5359 Default the constructor.
5360 * tui/tui-regs.h (struct tui_data_item_window)
5361 <tui_data_item_window>: Default the constructor.
5362 (struct tui_data_window) <tui_data_window>: Likewise.
5363 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
5364 Default the constructor.
5365 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
5366 Default the constructor.
5367 <type>: Remove.
5368 (struct tui_win_info) <tui_win_info>: Default the constructor.
5369 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
5370 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
5371 Default the constructor.
5372
865a5aec
TT
53732020-02-22 Tom Tromey <tom@tromey.com>
5374
5375 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
5376 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
5377 * tui/tui-win.c (tui_resize_all): Don't call
5378 tui_delete_invisible_windows.
5379 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
5380 done.
5381 (tui_set_layout): Update.
5382 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
5383 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
5384 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
5385
e098d18c
TT
53862020-02-22 Tom Tromey <tom@tromey.com>
5387
5388 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
5389 correctly.
5390
eb9c8874
TT
53912020-02-22 Tom Tromey <tom@tromey.com>
5392
5393 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
5394
7eed1a8e
TT
53952020-02-22 Tom Tromey <tom@tromey.com>
5396
5397 * tui/tui-winsource.h (struct tui_source_window_iterator)
5398 <inner_iterator>: New etytypedef.
5399 <tui_source_window_iterator>: Take "end" parameter.
5400 <tui_source_window_iterator>: Take iterator.
5401 <operator*, advance>: Update.
5402 <m_iter>: Change type.
5403 <m_end>: New field.
5404 (struct tui_source_windows) <begin, end>: Update.
5405 * tui/tui-layout.c (tui_windows): New global.
5406 (tui_apply_current_layout): Clear tui_windows.
5407 (tui_layout_window::apply): Update tui_windows.
5408 * tui/tui-data.h (tui_windows): Declare.
5409 (all_tui_windows): Now inline function.
5410 (class tui_window_iterator, struct all_tui_windows): Remove.
5411
7c043ba6
TT
54122020-02-22 Tom Tromey <tom@tromey.com>
5413
5414 PR tui/17850:
5415 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
5416 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
5417 "height" argument.
5418 (class tui_layout_window) <get_sizes>: Likewise.
5419 (class tui_layout_split) <tui_layout_split>: Add "vertical"
5420 argument.
5421 <get_sizes>: Add "height" argument.
5422 <m_vertical>: New field.
5423 * tui/tui-layout.c (tui_layout_split::clone): Update.
5424 (tui_layout_split::get_sizes): Add "height" argument.
5425 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
5426 (tui_new_layout_command): Parse "-horizontal".
5427 (_initialize_tui_layout): Update help string.
5428 (tui_layout_split::specification): Add "-horizontal" when needed.
5429 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
5430 argument.
5431 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
5432 New methods.
5433
6bc56648
TT
54342020-02-22 Tom Tromey <tom@tromey.com>
5435
5436 * tui/tui-layout.h (enum tui_adjust_result): New.
5437 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
5438 (class tui_layout_window) <adjust_size>: Return
5439 tui_adjust_result. Rewrite.
5440 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
5441 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
5442
c22fef7e
TT
54432020-02-22 Tom Tromey <tom@tromey.com>
5444
5445 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
5446 parameter and return types.
5447 (class tui_layout_base) <specification>: Add "depth".
5448 (class tui_layout_window) <specification>: Add "depth".
5449 (class tui_layout_split) <specification>: Add "depth".
5450 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
5451 and return types.
5452 (tui_new_layout_command): Parse sub-layouts.
5453 (_initialize_tui_layout): Update help string.
5454 (tui_layout_window::specification): Add "depth".
5455 (add_layout_command): Update.
5456
ee325b61
TT
54572020-02-22 Tom Tromey <tom@tromey.com>
5458
5459 * NEWS: Add "tui new-layout" item.
5460 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
5461 Add new-layout command to help text.
5462 (validate_window_name): New function.
5463 (tui_new_layout_command): New function.
5464 (_initialize_tui_layout): Register "new-layout".
5465 (tui_layout_window::specification): New method.
5466 (tui_layout_window::specification): New method.
5467 * tui/tui-layout.h (class tui_layout_base) <specification>: New
5468 method.
5469 (class tui_layout_window) <specification>: New method.
5470 (class tui_layout_split) <specification>: New method.
5471
416eb92d
TT
54722020-02-22 Tom Tromey <tom@tromey.com>
5473
5474 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
5475 * tui/tui-win.c (window_name_completer): Update comment.
5476 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
5477 Declare method.
5478 (class tui_layout_window) <replace_window>: Likewise.
5479 (class tui_layout_split) <replace_window>: Likewise.
5480 (tui_set_layout): Don't declare.
5481 (tui_set_initial_layout): Declare function.
5482 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
5483 (asm_regs_layout): New globals.
5484 (tui_current_layout, show_layout): Remove.
5485 (tui_set_layout, tui_add_win_to_layout): Rewrite.
5486 (find_layout, tui_apply_layout): New function.
5487 (layout_completer): Remove.
5488 (tui_next_layout): Reimplement.
5489 (tui_next_layout_command): New function.
5490 (tui_set_initial_layout, tui_prev_layout_command): New functions.
5491 (tui_regs_layout): Reimplement.
5492 (tui_regs_layout_command): New function.
5493 (extract_display_start_addr): Rewrite.
5494 (next_layout, prev_layout): Remove.
5495 (tui_layout_window::replace_window): New method.
5496 (tui_layout_split::replace_window): New method.
5497 (destroy_layout): New function.
5498 (layout_list): New global.
5499 (add_layout_command): New function.
5500 (initialize_layouts): Update.
5501 (tui_layout_command): New function.
5502 (_initialize_tui_layout): Install "layout" commands.
5503 * tui/tui-data.h (enum tui_layout_type): Remove.
5504 (tui_current_layout): Don't declare.
5505
0dbc2fc7
TT
55062020-02-22 Tom Tromey <tom@tromey.com>
5507
5508 * tui/tui-regs.c (tui_reg_layout): Remove.
5509 (tui_reg_command): Use tui_regs_layout.
5510 * tui/tui-layout.h (tui_reg_command): Declare.
5511 * tui/tui-layout.c (tui_reg_command): New function.
5512
5afe342e
TT
55132020-02-22 Tom Tromey <tom@tromey.com>
5514
5515 * tui/tui.c (tui_rl_delete_other_windows): Call
5516 tui_remove_some_windows.
5517 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
5518 Declare method.
5519 (class tui_layout_window) <remove_windows>: New method.
5520 (class tui_layout_split) <remove_windows>: Declare.
5521 (tui_remove_some_windows): Declare.
5522 * tui/tui-layout.c (tui_remove_some_windows): New function.
5523 (tui_layout_split::remove_windows): New method.
5524
427326a8
TT
55252020-02-22 Tom Tromey <tom@tromey.com>
5526
5527 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
5528 * tui/tui-layout.h (tui_next_layout): Declare.
5529 * tui/tui-layout.c (tui_next_layout): New function.
5530
3fe12b6d
TT
55312020-02-22 Tom Tromey <tom@tromey.com>
5532
5533 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
5534 correct coordinates.
5535
59b8b5d2
TT
55362020-02-22 Tom Tromey <tom@tromey.com>
5537
5538 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
5539 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
5540 DATA_WIN case.
5541
2a3d458b
TT
55422020-02-22 Tom Tromey <tom@tromey.com>
5543
5544 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
5545 TUI_DISASM_WIN, not tui_win_list.
5546
3f0cbb04
TT
55472020-02-22 Tom Tromey <tom@tromey.com>
5548
5549 * valprint.c (generic_val_print_enum_1)
5550 (val_print_type_code_flags): Style member names.
5551 * rust-lang.c (val_print_struct, rust_print_enum)
5552 (rust_print_struct_def, rust_internal_print_type): Style member
5553 names.
5554 * p-valprint.c (pascal_object_print_value_fields): Style member
5555 names. Only call fprintf_symbol_filtered for static members.
5556 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
5557 * f-valprint.c (f_val_print): Style member names.
5558 * f-typeprint.c (f_type_print_base): Style member names.
5559 * cp-valprint.c (cp_print_value_fields): Style member names. Only
5560 call fprintf_symbol_filtered for static members.
5561 (cp_print_class_member): Style member names.
5562 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
5563 member names.
5564 * ada-valprint.c (ada_print_scalar): Style enum names.
5565 (ada_val_print_enum): Likewise.
5566 * ada-typeprint.c (print_enum_type): Style enum names.
5567
d4d947ae
TT
55682020-02-21 Tom Tromey <tom@tromey.com>
5569
5570 * psympriv.h (struct partial_symtab): Update comment.
5571
e94e944b
TT
55722020-02-21 Tom Tromey <tromey@adacore.com>
5573
5574 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
5575 type is CORE_ADDR.
5576
1eb73179
TV
55772020-02-21 Tom de Vries <tdevries@suse.de>
5578
5579 PR gdb/25534
5580 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
5581 if dependencies[i]->user != NULL.
5582
4f180d53
AT
55832020-02-21 Ali Tamur <tamur@google.com>
5584
5585 * dwarf2/read.c (dwarf2_name): Add null check.
5586
22b6cd70
TT
55872020-02-20 Tom Tromey <tom@tromey.com>
5588
5589 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
5590 ">=", in binary search.
5591 (dwarf2_find_containing_comp_unit): New overload.
5592 (run_test): New self-test.
5593 (_initialize_dwarf2_read): Register new test.
5594
bd0cf5a6
NC
55952020-02-20 Nelson Chu <nelson.chu@sifive.com>
5596
5597 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
5598 * riscv-tdep.h: Likewise.
5599 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
5600 rv32-only CSR.
5601 * features/riscv/64bit-csr.xml: Regenerated.
5602
3f702acd
SDJ
56032020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5604 Tom Tromey <tom@tromey.com>
5605
5606 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
5607 of 'fputc_unfiltered'.
5608 (putchar_unfiltered): Call 'fputc_unfiltered'.
5609 (fputc_unfiltered): Call 'fputs_unfiltered'.
5610
d13c7322
AB
56112020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
5612
5613 * config.in: Regenerate.
5614 * configure: Regenerate.
5615 * configure.ac: Add --with-python-libdir option.
5616 * main.c: Use WITH_PYTHON_LIBDIR.
5617
869d8950
TT
56182020-02-19 Tom Tromey <tom@tromey.com>
5619
5620 * symtab.c (general_symbol_info::compute_and_set_names): Use
5621 obstack_strndup. Simplify call to symbol_set_demangled_name.
5622
298e9637
SM
56232020-02-19 Simon Marchi <simon.marchi@efficios.com>
5624
5625 * dwarf2/read.c (allocate_signatured_type_table,
5626 allocate_dwo_unit_table, allocate_type_unit_groups_table,
5627 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
5628 Remove objfile parameter, update all callers.
5629
08410482
DE
56302020-02-19 Doug Evans <dje@google.com>
5631
5632 PR rust/25535
5633 * rust-lang.c (rust_print_enum): Apply embedded_offset to
5634 rust_enum_variant calculation.
5635
dfdeeca1
TT
56362020-02-19 Tom Tromey <tromey@adacore.com>
5637
5638 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
5639
2ef5453b
TT
56402020-02-19 Tom Tromey <tromey@adacore.com>
5641
5642 * ada-lang.c (cache_symbol): Use obstack_strdup.
5643
9f1528a1
AB
56442020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
5645
5646 * configure: Regenerate.
5647
d3c22fa8
TT
56482020-02-19 Tom Tromey <tromey@adacore.com>
5649
5650 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
5651 NULL check.
5652
bf84f706
MR
56532020-02-19 Maciej W. Rozycki <macro@wdc.com>
5654
5655 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
5656
d1c9b20f
AB
56572020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
5658
5659 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
5660 if GDBSERVER is not defined.
5661 (riscv_tdesc_cache): Likewise, also store const target_desc.
5662 (STATIC_IN_GDB): Define.
5663 (riscv_create_target_description): Update declaration with
5664 STATIC_IN_GDB.
5665 (riscv_lookup_target_description): New function, only define if
5666 GDBSERVER is not defined.
5667 * arch/riscv.h (riscv_create_target_description): Declare only
5668 when GDBSERVER is defined.
5669 (riscv_lookup_target_description): New declaration when GDBSERVER
5670 is not defined.
5671 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
5672 (riscv_linux_read_features): ...this, and return
5673 riscv_gdbarch_features instead of target_desc.
5674 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
5675 (riscv_linux_read_description): Rename to...
5676 (riscv_linux_read_features): ...this.
5677 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
5678 Update to use riscv_gdbarch_features and
5679 riscv_lookup_target_description.
5680 * riscv-tdep.c (riscv_find_default_target_description): Use
5681 riscv_lookup_target_description instead of
5682 riscv_create_target_description.
5683
373d7ac0
SM
56842020-02-18 Simon Marchi <simon.marchi@efficios.com>
5685
5686 * valprint.c (generic_val_print_enum_1): When printing a flag
5687 enum with value 0 and there is no enumerator with value 0, print
5688 just "0" instead of "(unknown: 0x0)".
5689
b29a2df0
SM
56902020-02-18 Simon Marchi <simon.marchi@efficios.com>
5691
5692 * valprint.c (generic_val_print_enum_1): Print unknown part of
5693 flag enum in hex.
5694
6740f0cc
SM
56952020-02-18 Simon Marchi <simon.marchi@efficios.com>
5696
5697 * dwarf2/read.c (update_enumeration_type_from_children): Allow
5698 flag enums to contain duplicate enumerators.
5699 * valprint.c (generic_val_print_enum_1): Update comment.
5700
edd45eb0
SM
57012020-02-18 Simon Marchi <simon.marchi@efficios.com>
5702
5703 * dwarf2/read.c: Include "count-one-bits.h".
5704 (update_enumeration_type_from_children): If an enumerator has
5705 multiple bits set, don't treat the enumeration as a "flag enum".
5706 * valprint.c (generic_val_print_enum_1): Assert that enumerators
5707 of flag enums have 0 or 1 bit set.
5708
6d0cf446
BE
57092020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
5710
5711 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
5712 conversion.
5713 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
5714 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
5715 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
5716 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
5717 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
5718
7001c1b7
SM
57192020-02-18 Simon Marchi <simon.marchi@efficios.com>
5720
5721 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
5722
fdb61c6c
SM
57232020-02-14 Simon Marchi <simon.marchi@efficios.com>
5724
5725 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
5726 displaced_step_closure_up.
5727 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
5728 (struct displaced_step_closure_up):
5729 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
5730 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
5731 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
5732 Likewise.
5733 * gdbarch.sh (displaced_step_copy_insn): Likewise.
5734 * gdbarch.c, gdbarch.h: Re-generate.
5735 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
5736 displaced_step_closure_up.
5737 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
5738 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
5739 * infrun.h (displaced_step_closure_up): New type alias.
5740 (struct displaced_step_inferior_state) <step_closure>: Change
5741 type to displaced_step_closure_up.
5742 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
5743 displaced_step_closure_up.
5744 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
5745
a4a38eb4
TT
57462020-02-14 Tom Tromey <tom@tromey.com>
5747
5748 * minidebug.c (gnu_debug_key): New global.
5749 (find_separate_debug_file_in_section): Use it.
5750
e8217e61
SM
57512020-02-14 Simon Marchi <simon.marchi@efficios.com>
5752
5753 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
5754 std::unique_ptr.
5755 * gdbarch.c: Re-generate.
5756 * gdbarch.h: Re-generate.
5757 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
5758 change.
5759 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
5760 type to std::unique_ptr.
5761 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
5762 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
5763 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
5764 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
5765 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
5766 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
5767 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
5768 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
5769 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
5770
d8d83535
SM
57712020-02-14 Simon Marchi <simon.marchi@efficios.com>
5772
5773 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
5774 std::unique_ptr.
5775 (displaced_step_clear): Rename to...
5776 (displaced_step_reset): ... this. Just call displaced->reset ().
5777 (displaced_step_clear_cleanup): Rename to...
5778 (displaced_step_reset_cleanup): ... this.
5779 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
5780 (displaced_step_fixup): Likewise.
5781 (resume_1): Likewise.
5782 (handle_inferior_event): Restore child's memory before calling
5783 displaced_step_fixup on the parent.
5784 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
5785 to std::unique_ptr.
5786 <step_closure>: Change type to std::unique_ptr.
5787
5f661e03
SM
57882020-02-14 Simon Marchi <simon.marchi@efficios.com>
5789
5790 * arm-tdep.c: Include count-one-bits.h.
5791 (cleanup_block_store_pc): Use count_one_bits.
5792 (cleanup_block_load_pc): Use count_one_bits.
5793 (arm_copy_block_xfer): Use count_one_bits.
5794 (thumb2_copy_block_xfer): Use count_one_bits.
5795 (thumb_copy_pop_pc_16bit): Use count_one_bits.
5796 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
5797 (thumb_get_next_pcs_raw): Use count_one_bits.
5798 (arm_get_next_pcs_raw): Use count_one_bits_l.
5799 * arch/arm.c (bitcount): Remove.
5800 * arch/arm.h (bitcount): Remove.
5801
8084e579
TT
58022020-02-14 Tom Tromey <tromey@adacore.com>
5803
5804 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
5805 Update.
5806 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
5807 * dwarf2/loc.c (call_site_find_chain_1): Return
5808 unique_xmalloc_ptr.
5809 (call_site_find_chain): Likewise.
5810
258bf0ee
RB
58112020-02-14 Richard Biener <rguenther@suse.de>
5812
5813 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
5814 on expression with division operators.
5815
f98a8458
AKS
58162020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5817
5818 * MAINTAINERS (Write After Approval): Adding myself.
5819
d1437c0e
TT
58202020-02-12 Tom Tromey <tom@tromey.com>
5821
5822 * event-loop.c (event_data, gdb_event, event_handler_func):
5823 Remove.
5824
3d4560f7
TT
58252020-02-12 Tom Tromey <tom@tromey.com>
5826
5827 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
5828 (dwarf2_frame_objfile_data): Add comment.
5829 (find_comp_unit, set_comp_unit): New functions.
5830 (dwarf2_frame_find_fde): Use find_comp_unit.
5831 (dwarf2_build_frame_info): Use set_comp_unit.
5832
21982304
TT
58332020-02-12 Tom Tromey <tom@tromey.com>
5834
5835 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
5836 (comp_unit): Don't initialize objfile.
5837 (execute_cfa_program): Add text_offset parameter.
5838 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
5839 (dwarf2_frame_cache): Update.
5840 (dwarf2_build_frame_info): Don't set "objfile" member.
5841
4debb237
TT
58422020-02-12 Tom Tromey <tom@tromey.com>
5843
5844 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
5845 (decode_frame_entry): Likewise.
5846 (dwarf2_build_frame_info): Update.
5847
0d404d44
TT
58482020-02-12 Tom Tromey <tom@tromey.com>
5849
5850 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
5851 (decode_frame_entry_1): Use the comp_unit obstack.
5852
a7a3ae5c
TT
58532020-02-12 Tom Tromey <tom@tromey.com>
5854
5855 * dwarf2/frame.c (struct comp_unit): Add initializers and
5856 constructor.
5857 (dwarf2_frame_objfile_data): Store a comp_unit.
5858 (dwarf2_frame_find_fde): Update.
5859 (dwarf2_build_frame_info): Use "new".
5860
a9d65418
TT
58612020-02-12 Tom Tromey <tom@tromey.com>
5862
5863 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
5864 (dwarf2_fde_table): Typedef for std::vector.
5865 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
5866 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
5867 (decode_frame_entry): Update.
5868 (dwarf2_build_frame_info): Use "new".
5869
7559c217
CB
58702020-02-12 Christian Biesinger <cbiesinger@google.com>
5871
5872 * arm-tdep.c (arm_gdbarch_init): Update.
5873 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
5874 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
5875 have_neon, is_m>: Change to bool.
5876
aeefc73c
CB
58772020-02-12 Christian Biesinger <cbiesinger@google.com>
5878
5879 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
5880
d27b8e5f
TT
58812020-02-12 Tom Tromey <tom@tromey.com>
5882
5883 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
5884
cd5900f3
HD
58852020-02-12 Hannes Domani <ssbssa@yahoo.de>
5886
5887 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
5888 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
5889
f056b22b
TT
58902020-02-11 Tom Tromey <tom@tromey.com>
5891
5892 * psymtab.h: Update comment.
5893
f92ff6b5
TT
58942020-02-11 Tom Tromey <tom@tromey.com>
5895
5896 * gdb_obstack.h (struct auto_obstack): Use
5897 DISABLE_COPY_AND_ASSIGN.
5898
3fd6912b
TT
58992020-02-11 Tom Tromey <tom@tromey.com>
5900
5901 * dwarf2/frame.h (struct objfile): Don't forward declare.
5902
69ed9b74
CB
59032020-02-11 Christian Biesinger <cbiesinger@google.com>
5904
5905 * cris-tdep.c (cris_supply_gregset): Change signature to match
5906 what struct regset expects.
5907 (cris_regset): New struct.
5908 (fetch_core_registers): Remove.
5909 (cris_iterate_over_regset_sections): New function.
5910 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
5911 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
5912
bda874f6
CB
59132020-02-11 Christian Biesinger <cbiesinger@google.com>
5914
5915 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
5916 registers.
5917
754e1564
CB
59182020-02-11 Christian Biesinger <cbiesinger@google.com>
5919
5920 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
5921
8ddd8e0e
SM
59222020-02-11 Simon Marchi <simon.marchi@efficios.com>
5923
5924 * configure: Re-generate.
5925
898e7f60
SM
59262020-02-11 Simon Marchi <simon.marchi@efficios.com>
5927
5928 * configure: Re-generate.
5929
58df732b
SM
59302020-02-11 Simon Marchi <simon.marchi@efficios.com>
5931
5932 * acinclude: Update warning.m4 path.
5933 * warning.m4: Move to gdbsupport.
5934
da5bd37e
TT
59352020-02-11 Tom Tromey <tromey@adacore.com>
5936
5937 * remote.c (remote_console_output): Update.
5938 * printcmd.c (printf_command): Update.
5939 * event-loop.c (gdb_wait_for_event): Update.
5940 * linux-nat.c (sigchld_handler): Update.
5941 * remote-sim.c (gdb_os_write_stdout): Update.
5942 (gdb_os_flush_stdout): Update.
5943 (gdb_os_flush_stderr): Update.
5944 (gdb_os_write_stderr): Update.
5945 * exceptions.c (print_exception): Update.
5946 * remote-fileio.c (remote_fileio_func_read): Update.
5947 (remote_fileio_func_write): Update.
5948 * tui/tui.c (tui_enable): Update.
5949 * tui/tui-interp.c (tui_interp::init): Update.
5950 * utils.c (init_page_info): Update.
5951 (putchar_unfiltered, fputc_unfiltered): Update.
5952 (gdb_flush): Update.
5953 (emit_style_escape): Update.
5954 (flush_wrap_buffer, fputs_maybe_filtered): Update.
5955 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
5956 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
5957 (stderr_file::write): Update.
5958 (stderr_file::puts): Update.
5959 * ui-file.h (ui_file_isatty, ui_file_write)
5960 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
5961 (ui_file_puts): Don't declare.
5962
85f0dd3c
TV
59632020-02-10 Tom de Vries <tdevries@suse.de>
5964
5965 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
5966 sentinel to char *.
5967
2e927613
TV
59682020-02-09 Tom de Vries <tdevries@suse.de>
5969
5970 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
5971 filename if it matches "<artificial>".
5972
6bafc845
HD
59732020-02-09 Hannes Domani <ssbssa@yahoo.de>
5974
5975 * windows-tdep.c (struct enum_value_name): New struct.
5976 (create_enum): New function.
5977 (windows_get_siginfo_type): Create and use enum types.
5978
7928d571
HD
59792020-02-09 Hannes Domani <ssbssa@yahoo.de>
5980
5981 * NEWS: Mention $_siginfo support for Windows.
5982 * windows-nat.c (handle_exception): Set siginfo_er.
5983 (windows_nat_target::mourn_inferior): Reset siginfo_er.
5984 (windows_xfer_siginfo): New function.
5985 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
5986 * windows-tdep.c (struct windows_gdbarch_data): New struct.
5987 (init_windows_gdbarch_data): New function.
5988 (get_windows_gdbarch_data): New function.
5989 (windows_get_siginfo_type): New function.
5990 (windows_init_abi): Register windows_get_siginfo_type.
5991 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
5992
6751ebae
TT
59932020-02-08 Tom Tromey <tom@tromey.com>
5994
5995 * dwarf2/read.c (class cutu_reader) <cutu_reader,
5996 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
5997 <keep>: Declare method.
5998 <m_keep>: Remove member.
5999 <~cutu_reader>: Remove.
6000 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6001 (cutu_reader::cutu_reader): Update.
6002 (cutu_reader::keep): Rename from ~cutu_reader.
6003 (process_psymtab_comp_unit, build_type_psymtabs_1)
6004 (process_skeletonless_type_unit, load_partial_comp_unit)
6005 (load_full_comp_unit, dwarf2_read_addr_index)
6006 (read_signatured_type): Update.
6007
135f5437
TT
60082020-02-08 Tom Tromey <tom@tromey.com>
6009
6010 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
6011 "want_partial_unit" parameter.
6012 (process_psymtab_comp_unit): Change want_partial_unit to bool.
6013 Inline check for DW_TAG_partial_unit.
6014 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
6015
9f66ff1c
TT
60162020-02-08 Tom Tromey <tom@tromey.com>
6017
6018 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
6019 read.c.
6020 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
6021 read.c.
6022
c8a7a66f
TT
60232020-02-08 Tom Tromey <tom@tromey.com>
6024
6025 * dwarf2/read.c (read_address): Move to comp-unit.c.
6026 (dwarf2_rnglists_process, dwarf2_ranges_process)
6027 (read_attribute_value, dwarf_decode_lines_1)
6028 (var_decode_location, decode_locdesc): Update.
6029 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
6030 read.c. Remove "cu" parameter.
6031 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
6032 method.
6033
8266302d
TT
60342020-02-08 Tom Tromey <tom@tromey.com>
6035
6036 * dwarf2/read.c (read_attribute_value, read_indirect_string)
6037 (read_indirect_line_string): Update.
6038 * dwarf2/comp-unit.c (read_offset): Remove.
6039 (read_comp_unit_head): Update.
6040 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
6041 method.
6042 (read_offset): Don't declare.
6043
4057dfde
TT
60442020-02-08 Tom Tromey <tom@tromey.com>
6045
6046 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
6047 * dwarf2/read.c (struct comp_unit_head): Move to
6048 dwarf2/comp-unit.h.
6049 (enum class rcuh_kind): Move to comp-unit.h.
6050 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
6051 (read_comp_unit_head, error_check_comp_unit_head)
6052 (read_and_check_comp_unit_head): Move to comp-unit.c.
6053 (read_offset, dwarf_unit_type_name): Likewise.
6054 (create_debug_type_hash_table, read_cutu_die_from_dwo)
6055 (cutu_reader::cutu_reader, read_call_site_scope)
6056 (find_partial_die, follow_die_offset): Update.
6057 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
6058
24aa364d
TT
60592020-02-08 Tom Tromey <tom@tromey.com>
6060
6061 * dwarf2/read.c (read_offset_1): Move to leb.c.
6062 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
6063 (dwarf_decode_macro_bytes): Update.
6064 * dwarf2/leb.c (read_offset): Rename; move from read.c.
6065 * dwarf2/leb.h (read_offset): Declare.
6066
2c7d5afc
TT
60672020-02-08 Tom Tromey <tom@tromey.com>
6068
6069 * dwarf2/read.c (dwarf2_section_size): Remove.
6070 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
6071 Update.
6072 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
6073
4075cb26
TT
60742020-02-08 Tom Tromey <tom@tromey.com>
6075
6076 * dwarf2/read.c (read_initial_length): Move to leb.c.
6077 * dwarf2/leb.h (read_initial_length): Declare.
6078 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
6079 handle_nonstd parameter.
6080 * dwarf2/frame.c (read_initial_length): Remove.
6081 (decode_frame_entry_1): Update.
6082
09ba997f
TT
60832020-02-08 Tom Tromey <tom@tromey.com>
6084
6085 * dwarf2/loc.c (dwarf2_find_location_expression)
6086 (dwarf_evaluate_loc_desc::get_tls_address)
6087 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
6088 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
6089 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
6090 (dwarf2_compile_property_to_c)
6091 (dwarf2_loc_desc_get_symbol_read_needs)
6092 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
6093 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
6094 (loclist_describe_location, loclist_tracepoint_var_ref)
6095 (loclist_generate_c_location): Update.
6096 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
6097 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
6098 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
6099 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
6100 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
6101 (dwarf2_per_cu_data::addr_size)
6102 (dwarf2_per_cu_data::ref_addr_size)
6103 (dwarf2_per_cu_data::text_offset)
6104 (dwarf2_per_cu_data::addr_type): Now methods.
6105 (per_cu_header_read_in): Make per_cu "const".
6106 (dwarf2_version): Remove.
6107 (dwarf2_per_cu_data::int_type): Now a method.
6108 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
6109 (set_die_type, read_array_type, read_subrange_index_type)
6110 (read_tag_string_type, read_subrange_type): Update.
6111 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
6112 offset_size, ref_addr_size, text_offset, addr_type, version,
6113 objfile, int_type, addr_sized_int_type>: Declare methods.
6114
96c738c0
TT
61152020-02-08 Tom Tromey <tom@tromey.com>
6116
6117 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
6118 Move earlier.
6119
8fdd972c
TT
61202020-02-08 Tom Tromey <tom@tromey.com>
6121
6122 * dwarf2/read.h (dwarf_line_debug): Declare.
6123 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
6124 * dwarf2/read.c: Move line_header code to new files.
6125 (dwarf_line_debug): No longer static.
6126 * dwarf2/line-header.c: New file.
6127 * dwarf2/line-header.h: New file.
6128
03075812
TT
61292020-02-08 Tom Tromey <tom@tromey.com>
6130
6131 * dwarf2/read.c (struct line_header) <file_full_name,
6132 file_file_name>: Return unique_xmalloc_ptr.
6133 (line_header::file_file_name): Update.
6134 (line_header::file_full_name): Update.
6135 (dw2_get_file_names_reader): Update.
6136 (macro_start_file): Update.
6137
bb822404
TT
61382020-02-08 Tom Tromey <tom@tromey.com>
6139
6140 * dwarf2/read.c (struct line_header) <file_full_name,
6141 file_file_name>: Declare methods.
6142 (dw2_get_file_names_reader): Update.
6143 (file_file_name): Now a method.
6144 (file_full_name): Likewise.
6145 (macro_start_file): Update.
6146
009b64fc
TT
61472020-02-08 Tom Tromey <tom@tromey.com>
6148
6149 * dwarf2/read.c (dwarf_always_disassemble)
6150 (show_dwarf_always_disassemble): Move to loc.c.
6151 (_initialize_dwarf2_read): Move "always-disassemble" registration
6152 to loc.c.
6153 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
6154 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
6155 static.
6156 (show_dwarf_always_disassemble): Move from read.c.
6157 (_initialize_dwarf2loc): Move always-disassemble from read.c.
6158
5895093f
TT
61592020-02-08 Tom Tromey <tom@tromey.com>
6160
6161 * dwarf2/read.c (~dwarf2_per_objfile): Update.
6162 (create_quick_file_names_table): Return htab_up.
6163 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
6164 Update.
6165 * dwarf2/read.h (struct dwarf2_per_objfile)
6166 <quick_file_names_table>: Now htab_up.
6167
b3b32279
TT
61682020-02-08 Tom Tromey <tom@tromey.com>
6169
6170 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
6171
1d33d811
TT
61722020-02-08 Tom Tromey <tom@tromey.com>
6173
6174 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
6175 Rewrite.
6176 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
6177 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
6178 (abbrev_table::abbrev_table): No longer inline.
6179 (ABBREV_HASH_SIZE): Remove.
6180 (abbrev_table::m_abbrevs): Now an htab_up.
6181
86de1d91
TT
61822020-02-08 Tom Tromey <tom@tromey.com>
6183
6184 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
6185 (cutu_reader): Update.
6186 (build_type_psymtabs_1): Update.
6187 * dwarf2/abbrev.c (abbrev_table::read): Rename.
6188 (abbrev_table::alloc_abbrev): Update.
6189 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
6190 (abbrev_table::read): New static method, renamed from
6191 abbrev_table_read_table.
6192 (abbrev_table::alloc_abbrev)
6193 (abbrev_table::add_abbrev): Now private.
6194 (abbrev_table::abbrev_table): Now private.
6195 (abbrev_table::m_abbrev_obstack): Now private. Rename.
6196
0335378b
TT
61972020-02-08 Tom Tromey <tom@tromey.com>
6198
6199 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
6200 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
6201 htab_up.
6202
48b490f2
TT
62032020-02-08 Tom Tromey <tom@tromey.com>
6204
6205 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
6206 htab_up.
6207 (lookup_dwo_unit_in_dwp): Update.
6208 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
6209 on obstack.
6210
bc68fb19
TT
62112020-02-08 Tom Tromey <tom@tromey.com>
6212
6213 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
6214 obstack.
6215
d15acc42
TT
62162020-02-08 Tom Tromey <tom@tromey.com>
6217
6218 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
6219 line_header_hash.
6220 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
6221 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
6222 Change type to htab_up.
6223
eaa5fa8b
TT
62242020-02-08 Tom Tromey <tom@tromey.com>
6225
6226 * dwarf2/read.c (allocate_type_unit_groups_table): Return
6227 htab_up. Don't allocate on obstack.
6228 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
6229 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
6230 Change type to htab_up.
6231
b0b6a987
TT
62322020-02-08 Tom Tromey <tom@tromey.com>
6233
6234 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
6235 Change type to htab_up.
6236 * dwarf2/read.c (create_signatured_type_table_from_index)
6237 (create_signatured_type_table_from_debug_names)
6238 (create_all_type_units, add_type_unit)
6239 (lookup_dwo_signatured_type, lookup_signatured_type)
6240 (process_skeletonless_type_unit): Update.
6241 (create_debug_type_hash_table, create_debug_types_hash_table):
6242 Change type of types_htab.
6243 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
6244 htab_up. Don't allocate on obstack.
6245 (create_cus_hash_table): Change type of cus_htab parameter.
6246 (struct dwo_file) <cus, tus>: Now htab_up.
6247 (lookup_dwo_signatured_type, lookup_dwo_cutu)
6248 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
6249 (queue_and_load_all_dwo_tus): Update.
6250 * dwarf2/index-write.c (write_gdbindex): Update.
6251 (write_debug_names): Update.
6252
39856def
TT
62532020-02-08 Tom Tromey <tom@tromey.com>
6254
6255 * dwarf2/read.h (struct dwarf2_queue_item): Move from
6256 dwarf2/read.c. Remove "next" member. Add constructor ntad
6257 destructor.
6258 (struct dwarf2_per_objfile) <queue>: New member.
6259 * dwarf2/read.c (struct dwarf2_queue_item): Move to
6260 dwarf2/read.h.
6261 (dwarf2_queue, dwarf2_queue_tail): Remove.
6262 (class dwarf2_queue_guard): Add parameter to constructor. Use
6263 DISABLE_COPY_AND_ASSIGN.
6264 <m_per_objfile>: New member.
6265 <~dwarf2_queue_guard>: Rewrite.
6266 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
6267 Update.
6268 (~dwarf2_queue_item): New.
6269
3e225074
TT
62702020-02-08 Tom Tromey <tom@tromey.com>
6271
6272 * dwarf2/read.c (struct die_info) <has_children>: New member.
6273 (dw2_get_file_names_reader): Remove has_children.
6274 (dw2_get_file_names): Update.
6275 (read_cutu_die_from_dwo): Remove has_children.
6276 (cutu_reader::init_tu_and_read_dwo_dies)
6277 (cutu_reader::cutu_reader): Update.
6278 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
6279 Remove has_children.
6280 (build_type_psymtabs_1, process_skeletonless_type_unit)
6281 (load_partial_comp_unit, load_full_comp_unit): Update.
6282 (create_dwo_cu_reader): Remove has_children.
6283 (create_cus_hash_table, read_die_and_children): Update.
6284 (read_full_die_1,read_full_die): Remove has_children.
6285 (read_signatured_type): Update.
6286 (class cutu_reader) <has_children>: Remove.
6287
82ca8957
TT
62882020-02-08 Tom Tromey <tom@tromey.com>
6289
6290 * dwarf2/expr.c: Rename from dwarf2expr.c.
6291 * dwarf2/expr.h: Rename from dwarf2expr.h.
6292 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
6293 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
6294 * dwarf2/frame.c: Rename from dwarf2-frame.c.
6295 * dwarf2/frame.h: Rename from dwarf2-frame.h.
6296 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
6297 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
6298 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
6299 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
6300 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
6301 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
6302 * dwarf2/loc.c: Rename from dwarf2loc.c.
6303 * dwarf2/loc.h: Rename from dwarf2loc.h.
6304 * dwarf2/read.c: Rename from dwarf2read.c.
6305 * dwarf2/read.h: Rename from dwarf2read.h.
6306 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
6307 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
6308 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
6309 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
6310 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
6311 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
6312 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
6313 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
6314 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
6315 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
6316 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
6317 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
6318 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
6319 Update.
6320 * Makefile.in (COMMON_SFILES): Update.
6321 (HFILES_NO_SRCDIR): Update.
6322
9e35d499
TT
63232020-02-08 Tom Tromey <tom@tromey.com>
6324
6325 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
6326 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
6327
1eba2311
TT
63282020-02-08 Tom Tromey <tom@tromey.com>
6329
6330 * dwarf2read.h (struct die_info): Don't declare.
6331
e41c2da2
TT
63322020-02-08 Tom Tromey <tom@tromey.com>
6333
6334 * dwarf2read.h (die_info_ptr): Remove typedef.
6335
4fc6c0d5
TT
63362020-02-08 Tom Tromey <tom@tromey.com>
6337
6338 * dwarf2read.c (read_call_site_scope)
6339 (handle_data_member_location, dwarf2_add_member_fn)
6340 (mark_common_block_symbol_computed, read_common_block)
6341 (attr_to_dynamic_prop, partial_die_info::read)
6342 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
6343 (dwarf2_symbol_mark_computed, set_die_type): Update.
6344 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
6345 method.
6346 (attr_form_is_block): Don't declare.
6347 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
6348
cd6c91b4
TT
63492020-02-08 Tom Tromey <tom@tromey.com>
6350
6351 * dwarf2read.c (dwarf2_find_base_address, )
6352 (read_call_site_scope, rust_containing_type)
6353 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
6354 (handle_data_member_location, dwarf2_add_member_fn)
6355 (get_alignment, read_structure_type, process_structure_scope)
6356 (mark_common_block_symbol_computed, read_common_block)
6357 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
6358 (partial_die_info::read, read_attribute_value, new_symbol)
6359 (lookup_die_type, dwarf2_get_ref_die_offset)
6360 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
6361 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
6362 (dwarf2_symbol_mark_computed): Update.
6363 * dwarf2/attribute.h (struct attribute) <value_as_address,
6364 form_is_section_offset, form_is_constant, form_is_ref>: Declare
6365 methods.
6366 (value_as_address, attr_form_is_section_offset)
6367 (attr_form_is_constant, attr_form_is_ref): Don't declare.
6368 * dwarf2/attribute.c (attribute::value_as_address)
6369 (attribute::form_is_section_offset, attribute::form_is_constant)
6370 (attribute::form_is_ref): Now methods.
6371
162dce55
TT
63722020-02-08 Tom Tromey <tom@tromey.com>
6373
6374 * dwarf2read.c (struct attribute, DW_STRING)
6375 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
6376 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
6377 (attr_form_is_block, attr_form_is_section_offset)
6378 (attr_form_is_constant, attr_form_is_ref): Move.
6379 * dwarf2/attribute.h: New file.
6380 * dwarf2/attribute.c: New file, from dwarf2read.c.
6381 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
6382
3054dd54
TT
63832020-02-08 Tom Tromey <tom@tromey.com>
6384
6385 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
6386 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
6387 Move.
6388 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
6389 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
6390 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
6391 abbrev.c.
6392 * dwarf2/abbrev.h: New file.
6393 * dwarf2/abbrev.c: New file, from dwarf2read.c.
6394 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
6395
96b79293
TT
63962020-02-08 Tom Tromey <tom@tromey.com>
6397
6398 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
6399 (dwarf2_section_size, dwarf2_get_section_info)
6400 (create_signatured_type_table_from_debug_names)
6401 (create_addrmap_from_aranges, read_debug_names_from_section)
6402 (get_gdb_index_contents_from_section, read_comp_unit_head)
6403 (error_check_comp_unit_head, read_abbrev_offset)
6404 (create_debug_type_hash_table, init_cu_die_reader)
6405 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
6406 (read_comp_units_from_section, create_cus_hash_table)
6407 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6408 (create_dwp_v2_section, dwarf2_rnglists_process)
6409 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
6410 (abbrev_table_read_table, read_indirect_string_at_offset_from)
6411 (read_indirect_string_from_dwz, read_addr_index_1)
6412 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
6413 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6414 (fill_in_loclist_baton): Update.
6415 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
6416 get_containing_section, get_bfd_owner, get_bfd_section,
6417 get_file_name, get_id, get_flags, empty, read>: Declare methods.
6418 (dwarf2_read_section, get_section_name, get_section_file_name)
6419 (get_containing_section, get_section_bfd_owner)
6420 (get_section_bfd_section, get_section_name, get_section_file_name)
6421 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
6422 declare.
6423 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
6424 (dwarf2_section_info::get_bfd_owner)
6425 (dwarf2_section_info::get_bfd_section)
6426 (dwarf2_section_info::get_name)
6427 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
6428 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
6429 (dwarf2_section_info::read): Now methods.
6430 * dwarf-index-write.c (class debug_names): Update.
6431
2c86cff9
TT
64322020-02-08 Tom Tromey <tom@tromey.com>
6433
6434 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
6435 Move to dwarf2/section.h.
6436 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
6437 (get_section_bfd_section, get_section_name)
6438 (get_section_file_name, get_section_id, get_section_flags)
6439 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
6440 dwarf2/section.c.
6441 * dwarf2/section.h: New file.
6442 * dwarf2/section.c: New file, from dwarf2read.c.
6443 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
6444
f4382c45
TT
64452020-02-08 Tom Tromey <tom@tromey.com>
6446
6447 * dwarf2read.h (read_unsigned_leb128): Don't declare.
6448 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
6449 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
6450 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
6451 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
6452 * dwarf2/leb.h: New file, from dwarf2read.c.
6453 * dwarf2/leb.c: New file, from dwarf2read.c.
6454 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
6455 Remove.
6456 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
6457 (COMMON_SFILES): Add dwarf2/leb.c.
6458
01840b7a
JB
64592020-02-08 Joel Brobecker <brobecker@adacore.com>
6460
6461 GDB 9.1 released.
6462
dfcb27e4
IB
64632020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
6464
6465 PR gdb/25190:
aac66a4c
SM
6466 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
6467 * gdb/remote.c (remote_console_output): Update.
6468 * gdb/ui-file.c (fputs_unfiltered): Rename to...
6469 (ui_file_puts): ...this.
6470 * gdb/ui-file.h (ui_file_puts): Add declaration.
6471 * gdb/utils.c (emit_style_escape): Update.
6472 (flush_wrap_buffer): Update.
6473 (fputs_maybe_filtered): Update.
6474 (fputs_unfiltered): Add function.
dfcb27e4 6475
faa17681
IB
64762020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
6477
aac66a4c
SM
6478 * gdb/event-loop.c (gdb_wait_for_event): Update.
6479 * gdb/printcmd.c (printf_command): Update.
6480 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
6481 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
6482 (gdb_os_flush_stderr): Update.
6483 * gdb/remote.c (remote_console_output): Update.
6484 * gdb/ui-file.c (gdb_flush): Rename to...
6485 (ui_file_flush): ...this.
6486 (stderr_file::write): Update.
6487 (stderr_file::puts): Update.
6488 * gdb/ui-file.h (gdb_flush): Rename to...
6489 (ui_file_flush): ...this.
6490 * gdb/utils.c (gdb_flush): Add function.
6491 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 6492
5abbbe1d
TT
64932020-02-07 Tom Tromey <tromey@adacore.com>
6494
6495 PR breakpoints/24915:
6496 * source.c (find_and_open_source): Do not check basenames_may_differ.
6497
919adfe8
TT
64982020-02-07 Tom Tromey <tom@tromey.com>
6499
6500 * README: Update gdbserver documentation.
6501 * gdbserver: Move to top level.
6502 * configure.tgt (build_gdbserver): Remove.
6503 * configure.ac: Remove --enable-gdbserver.
6504 * configure: Rebuild.
6505 * Makefile.in (distclean): Don't mention gdbserver.
6506
1d5d29e7
SV
65072020-02-06 Shahab Vahedi <shahab@synopsys.com>
6508
6509 * source-cache.c (source_cache::ensure): Surround
6510 get_plain_source_lines with a try/catch.
6511 (source_cache::get_line_charpos): Get rid of try/catch
6512 and only check for the return value of "ensure".
6513 * tui/tui-source.c (tui_source_window::set_contents):
6514 Simplify "nlines" calculation.
6515
6eb1129c
SV
65162020-02-06 Shahab Vahedi <shahab@synopsys.com>
6517
6518 * MAINTAINERS (Write After Approval): Add myself.
6519
c6a42d11
CB
65202020-02-05 Christian Biesinger <cbiesinger@google.com>
6521
6522 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
6523 function call.
6524
c8ecdda6
CB
65252020-02-05 Christian Biesinger <cbiesinger@google.com>
6526
6527 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
6528
f6480e70
MR
65292020-02-05 Maciej W. Rozycki <macro@wdc.com>
6530
6531 * nat/riscv-linux-tdesc.h: New file.
6532 * nat/riscv-linux-tdesc.c: New file, taking code from...
6533 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
6534 ... here.
6535 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
6536 NATDEPFILES.
6537
dcc9fbc6
AB
65382020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
6539
6540 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
6541 we don't set the fake simulator ptid to the null_ptid.
6542
719546c4
SM
65432020-02-03 Simon Marchi <simon.marchi@efficios.com>
6544
6545 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
6546 * gdbthread.h (class thread_info) <resumed>: Likewise.
6547 * infrun.c (resume_1): Likewise.
6548 (proceed): Likewise.
6549 (infrun_thread_stop_requested): Likewise.
6550 (stop_all_threads): Likewise.
6551 (handle_inferior_event): Likewise.
6552 (restart_threads): Likewise.
6553 (finish_step_over): Likewise.
6554 (keep_going_stepped_thread): Likewise.
6555 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
6556 (linux_handle_extended_wait): Likewise.
6557 * record-btrace.c (get_thread_current_frame_id): Likewise.
6558 * record-full.c (record_full_wait_1): Likewise.
6559 * remote.c (remote_target::process_initial_stop_replies): Likewise.
6560 * target.c (target_resume): Likewise.
6561 * thread.c (set_running_thread): Likewise.
6562
e409c542
AKS
65632020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6564
6565 * f-valprint.c (f77_print_array_1): Changed datatype of index
6566 variable to LONGEST from int to enable it to contain bound
6567 values correctly.
6568
ee98c0da
MR
65692020-02-03 Maciej W. Rozycki <macro@wdc.com>
6570
6571 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
6572 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
6573 offsets according to FLEN determined.
6574 (riscv_linux_nat_target::read_description): Determine FLEN
6575 dynamically.
6576 (riscv_linux_nat_target::fetch_registers): Size regset buffer
6577 according to FLEN determined.
6578 (riscv_linux_nat_target::store_registers): Likewise.
6579
aa66aac4
SV
65802020-02-01 Shahab Vahedi <shahab@synopsys.com>
6581
6582 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
6583 when reg->group is empty and reggroup is not.
6584
fd9faca8
TT
65852020-01-31 Tom Tromey <tromey@adacore.com>
6586
6587 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
6588 Call beneath target's mourn_inferior after unpushing.
6589
42330a68
AB
65902020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
6591
6592 PR tui/9765
6593 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
6594 have enough lines to fill the screen, still return the lowest
6595 address we found.
6596
7a27a45b
AB
65972020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
6598
6599 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
6600 '-', '<', and '>' commands.
6601
c47f70e2
PA
66022020-01-29 Pedro Alves <palves@redhat.com>
6603 Sergio Durigan Junior <sergiodj@redhat.com>
6604
6605 * infcmd.c (construct_inferior_arguments): Assert that
6606 'argc' is greater than 0.
6607
5133a315
LM
66082020-01-29 Luis Machado <luis.machado@linaro.org>
6609
6610 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
6611 (BRK_INSN_MASK): Define to 0xd4200000.
6612 (aarch64_program_breakpoint_here_p): New function.
6613 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
6614 * arch-utils.c (default_program_breakpoint_here_p): Moved from
6615 breakpoint.c.
6616 * arch-utils.h (default_program_breakpoint_here_p): Moved from
6617 breakpoint.h
6618 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
6619 call gdbarch_program_breakpoint_here_p.
6620 (program_breakpoint_here): Moved to arch-utils.c, renamed to
6621 default_program_breakpoint_here_p, changed return type to bool and
6622 simplified.
6623 * breakpoint.h (program_breakpoint_here): Moved prototype to
6624 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
6625 return type to bool.
6626 * gdbarch.c: Regenerate.
6627 * gdbarch.h: Regenerate.
6628 * gdbarch.sh (program_breakpoint_here_p): New method.
6629 * infrun.c (handle_signal_stop): Call
6630 gdbarch_program_breakpoint_here_p.
6631
168f8c6b
TT
66322020-01-26 Tom Tromey <tom@tromey.com>
6633
6634 * ctfread.c (struct ctf_fp_info): Reindent.
6635 (_initialize_ctfread): Remove.
6636
128a391f
TT
66372020-01-26 Tom Tromey <tom@tromey.com>
6638
6639 * psymtab.c (partial_map_expand_apply)
6640 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6641 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6642 (psym_print_stats, psym_expand_symtabs_for_function)
6643 (psym_map_symbol_filenames, psym_map_matching_symbols)
6644 (psym_expand_symtabs_matching)
6645 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6646 (maintenance_check_psymtabs): Use new methods.
6647 * psympriv.h (struct partial_symtab) <readin_p,
6648 get_compunit_symtab>: New methods.
6649 <readin, compunit_symtab>: Remove members.
6650 (struct standard_psymtab): New.
6651 (struct legacy_psymtab): Derive from standard_psymtab.
6652 * dwarf2read.h (struct dwarf2_psymtab): Derive from
6653 standard_psymtab.
6654 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
6655
0494dbec
TT
66562020-01-26 Tom Tromey <tom@tromey.com>
6657
6658 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
6659 read_dependencies. Add assert.
6660 * psymtab.c (partial_symtab::read_dependencies): New method.
6661 * psympriv.h (struct partial_symtab) <read_dependencies>: New
6662 method.
6663 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
6664 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
6665 read_dependencies.
6666 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
6667 Add assert.
6668
8566b89b
TT
66692020-01-26 Tom Tromey <tom@tromey.com>
6670
6671 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
6672 Call expand_psymtab.
6673 (xcoff_read_symtab): Call expand_psymtab.
6674 (xcoff_start_psymtab, xcoff_end_psymtab): Set
6675 legacy_expand_psymtab.
6676 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
6677 method.
6678 (struct legacy_psymtab) <expand_psymtab>: Implement.
6679 <legacy_expand_psymtab>: New member.
6680 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
6681 (parse_partial_symbols): Set legacy_expand_psymtab.
6682 (psymtab_to_symtab_1): Change argument order. Call
6683 expand_psymtab.
6684 (new_psymtab): Set legacy_expand_psymtab.
6685 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
6686 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
6687 expand_psymtab.
6688 (dwarf2_psymtab::expand_psymtab): Rename from
6689 psymtab_to_symtab_1. Call expand_psymtab.
6690 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
6691 (dbx_end_psymtab): Likewise.
6692 (dbx_psymtab_to_symtab_1): Change argument order. Call
6693 expand_psymtab.
6694 (dbx_read_symtab): Call expand_psymtab.
6695 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
6696 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
6697 (ctf_psymtab::read_symtab): Call expand_psymtab.
6698
077cbab2
TT
66992020-01-26 Tom Tromey <tom@tromey.com>
6700
6701 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
6702 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
6703 messages.
6704 * mdebugread.c (mdebug_read_symtab): Remove prints.
6705 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
6706 assert.
6707 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
6708
891813be
TT
67092020-01-26 Tom Tromey <tom@tromey.com>
6710
6711 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
6712 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
6713 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
6714 legacy_symtab.
6715 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
6716 * psymtab.c (psymtab_to_symtab): Call method.
6717 (dump_psymtab): Update.
6718 * psympriv.h (struct partial_symtab): Add virtual destructor.
6719 <read_symtab>: New method.
6720 (struct legacy_symtab): New.
6721 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
6722 (struct pst_map) <pst>: Now a legacy_psymtab.
6723 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
6724 (new_psymtab): Use legacy_psymtab.
6725 * dwarf2read.h (struct dwarf2_psymtab): New.
6726 (struct dwarf2_per_cu_data) <psymtab>: Use it.
6727 * dwarf2read.c (dwarf2_create_include_psymtab)
6728 (dwarf2_build_include_psymtabs, create_type_unit_group)
6729 (create_partial_symtab, process_psymtab_comp_unit_reader)
6730 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
6731 (set_partial_user): Use dwarf2_psymtab.
6732 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
6733 (psymtab_to_symtab_1, process_full_comp_unit)
6734 (process_full_type_unit, dwarf2_ranges_read)
6735 (dwarf2_get_pc_bounds, psymtab_include_file_name)
6736 (dwarf_decode_lines): Use dwarf2_psymtab.
6737 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
6738 (add_address_entry_worker, write_one_signatured_type)
6739 (recursively_count_psymbols, recursively_write_psymbols)
6740 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
6741 (write_debug_names): Likewise.
6742 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
6743 <pst>: Now a legacy_psymtab.
6744 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
6745 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
6746 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
6747 * ctfread.c (struct ctf_psymtab): New.
6748 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
6749 ctf_psymtab.
6750 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
6751 (create_partial_symtab): Return a ctf_psymtab.
6752 (scan_partial_symbols): Update.
6753
c3693a1d
TT
67542020-01-26 Tom Tromey <tom@tromey.com>
6755
6756 * xcoffread.c (xcoff_start_psymtab): Use new.
6757 * psymtab.c (partial_symtab::partial_symtab): New constructor,
6758 renamed from start_psymtab_common.
6759 * psympriv.h (struct partial_symtab): Add new constructor.
6760 (start_psymtab_common): Don't declare.
6761 * mdebugread.c (parse_partial_symbols): Use new.
6762 * dwarf2read.c (create_partial_symtab): Use new.
6763 * dbxread.c (start_psymtab): Use new.
6764 * ctfread.c (create_partial_symtab): Use new.
6765
32caafd0
TT
67662020-01-26 Tom Tromey <tom@tromey.com>
6767
6768 * xcoffread.c (xcoff_end_psymtab): Use new.
6769 * psymtab.c (start_psymtab_common): Use new.
6770 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
6771 Update.
6772 * psympriv.h (struct partial_symtab): Add parameters to
6773 constructor. Don't inline.
6774 (allocate_psymtab): Don't declare.
6775 * mdebugread.c (new_psymtab): Use new.
6776 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
6777 * dbxread.c (dbx_end_psymtab): Use new.
6778
abaa2f23
TT
67792020-01-26 Tom Tromey <tom@tromey.com>
6780
6781 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
6782 allocate_psymtab. Update documentation.
6783 * psymtab.c (psymtab_storage::install_psymtab): Rename from
6784 allocate_psymtab. Do not use new.
6785 (allocate_psymtab): Use new. Update.
6786
6d94535f
TT
67872020-01-26 Tom Tromey <tom@tromey.com>
6788
6789 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6790 * psymtab.c (psym_print_stats): Update.
6791 * psympriv.h (struct partial_symtab) <readin,
6792 psymtabs_addrmap_supported, anonymous>: Now bool.
6793 * mdebugread.c (psymtab_to_symtab_1): Update.
6794 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
6795 (build_type_psymtabs_reader, psymtab_to_symtab_1)
6796 (process_full_comp_unit, process_full_type_unit): Update.
6797 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6798 * ctfread.c (psymtab_to_symtab): Update.
6799
6f17252b
TT
68002020-01-26 Tom Tromey <tom@tromey.com>
6801
6802 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
6803 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
6804 * psymtab.c (psymtab_storage): Delete psymtabs.
6805 (psymtab_storage::allocate_psymtab): Use new.
6806 (psymtab_storage::discard_psymtab): Use delete.
6807 * psympriv.h (struct partial_symtab): Add constructor and
6808 initializers.
6809
f6f1cebc
TT
68102020-01-26 Tom Tromey <tom@tromey.com>
6811
6812 * machoread.c: Do not include psympriv.h.
6813
e47e48f6
PW
68142020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6815
6816 * NEWS: Mention the new option and the set/show commands.
6817
a2fedca9
PW
68182020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6819
6820 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
6821 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
6822 (validate_exec_file): New variables, enums, functions.
6823 (exec_file_locate_attach, print_section_info): Style the filenames.
6824 (_initialize_exec): Install show_exec_file_mismatch_command and
6825 set_exec_file_mismatch_command.
6826 * gdbcore.h (validate_exec_file): Declare.
6827 * infcmd.c (attach_command): Call validate_exec_file.
6828 * remote.c ( remote_target::remote_add_inferior): Likewise.
6829
7ffa82e1
AB
68302020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
6831
6832 * frame.c (find_frame_sal): Move call to get_next_frame into more
6833 inner scope.
6834 * inline-frame.c (inilne_state) <inline_state>: Update argument
6835 types.
6836 (inilne_state) <skipped_symbol>: Rename to...
6837 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
6838 (skip_inline_frames): Build vector of skipped symbols and use this
6839 to reate the inline_state.
6840 (inline_skipped_symbol): Add a comment and some assertions, fetch
6841 skipped symbol from the list.
6842
3d92a3e3
AB
68432020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
6844
6845 * buildsym.c (lte_is_less_than): Delete.
6846 (buildsym_compunit::end_symtab_with_blockvector): Create local
6847 lambda function to sort line table entries, and use
6848 std::stable_sort instead of std::sort.
6849 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
6850 markers when looking for a previous line.
6851
94a72be7
AB
68522020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
6853
6854 * dwarf2read.c (lnp_state_machine::record_line): Include
6855 end_sequence parameter in debug print out. Record the line if we
6856 are at an end_sequence marker even if it's not the start of a
6857 statement.
6858 * symmisc.c (maintenance_print_one_line_table): Print end of
6859 sequence markers with 'END' not '0'.
6860
53af73bf
PA
68612020-01-24 Pedro Alves <palves@redhat.com>
6862
6863 PR gdb/25410
6864 * thread.c (scoped_restore_current_thread::restore): Use
6865 switch_to_inferior_no_thread.
6866 * exec.c: Include "progspace-and-thread.h".
6867 (add_target_sections, remove_target_sections):
6868 scoped_restore_current_pspace_and_thread instead of
6869 scoped_restore_current_thread.
6870 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
6871 and aspace to the inferior before calling clone_program_space.
6872 Remove stale comment.
6873
3050c6f4
CB
68742020-01-24 Christian Biesinger <cbiesinger@google.com>
6875
6876 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
6877 (arm_netbsd_nat_target::fetch_registers): ...this.
6878 (arm_nbsd_nat_target::store_registers): Rename to...
6879 (arm_netbsd_nat_target::store_registers): ...this.
6880
73685c7e
CB
68812020-01-24 Christian Biesinger <cbiesinger@google.com>
6882
6883 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6884 register_t.
6885
89203d40
CB
68862020-01-24 Christian Biesinger <cbiesinger@google.com>
6887
6888 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
6889 Update comment.
6890 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
6891 Likewise.
6892 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
6893 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
6894 the correct replacement (iterate_over_regset_sections).
6895 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
6896 Update comment.
6897
1ba1ac88
AB
68982020-01-24 Graham Markall <graham.markall@embecosm.com>
6899
6900 PR gdb/23718
6901 * gdb/python/python.c (execute_gdb_command): Call
6902 async_enable_stdin in catch block.
6903
f3364a6d
AB
69042020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
6905
6906 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
6907 SWITCH_THRU_ALL_UIS.
6908
733d0a67
AB
69092020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
6910
6911 PR tui/9765
6912 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
6913 comment, add extra parameter, and update to store previous symbol
6914 when appropriate.
6915 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
6916 add extra parameter.
6917 * tui/tui-disasm.c (tui_disassemble): Update header comment,
6918 remove unneeded parameter, add try/catch around gdb_print_insn,
6919 rewrite to add items to asm_lines vector.
6920 (tui_find_backward_disassembly_start_address): New function.
6921 (tui_find_disassembly_address): Updated throughout.
6922 (tui_disasm_window::set_contents): Update for changes to
6923 tui_disassemble.
6924 (tui_disasm_window::do_scroll_vertical): No need to adjust the
6925 number of lines to scroll.
6926
b3b3bada
SM
69272020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
6928
6929 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
6930 (SECT_OFF_DATA): Likewise.
6931 (SECT_OFF_RODATA): Likewise.
6932 (SECT_OFF_TEXT): Likewise.
6933 (SECT_OFF_BSS): Likewise.
6934 (struct objfile) <text_section_offset, data_section_offset>: New
6935 methods.
6936 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
6937 objfile::text_section_offset.
6938 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
6939 * coffread.c (coff_symtab_read): Likewise.
6940 (enter_linenos): Likewise.
6941 (process_coff_symbol): Likewise.
6942 * ctfread.c (get_objfile_text_range): Likewise.
6943 * dtrace-probe.c (dtrace_probe::get_relocated_address):
6944 Use objfile::data_section_offset.
6945 * dwarf2-frame.c (execute_cfa_program): Use
6946 objfile::text_section_offset.
6947 (dwarf2_frame_find_fde): Likewise.
6948 * dwarf2read.c (create_addrmap_from_index): Likewise.
6949 (create_addrmap_from_aranges): Likewise.
6950 (dw2_find_pc_sect_compunit_symtab): Likewise.
6951 (process_psymtab_comp_unit_reader): Likewise.
6952 (add_partial_symbol): Likewise.
6953 (add_partial_subprogram): Likewise.
6954 (process_full_comp_unit): Likewise.
6955 (read_file_scope): Likewise.
6956 (read_func_scope): Likewise.
6957 (read_lexical_block_scope): Likewise.
6958 (read_call_site_scope): Likewise.
6959 (dwarf2_rnglists_process): Likewise.
6960 (dwarf2_ranges_process): Likewise.
6961 (dwarf2_ranges_read): Likewise.
6962 (dwarf_decode_lines_1): Likewise.
6963 (new_symbol): Likewise.
6964 (dwarf2_fetch_die_loc_sect_off): Likewise.
6965 (dwarf2_per_cu_text_offset): Likewise.
6966 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
6967 * hppa-tdep.c (read_unwind_info): Likewise.
6968 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
6969 * psympriv.h (struct partial_symtab): Likewise.
6970 * psymtab.c (find_pc_sect_psymtab): Likewise.
6971 * solib-svr4.c (enable_break): Likewise.
6972 * stap-probe.c (relocate_address): Use
6973 objfile::data_section_offset.
6974 * xcoffread.c (enter_line_range): Use
6975 objfile::text_section_offset.
6976 (read_xcoff_symtab): Likewise.
6977
ab53f382
SM
69782020-01-23 Simon Marchi <simon.marchi@efficios.com>
6979
6980 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
6981 declaration to narrower scopes.
6982
e7eee665
SM
69832020-01-23 Simon Marchi <simon.marchi@efficios.com>
6984
6985 * darwin-nat.h (struct darwin_exception_msg, enum
6986 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
6987 Move up.
6988 (class darwin_nat_target) <wait_1, check_new_threads,
6989 decode_exception_message, decode_message, stop_inferior,
6990 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
6991 * darwin-nat.c (darwin_check_new_threads): Rename to...
6992 (darwin_nat_target::check_new_threads): ... this.
6993 (darwin_suspend_inferior_it): Remove.
6994 (darwin_decode_exception_message): Rename to...
6995 (darwin_nat_target::decode_exception_message): ... this.
6996 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
6997 (darwin_decode_message): Rename to...
6998 (darwin_nat_target::decode_message): ... this.
6999 (cancel_breakpoint): Rename to...
7000 (darwin_nat_target::cancel_breakpoint): ... this.
7001 (darwin_wait): Rename to...
7002 (darwin_nat_target::wait_1): ... this. Use range-based for loop
7003 instead of iterate_over_inferiors.
7004 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
7005 (darwin_stop_inferior): Rename to...
7006 (darwin_nat_target::stop_inferior): ... this.
7007 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
7008 (darwin_init_thread_list): Rename to...
7009 (darwin_nat_target::init_thread_list): ... this.
7010 (darwin_ptrace_him): Rename to...
7011 (darwin_nat_target::ptrace_him): ... this.
7012 (darwin_nat_target::create_inferior): Pass lambda function to
7013 fork_inferior.
7014 (darwin_nat_target::detach): Call stop_inferior instead of
7015 darwin_stop_inferior.
7016 * fork-inferior.h (fork_inferior): Change init_trace_fun
7017 parameter to gdb::function_view.
7018 * fork-inferior.c (fork_inferior): Likewise.
7019
c162ed3e
HD
70202020-01-23 Hannes Domani <ssbssa@yahoo.de>
7021
7022 * i386-cygwin-tdep.c (core_process_module_section): Update.
7023 * windows-nat.c (struct lm_info_windows): Add text_offset.
7024 (windows_xfer_shared_libraries): Update.
7025 * windows-tdep.c (windows_xfer_shared_library):
7026 Add text_offset_cached argument.
7027 * windows-tdep.h (windows_xfer_shared_library): Update.
7028
a1237872
SM
70292020-01-21 Simon Marchi <simon.marchi@efficios.com>
7030
7031 * gdbarch.sh: Add declaration for _initialize_gdbarch.
7032
b3ee6dd9
SM
70332020-01-21 Simon Marchi <simon.marchi@efficios.com>
7034
7035 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
7036 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
7037 replace with range-based for.
7038 (gdbsim_interrupt_inferior): Remove.
7039 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
7040 with a range-based for. Inline code from
7041 gdbsim_interrupt_inferior.
7042
f9fac3c8
SM
70432020-01-21 Simon Marchi <simon.marchi@efficios.com>
7044
7045 * infrun.c (proceed): Fix indentation.
7046
f6474de9
TT
70472020-01-21 Tom Tromey <tromey@adacore.com>
7048
7049 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
7050 * python/python.c (python_extension_ops): Update.
7051 (gdbpy_colorize): New function.
7052 * python/lib/gdb/__init__.py (colorize): New function.
7053 * extension.h (ext_lang_colorize): Declare.
7054 * extension.c (ext_lang_colorize): New function.
7055 * extension-priv.h (struct extension_language_ops) <colorize>: New
7056 member.
7057 * cli/cli-style.c (_initialize_cli_style): Update help text.
7058
f0c702d4
LM
70592020-01-21 Luis Machado <luis.machado@linaro.org>
7060
7061 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
7062 <cond>: Change type to bool.
7063 (aarch64_displaced_step_b_cond): Update cond to use bool type.
7064 (aarch64_displaced_step_cb): Likewise.
7065 (aarch64_displaced_step_tb): Likewise.
7066
1ab139e5
LM
70672020-01-21 Luis Machado <luis.machado@linaro.org>
7068
7069 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
7070 output.
7071
0c271889
LM
70722020-01-21 Luis Machado <luis.machado@linaro.org>
7073
7074 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
7075 <pc_adjust>: Adjust the documentation.
7076 (aarch64_displaced_step_fixup): Check if PC really moved before
7077 adjusting it.
7078
4d89c1c7
TT
70792020-01-19 Tom Tromey <tom@tromey.com>
7080
7081 * disasm.c (~gdb_disassembler): New destructor.
7082 (gdb_buffered_insn_length): Call disassemble_free_target.
7083 * disasm.h (class gdb_disassembler): Declare destructor. Use
7084 DISABLE_COPY_AND_ASSIGN.
7085
c0ab21c2
TT
70862020-01-19 Tom Tromey <tom@tromey.com>
7087
7088 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
7089 (die_reader_func_ftype): Remove.
7090 (cutu_reader): New class.
7091 (dw2_get_file_names_reader): Remove "data" parameter.
7092 (dw2_get_file_names): Use cutu_reader.
7093 (create_debug_type_hash_table): Update.
7094 (read_cutu_die_from_dwo): Update comment.
7095 (lookup_dwo_unit): Add dwo_name parameter.
7096 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
7097 die_reader_func_ftype and data parameters.
7098 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
7099 Remove die_reader_func_ftype and data parameters.
7100 (~cutu_reader): New; from init_cutu_and_read_dies.
7101 (cutu_reader::cutu_reader): Rename from
7102 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
7103 and data parameters.
7104 (init_cutu_and_read_dies_simple): Remove.
7105 (struct process_psymtab_comp_unit_data): Remove.
7106 (process_psymtab_comp_unit_reader): Remove data parameter; add
7107 want_partial_unit and pretend_language parameters.
7108 (process_psymtab_comp_unit): Use cutu_reader.
7109 (build_type_psymtabs_reader): Remove data parameter.
7110 (build_type_psymtabs_1): Use cutu_reader.
7111 (process_skeletonless_type_unit): Likewise.
7112 (load_partial_comp_unit_reader): Remove.
7113 (load_partial_comp_unit): Use cutu_reader.
7114 (load_full_comp_unit_reader): Remove.
7115 (load_full_comp_unit): Use cutu_reader.
7116 (struct create_dwo_cu_data): Remove.
7117 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
7118 dwo_unit parameters.
7119 (create_cus_hash_table): Use cutu_reader.
7120 (struct dwarf2_read_addr_index_data): Remove.
7121 (dwarf2_read_addr_index_reader): Remove.
7122 (dwarf2_read_addr_index): Use cutu_reader.
7123 (read_signatured_type_reader): Remove.
7124 (read_signatured_type): Use cutu_reader.
7125
45bbae5c
TT
71262020-01-19 Tom Tromey <tom@tromey.com>
7127
7128 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
7129 * tui/tui-wingeneral.h (class tui_suppress_output): New.
7130 (tui_wrefresh): Declare.
7131 * tui/tui-wingeneral.c (suppress_output): New global.
7132 (tui_suppress_output, ~tui_suppress_output): New constructor and
7133 destructor.
7134 (tui_wrefresh): New function.
7135 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
7136 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
7137 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
7138 method.
7139 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
7140 tui_wrefresh.
7141 (tui_data_window::no_refresh): New method.
7142 (tui_data_item_window::refresh_window): Call tui_wrefresh.
7143 (tui_reg_command): Use tui_suppress_output
7144 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
7145 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
7146 method.
7147 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
7148
4f13c1c0
TT
71492020-01-19 Tom Tromey <tom@tromey.com>
7150
7151 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7152 Handle case where symtab is null.
7153
fa47e446
SM
71542020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
7155
7156 * linux-fork.c (one_fork_p): Simplify.
7157
26f42329
SM
71582020-01-17 Simon Marchi <simon.marchi@efficios.com>
7159
7160 * top.c (struct qt_args): Remove.
7161 (kill_or_detach): Change return type to void, replace `void *`
7162 parameter with a proper one.
7163 (print_inferior_quit_action): Likewise.
7164 (quit_confirm): Use range-based for loop to iterate over inferiors.
7165 (quit_force): Likewise.
7166
a9ac81b1
SM
71672020-01-17 Simon Marchi <simon.marchi@efficios.com>
7168
7169 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
7170 `void *` parameter with proper parameters.
7171 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
7172 (print_one_inferior): Change return type to void, replace `void *`
7173 parameter with proper parameters.
7174 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
7175 inferiors.
7176 (get_other_inferior): Remove.
7177 (mi_cmd_remove_inferior): Use range-based loop to iterate over
7178 inferiors.
7179
788eca49
SM
71802020-01-17 Simon Marchi <simon.marchi@efficios.com>
7181
7182 * mi/mi-interp.c (report_initial_inferior): Remove.
7183 (mi_interp::init): Use range-based for to iterate over inferiors.
7184
d9bc85b6
SM
71852020-01-17 Simon Marchi <simon.marchi@efficios.com>
7186
7187 * python/py-inferior.c (build_inferior_list): Remove.
7188 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
7189
40c94099
CB
71902020-01-16 Christian Biesinger <cbiesinger@google.com>
7191
7192 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
7193 (btrace_stitch_trace): Likewise.
7194 * charset.c (intermediate_encoding): Likewise (vaild).
7195 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
7196 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
7197 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
7198
e0cdfe3c
HD
71992020-01-16 Hannes Domani <ssbssa@yahoo.de>
7200
7201 * windows-tdep.c (windows_get_tlb_type):
7202 Add rtl_user_process_parameters type.
7203
790f1718 72042020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 7205 Norbert Lange <nolange79@gmail.com>
790f1718
PA
7206
7207 PR build/24805
7208 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
7209 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
7210 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
7211 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
7212 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
7213 (ps_plog): Redeclare exported functions with default visibility.
7214
3112ed97
NA
72152020-01-16 Nitika Achra <Nitika.Achra@amd.com>
7216
7217 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
7218 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
7219
8dc3273e
SM
72202020-01-15 Simon Marchi <simon.marchi@efficios.com>
7221
7222 * infcmd.c (post_create_inferior): Use get_thread_regcache
7223 instead of get_current_regcache.
7224
ff47f4f0
TT
72252020-01-14 Tom Tromey <tom@tromey.com>
7226
7227 PR symtab/12535:
7228 * python/python.c (gdbpy_decode_line): Treat empty string the same
7229 as no argument.
7230
975f45b7
TT
72312020-01-14 Tom Tromey <tom@tromey.com>
7232
7233 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
7234
25e57356
TT
72352020-01-14 Tom Tromey <tom@tromey.com>
7236
7237 * nat/linux-btrace.c: Don't include <config.h>.
7238 * nat/linux-ptrace.c: Don't include <config.h>.
7239 * nat/x86-linux-dregs.c: Don't include <config.h>.
7240
05ea2a05
TT
72412020-01-14 Tom Tromey <tom@tromey.com>
7242
7243 * configure: Rebuild.
7244 * configure.ac: Move many checks to ../gdbsupport/common.m4.
7245
01027315
TT
72462020-01-14 Tom Tromey <tom@tromey.com>
7247
7248 * nat/x86-linux-dregs.c: Include configh.h.
7249 * nat/linux-ptrace.c: Include configh.h.
7250 * nat/linux-btrace.c: Include configh.h.
7251 * defs.h: Include config.h, bfd.h.
7252 * configure.ac: Don't source common.host.
7253 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
7254 * configure: Rebuild.
7255 * acinclude.m4: Update path.
7256 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
7257 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
7258 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
7259 (CLIBS): Add LIBSUPPORT.
7260 (CDEPS): Likewise.
7261 (COMMON_SFILES): Remove gdbsupport files.
7262 (HFILES_NO_SRCDIR): Likewise.
7263 (stamp-version): Update path to create-version.sh.
7264 (ALLDEPFILES): Remove gdbsupport files.
7265
b2ceabe8
TT
72662020-01-14 Tom Tromey <tom@tromey.com>
7267
7268 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
7269 USE_WIN32API when needed.
7270 * configure.ac (USE_WIN32API): Don't define.
7271 (WIN32LIBS): Use WIN32APILIBS.
7272 * configure: Rebuild.
7273
25c51f71
TT
72742020-01-14 Tom Tromey <tom@tromey.com>
7275
7276 * configure: Rebuild.
7277 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
7278
717c684d
BE
72792020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7280
7281 * skip.c (skip_function_command): Make skip w/o arguments use the
7282 name of the inlined function if pc is inside any inlined function.
7283
7da6a5b9
LM
72842020-01-14 Luis Machado <luis.machado@linaro.org>
7285
7286 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
7287 * infrun.c (resume_1): Likewise.
7288 (handle_inferior_event): Remove stale comment.
7289 * linux-nat.c (linux_nat_target::resume): Update comments.
7290 (save_stop_reason): Likewise.
7291 (linux_nat_filter_event): Likewise.
7292 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
7293
44e4c775
AB
72942020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
7295
7296 * elfread.c (record_minimal_symbol): Set section index to 0 for
7297 non-allocatable sections.
7298
18a8505e
AT
7299
73002020-01-13 Ali Tamur <tamur@google.com>
7301
7302 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
7303 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
7304 to gdb::optional. Update comments.
7305 (dwo_file): Update comments.
7306 (read_attribute): Update API to take an additional out parameter,
7307 need_reprocess. This is used to mark attributes that need other
7308 attributes (e.g. str_offsets_base) for correct computation which may not
7309 have been read yet.
7310 (read_attribute_reprocess): New function declaration.
7311 (read_addr_index): Likewise.
7312 (read_dwo_str_index): Likewise.
7313 (read_stub_str_index): Likewise.
7314 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
7315 (lookup_addr_base): New function definition.
7316 (lookup_ranges_base): Likewise.
7317 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
7318 lookup_ranges_base.
7319 (init_cutu_and_read_dies): Update comments.
7320 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
7321 unit. This is used to inherit parent's str_offsets_base and addr_base.
7322 Update comments.
7323 (init_cutu_and_read_dies_simple): Reflect API changes.
7324 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
7325 (create_cus_hash_table): Change API to take parent compile unit.
7326 Reflect API changes.
7327 (open_and_init_dwo_file): Reflect API changes.
7328 (dwarf2_get_pc_bounds): Update comments.
7329 (dwarf2_record_block_ranges): Likewise.
7330 (read_full_die_1): Change implementation to reprocess attributes that
7331 need str_offsets_base and addr_base.
7332 (partial_die_info::read): Likewise.
7333 (read_attribute_reprocess): New function definition.
7334 (read_attribute_value): Change API to take an additional out parameter,
7335 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
7336 when a non-dwo compile unit has index based attributes.
7337 (read_attribute): Reflect API changes.
7338 (read_addr_index_1): Reflect API changes. Update comments.
7339 (dwarf2_read_addr_index_data): Reflect API changes.
7340 (dwarf2_read_addr_index): Likewise.
7341 (read_str_index): Change API and implementation. This becomes a helper
7342 to be used by the new string index related methods. Update error
7343 message and comments.
7344 (read_dwo_str_index): New function definition.
7345 (read_stub_str_index): Likewise.
7346 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
7347 * symfile.h (dwarf2_debug_sections): Likewise.
7348 * xcoffread.c (dwarf2_debug_sections): Likewise.
7349
0cac9354
SM
73502020-01-13 Simon Marchi <simon.marchi@efficios.com>
7351
7352 * gdbcore.h (struct core_fns) <core_read_registers>: Change
7353 core_reg_sect type to gdb_byte *.
7354 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
7355 * cris-tdep.c (fetch_core_registers): Likewise.
7356 * corelow.c (core_target::get_core_register_section): Change
7357 type of `contents` to gdb::byte_vector.
7358
9a6d629c
AB
73592020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
7360
7361 * tui/tui-wingeneral.c (box_win): Position the title in the center
7362 of the border.
7363
d8b2f9e3
SM
73642020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7365
7366 * corelow.c (core_target::get_core_register_section): Use
7367 std::vector instead of alloca.
7368
bb564c58
SM
73692020-01-13 Simon Marchi <simon.marchi@efficios.com>
7370
7371 * warning.m4: Add -Wmissing-declarations to build_warnings.
7372 * configure: Re-generate.
7373
6b366111
SM
73742020-01-13 Simon Marchi <simon.marchi@efficios.com>
7375
7376 * python/python.c (init__gdb_module): Add declaration.
7377
6c265988
SM
73782020-01-13 Simon Marchi <simon.marchi@efficios.com>
7379
7380 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
7381 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
7382 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
7383 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
7384 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
7385 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
7386 * ada-exp.y (_initialize_ada_exp): Add declaration.
7387 * ada-lang.c (_initialize_ada_language): Add declaration.
7388 * ada-tasks.c (_initialize_tasks): Add declaration.
7389 * agent.c (_initialize_agent): Add declaration.
7390 * aix-thread.c (_initialize_aix_thread): Add declaration.
7391 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
7392 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
7393 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
7394 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
7395 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
7396 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7397 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
7398 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
7399 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
7400 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
7401 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
7402 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
7403 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
7404 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
7405 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
7406 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
7407 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
7408 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
7409 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
7410 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
7411 * annotate.c (_initialize_annotate): Add declaration.
7412 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
7413 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
7414 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
7415 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
7416 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
7417 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
7418 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
7419 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
7420 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
7421 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
7422 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
7423 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
7424 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7425 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
7426 * auto-load.c (_initialize_auto_load): Add declaration.
7427 * auxv.c (_initialize_auxv): Add declaration.
7428 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
7429 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
7430 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
7431 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
7432 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
7433 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
7434 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
7435 * breakpoint.c (_initialize_breakpoint): Add declaration.
7436 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
7437 * btrace.c (_initialize_btrace): Add declaration.
7438 * charset.c (_initialize_charset): Add declaration.
7439 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
7440 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7441 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7442 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
7443 * cli/cli-script.c (_initialize_cli_script): Add declaration.
7444 * cli/cli-style.c (_initialize_cli_style): Add declaration.
7445 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
7446 * coffread.c (_initialize_coffread): Add declaration.
7447 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
7448 * compile/compile.c (_initialize_compile): Add declaration.
7449 * complaints.c (_initialize_complaints): Add declaration.
7450 * completer.c (_initialize_completer): Add declaration.
7451 * copying.c (_initialize_copying): Add declaration.
7452 * corefile.c (_initialize_core): Add declaration.
7453 * corelow.c (_initialize_corelow): Add declaration.
7454 * cp-abi.c (_initialize_cp_abi): Add declaration.
7455 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
7456 * cp-support.c (_initialize_cp_support): Add declaration.
7457 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
7458 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
7459 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
7460 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
7461 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
7462 * ctfread.c (_initialize_ctfread): Add declaration.
7463 * d-lang.c (_initialize_d_language): Add declaration.
7464 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
7465 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
7466 * dbxread.c (_initialize_dbxread): Add declaration.
7467 * dcache.c (_initialize_dcache): Add declaration.
7468 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
7469 * disasm.c (_initialize_disasm): Add declaration.
7470 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
7471 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
7472 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
7473 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
7474 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
7475 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
7476 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
7477 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
7478 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
7479 * elfread.c (_initialize_elfread): Add declaration.
7480 * exec.c (_initialize_exec): Add declaration.
7481 * extension.c (_initialize_extension): Add declaration.
7482 * f-lang.c (_initialize_f_language): Add declaration.
7483 * f-valprint.c (_initialize_f_valprint): Add declaration.
7484 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
7485 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
7486 * filesystem.c (_initialize_filesystem): Add declaration.
7487 * findcmd.c (_initialize_mem_search): Add declaration.
7488 * findvar.c (_initialize_findvar): Add declaration.
7489 * fork-child.c (_initialize_fork_child): Add declaration.
7490 * frame-base.c (_initialize_frame_base): Add declaration.
7491 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7492 * frame.c (_initialize_frame): Add declaration.
7493 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
7494 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
7495 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
7496 * gcore.c (_initialize_gcore): Add declaration.
7497 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
7498 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
7499 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
7500 * gdbarch.c (_initialize_gdbarch): Add declaration.
7501 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
7502 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
7503 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
7504 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
7505 * go-lang.c (_initialize_go_language): Add declaration.
7506 * go32-nat.c (_initialize_go32_nat): Add declaration.
7507 * guile/guile.c (_initialize_guile): Add declaration.
7508 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7509 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
7510 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
7511 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
7512 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
7513 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
7514 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
7515 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
7516 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
7517 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
7518 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
7519 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
7520 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
7521 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
7522 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
7523 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
7524 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
7525 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
7526 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
7527 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
7528 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
7529 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
7530 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
7531 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
7532 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
7533 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
7534 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
7535 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
7536 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
7537 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
7538 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
7539 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
7540 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
7541 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
7542 * infcall.c (_initialize_infcall): Add declaration.
7543 * infcmd.c (_initialize_infcmd): Add declaration.
7544 * inflow.c (_initialize_inflow): Add declaration.
7545 * infrun.c (_initialize_infrun): Add declaration.
7546 * interps.c (_initialize_interpreter): Add declaration.
7547 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
7548 * jit.c (_initialize_jit): Add declaration.
7549 * language.c (_initialize_language): Add declaration.
7550 * linux-fork.c (_initialize_linux_fork): Add declaration.
7551 * linux-nat.c (_initialize_linux_nat): Add declaration.
7552 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
7553 * linux-thread-db.c (_initialize_thread_db): Add declaration.
7554 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
7555 * m2-lang.c (_initialize_m2_language): Add declaration.
7556 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
7557 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
7558 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
7559 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
7560 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7561 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
7562 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
7563 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
7564 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
7565 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7566 * machoread.c (_initialize_machoread): Add declaration.
7567 * macrocmd.c (_initialize_macrocmd): Add declaration.
7568 * macroscope.c (_initialize_macroscope): Add declaration.
7569 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
7570 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
7571 * maint.c (_initialize_maint_cmds): Add declaration.
7572 * mdebugread.c (_initialize_mdebugread): Add declaration.
7573 * memattr.c (_initialize_mem): Add declaration.
7574 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
7575 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
7576 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
7577 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
7578 * mi/mi-main.c (_initialize_mi_main): Add declaration.
7579 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
7580 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
7581 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
7582 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
7583 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
7584 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
7585 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
7586 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
7587 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
7588 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7589 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
7590 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
7591 * mipsread.c (_initialize_mipsread): Add declaration.
7592 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
7593 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
7594 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
7595 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
7596 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
7597 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
7598 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
7599 * nto-procfs.c (_initialize_procfs): Add declaration.
7600 * objc-lang.c (_initialize_objc_language): Add declaration.
7601 * observable.c (_initialize_observer): Add declaration.
7602 * opencl-lang.c (_initialize_opencl_language): Add declaration.
7603 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
7604 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
7605 * osabi.c (_initialize_gdb_osabi): Add declaration.
7606 * osdata.c (_initialize_osdata): Add declaration.
7607 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7608 * parse.c (_initialize_parse): Add declaration.
7609 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
7610 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
7611 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
7612 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
7613 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
7614 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
7615 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
7616 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
7617 * printcmd.c (_initialize_printcmd): Add declaration.
7618 * probe.c (_initialize_probe): Add declaration.
7619 * proc-api.c (_initialize_proc_api): Add declaration.
7620 * proc-events.c (_initialize_proc_events): Add declaration.
7621 * proc-service.c (_initialize_proc_service): Add declaration.
7622 * procfs.c (_initialize_procfs): Add declaration.
7623 * producer.c (_initialize_producer): Add declaration.
7624 * psymtab.c (_initialize_psymtab): Add declaration.
7625 * python/python.c (_initialize_python): Add declaration.
7626 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
7627 * record-btrace.c (_initialize_record_btrace): Add declaration.
7628 * record-full.c (_initialize_record_full): Add declaration.
7629 * record.c (_initialize_record): Add declaration.
7630 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
7631 * regcache.c (_initialize_regcache): Add declaration.
7632 * reggroups.c (_initialize_reggroup): Add declaration.
7633 * remote-notif.c (_initialize_notif): Add declaration.
7634 * remote-sim.c (_initialize_remote_sim): Add declaration.
7635 * remote.c (_initialize_remote): Add declaration.
7636 * reverse.c (_initialize_reverse): Add declaration.
7637 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
7638 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
7639 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
7640 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
7641 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
7642 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
7643 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
7644 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
7645 Add declaration.
7646 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
7647 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
7648 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
7649 * rust-exp.y (_initialize_rust_exp): Add declaration.
7650 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
7651 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
7652 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
7653 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
7654 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
7655 * score-tdep.c (_initialize_score_tdep): Add declaration.
7656 * ser-go32.c (_initialize_ser_dos): Add declaration.
7657 * ser-mingw.c (_initialize_ser_windows): Add declaration.
7658 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
7659 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
7660 * ser-uds.c (_initialize_ser_socket): Add declaration.
7661 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
7662 * serial.c (_initialize_serial): Add declaration.
7663 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
7664 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
7665 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
7666 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
7667 * skip.c (_initialize_step_skip): Add declaration.
7668 * sol-thread.c (_initialize_sol_thread): Add declaration.
7669 * solib-aix.c (_initialize_solib_aix): Add declaration.
7670 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
7671 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
7672 * solib-frv.c (_initialize_frv_solib): Add declaration.
7673 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7674 * solib-target.c (_initialize_solib_target): Add declaration.
7675 * solib.c (_initialize_solib): Add declaration.
7676 * source-cache.c (_initialize_source_cache): Add declaration.
7677 * source.c (_initialize_source): Add declaration.
7678 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
7679 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
7680 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
7681 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
7682 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
7683 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
7684 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
7685 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
7686 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
7687 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
7688 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
7689 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
7690 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
7691 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
7692 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
7693 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
7694 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
7695 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
7696 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
7697 * stabsread.c (_initialize_stabsread): Add declaration.
7698 * stack.c (_initialize_stack): Add declaration.
7699 * stap-probe.c (_initialize_stap_probe): Add declaration.
7700 * std-regs.c (_initialize_frame_reg): Add declaration.
7701 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
7702 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
7703 * symfile.c (_initialize_symfile): Add declaration.
7704 * symmisc.c (_initialize_symmisc): Add declaration.
7705 * symtab.c (_initialize_symtab): Add declaration.
7706 * target.c (_initialize_target): Add declaration.
7707 * target-connection.c (_initialize_target_connection): Add
7708 declaration.
7709 * target-dcache.c (_initialize_target_dcache): Add declaration.
7710 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
7711 * thread.c (_initialize_thread): Add declaration.
7712 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
7713 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
7714 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
7715 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
7716 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
7717 * tracectf.c (_initialize_ctf): Add declaration.
7718 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
7719 * tracefile.c (_initialize_tracefile): Add declaration.
7720 * tracepoint.c (_initialize_tracepoint): Add declaration.
7721 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
7722 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
7723 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
7724 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
7725 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
7726 * tui/tui-win.c (_initialize_tui_win): Add declaration.
7727 * tui/tui.c (_initialize_tui): Add declaration.
7728 * typeprint.c (_initialize_typeprint): Add declaration.
7729 * ui-style.c (_initialize_ui_style): Add declaration.
7730 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
7731 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
7732 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
7733 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
7734 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
7735 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
7736 * unittests/filtered_iterator-selftests.c
7737 (_initialize_filtered_iterator_selftests): Add declaration.
7738 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
7739 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
7740 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
7741 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
7742 * unittests/main-thread-selftests.c
7743 (_initialize_main_thread_selftests): Add declaration.
7744 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
7745 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
7746 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
7747 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
7748 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
7749 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
7750 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
7751 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
7752 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
7753 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
7754 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
7755 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
7756 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
7757 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
7758 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
7759 declaration.
7760 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
7761 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
7762 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
7763 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
7764 * user-regs.c (_initialize_user_regs): Add declaration.
7765 * utils.c (_initialize_utils): Add declaration.
7766 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
7767 * valops.c (_initialize_valops): Add declaration.
7768 * valprint.c (_initialize_valprint): Add declaration.
7769 * value.c (_initialize_values): Add declaration.
7770 * varobj.c (_initialize_varobj): Add declaration.
7771 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
7772 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
7773 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
7774 * windows-nat.c (_initialize_windows_nat): Add declaration.
7775 (_initialize_check_for_gdb_ini): Add declaration.
7776 (_initialize_loadable): Add declaration.
7777 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
7778 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
7779 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
7780 * xcoffread.c (_initialize_xcoffread): Add declaration.
7781 * xml-support.c (_initialize_xml_support): Add declaration.
7782 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
7783 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
7784 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
7785 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
7786
e2de1eec
SM
77872020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7788
7789 * regformats/regdat.sh: Generate declaration for init function.
7790
e0037b4c
SM
77912020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7792
7793 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
7794 up.
7795 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
7796 close_one_inferior>: New methods.
7797 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
7798 pass down target to find_inferior_pid.
7799 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
7800 Pass down target to find_inferior_ptid.
7801 (gdbsim_target::create_inferior): Pass down target to
7802 add_thread_silent.
7803 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
7804 target down to find_inferior_ptid and switch_to_thread.
7805 (gdbsim_target::close): Update to call close_one_inferior.
7806 (struct resume_data): Remove.
7807 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
7808 directly, rather than through a void pointer.
7809 (gdbsim_target::resume): Update to call resume_one_inferior.
7810
58920b5b
SM
78112020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7812
7813 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
7814
4ec89149
PA
78152020-01-12 Pedro Alves <palves@redhat.com>
7816
7817 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
7818 directly for the current inferior instead of
7819 discard_all_inferiors.
7820 (discard_all_inferiors): Delete.
7821
7c392d1d
TT
78222020-01-11 Tom Tromey <tom@tromey.com>
7823
7824 * tui/tui-wingeneral.c (box_win): Check cli_styling.
7825 * tui/tui-winsource.c (tui_source_window_base::refill): Use
7826 deprecated_safe_get_selected_frame.
7827
d9ebdab7
TBA
78282020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7829
7830 * inferior.c (print_inferior): Switch inferior before printing it.
7831
f3c469b9
PA
78322020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
7833 Pedro Alves <palves@redhat.com>
7834
7835 * progspace-and-thread.c (switch_to_program_space_and_thread):
7836 Assert there's an inferior for PSPACE. Use
7837 switch_to_inferior_no_thread to switch the inferior too.
7838 * progspace.c (program_space::~program_space): Call
7839 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
7840 (program_space::free_all_objfiles): Don't call clear_symtab_users
7841 here.
7842 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
7843
65c574f6
PA
78442020-01-10 Pedro Alves <palves@redhat.com>
7845
7846 * NEWS: Mention multi-target debugging, "info connections", and
7847 "add-inferior -no-connection".
7848
2f4fcf00
PA
78492020-01-10 Pedro Alves <palves@redhat.com>
7850
7851 * infrun.c: Include "target-connection.h".
7852 (check_multi_target_resumption): New.
7853 (proceed): Call it.
7854 * target-connection.c (make_target_connection_string): Make
7855 extern.
7856 * target-connection.h (make_target_connection_string): Declare.
7857
121b3efd
PA
78582020-01-10 Pedro Alves <palves@redhat.com>
7859
7860 * Makefile.in (COMMON_SFILES): Add target-connection.c.
7861 * inferior.c (uiout_field_connection): New function.
7862 (print_inferior): Add new "connection-id" column.
7863 (add_inferior_command): Show connection number/string of added
7864 inferior.
7865 * process-stratum-target.h
7866 (process_stratum_target::connection_string): New virtual method.
7867 (process_stratum_target::connection_number): New field.
7868 * remote.c (remote_target::connection_string): New override.
7869 * target-connection.c: New file.
7870 * target-connection.h: New file.
7871 * target.c (decref_target): Remove process_stratum targets from
7872 the connection list.
7873 (target_stack::push): Add process_stratum targets to the
7874 connection list.
7875
4f837581
PA
78762020-01-10 Pedro Alves <palves@redhat.com>
7877
7878 Revert:
7879 2016-04-12 Pedro Alves <palves@redhat.com>
7880 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
7881 Remove references to name.
7882 * serial.h (struct serial) <name>: Delete.
7883
f4ec508e
PA
78842020-01-10 Pedro Alves <palves@redhat.com>
7885
7886 * gdbarch-selftests.c (register_to_value_test): Remove "target
7887 already pushed" check.
7888
5b6d1e4f
PA
78892020-01-10 Pedro Alves <palves@redhat.com>
7890 John Baldwin <jhb@FreeBSD.org>
7891
7892 * aarch64-linux-nat.c
7893 (aarch64_linux_nat_target::thread_architecture): Adjust.
7894 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
7895 (task_command_1): Likewise.
7896 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
7897 (aix_thread_target::wait, aix_thread_target::fetch_registers)
7898 (aix_thread_target::store_registers)
7899 (aix_thread_target::thread_alive): Adjust.
7900 * amd64-fbsd-tdep.c: Include "inferior.h".
7901 (amd64fbsd_get_thread_local_address): Pass down target.
7902 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
7903 thread's gdbarch instead of target_gdbarch.
7904 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
7905 get_last_target_status.
7906 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
7907 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
7908 inferiors.
7909 (update_inserted_breakpoint_locations): Skip if inferiors with no
7910 execution.
7911 (update_global_location_list): When handling moribund locations,
7912 find representative inferior for location's pspace, and use thread
7913 count of its process_stratum target.
7914 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
7915 * bsd-uthread.c (bsd_uthread_target::wait): Use
7916 as_process_stratum_target and adjust thread_change_ptid and
7917 add_thread calls.
7918 (bsd_uthread_target::update_thread_list): Use
7919 as_process_stratum_target and adjust find_thread_ptid,
7920 thread_change_ptid and add_thread calls.
7921 * btrace.c (maint_btrace_packet_history_cmd): Adjust
7922 find_thread_ptid call.
7923 * corelow.c (add_to_thread_list): Adjust add_thread call.
7924 (core_target_open): Adjust add_thread_silent and thread_count
7925 calls.
7926 (core_target::pid_to_str): Adjust find_inferior_ptid call.
7927 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
7928 * event-top.c (async_disconnect): Pop targets from all inferiors.
7929 * exec.c (add_target_sections): Push exec target on all inferiors
7930 sharing the program space.
7931 (remove_target_sections): Remove the exec target from all
7932 inferiors sharing the program space.
7933 (exec_on_vfork): New.
7934 * exec.h (exec_on_vfork): Declare.
7935 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
7936 Pass it down.
7937 (fbsd_nat_target::update_thread_list): Adjust.
7938 (fbsd_nat_target::resume): Adjust.
7939 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
7940 down.
7941 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
7942 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
7943 get_thread_arch_regcache call.
7944 * fork-child.c (gdb_startup_inferior): Pass target down to
7945 startup_inferior and set_executing.
7946 * gdbthread.h (struct process_stratum_target): Forward declare.
7947 (add_thread, add_thread_silent, add_thread_with_info)
7948 (in_thread_list): Add process_stratum_target parameter.
7949 (find_thread_ptid(inferior*, ptid_t)): New overload.
7950 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
7951 parameter.
7952 (all_threads()): Delete overload.
7953 (all_threads, all_non_exited_threads): Add process_stratum_target
7954 parameter.
7955 (all_threads_safe): Use brace initialization.
7956 (thread_count): Add process_stratum_target parameter.
7957 (set_resumed, set_running, set_stop_requested, set_executing)
7958 (threads_are_executing, finish_thread_state): Add
7959 process_stratum_target parameter.
7960 (switch_to_thread): Use is_current_thread.
7961 * i386-fbsd-tdep.c: Include "inferior.h".
7962 (i386fbsd_get_thread_local_address): Pass down target.
7963 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
7964 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
7965 have_inferiors check.
7966 * inf-ptrace.c (inf_ptrace_target::create_inferior)
7967 (inf_ptrace_target::attach): Adjust.
7968 * infcall.c (run_inferior_call): Adjust.
7969 * infcmd.c (run_command_1): Pass target to
7970 scoped_finish_thread_state.
7971 (proceed_thread_callback): Skip inferiors with no execution.
7972 (continue_command): Rename 'all_threads' local to avoid hiding
7973 'all_threads' function. Adjust get_last_target_status call.
7974 (prepare_one_step): Adjust set_running call.
7975 (signal_command): Use user_visible_resume_target. Compare thread
7976 pointers instead of inferior_ptid.
7977 (info_program_command): Adjust to pass down target.
7978 (attach_command): Mark target's 'thread_executing' flag.
7979 (stop_current_target_threads_ns): New, factored out from ...
7980 (interrupt_target_1): ... this. Switch inferior before making
7981 target calls.
7982 * inferior-iter.h
7983 (struct all_inferiors_iterator, struct all_inferiors_range)
7984 (struct all_inferiors_safe_range)
7985 (struct all_non_exited_inferiors_range): Filter on
7986 process_stratum_target too. Remove explicit.
7987 * inferior.c (inferior::inferior): Push dummy target on target
7988 stack.
7989 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
7990 Add process_stratum_target parameter, and pass it down.
7991 (have_live_inferiors): Adjust.
7992 (switch_to_inferior_and_push_target): New.
7993 (add_inferior_command, clone_inferior_command): Handle
7994 "-no-connection" parameter. Use
7995 switch_to_inferior_and_push_target.
7996 (_initialize_inferior): Mention "-no-connection" option in
7997 the help of "add-inferior" and "clone-inferior" commands.
7998 * inferior.h: Include "process-stratum-target.h".
7999 (interrupt_target_1): Use bool.
8000 (struct inferior) <push_target, unpush_target, target_is_pushed,
8001 find_target_beneath, top_target, process_target, target_at,
8002 m_stack>: New.
8003 (discard_all_inferiors): Delete.
8004 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
8005 (all_inferiors, all_non_exited_inferiors): Add
8006 process_stratum_target parameter.
8007 * infrun.c: Include "gdb_select.h" and <unordered_map>.
8008 (target_last_proc_target): New global.
8009 (follow_fork_inferior): Push target on new inferior. Pass target
8010 to add_thread_silent. Call exec_on_vfork. Handle target's
8011 reference count.
8012 (follow_fork): Adjust get_last_target_status call. Also consider
8013 target.
8014 (follow_exec): Push target on new inferior.
8015 (struct execution_control_state) <target>: New field.
8016 (user_visible_resume_target): New.
8017 (do_target_resume): Call target_async.
8018 (resume_1): Set target's threads_executing flag. Consider resume
8019 target.
8020 (commit_resume_all_targets): New.
8021 (proceed): Also consider resume target. Skip threads of inferiors
8022 with no execution. Commit resumtion in all targets.
8023 (start_remote): Pass current inferior to wait_for_inferior.
8024 (infrun_thread_stop_requested): Consider target as well. Pass
8025 thread_info pointer to clear_inline_frame_state instead of ptid.
8026 (infrun_thread_thread_exit): Consider target as well.
8027 (random_pending_event_thread): New inferior parameter. Use it.
8028 (do_target_wait): Rename to ...
8029 (do_target_wait_1): ... this. Add inferior parameter, and pass it
8030 down.
8031 (threads_are_resumed_pending_p, do_target_wait): New.
8032 (prepare_for_detach): Adjust calls.
8033 (wait_for_inferior): New inferior parameter. Handle it. Use
8034 do_target_wait_1 instead of do_target_wait.
8035 (fetch_inferior_event): Adjust. Switch to representative
8036 inferior. Pass target down.
8037 (set_last_target_status): Add process_stratum_target parameter.
8038 Save target in global.
8039 (get_last_target_status): Add process_stratum_target parameter and
8040 handle it.
8041 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
8042 (context_switch): Check inferior_ptid == null_ptid before calling
8043 inferior_thread().
8044 (get_inferior_stop_soon): Pass down target.
8045 (wait_one): Rename to ...
8046 (poll_one_curr_target): ... this.
8047 (struct wait_one_event): New.
8048 (wait_one): New.
8049 (stop_all_threads): Adjust.
8050 (handle_no_resumed, handle_inferior_event): Adjust to consider the
8051 event's target.
8052 (switch_back_to_stepped_thread): Also consider target.
8053 (print_stop_event): Update.
8054 (normal_stop): Update. Also consider the resume target.
8055 * infrun.h (wait_for_inferior): Remove declaration.
8056 (user_visible_resume_target): New declaration.
8057 (get_last_target_status, set_last_target_status): New
8058 process_stratum_target parameter.
8059 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
8060 process_stratum_target parameter, and use it.
8061 (clear_inline_frame_state (thread_info*)): New.
8062 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
8063 process_stratum_target parameter.
8064 (clear_inline_frame_state (thread_info*)): Declare.
8065 * linux-fork.c (delete_checkpoint_command): Pass target down to
8066 find_thread_ptid.
8067 (checkpoint_command): Adjust.
8068 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
8069 instead of just tweaking inferior_ptid.
8070 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
8071 (exit_lwp): Pass target down to find_thread_ptid.
8072 (attach_proc_task_lwp_callback): Pass target down to
8073 add_thread/set_running/set_executing.
8074 (linux_nat_target::attach): Pass target down to
8075 thread_change_ptid.
8076 (get_detach_signal): Pass target down to find_thread_ptid.
8077 Consider last target status's target.
8078 (linux_resume_one_lwp_throw, resume_lwp)
8079 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
8080 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
8081 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
8082 (linux_nat_target::async_wait_fd): New.
8083 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
8084 target down.
8085 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
8086 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
8087 * linux-thread-db.c (struct thread_db_info::process_target): New
8088 field.
8089 (add_thread_db_info): Save target.
8090 (get_thread_db_info): New process_stratum_target parameter. Also
8091 match target.
8092 (delete_thread_db_info): New process_stratum_target parameter.
8093 Also match target.
8094 (thread_from_lwp): Adjust to pass down target.
8095 (thread_db_notice_clone): Pass down target.
8096 (check_thread_db_callback): Pass down target.
8097 (try_thread_db_load_1): Always push the thread_db target.
8098 (try_thread_db_load, record_thread): Pass target down.
8099 (thread_db_target::detach): Pass target down. Always unpush the
8100 thread_db target.
8101 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
8102 target down. Always unpush the thread_db target.
8103 (find_new_threads_callback, thread_db_find_new_threads_2)
8104 (thread_db_target::update_thread_list): Pass target down.
8105 (thread_db_target::pid_to_str): Pass current inferior down.
8106 (thread_db_target::get_thread_local_address): Pass target down.
8107 (thread_db_target::resume, maintenance_check_libthread_db): Pass
8108 target down.
8109 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
8110 * procfs.c (procfs_target::procfs_init_inferior): Declare.
8111 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
8112 (procfs_init_inferior): Rename to ...
8113 (procfs_target::procfs_init_inferior): ... this and adjust.
8114 (procfs_target::create_inferior, procfs_notice_thread)
8115 (procfs_do_thread_registers): Adjust.
8116 * ppc-fbsd-tdep.c: Include "inferior.h".
8117 (ppcfbsd_get_thread_local_address): Pass down target.
8118 * proc-service.c (ps_xfer_memory): Switch current inferior and
8119 program space as well.
8120 (get_ps_regcache): Pass target down.
8121 * process-stratum-target.c
8122 (process_stratum_target::thread_address_space)
8123 (process_stratum_target::thread_architecture): Pass target down.
8124 * process-stratum-target.h
8125 (process_stratum_target::threads_executing): New field.
8126 (as_process_stratum_target): New.
8127 * ravenscar-thread.c
8128 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
8129 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
8130 down.
8131 * record-btrace.c (record_btrace_target::info_record): Adjust.
8132 (record_btrace_target::record_method)
8133 (record_btrace_target::record_is_replaying)
8134 (record_btrace_target::fetch_registers)
8135 (get_thread_current_frame_id, record_btrace_target::resume)
8136 (record_btrace_target::wait, record_btrace_target::stop): Pass
8137 target down.
8138 * record-full.c (record_full_wait_1): Switch to event thread.
8139 Pass target down.
8140 * regcache.c (regcache::regcache)
8141 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
8142 process_stratum_target parameter and handle it.
8143 (current_thread_target): New global.
8144 (get_thread_regcache): Add process_stratum_target parameter and
8145 handle it. Switch inferior before calling target method.
8146 (get_thread_regcache): Pass target down.
8147 (get_thread_regcache_for_ptid): Pass target down.
8148 (registers_changed_ptid): Add process_stratum_target parameter and
8149 handle it.
8150 (registers_changed_thread, registers_changed): Pass target down.
8151 (test_get_thread_arch_aspace_regcache): New.
8152 (current_regcache_test): Define a couple local test_target_ops
8153 instances and use them for testing.
8154 (readwrite_regcache): Pass process_stratum_target parameter.
8155 (cooked_read_test, cooked_write_test): Pass mock_target down.
8156 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
8157 (get_thread_arch_aspace_regcache): Add process_stratum_target
8158 parameter.
8159 (regcache::target): New method.
8160 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
8161 (regcache::registers_changed_ptid): Add process_stratum_target
8162 parameter.
8163 (regcache::m_target): New field.
8164 (registers_changed_ptid): Add process_stratum_target parameter.
8165 * remote.c (remote_state::supports_vCont_probed): New field.
8166 (remote_target::async_wait_fd): New method.
8167 (remote_unpush_and_throw): Add remote_target parameter.
8168 (get_current_remote_target): Adjust.
8169 (remote_target::remote_add_inferior): Push target.
8170 (remote_target::remote_add_thread)
8171 (remote_target::remote_notice_new_inferior)
8172 (get_remote_thread_info): Pass target down.
8173 (remote_target::update_thread_list): Skip threads of inferiors
8174 bound to other targets. (remote_target::close): Don't discard
8175 inferiors. (remote_target::add_current_inferior_and_thread)
8176 (remote_target::process_initial_stop_replies)
8177 (remote_target::start_remote)
8178 (remote_target::remote_serial_quit_handler): Pass down target.
8179 (remote_target::remote_unpush_target): New remote_target
8180 parameter. Unpush the target from all inferiors.
8181 (remote_target::remote_unpush_and_throw): New remote_target
8182 parameter. Pass it down.
8183 (remote_target::open_1): Check whether the current inferior has
8184 execution instead of checking whether any inferior is live. Pass
8185 target down.
8186 (remote_target::remote_detach_1): Pass down target. Use
8187 remote_unpush_target.
8188 (extended_remote_target::attach): Pass down target.
8189 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
8190 (remote_target::append_resumption): Pass down target.
8191 (remote_target::append_pending_thread_resumptions)
8192 (remote_target::remote_resume_with_hc, remote_target::resume)
8193 (remote_target::commit_resume): Pass down target.
8194 (remote_target::remote_stop_ns): Check supports_vCont_probed.
8195 (remote_target::interrupt_query)
8196 (remote_target::remove_new_fork_children)
8197 (remote_target::check_pending_events_prevent_wildcard_vcont)
8198 (remote_target::remote_parse_stop_reply)
8199 (remote_target::process_stop_reply): Pass down target.
8200 (first_remote_resumed_thread): New remote_target parameter. Pass
8201 it down.
8202 (remote_target::wait_as): Pass down target.
8203 (unpush_and_perror): New remote_target parameter. Pass it down.
8204 (remote_target::readchar, remote_target::remote_serial_write)
8205 (remote_target::getpkt_or_notif_sane_1)
8206 (remote_target::kill_new_fork_children, remote_target::kill): Pass
8207 down target.
8208 (remote_target::mourn_inferior): Pass down target. Use
8209 remote_unpush_target.
8210 (remote_target::core_of_thread)
8211 (remote_target::remote_btrace_maybe_reopen): Pass down target.
8212 (remote_target::pid_to_exec_file)
8213 (remote_target::thread_handle_to_thread_info): Pass down target.
8214 (remote_target::async_wait_fd): New.
8215 * riscv-fbsd-tdep.c: Include "inferior.h".
8216 (riscv_fbsd_get_thread_local_address): Pass down target.
8217 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
8218 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
8219 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
8220 Adjust.
8221 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
8222 * solib-svr4.c (enable_break): Pass down target.
8223 * spu-multiarch.c (parse_spufs_run): Pass down target.
8224 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
8225 * target-delegates.c: Regenerate.
8226 * target.c (g_target_stack): Delete.
8227 (current_top_target): Return the current inferior's top target.
8228 (target_has_execution_1): Refer to the passed-in inferior's top
8229 target.
8230 (target_supports_terminal_ours): Check whether the initial
8231 inferior was already created.
8232 (decref_target): New.
8233 (target_stack::push): Incref/decref the target.
8234 (push_target, push_target, unpush_target): Adjust.
8235 (target_stack::unpush): Defref target.
8236 (target_is_pushed): Return bool. Adjust to refer to the current
8237 inferior's target stack.
8238 (dispose_inferior): Delete, and inline parts ...
8239 (target_preopen): ... here. Only dispose of the current inferior.
8240 (target_detach): Hold strong target reference while detaching.
8241 Pass target down.
8242 (target_thread_name): Add assertion.
8243 (target_resume): Pass down target.
8244 (target_ops::beneath, find_target_at): Adjust to refer to the
8245 current inferior's target stack.
8246 (get_dummy_target): New.
8247 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
8248 has a thread running.
8249 (initialize_targets): Rename to ...
8250 (_initialize_target): ... this.
8251 * target.h: Include "gdbsupport/refcounted-object.h".
8252 (struct target_ops): Inherit refcounted_object.
8253 (target_ops::shortname, target_ops::longname): Make const.
8254 (target_ops::async_wait_fd): New method.
8255 (decref_target): Declare.
8256 (struct target_ops_ref_policy): New.
8257 (target_ops_ref): New typedef.
8258 (get_dummy_target): Declare function.
8259 (target_is_pushed): Return bool.
8260 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
8261 (all_matching_threads_iterator::all_matching_threads_iterator):
8262 Handle filter target.
8263 * thread-iter.h (struct all_matching_threads_iterator, struct
8264 all_matching_threads_range, class all_non_exited_threads_range):
8265 Filter by target too. Remove explicit.
8266 * thread.c (threads_executing): Delete.
8267 (inferior_thread): Pass down current inferior.
8268 (clear_thread_inferior_resources): Pass down thread pointer
8269 instead of ptid_t.
8270 (add_thread_silent, add_thread_with_info, add_thread): Add
8271 process_stratum_target parameter. Use it for thread and inferior
8272 searches.
8273 (is_current_thread): New.
8274 (thread_info::deletable): Use it.
8275 (find_thread_ptid, thread_count, in_thread_list)
8276 (thread_change_ptid, set_resumed, set_running): New
8277 process_stratum_target parameter. Pass it down.
8278 (set_executing): New process_stratum_target parameter. Pass it
8279 down. Adjust reference to 'threads_executing'.
8280 (threads_are_executing): New process_stratum_target parameter.
8281 Adjust reference to 'threads_executing'.
8282 (set_stop_requested, finish_thread_state): New
8283 process_stratum_target parameter. Pass it down.
8284 (switch_to_thread): Also match inferior.
8285 (switch_to_thread): New process_stratum_target parameter. Pass it
8286 down.
8287 (update_threads_executing): Reimplement.
8288 * top.c (quit_force): Pop targets from all inferior.
8289 (gdb_init): Don't call initialize_targets.
8290 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
8291 Declare.
8292 (windows_add_thread, windows_delete_thread): Adjust.
8293 (get_windows_debug_event): Rename to ...
8294 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
8295 * tracefile-tfile.c (tfile_target_open): Pass down target.
8296 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
8297 Forward declare.
8298 (switch_to_thread): Add process_stratum_target parameter.
8299 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
8300 parameter. Use it.
8301 (mi_on_resume): Pass target down.
8302 * nat/fork-inferior.c (startup_inferior): Add
8303 process_stratum_target parameter. Pass it down.
8304 * nat/fork-inferior.h (startup_inferior): Add
8305 process_stratum_target parameter.
8306 * python/py-threadevent.c (py_get_event_thread): Pass target down.
8307
75c6c844
PA
83082020-01-10 Pedro Alves <palves@redhat.com>
8309
8310 * remote.c (remote_target::start_remote): Don't set inferior_ptid
8311 directly. Instead find the first thread in the thread list and
8312 use switch_to_thread.
8313
78f2c40a
PA
83142020-01-10 Pedro Alves <palves@redhat.com>
8315
8316 * remote.c (remote_target::remote_add_inferior): Don't bind a
8317 process to the current inferior if the current inferior is already
8318 bound to a process.
8319
e7af6c70
TBA
83202020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8321 Pedro Alves <palves@redhat.com>
8322
8323 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
8324 If no process is specified, return null_ptid instead of
8325 inferior_ptid.
8326 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
8327 TARGET_WAITKIND_SIGNALLED with no pid.
8328
31ba933e
PA
83292020-01-10 Pedro Alves <palves@redhat.com>
8330
8331 * remote.c (first_remote_resumed_thread): New.
8332 (remote_target::wait_as): Use it as default event_ptid instead of
8333 inferior_ptid.
8334
735fc2ca
PA
83352020-01-10 Pedro Alves <palves@redhat.com>
8336
8337 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
8338
c17e02e1
PA
83392020-01-10 Pedro Alves <palves@redhat.com>
8340
8341 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
8342 not -1.
8343
ab1ddbcf
PA
83442020-01-10 Pedro Alves <palves@redhat.com>
8345
8346 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
8347 ptid to get_last_target_status.
8348 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
8349 ptid to get_last_target_status.
8350 * infcmd.c (continue_command): Don't pass a target_waitstatus to
8351 get_last_target_status.
8352 (info_program_command): Don't pass a target_waitstatus to
8353 get_last_target_status.
8354 * infrun.c (init_wait_for_inferior): Use
8355 nullify_last_target_wait_ptid.
8356 (get_last_target_status): Handle nullptr arguments.
8357 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
8358 (print_stop_event): Don't pass a ptid to get_last_target_status.
8359 (normal_stop): Don't pass a ptid to get_last_target_status.
8360 * infrun.h (get_last_target_status, set_last_target_status): Move
8361 comments here and update.
8362 (nullify_last_target_wait_ptid): Declare.
8363 * linux-fork.c (fork_load_infrun_state): Remove local extern
8364 declaration of nullify_last_target_wait_ptid.
8365 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
8366 to get_last_target_status.
8367
f3f8ece4
PA
83682020-01-10 Pedro Alves <palves@redhat.com>
8369
8370 * gdbthread.h (scoped_restore_current_thread)
8371 <dont_restore, restore, m_dont_restore>: Declare.
8372 * thread.c (thread_alive): Add assertion. Return bool.
8373 (switch_to_thread_if_alive): New.
8374 (prune_threads): Switch inferior/thread.
8375 (print_thread_info_1): Switch thread before calling target methods.
8376 (scoped_restore_current_thread::restore): New, factored out from
8377 ...
8378 (scoped_restore_current_thread::~scoped_restore_current_thread):
8379 ... this.
8380 (scoped_restore_current_thread::scoped_restore_current_thread):
8381 Add assertion.
8382 (thread_apply_all_command, thread_select): Use
8383 switch_to_thread_if_alive.
8384 * infrun.c (proceed, restart_threads, handle_signal_stop)
8385 (switch_back_to_stepped_thread): Switch current thread before
8386 calling target methods.
8387
db2d40f7
PA
83882020-01-10 Pedro Alves <palves@redhat.com>
8389
8390 * inferior.c (switch_to_inferior_no_thread): New function,
8391 factored out from ...
8392 (inferior_command): ... here.
8393 * inferior.h (switch_to_inferior_no_thread): Declare.
8394 * mi/mi-main.c (run_one_inferior): Use
8395 switch_to_inferior_no_thread.
8396
bd420a2d
PA
83972020-01-10 Pedro Alves <palves@redhat.com>
8398
8399 * infcmd.c (kill_command): Remove dead code.
8400
ddf5db90
PA
84012020-01-10 Pedro Alves <palves@redhat.com>
8402
8403 * remote.c (remote_target::mourn_inferior): No longer check
8404 whether the target is running.
8405
5018ce90
PA
84062020-01-10 Pedro Alves <palves@redhat.com>
8407
8408 * corelow.c (core_target::has_execution): Change parameter type to
8409 inferior pointer.
8410 * inferior.c (number_of_live_inferiors): Use
8411 inferior::has_execution instead of target_has_execution_1.
8412 * inferior.h (inferior::has_execution): New.
8413 * linux-thread-db.c (thread_db_target::update_thread_list): Use
8414 inferior::has_execution instead of target_has_execution_1.
8415 * process-stratum-target.c
8416 (process_stratum_target::has_execution): Change parameter type to
8417 inferior pointer. Check the inferior's PID instead of
8418 inferior_ptid.
8419 * process-stratum-target.h
8420 (process_stratum_target::has_execution): Change parameter type to
8421 inferior pointer.
8422 * record-full.c (record_full_core_target::has_execution): Change
8423 parameter type to inferior pointer.
8424 * target.c (target_has_execution_1): Change parameter type to
8425 inferior pointer.
8426 (target_has_execution_current): Adjust.
8427 * target.h (target_ops::has_execution): Change parameter type to
8428 inferior pointer.
8429 (target_has_execution_1): Change parameter type to inferior
8430 pointer. Change return type to bool.
8431 * tracefile.h (tracefile_target::has_execution): Change parameter
8432 type to inferior pointer.
8433
74375d18
PA
84342020-01-10 Pedro Alves <palves@redhat.com>
8435
8436 * exceptions.c (print_flush): Remove current_top_target() check.
8437
acdf84a6
PA
84382020-01-10 Pedro Alves <palves@redhat.com>
8439
8440 * remote.c (show_remote_exec_file): Show the current inferior's
8441 exec-file instead of the command variable's value.
8442
ec506636
PA
84432020-01-10 Pedro Alves <palves@redhat.com>
8444
8445 * record-full.c (record_full_resume_ptid): New global.
8446 (record_full_target::resume): Set it.
8447 (record_full_wait_1): Use record_full_resume_ptid instead of
8448 inferior_ptid.
8449
873657b9
PA
84502020-01-10 Pedro Alves <palves@redhat.com>
8451
8452 * gdbthread.h (scoped_restore_current_thread)
8453 <dont_restore, restore, m_dont_restore>: Declare.
8454 * thread.c (thread_alive): Add assertion. Return bool.
8455 (switch_to_thread_if_alive): New.
8456 (prune_threads): Switch inferior/thread.
8457 (print_thread_info_1): Switch thread before calling target methods.
8458 (scoped_restore_current_thread::restore): New, factored out from
8459 ...
8460 (scoped_restore_current_thread::~scoped_restore_current_thread):
8461 ... this.
8462 (scoped_restore_current_thread::scoped_restore_current_thread):
8463 Add assertion.
8464 (thread_apply_all_command, thread_select): Use
8465 switch_to_thread_if_alive.
8466
7f0ae84c
GB
84672020-01-10 George Barrett <bob@bob131.so>
8468
8469 * stap-probe.c (stap_modify_semaphore): Don't check for null
8470 semaphores.
8471 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
8472 for null semaphores.
8473
f5a7c406
AB
84742020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
8475
8476 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
8477 all source windows, and maintain horizontal scroll status while
8478 doing so.
8479
9ae6bf64
TT
84802020-01-09 Tom Tromey <tom@tromey.com>
8481
8482 PR tui/18932:
8483 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
8484 update_source_window, not print_source_lines.
8485
b2efe70c
AB
84862020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
8487
8488 * tui/tui.c (tui_enable): Register tui hooks after calling
8489 tui_display_main.
8490
5f23a082
CB
84912020-01-09 Christian Biesinger <cbiesinger@google.com>
8492
8493 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
8494
3061113b
SM
84952020-01-08 Simon Marchi <simon.marchi@efficios.com>
8496
8497 * thread.c (print_thread_info_1): Fix indentation.
8498
57d75002
CB
84992020-01-09 Christian Biesinger <cbiesinger@google.com>
8500
8501 * symtab.c (general_symbol_info::compute_and_set_names): Move the
8502 unique_xmalloc_ptr outside the if to always free the demangled name.
8503
6a053cb1
TT
85042020-01-08 Tom Tromey <tromey@adacore.com>
8505
8506 * xcoffread.c (enter_line_range, read_xcoff_symtab)
8507 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
8508 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
8509 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
8510 Remove.
8511 (section_offsets): New typedef.
8512 * symtab.c (fixup_section, get_msymbol_address): Update.
8513 * symmisc.c (dump_msymbols): Update.
8514 * symfile.h (relative_addr_info_to_section_offsets)
8515 (symfile_map_offsets_to_segments): Update.
8516 * symfile.c (build_section_addr_info_from_objfile)
8517 (init_objfile_sect_indices): Update.
8518 (struct place_section_arg): Change type of "offsets".
8519 (place_section): Update.
8520 (relative_addr_info_to_section_offsets): Change type of
8521 "section_offsets". Remove "num_sections" parameter.
8522 (default_symfile_offsets, syms_from_objfile_1)
8523 (set_objfile_default_section_offset): Update.
8524 (reread_symbols): No need to preserve section offsets by hand.
8525 (symfile_map_offsets_to_segments): Change type of "offsets".
8526 * stap-probe.c (relocate_address): Update.
8527 * stabsread.h (process_one_symbol): Update.
8528 * solib-target.c (struct lm_info_target) <offsets>: Change type.
8529 (solib_target_relocate_section_addresses): Update.
8530 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
8531 Update.
8532 * solib-frv.c (frv_relocate_main_executable): Update.
8533 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8534 * solib-aix.c (solib_aix_get_section_offsets): Change return
8535 type.
8536 (solib_aix_solib_create_inferior_hook): Update.
8537 * remote.c (remote_target::get_offsets): Update.
8538 * psymtab.c (find_pc_sect_psymtab): Update.
8539 * psympriv.h (struct partial_symbol) <address, text_low,
8540 text_high>: Update.
8541 * objfiles.h (obj_section_offset): Update.
8542 (struct objfile) <section_offsets>: Change type.
8543 <num_sections>: Remove.
8544 (objfile_relocate): Update.
8545 * objfiles.c (entry_point_address_query): Update
8546 (relocate_one_symbol): Change type of "section_offsets".
8547 (objfile_relocate1, objfile_relocate1): Change type of
8548 "new_offsets".
8549 (objfile_rebase1): Update.
8550 * mipsread.c (mipscoff_symfile_read): Update.
8551 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
8552 parameter.
8553 * mdebugread.c (parse_symbol): Change type of "section_offsets".
8554 (parse_external, psymtab_to_symtab_1): Update.
8555 * machoread.c (macho_symfile_offsets): Update.
8556 * ia64-tdep.c (ia64_find_unwind_table): Update.
8557 * hppa-tdep.c (read_unwind_info): Update.
8558 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
8559 * dwarf2read.c (create_addrmap_from_index)
8560 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8561 (process_psymtab_comp_unit_reader, add_partial_symbol)
8562 (add_partial_subprogram, process_full_comp_unit)
8563 (read_file_scope, read_func_scope, read_lexical_block_scope)
8564 (read_call_site_scope, dwarf2_rnglists_process)
8565 (dwarf2_ranges_process, dwarf2_ranges_read)
8566 (dwarf_decode_lines_1, var_decode_location, new_symbol)
8567 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
8568 Update.
8569 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
8570 Update.
8571 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
8572 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
8573 (process_one_symbol): Change type of "section_offsets".
8574 * ctfread.c (get_objfile_text_range): Update.
8575 * coffread.c (coff_symtab_read, enter_linenos)
8576 (process_coff_symbol): Update.
8577 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8578 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
8579
456e800a
TT
85802020-01-08 Tom Tromey <tromey@adacore.com>
8581
8582 * dwarf2read.c (parse_macro_definition): Use std::string.
8583 (parse_macro_definition): Likewise.
8584
6dfa2fc2
TT
85852020-01-08 Tom Tromey <tromey@adacore.com>
8586
8587 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
8588 (ATTR_ALLOC_CHUNK): Remove.
8589
421d1616
TT
85902020-01-08 Tom Tromey <tromey@adacore.com>
8591
8592 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
8593
43816ebc
TT
85942020-01-08 Tom Tromey <tromey@adacore.com>
8595
8596 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
8597 (dwarf2_compute_name, open_dwo_file): Likewise.
8598 (process_enumeration_scope): Use std::vector.
8599 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
8600 (partial_die_info::fixup, dwarf2_start_subfile)
8601 (guess_full_die_structure_name, dwarf2_name): Likewise.
8602 (determine_prefix): Update.
8603 (guess_full_die_structure_name): Make return type const.
8604 (partial_die_full_name): Return unique_xmalloc_ptr.
8605 (DW_FIELD_ALLOC_CHUNK): Remove.
8606
4212d509
TT
86072020-01-07 Tom Tromey <tromey@adacore.com>
8608
8609 PR build/24937:
8610 * stap-probe.c (class stap_static_probe_ops): Add constructor.
8611
06a6207a
JT
86122020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
8613
8614 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
8615
153d79c4
AB
86162020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
8617
8618 * stack.c (print_frame_info): Move disassemble_next_line code
8619 inside source_print block.
8620
66182876
EZ
86212020-01-06 Eli Zaretskii <eliz@gnu.org>
8622
8623 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
8624 gdb/signals.h, as we are now using native signal symbols.
8625
cbfa8581
SV
86262020-01-06 Shahab Vahedi <shahab@synopsys.com>
8627
8628 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
8629 overflow by an early check of content vs threshold.
aac66a4c 8630 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
8631 Likewise.
8632
3f602821
EZ
86332020-01-06 Eli Zaretskii <eliz@gnu.org>
8634
8635 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
8636
a08c904d
JT
86372020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
8638
8639 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
8640 export table if no section contains it's RVA.
8641
89a65580
EZ
86422020-01-06 Eli Zaretskii <eliz@gnu.org>
8643
8644 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
8645
8b7fcda2
HD
86462020-01-06 Hannes Domani <ssbssa@yahoo.de>
8647
8648 * source.c (print_source_lines_base): Set last_line_listed.
8649
a61b4f69
SV
86502020-01-06 Shahab Vahedi <shahab@synopsys.com>
8651
8652 * tui/tui-disasm.c: Remove trailing spaces.
8653
559e7e50
EZ
86542020-01-06 Eli Zaretskii <eliz@gnu.org>
8655 Pedro Alves <palves@redhat.com>
8656
8657 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
8658 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
8659 (windows_gdb_signal_to_target): New function, uses the above
8660 enumeration to convert GDB internal signal codes to equivalent
8661 Windows codes.
8662 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
8663 * windows-nat.c: Include "gdb_wait.h".
8664 (get_windows_debug_event): Extract the fatal exception from the
8665 exit status and convert to the equivalent Posix signal number.
8666 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
8667 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
8668 * gdbsupport/gdb_wait.c: New file, implements
8669 windows_status_to_termsig.
8670 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
8671 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
8672
f2302a34
AB
86732020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
8674
8675 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
8676 show_layout.
8677
6a5206eb
LM
86782020-01-05 Luis Machado <luis.machado@linaro.org>
8679
8680 * aarch64-linux-nat.c
8681 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
8682 and bfd_mach_aarch64.
8683
6ec1d75e
PW
86842020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8685
8686 * ui-file.c (stdio_file::can_emit_style_escape)
8687 (tee_file::can_emit_style_escape): Ensure style is used also on
8688 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
8689 to gdb_stdout.
8690 * main.c (set_gdb_data_directory): Use file style to output the
8691 warning that the given pathname is not a directory.
8692 * top.c (show_history_filename, gdb_safe_append_history)
8693 (show_gdb_datadir): Use file style.
8694
44f81a76
HD
86952020-01-03 Hannes Domani <ssbssa@yahoo.de>
8696
8697 * solib-target.c (struct lm_info_target):
8698 Change offsets to be a unique_xmalloc_ptr.
8699 (solib_target_relocate_section_addresses): Update.
8700
25057eb0
HD
87012020-01-03 Hannes Domani <ssbssa@yahoo.de>
8702
8703 * windows-nat.c (windows_clear_solib): Free so_list linked list.
8704
6e2118f5
BE
87052020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
8706
8707 * MAINTAINERS (Write After Approval): Add myself.
8708
8133c7dc
LM
87092020-01-02 Luis Machado <luis.machado@linaro.org>
8710
8711 * proc-service.c (get_ps_regcache): Remove reference to obsolete
8712 Cell BE architecture.
8713 * target.h (struct target_ops) <thread_architecture>: Likewise.
8714
48189bec
HD
87152020-01-01 Hannes Domani <ssbssa@yahoo.de>
8716
8717 * Makefile.in: Use INSTALL_PROGRAM_ENV.
8718
ead1063b
HD
87192020-01-01 Hannes Domani <ssbssa@yahoo.de>
8720
8721 * MAINTAINERS (Write After Approval): Add myself.
8722
e5d78223
JB
87232020-01-01 Joel Brobecker <brobecker@adacore.com>
8724
8725 * gdbarch.sh: Update copyright year range of generated files.
8726
b811d2c2
JB
87272020-01-01 Joel Brobecker <brobecker@adacore.com>
8728
8729 Update copyright year range in all GDB files.
8730
5f4def5c
JB
87312020-01-01 Joel Brobecker <brobecker@adacore.com>
8732
8733 * copyright.py: Convert to Python 3.
8734
51fd4002
JB
87352020-01-01 Joel Brobecker <brobecker@adacore.com>
8736
8737 * copyright.py: Adapt after move of gnulib directory from gdb
8738 directory to toplevel directory.
8739
5fb651f2
JB
87402020-01-01 Joel Brobecker <brobecker@adacore.com>
8741
8742 * copyright.py (main): Exit if run from the wrong directory.
8743
5dd8bf88
JB
87442020-01-01 Joel Brobecker <brobecker@adacore.com>
8745
8746 * top.c (print_gdb_version): Change copyright year to 2020.
8747
9f71dacb 87482020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 8749
9f71dacb 8750 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 8751
9f71dacb 8752For older changes see ChangeLog-2019.
c906108c
SS
8753\f
8754Local Variables:
8755mode: change-log
8756left-margin: 8
8757fill-column: 74
8758version-control: never
57da7796 8759coding: utf-8
c906108c 8760End: