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