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