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