]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Handle member pointers directly in generic_value_print
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6b5a7bc7
TT
12020-09-15 Tom Tromey <tom@tromey.com>
2
3 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4 and TYPE_CODE_METHODPTR cases.
5 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
6 (c_value_print_inner): Update.
7 * valprint.c (generic_value_print_memberptr): New function, from
8 c_value_print_memberptr.
9 (generic_value_print): Use it. Call cplus_print_method_ptr.
10
47f0e2ff
TT
112020-09-15 Tom Tromey <tromey@adacore.com>
12
13 * python/python-internal.h (PyInt_FromLong): Remove define.
14 * python/py-value.c (convert_value_from_python): Use
15 gdb_py_object_from_longest.
16 * python/py-type.c (typy_get_code): Use
17 gdb_py_object_from_longest.
18 * python/py-symtab.c (salpy_get_line): Use
19 gdb_py_object_from_longest.
20 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
21 gdb_py_object_from_longest.
22 * python/py-record.c (recpy_gap_reason_code): Use
23 gdb_py_object_from_longest.
24 * python/py-record-btrace.c (recpy_bt_insn_size)
25 (recpy_bt_func_level, btpy_list_count): Use
26 gdb_py_object_from_longest.
27 * python/py-infthread.c (gdbpy_create_ptid_object): Use
28 gdb_py_object_from_longest. Fix error handling.
29 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
30 gdb_py_object_from_longest.
31 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
32 gdb_py_object_from_longest.
33 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
34 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
35 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
36
512116ce
TT
372020-09-15 Tom Tromey <tromey@adacore.com>
38
39 * python/python.c (gdbpy_parameter_value): Use
40 gdb_py_object_from_ulongest.
41
4ab1029c
TT
422020-09-15 Tom Tromey <tromey@adacore.com>
43
44 * python/py-infevents.c (create_register_changed_event_object):
45 Use gdb_py_object_from_longest.
46 * python/py-exitedevent.c (create_exited_event_object): Use
47 gdb_py_object_from_longest.
48
062534d4
TT
492020-09-15 Tom Tromey <tromey@adacore.com>
50
51 * python/python.c (gdbpy_parameter_value): Use
52 gdb_py_object_from_longest.
53 * python/py-type.c (convert_field, typy_range): Use
54 gdb_py_object_from_longest.
55 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
56 gdb_py_object_from_longest.
57 * python/py-lazy-string.c (stpy_get_length): Use
58 gdb_py_object_from_longest.
59 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
60 gdb_py_object_from_longest.
61 * python/py-infevents.c (create_memory_changed_event_object): Use
62 gdb_py_object_from_longest.
63 * python/py-inferior.c (infpy_get_num): Use
64 gdb_py_object_from_longest.
65 (infpy_get_pid): Likewise.
66
d1cab987
TT
672020-09-15 Tom Tromey <tromey@adacore.com>
68
69 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
70 defines.
71 * python/py-value.c (valpy_long): Use
72 gdb_py_object_from_ulongest.
73 * python/py-symtab.c (salpy_get_pc): Use
74 gdb_py_object_from_ulongest.
75 (salpy_get_last): Likewise.
76 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
77 gdb_py_object_from_ulongest.
78 * python/py-lazy-string.c (stpy_get_address): Use
79 gdb_py_object_from_ulongest.
80 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
81 * python/py-arch.c (archpy_disassemble): Use
82 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
83 error handling.
84
4bde49dc
TT
852020-09-15 Tom Tromey <tromey@adacore.com>
86
87 * python/python-internal.h (gdb_py_long_from_longest): Remove
88 defines.
89 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
90 * python/py-type.c (convert_field, typy_get_sizeof): Use
91 gdb_py_object_from_longest.
92 * python/py-record-btrace.c (btpy_list_index): Use
93 gdb_py_object_from_longest.
94
37431074
TT
952020-09-15 Tom Tromey <tromey@adacore.com>
96
97 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
98 * python/py-record.c (recpy_element_number): Use
99 gdb_py_object_from_longest.
100 (recpy_gap_number): Likewise.
101
cbe25684
TT
1022020-09-15 Tom Tromey <tromey@adacore.com>
103
104 * top.c (ui::ui): Update.
105 (highest_ui_num): Remove.
106 * top.h (struct ui) <num>: Remove.
107
db92ac45
TT
1082020-09-15 Tom Tromey <tromey@adacore.com>
109
110 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
111 * ui-style.c (ansi_regex_text): Now array.
112 * rust-exp.y (number_regex_text): Now array.
113 * linespec.c (linespec_quote_characters): Now array.
114 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
115 Now arrays.
116
d2b31b67
SM
1172020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
118
119 * debuginfod-support.c (debuginfod_client_deleter): New.
120 (debuginfod_client_up): New.
121 (debuginfod_init): Return debuginfod_client_up.
122 (debuginfod_source_query): Adjust.
123 (debuginfod_debuginfo_query): Adjust.
124
3246bd8e
SM
1252020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
126
127 * debuginfod-support.c (debuginfod_source_query): Use
128 make_unique_xstrdup.
129
10242f36
SM
1302020-09-14 Simon Marchi <simon.marchi@efficios.com>
131
132 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
133 with `type::instance_flags`.
134
e1044e6a
MM
1352020-09-14 Michael Mullin <masmullin@gmail.com>
136
137 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
138 Remove baton parameter.
139
04902b09
PA
1402020-09-14 Pedro Alves <pedro@palves.net>
141
142 * Makefile.in (SELFTESTS_SRCS): Add
143 unittests/enum-flags-selftests.c.
144 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
145 btrace_function_flags instead of enum btrace_function_flag.
146 * compile/compile-c-types.c (convert_qualified): Use
147 enum_flags::raw.
148 * compile/compile-cplus-symbols.c (convert_one_symbol)
149 (convert_symbol_bmsym):
150 * compile/compile-cplus-types.c (compile_cplus_convert_method)
151 (compile_cplus_convert_struct_or_union_methods)
152 (compile_cplus_instance::convert_qualified_base):
153 * go-exp.y (parse_string_or_char): Add cast to int.
154 * unittests/enum-flags-selftests.c: New file.
155 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
156 type to btrace_thread_flags from btrace_thread_flag.
157 (record_btrace_cancel_resume, record_btrace_step_thread): Change
158 local's type to btrace_thread_flags from btrace_thread_flag. Add
159 cast in DEBUG call.
160
69896a2c
PA
1612020-09-14 Pedro Alves <pedro@palves.net>
162
163 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
164 * gdbtypes.c (address_space_name_to_int): Rename to ...
165 (address_space_name_to_type_instance_flags): ... this.
166 (address_space_int_to_name): Rename to ...
167 (address_space_type_instance_flags_to_name): ... this.
168 * gdbtypes.h (address_space_name_to_int): Rename to ...
169 (address_space_name_to_type_instance_flags): ... this.
170 (address_space_int_to_name): Rename to ...
171 (address_space_type_instance_flags_to_name): ... this.
172 * type-stack.c (type_stack::insert): Adjust to rename.
173 * type-stack.h (type_stack::insert): Likewise.
174
314ad88d
PA
1752020-09-14 Pedro Alves <pedro@palves.net>
176 Andrew Burgess <andrew.burgess@embecosm.com>
177
178 * avr-tdep.c (avr_address_class_type_flags): Return
179 type_instance_flags.
180 (avr_address_class_type_flags_to_name): Take a
181 type_instance_flags.
182 (avr_address_class_name_to_type_flags): Return bool and take a
183 type_instance_flags.
184 * d-lang.c (build_d_types): Use type::set_instance_flags.
185 * ft32-tdep.c (ft32_address_class_type_flags): Return
186 type_instance_flags.
187 (ft32_address_class_type_flags_to_name): Take a
188 type_instance_flags.
189 (ft32_address_class_name_to_type_flags): Return bool and take a
190 type_instance_flags.
191 (ft32_gdbarch_init): Use type::set_instance_flags.
192 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
193 * gdbarch.h, gdbarch.c: Regenerate.
194 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
195 (address_class_name_to_type_flags): Use type_instance_flags and
196 bool.
197 * gdbtypes.c (address_space_name_to_int)
198 (address_space_int_to_name, make_qualified_type): Use
199 type_instance_flags.
200 (make_qualified_type): Use type_instance_flags and
201 type::set_instance_flags.
202 (make_type_with_address_space, make_cv_type, make_vector_type)
203 (check_typedef): Use type_instance_flags.
204 (recursive_dump_type): Cast type_instance_flags to unsigned for
205 printing.
206 (copy_type_recursive): Use type::set_instance_flags.
207 (gdbtypes_post_init): Use type::set_instance_flags.
208 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
209 <m_instance_flags>: ... this.
210 <instance_flags, set_instance_flags>: New methods.
211 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
212 (SET_TYPE_INSTANCE_FLAGS): New.
213 (address_space_name_to_int, address_space_int_to_name)
214 (make_type_with_address_space): Pass flags using
215 type_instance_flags instead of int.
216 * stabsread.c (cleanup_undefined_types_noname): Use
217 type::set_instance_flags.
218 * s390-tdep.c (s390_address_class_type_flags): Return
219 type_instance_flags.
220 (s390_address_class_type_flags_to_name): Take a
221 type_instance_flags.
222 (s390_address_class_name_to_type_flags): Return bool and take a
223 type_instance_flags.
224 * type-stack.c (type_stack::follow_types): Use
225 type_instance_flags.
226 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
227
27087b7f
TT
2282020-09-14 Tom Tromey <tromey@adacore.com>
229
230 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
231 * x86-tdep.c (x86_is_thunk_register_name)
232 (x86_in_indirect_branch_thunk): Update.
233 * sparc64-tdep.c (sparc64_fpu_register_names)
234 (sparc64_cp0_register_names, sparc64_register_names)
235 (sparc64_pseudo_register_names): Now const.
236 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
237 cp0_registers_num>: Now const.
238 * sparc-tdep.c (sparc_core_register_names)
239 (sparc32_fpu_register_names, sparc32_cp0_register_names)
240 (sparc32_pseudo_register_names): Now const.
241 (validate_tdesc_registers): Update.
242 * rust-lang.c (rust_extensions): Now const.
243 * p-lang.c (p_extensions): Now const.
244 * objc-lang.c (objc_extensions): Now const.
245 * nto-tdep.c (nto_thread_state_str): Now const.
246 * moxie-tdep.c (moxie_register_names): Now const.
247 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
248 Now const.
249 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
250 (mips_linux_reg_names): Now const.
251 (mips_gdbarch_init): Update.
252 * microblaze-tdep.c (microblaze_register_names): Now const.
253 * m68k-tdep.c (m68k_register_names): Now const.
254 * m32r-tdep.c (m32r_register_names): Now const.
255 * ia64-tdep.c (ia64_register_names): Now const.
256 * i386-tdep.h (struct gdbarch_tdep) <register_names,
257 ymmh_register_names, ymm16h_regnum, mpx_register_names,
258 k_register_names, zmmh_register_names, xmm_avx512_register_names,
259 ymm_avx512_register_names, pkeys_register_names>: Now const.
260 * i386-tdep.c (i386_register_names, i386_zmm_names)
261 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
262 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
263 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
264 * f-lang.c (f_extensions): Now const.
265 * d-lang.c (d_extensions): Now const.
266 * csky-tdep.c (csky_register_names): Now const.
267 * charset.c (default_charset_names, charset_enum): Now const.
268 (_initialize_charset): Update.
269 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
270 const.
271 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
272 (bsd_uthread_solib_loaded): Update.
273 (bsd_uthread_state): Now const.
274 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
275 (amd64_ymm_avx512_names, amd64_ymmh_names)
276 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
277 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
278 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
279 (amd64_dword_names): Now const.
280 * agent.c (can_use_agent_enum): Now const.
281 * ada-tasks.c (task_states, long_task_states): Now const.
282 * ada-lang.c (known_runtime_file_name_patterns)
283 (known_auxiliary_function_name_patterns, attribute_names)
284 (standard_exc, ada_extensions): Now const.
285
89806626
SM
2862020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
287
288 * bcache.h (struct bcache) <bcache>: Remove constructor.
289 <m_hash_function, m_compare_function>: Remove.
290 <~bcache>: Make virtual.
291 <compare>: Remove static method, introduce virtual method.
292 <default_hash>: Remove.
293 <hash>: New virtual method.
294 * bcache.c (bcache::expand_hash_table): Update.
295 (bcache::insert): Update.
296 (bcache::hash): New.
297 (bcache::compare): Update comment and parameter names.
298 * gdbtypes.c (types_deeply_equal): Update.
299 * psymtab.h (struct psymbol_bcache): New struct.
300 (class psymtab_storage) <psymtab_storage>: Make default.
301 <psymbol_cache>: Change type to psymbol_bcache.
302 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
303 (psymbol_hash): Change to...
304 (psymbol_bcache::hash): ... this.
305 (psymbol_compare): Change to...
306 (psymbol_bcache::compare): ... this.
307
677c92fe
SM
3082020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
309
310 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
311 checking for initial lwp.
312
3eba3a01
TT
3132020-09-14 Tom Tromey <tromey@adacore.com>
314
315 * m68k-tdep.c (m68k_extract_return_value): Use
316 pointer_result_regnum.
317 (m68k_store_return_value): Likewise.
318 (m68k_reg_struct_return_p): Handle vectors and arrays.
319 (m68k_return_value): Handle arrays.
320 (m68k_svr4_return_value): Fix single-element aggregate handling.
321 Handle long double. Adjust for embedded ABI.
322 (m68k_svr4_init_abi): Set pointer_result_regnum.
323 (m68k_embedded_init_abi): New function.
324 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
325 (m68k_osabi_sniffer): New function.
326 (_initialize_m68k_tdep): Register osabi sniffer.
327 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
328 member.
329
33f4dd48
SM
3302020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
331
332 * xml-support.c (xml_fetch_content_from_file): Replace xfree
333 with gdb::unique_xmalloc_ptr<char>.
334
8400a90d
SM
3352020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
336
337 * xml-support.h (xml_fetch_another): Change type to be a
338 function_view.
339 (xml_process_xincludes): Remove baton parameter.
340 (xml_fetch_content_from_file): Change baton parameter to
341 dirname.
342 * xml-support.c (struct xinclude_parsing_data)
343 <xinclude_parsing_data>: Remove baton parameter.
344 <fetcher_baton>: Remove.
345 (xinclude_start_include): Adjust.
346 (xml_process_xincludes): Adjust.
347 (xml_fetch_content_from_file): Replace baton parameter with
348 dirname.
349 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
350 (xml_init_syscalls_info): Use a lambda.
351 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
352 (file_read_description_xml): Use a lambda.
353 (fetch_available_features_from_target): Change baton parameter
354 to target_ops.
355 (target_read_description_xml): Use a lambda.
356 (target_fetch_description_xml): Use a lambda.
357 (string_read_description_xml): Update.
358
04f5bab2
SM
3592020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
360
361 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
362 uses with type::endianity_is_not_default.
363
db558e34
SM
3642020-09-14 Simon Marchi <simon.marchi@efficios.com>
365
366 * gdbtypes.h (struct type) <endianity_is_not_default,
367 set_endianity_is_not_default>: New methods.
368 (TYPE_ENDIANITY_NOT_DEFAULT): Use
369 type::endianity_is_not_default, change all write call sites to
370 use type::set_endianity_is_not_default.
371
22c4c60c
SM
3722020-09-14 Simon Marchi <simon.marchi@efficios.com>
373
374 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
375 uses with type::is_fixed_instance.
376
9cdd0d12
SM
3772020-09-14 Simon Marchi <simon.marchi@efficios.com>
378
379 * gdbtypes.h (struct type) <is_fixed_instance,
380 set_is_fixed_instance>: New methods.
381 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
382 write call sites to use type::set_is_fixed_instance.
383
0becda7a
SM
3842020-09-14 Simon Marchi <simon.marchi@efficios.com>
385
386 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
387 uses with type::is_gnu_ifunc.
388
03cc7249
SM
3892020-09-14 Simon Marchi <simon.marchi@efficios.com>
390
391 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
392 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
393 use type::set_is_gnu_ifunc.
394
3f46044c
SM
3952020-09-14 Simon Marchi <simon.marchi@efficios.com>
396
397 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
398 uses with type::stub_is_supported.
399
9baccff6
SM
4002020-09-14 Simon Marchi <simon.marchi@efficios.com>
401
402 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
403 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
404 use type::set_stub_is_supported.
405
bd63c870
SM
4062020-09-14 Simon Marchi <simon.marchi@efficios.com>
407
408 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
409 uses with type::is_vector.
410
2062087b
SM
4112020-09-14 Simon Marchi <simon.marchi@efficios.com>
412
413 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
414 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
415 use type::set_is_vector.
416
a409645d
SM
4172020-09-14 Simon Marchi <simon.marchi@efficios.com>
418
419 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
420 uses with type::has_varargs.
421
1d6286ed
SM
4222020-09-14 Simon Marchi <simon.marchi@efficios.com>
423
424 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
425 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
426 use type::set_has_varargs.
427
7f9f399b
SM
4282020-09-14 Simon Marchi <simon.marchi@efficios.com>
429
430 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
431 uses with type::is_prototyped.
432
27e69b7a
SM
4332020-09-14 Simon Marchi <simon.marchi@efficios.com>
434
435 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
436 New methods.
437 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
438 call sites to use type::set_is_prototyped.
439
d2183968
SM
4402020-09-14 Simon Marchi <simon.marchi@efficios.com>
441
442 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
443 uses with type::target_is_stub.
444
8f53807e
SM
4452020-09-14 Simon Marchi <simon.marchi@efficios.com>
446
447 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
448 New methods.
449 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
450 sites to use type::set_target_is_stub.
451
e46d3488
SM
4522020-09-14 Simon Marchi <simon.marchi@efficios.com>
453
454 * gdbtypes.h (TYPE_STUB): Remove, replace all
455 uses with type::is_stub.
456
b4b73759
SM
4572020-09-14 Simon Marchi <simon.marchi@efficios.com>
458
459 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
460 (TYPE_STUB): Use type::is_stub, change all write call sites to
461 use type::set_is_stub.
462
20ce4123
SM
4632020-09-14 Simon Marchi <simon.marchi@efficios.com>
464
465 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
466 type::has_no_signedness.
467
15152a54
SM
4682020-09-14 Simon Marchi <simon.marchi@efficios.com>
469
470 * gdbtypes.h (struct type) <has_no_signedness,
471 set_has_no_signedness>: New methods.
472 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
473 call sites to use type::set_has_no_signedness.
474
c6d940a9
SM
4752020-09-14 Simon Marchi <simon.marchi@efficios.com>
476
477 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
478 type::is_unsigned.
479
653223d3
SM
4802020-09-14 Simon Marchi <simon.marchi@efficios.com>
481
482 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
483 methods.
484 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
485 sites to use type::set_is_unsigned.
486
55ea94da
FH
4872020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
488 Adam Renquinha <arenquinha@cimeq.qc.ca>
489
490 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
491 pointer and stack frame offset when unwinding.
492
6791b117
PA
4932020-09-13 Pedro Alves <pedro@palves.net>
494
495 * NEWS: Document "-break-insert --qualified".
496 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
497
77f2120b
PA
4982020-09-13 Pedro Alves <pedro@palves.net>
499
500 * linespec.c (classify_mtype, compare_msyms): Delete.
501 (search_minsyms_for_name): Remove classification logic. Instead
502 filter out trampoline symbols if we also found an external
503 function of the same name.
504
ed6a896c
JB
5052020-09-13 Joel Brobecker <brobecker@adacore.com>
506
507 * NEWS: Create a new section for the next release branch.
508 Rename the section of the current branch, now that it has
509 been cut.
510
32aea73e
JB
5112020-09-13 Joel Brobecker <brobecker@adacore.com>
512
513 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
514 * version.in: Bump version to 11.0.50.DATE-git.
515
8087c3fa
JB
5162020-09-12 Joel Brobecker <brobecker@adacore.com>
517
518 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
519
2a67f09d
FW
5202020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
521 Felix Willgerodt <Felix.Willgerodt@intel.com>
522
523 * gdbarch.sh: Added bfloat16 type.
524 * gdbarch.c: Regenerated.
525 * gdbarch.h: Regenerated.
526 * gdbtypes.c (floatformats_bfloat16): New struct.
527 (gdbtypes_post_init): Add builtin_bfloat16.
528 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
529 (floatformats_bfloat16): New struct.
530 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
531 (i386_ymm_type): Add field "v16_bfloat16"
532 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
533 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
534 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
535 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
536 * features/i386/64bit-avx512.xml: Add bfloat16 type.
537 * features/i386/64bit-avx512.c: Regenerated.
538 * features/i386/64bit-sse.xml: Add bfloat16 type.
539 * features/i386/64bit-sse.c: Regenerated.
540
1347d111
FW
5412020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
542
543 * i386-tdep.c (i386_zmm_type): Fix field names.
544 (i386_ymm_type): Fix field names.
545
7a4e8e7d
TBA
5462020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
547
548 * breakpoint.c: Fix typo in the help message of the
549 "set breakpoint condition-evaluation" command.
550
cf4ac4be
KR
5512020-09-10 Kamil Rytarowski <n54@gmx.com>
552
553 * nbsd-nat.c: Include "nat/netbsd-nat.h".
554 * (nbsd_nat_target::pid_to_exec_file)
555 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
556 (nbsd_nat_target::post_startup_inferior)
557 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
558 (nbsd_add_threads): Switch local code to common gdb/nat functions.
559 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
560 * (nbsd_thread_lister): Remove.
561
f404573e
KR
5622020-09-10 Kamil Rytarowski <n54@gmx.com>
563
564 * fork-inferior.c (startup_inferior): Avoid double free.
565
1ccb2c17
KR
5662020-09-10 Kamil Rytarowski <n54@gmx.com>
567
568 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
569 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
570
feedfcc7
KR
5712020-09-10 Kamil Rytarowski <n54@gmx.com>
572
573 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
574 * netbsd-nat.c: Include <sys/ptrace.h>.
575 * (netbsd_nat::enable_proc_events): Add.
576
c489f8c6
KR
5772020-09-10 Kamil Rytarowski <n54@gmx.com>
578
579 * netbsd-nat.h: Include "gdbsupport/function-view.h".
580 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
581 (netbsd_nat::for_each_thread): Add.
582 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
583 "gdbsupport/common-debug.h".
584 * (netbsd_nat::netbsd_thread_lister)
585 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
586 (netbsd_nat::for_each_thread): Add.
587
330662f6
KR
5882020-09-10 Kamil Rytarowski <n54@gmx.com>
589
590 * netbsd-nat.h: Include <unistd.h>.
591 * (netbsd_nat::pid_to_exec_file): Add.
592 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
593 * (netbsd_nat::pid_to_exec_file) Add.
594
70b67307
KR
5952020-09-10 Kamil Rytarowski <n54@gmx.com>
596
597 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
598
99cf6da6
KR
5992020-09-10 Kamil Rytarowski <n54@gmx.com>
600
601 * netbsd-nat.h: New file.
602 * netbsd-nat.c: Likewise.
603
1b788fb6
TT
6042020-09-09 Tom Tromey <tromey@adacore.com>
605
606 * ada-lang.c (remove_extra_symbols): Do not increment when
607 removing an element
608
03b0a45f
TT
6092020-09-08 Tom Tromey <tromey@adacore.com>
610
611 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
612
3cae4447
TT
6132020-09-08 Tom Tromey <tromey@adacore.com>
614
615 PR win32/25302:
616 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
617 (gdb_bfd_init_data): New function.
618 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
619
7f08fd51
TBA
6202020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
621
622 * infrun.c (fetch_inferior_event): Use
623 `switch_to_target_no_thread` to switch the target.
624
3e6ff933
TT
6252020-09-06 Tom Tromey <tom@tromey.com>
626
627 * symfile.h (dwarf2_free_objfile): Don't declare.
628
e56798df
AKS
6292020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
630
631 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
632 to match 16 byte real/complex type generated by Flang compiler.
633
8f5c6526
TV
6342020-09-03 Tom de Vries <tdevries@suse.de>
635
636 PR breakpoint/26546
637 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
638 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
639
c5065df0
SM
6402020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
641
642 * maint.c (index_digits): New function.
643 (struct maint_print_section_data): Remove.
644 (print_bfd_section_info): Remove print_data parameter, add arg
645 and index_digits.
646 (print_objfile_section_info): Likewise.
647 (print_bfd_section_info_maybe_relocated): Likewise (plus
648 objfile).
649 (maintenance_info_sections): Adjust calls.
650
02c6f3f1
TT
6512020-09-02 Tom Tromey <tromey@adacore.com>
652
653 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
654 for null pointers.
655 (ada_varobj_adjust_for_child_access): Special-case null pointers.
656
ef5e5b0b
SM
6572020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
658
659 * bcache.h (struct bcache) <insert>: Change type of `added` to
660 pointer to bool.
661 * bcache.c (bcache::insert): Likewise.
662 * gdbtypes.c (check_types_worklist): Adjust.
663 * psymtab.c (add_psymbol_to_bcache): Adjust.
664
973695d6
KB
6652020-08-31 Kevin Buettner <kevinb@redhat.com>
666
667 * corelow.c (unordered_set): Include.
668 (class core_target): Add field 'm_core_unavailable_mappings'.
669 (core_target::build_file_mappings): Print only one warning
670 per inaccessible file. Add unavailable/broken mappings
671 to m_core_unavailable_mappings.
672 (core_target::xfer_partial): Call...
673 (core_target::xfer_memory_via_mappings): New method.
674
264fc0e2
SM
6752020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
676
677 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
678 type to bool.
679
2de01bdb
SM
6802020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
681
682 * dwarf2/read.c (struct field_info): Fix indentation.
683
f3bd50f1
SM
6842020-08-31 Simon Marchi <simon.marchi@efficios.com>
685
686 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
687 ordering in comment.
688 * frame.c (frame_id_eq): Fix indentation.
689
22b9b4b0
SL
6902020-08-31 Scott Linder <scott@scottlinder.com>
691 Simon Marchi <simon.marchi@efficios.com>
692
693 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
694 inline frame ids in outer frame.
695
84154d16
SM
6962020-08-31 Simon Marchi <simon.marchi@efficios.com>
697
698 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
699 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
700 (outer_frame_id): Use FID_STACK_OUTER instead of
701 FID_STACK_INVALID.
702 (frame_id_p): Don't check for outer_frame_id.
703
8efaf6b3
SM
7042020-08-31 Simon Marchi <simon.marchi@efficios.com>
705
706 * frame-unwind.c (frame_unwind_got_optimized): Don't set
707 regnum/frame in value. Call allocate_value_lazy.
708 * frame.c (frame_unwind_register_value): Use
709 val_print_not_saved.
710
fe1fe7ea
SM
7112020-08-31 Simon Marchi <simon.marchi@efficios.com>
712
713 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
714
f7c7700d
PA
7152020-08-29 Pedro Alves <pedro@palves.net>
716
717 * progspace.c (print_program_space): Use all_inferiors. Switch to
718 the inferior before calling target_pid_to_str.
719
e0814aae
TT
7202020-08-28 Tom Tromey <tom@tromey.com>
721
722 * xcoffread.c (xcoff_end_psymtab): Update comment.
723 * dbxread.c (dbx_end_psymtab): Update comment.
724
626d2320
TV
7252020-08-28 Tom de Vries <tdevries@suse.de>
726
727 PR breakpoint/26544
728 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
729 event_location.
730 (create_breakpoint): Same.
731 (base_breakpoint_decode_location): Same.
732 (bkpt_create_sals_from_location): Same.
733 (bkpt_decode_location): Same.
734 (bkpt_probe_create_sals_from_location): Same.
735 (bkpt_probe_decode_location): Same.
736 (tracepoint_create_sals_from_location): Same.
737 (tracepoint_decode_location): Same.
738 (tracepoint_probe_decode_location): Same.
739 (strace_marker_create_sals_from_location): Same.
740 (strace_marker_decode_location): Same.
741 (create_sals_from_location_default): Same.
742 (decode_location_default): Same.
743 * breakpoint.h (struct breakpoint_ops): Same.
744 (create_breakpoint): Same.
745 * linespec.h (decode_line_full): Same.
746 * linespec.c (decode_line_full): Same. Throw error if
747 result.size () == 0.
748
df631783
PA
7492020-08-27 Pedro Alves <pedro@palves.net>
750
751 PR gdb/26524
752 * breakpoint.c (until_break_fsm) <location_breakpoint,
753 caller_breakpoint>: Delete fields.
754 <breakpoints>: New field.
755 <until_break_fsm>: Adjust to save a breakpoint vector instead of
756 two individual breakpoints.
757 (until_break_fsm::should_stop): Loop over breakpoints in the
758 breakpoint vector.
759 (until_break_fsm::clean_up): Adjust to clear the breakpoints
760 vector.
761 (until_break_command): Handle location expanding into multiple
762 sals.
763
b2b38aa4
PA
7642020-08-27 Pedro Alves <pedro@palves.net>
765
766 PR gdb/26523
767 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
768 bp_until breakpoints user-specified locations. Update intro
769 comment.
770
b886559f
SM
7712020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
772
773 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
774 gdb_bfd_sections): New.
775 * maint.c (print_bfd_section_info): Change param type to
776 maint_print_section_data.
777 (print_objfile_section_info): Likewise.
778 (print_bfd_section_info_maybe_relocated): Likewise.
779 (maintenance_info_sections): Use gdb_bfd_sections.
780
4c6e63bf
SV
7812020-08-25 Shahab Vahedi <shahab@synopsys.com>
782
783 * MAINTAINERS: Add ARC target and maintainer.
784
8d7f0635
AK
7852020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
786
787 * configure.tgt: ARC support for GNU/Linux.
788 * Makefile.in (ALL_TARGET_OBJS): Likewise.
789 * arc-linux-tdep.c: New file.
790 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
791 * arc-tdep.c (arc_write_pc): Use it.
792
fdd8731b
SV
7932020-08-25 Shahab Vahedi <shahab@synopsys.com>
794
795 * arc-tdep.c (arc_check_for_hardware_loop): New.
796 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
797
22459524
SV
7982020-08-25 Shahab Vahedi <shahab@synopsys.com>
799
800 * arc-tdep.h: Include "gdbarch.h".
801
995d3a19
SV
8022020-08-25 Shahab Vahedi <shahab@synopsys.com>
803
804 * arch/arc.h
805 (arc_gdbarch_features): New class to stir the selection of target XML.
806 (arc_create_target_description): Use FEATURES to choose XML target.
807 (arc_lookup_target_description): Use arc_create_target_description
808 to create _new_ target descriptions or return the already created
809 ones if the FEATURES is the same.
810 * arch/arc.c: Implementation of prototypes described above.
811 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
812 (arc_gdbarch_features_init): Initialize the FEATURES struct.
813 * arc-tdep.c (*_feature_name): Make feature names consistent.
814 (arc_register_feature): A new struct to hold information about
815 registers of a particular target/feature.
816 (arc_check_tdesc_feature): Check if XML provides registers in
817 compliance with ARC_REGISTER_FEATURE structs.
818 (arc_update_acc_reg_names): Add aliases for r58 and r59.
819 (determine_*_reg_feature_set): Which feature name to look for.
820 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
821 (mach_type_to_arc_isa): Convert from a set of binutils machine types
822 to expected ISA enums to be used in arc_gdbarch_features structs.
823 * features/Makefile (FEATURE_XMLFILES): Add new files.
824 * gdb/features/arc/v1-aux.c: New file.
825 * gdb/features/arc/v1-aux.xml: Likewise.
826 * gdb/features/arc/v1-core.c: Likewise.
827 * gdb/features/arc/v1-core.xml: Likewise.
828 * gdb/features/arc/v2-aux.c: Likewise.
829 * gdb/features/arc/v2-aux.xml: Likewise.
830 * gdb/features/arc/v2-core.c: Likewise.
831 * gdb/features/arc/v2-core.xml: Likewise.
832 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
833
3945d2d7
GM
8342020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
835 Andrew Burgess <andrew.burgess@embecosm.com>
836
837 PR m2/26372
fc5d6901 838 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
839 an assert. Remove single element array indexing pattern as the
840 MULTI_SUBSCRIPT support will handle this case too.
841
2677f2d3
SM
8422020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
843
844 * value.h (valprint_check_validity): Move declaration from
845 here...
846 * valprint.h (valprint_check_validity): ... to here.
847
c426fddb
SM
8482020-08-24 Simon Marchi <simon.marchi@efficios.com>
849
850 * debug.h: New file.
851 * debug.c (debug_prefixed_vprintf): New function.
852 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
853 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
854
1eb8556f
SM
8552020-08-24 Simon Marchi <simon.marchi@efficios.com>
856
857 * infrun.h (infrun_debug_printf_1): New function declaration.
858 (infrun_debug_printf): New macro.
859 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
860 throughout.
861 (infrun_debug_printf): New function.
862 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
863 (handle_jit_event): Likewise.
864
b8fff44e
MW
8652020-08-21 Mark Wielaard <mark@klomp.org>
866
867 * ada-lex.l: Extend register warnings diagnostics comment for g++.
868
d19c3068
SM
8692020-08-22 Simon Marchi <simon.marchi@efficios.com>
870
871 * frame.c (enum class frame_id_status): New.
872 (struct frame_info) <this_id::p>: Change type to frame_id_status.
873 (fprintf_frame): Update.
874 (compute_frame_id): Set frame id status to "computing" on entry.
875 Set it back to "not_computed" on failure and to "computed" on
876 success.
877 (get_frame_id): Assert the frame id is not being computed.
878 (create_sentinel_frame): Use frame_id_status::COMPUTED.
879 (create_new_frame): Likewise.
880 (frame_cleanup_after_sniffer): Update assert.
881
b70e516e
SM
8822020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
883
884 * regcache.c (pid_ptid_regcache_map): New type.
885 (target_ptid_regcache_map): Remove.
886 (target_pid_ptid_regcache_map): New type.
887 (regcaches): Change type to target_pid_ptid_regcache_map.
888 (get_thread_arch_aspace_regcache): Update.
889 (regcache_thread_ptid_changed): Update, handle pid-like ptid
890 case.
891 (regcaches_size): Update.
892 (regcache_count): Update.
893 (registers_changed_ptid_target_pid_test): New.
894 (_initialize_regcache): Register new test.
895
cdd9148a
SM
8962020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
897
898 * regcache.c (regcache_count): New.
899 (struct regcache_test_data): New.
900 (regcache_test_data_up): New.
901 (populate_regcaches_for_test): New.
902 (regcaches_test): Remove.
903 (get_thread_arch_aspace_regcache_test): New.
904 (registers_changed_ptid_all_test): New.
905 (registers_changed_ptid_target_test): New.
906 (registers_changed_ptid_target_ptid_test): New.
907 (regcache_thread_ptid_changed): Remove regcache_count lambda.
908 (_initialize_regcache): Register new tests.
909
dd125343
SM
9102020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
911
912 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
913 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
914 gdbarch and aspace parameter. Use current inferior's aspace.
915 Validate regcache's arch value.
916 (regcaches_test): Update.
917
3ee93972
SM
9182020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
919
920 * regcache.c (regcaches_test): Call registers_changed.
921
33bf4c5c
TBA
9222020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
923
924 * infrun.c (process_event_stop_test): Fix typo "breapoint".
925
c2fd7fae
AKS
9262020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
927
928 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
929 to find the end of prologue for flang compiled binaries.
930 * arm-tdep.c (arm_skip_prologue): Likewise.
931 * i386-tdep.c (i386_skip_prologue): Likewise.
932 * producer.c (producer_is_llvm): New function.
933 (producer_parsing_tests): Added new tests for clang/flang.
934 * producer.h (producer_is_llvm): New declaration.
935
9327494e
SM
9362020-08-18 Simon Marchi <simon.marchi@efficios.com>
937
938 * linux-nat.c (linux_nat_debug_printf): New function.
939 (linux_nat_debug_printf_1): New macro. Use throughout the file.
940
d138725a
AM
9412020-08-18 Aaron Merey <amerey@redhat.com>
942
943 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
944 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
945 (CLIBS): Add DEBUGINFOD_LIBS.
946
f9b11e6b
ST
9472020-08-17 Sergei Trofimovich <siarheit@google.com>
948
949 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
950 'gdbarch_num_regs'.
951
3ae7ab99
TT
9522020-08-17 Tom Tromey <tromey@adacore.com>
953
954 * ada-varobj.c (ada_varobj_decode_var): Handle case where
955 ada_get_decoded_value returns NULL.
956
b017825f
TT
9572020-08-17 Tom Tromey <tromey@adacore.com>
958
959 * python/py-inferior.c (infpy_search_memory): Use
960 gdb_py_object_from_ulongest.
961 * python/py-infevents.c (create_inferior_call_event_object)
962 (create_memory_changed_event_object): Use
963 gdb_py_object_from_ulongest.
964 * python/py-linetable.c (ltpy_entry_get_pc): Use
965 gdb_py_object_from_ulongest.
966
7635cf79
SM
9672020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
968
969 * loc.c (class symbol_needs_eval_context): Fix indentation.
970
f54be24b
SM
9712020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
972
973 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
974 bool.
975
53d5a2a5
TV
9762020-08-17 Tom de Vries <tdevries@suse.de>
977
978 PR gdb/26393
979 * gdbtypes.c (dump_dynamic_prop): New function.
980 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
981
547ce8f0
TV
9822020-08-15 Tom de Vries <tdevries@suse.de>
983
984 PR backtrace/26390
985 * stack.c (print_frame_args): Temporarily set the selected
986 frame to FRAME while printing the frame's arguments.
987
6ea815e7
PFC
9882020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
989
990 PR breakpoints/26385
991 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
992 Always clear watchpoint with PTRACE_SET_DEBUGREG.
993
6e562fa3
PFC
9942020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
995
996 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
997 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
998 and >= to check return value instead of == -1 and != -1.
999
d369b608
SM
10002020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1001
1002 * utils.h (class gdb_argv) <as_array_view>: New method.
1003 * utils.c (gdb_argv_as_array_view_test): New.
1004 (_initialize_utils): Register selftest.
1005 * maint.c (maintenance_selftest): Use the new method.
1006
b31488a3
KR
10072020-08-13 Kamil Rytarowski <n54@gmx.com>
1008
1009 * target.h (supports_dumpcore, dumpcore): New
1010 function declarations.
1011 * target.c (supports_dumpcore, dumpcore): New
1012 functions.
1013 * target-delegates.c: Rebuild.
1014 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1015 and target_dumpcore ().
1016
002a3166
AM
10172020-08-13 Aaron Merey <amerey@redhat.com>
1018
1019 * debuginfod-support.c: Replace global variables with user_data.
1020
ece5bc8a
SM
10212020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1022
1023 * maint.c (maintenance_selftest): Split args and pass array_view
1024 to run_tests.
1025
6d8a0a5e
LM
10262020-08-12 Luis Machado <luis.machado@linaro.org>
1027
1028 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1029 type's length.
1030 Use %s and pulongest to print the length.
1031
7cf663a9
PA
10322020-08-12 Pedro Alves <palves@redhat.com>
1033
1034 * NEWS: Move "Multi-target debugging support" item to the
1035 "Changes since GDB 9" section.
1036
27c7b875
PA
10372020-08-12 Pedro Alves <palves@redhat.com>
1038
1039 PR gdb/26336
1040 * progspace.c (program_space::remove_objfile): Invalidate the
1041 frame cache.
1042
1796a2a1
TV
10432020-08-11 Tom de Vries <tdevries@suse.de>
1044
1045 * MAINTAINERS: Mark ms1 as deleted.
1046
f8e3fe0d
LM
10472020-08-10 Luis Machado <luis.machado@linaro.org>
1048
1049 PR gdb/26310
1050
1051 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1052 act accordingly.
1053 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1054 movz/str/stur/stp skipping behavior.
1055
cc308722
LM
10562020-08-10 Luis Machado <luis.machado@linaro.org>
1057
1058 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1059 struct user_sve_header instead of struct sve_context.
1060
041d9819
SM
10612020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1062
1063 * read.h (dwarf2_fetch_die_loc_sect_off,
1064 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1065 `void *` parameter with function_view.
1066 * read.c (dwarf2_fetch_die_loc_sect_off,
1067 dwarf2_fetch_die_loc_cu_off): Likewise.
1068 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1069 (per_cu_dwarf_call): Adjust.
1070 (get_frame_address_in_block_wrapper): Remove.
1071 (indirect_synthetic_pointer): Adjust.
1072 (get_ax_pc): Remove.
1073 (dwarf2_compile_expr_to_ax): Adjust.
1074
38f8aa06
TV
10752020-08-08 Tom de Vries <tdevries@suse.de>
1076
1077 PR build/26344
1078 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1079 constructor.
1080 * regcache.c (get_thread_arch_aspace_regcache): Same.
1081
a52b3ae2
TT
10822020-08-07 Tom Tromey <tromey@adacore.com>
1083
1084 * ravenscar-thread.c
1085 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1086 New method.
1087 (ravenscar_thread_target::wait): Check
1088 runtime_initialized.
1089 (ravenscar_thread_target::prepare_to_store)
1090 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1091 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1092 (ravenscar_thread_target::stopped_by_watchpoint)
1093 (ravenscar_thread_target::stopped_data_address)
1094 (ravenscar_thread_target::core_of_thread): Use
1095 scoped_restore_current_thread and
1096 set_base_thread_from_ravenscar_task.
1097
0e29517d
TT
10982020-08-07 Tom Tromey <tromey@adacore.com>
1099
1100 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1101
592f9bd7
TT
11022020-08-07 Tom Tromey <tromey@adacore.com>
1103
1104 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1105 update_inferior_ptid before update_thread_list.
1106 (temporarily_change_regcache_ptid): New class.
1107 (ravenscar_thread_target::fetch_registers)
1108 (ravenscar_thread_target::store_registers)
1109 (ravenscar_thread_target::prepare_to_store): Use base thread when
1110 forwarding operation.
1111
39e2018a
TT
11122020-08-07 Tom Tromey <tromey@adacore.com>
1113
1114 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1115 "is_pid" case.
1116
2080266b
TT
11172020-08-07 Tom Tromey <tromey@adacore.com>
1118
1119 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1120 New methods.
1121 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1122 first.
1123 (ravenscar_thread_target::add_thread): Rename from
1124 ravenscar_add_thread.
1125 (ravenscar_thread_target::update_thread_list): Use a lambda.
1126 (ravenscar_thread_target::xfer_partial): New method.
1127
78c02f21
TT
11282020-08-07 Tom Tromey <tromey@adacore.com>
1129
1130 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1131 gdb::function_view.
1132 (iterate_over_live_ada_tasks): Change type of argument.
1133 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1134 of argument.
1135
d5d833af
TT
11362020-08-07 Tom Tromey <tromey@adacore.com>
1137
1138 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1139 Remove.
1140 (ravenscar_thread_target::extra_thread_info): Remove.
1141 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1142 defer to target beneath for non-Ravenscar threads.
1143
a8ac85bb
TT
11442020-08-07 Tom Tromey <tromey@adacore.com>
1145
1146 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1147 get_base_thread_from_ravenscar_task>: Now methods.
1148 <m_cpu_map>: New member.
1149 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1150 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1151 (ravenscar_thread_target::task_is_currently_active): Update.
1152 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1153 Now a method.
1154 (ravenscar_thread_target::add_active_thread): Put initial thread
1155 into the m_cpu_map.
1156
550ab58d
TT
11572020-08-07 Tom Tromey <tromey@adacore.com>
1158
1159 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1160 event_ptid.
1161
e9546579
TT
11622020-08-07 Tom Tromey <tromey@adacore.com>
1163
1164 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1165 runtime_initialized.
1166
3d4470e5
TT
11672020-08-07 Tom Tromey <tromey@adacore.com>
1168
1169 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1170 add_active_thread.
1171 (ravenscar_thread_target::add_active_thread): Now public.
1172 (ravenscar_inferior_created): Call add_active_thread after pushing
1173 the target.
1174
888bdb2b
SM
11752020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1176
1177 * regcache.c (ptid_regcache_map): New type.
1178 (target_ptid_regcache_map): New type.
1179 (regcaches): Change type to target_ptid_regcache_map.
1180 (get_thread_arch_aspace_regcache): Update to regcaches' new
1181 type.
1182 (regcache_thread_ptid_changed): Likewise.
1183 (registers_changed_ptid): Likewise.
1184 (regcaches_size): Likewise.
1185 (regcaches_test): Update.
1186 (regcache_thread_ptid_changed): Update.
1187 * regcache.h (regcache_up): New type.
1188 * gdbsupport/ptid.h (hash_ptid): New struct.
1189
b161a60d
SM
11902020-08-07 Simon Marchi <simon.marchi@efficios.com>
1191
1192 * observable.h (thread_ptid_changed): Add parameter
1193 `process_stratum_target *`.
1194 * infrun.c (infrun_thread_ptid_changed): Add parameter
1195 `process_stratum_target *` and use it.
1196 (selftests): New namespace.
1197 (infrun_thread_ptid_changed): New function.
1198 (_initialize_infrun): Register selftest.
1199 * regcache.c (regcache_thread_ptid_changed): Add parameter
1200 `process_stratum_target *` and use it.
1201 (regcache_thread_ptid_changed): New function.
1202 (_initialize_regcache): Register selftest.
1203 * thread.c (thread_change_ptid): Pass target to
1204 thread_ptid_changed observable.
1205
d2854d8d
CT
12062020-08-06 Caroline Tice <cmtice@google.com>
1207
fe4c3d43
SM
1208 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1209 (struct dwp_sections): Update field comments. Add loclists and
1210 rnglists fields.
1211 (struct virtual_v2_dwo_sections): Rename struct to
1212 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1213 size & offset fields for loclists and rnglists.
1214 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1215 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1216 skipping dummy type units.
1217 (create_dwp_hash_table): Update the large comment above the function to
1218 discuss Version 5 DWP files as well, with references. Update all the
1219 version checks in the function to check for version 5 as well. Add new
1220 section at the end to create dwp hash table for version 5.
1221 (create_dwp_v2_section): Rename function to
1222 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1223 Add V5 to error message text.
1224 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1225 into calls to create_dwp_v2_or_v5_section.
1226 (create_dwo_unit_in_dwp_v5): New function.
1227 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1228 check for version2; add else clause to handle version 5.
1229 (open_and_init_dwo_file): Add code to check dwarf version & only call
1230 create_debug_types_hash_table (with sections.types) if version is not 5;
1231 else call create_debug_type_hash_table, with sections.info.
1232 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1233 version 5.
1234 (dwarf2_locate_v5_dwp_sections): New function.
1235 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1236 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 1237
159ed7d9
SM
12382020-08-06 Simon Marchi <simon.marchi@efficios.com>
1239
1240 * regcache.h (class regcache): Remove friend
1241 registers_changed_ptid.
1242 <regcache_thread_ptid_changed>: Remove.
1243 <regcaches>: Remove.
1244 * regcache.c (regcache::regcaches): Rename to...
1245 (regcaches): ... this. Make static.
1246 (get_thread_arch_aspace_regcache): Update.
1247 (regcache::regcache_thread_ptid_changed): Rename to...
1248 (regcache_thread_ptid_changed): ... this. Update.
1249 (class regcache_access): Remove.
1250 (regcaches_test): Update.
1251 (_initialize_regcache): Update.
1252 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1253 <forward_list>.
1254
174981ae
SM
12552020-08-06 Simon Marchi <simon.marchi@efficios.com>
1256
1257 * regcache.h (class regcache) <current_regcache>: Rename to...
1258 <regcaches>: ... this. Move doc here.
1259 * regcache.c (regcache::current_regcache) Rename to...
1260 (regcache::regcaches): ... this. Move doc to header.
1261 (get_thread_arch_aspace_regcache): Update.
1262 (regcache::regcache_thread_ptid_changed): Update.
1263 (registers_changed_ptid): Update.
1264 (class regcache_access) <current_regcache_size>: Rename to...
1265 <regcaches_size>: ... this.
1266 (current_regcache_test): Rename to...
1267 (regcaches_test): ... this.
1268 (_initialize_regcache): Update.
1269
ed908db6
VC
12702020-08-06 Victor Collod <vcollod@nvidia.com>
1271
1272 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1273
b5582ab7
KB
12742020-08-05 Kevin Buettner <kevinb@redhat.com>
1275
1276 * corelow.c (core_target::build_file_mappings): Don't output
1277 null pathname in warning.
1278
ea946b86
SM
12792020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1280
1281 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1282 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1283 gdb.dwarf2/dw2-single-line-discriminators.exp,
1284 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1285
57d02173
TT
12862020-08-05 Tom Tromey <tromey@adacore.com>
1287
1288 PR rust/26197:
1289 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1290 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1291 Fix off-by-one and type size errors in ordinary case.
1292
5555c86d
TV
12932020-08-05 Tom de Vries <tdevries@suse.de>
1294
1295 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1296 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1297
97916bfe
SM
12982020-08-04 Simon Marchi <simon.marchi@efficios.com>
1299
1300 * frame.h (frame_id_p): Return bool.
1301 (frame_id_artificial_p): Return bool.
1302 (frame_id_eq): Return bool.
1303 (has_stack_frames): Return bool.
1304 (get_selected_frame): Fix typo in comment.
1305 (get_frame_pc_if_available): Return bool.
1306 (get_frame_address_in_block_if_available): Return bool.
1307 (get_frame_func_if_available): Return bool.
1308 (read_frame_register_unsigned): Return bool.
1309 (get_frame_register_bytes): Return bool.
1310 (safe_frame_unwind_memory): Return bool.
1311 (deprecated_frame_register_read): Return bool.
1312 (frame_unwinder_is): Return bool.
1313 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1314 bool.
1315 <this_id::p>: Likewise.
1316 <prev_p>: Likewise.
1317 (frame_stash_add): Return bool.
1318 (get_frame_id): Use bool.
1319 (frame_id_build_special) Use bool.
1320 (frame_id_build_unavailable_stack): Use bool.
1321 (frame_id_build): Use bool.
1322 (frame_id_p): Return bool, use true/false instead of 1/0.
1323 (frame_id_artificial_p): Likewise.
1324 (frame_id_eq): Likewise.
1325 (frame_id_inner): Likewise.
1326 (get_frame_func_if_available): Likewise.
1327 (read_frame_register_unsigned): Likewise.
1328 (deprecated_frame_register_read): Likewise.
1329 (get_frame_register_bytes): Likewise.
1330 (has_stack_frames): Likewise.
1331 (inside_main_func): Likewise.
1332 (inside_entry_func): Likewise.
1333 (get_frame_pc_if_available): Likewise.
1334 (get_frame_address_in_block_if_available): Likewise.
1335 (frame_unwinder_is): Likewise.
1336 (safe_frame_unwind_memory): Likewise.
1337 (frame_unwind_arch): Likewise.
1338
fedfee88
SM
13392020-08-04 Simon Marchi <simon.marchi@efficios.com>
1340
1341 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1342 type to cached_copy_status.
1343 (fprintf_frame): Adjust.
1344 (get_frame_func_if_available): Adjust.
1345 (frame_cleanup_after_sniffer): Adjust.
1346
6cfa9b59
MW
13472020-08-04 Mark Wielaard <mark@klomp.org>
1348
1349 * MAINTAINERS (Write After Approval): Update email address.
1350
66d6346b
SM
13512020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1352
1353 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1354 dynamic_prop::const_val.
1355
8a6d5e35
SM
13562020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1357
1358 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1359 dynamic_prop::kind.
1360
51d6067d
SM
13612020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1362
1363 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1364
b26e2ae7
JM
13652020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1366
1367 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1368
39791af2
JM
13692020-08-04 Weimin Pan <weimin.pan@oracle.com>
1370 Jose E. Marchesi <jose.marchesi@oracle.com>
1371
1372 * configure.tgt: Add entry for bpf-*-*.
1373 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1374 (ALLDEPFILES): Add bpf-tdep.c.
1375 * bpf-tdep.c: New file.
1376 * MAINTAINERS: Add bpf target and maintainer.
1377 * NEWS: Mention the support for the new target.
1378
521894aa
TV
13792020-08-04 Tom de Vries <tdevries@suse.de>
1380
1381 PR symtab/23270
1382 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1383 Error.
1384
5d6356e9
JB
13852020-08-03 John Baldwin <jhb@FreeBSD.org>
1386
1387 * syscalls/freebsd.xml: Regenerate.
1388
0cf82b81
JB
13892020-08-03 John Baldwin <jhb@FreeBSD.org>
1390
1391 * syscalls/update-freebsd.sh: Fix usage and year range.
1392
8f34b746
TV
13932020-08-03 Tom de Vries <tdevries@suse.de>
1394
1395 PR symtab/26333
1396 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1397 DW_LNE_lo_user/DW_LNE_hi_user range.
1398
5e500d33
SM
13992020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1400
1401 PR ada/26318
1402 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1403 kind.
1404
78319c15
TBA
14052020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1406
1407 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1408
4c55e970
TBA
14092020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1410
1411 * breakpoint.c (set_breakpoint_condition): Update the condition
1412 expressions after checking that the input condition string parses
1413 successfully and does not contain junk at the end.
1414
1e620590
TBA
14152020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1416
1417 * breakpoint.c (set_breakpoint_condition): Update the
1418 condition string after parsing the new condition successfully.
1419
c8693053
RO
14202020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1421
1422 * proc-api.c (_STRUCTURED_PROC): Don't define.
1423 * proc-events.c: Likewise.
1424 * proc-flags.c: Likewise.
1425 * proc-why.c: Likewise.
1426 * procfs.c: Likewise.
1427
1428 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1429 * configure, config.in: Regenerate.
1430
5a99adb8
TV
14312020-07-30 Tom de Vries <tdevries@suse.de>
1432
1433 PR build/26320
1434 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1435 m_red/m_green/m_blue in a union.
1436
8ba83e91
TV
14372020-07-29 Tom de Vries <tdevries@suse.de>
1438
1439 PR tdep/26280
1440 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1441
f75a0693
AB
14422020-07-28 Tom Tromey <tromey@adacore.com>
1443
1444 PR symtab/26270:
1445 * symtab.h (find_pc_partial_function_sym): Declare.
1446 * cli/cli-cmds.c (disassemble_command): Use
1447 find_pc_partial_function_sym. Check asm_demangle.
1448 * blockframe.c (cache_pc_function_sym): New global.
1449 (cache_pc_function_name): Remove.
1450 (clear_pc_function_cache): Update.
1451 (find_pc_partial_function_sym): New function, from
1452 find_pc_partial_function.
1453 (find_pc_partial_function): Rewrite using
1454 find_pc_partial_function_sym.
1455
16f3242c
TT
14562020-07-28 Tom Tromey <tromey@adacore.com>
1457
1458 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1459 help. Add usage.
1460
4888741a
TT
14612020-07-28 Tom Tromey <tromey@adacore.com>
1462
1463 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1464 <DW_OP_GNU_variable_value>: Cast to address type.
1465
4d46f402
KR
14662020-07-28 Kamil Rytarowski <n54@gmx.com>
1467
1468 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1469 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1470 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1471 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1472 (nbsd_get_siginfo_type): New.
1473 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1474 (_initialize_nbsd_tdep): New.
1475
d70f978b
L
14762020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1477
1478 PR binutils/26301
1479 * configure: Regenerated.
1480
377170fa
L
14812020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1482
1483 PR binutils/26301
1484 * configure: Regenerated.
1485
43d5901d
AB
14862020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1487
1488 * python/py-frame.c: Remove 'user-regs.h' include.
1489 (frapy_read_register): Rewrite to make use of
1490 gdbpy_parse_register_id.
1491 * python/py-registers.c (gdbpy_parse_register_id): New function,
1492 moved here from python/py-unwind.c. Updated the return type, and
1493 also accepts register descriptor objects.
1494 * python/py-unwind.c: Remove 'user-regs.h' include.
1495 (pyuw_parse_register_id): Moved to python/py-registers.c.
1496 (unwind_infopy_add_saved_register): Update to use
1497 gdbpy_parse_register_id.
1498 (pending_framepy_read_register): Likewise.
1499 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1500
14fa8fb3
AB
15012020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1502
1503 * python/py-registers.c: Add 'user-regs.h' include.
1504 (register_descriptor_iter_find): New function.
1505 (register_descriptor_iterator_object_methods): New static global
1506 methods array.
1507 (register_descriptor_iterator_object_type): Add pointer to methods
1508 array.
1509
ddce1758
JB
15102020-07-27 John Baldwin <jhb@FreeBSD.org>
1511
1512 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1513 for all architectures on FreeBSD 11.3 and later.
1514
a4089f52
TT
15152020-07-27 Tom Tromey <tromey@adacore.com>
1516
1517 * gcore.h (load_corefile): Don't declare.
1518
95420d30
TV
15192020-07-27 Tom de Vries <tdevries@suse.de>
1520
1521 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1522 * config.in: Regenerate.
1523 * configure: Regenerate.
1524
05a6b8c2
EZ
15252020-07-26 Eli Zaretskii <eliz@gnu.org>
1526
1527 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1528 ws2tcpip.h. When checking whether socklen_t type is defined, use
1529 ws2tcpip.h if it is available and sys/socket.h isn't.
1530 * configure: Regenerate.
1531 * config.in: Regenerate.
1532
e79eb02f
AB
15332020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1534
1535 PR fortran/23051
1536 PR fortran/26139
1537 * valops.c (value_ind): Pass address to
1538 readjust_indirect_value_type.
1539 * value.c (readjust_indirect_value_type): Make parameter
1540 non-const, and add extra address parameter. Resolve original type
1541 before using it.
1542 * value.h (readjust_indirect_value_type): Update function
1543 signature and comment.
1544
876518dd
TV
15452020-07-25 Tom de Vries <tdevries@suse.de>
1546
1547 PR symtab/26243
1548 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1549 entries.
1550
f6720b1c
AM
15512020-07-24 Aaron Merey <amerey@redhat.com>
1552
1553 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1554 * configure: Rebuild.
1555
513487e1
KB
15562020-07-23 Kevin Buettner <kevinb@redhat.com>
1557
1558 PR corefiles/26294
1559 * corelow.c (_initialize_corelow): Add period to help text
1560 for "maintenance print core-file-backed-mappings".
1561
e7bc9db8
PA
15622020-07-23 Pedro Alves <pedro@palves.net>
1563
1564 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1565 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1566 meanwhile.
1567 * frame.c (frame_cache_generation, get_frame_cache_generation):
1568 New.
1569 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1570 (get_prev_frame_if_no_cycle): On exception, don't touch
1571 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1572 * frame.h (get_frame_cache_generation): Declare.
1573
90fcc466
TV
15742020-07-23 Tom de Vries <tdevries@suse.de>
1575
1576 PR tui/26282
1577 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1578 New default constructor.
1579
78344df7
AB
15802020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1581
1582 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1583 exclude non-statement entries.
1584
b089853a
KB
15852020-07-22 Kevin Buettner <kevinb@redhat.com>
1586
1587 * NEWS (New commands): Mention new command
1588 "maintenance print core-file-backed-mappings".
1589
09c2f5d4
KB
15902020-07-22 Kevin Buettner <kevinb@redhat.com>
1591
1592 * corelow.c (gdbcmd.h): Include.
1593 (core_target::info_proc_mappings): New method.
1594 (get_current_core_target): New function.
1595 (maintenance_print_core_file_backed_mappings): New function.
1596 (_initialize_corelow): Add core-file-backed-mappings to
1597 "maint print" commands.
1598
9c5ec5c2 15992020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 1600
9c5ec5c2
KB
1601 * linux-tdep.c (dump_note_entry_p): New function.
1602 (linux_dump_mapping_p_ftype): New typedef.
1603 (linux_find_memory_regions_full): Add new parameter,
1604 should_dump_mapping_p.
1605 (linux_find_memory_regions): Adjust call to
1606 linux_find_memory_regions_full.
1607 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1608 call to linux_find_memory_regions_full.
1609
db082f59
KB
16102020-07-22 Kevin Buettner <kevinb@redhat.com>
1611
1612 * corelow.c (solist.h, unordered_map): Include.
1613 (class core_target): Add field m_core_file_mappings and
1614 method build_file_mappings.
1615 (core_target::core_target): Call build_file_mappings.
1616 (core_target::~core_target): Free memory associated with
1617 m_core_file_mappings.
1618 (core_target::build_file_mappings): New method.
1619 (core_target::xfer_partial): Use m_core_file_mappings
1620 for memory transfers.
1621 * linux-tdep.c (linux_read_core_file_mappings): New
1622 function.
1623 (linux_core_info_proc_mappings): Rewrite to use
1624 linux_read_core_file_mappings.
1625 (linux_init_abi): Register linux_read_core_file_mappings.
1626
7e183d27
KB
16272020-07-22 Kevin Buettner <kevinb@redhat.com>
1628
1629 * arch-utils.c (default_read_core_file_mappings): New function.
1630 * arch-utils.c (default_read_core_file_mappings): Declare.
1631 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1632 * gdbarch.h, gdbarch.c: Regenerate.
1633
2735d421
KB
16342020-07-22 Kevin Buettner <kevinb@redhat.com>
1635
1636 PR corefiles/25631
1637 * corelow.c (core_target:xfer_partial): Revise
1638 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1639 case after first checking the stratum beneath the core
1640 target.
1641 (has_all_memory): Return true.
1642 * target.c (raw_memory_xfer_partial): Revise comment
1643 regarding use of has_all_memory.
1644
e56cb451
KB
16452020-07-22 Kevin Buettner <kevinb@redhat.com>
1646
1647 * exec.h (section_table_xfer_memory): Revise declaration,
1648 replacing section name parameter with an optional callback
1649 predicate.
1650 * exec.c (section_table_xfer_memory): Likewise.
1651 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1652 of section_table_xfer_memory.
1653
32fa152e
TT
16542020-07-22 Tom Tromey <tromey@adacore.com>
1655
1656 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1657 lookup_symbol_search_name.
1658
a67a1c41
AB
16592020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1660
1661 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1662 redundant local variable.
1663 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1664 reference, not pointer, update code accordingly.
1665
a7b4ff4f
SM
16662020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1667 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1668
1669 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1670 * jit.c (jit_breakpoint_re_set_internal): Use the
1671 `skip_jit_symbol_lookup` field.
1672
2340e834
SM
16732020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1674 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1675
1676 * jit.c (jit_read_descriptor): Define the descriptor address once,
1677 use twice.
1678 (jit_breakpoint_deleted): Move the declaration of the loop variable
1679 `iter` into the loop header.
1680 (jit_breakpoint_re_set_internal): Move the declaration of the local
1681 variable `objf_data` to the first point of definition.
1682 (jit_event_handler): Move the declaration of local variables
1683 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1684 Rename `objf` to `jited`.
1685
c1072906
SM
16862020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1687
1688 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1689 Remove.
1690 * jit.c (get_jiter_objfile_data): Update.
1691
c8474dc3
TBA
16922020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1693 Simon Marchi <simon.marchi@polymtl.ca>
1694
1695 * jit.c (struct jit_program_space_data): Remove.
1696 (jit_program_space_key): Remove.
1697 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1698 stuff.
1699 (get_jit_program_space_data): Remove.
1700 (jit_breakpoint_deleted): Iterate on all of the program space's
1701 objfiles.
1702 (jit_inferior_init): Likewise.
1703 (jit_breakpoint_re_set_internal): Likewise. Also change return
1704 type to void.
1705 (jit_breakpoint_re_set): Pass current_program_space to
1706 jit_breakpoint_re_set_internal.
1707
77208eb7
SM
17082020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1709
1710 * jit.h (struct jiter_objfile_data) <cached_code_address,
1711 jit_breakpoint>: Move to here from ...
1712 * jit.c (jit_program_space_data): ... here.
1713 (jiter_objfile_data::~jiter_objfile_data): Update.
1714 (jit_breakpoint_deleted): Update.
1715 (jit_breakpoint_re_set_internal): Update.
1716
8c1c720f
SM
17172020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1718
1719 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1720 checks.
1721 (jit_read_descriptor): Remove NULL check.
1722 (jit_event_handler): Add an assertion.
1723
0e74a041
SM
17242020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1725
1726 * jit.h (struct jit_objfile_data): Split into...
1727 (struct jiter_objfile_data): ... this ...
1728 (struct jited_objfile_data): ... and this.
1729 * objfiles.h (struct objfile) <jit_data>: Remove.
1730 <jiter_data, jited_data>: New fields.
1731 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1732 (jiter_objfile_data::~jiter_objfile_data): ... this.
1733 (get_jit_objfile_data): Rename to ...
1734 (get_jiter_objfile_data): ... this.
1735 (add_objfile_entry): Update.
1736 (jit_read_descriptor): Use get_jiter_objfile_data.
1737 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1738 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1739 (jit_inferior_exit_hook): Use objfile's jited_data field.
1740
238b5c9f
SM
17412020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1742
1743 * jit.h: Forward-declare `struct minimal_symbol`.
1744 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1745 constructor, destructor, and an objfile* field.
1746 * jit.c (jit_objfile_data): Remove.
1747 (struct jit_objfile_data): Migrate from here to jit.h.
1748 (jit_objfile_data::~jit_objfile_data): New destructor
1749 implementation with code moved from free_objfile_data.
1750 (free_objfile_data): Delete.
1751 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1752 (jit_find_objf_with_entry_addr): Ditto.
1753 (jit_inferior_exit_hook): Ditto.
1754 (_initialize_jit): Remove the call to
1755 register_objfile_data_with_cleanup.
1756 * objfiles.h (struct objfile) <jit_data>: New field.
1757
fe053b9e
TBA
17582020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1759
1760 * jit.h: Forward-declare `struct objfile`.
1761 (jit_event_handler): Add a second parameter, the JITer objfile.
1762 * jit.c (jit_read_descriptor): Change the signature to take the
1763 JITer objfile as an argument instead of the jit_program_space_data.
1764 (jit_inferior_init): Update the call to jit_read_descriptor.
1765 (jit_event_handler): Use the new JITer objfile argument when calling
1766 jit_read_descriptor.
1767 * breakpoint.c (handle_jit_event): Update the call to
1768 jit_event_handler to pass the JITer objfile.
1769
4cec0c66
JB
17702020-07-21 John Baldwin <jhb@FreeBSD.org>
1771
1772 * gdbarch.c: Regenerate.
1773 * gdbarch.h: Regenerate.
1774 * gdbarch.sh (handle_segmentation_fault): Remove method.
1775 * infrun.c (handle_segmentation_fault): Remove.
1776 (print_signal_received_reason): Remove call to
1777 handle_segmentation_fault.
1778
0e42f66a
JB
17792020-07-21 John Baldwin <jhb@FreeBSD.org>
1780
1781 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1782 Rename to sparc64_linux_report_signal_info and add siggnal
1783 argument.
1784 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1785 instead of sparc64_linux_handle_segmentation_fault.
1786
77bdfeb2
JB
17872020-07-21 John Baldwin <jhb@FreeBSD.org>
1788
1789 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1790 i386_linux_report_signal_info instead of
1791 i386_linux_handle_segmentation_fault.
1792 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1793 to i386_linux_report_signal_info and add siggnal argument.
1794 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1795 of i386_linux_handle_segmentation_fault.
1796 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1797 to i386_linux_report_signal_info and add siggnal argument.
1798
ad97bfc5
JB
17992020-07-21 John Baldwin <jhb@FreeBSD.org>
1800
1801 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1802 hook if present.
1803
272bb05c
JB
18042020-07-21 John Baldwin <jhb@FreeBSD.org>
1805
1806 * gdbarch.c: Regenerate.
1807 * gdbarch.h: Regenerate.
1808 * gdbarch.sh (report_signal_info): New method.
1809 * infrun.c (print_signal_received_reason): Invoke gdbarch
1810 report_signal_info hook if present.
1811
baf8791e
AB
18122020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1813
1814 * python/py-registers.c : Add 'unordered_map' include.
1815 (gdbpy_new_reggroup): Renamed to...
1816 (gdbpy_get_reggroup): ...this. Update to only create register
1817 group descriptors when needed.
1818 (gdbpy_reggroup_iter_next): Update.
1819
f7306dac
AB
18202020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1821
1822 * python/py-registers.c (gdbpy_register_object_data): New static
1823 global.
1824 (gdbpy_register_object_data_init): New function.
1825 (gdbpy_new_register_descriptor): Renamed to...
1826 (gdbpy_get_register_descriptor): ...this, and update to reuse
1827 existing register descriptors where possible.
1828 (gdbpy_register_descriptor_iter_next): Update.
1829 (gdbpy_initialize_registers): Register new gdbarch data.
1830
05c309a8
SM
18312020-07-21 Simon Marchi <simon.marchi@efficios.com>
1832
1833 * linux-nat.c (stopped_pids): Make static.
1834
d1fd641e
SM
18352020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1836
1837 PR ada/26235
1838 * gdbtypes.c (ada_discrete_type_low_bound,
1839 ada_discrete_type_high_bound): Handle undefined bounds.
1840
1de14d77
KR
18412020-07-21 Kamil Rytarowski <n54@gmx.com>
1842
1843 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1844 declaration.
1845 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1846 function.
1847
ed810cc7
JB
18482020-07-20 John Baldwin <jhb@FreeBSD.org>
1849
1850 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1851 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1852 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1853 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1854 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1855 method.
1856
ae5369e7
LC
18572020-07-20 Ludovic Courtès <ludo@gnu.org>
1858
1859 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1860 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1861 which are deprecated in Guile 3.0.
1862 * configure.ac (try_guile_versions): Add "guile-3.0".
1863 * configure (try_guile_versions): Regenerate.
1864 * NEWS: Update entry.
1865
68cf161c
LC
18662020-07-20 Ludovic Courtès <ludo@gnu.org>
1867 Doug Evans <dje@google.com>
1868
1869 PR gdb/21104
1870 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1871 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1872 USING_GUILE_BEFORE_2_2.
1873 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1874 Change type to 'scm_t_port_type *'.
1875 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1876 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1877 parameter and honor it. Update callers.
1878 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1879 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1880 functions.
1881 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1882 USING_GUILE_BEFORE_2_2.
1883 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1884 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1885 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1886 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1887 and 'SCM_PORT_TYPE'.
1888 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1889 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1890 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1891 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1892 [!USING_GUILE_BEFORE_2_2]: New functions.
1893 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1894 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1895 'gdbscm_memory_port_read'.
1896 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1897 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1898 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1899 function.
1900 (ioscm_init_memory_port): Remove.
1901 (ioscm_init_memory_port_stream): New function
1902 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1903 function.
1904 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1905 Return scm_from_uint (0).
1906 (gdbscm_set_memory_port_read_buffer_size_x)
1907 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1908 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1909 Return scm_from_uint (0).
1910 (gdbscm_set_memory_port_write_buffer_size_x)
1911 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1912 * configure.ac (try_guile_versions): Add "guile-2.2".
1913 * configure: Regenerate.
1914 * NEWS: Add entry.
1915
aee91db3
TT
19162020-07-18 Tom Tromey <tom@tromey.com>
1917
1918 * linux-nat.c (linux_multi_process): Remove.
1919 (linux_nat_target::supports_multi_process): Return true.
1920
0e267416
AB
19212020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1922
1923 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1924 (riscv_lookup_target_description): Return pointer out of
1925 unique_ptr.
1926 * target-descriptions.c (allocate_target_description): Add
1927 comment.
1928 (target_desc_deleter::operator()): Likewise.
1929 * target-descriptions.h (struct target_desc_deleter): Moved to
1930 gdbsupport/tdesc.h.
1931 (target_desc_up): Likewise.
1932
f80c8ec4
TT
19332020-07-17 Tom Tromey <tromey@adacore.com>
1934
1935 * linux-nat.c (linux_nat_target::supports_non_stop)
1936 (linux_nat_target::always_non_stop_p): Use "true".
1937 (linux_nat_target::supports_disable_randomization): Use "true" and
1938 "false".
1939
d0ce17d8
CT
19402020-07-16 Caroline Tice <cmtice@google.com>
1941
1942 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1943 (RNGLIST_HEADER_SIZE64): New constant definition.
1944 (struct dwop_section_names): Add rnglists_dwo.
1945 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1946 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1947 (struct dwo_sections): Add rnglists field.
1948 (read_attribut_reprocess): Add tag parameter.
1949 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1950 (cu_debug_rnglists_section): New function (decl & definition).
1951 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1952 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1953 die whose range is being checked; get rnglist section from
1954 cu_debug_rnglists_section, to get from either objfile or dwo file as
1955 appropriate. Add cases for DW_RLE_base_addressx,
1956 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1957 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1958 test inside if-condition and updating complaint message.
1959 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1960 dwarf2_rnglists_process.
1961 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1962 dwarf2_ranges_process.
1963 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1964 need_ranges_base and update comment appropriately. Also pass die tag
1965 to dwarf2_ranges_read.
1966 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1967 need_ranges_base and update comment appropriately. Also pass die tag
1968 to dwarf2_ranges_process.
1969 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1970 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1971 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1972 need_ranges_base and update comment appropriately. Also pass die tag
1973 to read_attribute_reprocess and dwarf2_ranges_read.
1974 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1975 and update function comment appropriately.
1976 (read_loclist_index): Call read_loclists_rnglists_header instead of
1977 read_loclist_header.
1978 (read_rnglist_index): New function.
1979 (read_attribute_reprocess): Add tag parameter. Add code for
1980 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1981 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1982
3dcc261c
AB
19832020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1984
1985 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1986 being resolved.
1987
ccb9eba6
AB
19882020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1989
1990 * arch-utils.c (show_architecture): Update formatting of messages.
1991
cf88be68
SM
19922020-07-12 Simon Marchi <simon.marchi@efficios.com>
1993
1994 * gdbtypes.h (struct type) <bounds>: Handle array and string
1995 types.
1996 * ada-lang.c (assign_aggregate): Use type::bounds on
1997 array/string type.
1998 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1999 * c-varobj.c (c_number_of_children): Likewise.
2000 (c_describe_child): Likewise.
2001 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2002 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2003 (f_type_print_base): Likewise.
2004 * f-valprint.c (f77_array_offset_tbl): Likewise.
2005 (f77_get_upperbound): Likewise.
2006 (f77_print_array_1): Likewise.
2007 * guile/scm-type.c (gdbscm_type_range): Likewise.
2008 * m2-typeprint.c (m2_array): Likewise.
2009 (m2_is_long_set_of_type): Likewise.
2010 * m2-valprint.c (get_long_set_bounds): Likewise.
2011 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2012 * python/py-type.c (typy_range): Likewise.
2013 * rust-lang.c (rust_internal_print_type): Likewise.
2014 * type-stack.c (type_stack::follow_types): Likewise.
2015 * valarith.c (value_subscripted_rvalue): Likewise.
2016 * valops.c (value_cast): Likewise.
2017
509971ae
SM
20182020-07-12 Simon Marchi <simon.marchi@efficios.com>
2019
2020 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2021 callers to use the equivalent accessor methods.
2022
107406b7
SM
20232020-07-12 Simon Marchi <simon.marchi@efficios.com>
2024
2025 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2026 (struct type) <bit_stride>: New method.
2027 (TYPE_BIT_STRIDE): Remove.
2028 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2029
bb789949
SM
20302020-07-12 Simon Marchi <simon.marchi@efficios.com>
2031
2032 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2033 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2034 callers to use the equivalent accessor methods instead.
2035
39498edb
SM
20362020-07-12 Simon Marchi <simon.marchi@efficios.com>
2037
2038 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2039 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2040 callers to use the equivalent accessor methods instead.
2041
3b606f38
SM
20422020-07-12 Simon Marchi <simon.marchi@efficios.com>
2043
2044 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2045 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2046 to use dynamic_prop::kind.
2047
064d9cb9
SM
20482020-07-12 Simon Marchi <simon.marchi@efficios.com>
2049
2050 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2051 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2052 to get the bound property's kind and check against
2053 PROP_UNDEFINED.
2054
5537ddd0
SM
20552020-07-12 Simon Marchi <simon.marchi@efficios.com>
2056
2057 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2058 all callers to use type::range_bounds followed by
2059 dynamic_prop::{low,high}.
2060
8c2e4e06
SM
20612020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2062
2063 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2064 const_val, set_const_val, baton, set_locexpr, set_loclist,
2065 set_addr_offset, variant_parts, set_variant_parts,
2066 original_type, set_original_type>: New methods.
2067 <kind>: Rename to...
2068 <m_kind>: ... this. Update all users to use the new methods
2069 instead.
2070 <data>: Rename to...
2071 <m_data>: ... this. Update all users to use the new methods
2072 instead.
2073
7c6f2712
SM
20742020-07-12 Simon Marchi <simon.marchi@efficios.com>
2075
2076 * gdbtypes.c (get_discrete_bounds): Return failure if
2077 the range type's bounds are not both defined and constant
2078 values.
2079 (get_array_bounds): Update comment. Remove undefined bound check.
2080
599088e3
SM
20812020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2082
2083 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2084 the type::bounds method directly.
2085
c4dfcb36
SM
20862020-07-12 Simon Marchi <simon.marchi@efficios.com>
2087
2088 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2089 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2090 are used to set the range type's bounds to use set_bounds.
2091
0a278aa7
PW
20922020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2093
2094 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2095
cce20f10
PA
20962020-07-10 Pedro Alves <pedro@palves.net>
2097
2098 * gdbthread.h (inferior_ref): Define.
2099 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2100 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2101 * thread.c
2102 (scoped_restore_current_thread::restore):
2103 Adjust to gdb::ref_ptr.
2104 (scoped_restore_current_thread::~scoped_restore_current_thread):
2105 Remove manual decref handling.
2106 (scoped_restore_current_thread::scoped_restore_current_thread):
2107 Adjust to use
2108 inferior_ref::new_reference/thread_info_ref::new_reference.
2109 Incref the thread before calling get_frame_id instead of after.
2110 Let TARGET_CLOSE_ERROR propagate.
2111
6d7aa592
PA
21122020-07-10 Pedro Alves <pedro@palves.net>
2113
2114 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2115 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2116 NOT_AVAILABLE_ERROR.
2117 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2118 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2119
b3e3a4c1
SM
21202020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2121 Pedro Alves <pedro@palves.net>
2122
2123 PR gdb/26199
2124 * infrun.c (threads_are_resumed_pending_p): Delete.
2125 (do_target_wait): Remove threads_are_executing and
2126 threads_are_resumed_pending_p checks from the inferior_matches
2127 lambda. Update comments.
2128
d6cc5d98
PA
21292020-07-10 Pedro Alves <pedro@palves.net>
2130
2131 PR gdb/26199
2132 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2133 executing threads.
2134
7d3badc6
PA
21352020-07-10 Pedro Alves <pedro@palves.net>
2136
2137 PR gdb/26199
2138 * infrun.c (handle_no_resumed): Handle multiple targets.
2139
42bd97a6
PA
21402020-07-10 Pedro Alves <pedro@palves.net>
2141
2142 PR gdb/26199
2143 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2144 target_is_async_p.
2145
43667cc6
PA
21462020-07-10 Pedro Alves <pedro@palves.net>
2147
2148 PR gdb/26199
2149 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2150 threads, not all threads.
2151
96118d11
PA
21522020-07-10 Pedro Alves <pedro@palves.net>
2153
2154 PR gdb/26199
2155 * remote.c (remote_target::open_1): Pass remote target pointer as
2156 data to create_async_event_handler.
2157 (remote_async_inferior_event_handler): Mark async event handler
2158 before returning if the remote target still has either pending
2159 events or unacknowledged notifications.
2160
54904d81
JB
21612020-07-10 John Baldwin <jhb@FreeBSD.org>
2162
2163 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2164 declaration.
2165 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2166 function.
2167
f37e5866
JB
21682020-07-09 John Baldwin <jhb@FreeBSD.org>
2169
2170 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2171 inferior_ptid.
2172
fc238d4a
JB
21732020-07-09 John Baldwin <jhb@FreeBSD.org>
2174
2175 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2176 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2177 AT_FREEBSD_PS_STRINGS.
2178
6e2469ff
HD
21792020-07-08 Hannes Domani <ssbssa@yahoo.de>
2180
2181 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2182 of debugfile path on Windows.
2183
d1076c41
JB
21842020-07-08 John Baldwin <jhb@FreeBSD.org>
2185
2186 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2187 argument to 'data'.
2188
15f3b077
TT
21892020-07-08 Tom Tromey <tromey@adacore.com>
2190
2191 * ada-lang.c (ada_exception_message_1): Use read_memory.
2192
9fc501fd
AB
21932020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2194
2195 PR python/22748
2196 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2197 special handling for inline frames.
2198 * findvar.c (value_of_register_lazy): Skip inline frames when
2199 creating lazy register values.
2200 * frame.c (frame_id_computed_p): Delete definition.
2201 * frame.h (frame_id_computed_p): Delete declaration.
2202
64cb3757
AB
22032020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2204
2205 * NEWS: Mention additions to Python API.
2206 * python/py-arch.c (archpy_register_groups): New function.
2207 (arch_object_methods): Add 'register_groups' method.
2208 * python/py-registers.c (reggroup_iterator_object): New struct.
2209 (reggroup_object): New struct.
2210 (gdbpy_new_reggroup): New function.
2211 (gdbpy_reggroup_to_string): New function.
2212 (gdbpy_reggroup_name): New function.
2213 (gdbpy_reggroup_iter): New function.
2214 (gdbpy_reggroup_iter_next): New function.
2215 (gdbpy_new_reggroup_iterator): New function
2216 (gdbpy_initialize_registers): Register new types.
2217 (reggroup_iterator_object_type): Define new Python type.
2218 (gdbpy_reggroup_getset): New static global.
2219 (reggroup_object_type): Define new Python type.
2220 * python/python-internal.h
2221
0f767f94
AB
22222020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2223
2224 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2225 * python/py-arch.c (archpy_registers): New function.
2226 (arch_object_methods): Add 'registers' method.
2227 * python/py-registers.c: New file.
2228 * python/python-internal.h
2229 (gdbpy_new_register_descriptor_iterator): Declare.
2230 (gdbpy_initialize_registers): Declare.
2231 * python/python.c (do_start_initialization): Call
2232 gdbpy_initialize_registers.
2233 * NEWS: Mention additions to the Python API.
2234
87dbc774
AB
22352020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2236
2237 * NEWS: Mention new Python API method.
2238 * python/py-unwind.c (pending_framepy_architecture): New function.
2239 (pending_frame_object_methods): Add architecture method.
2240
3bc98c0c
AB
22412020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2242
2243 * gdbarch.c: Regenerate.
2244 * gdbarch.h: Regenerate.
2245 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2246 (gdbarch_data): Use internal_error for the case where
2247 deprecated_set_gdbarch_data was originally needed.
2248 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2249 and use passed in obstack.
2250 (libunwind_frame_set_descr): Should no longer get back NULL from
2251 gdbarch_data.
2252 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2253 type.
2254 * user-regs.c (user_regs_init): Update parameters, and use passed
2255 in obstack.
2256 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2257 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2258
d8cc8af6
TV
22592020-07-06 Tom de Vries <tdevries@suse.de>
2260
2261 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2262 End-Of-Sequence in lte_is_less_than.
2263 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2264 "gdb: Don't reorder line table entries too much when sorting".
2265
947f7597
TV
22662020-07-06 Tom de Vries <tdevries@suse.de>
2267
2268 PR tui/26205
2269 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2270
1e7c1b22
TV
22712020-07-05 Tom de Vries <tdevries@suse.de>
2272
2273 PR build/26187
2274 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2275 std::uncaught_exceptions instead of deprecated
2276 std::uncaught_exception.
2277
a36158ec
SM
22782020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2279
2280 * macroexp.h (macro_stringify): Return
2281 gdb::unique_xmalloc_ptr<char>.
2282 * macroexp.c (macro_stringify): Likewise.
2283 * macrotab.c (fixup_definition): Update.
2284
14d960c8
SM
22852020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2286
2287 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2288 (lex_one_token): Update.
2289 * macroexp.c (struct macro_buffer) <release>: Return
2290 gdb::unique_xmalloc_ptr<char>.
2291 (macro_stringify): Update.
2292 (macro_expand): Update.
2293 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2294 * macroexp.h (macro_expand_next): Likewise.
2295
211d5b1c
SM
22962020-07-02 Simon Marchi <simon.marchi@efficios.com>
2297
2298 * macroexp.h (macro_lookup_ftype): Remove.
2299 (macro_expand, macro_expand_once, macro_expand_next): Remove
2300 lookup function parameters, add scope parameter.
2301 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2302 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2303 * macroscope.h (standard_macro_lookup): Change parameter type
2304 to macro_scope.
2305 * macroscope.c (standard_macro_lookup): Likewise.
2306 * c-exp.y (lex_one_token): Update.
2307 * macrocmd.c (macro_expand_command): Likewise.
2308 (macro_expand_once_command): Likewise.
2309
b1a35af2
SM
23102020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2311
2312 * inf-loop.c (inferior_event_handler): Remove client_data param.
2313 * inf-loop.h (inferior_event_handler): Likewise.
2314 * infcmd.c (step_1): Adjust.
2315 * infrun.c (proceed): Adjust.
2316 (fetch_inferior_event): Remove client_data param.
2317 (infrun_async_inferior_event_handler): Adjust.
2318 * infrun.h (fetch_inferior_event): Remove `void *` param.
2319 * linux-nat.c (handle_target_event): Adjust.
2320 * record-btrace.c (record_btrace_handle_async_inferior_event):
2321 Adjust.
2322 * record-full.c (record_full_async_inferior_event_handler):
2323 Adjust.
2324 * remote.c (remote_async_inferior_event_handler): Adjust.
2325
1cdf9e33
TT
23262020-07-01 Tom Tromey <tom@tromey.com>
2327
2328 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2329 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2330
32c1e210
TT
23312020-07-01 Tom Tromey <tom@tromey.com>
2332
2333 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2334 tui_gen_win_info.
2335 (tui_win_info::make_window): Merge with
2336 tui_gen_win_info::make_window.
2337 (tui_win_info::make_visible): Move from tui_gen_win_info.
2338 * tui/tui-win.c (tui_win_info::max_width): Move from
2339 tui_gen_win_info.
2340 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2341 type.
2342 <window_factory>: Likewise.
2343 * tui/tui-layout.c (tui_win_info::resize): Move from
2344 tui_gen_win_info.
2345 (make_standard_window): Change return type.
2346 (get_locator_window, tui_get_window_by_name): Likewise.
2347 (tui_layout_window::apply): Remove a cast.
2348 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2349 (struct tui_win_info): Merge with tui_gen_win_info.
2350 (struct tui_gen_win_info): Remove.
2351
a30cb6da
TT
23522020-07-01 Tom Tromey <tom@tromey.com>
2353
2354 * tui/tui-stack.h (struct tui_locator_window): Derive from
2355 tui_win_info.
2356 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2357 <can_box>: New method.
2358
1eb2161f
TT
23592020-07-01 Tom Tromey <tom@tromey.com>
2360
2361 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2362
7134f2eb
TT
23632020-07-01 Tom Tromey <tom@tromey.com>
2364
2365 * tui/tui-regs.c (tui_data_window::display_registers_from)
2366 (tui_data_window::display_registers_from)
2367 (tui_data_window::first_data_item_displayed)
2368 (tui_data_window::delete_data_content_windows): Update.
2369 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2370 Remove.
2371 (tui_data_window::check_register_values): Update.
2372 (tui_data_item_window::rerender): Add parameters. Update.
2373 (tui_data_item_window::refresh_window): Remove.
2374 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2375 virtual.
2376 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2377 tui_gen_win_info.
2378 <refresh_window, max_height, min_height>: Remove.
2379 <rerender>: Add parameters.
2380 <x, y, visible>: New members.
2381 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2382 <m_item_width>: New member.
2383
22b7b041
TT
23842020-07-01 Tom Tromey <tom@tromey.com>
2385
2386 * tui/tui-regs.c (tui_data_window::show_register_group)
2387 (tui_data_window::check_register_values): Update.
2388 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2389 from item_no.
2390
c9753adb
TT
23912020-07-01 Tom Tromey <tom@tromey.com>
2392
2393 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2394 useless "if".
2395
9ab26b4a
TT
23962020-07-01 Tom Tromey <tom@tromey.com>
2397
2398 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2399 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2400
e555083f
TT
24012020-07-01 Tom Tromey <tom@tromey.com>
2402
2403 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2404 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2405 (struct tui_line_or_address): Move from tui-data.h.
2406 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2407 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2408 (tui_cmd_window, tui_source_window_base, tui_source_window)
2409 (tui_disasm_window): Don't declare.
2410 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2411 to tui-winsource.h.
2412 (SINGLE_KEY): Move to tui-stack.c.
2413
7a02bab7
TT
24142020-07-01 Tom Tromey <tom@tromey.com>
2415
2416 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2417 std::string.
2418 * tui/tui-regs.c (class tab_expansion_file): New.
2419 (tab_expansion_file::write): New method.
2420 (tui_register_format): Change return type. Use
2421 tab_expansion_file.
2422 (tui_get_register, tui_data_window::display_registers_from)
2423 (tui_data_item_window::rerender): Update.
2424 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2425 * tui/tui-io.c (tui_expand_tabs): Remove.
2426
ea68593b
TT
24272020-07-01 Tom Tromey <tom@tromey.com>
2428
2429 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2430
a8caed5d
FS
24312020-07-01 Fangrui Song <maskray@google.com>
2432
2433 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2434
9cdf9820
AKS
24352020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2436
2437 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2438 forms for DW_AT_associated and DW_AT_allocated attributes,
2439 which is already checked in function attr_to_dynamic_prop.
2440
a1520ad8
TT
24412020-06-30 Tom Tromey <tromey@adacore.com>
2442
2443 * dwarf2/read.c (quirk_rust_enum): Correctly call
2444 alloc_rust_variant for default-less enum.
2445
5ac58899
TT
24462020-06-30 Tom Tromey <tromey@adacore.com>
2447
2448 PR build/26183:
2449 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2450 gdb::to_string.
2451
19b187a9
SM
24522020-06-29 Simon Marchi <simon.marchi@efficios.com>
2453
2454 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2455 * gdbarch.h: Re-generate.
2456
cd4c4c07
TT
24572020-06-28 Tom Tromey <tom@tromey.com>
2458
2459 * command.h (cmd_types): Remove.
2460 (cmd_type): Don't declare.
2461 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2462 typedef.
2463 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2464 * cli/cli-decode.c (cmd_type): Remove.
2465
05779d57
PA
24662020-06-27 Pedro Alves <palves@redhat.com>
2467
2468 * fork-child.c (prefork_hook): Adjust.
2469 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2470 Delete.
2471 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2472 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2473 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2474 Remove declarations.
2475 (struct inferior) <set_tty, tty>: New methods.
2476 (struct inferior) <terminal>: Rename to ...
2477 (struct inferior) <m_terminal>: ... this and make private.
2478 * main.c (captured_main_1): Adjust.
2479 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2480 (mi_cmd_inferior_tty_show): Adjust.
2481 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2482 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2483
1776e3e5
NA
24842020-06-26 Nick Alcock <nick.alcock@oracle.com>
2485
2486 * configure.ac: Add --enable-libctf: handle --disable-static
2487 properly.
2488 * acinclude.m4: sinclude ../config/enable.m4.
2489 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2490 (LIBCTF): Substitute in.
2491 (CTF_DEPS): New, likewise.
2492 (CLIBS): libctf needs symbols from libbfd: move earlier.
2493 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2494 flags.
2495 * ctfread.c: Surround in ENABLE_LIBCTF.
2496 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2497 * configure: Regenerate.
2498 * config.in: Likewise.
2499
58373b80
SM
25002020-06-25 Simon Marchi <simon.marchi@efficios.com>
2501
2502 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2503
277474ee
SM
25042020-06-25 Simon Marchi <simon.marchi@efficios.com>
2505
2506 * inferior.h (struct inferior) <terminal>: Change type to
2507 gdb::unique_xmalloc_ptr<char>.
2508 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2509 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2510 field, adjust to unique pointer.
2511 (get_inferior_io_terminal): Adjust to unique pointer.
2512
6d74da72
AB
25132020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2514
2515 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2516 registers, not just the known core set of registers.
2517
2e52d038
AB
25182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2519
2520 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2521 fflags, frm, and fcsr registers.
2522 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2523 restore groups.
2524 (riscv_tdesc_unknown_reg): New function.
2525 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2526 tdesc_use_registers.
2527 * riscv-tdep.h (struct gdbarch_tdep): Add
2528 unknown_csrs_first_regnum, unknown_csrs_count,
2529 duplicate_fflags_regnum, duplicate_frm_regnum, and
2530 duplicate_fcsr_regnum fields.
2531
be64fd07
AB
25322020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2533
2534 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2535 callback, use the callback (when not null) to help number unknown
2536 registers.
2537 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2538 (tdesc_use_registers): Add extra parameter to declaration.
2539
3b9fce96
AB
25402020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2541
2542 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2543 in the file.
2544 (class riscv_pending_register_alias): Likewise.
2545 (riscv_register_feature::register_info): Change 'required_p' field
2546 to 'required', and change its type. Add 'check' member function.
2547 (riscv_register_feature::register_info::check): Define new member
2548 function.
2549 (riscv_xreg_feature): Change initialisation of 'required' field.
2550 (riscv_freg_feature): Likewise.
2551 (riscv_virtual_feature): Likewise.
2552 (riscv_csr_feature): Likewise.
2553 (riscv_check_tdesc_feature): Take extra parameter, the csr
2554 tdesc_feature, rewrite the function to use the new
2555 riscv_register_feature::register_info::check function.
2556 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2557
865bad26
AB
25582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2559
2560 * features/Makefile: Remove all references to the deleted files
2561 below.
2562 * features/riscv/32bit-csr.c: Deleted.
2563 * features/riscv/32bit-csr.xml: Deleted.
2564 * features/riscv/64bit-csr.c: Deleted.
2565 * features/riscv/64bit-csr.xml: Deleted.
2566 * features/riscv/rebuild-csr-xml.sh: Deleted.
2567
ed69cbc8
AB
25682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2569
2570 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2571 whitespace error for declaration of names member variable.
2572 (struct riscv_register_feature): Add new prefer_first_name member
2573 variable, and fix whitespace error in declaration of registers.
2574 (riscv_xreg_feature): Initialize prefer_first_name field.
2575 (riscv_freg_feature): Likewise.
2576 (riscv_virtual_feature): Likewise.
2577 (riscv_csr_feature): Likewise.
2578 (riscv_register_name): Expand on comments. Remove register name
2579 modifications for CSR and virtual registers.
2580
4445e8f5
AB
25812020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2582
2583 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2584 errors.
2585
767a879e
AB
25862020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2587
2588 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2589 riscv-opc.h.
2590 (class riscv_pending_register_alias): New class.
2591 (riscv_check_tdesc_feature): Take vector of pending aliases and
2592 populate it as appropriate.
2593 (riscv_setup_register_aliases): Delete.
2594 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2595 to riscv_check_tdesc_feature in all cases. Use the vector to
2596 create the register aliases.
2597
bb6e55f3
RO
25982020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2599
2600 * sol2-tdep.c (sol2_static_transform_name): Remove.
2601 (sol2_init_abi): Don't register it.
2602 * gdbarch.sh (static_transform_name): Remove.
2603 * gdbarch.c, gdbarch.h: Regenerate.
2604
2605 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2606 gdbarch_static_transform_name.
2607 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2608 * stabsread.c (define_symbol) <'X'>: Remove.
2609 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2610 handling.
2611 <'V'>: Likewise.
2612 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2613 <'S'>: Remove call to gdbarch_static_transform_name.
2614
c6d36836
RO
26152020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2616
2617 * procfs.c (procfs_pre_trace): New function.
2618 (procfs_target::create_inferior): Pass it to fork_inferior.
2619
a7e6196b
RO
26202020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2621
2622 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2623 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2624 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2625 sol2-tdep.o, sparc-sol2-tdep.o.
2626 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2627 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2628 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2629 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2630
d412e696
RO
26312020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2632
2633 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2634 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2635 Call sol2_init_abi.
2636 Remove calls to set_gdbarch_skip_solib_resolver,
2637 set_gdbarch_core_pid_to_str.
2638 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2639 (i386_sol2_static_transform_name): Remove.
2640 (i386_sol2_init_abi): Call sol2_init_abi.
2641 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2642 set_gdbarch_static_transform_name,
2643 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2644 Use sol2_sigtramp_p.
2645 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2646 (sol2_sigtramp_p): New function.
2647 (sol2_static_transform_name): New function.
2648 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2649 (sol2_init_abi): New function.
2650 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2651 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2652 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2653 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2654 (sparc_sol2_static_transform_name): Remove.
2655 (sparc32_sol2_init_abi): Call sol2_init_abi.
2656 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2657 set_gdbarch_static_transform_name,
2658 set_gdbarch_skip_solib_resolver,
2659 set_gdbarch_core_pid_to_str.
2660 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2661 (sparc_sol2_static_transform_name): Remove
2662 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2663 call sol2_sigtramp_p.
2664 (sparc64_sol2_init_abi): Call sol2_init_abi.
2665 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2666 set_gdbarch_static_transform_name,
2667 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2668
a8654e7d
PW
26692020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2670
2671 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2672 * exec.c (validate_exec_file): If from_tty, set both
2673 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2674 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2675 and from_tty, unconditionally ask a confirmation.
2676
caa7fd04
AB
26772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2678
2679 * target-descriptions.c (tdesc_architecture_name): Protect against
2680 NULL pointer dereference.
2681 (maint_print_xml_tdesc_cmd): New function.
2682 (_initialize_target_descriptions): Register new 'maint print
2683 xml-tdesc' command and give it the filename completer.
2684 * NEWS: Mention new 'maint print xml-tdesc' command.
2685
fbf42f4e
AB
26862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2687
2688 * target-descriptions.c (class tdesc_compatible_info): New class.
2689 (struct target_desc): Change type of compatible vector.
2690 (tdesc_compatible_p): Update for change in type of
2691 target_desc::compatible.
2692 (tdesc_compatible_info_list): New function.
2693 (tdesc_compatible_info_arch_name): New function.
2694 (tdesc_add_compatible): Update for change in type of
2695 target_desc::compatible.
2696 (print_c_tdesc::visit_pre): Likewise.
2697
20821f4e
AB
26982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2699
2700 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2701 whitespace to underscore.
2702 (maint_print_c_tdesc_cmd): Use fake filename for target
2703 descriptions that came from the target.
2704 (_initialize_target_descriptions): Add filename command completion
2705 for 'maint print c-tdesc'.
2706
1fb5ee62
SM
27072020-06-23 Simon Marchi <simon.marchi@efficios.com>
2708
2709 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2710 lines.
2711
fc3ecb3e
SM
27122020-06-23 Simon Marchi <simon.marchi@efficios.com>
2713
2714 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2715 lines.
2716 (dwarf2_find_location_expression): Likewise.
2717 (call_site_parameter_matches): Likewise.
2718 (dwarf2_compile_expr_to_ax): Likewise.
2719 (disassemble_dwarf_expression): Likewise.
2720 (loclist_describe_location): Likewise.
2721
236ef034
PA
27222020-06-23 Pedro Alves <palves@redhat.com>
2723
2724 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2725 progspace-and-thread.h. Include scoped-mock-context.h instead.
2726 (register_to_value_test): Use scoped_mock_context.
2727 * regcache.c: Include "scoped-mock-context.h".
2728 (cooked_read_test): Don't error out if a target is already pushed.
2729 Use scoped_mock_context. Adjust.
2730 * scoped-mock-context.h: New file.
2731
39e7ecca
AB
27322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2733
2734 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2735 initializer.
2736 (ada_language::is_string_type_p): New member function.
2737 * c-lang.c (c_language_data): Delete la_is_string_type_p
2738 initializer.
2739 (cplus_language_data): Likewise.
2740 (asm_language_data): Likewise.
2741 (minimal_language_data): Likewise.
2742 * d-lang.c (d_language_data): Likewise.
2743 * f-lang.c (f_is_string_type_p): Delete function, implementation
2744 moved to f_language::is_string_type_p.
2745 (f_language_data): Delete la_is_string_type_p initializer.
2746 (f_language::is_string_type_p): New member function,
2747 implementation from f_is_string_type_p.
2748 * go-lang.c (go_is_string_type_p): Delete function, implementation
2749 moved to go_language::is_string_type_p.
2750 (go_language_data): Delete la_is_string_type_p initializer.
2751 (go_language::is_string_type_p): New member function,
2752 implementation from go_is_string_type_p.
2753 * language.c (language_defn::is_string_type_p): Define new member
2754 function.
2755 (default_is_string_type_p): Make static, add comment copied from
2756 header file.
2757 (unknown_language_data): Delete la_is_string_type_p initializer.
2758 (unknown_language::is_string_type_p): New member function.
2759 (auto_language_data): Delete la_is_string_type_p initializer.
2760 (auto_language::is_string_type_p): New member function.
2761 * language.h (language_data): Delete la_is_string_type_p field.
2762 (language_defn::is_string_type_p): Declare new function.
2763 (default_is_string_type_p): Delete desclaration, move comment to
2764 definition.
2765 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2766 moved to m2_language::is_string_type_p.
2767 (m2_language_data): Delete la_is_string_type_p initializer.
2768 (m2_language::is_string_type_p): New member function,
2769 implementation from m2_is_string_type_p.
2770 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2771 initializer.
2772 * opencl-lang.c (opencl_language_data): Likewise.
2773 * p-lang.c (pascal_is_string_type_p): Delete function,
2774 implementation moved to pascal_language::is_string_type_p.
2775 (pascal_language_data): Delete la_is_string_type_p initializer.
2776 (pascal_language::is_string_type_p): New member function,
2777 implementation from pascal_is_string_type_p.
2778 * rust-lang.c (rust_is_string_type_p): Delete function,
2779 implementation moved to rust_language::is_string_type_p.
2780 (rust_language_data): Delete la_is_string_type_p initializer.
2781 (rust_language::is_string_type_p): New member function,
2782 implementation from rust_is_string_type_p.
2783 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2784 is_string_type_p.
2785
4ffc13fb
AB
27862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2787
2788 * ada-lang.c (ada_language_data): Delete la_print_typedef
2789 initializer.
2790 (ada_language::print_typedef): New member function.
2791 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2792 (cplus_language_data): Likewise.
2793 (asm_language_data): Likewise.
2794 (minimal_language_data): Likewise.
2795 * d-lang.c (d_language_data): Likewise.
2796 * f-lang.c (f_language_data): Likewise.
2797 (f_language::print_typedef): New member function.
2798 * go-lang.c (go_language_data): Delete la_print_typedef
2799 initializer.
2800 * language.c (language_defn::print_typedef): Define member
2801 function.
2802 (unknown_language_data): Delete la_print_typedef initializer.
2803 (unknown_language::print_typedef): New member function.
2804 (auto_language_data): Delete la_print_typedef initializer.
2805 (auto_language::print_typedef): New member function.
2806 * language.h (language_data): Delete la_print_typedef field.
2807 (language_defn::print_typedef): Declare new member function.
2808 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2809 (default_print_typedef): Delete declaration.
2810 * m2-lang.c (m2_language_data): Delete la_print_typedef
2811 initializer.
2812 (m2_language::print_typedef): New member function.
2813 * objc-lang.c (objc_language_data): Delete la_print_typedef
2814 initializer.
2815 * opencl-lang.c (opencl_language_data): Likewise.
2816 * p-lang.c (pascal_language_data): Likewise.
2817 (pascal_language::print_typedef): New member function.
2818 * rust-lang.c (rust_print_typedef): Delete function,
2819 implementation moved to rust_language::print_typedef.
2820 (rust_language): Delete la_print_typedef initializer.
2821 (rust_language::print_typedef): New member function,
2822 implementation from rust_print_typedef.
2823 * typeprint.c (default_print_typedef): Delete.
2824
d711ee67
AB
28252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2826
2827 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2828 (ada_language::printstr): New member function.
2829 * c-lang.c (c_language_data): Delete la_printstr initializer.
2830 (cplus_language_data): Likewise.
2831 (asm_language_data): Likewise.
2832 (minimal_language_data): Likewise.
2833 * d-lang.c (d_language_data): Likewise.
2834 * f-lang.c (f_printstr): Rename to f_language::printstr.
2835 (f_language_data): Delete la_printstr initializer.
2836 (f_language::printstr): New member function, implementation from
2837 f_printstr.
2838 * go-lang.c (go_language_data): Delete la_printstr initializer.
2839 * language.c (language_defn::printstr): Define new member
2840 function.
2841 (unk_lang_printstr): Delete.
2842 (unknown_language_data): Delete la_printstr initializer.
2843 (unknown_language::printstr): New member function.
2844 (auto_language_data): Delete la_printstr initializer.
2845 (auto_language::printstr): New member function.
2846 * language.h (language_data): Delete la_printstr field.
2847 (language_defn::printstr): Declare new member function.
2848 (LA_PRINT_STRING): Update call to printstr.
2849 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2850 (m2_language_data): Delete la_printstr initializer.
2851 (m2_language::printstr): New member function, implementation from
2852 m2_printstr.
2853 * objc-lang.c (objc_language_data): Delete la_printstr
2854 initializer.
2855 * opencl-lang.c (opencl_language_data): Likewise.
2856 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2857 (pascal_language_data): Delete la_printstr initializer.
2858 (pascal_language::printstr): New member function, implementation
2859 from pascal_printstr.
2860 * p-lang.h (pascal_printstr): Delete declaration.
2861 * rust-lang.c (rust_printstr): Update header comment.
2862 (rust_language_data): Delete la_printstr initializer.
2863 (rust_language::printstr): New member function.
2864
52b50f2c
AB
28652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2866
2867 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2868 (ada_language::printchar): New member function.
2869 * c-lang.c (c_language_data): Delete la_printchar initializer.
2870 (cplus_language_data): Likewise.
2871 (asm_language_data): Likewise.
2872 (minimal_language_data): Likewise.
2873 * d-lang.c (d_language_data): Likewise.
2874 * f-lang.c (f_printchar): Rename to f_language::printchar.
2875 (f_language_data): Delete la_printchar initializer.
2876 (f_language::printchar): New member function, implementation from
2877 f_printchar.
2878 * go-lang.c (go_language_data): Delete la_printchar initializer.
2879 * language.c (unk_lang_printchar): Delete.
2880 (language_defn::printchar): Define new member function.
2881 (unknown_language_data): Delete la_printchar initializer.
2882 (unknown_language::printchar): New member function.
2883 (auto_language_data): Delete la_printchar initializer.
2884 (auto_language::printchar): New member function.
2885 * language.h (language_data): Delete la_printchar field.
2886 (language_defn::printchar): Declare new member function.
2887 (LA_PRINT_CHAR): Update call to printchar.
2888 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2889 (m2_language::printchar): New member function.
2890 * objc-lang.c (objc_language_data): Delete la_printchar
2891 initializer.
2892 * opencl-lang.c (opencl_language_data): Likewise.
2893 * p-lang.c (pascal_language_data): Delete la_printchar
2894 initializer.
2895 (pascal_language::printchar): New member function.
2896 * rust-lang.c (rust_printchar): Rename to
2897 rust_language::printchar.
2898 (rust_language_data): Delete la_printchar initializer.
2899 (rust_language::printchar): New member function, implementation
2900 from rust_printchar.
2901
ec8cec5b
AB
29022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2903
2904 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2905 (ada_language_data): Delete la_emitchar initializer.
2906 (ada_language::emitchar): New member function, implementation from
2907 emit_char.
2908 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2909 (cplus_language_data): Likewise.
2910 (asm_language_data): Likewise.
2911 (minimal_language_data): Likewise.
2912 * d-lang.c (d_language_data): Likewise.
2913 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2914 (f_language_data): Delete la_emitchar initializer.
2915 (f_language::emitchar): New member function, implementation from
2916 f_emit_char.
2917 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2918 * language.c (unk_lang_emit_char): Delete.
2919 (language_defn::emitchar): New member function definition.
2920 (unknown_language_data): Delete la_emitchar initializer.
2921 (unknown_language::emitchar): New member function.
2922 (auto_language_data): Delete la_emitchar initializer.
2923 (auto_language::emitchar): New member function.
2924 * language.h (language_data): Delete la_emitchar field.
2925 (language_defn::emitchar): New member field declaration.
2926 (LA_EMIT_CHAR): Update call to emitchar.
2927 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2928 (m2_language_data): Delete la_emitchar initializer.
2929 (m2_language::emitchar): New member function, implementation from
2930 m2_emit_char.
2931 * objc-lang.c (objc_language_data): Delete la_emitchar
2932 initializer.
2933 * opencl-lang.c (opencl_language_data): Likewise.
2934 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2935 (pascal_language_data): Delete la_emitchar initializer.
2936 (pascal_language::emitchar): New member function, implementation
2937 from pascal_emit_char.
2938 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2939 (rust_language_data): Delete la_emitchar initializer.
2940 (rust_language::emitchar): New member function, implementation
2941 from rust_emitchar.
2942
1bf9c363
AB
29432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2944
2945 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2946 (ada_language_data): Delete la_post_parser initializer.
2947 (ada_language::post_parser): New member function.
2948 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2949 (cplus_language_data): Likewise.
2950 (asm_language_data): Likewise.
2951 (minimal_language_data): Likewise.
2952 * d-lang.c (d_language_data): Likewise.
2953 * f-lang.c (f_language_data): Likewise.
2954 * go-lang.c (go_language_data): Likewise.
2955 * language.c (unknown_language_data): Likewise.
2956 (auto_language_data): Likewise.
2957 * language.h (language_data): Delete la_post_parser field.
2958 (language_defn::post_parser): New member function.
2959 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2960 * objc-lang.c (objc_language_data): Likewise.
2961 * opencl-lang.c (opencl_language_data): Likewise.
2962 * p-lang.c (pascal_language_data): Likewise.
2963 * parse.c (parse_exp_in_context): Update call to post_parser.
2964 (null_post_parser): Delete definition.
2965 * parser-defs.h (null_post_parser): Delete declaration.
2966 * rust-lang.c (rust_language_data): Delete la_post_parser
2967 initializer.
2968
87afa652
AB
29692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2970
2971 * ada-lang.c (parse): Rename to ada_language::parser.
2972 (ada_language_data): Delete la_parser initializer.
2973 (ada_language::parser): New member function, implementation from
2974 parse.
2975 * c-lang.c (c_language_data): Delete la_parser initializer.
2976 (cplus_language_data): Likewise.
2977 (asm_language_data): Likewise.
2978 (minimal_language_data): Likewise.
2979 * d-lang.c (d_language_data): Likewise.
2980 (d_language::parser): New member function.
2981 * f-lang.c (f_language_data): Delete la_parser initializer.
2982 (f_language::parser): New member function.
2983 * go-lang.c (go_language_data): Delete la_parser initializer.
2984 (go_language::parser): New member function.
2985 * language.c (unk_lang_parser): Delete.
2986 (language_defn::parser): Define new member function.
2987 (unknown_language_data): Delete la_parser initializer.
2988 (unknown_language::parser): New member function.
2989 (auto_language_data): Delete la_parser initializer.
2990 (auto_language::parser): New member function.
2991 * language.h (language_data): Delete la_parser field.
2992 (language_defn::parser): Declare new member function.
2993 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2994 (m2_language::parser): New member function.
2995 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2996 * opencl-lang.c (opencl_language_data): Likewise.
2997 * p-lang.c (pascal_language_data): Likewise.
2998 (pascal_language::parser): New member function.
2999 * parse.c (parse_exp_in_context): Update call to parser.
3000 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3001 (rust_language::parser): New member function.
3002
37825800
AB
30032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3004
3005 * top.c (print_gdb_configuration): Print --with-python-libdir
3006 configuration value.
3007
5b860c93
PW
30082020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3009
3010 * NEWS: Mention change to the alias command.
3011
cf00cd6f
PW
30122020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3013
3014 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3015 (alias_command_completer)
3016 (make_alias_options_def_group): New functions.
3017 (alias_opts, alias_option_defs): New struct and array.
3018 (alias_usage_error): Update usage.
3019 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3020 Use option framework.
3021 (_initialize_cli_cmds): Update alias command help.
3022 Update aliases command help.
3023 (show_user):
3024 Add NULL for new default_args lookup_cmd argument.
3025 (valid_command_p): Rename to validate_aliased_command.
3026 Add NULL for new default_args lookup_cmd argument. Verify that the
3027 aliased_command has no default args.
3028 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3029 (lookup_cmd_1, lookup_cmd): New argument default_args.
3030 (add_alias_cmd):
3031 Add NULL for new default_args lookup_cmd argument.
3032 (print_help_for_command): Show default args under the layout
3033 alias some_alias = some_aliased_cmd some_alias_default_arg.
3034 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3035 xfree default_args in destructor.
3036 * cli/cli-script.c (process_next_line, do_define_command):
3037 Add NULL for new default_args lookup_cmd argument.
3038 * command.h: Declare new default_args argument in lookup_cmd
3039 and lookup_cmd_1.
3040 * completer.c (complete_line_internal_1):
3041 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3042 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3043 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3044 Likewise.
3045 * infcmd.c (_initialize_infcmd): Likewise.
3046 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3047 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3048 * python/py-param.c (add_setshow_generic): Likewise.
3049 * remote.c (_initialize_remote): Likewise.
3050 * top.c (execute_command): Prepend default_args if command has some.
3051 (set_verbose):
3052 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3053 * tracepoint.c (validate_actionline, encode_actions_1):
3054 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3055
bd920864
TBA
30562020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3057
3058 * jit.c (jit_read_descriptor): Use bool as the return type.
3059 (jit_breakpoint_re_set_internal): Use bool as the return type.
3060 Invert the return value logic; return true if the jit breakpoint
3061 has been successfully initialized.
3062 (jit_inferior_init): Update the call to
3063 jit_breakpoint_re_set_internal.
3064
f8098322
PA
30652020-06-22 Pedro Alves <palves@redhat.com>
3066
3067 PR gdb/25939
3068 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3069 Use the current inferior instead. Don't return
3070 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3071 wait again.
3072 * sol-thread.c (sol_thread_target::wait): Don't reference
3073 inferior_ptid.
3074 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3075 (sol_update_thread_list_callback): Use the current inferior's pid
3076 instead of inferior_ptid.
3077
196535a6
RO
30782020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3079
3080 * procfs.c: Cleanup many comments.
3081
3082 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3083 (AFTER_WATCHFLAG): Replace by value.
3084
3085 (MAIN_PROC_NAME_FORMAT): Inline ...
3086 (create_procinfo): ... here.
3087
3088 (procfs_debug_inferior): Remove SYS_exec handling.
3089 (syscall_is_exec): Likewise.
3090 (procfs_set_exec_trap): Likewise.
3091
3092 (syscall_is_lwp_exit): Inline in callers.
3093 (syscall_is_exit): Likewise.
3094 (syscall_is_exec): Likewise.
3095 (syscall_is_lwp_create): Likewise.
3096
3097 (invalidate_cache): Remove #if 0 code.
3098
3099 (make_signal_thread_runnable): Remove.
3100 (procfs_target::resume): Remove #if 0 code.
3101
cf6f3e86
RO
31022020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3103
3104 PR gdb/25939
3105 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3106 call ...
3107 (procfs_target::create_inferior): ... here.
3108
48e9cc84
PW
31092020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3110
3111 * exec.c (validate_exec_file): Ensure the build-id is up to
3112 date by calling reopen_exec_file (that checks file timestamp
3113 to decide to re-read the file).
3114
3922b302
PA
31152020-06-18 Pedro Alves <palves@redhat.com>
3116
3117 PR gdb/25412
3118 * gdbthread.h (delete_thread, delete_thread_silent)
3119 (find_thread_ptid): Update comments.
3120 * thread.c (current_thread_): New global.
3121 (is_current_thread): Move higher, and reimplement.
3122 (inferior_thread): Reimplement.
3123 (set_thread_exited): Use bool. Add assertions.
3124 (add_thread_silent): Simplify thread-reuse handling by always
3125 calling delete_thread.
3126 (delete_thread): Remove intro comment.
3127 (find_thread_ptid): Skip exited threads.
3128 (switch_to_thread_no_regs): Write to current_thread_.
3129 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3130 INFERIOR_PTID. Clear current_thread_.
3131
6dbdab44
PA
31322020-06-18 Pedro Alves <palves@redhat.com>
3133
3134 * aix-thread.c (pd_update): Use switch_to_thread.
3135
2da4b788
PA
31362020-06-18 Pedro Alves <palves@redhat.com>
3137
3138 * ravenscar-thread.c (ravenscar_thread_target): Update.
3139 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3140 (ravenscar_thread_target::add_active_thread): ... this. Don't
3141 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3142 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3143
50838d1b
PA
31442020-06-18 Pedro Alves <palves@redhat.com>
3145
3146 * nat/windows-nat.c (current_windows_thread): Remove.
3147 * nat/windows-nat.h (current_windows_thread): Remove.
3148 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3149 Adjust.
3150 (display_selectors): Adjust to fetch the current
3151 windows_thread_info based on inferior_ptid.
3152 (fake_create_process): No longer write to current_windows_thread.
3153 (windows_nat_target::get_windows_debug_event):
3154 Don't set inferior_ptid or current_windows_thread.
3155 (windows_nat_target::wait): Adjust to not rely on
3156 current_windows_thread.
3157 (do_initial_windows_stuff): Now a method of windows_nat_target.
3158 Switch to the last_ptid thread.
3159 (windows_nat_target::attach): Adjust.
3160 (windows_nat_target::detach): Use switch_to_no_thread instead of
3161 writing to inferior_ptid directly.
3162 (windows_nat_target::create_inferior): Adjust.
3163
31ce04e9
PA
31642020-06-18 Pedro Alves <palves@redhat.com>
3165
3166 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3167
1ee1a363
PA
31682020-06-18 Pedro Alves <palves@redhat.com>
3169
3170 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3171 after creating it, instead of writing to inferior_ptid. Don't
3172 write to inferior_ptid.
3173
6d350754
PA
31742020-06-18 Pedro Alves <palves@redhat.com>
3175
3176 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3177
5d971d48
PA
31782020-06-18 Pedro Alves <palves@redhat.com>
3179
3180 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3181 it, instead of writing to inferior_ptid.
3182
86e57d1b
PA
31832020-06-18 Pedro Alves <palves@redhat.com>
3184
3185 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3186 to inferior_ptid.
3187
f2e1c129
PA
31882020-06-18 Pedro Alves <palves@redhat.com>
3189
3190 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3191 instead of writing to inferior_ptid directly.
3192
60db1b85
PA
31932020-06-18 Pedro Alves <palves@redhat.com>
3194
3195 * corelow.c (core_target::close): Use switch_to_no_thread instead
3196 of writing to inferior_ptid directly.
3197 (add_to_thread_list, core_target_open): Use switch_to_thread
3198 instead of writing to inferior_ptid directly.
3199
fe7d6a8d
PA
32002020-06-18 Pedro Alves <palves@redhat.com>
3201
3202 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3203 inferior_ptid.
3204 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3205 inferior_ptid.
3206 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3207 inferior_ptid directly.
3208 (darwin_nat_target::init_thread_list): Switch to thread, instead
3209 of writing to inferior_ptid.
3210 (darwin_nat_target::attach): Don't write to inferior_ptid.
3211 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3212
975f8708
PA
32132020-06-18 Pedro Alves <palves@redhat.com>
3214
3215 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3216 thread.
3217 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3218 Instead use switch_to_thread.
3219 (gnu_nat_target::detach): Use switch_to_no_thread
3220 instead of writing to inferior_ptid directly. Used passed-in
3221 inferior instead of looking up the inferior by pid.
3222
1a204730
PA
32232020-06-18 Pedro Alves <palves@redhat.com>
3224
3225 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3226 inferior_ptid.
3227
ebe84f23
PA
32282020-06-18 Pedro Alves <palves@redhat.com>
3229
3230 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3231 inferior_ptid.
3232 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3233 thread.
3234 (nto_procfs_target::detach): Avoid referencing
3235 inferior_ptid. Use switch_to_no_thread instead of writing to
3236 inferior_ptid directly.
3237 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3238 instead of writing to inferior_ptid directly.
3239 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3240 to thread.
3241
191f02e5
PA
32422020-06-18 Pedro Alves <palves@redhat.com>
3243
3244 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3245 after creating it, instead of writing to inferior_ptid.
3246 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3247 to inferior_ptid directly.
3248 (gdbsim_target::wait): Don't write to inferior_ptid.
3249
0ac55310
PA
32502020-06-18 Pedro Alves <palves@redhat.com>
3251
3252 * remote.c (remote_target::remote_notice_new_inferior): Use
3253 switch_to_thread instead of writing to inferior_ptid directly.
3254 (remote_target::add_current_inferior_and_thread): Use
3255 switch_to_no_thread instead of writing to inferior_ptid directly.
3256 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3257 and switch_to_thread instead of using set_current_inferior or
3258 writing to inferior_ptid directly.
3259
5233f39b
PA
32602020-06-18 Pedro Alves <palves@redhat.com>
3261
3262 * tracectf.c (ctf_target_open): Switch to added thread instead of
3263 writing to inferior_ptid directly.
3264 (ctf_target::close): Use switch_to_no_thread instead of writing to
3265 inferior_ptid directly.
3266
087e161b
PA
32672020-06-18 Pedro Alves <palves@redhat.com>
3268
3269 * tracefile-tfile.c (tfile_target_open): Don't write to
3270 inferior_ptid directly, instead switch to added thread.
3271 (tfile_target::close): Use switch_to_no_thread instead of writing
3272 to inferior_ptid directly.
3273
7fb43e53
PA
32742020-06-18 Pedro Alves <palves@redhat.com>
3275
3276 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3277 (procfs_target::detach): Use switch_to_no_thread
3278 instead of writing to inferior_ptid directly.
3279 (do_attach): Change return type to void. Switch to the added
3280 thread.
3281 (procfs_target::create_inferior): Switch to the added thread.
3282 (procfs_do_thread_registers): Don't write to inferior_ptid.
3283
18493a00
PA
32842020-06-18 Pedro Alves <palves@redhat.com>
3285
3286 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3287 of writing to inferior_ptid.
3288 (scoped_restore_exited_inferior): Delete.
3289 (handle_vfork_child_exec_or_exit): Simplify using
3290 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3291 instead of writing to inferior_ptid.
3292 (THREAD_STOPPED_BY): Delete.
3293 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3294 (thread_stopped_by_hw_breakpoint): Delete.
3295 (save_waitstatus): Use
3296 scoped_restore_current_thread+switch_to_thread, and call
3297 target_stopped_by_watchpoint instead of
3298 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3299 instead of thread_stopped_by_sw_breakpoint, and
3300 target_stopped_by_hw_breakpoint instead of
3301 thread_stopped_by_hw_breakpoint.
3302 (handle_inferior_event)
3303 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3304 inferior_ptid directly, nor
3305 set_current_inferior/set_current_program_space. Use
3306 switch_to_thread / switch_to_inferior_no_thread instead.
3307
a0776b13
PA
33082020-06-18 Pedro Alves <palves@redhat.com>
3309
3310 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3311 instead of writing to inferior_ptid.
3312
6155c136
PA
33132020-06-18 Pedro Alves <palves@redhat.com>
3314
3315 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3316 added thread.
3317 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3318 to the added thread.
3319 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3320 instead of writing to inferior_ptid.
3321
c5316fc6
PA
33222020-06-18 Pedro Alves <palves@redhat.com>
3323
3324 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3325 (register_to_value_test): Mock a program_space too. Heap-allocate
3326 the address space. Don't write to inferior_ptid. Use
3327 switch_to_thread instead.
3328
8df01799
PA
33292020-06-18 Pedro Alves <palves@redhat.com>
3330
3331 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3332 Delete.
3333 (find_signalled_thread()): New, factored out from
3334 linux_make_corefile_notes and adjusted to handle exited threads.
3335 (linux_make_corefile_notes): Adjust to use the new
3336 find_signalled_thread.
3337
41792d68
PA
33382020-06-18 Pedro Alves <palves@redhat.com>
3339
3340 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3341 of saving/restoring inferior_ptid.
3342
612f258a
TT
33432020-06-17 Tom Tromey <tom@tromey.com>
3344
3345 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3346 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3347 declare.
3348 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3349
efb763a5
SM
33502020-06-15 Simon Marchi <simon.marchi@efficios.com>
3351
3352 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3353 of partial symtabs.
3354
2951f6c0
SM
33552020-06-17 Simon Marchi <simon.marchi@efficios.com>
3356
3357 * regformats/reg-arm.dat: Remove.
3358 * regformats/reg-bfin.dat: Remove.
3359 * regformats/reg-cris.dat: Remove.
3360 * regformats/reg-crisv32.dat: Remove.
3361 * regformats/reg-m32r.dat: Remove.
3362 * regformats/reg-tilegx.dat: Remove.
3363 * regformats/reg-tilegx32.dat: Remove.
3364
7d458ea5
SM
33652020-06-17 Simon Marchi <simon.marchi@efficios.com>
3366
3367 * features/Makefile (WHICH): Remove arm files.
3368 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3369 * regformats/arm/arm-with-neon.dat: Remove.
3370 * regformats/arm/arm-with-vfpv2.dat: Remove.
3371 * regformats/arm/arm-with-vfpv3.dat: Remove.
3372
3af96c0d
SM
33732020-06-17 Simon Marchi <simon.marchi@efficios.com>
3374
3375 * features/Makefile (XMLTOC): Remove rx.xml.
3376
b25e22fd
PA
33772020-06-17 Pedro Alves <palves@redhat.com>
3378
3379 * gdbthread.h (thread_control_state) <trap_expected> Update
3380 comments.
3381
a78a19b1
AB
33822020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3383
3384 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3385 ada_language::lookup_symbol_nonlocal.
3386 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3387 (ada_language::lookup_symbol_nonlocal): New member function,
3388 implementation from ada_lookup_symbol_nonlocal.
3389 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3390 initializer.
3391 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3392 initializer.
3393 (cplus_language::lookup_symbol_nonlocal): New member function.
3394 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3395 (minimal_language_data) Likewise.
3396 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3397 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3398 initializer.
3399 (d_language::lookup_symbol_nonlocal): New member function.
3400 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3401 initializer.
3402 (f_language::lookup_symbol_nonlocal): New member function.
3403 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3404 initializer.
3405 * language.c (unknown_language_data): Likewise.
3406 (auto_language_data): Likewise.
3407 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3408 field.
3409 (language_defn::lookup_symbol_nonlocal): New member function.
3410 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3411 initializer.
3412 * objc-lang.c (objc_language_data): Likewise.
3413 * opencl-lang.c (opencl_language_data): Likewise.
3414 * p-lang.c (pascal_language_data): Likewise.
3415 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3416 rust_language::lookup_symbol_nonlocal.
3417 (rust_language_data): Delete la_lookup_symbol_nonlocal
3418 initializer.
3419 (rust_language::lookup_symbol_nonlocal): New member function,
3420 implementation from rust_lookup_symbol_nonlocal.
3421 * symtab.c (lookup_symbol_aux): Update call to
3422 lookup_symbol_nonlocal.
3423 (basic_lookup_symbol_nonlocal): Rename to...
3424 (language_defn::lookup_symbol_nonlocal): ...this, and update
3425 header comment. Remove language_defn parameter, and replace with
3426 uses of `this'.
3427 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3428
ebe2334e
AB
34292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3430
3431 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3432 initializer.
3433 (ada_language::value_print_inner): New member function.
3434 * c-lang.c (c_language_data): Delete la_value_print_inner
3435 initializer.
3436 (cplus_language_data): Likewise.
3437 (asm_language_data): Likewise.
3438 (minimal_language_data): Likewise.
3439 * d-lang.c (d_language_data): Likewise.
3440 (d_language::value_print_inner): New member function.
3441 * f-lang.c (f_language_data): Delete la_value_print_inner
3442 initializer.
3443 (f_language::value_print_inner): New member function.
3444 * f-lang.h (f_value_print_innner): Rename to...
3445 (f_value_print_inner): ...this (note spelling of 'inner').
3446 * f-valprint.c (f_value_print_innner): Rename to...
3447 (f_value_print_inner): ...this (note spelling of 'inner').
3448 * go-lang.c (go_language_data): Delete la_value_print_inner
3449 initializer.
3450 (go_language::value_print_inner): New member function.
3451 * language.c (language_defn::value_print_inner): Define new member
3452 function.
3453 (unk_lang_value_print_inner): Delete.
3454 (unknown_language_data): Delete la_value_print_inner initializer.
3455 (unknown_language::value_print_inner): New member function.
3456 (auto_language_data): Delete la_value_print_inner initializer.
3457 (auto_language::value_print_inner): New member function.
3458 * language.h (language_data): Delete la_value_print_inner field.
3459 (language_defn::value_print_inner): Delcare new member function.
3460 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3461 initializer.
3462 (m2_language::value_print_inner): New member function.
3463 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3464 initializer.
3465 * opencl-lang.c (opencl_language_data): Likewise.
3466 * p-lang.c (pascal_language_data): Likewise.
3467 (pascal_language::value_print_inner): New member function.
3468 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3469 initializer.
3470 (rust_language::value_print_inner): New member function.
3471 * valprint.c (do_val_print): Update call to value_print_inner.
3472
a1d1fa3e
AB
34732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3474
3475 * ada-lang.c (ada_language_data): Delete la_value_print
3476 initializer.
3477 (ada_language::value_print): New member function.
3478 * c-lang.c (c_language_data): Delete la_value_print initializer.
3479 (cplus_language_data): Likewise.
3480 (asm_language_data): Likewise.
3481 (minimal_language_data): Likewise.
3482 * d-lang.c (d_language_data): Likewise.
3483 * f-lang.c (f_language_data): Likewise.
3484 * go-lang.c (go_language_data): Likewise.
3485 * language.c (unk_lang_value_print): Delete.
3486 (language_defn::value_print): Define new member function.
3487 (unknown_language_data): Delete la_value_print initializer.
3488 (unknown_language::value_print): New member function.
3489 (auto_language_data): Delete la_value_print initializer.
3490 (auto_language::value_print): New member function.
3491 * language.h (language_data): Delete la_value_print field.
3492 (language_defn::value_print): Declare new member function.
3493 (LA_VALUE_PRINT): Update call to value_print.
3494 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3495 * objc-lang.c (objc_language_data): Likewise.
3496 * opencl-lang.c (opencl_language_data): Likewise.
3497 * p-lang.c (pascal_language_data): Likewise.
3498 (pascal_language::value_print): New member function.
3499 * rust-lang.c (rust_language_data): Delete la_value_print
3500 initializer.
3501
f16a9f57
AB
35022020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3503
3504 * ada-lang.c (ada_watch_location_expression): Rename to
3505 ada_language::watch_location_expression.
3506 (ada_language_data): Delete la_watch_location_expression
3507 initializer.
3508 (ada_language::watch_location_expression): New member function,
3509 implementation from ada_watch_location_expression.
3510 * breakpoint.c (watch_command_1): Update call to
3511 watch_location_expression.
3512 * c-lang.c (c_watch_location_expression): Rename to
3513 language_defn::watch_location_expression.
3514 (c_language_data): Delete la_watch_location_expression
3515 initializer.
3516 (cplus_language_data): Likewise.
3517 (asm_language_data): Likewise.
3518 (minimal_language_data): Likewise.
3519 * c-lang.h (c_watch_location_expression): Delete declaration.
3520 * d-lang.c (d_language_data): Delete la_watch_location_expression
3521 initializer.
3522 * f-lang.c (f_language_data): Likewise.
3523 * go-lang.c (go_language_data): Likewise.
3524 * language.c (language_defn::watch_location_expression): Member
3525 function implementation from c_watch_location_expression.
3526 (unknown_language_data): Delete la_watch_location_expression
3527 initializer.
3528 (auto_language_data): Likewise.
3529 * language.h (language_data): Delete la_watch_location_expression
3530 field.
3531 (language_defn::watch_location_expression): Declare new member
3532 function.
3533 * m2-lang.c (m2_language_data): Delete
3534 la_watch_location_expression initializer.
3535 * objc-lang.c (objc_language_data): Likewise.
3536 * opencl-lang.c (opencl_language_data): Likewise.
3537 * p-lang.c (pascal_language_data): Likewise.
3538 * rust-lang.c (rust_watch_location_expression): Rename to
3539 rust_language::watch_location_expression.
3540 (rust_language_data): Delete la_watch_location_expression
3541 initializer.
3542 (rust_language::watch_location_expression): New member function,
3543 implementation from rust_watch_location_expression.
3544
7e56227d
AB
35452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3546
3547 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3548 ada_language::collect_symbol_completion_matches.
3549 (ada_language_data): Delete la_collect_symbol_completion_matches
3550 initializer.
3551 (ada_language::collect_symbol_completion_matches): New member
3552 function, implementation from
3553 ada_collect_symbol_completion_matches.
3554 * c-lang.c (c_language_data): Delete
3555 la_collect_symbol_completion_matches initializer.
3556 (cplus_language_data): Likewise.
3557 (asm_language_data): Likewise.
3558 (minimal_language_data): Likewise.
3559 * d-lang.c (d_language_data): Likewise.
3560 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3561 f_language::collect_symbol_completion_matches.
3562 (f_language_data): Delete la_collect_symbol_completion_matches
3563 initializer.
3564 (f_language::collect_symbol_completion_matches) New member
3565 function, implementation from f_collect_symbol_completion_matches.
3566 * go-lang.c (go_language_data): Delete
3567 la_collect_symbol_completion_matches initializer.
3568 * language.c (unknown_language_data): Likewise.
3569 (auto_language_data): Likewise.
3570 * language.h (language_data): Delete
3571 la_collect_symbol_completion_matches field.
3572 (language_defn::collect_symbol_completion_matches): New member
3573 function.
3574 * m2-lang.c (m2_language_data): Delete
3575 la_collect_symbol_completion_matches initializer.
3576 * objc-lang.c (objc_language_data): Likewise.
3577 * opencl-lang.c (opencl_language_data): Likewise.
3578 * p-lang.c (pascal_language_data): Likewise.
3579 * rust-lang.c (rust_language_data): Likewise.
3580 * symtab.c (default_collect_symbol_completion_matches): Delete.
3581 (collect_symbol_completion_matches): Update call to
3582 collect_symbol_completion_matches.
3583 (collect_symbol_completion_matches_type): Likewise.
3584 * symtab.h (default_collect_symbol_completion_matches): Delete
3585 declaration.
3586
53fc67f8
AB
35872020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3588
3589 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3590 (ada_language_data): Delete la_word_break_characters initializer.
3591 (ada_language::word_break_characters): New member function.
3592 * c-lang.c (c_language_data): Delete la_word_break_characters
3593 initializer.
3594 (cplus_language_data): Likewise.
3595 (asm_language_data): Likewise.
3596 (minimal_language_data): Likewise.
3597 * completer.c: Update global comment.
3598 (advance_to_expression_complete_word_point): Update call to
3599 word_break_characters.
3600 (complete_files_symbols): Likewise.
3601 (complete_line_internal_1): Likewise.
3602 (default_completer_handle_brkchars): Likewise.
3603 (skip_quoted_chars): Likewise.
3604 * d-lang.c (d_language_data): Delete la_word_break_characters
3605 initializer.
3606 * f-lang.c (f_word_break_characters): Delete.
3607 (f_language_data): Delete la_word_break_characters initializer.
3608 (f_language::word_break_characters): New member function.
3609 * go-lang.c (go_language_data): Delete la_word_break_characters
3610 initializer.
3611 * language.c (unknown_language_data): Likewise.
3612 (auto_language_data): Likewise.
3613 * language.h (default_word_break_characters): Move declaration to
3614 earlier in the file.
3615 (language_data): Delete la_word_break_characters field.
3616 (language_defn::word_break_characters): New member function.
3617 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3618 initializer.
3619 * objc-lang.c (objc_language_data): Likewise.
3620 * opencl-lang.c (opencl_language_data): Likewise.
3621 * p-lang.c (pascal_language_data): Likewise.
3622 * rust-lang.c (rust_language_data): Likewise.
3623
c9debfb9
AB
36242020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3625
3626 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3627 (ada_language_data): Delete la_get_symbol_name_matcher
3628 initializer.
3629 (language_defn::get_symbol_name_matcher_inner): New member
3630 function.
3631 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3632 initializer.
3633 (cplus_language_data): Likewise.
3634 (cplus_language::get_symbol_name_matcher_inner): New member
3635 function.
3636 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3637 (minimal_language_data): Likewise.
3638 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3639 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3640 initializer.
3641 * dictionary.c (iter_match_first_hashed): Update call to
3642 get_symbol_name_matcher.
3643 (iter_match_next_hashed): Likewise.
3644 (iter_match_next_linear): Likewise.
3645 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3646 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3647 initializer.
3648 (f_language::get_symbol_name_matcher_inner): New member function.
3649 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3650 initializer.
3651 * language.c (default_symbol_name_matcher): Update header comment,
3652 make static.
3653 (language_defn::get_symbol_name_matcher): New definition.
3654 (language_defn::get_symbol_name_matcher_inner): Likewise.
3655 (get_symbol_name_matcher): Delete.
3656 (unknown_language_data): Delete la_get_symbol_name_matcher
3657 initializer.
3658 (auto_language_data): Likewise.
3659 * language.h (language_data): Delete la_get_symbol_name_matcher
3660 field.
3661 (language_defn::get_symbol_name_matcher): New member function.
3662 (language_defn::get_symbol_name_matcher_inner): Likewise.
3663 (default_symbol_name_matcher): Delete declaration.
3664 * linespec.c (find_methods): Update call to
3665 get_symbol_name_matcher.
3666 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3667 initializer.
3668 * minsyms.c (lookup_minimal_symbol): Update call to
3669 get_symbol_name_matcher.
3670 (iterate_over_minimal_symbols): Likewise.
3671 * objc-lang.c (objc_language_data): Delete
3672 la_get_symbol_name_matcher initializer.
3673 * opencl-lang.c (opencl_language_data): Likewise.
3674 * p-lang.c (pascal_language_data): Likewise.
3675 * psymtab.c (psymbol_name_matches): Update call to
3676 get_symbol_name_matcher.
3677 * rust-lang.c (rust_language_data): Delete
3678 la_get_symbol_name_matcher initializer.
3679 * symtab.c (symbol_matches_search_name): Update call to
3680 get_symbol_name_matcher.
3681 (compare_symbol_name): Likewise.
3682
9a49ad8c
AB
36832020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3684
3685 * ada-lang.c (ada_language_data): Delete la_compute_program
3686 initializer.
3687 * c-lang.c (c_language_data): Likewise.
3688 (c_language::compute_program): New member function.
3689 (cplus_language_data): Delete la_compute_program initializer.
3690 (cplus_language::compute_program): New member function.
3691 (asm_language_data): Delete la_compute_program initializer.
3692 (minimal_language_data): Likewise.
3693 * c-lang.h (c_compute_program): Update comment.
3694 (cplus_compute_program): Likewise.
3695 * compile/compile-c-support.c (c_compute_program): Likewise.
3696 (cplus_compute_program): Likewise.
3697 * compile/compile.c (compile_to_object): Update call to
3698 la_compute_program.
3699 * d-lang.c (d_language_data): Delete la_compute_program
3700 initializer.
3701 * f-lang.c (f_language_data): Likewise.
3702 * go-lang.c (go_language_data): Likewise.
3703 * language.c (unknown_language_data): Likewise.
3704 (auto_language_data): Likewise.
3705 * language.h (language_data): Delete la_compute_program field.
3706 (language_defn::compute_program): New member function.
3707 * m2-lang.c (m2_language_data): Delete la_compute_program
3708 initializer.
3709 * objc-lang.c (objc_language_data): Likewise.
3710 * opencl-lang.c (opencl_language_data): Likewise.
3711 * p-lang.c (pascal_language_data): Likewise.
3712 * rust-lang.c (rust_language_data): Likewise.
3713
eff93b4d
AB
37142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3715
3716 * ada-lang.c (ada_language_data) Delete
3717 la_class_name_from_physname initializer.
3718 * c-lang.c (c_language_data): Likewise.
3719 (cplus_language_data): Likewise.
3720 (cplus_language::class_name_from_physname): New member function.
3721 (asm_language_data): Delete la_class_name_from_physname
3722 initializer.
3723 (minimal_language_data): Likewise.
3724 * d-lang.c (d_language_data): Likewise.
3725 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3726 method on language_defn class.
3727 (guess_full_die_structure_name): Likewise.
3728 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3729 initializer.
3730 * go-lang.c (go_language_data): Likewise.
3731 * language.c (language_class_name_from_physname): Delete.
3732 (unk_lang_class_name): Delete.
3733 (unknown_language_data): Delete la_class_name_from_physname
3734 initializer.
3735 (auto_language_data): Likewise.
3736 * language.h (language_data): Delete la_class_name_from_physname
3737 field.
3738 (language_defn::class_name_from_physname): New function.
3739 (language_class_name_from_physname): Delete declaration.
3740 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3741 initializer.
3742 * objc-lang.c (objc_language_data): Likewise.
3743 * opencl-lang.c (opencl_language_data): Likewise.
3744 * p-lang.c (pascal_language_data): Likewise.
3745 * rust-lang.c (rust_language_data): Likewise.
3746
de543742
TT
37472020-06-16 Tom Tromey <tom@tromey.com>
3748
3749 * tui/tui-data.h (STATUS_NAME): New macro.
3750 * tui/tui-layout.c (tui_remove_some_windows)
3751 (initialize_known_windows, tui_register_window)
3752 (tui_layout_split::remove_windows, initialize_layouts)
3753 (tui_new_layout_command): Don't use hard-coded window names.
3754
a350efd4
TT
37552020-06-16 Tom Tromey <tom@tromey.com>
3756
3757 PR tui/25348:
3758 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3759 tui_initialize_readline. Only run once. Call rl_initialize.
3760 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3761 tui_initialize_readline.
3762 * tui/tui-io.c (tui_setup_io): Call
3763 tui_ensure_readline_initialized.
3764 * tui/tui-interp.c (tui_interp::init): Update.
3765
39ec0490
TT
37662020-06-16 Tom Tromey <tom@tromey.com>
3767
3768 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3769 Also preserve the status window.
3770
d2d1ea20
TT
37712020-06-16 Tom Tromey <tom@tromey.com>
3772
3773 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3774 where m_window==nullptr.
3775
66920317
TT
37762020-06-15 Tom Tromey <tromey@adacore.com>
3777
3778 * windows-nat.c (windows_nat::handle_output_debug_string):
3779 Update.
3780 (windows_nat::handle_ms_vc_exception): Update.
3781 * target.h (target_read_string): Change API.
3782 * target.c (target_read_string): Change API.
3783 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3784 Update.
3785 * solib-frv.c (frv_current_sos): Update.
3786 * solib-dsbt.c (dsbt_current_sos): Update.
3787 * solib-darwin.c (darwin_current_sos): Update.
3788 * linux-thread-db.c (inferior_has_bug): Update.
3789 * expprint.c (print_subexp_standard): Update.
3790 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3791 (ada_exception_message_1): Update.
3792
a5d871dd
TT
37932020-06-15 Tom Tromey <tromey@adacore.com>
3794
3795 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3796
670e35fa
TT
37972020-06-15 Tom Tromey <tromey@adacore.com>
3798
3799 * valprint.c (read_string): Update comment.
3800 * target.c (MIN): Remove.
3801 (target_read_string): Rewrite.
3802
f5272a3b
TT
38032020-06-15 Tom Tromey <tromey@adacore.com>
3804
3805 * corefile.c (read_memory_string): Remove.
3806 * ada-valprint.c (ada_value_print_ptr): Update.
3807 * ada-lang.h (ada_tag_name): Change return type.
3808 * ada-lang.c (type_from_tag): Update.
3809 (ada_tag_name_from_tsd): Change return type. Use
3810 target_read_string.
3811 (ada_tag_name): Likewise.
3812 * gdbcore.h (read_memory_string): Don't declare.
3813
2c074f49
HD
38142020-06-14 Hannes Domani <ssbssa@yahoo.de>
3815
3816 * symtab.c (rbreak_command): Ignore Windows drive colon.
3817
6a17d503
SM
38182020-06-12 Simon Marchi <simon.marchi@efficios.com>
3819
3820 * NEWS: Mention removed GDBserver host support.
3821
453c733f
NC
38222020-06-12 Nelson Chu <nelson.chu@sifive.com>
3823
3824 * features/riscv/rebuild-csr-xml.sh: Updated.
3825
2b4e6a3f
TT
38262020-06-11 Tom Tromey <tom@tromey.com>
3827
3828 PR gdb/18318:
3829 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3830
4412332f
JG
38312020-06-09 Jonny Grant <jg@jguk.org>
38322020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3833
3834 * main.c (captured_main_1): Don't print new line after help.
3835 (print_gdb_help): add mailing list and IRC channel information
3836 to --help. Add new lines between items in the footer. Remove
3837 quotes around bug url.
3838
2f33032a
KS
38392020-06-11 Keith Seitz <keiths@redhat.com>
3840
3841 PR gdb/21356
3842 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3843 Resolve typedefs for type length calculations.
3844
7ab96794
TV
38452020-06-10 Tom de Vries <tdevries@suse.de>
3846
3847 PR ada/24713
3848 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3849 (write_psymbols): Enable .gdb_index for ada.
3850 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3851 ada.
3852
e5f3ece2
TV
38532020-06-10 Tom de Vries <tdevries@suse.de>
3854
3855 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3856 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3857 namei" instead of "const char *name" argument.
3858 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3859 dw2_symtab_iter_init.
3860
940da03e
SM
38612020-06-08 Simon Marchi <simon.marchi@efficios.com>
3862
3863 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3864 to use type::field and field::type instead.
3865
b6cdac4b
SM
38662020-06-08 Simon Marchi <simon.marchi@efficios.com>
3867
3868 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3869 to use field::type instead.
3870
5d14b6e5
SM
38712020-06-08 Simon Marchi <simon.marchi@efficios.com>
3872
3873 * gdbtypes.h (struct field) <type, set_type>: New methods.
3874 Rename `type` field to...
3875 <m_type>: ... this. Change references throughout to use type or
3876 set_type methods.
3877 (FIELD_TYPE): Use field::type. Change call sites that modify
3878 the field's type to use field::set_type instead.
3879
3d967001
SM
38802020-06-08 Simon Marchi <simon.marchi@efficios.com>
3881
3882 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3883 to use type::index_type instead.
3884
262abc0d
SM
38852020-06-08 Simon Marchi <simon.marchi@efficios.com>
3886
3887 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3888 methods.
3889 (TYPE_INDEX_TYPE): Use type::index_type.
3890 * gdbtypes.c (create_array_type_with_stride): Likewise.
3891
82836c92
TT
38922020-06-07 Tom Tromey <tom@tromey.com>
3893
3894 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3895 parameter.
3896 (generic_value_print): Update.
3897
940dace9
AB
38982020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3899
3900 Revert commit 982a38f60b0.
3901 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3902
982a38f6
AB
39032020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3904
3905 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3906 avoid use after free.
3907
82f06518
TV
39082020-06-05 Tom de Vries <tdevries@suse.de>
3909
3910 * NEWS: Fix typos.
3911
f8c41851
SM
39122020-06-04 Simon Marchi <simon.marchi@efficios.com>
3913
3914 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3915 the per_bfd object.
3916 (dwarf2_read_debug_names): Likewise.
3917 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3918 object when re-using a per_bfd object with an index.
3919
f9b5d5ea
TV
39202020-06-03 Tom de Vries <tdevries@suse.de>
3921
3922 PR symtab/26046
3923 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3924 children for C++.
3925 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3926 DW_TAG_subprogram.
3927
f6eee2d0
AB
39282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3929
3930 * ada-lang.c (ada_language_data): Delete skip_trampoline
3931 initializer.
3932 * c-lang.c (c_language_data): Likewise.
3933 (cplus_language_data): Likewise.
3934 (cplus_language::skip_trampoline): New member function.
3935 (asm_language_data): Delete skip_trampoline initializer.
3936 (minimal_language_data): Likewise.
3937 * d-lang.c (d_language_data): Likewise.
3938 * f-lang.c (f_language_data): Likewise.
3939 * go-lang.c (go_language_data): Likewise.
3940 * language.c (unk_lang_trampoline): Delete function.
3941 (skip_language_trampoline): Update.
3942 (unknown_language_data): Delete skip_trampoline initializer.
3943 (auto_language_data): Likewise.
3944 * language.h (language_data): Delete skip_trampoline field.
3945 (language_defn::skip_trampoline): New function.
3946 * m2-lang.c (m2_language_data): Delete skip_trampoline
3947 initializer.
3948 * objc-lang.c (objc_skip_trampoline): Delete function, move
3949 implementation to objc_language::skip_trampoline.
3950 (objc_language_data): Delete skip_trampoline initializer.
3951 (objc_language::skip_trampoline): New member function with
3952 implementation from objc_skip_trampoline.
3953 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3954 initializer.
3955 * p-lang.c (pascal_language_data): Likewise.
3956 * rust-lang.c (rust_language_data): Likewise.
3957
0a50df5d
AB
39582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3959
3960 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3961 (ada_language::demangle): New member function.
3962 * c-lang.c (c_language_data): Delete la_demangle initializer.
3963 (cplus_language_data): Delete la_demangle initializer.
3964 (cplus_language::demangle): New member function.
3965 (asm_language_data): Delete la_demangle initializer.
3966 (minimal_language_data): Delete la_demangle initializer.
3967 * d-lang.c (d_language_data): Delete la_demangle initializer.
3968 (d_language::demangle): New member function.
3969 * f-lang.c (f_language_data): Delete la_demangle initializer.
3970 (f_language::demangle): New member function.
3971 * go-lang.c (go_language_data): Delete la_demangle initializer.
3972 (go_language::demangle): New member function.
3973 * language.c (language_demangle): Update.
3974 (unk_lang_demangle): Delete.
3975 (unknown_language_data): Delete la_demangle initializer.
3976 (unknown_language::demangle): New member function.
3977 (auto_language_data): Delete la_demangle initializer.
3978 (auto_language::demangle): New member function.
3979 * language.h (language_data): Delete la_demangle field.
3980 (language_defn::demangle): New function.
3981 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3982 * objc-lang.c (objc_language_data): Delete la_demangle
3983 initializer.
3984 (objc_language::demangle): New member function.
3985 * opencl-lang.c (opencl_language_data): Delete la_demangle
3986 initializer.
3987 * p-lang.c (pascal_language_data): Likewise.
3988 * rust-lang.c (rust_language_data): Likewise.
3989 (rust_language::demangle): New member function.
3990
fbfb0a46
AB
39912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3992
3993 * ada-lang.c (ada_language_data): Delete la_print_type
3994 initializer.
3995 (ada_language::print_type): New member function.
3996 * c-lang.c (c_language_data): Delete la_print_type initializer.
3997 (c_language::print_type): New member function.
3998 (cplus_language_data): Delete la_print_type initializer.
3999 (cplus_language::print_type): New member function.
4000 (asm_language_data): Delete la_print_type initializer.
4001 (asm_language::print_type): New member function.
4002 (minimal_language_data): Delete la_print_type initializer.
4003 (minimal_language::print_type): New member function.
4004 * d-lang.c (d_language_data): Delete la_print_type initializer.
4005 (d_language::print_type): New member function.
4006 * f-lang.c (f_language_data): Delete la_print_type initializer.
4007 (f_language::print_type): New member function.
4008 * go-lang.c (go_language_data): Delete la_print_type initializer.
4009 (go_language::print_type): New member function.
4010 * language.c (unk_lang_print_type): Delete.
4011 (unknown_language_data): Delete la_print_type initializer.
4012 (unknown_language::print_type): New member function.
4013 (auto_language_data): Delete la_print_type initializer.
4014 (auto_language::print_type): New member function.
4015 * language.h (language_data): Delete la_print_type field.
4016 (language_defn::print_type): New function.
4017 (LA_PRINT_TYPE): Update.
4018 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4019 (m2_language::print_type): New member function.
4020 * objc-lang.c (objc_language_data): Delete la_print_type
4021 initializer.
4022 (objc_language::print_type): New member function.
4023 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4024 to opencl_language::print_type.
4025 (opencl_language_data): Delete la_print_type initializer.
4026 (opencl_language::print_type): New member function, implementation
4027 from opencl_print_type.
4028 * p-lang.c (pascal_language_data): Delete la_print_type
4029 initializer.
4030 (pascal_language::print_type): New member function.
4031 * rust-lang.c (rust_print_type): Delete, implementation moved to
4032 rust_language::print_type.
4033 (rust_language_data): Delete la_print_type initializer.
4034 (rust_language::print_type): New member function, implementation
4035 from rust_print_type.
4036
6f827019
AB
40372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4038
4039 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4040 implementation moves to...
4041 (ada_language::sniff_from_mangled_name): ...here. Update return
4042 type.
4043 (ada_language_data): Delete la_sniff_from_mangled_name
4044 initializer.
4045 * c-lang.c (c_language_data): Likewise.
4046 (cplus_language_data): Likewise.
4047 (cplus_language::sniff_from_mangled_name): New member function,
4048 implementation taken from gdb_sniff_from_mangled_name.
4049 (asm_language_data): Delete la_sniff_from_mangled_name
4050 initializer.
4051 (minimal_language_data): Likewise.
4052 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4053 implementation moves to cplus_language::sniff_from_mangled_name.
4054 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4055 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4056 moves to...
4057 (d_language::sniff_from_mangled_name): ...here.
4058 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4059 * f-lang.c (f_language_data): Likewise.
4060 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4061 moves to...
4062 (go_language::sniff_from_mangled_name): ...here.
4063 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4064 * language.c (language_sniff_from_mangled_name): Delete.
4065 (unknown_language_data): Delete la_sniff_from_mangled_name
4066 initializer.
4067 (auto_language_data): Likewise.
4068 * language.h (language_data): Delete la_sniff_from_mangled_name
4069 field.
4070 (language_defn::sniff_from_mangled_name): New function.
4071 (language_sniff_from_mangled_name): Delete declaration.
4072 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4073 field.
4074 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4075 implementation moves to...
4076 (objc_language::sniff_from_mangled_name): ...here.
4077 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4078 * opencl-lang.c (opencl_language_data): Likewise.
4079 * p-lang.c (pascal_language_data): Likewise.
4080 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4081 implementation moves to...
4082 (rust_language::sniff_from_mangled_name): ...here.
4083 (rust_language_data): Delete la_sniff_from_mangled_name
4084 initializer.
4085 * symtab.c (symbol_find_demangled_name): Call
4086 sniff_from_mangled_name member function.
4087
fb8006fd
AB
40882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4089
4090 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4091 initializer.
4092 * c-lang.c (c_language_data): Likewise.
4093 (cplus_language_data): Likewise.
4094 (cplus_language::search_name_hash): New member function.
4095 (asm_language_data): Delete la_search_name_hash initializer.
4096 (minimal_language_data): Likewise.
4097 * d-lang.c (d_language_data): Likewise.
4098 * dictionary.c (default_search_name_hash): Rename to...
4099 (language_defn::search_name_hash): ...this.
4100 * f-lang.c (f_language_data): Likewise.
4101 (f_language::search_name_hash): New member function.
4102 * go-lang.c (go_language_data): Delete la_search_name_hash
4103 initializer.
4104 * language.c (unknown_language_data): Likewise.
4105 (auto_language_data): Likewise.
4106 * language.h (struct language_data): Delete la_search_name_hash
4107 field.
4108 (language_defn::search_name_hash): Declare new member function.
4109 (default_search_name_hash): Delete declaration.
4110 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4111 initializer.
4112 * objc-lang.c (objc_language_data): Likewise.
4113 * opencl-lang.c (opencl_language_data): Likewise.
4114 * p-lang.c (pascal_language_data): Likewise.
4115 * rust-lang.c (rust_language_data): Likewise.
4116 * symtab.c (search_name_hash): Update call.
4117
8e25bafe
AB
41182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4119
4120 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4121 initializer.
4122 * c-lang.c (class compile_instance): Declare.
4123 (c_language_data): Delete la_get_compile_instance initializer.
4124 (c_language::get_compile_instance): New member function.
4125 (cplus_language_data): Delete la_get_compile_instance initializer.
4126 (cplus_language::get_compile_instance): New member function.
4127 (asm_language_data): Delete la_get_compile_instance initializer.
4128 (minimal_language_data): Likewise.
4129 * c-lang.h (c_get_compile_context): Update comment.
4130 (cplus_get_compile_context): Update comment.
4131 * compile/compile.c (compile_to_object): Update calls, don't rely
4132 on function pointer being NULL.
4133 * d-lang.c (d_language_data): Delete la_get_compile_instance
4134 initializer.
4135 * f-lang.c (f_language_data): Likewise.
4136 * go-lang.c (go_language_data): Likewise.
4137 * language.c (unknown_language_data): Likewise.
4138 (auto_language_data): Likewise.
4139 * language.h (language_data): Delete la_get_compile_instance field.
4140 (language_defn::get_compile_instance): New member function.
4141 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4142 initializer.
4143 * objc-lang.c (objc_language_data): Likewise.
4144 * opencl-lang.c (opencl_language_data): Likewise.
4145 * p-lang.c (pascal_language_data): Likewise.
4146 * rust-lang.c (rust_language_data): Likewise.
4147
4009ee92
AB
41482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4149
4150 * ada-lang.c (ada_add_all_symbols): Update comment.
4151 (ada_iterate_over_symbols): Delete, move implementation to...
4152 (ada_language::iterate_over_symbols): ...here, a new member
4153 function, rewrite to use range based for loop.
4154 (ada_language_data): Delete la_iterate_over_symbols initializer.
4155 * c-lang.c (c_language_data): Likewise.
4156 (cplus_language_data): Likewise.
4157 (asm_language_data): Likewise.
4158 (minimal_language_data): Likewise.
4159 * d-lang.c (d_language_data): Likewise.
4160 * f-lang.c (f_language_data): Likewise.
4161 * go-lang.c (go_language_data): Likewise.
4162 * language.c (unknown_language_data): Likewise.
4163 (auto_language_data): Likewise.
4164 * language.h (language_data): Delete la_iterate_over_symbols field.
4165 (language_defn::iterate_over_symbols): New member function.
4166 (LA_ITERATE_OVER_SYMBOLS): Update.
4167 * linespec.c (iterate_over_all_matching_symtabs): Update.
4168 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4169 initializer.
4170 * objc-lang.c (objc_language_data): Likewise.
4171 * opencl-lang.c (opencl_language_data): Likewise.
4172 * p-lang.c (pascal_language_data): Likewise.
4173 * rust-lang.c (rust_language_data): Likewise.
4174
54f4ca46
AB
41752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4176
4177 * ada-lang.c (ada_language_data): Delete
4178 la_lookup_transparent_type initializer.
4179 * c-lang.c (c_language_data): Likewise.
4180 (cplus_language_data): Likewise.
4181 (cplus_language::lookup_transparent_type): New member function.
4182 (asm_language_data): Delete la_lookup_transparent_type
4183 initializer.
4184 (minimal_language_data): Likewise.
4185 * d-lang.c (d_language_data): Likewise.
4186 * f-lang.c (f_language_data): Likewise.
4187 * go-lang.c (go_language_data): Likewise.
4188 * language.c (unknown_language_data): Likewise.
4189 (auto_language_data): Likewise.
4190 * language.h (struct language_data): Delete
4191 la_lookup_transparent_type field.
4192 (language_defn::lookup_transparent_type): New member function.
4193 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4194 initializer.
4195 * objc-lang.c (objc_language_data): Likewise.
4196 * opencl-lang.c (opencl_language_data): Likewise.
4197 * p-lang.c (pascal_language_data): Likewise.
4198 * rust-lang.c (rust_language_data): Likewise.
4199 * symtab.c (symbol_matches_domain): Update call.
4200
1fb314aa
AB
42012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4202
4203 * ada-lang.c (ada_language_arch_info): Delete function, move
4204 implementation to...
4205 (ada_language::language_arch_info): ...here, a new member
4206 function.
4207 (ada_language_data): Delete la_language_arch_info.
4208 * c-lang.c (c_language_data): Likewise.
4209 (c_language::language_arch_info): New member function.
4210 (cplus_language_arch_info): Delete function, move
4211 implementation to...
4212 (cplus_language::language_arch_info): ...here, a new member
4213 function.
4214 (cplus_language_data): Delete la_language_arch_info.
4215 (asm_language_data): Likewise.
4216 (asm_language::language_arch_info): New member function.
4217 (minimal_language_data): Delete la_language_arch_info.
4218 (minimal_language::language_arch_info): New member function.
4219 * d-lang.c (d_language_arch_info): Delete function, move
4220 implementation to...
4221 (d_language::language_arch_info): ...here, a new member
4222 function.
4223 (d_language_data): Delete la_language_arch_info.
4224 * f-lang.c (f_language_arch_info): Delete function, move
4225 implementation to...
4226 (f_language::language_arch_info): ...here, a new member
4227 function.
4228 (f_language_data): Delete la_language_arch_info.
4229 * go-lang.c (go_language_arch_info): Delete function, move
4230 implementation to...
4231 (go_language::language_arch_info): ...here, a new member
4232 function.
4233 (go_language_data): Delete la_language_arch_info.
4234 * language.c (unknown_language_data): Likewise.
4235 (unknown_language::language_arch_info): New member function.
4236 (auto_language_data): Delete la_language_arch_info.
4237 (auto_language::language_arch_info): New member function.
4238 (language_gdbarch_post_init): Update call to
4239 la_language_arch_info.
4240 * language.h (language_data): Delete la_language_arch_info
4241 function pointer.
4242 (language_defn::language_arch_info): New function.
4243 * m2-lang.c (m2_language_arch_info): Delete function, move
4244 implementation to...
4245 (m2_language::language_arch_info): ...here, a new member
4246 function.
4247 (m2_language_data): Delete la_language_arch_info.
4248 * objc-lang.c (objc_language_arch_info): Delete function, move
4249 implementation to...
4250 (objc_language::language_arch_info): ...here, a new member
4251 function.
4252 (objc_language_data): Delete la_language_arch_info.
4253 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4254 implementation to...
4255 (opencl_language::language_arch_info): ...here, a new member
4256 function.
4257 (opencl_language_data): Delete la_language_arch_info.
4258 * p-lang.c (pascal_language_arch_info): Delete function, move
4259 implementation to...
4260 (pascal_language::language_arch_info): ...here, a new member
4261 function.
4262 (pascal_language_data): Delete la_language_arch_info.
4263 * rust-lang.c (rust_language_arch_info): Delete function, move
4264 implementation to...
4265 (rust_language::language_arch_info): ...here, a new member
4266 function.
4267 (rust_language_data): Delete la_language_arch_info.
4268
48448202
AB
42692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4270
4271 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4272 initializer.
4273 * c-lang.c (c_language_data): Likewise.
4274 (cplus_language_data): Likewise.
4275 (cplus_language::pass_by_reference_info): New method.
4276 (asm_language_data): Delete la_pass_by_reference initializer.
4277 (minimal_language_data): Likewise.
4278 * cp-abi.c (cp_pass_by_reference): Remove use of
4279 default_pass_by_reference.
4280 * d-lang.c (d_language_data): Likewise.
4281 * f-lang.c (f_language_data): Likewise.
4282 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4283 default_pass_by_reference.
4284 * go-lang.c (go_language_data): Likewise.
4285 * language.c (language_pass_by_reference): Update.
4286 (default_pass_by_reference): Delete.
4287 (unknown_language_data): Delete la_pass_by_reference
4288 initializer.
4289 (auto_language_data): Likewise.
4290 * language.h (struct language_data): Delete la_pass_by_reference
4291 field.
4292 (language_defn::pass_by_reference_info): New member function.
4293 (default_pass_by_reference): Delete declaration.
4294 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4295 initializer.
4296 * objc-lang.c (objc_language_data): Likewise.
4297 * opencl-lang.c (opencl_language_data): Likewise.
4298 * p-lang.c (pascal_language_data): Likewise.
4299 * rust-lang.c (rust_language_data): Likewise.
4300
15e5fd35
AB
43012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4302
4303 * ada-lang.c (ada_read_var_value): Delete function, move
4304 implementation to...
4305 (ada_language::read_var_value): ...here.
4306 (ada_language_data): Delete la_read_var_value initializer.
4307 * c-lang.c (c_language_data): Likewise.
4308 (cplus_language_data): Likewise.
4309 (minimal_language_data): Likewise.
4310 * d-lang.c (d_language_data): Likewise.
4311 * f-lang.c (f_language_data): Likewise.
4312 * findvar.c (default_read_var_value): Rename to...
4313 (language_defn::read_var_value): ...this.
4314 * findvar.c (read_var_value): Update header comment, and change to
4315 call member function instead of function pointer.
4316 * go-lang.c (go_language_data): Likewise.
4317 * language.c (unknown_language_data): Delete la_read_var_value
4318 initializer.
4319 (auto_language_data): Likewise.
4320 * language.h (struct language_data): Delete la_read_var_value
4321 field.
4322 (language_defn::read_var_value): New member function.
4323 (default_read_var_value): Delete declaration.
4324 * m2-lang.c (m2_language_data): Delete la_read_var_value
4325 initializer.
4326 * objc-lang.c (objc_language_data): Likewise.
4327 * opencl-lang.c (opencl_language_data): Likewise.
4328 * p-lang.c (pascal_language_data): Likewise.
4329 * rust-lang.c (rust_language_data): Likewise.
4330 * value.h (default_read_var_value): Delete declaration.
4331
5bd40f2a
AB
43322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4333
4334 * ada-lang.c (ada_print_array_index): Delete function, move
4335 implementation to...
4336 (ada_language::print_array_index): ...here.
4337 (ada_language_data): Delete la_print_array_index initializer.
4338 * c-lang.c (c_language_data): Likewise.
4339 (cplus_language_data): Likewise.
4340 (minimal_language_data): Likewise.
4341 * d-lang.c (d_language_data): Likewise.
4342 * f-lang.c (f_language_data): Likewise.
4343 * go-lang.c (go_language_data): Likewise.
4344 * language.c (default_print_array_index): Delete function, move
4345 implementation to...
4346 (language_defn::print_array_index): ...here.
4347 (unknown_language_data): Delete la_print_array_index initializer.
4348 (auto_language_data): Likewise.
4349 * language.h (struct language_data): Delete la_print_array_index
4350 field.
4351 (language_defn::print_array_index): New member function.
4352 (LA_PRINT_ARRAY_INDEX): Update.
4353 (default_print_array_index): Delete declaration.
4354 * m2-lang.c (m2_language_data): Delete la_print_array_index
4355 initializer.
4356 * objc-lang.c (objc_language_data): Likewise.
4357 * opencl-lang.c (opencl_language_data): Likewise.
4358 * p-lang.c (pascal_language_data): Likewise.
4359 * rust-lang.c (rust_language_data): Likewise.
4360
0874fd07
AB
43612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4362
4363 * gdb/ada-lang.c (ada_language_defn): Convert to...
4364 (ada_language_data): ...this.
4365 (class ada_language): New class.
4366 (ada_language_defn): New static global.
4367 * gdb/c-lang.c (c_language_defn): Convert to...
4368 (c_language_data): ...this.
4369 (class c_language): New class.
4370 (c_language_defn): New static global.
4371 (cplus_language_defn): Convert to...
4372 (cplus_language_data): ...this.
4373 (class cplus_language): New class.
4374 (cplus_language_defn): New static global.
4375 (asm_language_defn): Convert to...
4376 (asm_language_data): ...this.
4377 (class asm_language): New class.
4378 (asm_language_defn): New static global.
4379 (minimal_language_defn): Convert to...
4380 (minimal_language_data): ...this.
4381 (class minimal_language): New class.
4382 (minimal_language_defn): New static global.
4383 * gdb/d-lang.c (d_language_defn): Convert to...
4384 (d_language_data): ...this.
4385 (class d_language): New class.
4386 (d_language_defn): New static global.
4387 * gdb/f-lang.c (f_language_defn): Convert to...
4388 (f_language_data): ...this.
4389 (class f_language): New class.
4390 (f_language_defn): New static global.
4391 * gdb/go-lang.c (go_language_defn): Convert to...
4392 (go_language_data): ...this.
4393 (class go_language): New class.
4394 (go_language_defn): New static global.
4395 * gdb/language.c (unknown_language_defn): Remove declaration.
4396 (current_language): Initialize to nullptr, real initialization is
4397 moved to _initialize_language.
4398 (languages): Delete global.
4399 (language_defn::languages): Define.
4400 (set_language_command): Use language_defn::languages.
4401 (set_language): Likewise.
4402 (range_error): Likewise.
4403 (language_enum): Likewise.
4404 (language_def): Likewise.
4405 (add_set_language_command): Use language_def::languages for the
4406 language list, and language_def to lookup language pointers.
4407 (skip_language_trampoline): Use language_defn::languages.
4408 (unknown_language_defn): Convert to...
4409 (unknown_language_data): ...this.
4410 (class unknown_language): New class.
4411 (unknown_language_defn): New static global.
4412 (auto_language_defn): Convert to...
4413 (auto_language_data): ...this.
4414 (class auto_language): New class.
4415 (auto_language_defn): New static global.
4416 (language_gdbarch_post_init): Use language_defn::languages.
4417 (_initialize_language): Initialize current_language.
4418 * gdb/language.h (struct language_defn): Rename to...
4419 (struct language_data): ...this.
4420 (struct language_defn): New.
4421 (auto_language_defn): Delete.
4422 (unknown_language_defn): Delete.
4423 (minimal_language_defn): Delete.
4424 (ada_language_defn): Delete.
4425 (asm_language_defn): Delete.
4426 (c_language_defn): Delete.
4427 (cplus_language_defn): Delete.
4428 (d_language_defn): Delete.
4429 (f_language_defn): Delete.
4430 (go_language_defn): Delete.
4431 (m2_language_defn): Delete.
4432 (objc_language_defn): Delete.
4433 (opencl_language_defn): Delete.
4434 (pascal_language_defn): Delete.
4435 (rust_language_defn): Delete.
4436 * gdb/m2-lang.c (m2_language_defn): Convert to...
4437 (m2_language_data): ...this.
4438 (class m2_language): New class.
4439 (m2_language_defn): New static global.
4440 * gdb/objc-lang.c (objc_language_defn): Convert to...
4441 (objc_language_data): ...this.
4442 (class objc_language): New class.
4443 (objc_language_defn): New static global.
4444 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4445 (opencl_language_data): ...this.
4446 (class opencl_language): New class.
4447 (opencl_language_defn): New static global.
4448 * gdb/p-lang.c (pascal_language_defn): Convert to...
4449 (pascal_language_data): ...this.
4450 (class pascal_language): New class.
4451 (pascal_language_defn): New static global.
4452 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4453 language pointer, update comment format.
4454 * gdb/rust-lang.c (rust_language_defn): Convert to...
4455 (rust_language_data): ...this.
4456 (class rust_language): New class.
4457 (rust_language_defn): New static global.
4458
1313c56e
AB
44592020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4460
4461 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4462 member variable.
4463 <m_stmt_at_address>: New member variable.
4464 (lnp_state_machine::record_line): Don't record some lines, update
4465 tracking of is_stmt at the same address.
4466 (lnp_state_machine::lnp_state_machine): Initialise new member
4467 variables.
4468
b7ed9f3d
ST
44692020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4470
4471 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4472 "-include gnu-nat-mig.h".
4473 * gnu-nat-mig.h: New file.
4474 * gnu-nat.c: Include "gnu-nat-mig.h".
4475 (exc_server, msg_reply_server, notify_server,
4476 process_reply_server): Remove declarations.
4477
14a8ad62
ST
44782020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4479
4480 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4481 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4482 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4483 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4484 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4485 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4486 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4487 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4488 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4489 to gnu_nat_target class.
4490 * gnu-nat.c: Likewise.
4491 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4492 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4493 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4494 object.
4495 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4496 instead of `gnu_target'.
4497
0af5e106
ST
44982020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4499
4500 * i386-gnu-tdep.c: Include "gdbcore.h"
4501 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4502 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4503 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4504 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4505 i386_gnu_sigcontext_addr): New functions
4506 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4507 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4508 tdep.
4509
078f2fc9
ST
45102020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4511
4512 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4513 before fork_inferior call. Avoid calling it if target_is_pushed returns
4514 true.
4515
53dff92c
ST
45162020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4517
4518 * gnu-nat.h (gnu_target): New variable declaration.
4519 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4520 gnu_target.
4521 * gnu-nat.c (gnu_target): New variable.
4522 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4523 add_thread_silent, and add_thread calls.
4524 (gnu_nat_target::create_inferior): Pass gnu_target to
4525 add_thread_silent, thread_change_ptid call.
4526 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4527 call.
4528
5a8b8627
ST
45292020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4530
4531 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4532 (gnu_nat_target::find_memory_regions): Remove unused
4533 `old_address' variable.
4534
366f550a
ST
45352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4536
4537 * gnu-nat.c: Include "gdbarch.h".
4538
f14871bf
ST
45392020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4540
4541 * reply_mig_hack.awk (Error return): Cast function through
4542 void *, to bypass compiler function call check.
4543
c6887cfb
ST
45442020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4545
4546 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4547 $(srcdir)/reply_mig_hack.awk.
4548
6930bffe
ST
45492020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4550
4551 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4552
112c22ed
JG
45532020-05-30 Jonny Grant <jg@jguk.org>
4554
4555 * configure.ac (ACX_BUGURL): change bug URL to https.
4556
f68f85b5
PA
45572020-05-30 Pedro Alves <palves@redhat.com>
4558
4559 * cp-support.c (replace_typedefs_template): New.
4560 (replace_typedefs_qualified_name): Handle
4561 DEMANGLE_COMPONENT_TEMPLATE.
4562
976ca316
SM
45632020-05-29 Simon Marchi <simon.marchi@efficios.com>
4564
4565 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4566 dwarf2/index-cache.h, dwarf2/index-write.c,
4567 dwarf2/index-write.h, dwarf2/line-header.c,
4568 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4569 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4570 variables and fields from `dwarf2_per_objfile` to just
4571 `per_objfile` throughout.
4572
989ade05
SM
45732020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4574
4575 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4576 <push_dwarf_reg_entry_value>: Add comment.
4577
c47bae85
KB
45782020-05-28 Kevin Buettner <kevinb@redhat.com>
4579 Keith Seitz <keiths@redhat.com>
4580
4581 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4582 instead of PyEval_ReleaseLock.
4583 (class gdbpy_gil): Move to earlier in file.
4584 (finalize_python): Set gdb_python_initialized.
4585 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4586 when not initialized.
4587
44486dcf
SM
45882020-05-28 Simon Marchi <simon.marchi@efficios.com>
4589
4590 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4591 <push_dwarf_reg_entry_value>: Remove assert. Override
4592 per_objfile with caller_per_objfile.
4593
f030440d
TV
45942020-05-28 Tom de Vries <tdevries@suse.de>
4595
4596 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4597 PR gold/15646 workaround to symbol kind "type".
4598
f0fbb768
TT
45992020-05-27 Tom Tromey <tromey@adacore.com>
4600
4601 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4602
af0b2a3e
TT
46032020-05-27 Tom Tromey <tromey@adacore.com>
4604
4605 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4606 Use htab_find_with_hash.
4607 <add_abbrev>: Remove "abbrev_number" parameter.
4608 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4609 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4610 (hash_abbrev): Add comment.
4611 (abbrev_table::lookup_abbrev): Move to header file.
4612 (abbrev_table::read): Update.
4613
7d00ffec
TT
46142020-05-27 Tom Tromey <tromey@adacore.com>
4615
4616 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4617 method.
4618 <canonical_name>: New member.
4619 <raw_name>: Rename from "name".
4620 (partial_die_info): Initialize canonical_name.
4621 (scan_partial_symbols): Check raw_name.
4622 (partial_die_parent_scope, partial_die_full_name)
4623 (add_partial_symbol, add_partial_subprogram)
4624 (add_partial_enumeration, load_partial_dies): Use "name" method.
4625 (partial_die_info::name): New method.
4626 (partial_die_info::read, guess_partial_die_structure_name)
4627 (partial_die_info::fixup): Update.
4628
697bba18
TT
46292020-05-27 Tom Tromey <tromey@adacore.com>
4630
4631 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4632 <get_ref_die_offset>: Inline.
4633 <get_ref_die_offset_complaint>: New method.
4634 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4635 (attribute::get_ref_die_offset_complaint): Rename from
4636 get_ref_die_offset. Just issue complaint.
4637
c17ace43
HD
46382020-05-27 Hannes Domani <ssbssa@yahoo.de>
4639
4640 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4641
96445f0b
HD
46422020-05-27 Hannes Domani <ssbssa@yahoo.de>
4643
4644 * exec.c (exec_file_attach): Use errno value of first openp failure.
4645
ac637ec3
HD
46462020-05-27 Hannes Domani <ssbssa@yahoo.de>
4647
4648 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4649 Don't close thread handle.
4650
17ee85fc
TT
46512020-05-27 Tom Tromey <tom@tromey.com>
4652 Simon Marchi <simon.marchi@efficios.com>
4653
4654 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4655 shared_ptr.
4656 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4657 member.
4658 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4659 dwarf2_per_bfd_objfile_data_key>: New globals.
4660 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4661 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4662 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4663 shared.
4664 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4665 short-circuit when sharing.
4666 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4667 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4668
39b16f87
SM
46692020-05-27 Simon Marchi <simon.marchi@efficios.com>
4670
4671 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4672 to...
4673 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4674 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4675
fcf23d5b
SM
46762020-05-27 Simon Marchi <simon.marchi@efficios.com>
4677
4678 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4679 build_name_components, find_name_components_bounds>:
4680 Add per_objfile parameter.
4681 (struct mapped_index) <symbol_name_at>: Likewise.
4682 (struct mapped_debug_names): Remove constructor.
4683 <dwarf2_per_objfile>: Remove field.
4684 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4685 (mapped_index_base::find_name_components_bounds,
4686 mapped_index_base::build_name_components,
4687 dw2_expand_symtabs_matching_symbol): Likewise.
4688 (class mock_mapped_index) <symbol_name_at>: Likewise.
4689 (check_match): Likewise.
4690 (check_find_bounds_finds): Likewise.
4691 (test_mapped_index_find_name_component_bounds): Update.
4692 (CHECK_MATCH): Update.
4693 (dw2_expand_symtabs_matching): Update.
4694 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4695 per_objfile parameter.
4696 <find_vec_in_debug_names>: Likewise.
4697 <m_per_objfile>: New field.
4698 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4699 parameter.
4700 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4701 (dw2_debug_names_iterator::next): Update.
4702 (dw2_debug_names_lookup_symbol): Update.
4703 (dw2_debug_names_expand_symtabs_for_function): Update.
4704 (dw2_debug_names_map_matching_symbols): Update.
4705 (dw2_debug_names_expand_symtabs_matching): Update.
4706 (dwarf2_read_debug_names): Update.
4707
7188ed02
SM
47082020-05-27 Simon Marchi <simon.marchi@efficios.com>
4709
4710 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4711 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4712 move to dwarf2_per_objfile.
4713 <read_in_chain>: Remove.
4714 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4715 remove_all_cus, age_comp_units>: New methods.
4716 <m_dwarf2_cus>: New member.
4717 (struct dwarf2_per_cu_data) <cu>: Remove.
4718 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4719 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4720 moved to methods of dwarf2_per_objfile.
4721 (dwarf2_clear_marks): Remove.
4722 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4723 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4724 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4725 (dwarf2_per_objfile::remove_all_cus): New.
4726 (class free_cached_comp_units) <~free_cached_comp_units>:
4727 Update.
4728 (load_cu): Update.
4729 (dw2_do_instantiate_symtab): Adjust.
4730 (fill_in_sig_entry_from_dwo_entry): Adjust.
4731 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4732 (cutu_reader::cutu_reader): Likewise.
4733 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4734 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4735 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4736 and dwarf2_per_objfile::age_comp_units.
4737 (load_partial_comp_unit): Update.
4738 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4739 (process_queue): Likewise.
4740 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4741 backlink.
4742 (dwarf2_read_addr_index): Likewise.
4743 (follow_die_offset): Likewise.
4744 (dwarf2_fetch_die_loc_sect_off): Likewise.
4745 (dwarf2_fetch_constant_bytes): Likewise.
4746 (dwarf2_fetch_die_type_sect_off): Likewise.
4747 (follow_die_sig_1): Likewise.
4748 (load_full_type_unit): Likewise.
4749 (read_signatured_type): Likewise.
4750 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4751 (dwarf2_cu::~dwarf2_cu): Remove.
4752 (dwarf2_per_objfile::get_cu): New.
4753 (dwarf2_per_objfile::set_cu): New.
4754 (age_cached_comp_units): Rename to...
4755 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4756 to std::unordered_map.
4757 (free_one_cached_comp_unit): Rename to...
4758 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4759 to std::unordered_map.
4760 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4761 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4762 a dwarf2_per_objfile in data.
4763 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4764 (dwarf2_clear_marks): Remove.
4765
2e671100
SM
47662020-05-27 Simon Marchi <simon.marchi@efficios.com>
4767
4768 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4769 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4770 (init_tu_and_read_dwo_dies): Likewise.
4771 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4772 (cutu_reader::cutu_reader): Likewise.
4773 (load_partial_comp_unit): Likewise.
4774 (process_psymtab_comp_unit): Update.
4775 (build_type_psymtabs_1): Update.
4776 (process_skeletonless_type_unit): Update.
4777 (load_full_comp_unit): Update.
4778 (find_partial_die): Update.
4779 (dwarf2_read_addr_index): Update.
4780 (read_signatured_type): Update.
4781
2e6a9f79
SM
47822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4783
4784 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4785 m_header_read_in>: New fields.
4786 <get_header>: New method.
4787 * dwarf2/read.c (per_cu_header_read_in): Remove.
4788 (dwarf2_per_cu_data::get_header): New.
4789 (dwarf2_per_cu_data::addr_size): Update.
4790 (dwarf2_per_cu_data::offset_size): Update.
4791 (dwarf2_per_cu_data::ref_addr_size): Update.
4792
1b555f17
SM
47932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4794
4795 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4796 (dw2_do_instantiate_symtab): Update.
4797 (queue_and_load_all_dwo_tus): Change parameter from
4798 dwarf2_per_cu_data to dwarf2_cu.
4799 (dwarf2_fetch_die_loc_sect_off): Update.
4800 (dwarf2_fetch_constant_bytes): Update.
4801 (dwarf2_fetch_die_type_sect_off): Update.
4802
8fc0b21d
SM
48032020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4804
4805 * dwarf2/read.c (process_full_comp_unit,
4806 process_full_type_unit): Remove per_cu, per_objfile paramters.
4807 Add dwarf2_cu parameter.
4808 (process_queue): Update.
4809
168c9250
SM
48102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4811
4812 * dwarf2/read.c (create_cu_from_index_list): Replace
4813 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4814 (create_cus_from_index_list): Likewise.
4815 (create_cus_from_index): Likewise.
4816 (create_signatured_type_table_from_index): Likewise.
4817 (create_cus_from_debug_names_list): Likewise.
4818 (create_cus_from_debug_names): Likewise.
4819 (dwarf2_read_gdb_index): Update.
4820 (dwarf2_read_debug_names): Update.
4821
e286671b
TT
48222020-05-27 Tom Tromey <tom@tromey.com>
4823 Simon Marchi <simon.marchi@efficios.com>
4824
4825 * dwarf2/read.h (struct dwarf2_per_objfile)
4826 <get_type_for_signatured_type, set_type_for_signatured_type>:
4827 New methods.
4828 <m_type_map>: New member.
4829 (struct signatured_type) <type>: Remove.
4830 * dwarf2/read.c
4831 (dwarf2_per_objfile::get_type_for_signatured_type,
4832 dwarf2_per_objfile::set_type_for_signatured_type): New.
4833 (get_signatured_type): Use new methods.
4834
8adb8487
TT
48352020-05-27 Tom Tromey <tom@tromey.com>
4836 Simon Marchi <simon.marchi@efficios.com>
4837
4838 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4839 (struct dwarf2_per_objfile) <type_units>: New member.
4840 <get_type_unit_group_unshareable>: New method.
4841 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4842 num_symtabs, symtabs>: Remove; move to
4843 type_unit_group_unshareable.
4844 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4845 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4846 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4847
127bbf4b
SM
48482020-05-27 Simon Marchi <simon.marchi@efficios.com>
4849
4850 * dwarf2/read.h (struct dwarf2_per_cu_data):
4851 <dwarf2_per_objfile>: Remove.
4852 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4853 dwarf2_per_objfile.
4854 (create_signatured_type_table_from_index): Likewise.
4855 (create_signatured_type_table_from_debug_names): Likewise.
4856 (create_debug_type_hash_table): Likewise.
4857 (fill_in_sig_entry_from_dwo_entry): Likewise.
4858 (create_type_unit_group): Likewise.
4859 (read_comp_units_from_section): Likewise.
4860 (create_cus_hash_table): Likewise.
4861
f6e649dd
SM
48622020-05-27 Simon Marchi <simon.marchi@efficios.com>
4863
4864 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4865 dwarf2_per_cu_data::dwarf2_per_objfile.
4866 (compute_compunit_symtab_includes): Likewise.
4867 (dwarf2_cu::start_symtab): Likewise.
4868
aa66c379
SM
48692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4870
4871 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4872 parameter.
4873 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4874 (read_namespace_alias): Update.
4875 (lookup_die_type): Update.
4876 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4877 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4878 Update.
4879 (disassemble_dwarf_expression): Update.
4880
120ce1b5
SM
48812020-05-27 Simon Marchi <simon.marchi@efficios.com>
4882
4883 * dwarf2/read.h (struct dwarf2_queue_item): Add
4884 dwarf2_per_objfile parameter, assign new parameter.
4885 <per_objfile>: New field.
4886 * dwarf2/read.c (free_one_cached_comp_unit): Add
4887 dwarf2_per_objfile parameter.
4888 (queue_comp_unit): Likewise.
4889 (dw2_do_instantiate_symtab): Update.
4890 (process_psymtab_comp_unit): Update.
4891 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4892 (process_imported_unit_die): Update.
4893 (queue_and_load_dwo_tu): Update.
4894 (follow_die_offset): Update.
4895 (follow_die_sig_1): Update.
4896
9f47c707
SM
48972020-05-27 Simon Marchi <simon.marchi@efficios.com>
4898
4899 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4900 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4901 (read_call_site_scope): Assign per_objfile.
4902 (dwarf2_per_cu_data::objfile): Remove.
4903 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4904 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4905 dwarf2_per_objfile parameter.
4906 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4907 dwarf2_per_objfile parameter.
4908 (dwarf_expr_reg_to_entry_parameter): Add output
4909 dwarf2_per_objfile parameter.
4910 (locexpr_get_frame_base): Update.
4911 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4912 <push_dwarf_reg_entry_value>: Update.
4913 <call_site_to_target_addr>: Update.
4914 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4915 parameter.
4916 (value_of_dwarf_reg_entry): Update.
4917 (rw_pieced_value): Update.
4918 (indirect_synthetic_pointer): Update.
4919 (dwarf2_evaluate_property): Update.
4920 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4921 parameter.
4922 (locexpr_read_variable): Update.
4923 (locexpr_get_symbol_read_needs): Update.
4924 (loclist_read_variable): Update.
4925
14095eb3
SM
49262020-05-27 Simon Marchi <simon.marchi@efficios.com>
4927
4928 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4929 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4930 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4931 parameter.
4932 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4933 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4934 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4935 parameter.
4936 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4937 sect_variable_value): Add dwarf2_per_objfile parameter.
4938 (class dwarf_evaluate_loc_desc) <dwarf_call,
4939 dwarf_variable_value>: Update.
4940 (fetch_const_value_from_synthetic_pointer): Add
4941 dwarf2_per_objfile parameter.
4942 (fetch_const_value_from_synthetic_pointer): Update.
4943 (coerced_pieced_ref): Update.
4944 (class symbol_needs_eval_context) <dwarf_call,
4945 dwarf_variable_value>: Update.
4946 (dwarf2_compile_expr_to_ax): Update.
4947
3c3cd3d4
SM
49482020-05-27 Simon Marchi <simon.marchi@efficios.com>
4949
4950 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4951 parameter.
4952 (dwarf2_evaluate_loc_desc_full): Update.
4953
82ca3f51
SM
49542020-05-27 Simon Marchi <simon.marchi@efficios.com>
4955
4956 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4957 parameter.
4958 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4959 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4960 dwarf2_per_objfile parameter.
4961 (decode_debug_loc_dwo_addresses): Likewise.
4962 (dwarf2_find_location_expression): Update.
4963 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4964 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4965 parameter.
4966 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4967 parameter.
4968 (locexpr_describe_location_1): Likewise.
4969 (locexpr_describe_location): Update.
4970
4b167ea1
SM
49712020-05-27 Simon Marchi <simon.marchi@efficios.com>
4972
4973 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4974 Remove.
4975 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4976 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4977 (dwarf2_compile_property_to_c): Update.
4978 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4979 use text offset from objfile.
4980 (locexpr_tracepoint_var_ref): Update.
4981 (locexpr_generate_c_location): Update.
4982 (loclist_describe_location): Update.
4983 (loclist_tracepoint_var_ref): Update.
4984 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4985 dwarf2_per_objfile parameter.
4986 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4987 use text offset from objfile.
4988 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4989
89b07335
SM
49902020-05-27 Simon Marchi <simon.marchi@efficios.com>
4991
4992 * dwarf2/expr.h (struct dwarf_expr_context)
4993 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4994 <offset>: Remove.
4995 <per_objfile>: New member.
4996 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4997 dwarf2_per_objfile parameter. Don't set offset, set
4998 per_objfile.
4999 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5000 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5001 a dwarf2_per_objfile object instead of an offset.
5002 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5003 constructor.
5004 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5005 to dwarf2_expr_executor constructor. Don't set offset.
5006 (dwarf2_fetch_cfa_info): Update.
5007 (struct dwarf2_frame_cache) <text_offset>: Remove.
5008 <per_objfile>: New field.
5009 (dwarf2_frame_cache): Update.
5010 (dwarf2_frame_prev_register): Update.
5011 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5012 <dwarf_evaluate_loc_desc>: Add constructor.
5013 (dwarf2_evaluate_loc_desc_full): Update.
5014 (dwarf2_locexpr_baton_eval): Update.
5015 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5016 Add constructor.
5017 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5018
293e7e51
SM
50192020-05-27 Simon Marchi <simon.marchi@efficios.com>
5020
5021 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5022 addr_sized_int_type>: Move to dwarf2_cu.
5023 <int_type>: Move to dwarf2_per_objfile.
5024 (struct dwarf2_per_objfile) <int_type>: Move here.
5025 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5026 addr_sized_int_type>: Move here.
5027 (read_func_scope): Update.
5028 (read_array_type): Update.
5029 (read_tag_string_type): Update.
5030 (attr_to_dynamic_prop): Update.
5031 (dwarf2_per_cu_data::int_type): Rename to...
5032 (dwarf2_per_objfile::int_type): ... this.
5033 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5034 (dwarf2_cu::addr_sized_int_type): ... this.
5035 (read_subrange_type): Update.
5036 (dwarf2_per_cu_data::addr_type): Rename to...
5037 (dwarf2_cu::addr_type): ... this.
5038 (set_die_type): Update.
5039
64874a40
SM
50402020-05-27 Simon Marchi <simon.marchi@efficios.com>
5041
5042 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5043 data through per_cu->cu.
5044
4ab09049
SM
50452020-05-27 Simon Marchi <simon.marchi@efficios.com>
5046
5047 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5048 dwarf2_per_cu_data parameter fo dwarf2_cu.
5049 (lookup_dwo_type_unit): Likewise.
5050 (read_cutu_die_from_dwo): Likewise.
5051 (lookup_dwo_unit): Likewise.
5052 (open_and_init_dwo_file): Likewise.
5053 (lookup_dwo_cutu): Likewise.
5054 (lookup_dwo_comp_unit): Likewise.
5055 (lookup_dwo_type_unit): Likewise.
5056 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5057 (cutu_reader::cutu_reader): Update.
5058
47b14e86
SM
50592020-05-27 Simon Marchi <simon.marchi@efficios.com>
5060
5061 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5062 parameter.
5063 (process_full_type_unit): Likewise.
5064 (process_queue): Update.
5065
43182c09
SM
50662020-05-27 Simon Marchi <simon.marchi@efficios.com>
5067
5068 * dwarf2/read.c (recursively_compute_inclusions): Add
5069 dwarf2_per_objfile parameter.
5070 (compute_compunit_symtab_includes): Likewise.
5071 (process_cu_includes): Update.
5072
7aa104c4
SM
50732020-05-27 Simon Marchi <simon.marchi@efficios.com>
5074
5075 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5076 parameter.
5077 (create_type_unit_group): Update.
5078 (process_psymtab_comp_unit_reader): Update.
5079 (build_type_psymtabs_reader): Update.
5080
e3beb21d
SM
50812020-05-27 Simon Marchi <simon.marchi@efficios.com>
5082
5083 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5084 object through m_this_cu->cu.
5085
d460f660
SM
50862020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5087
5088 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5089 the info parameter.
5090 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5091
ab432490
SM
50922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5093
5094 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5095 per_objfile parameter.
5096 (load_full_type_unit): Add per_objfile parameter.
5097 (read_signatured_type): Likewise.
5098 (load_full_comp_unit): Likewise.
5099 (load_cu): Likewise.
5100 (dw2_do_instantiate_symtab): Likewise.
5101 (dw2_get_file_names): Likewise.
5102 (dw2_map_symtabs_matching_filename): Update.
5103 (dw_expand_symtabs_matching_file_matcher): Update.
5104 (dw2_map_symbol_filenames): Update.
5105 (process_psymtab_comp_unit): Add per_objfile parameter.
5106 (build_type_psymtabs_1): Update.
5107 (process_skeletonless_type_unit): Update.
5108 (dwarf2_build_psymtabs_hard): Update.
5109 (load_partial_comp_unit): Add per_objfile parameter.
5110 (scan_partial_symbols): Update.
5111 (load_full_comp_unit): Add per_objfile parameter.
5112 (process_imported_unit_die): Update.
5113 (create_cus_hash_table): Update.
5114 (find_partial_die): Update.
5115 (dwarf2_read_addr_index): Update.
5116 (follow_die_offset): Update.
5117 (dwarf2_fetch_die_loc_sect_off): Update.
5118 (dwarf2_fetch_constant_bytes): Update.
5119 (dwarf2_fetch_die_type_sect_off): Update.
5120 (follow_die_sig_1): Update.
5121 (load_full_type_unit): Add per_objfile parameter.
5122 (read_signatured_type): Likewise.
5123
313bad1b
SM
51242020-05-27 Simon Marchi <simon.marchi@efficios.com>
5125
5126 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5127 of objfile_name.
5128
c3699833
SM
51292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5130
5131 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5132 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5133 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5134 field.
5135 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5136 (create_cus_from_index): Update.
5137 (dwarf2_read_gdb_index): Update.
5138 (create_cus_from_debug_names): Update.
5139 (dwarf2_read_debug_names): Update.
5140 (get_abbrev_section_for_cu): Update.
5141 (create_all_comp_units): Update.
5142 (read_attribute_value): Update.
5143 (get_debug_line_section): Update.
5144 * dwarf2/index-cache.c (index_cache::store): Update.
5145 * dwarf2/index-write.c (save_gdb_index_command): Update.
5146 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5147
1859c670
SM
51482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5149
5150 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5151 member.
5152 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5153 dwarf2_per_cu_data::per_bfd.
5154 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5155 (create_type_unit_group): Likewise.
5156 (queue_comp_unit): Remove reference to
5157 per_cu->dwarf2_per_objfile.
5158 (maybe_queue_comp_unit): Likewise.
5159 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5160 (create_cus_hash_table): Assign new field.
5161
5e22e966
SM
51622020-05-27 Simon Marchi <simon.marchi@efficios.com>
5163
5164 * dwarf2/read.c: Replace
5165 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5166 dwarf2_cu->per_objfile throughout.
5167
97a1449a
SM
51682020-05-27 Simon Marchi <simon.marchi@efficios.com>
5169
5170 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5171 parameter, don't use per_cu->dwarf2_per_objfile.
5172 (dw2_instantiate_symtab): Likewise.
5173 (dw2_find_last_source_symtab): Update.
5174 (dw2_map_expand_apply): Update.
5175 (dw2_lookup_symbol): Update.
5176 (dw2_expand_symtabs_for_function): Update.
5177 (dw2_expand_all_symtabs): Update.
5178 (dw2_expand_symtabs_with_fullname): Update.
5179 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5180 don't use per_cu->dwarf2_per_objfile.
5181 (dw2_expand_marked_cus): Update.
5182 (dw2_find_pc_sect_compunit_symtab): Update.
5183 (dw2_debug_names_lookup_symbol): Update.
5184 (dw2_debug_names_expand_symtabs_for_function): Update.
5185 (dw2_debug_names_map_matching_symbols): Update.
5186 (dwarf2_psymtab::expand_psymtab): Update.
5187
9e021579
SM
51882020-05-27 Simon Marchi <simon.marchi@efficios.com>
5189
5190 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5191 <per_objfile>: New member.
5192 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5193 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5194 call to dwarf2_cu.
5195 (cutu_reader::cutu_reader): Update.
5196 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5197
ae090bdb
SM
51982020-05-27 Simon Marchi <simon.marchi@efficios.com>
5199
5200 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5201 struct dwarf2_per_objfile.
5202 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5203 dwarf2_per_bfd.
5204 * dwarf2/read.c (set_die_type): Update.
5205 (get_die_type_at_offset): Update.
5206
af758d11
SM
52072020-05-27 Tom Tromey <tom@tromey.com>
5208 Simon Marchi <simon.marchi@efficios.com>
5209
5210 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5211 method.
5212 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5213 get_symtab, set_symtab>: New methods.
5214 <m_symtabs>: New field.
5215 (struct dwarf2_psymtab): Derive from partial_symtab.
5216 <readin_p, get_compunit_symtab>: Declare methods.
5217 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5218 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5219 New methods.
5220 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5221 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5222 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5223 (dw2_symtab_iter_next, dw2_print_stats)
5224 (dw2_expand_symtabs_with_fullname)
5225 (dw2_expand_symtabs_matching_one)
5226 (dw_expand_symtabs_matching_file_matcher)
5227 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5228 (dw2_debug_names_iterator::next)
5229 (dw2_debug_names_map_matching_symbols)
5230 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5231 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5232 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5233 New methods.
5234 (get_compunit_symtab, process_full_comp_unit)
5235 (process_full_type_unit): Update.
5236 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5237
5989a64e
SM
52382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5239
5240 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5241 then introduce a new dwarf2_per_objfile type.
5242 <read_line_string>: Move to the new dwarf2_per_objfile type.
5243 <objfile>: Likewise.
5244 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5245 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5246 dwarf2_per_objfile->per_bfd.
5247 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5248 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5249 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5250 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5251 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5252 (dwarf2_per_objfile::locate_sections): Rename to...
5253 (dwarf2_per_bfd::locate_sections): ... this.
5254 (dwarf2_per_objfile::get_cutu): Rename to...
5255 (dwarf2_per_bfd::get_cutu): ... this.
5256 (dwarf2_per_objfile::get_cu): Rename to...
5257 (dwarf2_per_bfd::get_cu): ... this.
5258 (dwarf2_per_objfile::get_tu): Rename to...
5259 (dwarf2_per_bfd::get_tu): ... this.
5260 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5261 (dwarf2_per_bfd::allocate_per_cu): ... this.
5262 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5263 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5264 (get_gdb_index_contents_ftype): Change parameter from
5265 dwarf2_per_objfile to dwarf2_per_bfd.
5266 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5267 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5268
a50264ba
TT
52692020-05-27 Tom Tromey <tom@tromey.com>
5270 Simon Marchi <simon.marchi@efficios.com>
5271
5272 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5273 (allocate_piece_closure): Set "per_objfile" member.
5274 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5275 (locexpr_describe_location, loclist_describe_location): Use new
5276 member.
5277 * dwarf2/read.c (read_call_site_scope)
5278 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5279 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5280 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5281 handle_data_member_location): Set per_objfile member.
5282 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5283 member.
5284 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5285
d3473f0c
TT
52862020-05-27 Tom Tromey <tom@tromey.com>
5287
5288 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5289 allocate_signatured_type>: Declare new methods.
5290 <m_num_psymtabs>: New member.
5291 (struct dwarf2_per_cu_data) <index>: New member.
5292 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5293 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5294 (create_cu_from_index_list): Use allocate_per_cu.
5295 (create_signatured_type_table_from_index)
5296 (create_signatured_type_table_from_debug_names)
5297 (create_debug_type_hash_table, add_type_unit)
5298 (read_comp_units_from_section): Use allocate_signatured_type.
5299
5717c425
TT
53002020-05-27 Tom Tromey <tom@tromey.com>
5301
5302 * psymtab.c (partial_map_expand_apply)
5303 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5304 (psym_lookup_global_symbol_language)
5305 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5306 (psym_print_stats, psym_expand_symtabs_for_function)
5307 (psym_map_symbol_filenames, psym_map_matching_symbols)
5308 (psym_expand_symtabs_matching)
5309 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5310 (maintenance_check_psymtabs): Update.
5311 * psympriv.h (struct partial_symtab) <readin_p,
5312 get_compunit_symtab>: Add objfile parameter.
5313 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5314 Likewise.
5315 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5316 get_compunit_symtab>: Likewise.
5317 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5318
45940949
TT
53192020-05-27 Tom Tromey <tom@tromey.com>
5320
5321 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5322 member.
5323 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5324 (create_cu_from_index_list)
5325 (create_signatured_type_table_from_index)
5326 (create_signatured_type_table_from_debug_names)
5327 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5328 (dwarf2_create_include_psymtab)
5329 (create_debug_type_hash_table, add_type_unit)
5330 (create_type_unit_group, read_comp_units_from_section)
5331 (dwarf2_compute_name, create_cus_hash_table)
5332 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5333 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5334 obstack.
5335 (dw2_get_real_path): Likewise. Change argument to
5336 dwarf2_per_objfile.
5337
f8c6d152
LM
53382020-05-27 Luis Machado <luis.machado@linaro.org>
5339
5340 PR tdep/26000
5341 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5342 for ldrd (immediate).
5343
e98d2e6d
PW
53442020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5345
5346 * command.h: Add comment giving the name of class_tui.
5347 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5348 create the fake command for the help for class_tui.
5349
53a47a3e
TT
53502020-05-26 Tom Tromey <tromey@adacore.com>
5351
5352 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5353 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5354 (val_atr): New function.
5355 (value_val_atr): Use it.
5356 * ada-valprint.c (print_optional_low_bound): Change low bound
5357 handling for enums.
5358 (val_print_packed_array_elements): Don't call discrete_position.
5359 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5360 discrete_position for enum types.
5361 * language.c (default_print_array_index): Change type.
5362 * language.h (struct language_defn) <la_print_array_index>: Add
5363 index_type parameter, change type of index_value.
5364 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5365 (default_print_array_index): Update.
5366 * valprint.c (maybe_print_array_index): Don't call
5367 value_from_longest. Update.
5368 (value_print_array_elements): Don't call discrete_position.
5369
0bc2354b
TT
53702020-05-26 Tom Tromey <tromey@adacore.com>
5371
5372 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5373 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5374
1218a4bf
CDA
53752020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5376
5377 PR gdb/13519
5378 * avr-tdep.c (avr_integer_to_address): Return data or code
5379 address accordingly to the second 'type' argument of the
5380 function.
5381
92651b1d
MW
53822020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5383
5384 * infcmd.c, inferior.h: (construct_inferior_arguments):
5385 Moved function from here to gdbsupport/common-inferior.{h,cc}
5386
0a4f5f8c
TT
53872020-05-23 Tom Tromey <tom@tromey.com>
5388
5389 Revert commit eca1f90c:
5390 * NEWS: Remove entry for completion styling.
5391 * completer.c (_rl_completion_prefix_display_length): Move
5392 declaration later.
5393 (gdb_fnprint): Revert.
5394 (gdb_display_match_list_1): Likewise.
5395 * cli/cli-style.c (completion_prefix_style)
5396 (completion_difference_style, completion_suffix_style): Remove.
5397 (_initialize_cli_style): Revert.
5398 * cli/cli-style.h (completion_prefix_style)
5399 (completion_difference_style, completion_suffix_style): Don't
5400 declare.
5401
e08bd6c5
PA
54022020-05-24 Pedro Alves <palves@redhat.com>
5403
5404 * symtab.c (completion_list_add_name): Return boolean indication
5405 of whether the symbol matched.
5406 (completion_list_add_symbol): Don't try to remove C++ aliases if
5407 the symbol didn't match in the first place.
5408 * symtab.h (completion_list_add_name): Return bool.
5409
ceacbf6e
SM
54102020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5411
5412 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5413 type::field.
5414
26f16254
JB
54152020-05-23 Joel Brobecker <brobecker@adacore.com>
5416
5417 GDB 9.2 released.
5418
eca1f90c
TT
54192020-05-23 Tom Tromey <tom@tromey.com>
5420
5421 * NEWS: Add entry for completion styling.
5422 * completer.c (_rl_completion_prefix_display_length): Move
5423 declaration earlier.
5424 (gdb_fnprint): Use completion_style.
5425 (gdb_display_match_list_1): Likewise.
5426 * cli/cli-style.c (completion_prefix_style)
5427 (completion_difference_style, completion_suffix_style): New
5428 globals.
5429 (_initialize_cli_style): Register new globals.
5430 * cli/cli-style.h (completion_prefix_style)
5431 (completion_difference_style, completion_suffix_style): Declare.
5432
51e2cfa2
PA
54332020-05-23 Pedro Alves <palves@redhat.com>
5434
5435 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5436 (parse_escape): Use ISDIGIT instead of isdigit.
5437 (puts_debug): Use gdb_isprint instead of isprint.
5438 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5439 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5440 ISSPACE instead of isspace.
5441 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5442 instead of isspace.
5443 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5444 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5445 instead of isxdigit and ISDIGIT instead of isdigit.
5446
80fc5e77
SM
54472020-05-22 Simon Marchi <simon.marchi@efficios.com>
5448
5449 * gdbtypes.h (struct type) <field>: New method.
5450 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5451 or type::field.
5452
3cabb6b0
SM
54532020-05-22 Simon Marchi <simon.marchi@efficios.com>
5454
5455 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5456 (TYPE_FIELDS): Use type::fields. Change all call sites that
5457 modify the propery to use type::set_fields instead.
5458
1f704f76
SM
54592020-05-22 Simon Marchi <simon.marchi@efficios.com>
5460
5461 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5462 type::num_fields instead.
5463
5e33d5f4
SM
54642020-05-22 Simon Marchi <simon.marchi@efficios.com>
5465
5466 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5467 methods.
5468 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5469 that modify the number of fields to use type::set_num_fields
5470 instead.
5471
9392ebb3
TT
54722020-05-22 Tom Tromey <tromey@adacore.com>
5473
5474 * compile/compile-object-load.h (munmap_list_free): Don't
5475 declare.
5476
7c13f4e8
AB
54772020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5478
5479 * annotate.c (annotate_source_line): Update return type, add call
5480 to update current symtab and line.
5481 * annotate.h (annotate_source_line): Update return type, and
5482 extend header comment.
5483 * source.c (info_line_command): Check annotation_level before
5484 calling annotate_source_line.
5485 * stack.c (print_frame_info): If calling annotate_source_line
5486 returns true, then don't print any other source line information.
5487
aa370940
SM
54882020-05-21 Simon Marchi <simon.marchi@efficios.com>
5489
5490 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5491
84d53fa9
SM
54922020-05-21 Simon Marchi <simon.marchi@efficios.com>
5493
5494 * coffread.c (patch_type): Remove NULL check before xfree.
5495 * corefile.c (set_gnutarget): Likewise.
5496 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5497 * exec.c (build_section_table): Likewise.
5498 * remote.c (remote_target::pass_signals): Likewise.
5499 * utils.c (n_spaces): Likewise.
5500 * cli/cli-script.c (document_command): Likewise.
5501 * i386-windows-tdep.c (core_process_module_section): Likewise.
5502 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5503
9d428aae
SM
55042020-05-20 Simon Marchi <simon.marchi@efficios.com>
5505
5506 * symfile.c (reread_symbols): Clear objfile's section_offsets
5507 vector and section indices, re-compute them by calling
5508 sym_offsets.
5509
250106a7
TT
55102020-05-20 Tom Tromey <tromey@adacore.com>
5511
5512 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 5513 (desc_one_bound, desc_index_type): Compute field name.
250106a7 5514
9a0bacfb
TV
55152020-05-20 Tom de Vries <tdevries@suse.de>
5516
5517 PR symtab/25833
5518 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5519
7b958a48
AM
55202020-05-20 Alan Modra <amodra@gmail.com>
5521
5522 PR 25993
5523 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5524 bfd_set_filename.
5525 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5526 passed to bfd_set_filename.
5527 * symfile-mem.c (add_vsyscall_page): Likewise for string
5528 passed to symbol_file_add_from_memory.
5529 (symbol_file_add_from_memory): Make name param a const char* and
5530 don't strdup.
5531
c7e97679
AM
55322020-05-20 Alan Modra <amodra@gmail.com>
5533
5534 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5535 rather than accessing bfd->filename directly.
5536 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5537 and use bfd_section_name.
5538 * dwarf2/frame.c (decode_frame_entry): Likewise.
5539 * exec.c (exec_set_section_address): Likewise.
5540 * solib-aix.c (solib_aix_bfd_open): Likewise.
5541 * stap-probe.c (get_stap_base_address): Likewise.
5542 * symfile.c (reread_symbols): Likewise.
5543
563c591b
TT
55442020-05-19 Tom Tromey <tromey@adacore.com>
5545
5546 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5547
f408d82c
SM
55482020-05-19 Simon Marchi <simon.marchi@efficios.com>
5549
5550 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5551
98c59b52
PA
55522020-05-19 Pedro Alves <palves@redhat.com>
5553
5554 * NEWS (set exec-file-mismatch): Adjust entry.
5555 * exec.c: Include "build-id.h".
5556 (validate_exec_file): Try to match build IDs instead of filenames.
5557 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5558 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5559 and pass down 'warn_if_slow'.
5560 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5561 gdb_bfd_open_closure to pass it down.
5562 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5563
4111f652
PA
55642020-05-19 Pedro Alves <palves@redhat.com>
5565
5566 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5567 * target.c (target_fileio_open_1): Rename to target_fileio_open
5568 and make extern. Use bool.
5569 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5570 (target_fileio_read_alloc_1): Adjust.
5571 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5572 (target_fileio_open_warn_if_slow): Delete declaration.
5573
ad80db5b
PA
55742020-05-19 Pedro Alves <palves@redhat.com>
5575
5576 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5577 Adjust all callers.
5578
1d6ce4d3
YS
55792020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5580
5581 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5582 whether disp is negative.
5583
9005fbbb
SM
55842020-05-19 Simon Marchi <simon.marchi@efficios.com>
5585
5586 * symfile.h (struct symfile_segment_data)
5587 <~symfile_segment_data>: Remove.
5588 <segment_info>: Change to std::vector.
5589 * symfile.c (default_symfile_segments): Update.
5590 * elfread.c (elf_symfile_segments): Update.
5591
68b888ff
SM
55922020-05-19 Simon Marchi <simon.marchi@efficios.com>
5593
5594 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5595 <segments>: New.
5596 <segment_bases, segment_sizes>: Remove.
5597 * symfile.c (default_symfile_segments): Update.
5598 * elfread.c (elf_symfile_segments): Update.
5599 * remote.c (remote_target::get_offsets): Update.
5600 * solib-target.c (solib_target_relocate_section_addresses):
5601 Update.
5602
62982abd
SM
56032020-05-19 Simon Marchi <simon.marchi@efficios.com>
5604
5605 * symfile.h (struct symfile_segment_data): Initialize fields.
5606 <~symfile_segment_data>: Add.
5607 (symfile_segment_data_up): New.
5608 (struct sym_fns) <sym_segments>: Return a
5609 symfile_segment_data_up.
5610 (default_symfile_segments): Return a symfile_segment_data_up.
5611 (free_symfile_segment_data): Remove.
5612 (get_symfile_segment_data): Return a symfile_segment_data_up.
5613 * symfile.c (default_symfile_segments): Likewise.
5614 (get_symfile_segment_data): Likewise.
5615 (free_symfile_segment_data): Remove.
5616 (symfile_find_segment_sections): Update.
5617 * elfread.c (elf_symfile_segments): Return a
5618 symfile_segment_data_up.
5619 * remote.c (remote_target::get_offsets): Update.
5620 * solib-target.c (solib_target_relocate_section_addresses):
5621 Update.
5622 * symfile-debug.c (debug_sym_segments): Return a
5623 symfile_segment_data_up.
5624
7f204339
RO
56252020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5626
e52a0f1b
RO
5627 PR build/25981
5628 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5629 Hardcode register numbers.
5630
7f204339
RO
5631 PR build/25981
5632 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5633 procfs_find_LDT_entry): Remove.
5634 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5635 procfs_find_LDT_entry): Remove.
5636 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5637 Remove.
5638
7f32a4d5
PA
56392020-05-17 Pedro Alves <palves@redhat.com>
5640 Andrew Burgess <andrew.burgess@embecosm.com>
5641 Keno Fischer <keno@juliacomputing.com>
5642
5643 PR gdb/25741
5644 * breakpoint.c (build_target_condition_list): Update comments.
5645 (build_target_command_list): Update comments and skip matching
5646 locations.
5647 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5648 a separate function. Simplify "set breakpoint auto-hw off"
5649 handling.
5650 (insert_breakpoints): Update comment.
5651 (tracepoint_locations_match): New parameter. For breakpoints,
5652 compare location types too, if the caller wants to.
5653 (handle_automatic_hardware_breakpoints): New functions.
5654 (bp_location_is_less_than): Also sort by location type and
5655 hardware breakpoint length.
5656 (update_global_location_list): Handle "set breakpoint auto-hw on"
5657 here.
5658 (update_breakpoint_locations): Ask breakpoint_locations_match to
5659 ignore location types.
5660
7d93a1e0
SM
56612020-05-16 Simon Marchi <simon.marchi@efficios.com>
5662
5663 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5664 type::name instead.
5665
d0e39ea2
SM
56662020-05-16 Simon Marchi <simon.marchi@efficios.com>
5667
5668 * gdbtypes.h (struct type) <name, set_name>: New methods.
5669 (TYPE_CODE): Use type::name. Change all call sites used to set
5670 the name to use type::set_name instead.
5671
2dab0c7b
TT
56722020-05-16 Tom Tromey <tom@tromey.com>
5673
5674 * top.c (quit_force): Update.
5675 * infrun.c (handle_no_resumed): Update.
5676 * top.h (all_uis): New function.
5677 (ALL_UIS): Remove.
5678
59f7bd8d
SM
56792020-05-16 Simon Marchi <simon.marchi@efficios.com>
5680
5681 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5682
9bf058f0
PA
56832020-05-16 Pedro Alves <palves@redhat.com>
5684
5685 * ia64-linux-nat.c
5686 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5687 Declare method.
5688 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5689
8f86ae1a
SM
56902020-05-15 Simon Marchi <simon.marchi@efficios.com>
5691
5692 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5693 (sparc64_adi_info): Likewise.
5694
d6bc0792
TT
56952020-05-15 Tom Tromey <tom@tromey.com>
5696
5697 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5698 block_objfile.
5699 (lookup_objfile_from_block): Remove.
5700 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5701 (lookup_global_symbol): Use block_objfile.
5702 * symtab.h (lookup_objfile_from_block): Don't declare.
5703 * printcmd.c (clear_dangling_display_expressions): Use
5704 block_objfile.
5705 * parse.c (operator_check_standard): Use block_objfile.
5706
8c14c3a3
TT
57072020-05-15 Tom Tromey <tom@tromey.com>
5708
5709 * language.c (language_alloc_type_symbol): Set
5710 SYMBOL_SECTION.
5711 * symtab.c (initialize_objfile_symbol): Remove.
5712 (allocate_symbol): Remove.
5713 (allocate_template_symbol): Remove.
5714 * dwarf2/read.c (fixup_go_packaging): Use "new".
5715 (new_symbol): Use "new".
5716 (read_variable): Don't call initialize_objfile_symbol. Use
5717 "new".
5718 (read_func_scope): Use "new".
5719 * xcoffread.c (process_xcoff_symbol): Don't call
5720 initialize_objfile_symbol.
5721 (SYMBOL_DUP): Remove.
5722 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5723 "new".
5724 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5725 (allocate_template_symbol): Don't declare.
5726 (struct symbol): Add copy constructor. Change defaults.
5727 * jit.c (finalize_symtab): Use "new".
5728 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5729 Use "new".
5730 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5731 (common_block_end): Use "new".
5732 * mdebugread.c (parse_symbol): Use "new".
5733 (new_symbol): Likewise.
5734
5b4a1a8d
PW
57352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5736
5737 * NEWS: Mention changes to help and apropos.
5738
57b4f16e
PW
57392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5740
5741 * command.h (enum command_class): Improve comments, document
5742 that class_alias is for user-defined aliases, give the class
5743 name for each class, remove unused class_xdb.
5744 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5745 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5746 by a precise class.
5747 * infcmd.c (_initialize_infcmd): Likewise.
5748 * reverse.c (_initialize_reverse): Likewise.
5749 * stack.c (_initialize_stack): Likewise.
5750 * symfile.c (_initialize_symfile): Likewise.
5751 * tracepoint.c (_initialize_tracepoint): Likewise.
5752
7c05caf7
PW
57532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5754
5755 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5756 when their aliased command is traversed.
5757 (help_cmd): Add fput_command_names_styled call to
5758 output command name and aliases when command has an alias.
5759
3b3aaacb
PW
57602020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5761
5762 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5763 * cli/cli-decode.c (help_cmd_list): Declare as static,
5764 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5765 a command together with the command.
5766 (fput_command_name_styled, fput_command_names_styled): New functions.
5767 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5768 fput_command_name_styled.
5769 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5770 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5771
7aa1b46f
PW
57722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5773
5774 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5775 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5776 * command.h (cmd_show_list): Likewise.
5777 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5778 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5779
89bcba74
PW
57802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5781
5782 * unittests/command-def-selftests.c (traverse_command_structure):
5783 Verify all commands of a list have the same prefix command and
5784 that only the top cmdlist commands have a null prefix.
5785
3f4d92eb
PW
57862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5787
5788 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5789 as prefix, not one of its aliases.
5790 (set_cmd_prefix): Remove.
5791 (do_add_cmd): Centralize the setting of the prefix of a command, when
5792 command is defined after its full chain of prefix commands.
5793 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5794 (add_setshow_cmd_full): Likewise.
5795 (update_prefix_field_of_prefixed_commands): New function.
5796 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5797 update_prefix_field_of_prefixed_commands.
5798 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5799 addresses of remote_set_cmdlist and remote_show_cmdlist given
5800 as argument, not the address of an argument.
5801 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5802 * gdb/remote.c (_initialize_remote): Likewise.
5803
0605465f
PW
58042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5805
5806 * cli/cli-cmds.c (alias_command): Check for an existing alias
5807 using lookup_cmd_composition, as valid_command_p is too strict
5808 and forbids aliases that are the prefix of an existing alias
5809 or command.
5810 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5811 command is properly recognised as a valid command.
5812
58e6ac70
PW
58132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5814
5815 * unittests/help-doc-selftests.c: Rename to
5816 unittests/command-def-selftests.c
5817 * unittests/command-def-selftests.c (help_doc_tests): Update some
5818 comments.
5819 (command_structure_tests, traverse_command_structure): New namespace
5820 and function.
5821 (command_structure_invariants_tests): New function.
5822 (_initialize_command_def_selftests) Renamed from
5823 _initialize_help_doc_selftests, register command_structure_invariants
5824 selftest.
5825
a7b9ceb8
PW
58262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5827
5828 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5829 an alias of 'show'.
5830
b2188a06
JB
58312020-05-15 Joel Brobecker <brobecker@adacore.com>
5832
5833 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5834 ada_is_fixed_point_type. Update all callers.
5835 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5836 all callers.
5837 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5838 Update all callers.
5839 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5840 print_fixed_point_type. Update all callers.
5841 * ada-valprint.c (ada_value_print_num): Replace call to
5842 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5843
a51951c2
KB
58442020-05-14 Kevin Buettner <kevinb@redhat.com>
5845
5846 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5847 processors.
5848 (cpu_supports_bts): Add CV_AMD case.
5849
29d6859f
LM
58502020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5851 Simon Marchi <simon.marchi@efficios.com>
5852
5853 * infrun.c (stop_all_threads): Collect multiple wait events at
5854 each pass.
5855
78134374
SM
58562020-05-14 Simon Marchi <simon.marchi@efficios.com>
5857
5858 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5859 type::code instead.
5860
67607e24
SM
58612020-05-14 Simon Marchi <simon.marchi@efficios.com>
5862
5863 * gdbtypes.h (struct type) <code, set_code>: New methods.
5864 (TYPE_CODE): Use type::code. Change all call sites used to set
5865 the code to use type::set_code instead.
5866
a05575d3
TBA
58672020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5868 Tom de Vries <tdevries@suse.de>
5869 Pedro Alves <palves@redhat.com>
5870
5871 PR threads/25478
5872 * infrun.c (stop_all_threads): Do NOT ignore
5873 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5874 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5875 received.
5876 (handle_no_resumed): Remove code handling a live inferior with no
5877 threads.
5878 * remote.c (has_single_non_exited_thread): New.
5879 (remote_target::update_thread_list): Do not delete a thread if is
5880 the last thread of the process.
5881 * thread.c (thread_select): Call delete_exited_threads instead of
5882 prune_threads.
5883
6ad82919
TBA
58842020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5885
5886 * infrun.c (stop_all_threads): Enable/disable thread events of all
5887 targets. Move a debug message denoting the end of the function
5888 into the SCOPED_EXIT block.
5889
d890404b
TBA
58902020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5891
5892 * process-stratum-target.h: Include <set>.
5893 (all_non_exited_process_targets, switch_to_target_no_thread): New
5894 function declarations.
5895 * process-stratum-target.c (all_non_exited_process_targets)
5896 (switch_to_target_no_thread): New function implementations.
5897
293b3ebc
TBA
58982020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5899
5900 * infrun.c (handle_inferior_event): Extract out a piece of code
5901 into...
5902 (mark_non_executing_threads): ...this new function.
5903
7ca9b62a
TBA
59042020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5905
5906 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5907 use.
5908
fc75c28b
TBA
59092020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5910
5911 * regcache.c (regcache_read_pc_protected): New function
5912 implementation that returns 0 if the PC cannot read via
5913 'regcache_read_pc'.
5914 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5915 instead of 'regcache_read_pc'.
5916 (keep_going_pass_signal): Ditto.
5917
a89febbd
TT
59182020-05-13 Tom Tromey <tromey@adacore.com>
5919
5920 * ada-lang.c (align_value): Remove.
5921 (ada_template_to_fixed_record_type_1): Use align_up.
5922
f7e23710
TBA
59232020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5924
5925 * async-event.c: Update the copyright year.
5926 * async-event.h: Update the copyright year.
5927
02ff80c2
SM
59282020-05-12 Simon Marchi <simon.marchi@efficios.com>
5929
5930 * objfiles.h (is_addr_in_objfile,
5931 shared_objfile_contains_address_p): Return bool.
5932 * objfile.c (is_addr_in_objfile,
5933 shared_objfile_contains_address_p): Return bool.
5934
4fd6c7e8
TT
59352020-05-11 Tom Tromey <tromey@adacore.com>
5936
5937 * cli/cli-cmds.c (info_command): Restore.
5938 (_initialize_cli_cmds): Use add_prefix_command for "info".
5939 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5940
5eb68a39
TT
59412020-05-11 Tom Tromey <tromey@adacore.com>
5942
5943 * ada-lang.c (ada_value_primitive_field): Now public.
5944 * ada-lang.h (ada_value_primitive_field): Declare.
5945 * ada-valprint.c (print_field_values): Use
5946 ada_value_primitive_field for wrapper fields.
5947
7666722f
TV
59482020-05-11 Tom de Vries <tdevries@suse.de>
5949
5950 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5951 MODULE_DOMAIN.
5952
3ee6bb11
TV
59532020-05-11 Tom de Vries <tdevries@suse.de>
5954
5955 PR symtab/25941
5956 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5957 with length 0, if not gdb-produced.
5958 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5959
43434996
TV
59602020-05-09 Tom de Vries <tdevries@suse.de>
5961
5962 PR gdb/25955
5963 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5964 calculation.
5965
2f78cffc
TT
59662020-05-09 Tom Tromey <tom@tromey.com>
5967
5968 * top.c (server_command): Now bool.
5969 * top.h (server_command): Now bool.
5970
4f7bc5ed
TT
59712020-05-08 Tom Tromey <tromey@adacore.com>
5972
5973 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5974 already being processed.
5975
8be4b118
TT
59762020-05-08 Tom Tromey <tom@tromey.com>
5977
5978 * printcmd.c (struct display) <next>: Remove.
5979 <display>: New constructor.
5980 <exp_string>: Now a std::string.
5981 <enabled_p>: Now a bool.
5982 (display_number): Move definition earlier.
5983 (displays): Rename from display_chain. Now a std::vector.
5984 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5985 (display_command): Update.
5986 (do_one_display, disable_display)
5987 (enable_disable_display_command, do_enable_disable_display):
5988 Update.
5989 (free_display): Remove.
5990 (clear_displays): Rewrite.
5991 (delete_display): Update.
5992 (map_display_numbers): Use function_view. Remove "data"
5993 parameter. Update.
5994 (do_delete_display): Remove.
5995 (undisplay_command): Update.
5996 (do_one_display, do_displays, disable_display)
5997 (info_display_command): Update.
5998 (do_enable_disable_display): Remove.
5999 (enable_disable_display_command)
6000 (clear_dangling_display_expressions): Update.
6001
94c93c35
TT
60022020-05-08 Tom Tromey <tom@tromey.com>
6003
6004 * symtab.c (set_symbol_cache_size)
6005 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6006 (maintenance_print_symbol_cache_statistics): Update.
6007 * symmisc.c (print_symbol_bcache_statistics)
6008 (print_objfile_statistics, maintenance_print_objfiles)
6009 (maintenance_info_symtabs, maintenance_check_symtabs)
6010 (maintenance_expand_symtabs, maintenance_info_line_tables):
6011 Update.
6012 * symfile-debug.c (set_debug_symfile): Update.
6013 * source.c (forget_cached_source_info): Update.
6014 * python/python.c (gdbpy_progspaces): Update.
6015 * psymtab.c (maintenance_info_psymtabs): Update.
6016 * probe.c (parse_probes): Update.
6017 * linespec.c (iterate_over_all_matching_symtabs)
6018 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6019 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6020 * exec.c (exec_target::close): Update.
6021 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6022 * breakpoint.c (print_one_breakpoint_location)
6023 (create_longjmp_master_breakpoint)
6024 (create_std_terminate_master_breakpoint): Update.
6025 * progspace.c (program_spaces): Now a std::vector.
6026 (maybe_new_address_space): Update.
6027 (add_program_space): Remove.
6028 (program_space::program_space): Update.
6029 (remove_program_space): Update.
6030 (number_of_program_spaces): Remove.
6031 (print_program_space, update_address_spaces): Update.
6032 * progspace.h (program_spaces): Change type.
6033 (ALL_PSPACES): Remove.
6034 (number_of_program_spaces): Don't declare.
6035 (struct program_space) <next>: Remove.
6036
a1fd1ac9
TT
60372020-05-08 Tom Tromey <tom@tromey.com>
6038
6039 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6040 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6041 (enable_break): Update.
6042 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6043 (frv_fdpic_find_canonical_descriptor): Update.
6044 (frv_fetch_objfile_link_map): Update.
6045 * progspace.c (program_space::free_all_objfiles): Update.
6046 (program_space::solibs): New method.
6047 * progspace.h (struct program_space) <solibs>: New method.
6048 * solist.h (master_so_list): Don't declare.
6049 (ALL_SO_LIBS): Remove.
6050 * solib.h (so_list_head): Remove.
6051 (update_solib_list): Update comment.
6052 * solib.c (master_so_list): Remove.
6053 (solib_used, update_solib_list, solib_add)
6054 (info_sharedlibrary_command, clear_solib)
6055 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6056
38eae084
TT
60572020-05-08 Tom Tromey <tom@tromey.com>
6058
6059 * extension.c (extension_languages): Now a std::array.
6060 (ALL_EXTENSION_LANGUAGES): Remove.
6061 (get_ext_lang_defn, get_ext_lang_of_file)
6062 (eval_ext_lang_from_control_command): Update.
6063 (finish_ext_lang_initialization)
6064 (auto_load_ext_lang_scripts_for_objfile)
6065 (ext_lang_type_printers::ext_lang_type_printers)
6066 (apply_ext_lang_type_printers)
6067 (ext_lang_type_printers::~ext_lang_type_printers)
6068 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6069 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6070 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6071 (get_matching_xmethod_workers, ext_lang_colorize)
6072 (ext_lang_before_prompt): Update.
6073 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6074
596dc4ad
TT
60752020-05-08 Tom Tromey <tom@tromey.com>
6076
6077 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6078 overload.
6079 <swap_string, m_string>: Remove.
6080 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6081 Update.
6082 * stabsread.c (define_symbol, read_type): Update.
6083 * linespec.c (find_linespec_symbols): Update.
6084 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6085 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6086 * dbxread.c (read_dbx_symtab): Update.
6087 * cp-support.h (cp_canonicalize_string_full)
6088 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6089 Return unique_xmalloc_ptr.
6090 * cp-support.c (inspect_type): Update.
6091 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6092 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6093 Likewise.
6094 * c-typeprint.c (print_name_maybe_canonical): Update.
6095 * break-catch-throw.c (check_status_exception_catchpoint):
6096 Update.
6097
bf4cb9be
TV
60982020-05-08 Tom de Vries <tdevries@suse.de>
6099
6100 * infrun.c (follow_fork): Copy current_line and current_symtab to
6101 child thread.
6102
a1b68f28
SM
61032020-05-07 Simon Marchi <simon.marchi@efficios.com>
6104
6105 * async-event.c (struct async_signal_handler, struct
6106 async_event_handler): Reformat, remove typedef.
6107
98d48915
SM
61082020-05-07 Simon Marchi <simon.marchi@efficios.com>
6109
6110 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6111 access thistype->main_type->dyn_prop_list directly.
6112
7aa91313
SM
61132020-05-07 Simon Marchi <simon.marchi@efficios.com>
6114
6115 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6116 (remove_dyn_prop): Remove. Update all users to use
6117 type::remove_dyn_prop.
6118 * gdbtypes.c (remove_dyn_prop): Rename to...
6119 (type::remove_dyn_prop): ... this.
6120
5c54719c
SM
61212020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6122
6123 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6124 (add_dyn_prop): Remove. Update all users to use
6125 type::add_dyn_prop.
6126 * gdbtypes.c (add_dyn_prop): Rename to...
6127 (type::add_dyn_prop): ... this.
6128
24e99c6c
SM
61292020-05-07 Simon Marchi <simon.marchi@efficios.com>
6130
6131 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6132 (get_dyn_prop): Remove. Update all users to use
6133 type::dyn_prop.
6134 * gdbtypes.c (get_dyn_prop): Rename to...
6135 (type::dyn_prop): ... this.
6136
0d4bf016
SM
61372020-05-06 Simon Marchi <simon.marchi@efficios.com>
6138
6139 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6140
ac4a4f1c
SM
61412020-05-06 Simon Marchi <simon.marchi@efficios.com>
6142
6143 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6144 instruction, skip it if it's there.
6145
a3bbacc1
SM
61462020-05-05 Simon Marchi <simon.marchi@efficios.com>
6147
6148 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6149
c3236f84
SM
61502020-05-04 Simon Marchi <simon.marchi@efficios.com>
6151
6152 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6153 * gdbtypes.c (recursive_dump_type): Remove use of
6154 TYPE_INCOMPLETE.
6155
3b6acaee
TT
61562020-05-03 Tom Tromey <tom@tromey.com>
6157
6158 * breakpoint.c (catch_command, tcatch_command): Remove.
6159 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6160 add_show_prefix_cmd.
6161 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6162 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6163 Remove.
6164 (add_internal_problem_command): Use add_basic_prefix_cmd,
6165 add_show_prefix_cmd.
6166 * mips-tdep.c (set_mipsfpu_command): Remove.
6167 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6168 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6169 (_initialize_index_cache): Use add_basic_prefix_cmd.
6170 * memattr.c (dummy_cmd): Remove.
6171 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6172 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6173 (_initialize_tui_win): Use add_basic_prefix_cmd,
6174 add_show_prefix_cmd.
6175 * cli/cli-logging.c (set_logging_command): Remove.
6176 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6177 add_show_prefix_cmd.
6178 (show_logging_command): Remove.
6179 * target.c (target_command): Remove.
6180 (add_target): Use add_basic_prefix_cmd.
6181
a51119cd
HD
61822020-05-02 Hannes Domani <ssbssa@yahoo.de>
6183
6184 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6185
652fc23a 61862020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6187
652fc23a
PW
6188 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6189 info_command.
6190
117539e6
KR
61912020-04-30 Kamil Rytarowski <n54@gmx.com>
6192
6193 * nbsd-nat.c (nbsd_enable_proc_events)
6194 (nbsd_nat_target::post_startup_inferior): Add.
6195 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6196 (nbsd_nat_target::update_thread_list): Rewrite.
6197 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6198 "PTRACE_LWP_CREATE".
6199 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6200
102e38eb 62012020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6202
102e38eb
PW
6203 * stack.c (_initialize_stack): Remove duplicated creation
6204 of "frame" command and "f" alias.
6205
ee9d1e5f
HD
62062020-04-30 Hannes Domani <ssbssa@yahoo.de>
6207
6208 PR gdb/18706
6209 * gdbtypes.c (check_typedef): Calculate size of array of
6210 stubbed type.
6211
627c7fb8
HD
62122020-04-30 Hannes Domani <ssbssa@yahoo.de>
6213
6214 PR gdb/15559
6215 * i386-tdep.c (i386_push_dummy_call): Call
6216 i386_thiscall_push_dummy_call.
6217 (i386_thiscall_push_dummy_call): New function.
6218 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6219 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6220 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6221
ffc2844e
SM
62222020-04-29 Simon Marchi <simon.marchi@efficios.com>
6223
6224 * gdbarch.sh (do_read): Add shellcheck disable directive for
6225 warning SC2162.
6226
1207375d
SM
62272020-04-29 Simon Marchi <simon.marchi@efficios.com>
6228
6229 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6230 "referenced but not assigned" warning.
6231
9fdb2916
SM
62322020-04-29 Simon Marchi <simon.marchi@efficios.com>
6233
6234 * gdbarch.sh: Remove code that sets fallbackdefault.
6235
759cea5e
SM
62362020-04-29 Simon Marchi <simon.marchi@efficios.com>
6237
6238 * gdbarch.sh: Use shell operators && and || instead of
6239 -a and -o.
6240
cb02ab24
SM
62412020-04-29 Simon Marchi <simon.marchi@efficios.com>
6242
6243 * gdbarch.sh: Use $(...) instead of `...`.
6244
a6fc5ffc
SM
62452020-04-29 Simon Marchi <simon.marchi@efficios.com>
6246
6247 * gdbarch.sh: Use double quotes around variables.
6248
8d113d13
SM
62492020-04-29 Simon Marchi <simon.marchi@efficios.com>
6250
6251 * gdbarch.sh: Use %s with printf, instead of variables in the
6252 format string.
6253
ed6acedd
TT
62542020-04-29 Tom Tromey <tromey@adacore.com>
6255
6256 PR ada/25875:
6257 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6258 type fields here.
6259 (read_enumeration_type): Call
6260 update_enumeration_type_from_children later. Update comments.
6261 (process_enumeration_scope): Don't create type fields.
6262
b68b1b58
KR
62632020-04-29 Kamil Rytarowski <n54@gmx.com>
6264
6265 * nbsd-tdep.c: Include "xml-syscall.h".
6266 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6267
f94b2e03
KR
62682020-04-29 Kamil Rytarowski <n54@gmx.com>
6269
6270 * nbsd-nat.c: Include "sys/wait.h".
6271 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6272 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6273 (nbsd_nat_target::remove_exec_catchpoint)
6274 (nbsd_nat_target::set_syscall_catchpoint): Add.
6275 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6276 (nbsd_nat_target::insert_exec_catchpoint)
6277 (nbsd_nat_target::remove_exec_catchpoint)
6278 (nbsd_nat_target::set_syscall_catchpoint): Add.
6279 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6280 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6281 `nbsd_get_syscall_number'.
6282
fc49bc72
TT
62832020-04-29 Tom Tromey <tom@tromey.com>
6284
6285 * stack.c (print_block_frame_labels): Remove.
6286
d642b692
HD
62872020-04-29 Hannes Domani <ssbssa@yahoo.de>
6288
6289 PR gdb/17320
6290 * ada-valprint.c (val_print_packed_array_elements): Move array
6291 end bracket to new line.
6292 (ada_val_print_string): Remove extra spaces before first array
6293 element.
6294 * c-valprint.c (c_value_print_array): Likewise.
6295 * m2-valprint.c (m2_print_array_contents): Likewise.
6296 (m2_value_print_inner): Likewise.
6297 * p-valprint.c (pascal_value_print_inner): Likewise.
6298 * valprint.c (generic_val_print_array): Likewise.
6299 (value_print_array_elements): Move first array element and array
6300 end bracket to new line.
6301
ea90f227
TV
63022020-04-29 Tom de Vries <tdevries@suse.de>
6303
6304 PR symtab/25889
6305 * linespec.c (find_method): Fix ix calculation.
6306
4498ef4f
KR
63072020-04-28 Kamil Rytarowski <n54@gmx.com>
6308
6309 * syscalls/update-netbsd.sh: New file.
6310 * syscalls/netbsd.xml: Regenerate.
6311 * data-directory/Makefile.in: Register `netbsd.xml' in
6312 `SYSCALLS_FILES'.
6313
a55e30b5
SM
63142020-04-28 Simon Marchi <simon.marchi@efficios.com>
6315
6316 * syscalls/update-freebsd.sh: Add double quotes.
6317
2b2fbab8
TT
63182020-04-28 Tom Tromey <tom@tromey.com>
6319
6320 * NEWS: Update.
6321 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6322 (cmdpy_init): Allow class_tui.
6323
a65189c9
TV
63242020-04-28 Mark Williams <mark@myosotissp.com>
6325
6326 PR gdb/24480
6327 * dwarf2read.c: Add missing assingments to list_in_scope when
6328 start_symtab was already called.
6329
1b95cdb7
SM
63302020-04-28 Simon Marchi <simon.marchi@efficios.com>
6331
6332 PR gdb/25881
6333 * dwarf2/read.c (offset_map_type): Use
6334 gdb:hash_enum<sect_offset> as hash function.
6335
15cd93d0
TV
63362020-04-28 Tom de Vries <tdevries@suse.de>
6337
6338 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6339 with DW_AT_signature.
6340
1eb39914
SM
63412020-04-27 Simon Marchi <simon.marchi@efficios.com>
6342
6343 * configure.ac: Remove check for fs_base/gs_base in
6344 user_regs_struct.
6345 * configure: Re-generate.
6346 * config.in: Re-generate.
6347 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6348 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6349 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6350
991a3e2e
LM
63512020-04-27 Luis Machado <luis.machado@linaro.org>
6352
6353 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6354 problematic inline frame unwinding situation.
6355 * frame.c (frame_id_computed_p): New function.
6356 * frame.h (frame_id_computed_p): New prototype.
6357
361ba0e8
TT
63582020-04-26 Tom Tromey <tom@tromey.com>
6359
6360 * command.h (enum command_class) <class_pseudo>: Remove.
6361
bc3609fd
PW
63622020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6363
6364 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6365 and whitespace.
6366
b9771db7
KR
63672020-04-25 Kamil Rytarowski <n54@gmx.com>
6368
ec16513e
SM
6369 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6370 `PT_GET_PROCESS_STATE' block.
b9771db7 6371
7151c1af
TT
63722020-04-24 Tom Tromey <tom@tromey.com>
6373
6374 * symtab.h (symbol_get_demangled_name): Don't declare.
6375 * symtab.c (symbol_get_demangled_name): Remove.
6376 (general_symbol_info::natural_name)
6377 (general_symbol_info::demangled_name): Update.
6378
906bb4c5
TT
63792020-04-24 Tom Tromey <tom@tromey.com>
6380
6381 PR rust/25025:
6382 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6383
bcfe6157
TT
63842020-04-24 Tom Tromey <tom@tromey.com>
6385
6386 PR symtab/12707:
6387 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6388 exists.
6389 (new_symbol): Likewise.
6390 * compile/compile-object-load.c (get_out_value_type): Use
6391 symbol_matches_search_name.
6392
f049a313
TT
63932020-04-24 Tom Tromey <tom@tromey.com>
6394
6395 * dwarf2/read.c (add_partial_symbol): Do not call
6396 compute_and_set_names.
6397
76e288d1
TT
63982020-04-24 Tom Tromey <tom@tromey.com>
6399
6400 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6401 overload.
6402
2467f4f6
TT
64032020-04-24 Tom Tromey <tom@tromey.com>
6404
6405 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6406 (add_psymbol_to_list): New overload. Make old overload call new
6407 one.
6408 * psympriv.h (add_psymbol_to_list): New overload.
6409
e61108c9
TT
64102020-04-24 Tom Tromey <tom@tromey.com>
6411
6412 * dwarf2/read.c (partial_die_info::read) <case
6413 DW_AT_linkage_name>: Use value_as_string.
6414 (dwarf2_string_attr): Use value_as_string.
6415 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6416 method.
6417 * dwarf2/attribute.c (attribute::value_as_string): New method.
6418
8c87a452
TT
64192020-04-24 Tom Tromey <tom@tromey.com>
6420
6421 * symtab.c (general_symbol_info::natural_name)
6422 (general_symbol_info::demangled_name): Check for language_rust.
6423
787de330
TT
64242020-04-24 Tom Tromey <tom@tromey.com>
6425
6426 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6427 (dwarf2_physname): ... from here.
6428 (partial_die_info::read): Add Rust "{" hack.
6429
ff985671
TT
64302020-04-24 Tom Tromey <tom@tromey.com>
6431
6432 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6433 method.
6434 (symbol_set_demangled_name): Don't declare.
6435 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6436 symbol_set_demangled_name.
6437 (general_symbol_info::set_language)
6438 (general_symbol_info::compute_and_set_names): Update.
6439 * minsyms.c (minimal_symbol_reader::install): Update.
6440 * dwarf2/read.c (new_symbol): Update.
6441
1acda803
TT
64422020-04-24 Tom Tromey <tromey@adacore.com>
6443
6444 PR python/23662:
6445 * python/py-type.c (convert_field): Handle
6446 FIELD_LOC_KIND_DWARF_BLOCK.
6447 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6448 (typy_get_dynamic): Nw function.
6449 (type_object_getset): Add "dynamic".
6450 * NEWS: Add entry.
6451
d656f129
TT
64522020-04-24 Tom Tromey <tromey@adacore.com>
6453
6454 * ada-typeprint.c (print_choices, print_variant_part)
6455 (print_record_field_types_dynamic): New functions.
6456 (print_record_field_types): Use print_record_field_types_dynamic.
6457
7d79de9a
TT
64582020-04-24 Tom Tromey <tromey@adacore.com>
6459
6460 * dwarf2/read.c (handle_data_member_location): New overload.
6461 (dwarf2_add_field): Use it.
6462 (decode_locdesc): Add "computed" parameter. Update comment.
6463 * gdbtypes.c (is_dynamic_type_internal): Also look for
6464 FIELD_LOC_KIND_DWARF_BLOCK.
6465 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6466 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6467 virtual base classes.
6468 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6469 FIELD_LOC_KIND_DWARF_BLOCK.
6470
f8e89861
TT
64712020-04-24 Tom Tromey <tromey@adacore.com>
6472
6473 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6474 * gdbtypes.c (is_dynamic_type_internal): Check
6475 TYPE_HAS_DYNAMIC_LENGTH.
6476 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6477 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6478 New macros.
6479 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6480 constant.
6481
9c6a1327
TT
64822020-04-24 Tom Tromey <tromey@adacore.com>
6483
6484 * dwarf2/read.c (struct variant_field): Rewrite.
6485 (struct variant_part_builder): New.
6486 (struct nextfield): Remove "variant" field. Add "offset".
6487 (struct field_info): Add "current_variant_part" and
6488 "variant_parts".
6489 (alloc_discriminant_info): Remove.
6490 (alloc_rust_variant): New function.
6491 (quirk_rust_enum): Update.
6492 (dwarf2_add_field): Set "offset" member. Don't handle
6493 DW_TAG_variant_part.
6494 (offset_map_type): New typedef.
6495 (convert_variant_range, create_one_variant)
6496 (create_one_variant_part, create_variant_parts)
6497 (add_variant_property): New functions.
6498 (dwarf2_attach_fields_to_type): Call add_variant_property.
6499 (read_structure_type): Don't handle DW_TAG_variant_part.
6500 (handle_variant_part, handle_variant): New functions.
6501 (handle_struct_member_die): Use them.
6502 (process_structure_scope): Don't handle variant parts.
6503 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6504 (struct discriminant_info): Remove.
6505 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6506 (struct main_type) <flag_discriminated_union>: Remove.
6507 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6508 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6509 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6510 Update.
6511 * valops.c (value_union_variant): Remove.
6512 * value.h (value_union_variant): Don't declare.
6513
b249d2c2
TT
65142020-04-24 Tom Tromey <tromey@adacore.com>
6515
6516 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6517 (ada_value_primitive_packed_val): Update.
6518 * ada-valprint.c (ada_value_print_1): Update.
6519 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6520 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6521 just an address. Use evaluate_for_locexpr_baton.
6522 (dwarf2_evaluate_property): Update.
6523 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6524 array_view.
6525 * findvar.c (default_read_var_value): Update.
6526 * gdbtypes.c (compute_variant_fields_inner)
6527 (resolve_dynamic_type_internal): Update.
6528 (resolve_dynamic_type): Change type of valaddr parameter.
6529 * gdbtypes.h (resolve_dynamic_type): Update.
6530 * valarith.c (value_subscripted_rvalue): Update.
6531 * value.c (value_from_contents_and_address): Update.
6532
61122aa9
TT
65332020-04-24 Tom Tromey <tromey@adacore.com>
6534
6535 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6536 "push_initial_value" parameter.
6537 (dwarf2_evaluate_property): Likewise.
6538 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6539
ef83a141
TT
65402020-04-24 Tom Tromey <tromey@adacore.com>
6541
6542 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6543 (variant::matches, compute_variant_fields_recurse)
6544 (compute_variant_fields_inner, compute_variant_fields): New
6545 functions.
6546 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6547 Use resolved_type after type is made.
6548 (operator==): Add new cases.
6549 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6550 (struct discriminant_range, struct variant, struct variant_part):
6551 New.
6552 (union dynamic_prop_data) <variant_parts, original_type>: New
6553 members.
6554 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6555 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6556 constants.
6557 * value.c (unpack_bits_as_long): Now public.
6558 * value.h (unpack_bits_as_long): Declare.
6559
675127ec
TT
65602020-04-24 Tom Tromey <tromey@adacore.com>
6561
6562 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6563 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6564
9852ceef
HD
65652020-04-24 Hannes Domani <ssbssa@yahoo.de>
6566
6567 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6568
7632c6ce
KR
65692020-04-24 Kamil Rytarowski <n54@gmx.com>
6570
6571 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6572 (remove_fork_catchpoint, post_startup_inferior)
6573 (post_attach): Move...
6574 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6575 (remove_fork_catchpoint, post_startup_inferior)
6576 (post_attach): ...here.
6577 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6578 (remove_fork_catchpoint, post_startup_inferior)
6579 (post_attach): Move...
6580 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6581 (remove_fork_catchpoint, post_startup_inferior)
6582 (post_attach): ...here.
6583
7be2bb4f
TT
65842020-04-24 Tom Tromey <tromey@adacore.com>
6585
6586 * nat/windows-nat.h (struct windows_thread_info)
6587 <pc_adjusted>: New member.
6588 * windows-nat.c (windows_fetch_one_register): Check
6589 pc_adjusted.
6590 (windows_nat_target::get_windows_debug_event)
6591 (windows_nat_target::wait): Set pc_adjusted.
6592
f80cb3b4
TV
65932020-04-24 Tom de Vries <tdevries@suse.de>
6594
6595 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6596 Run gdb-add-index inside temp dir.
6597
29514b87
TT
65982020-04-23 Tom Tromey <tromey@adacore.com>
6599
6600 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6601 in loop.
6602
5939967b
LM
66032020-04-23 Luis Machado <luis.machado@linaro.org>
6604
6605 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6606 get_frame_register instead of gdbarch_unwind_pc.
6607
70bc38f5
TV
66082020-04-23 Tom de Vries <tdevries@suse.de>
6609
6610 * symtab.c (lookup_global_symbol): Prefer def over decl.
6611
de82891c
TV
66122020-04-23 Tom de Vries <tdevries@suse.de>
6613
6614 PR symtab/25807
6615 * block.c (best_symbol, better_symbol): Promote to external.
6616 * block.h (best_symbol, better_symbol): Declare.
6617 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6618 decl.
6619
ecc6c606
TT
66202020-04-23 Tom Tromey <tromey@adacore.com>
6621
6622 PR ada/25837:
6623 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6624 "const char *", not a "const std::string &".
6625 <name_and_matcher::operator==>: Update.
6626 * unittests/lookup_name_info-selftests.c: Change type of
6627 "result".
6628
740480b8
TT
66292020-04-23 Tom Tromey <tom@tromey.com>
6630
6631 * inferior.h (iterate_over_inferiors): Don't declare.
6632 * inferior.c (iterate_over_inferiors): Remove.
6633 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6634 Remove.
6635 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6636 use iterate_over_inferiors.
6637 (darwin_resume_inferior_it)
6638 (struct resume_inferior_threads_param)
6639 (darwin_resume_inferior_threads_it): Remove.
6640 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6641
ae3ab1f0
TV
66422020-04-23 Tom de Vries <tdevries@suse.de>
6643
6644 * blockframe.c (find_pc_partial_function): Use
6645 find_pc_sect_compunit_symtab rather than
6646 objfile->sf->qf->find_pc_sect_compunit_symtab.
6647
317d2668
TV
66482020-04-22 Tom de Vries <tdevries@suse.de>
6649
6650 PR symtab/25764
6651 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6652 in psymtabs.
6653
eea9e357
TV
66542020-04-22 Tom de Vries <tdevries@suse.de>
6655
6656 PR symtab/25801
6657 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6658 symtabs.
6659
3d5afab3
TV
66602020-04-22 Tom de Vries <tdevries@suse.de>
6661
6662 PR symtab/25700
6663 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6664 CU if already created.
6665
d43b7a2d
TBA
66662020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6667
6668 * infrun.c (displaced_step_fixup): Switch to the event_thread
6669 before calling displaced_step_restore, not after.
6670
d89edf9b
MM
66712020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6672
6673 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6674 its inferior is not recorded by us.
6675 (record_btrace_target_open): Replace call to
6676 all_non_exited_threads () with call to current_inferior
6677 ()->non_exited_threads ().
6678 (record_btrace_target::stop_recording): Likewise.
6679 (record_btrace_target::close): Likewise.
6680 (record_btrace_target::wait): Likewise.
6681 (record_btrace_target::record_stop_replaying): Likewise.
6682
5897fd49
MM
66832020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6684
6685 * btrace.c (btrace_enable): Throw an error on double enables and
6686 when enabling recording fails.
6687 (btrace_disable): Throw an error if the thread is not recorded.
6688
1a476b6d
MM
66892020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6690
6691 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6692 request if we do not have a thread_info.
6693
4778a5f8
TV
66942020-04-21 Tom de Vries <tdevries@suse.de>
6695
6696 PR gdb/25471
6697 * thread.c
6698 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6699 exception in get_frame_id.
6700
0fa7617d
TT
67012020-04-20 Tom Tromey <tromey@adacore.com>
6702
6703 * python/python.c (struct gdbpy_event): Mark move constructor as
6704 noexcept.
6705 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6706 constructor as noexcept.
6707 * completer.h (struct completion_result): Mark move constructor as
6708 noexcept.
6709 * completer.c (completion_result::completion_result): Use
6710 initialization style. Don't call reset_match_list.
6711
ad23bda0
MS
67122020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6713
6714 * MAINTAINERS (Write After Approval): Add myself.
6715
45e1f031
TT
67162020-04-18 Tom Tromey <tom@tromey.com>
6717
6718 * windows-tdep.c (init_w32_command_list)
6719 (w32_prefix_command_valid): Restore.
6720 (_initialize_windows_tdep): Call init_w32_command_list.
6721
08feed99
TT
67222020-04-18 Tom Tromey <tom@tromey.com>
6723
6724 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6725 * value.c (value_fn_field): Update.
6726 * valops.c (find_function_in_inferior)
6727 (value_allocate_space_in_inferior): Update.
6728 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6729 Update.
6730 * tui/tui-source.c (tui_source_window::set_contents): Update.
6731 * symtab.c (lookup_global_or_static_symbol)
6732 (find_function_start_sal_1, skip_prologue_sal)
6733 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6734 * symmisc.c (dump_msymbols, dump_symtab_1)
6735 (maintenance_print_one_line_table): Update.
6736 * symfile.c (init_entry_point_info, section_is_mapped)
6737 (list_overlays_command, simple_read_overlay_table)
6738 (simple_overlay_update_1): Update.
6739 * stap-probe.c (handle_stap_probe): Update.
6740 * stabsread.c (dbx_init_float_type, define_symbol)
6741 (read_one_struct_field, read_enum_type, read_range_type): Update.
6742 * source.c (info_line_command): Update.
6743 * python/python.c (gdbpy_source_objfile_script)
6744 (gdbpy_execute_objfile_script): Update.
6745 * python/py-type.c (save_objfile_types): Update.
6746 * python/py-objfile.c (py_free_objfile): Update.
6747 * python/py-inferior.c (python_new_objfile): Update.
6748 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6749 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6750 (maintenance_check_psymtabs): Update.
6751 * printcmd.c (info_address_command): Update.
6752 * objfiles.h (struct objfile) <arch>: New method, from
6753 get_objfile_arch.
6754 (get_objfile_arch): Don't declare.
6755 * objfiles.c (get_objfile_arch): Remove.
6756 (filter_overlapping_sections): Update.
6757 * minsyms.c (msymbol_is_function): Update.
6758 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6759 (output_nondebug_symbol): Update.
6760 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6761 (mdebug_expand_psymtab): Update.
6762 * machoread.c (macho_add_oso_symfile): Update.
6763 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6764 Update.
6765 * linux-fork.c (checkpoint_command): Update.
6766 * linespec.c (convert_linespec_to_sals): Update.
6767 * jit.c (finalize_symtab): Update.
6768 * infrun.c (insert_exception_resume_from_probe): Update.
6769 * ia64-tdep.c (ia64_find_unwind_table): Update.
6770 * hppa-tdep.c (internalize_unwinds): Update.
6771 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6772 Update.
6773 * gcore.c (call_target_sbrk): Update.
6774 * elfread.c (record_minimal_symbol, elf_symtab_read)
6775 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6776 (elf_gnu_ifunc_resolve_by_got): Update.
6777 * dwarf2/read.c (create_addrmap_from_index)
6778 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6779 (read_debug_names_from_section)
6780 (process_psymtab_comp_unit_reader, add_partial_symbol)
6781 (add_partial_subprogram, process_full_comp_unit)
6782 (read_file_scope, read_func_scope, read_lexical_block_scope)
6783 (read_call_site_scope, dwarf2_ranges_read)
6784 (dwarf2_record_block_ranges, dwarf2_add_field)
6785 (mark_common_block_symbol_computed, read_tag_pointer_type)
6786 (read_tag_string_type, dwarf2_init_float_type)
6787 (dwarf2_init_complex_target_type, read_base_type)
6788 (partial_die_info::read, partial_die_info::read)
6789 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6790 (dwarf2_fetch_die_loc_sect_off): Update.
6791 * dwarf2/loc.c (dwarf2_find_location_expression)
6792 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6793 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6794 (dwarf2_loc_desc_get_symbol_read_needs)
6795 (locexpr_describe_location_piece, locexpr_describe_location_1)
6796 (loclist_describe_location): Update.
6797 * dwarf2/index-write.c (write_debug_names): Update.
6798 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6799 * dtrace-probe.c (dtrace_process_dof): Update.
6800 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6801 (process_one_symbol): Update.
6802 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6803 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6804 (coff_read_enum_type): Update.
6805 * cli/cli-cmds.c (edit_command, list_command): Update.
6806 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6807 * breakpoint.c (create_overlay_event_breakpoint)
6808 (create_longjmp_master_breakpoint)
6809 (create_std_terminate_master_breakpoint)
6810 (create_exception_master_breakpoint, get_sal_arch): Update.
6811 * block.c (block_gdbarch): Update.
6812 * annotate.c (annotate_source_line): Update.
6813
0743fc83
TT
68142020-04-17 Tom Tromey <tromey@adacore.com>
6815
6816 * auto-load.c (show_auto_load_cmd): Remove.
6817 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6818 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6819 (maintenance_print_arc_command): Remove.
6820 * tui/tui-win.c (tui_command): Remove.
6821 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6822 * tui/tui-layout.c (tui_layout_command): Remove.
6823 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6824 * python/python.c (user_set_python, user_show_python): Remove.
6825 (_initialize_python): Use add_basic_prefix_cmd,
6826 add_show_prefix_cmd.
6827 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6828 (install_gdb_commands): Use add_basic_prefix_cmd,
6829 add_show_prefix_cmd.
6830 (info_guile_command): Remove.
6831 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6832 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6833 add_show_prefix_cmd.
6834 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6835 Remove do_set and do_show parameters.
6836 * cli/cli-style.c (set_style, show_style): Remove.
6837 (_initialize_cli_style): Use add_basic_prefix_cmd,
6838 add_show_prefix_cmd.
6839 (cli_style_option::add_setshow_commands): Remove do_set and
6840 do_show parameters.
6841 (cli_style_option::add_setshow_commands): Use
6842 add_basic_prefix_cmd, add_show_prefix_cmd.
6843 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6844 (set_style_name): Remove.
6845 * cli/cli-dump.c (dump_command, append_command): Remove.
6846 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6847 (tekhex_dump_command, binary_dump_command)
6848 (binary_append_command): Remove.
6849 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6850 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6851 (init_w32_command_list): Remove; move into ...
6852 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6853 * valprint.c (set_print, show_print, set_print_raw)
6854 (show_print_raw): Remove.
6855 (_initialize_valprint): Use add_basic_prefix_cmd,
6856 add_show_prefix_cmd.
6857 * typeprint.c (set_print_type, show_print_type): Remove.
6858 (_initialize_typeprint): Use add_basic_prefix_cmd,
6859 add_show_prefix_cmd.
6860 * record.c (set_record_command, show_record_command): Remove.
6861 (_initialize_record): Use add_basic_prefix_cmd,
6862 add_show_prefix_cmd.
6863 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6864 add_show_prefix_cmd.
6865 (info_command, show_command, set_debug, show_debug): Remove.
6866 * top.h (set_history, show_history): Don't declare.
6867 * top.c (set_history, show_history): Remove.
6868 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6869 (unset_tdesc_cmd): Remove.
6870 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6871 add_show_prefix_cmd.
6872 * symtab.c (info_module_command): Remove.
6873 (_initialize_symtab): Use add_basic_prefix_cmd.
6874 * symfile.c (overlay_command): Remove.
6875 (_initialize_symfile): Use add_basic_prefix_cmd.
6876 * sparc64-tdep.c (info_adi_command): Remove.
6877 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6878 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6879 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6880 add_show_prefix_cmd.
6881 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6882 (_initialize_serial): Use add_basic_prefix_cmd,
6883 add_show_prefix_cmd.
6884 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6885 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6886 add_show_prefix_cmd.
6887 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6888 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6889 add_show_prefix_cmd.
6890 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6891 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6892 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6893 add_show_prefix_cmd.
6894 * remote.c (remote_command, set_remote_cmd): Remove.
6895 (_initialize_remote): Use add_basic_prefix_cmd.
6896 * record-full.c (set_record_full_command)
6897 (show_record_full_command): Remove.
6898 (_initialize_record_full): Use add_basic_prefix_cmd,
6899 add_show_prefix_cmd.
6900 * record-btrace.c (cmd_set_record_btrace)
6901 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6902 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6903 (cmd_show_record_btrace_pt): Remove.
6904 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6905 add_show_prefix_cmd.
6906 * ravenscar-thread.c (set_ravenscar_command)
6907 (show_ravenscar_command): Remove.
6908 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6909 add_show_prefix_cmd.
6910 * mips-tdep.c (show_mips_command, set_mips_command)
6911 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6912 add_show_prefix_cmd.
6913 * maint.c (maintenance_command, maintenance_info_command)
6914 (maintenance_check_command, maintenance_print_command)
6915 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6916 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6917 add_show_prefix_cmd.
6918 (show_per_command_cmd): Remove.
6919 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6920 Remove.
6921 (maintenance_show_test_settings_cmd): Remove.
6922 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6923 add_show_prefix_cmd.
6924 * maint-test-options.c (maintenance_test_options_command):
6925 Remove.
6926 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6927 * macrocmd.c (macro_command): Remove
6928 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6929 * language.c (set_check, show_check): Remove.
6930 (_initialize_language): Use add_basic_prefix_cmd,
6931 add_show_prefix_cmd.
6932 * infcmd.c (unset_command): Remove.
6933 (_initialize_infcmd): Use add_basic_prefix_cmd.
6934 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6935 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6936 add_show_prefix_cmd.
6937 * go32-nat.c (go32_info_dos_command): Remove.
6938 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6939 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6940 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6941 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6942 (_initialize_frame): Use add_basic_prefix_cmd,
6943 add_show_prefix_cmd.
6944 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6945 (_initialize_dcache): Use add_basic_prefix_cmd,
6946 add_show_prefix_cmd.
6947 * cp-support.c (maint_cplus_command): Remove.
6948 (_initialize_cp_support): Use add_basic_prefix_cmd.
6949 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6950 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6951 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6952 add_basic_prefix_cmd, add_show_prefix_cmd.
6953 * breakpoint.c (save_command): Remove.
6954 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6955 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6956 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6957 add_show_prefix_cmd.
6958 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6959 (set_ada_command, show_ada_command): Remove.
6960 (_initialize_ada_language): Use add_basic_prefix_cmd,
6961 add_show_prefix_cmd.
6962 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6963
3557f442
KR
69642020-04-16 Kamil Rytarowski <n54@gmx.com>
6965
6966 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6967 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6968
16197208
SM
69692020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6970
6971 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6972 warning messages.
6973
00ac85d3
SM
69742020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6975
6976 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6977 import table is not at beginning of .idata section.
6978
381ce63f
PA
69792020-04-16 Pedro Alves <palves@redhat.com>
6980
6981 * inferior.c (delete_inferior): Use delete operator directly
6982 instead of delete_program_space.
6983 * progspace.c (add_program_space): New, factored out from
6984 program_space::program_space.
6985 (remove_program_space): New, factored out from
6986 delete_program_space.
6987 (program_space::program_space): Remove intro comment. Rewrite.
6988 (program_space::~program_space): Remove intro comment. Call
6989 remove_program_space.
6990 (delete_program_space): Delete.
6991 * progspace.h (program_space::program_space): Make explicit. Move
6992 intro comment here, adjusted.
6993 (program_space::~program_space): Move intro comment here,
6994 adjusted.
6995 (delete_program_space): Remove.
6996
a010605f
TT
69972020-04-16 Tom Tromey <tromey@adacore.com>
6998
6999 * windows-nat.c (windows_nat::handle_access_violation): New
7000 function.
7001 * nat/windows-nat.h (handle_access_violation): Declare.
7002 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7003 windows-nat.c. Call handle_access_violation.
7004
efba5c23
TV
70052020-04-16 Tom de Vries <tdevries@suse.de>
7006
7007 PR symtab/25791
7008 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7009 CUs without psymtab.
7010
97ed802d
KB
70112020-04-16 Kevin Buettner <kevinb@redhat.com>
7012
7013 * python/python.c (do_start_initialization): Don't call
7014 PyEval_InitThreads for Python 3.9 and beyond.
7015
c7d64809
KR
70162020-04-15 Kamil Rytarowski <n54@gmx.com>
7017
7018 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7019 thread functions.
7020 (obsd_nat_target::wait): Likewise.
7021
ce127a96
TT
70222020-04-15 Tom Tromey <tromey@adacore.com>
7023
7024 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7025 (DEBUG_EXCEPT): Use debug_printf.
7026
99f1bc6a
AB
70272020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7028
7029 * completer.c (class completion_tracker::completion_hash_entry)
7030 <hash_name>: New member function.
7031 (completion_tracker::discard_completions): New callback to hash a
7032 completion_hash_entry, pass this to htab_create_alloc.
7033
a0e9b532
JT
70342016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7035
7036 * windows-nat.c (windows_make_so): Warn rather than stopping with
7037 an error if realpath() fails.
7038
06ca5dd4
KR
70392020-04-14 Kamil Rytarowski <n54@gmx.com>
7040
7041 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7042 (nbsd_nat_target::info_proc): Add do_status.
7043
194d088f
TV
70442020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7045 Tom de Vries <tdevries@suse.de>
7046
7047 PR symtab/25718
7048 * psympriv.h (struct partial_symtab::read_symtab)
7049 (struct partial_symtab::expand_psymtab)
7050 (struct partial_symtab::read_dependencies): Update comments.
7051 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7052 read_symtab for includer.
7053 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7054 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7055 (struct dwarf2_include_psymtab::m_readin): Remove.
7056 (struct dwarf2_include_psymtab::includer): New member function.
7057 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7058
c1a66c06
TV
70592020-04-14 Tom de Vries <tdevries@suse.de>
7060
7061 PR symtab/25720
7062 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7063 with NULL symbol_matcher and lookup_name.
7064 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7065 and lookup_name.
7066 * dwarf2/read.c (dw2_expand_symtabs_matching)
7067 (dw2_debug_names_expand_symtabs_matching): Same.
7068 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7069 Make lookup_name a pointer. Update comment.
7070 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7071 lookup_name being a pointer.
7072 * symfile.c (expand_symtabs_matching): Same.
7073 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7074 * linespec.c (iterate_over_all_matching_symtabs): Same.
7075
400b5eca
TT
70762020-04-13 Tom Tromey <tom@tromey.com>
7077
7078 * run-on-main-thread.c: Update include.
7079 * unittests/main-thread-selftests.c: Update include.
7080 * tui/tui-win.c: Update include.
7081 * tui/tui-io.c: Update include.
7082 * tui/tui-interp.c: Update include.
7083 * tui/tui-hooks.c: Update include.
7084 * top.h: Update include.
7085 * top.c: Update include.
7086 * ser-base.c: Update include.
7087 * remote.c: Update include.
7088 * remote-notif.c: Update include.
7089 * remote-fileio.c: Update include.
7090 * record-full.c: Update include.
7091 * record-btrace.c: Update include.
7092 * python/python.c: Update include.
7093 * posix-hdep.c: Update include.
7094 * mingw-hdep.c: Update include.
7095 * mi/mi-main.c: Update include.
7096 * mi/mi-interp.c: Update include.
7097 * main.c: Update include.
7098 * linux-nat.c: Update include.
7099 * interps.c: Update include.
7100 * infrun.c: Update include.
7101 * inf-loop.c: Update include.
7102 * event-top.c: Update include.
7103 * event-loop.c: Move to ../gdbsupport/.
7104 * event-loop.h: Move to ../gdbsupport/.
7105 * async-event.h: Update include.
7106 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7107
93b54c8e
TT
71082020-04-13 Tom Tromey <tom@tromey.com>
7109
7110 * tui/tui-win.c: Include async-event.h.
7111 * remote.c: Include async-event.h.
7112 * remote-notif.c: Include async-event.h.
7113 * record-full.c: Include async-event.h.
7114 * record-btrace.c: Include async-event.h.
7115 * infrun.c: Include async-event.h.
7116 * event-top.c: Include async-event.h.
7117 * event-loop.h: Move some declarations to async-event.h.
7118 * event-loop.c: Don't include ser-event.h or top.h. Move some
7119 code to async-event.c.
7120 * async-event.h: New file.
7121 * async-event.c: New file.
7122 * Makefile.in (COMMON_SFILES): Add async-event.c.
7123 (HFILES_NO_SRCDIR): Add async-event.h.
7124
c1cd3163
TT
71252020-04-13 Tom Tromey <tom@tromey.com>
7126
7127 * utils.c (flush_streams): New function.
7128 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7129
29f2bf4f
TT
71302020-04-13 Tom Tromey <tom@tromey.com>
7131
7132 * event-loop.c (handle_file_event): Use warning, not
7133 printf_unfiltered.
7134
98029d02
TT
71352020-04-13 Tom Tromey <tom@tromey.com>
7136
7137 * event-loop.c: Include <chrono>.
7138
06cc9596
TT
71392020-04-13 Tom Tromey <tom@tromey.com>
7140
7141 * gdb_select.h: Move to ../gdbsupport/.
7142 * event-loop.c: Update include path.
7143 * top.c: Update include path.
7144 * ser-base.c: Update include path.
7145 * ui-file.c: Update include path.
7146 * ser-tcp.c: Update include path.
7147 * guile/scm-ports.c: Update include path.
7148 * posix-hdep.c: Update include path.
7149 * ser-unix.c: Update include path.
7150 * gdb_usleep.c: Update include path.
7151 * mingw-hdep.c: Update include path.
7152 * inflow.c: Update include path.
7153 * infrun.c: Update include path.
7154 * event-top.c: Update include path.
7155
8ae8e197
TT
71562020-04-13 Tom Tromey <tom@tromey.com>
7157
7158 * configure: Rebuild.
7159 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7160
58cf28e8
TT
71612020-04-13 Tom Tromey <tom@tromey.com>
7162
7163 * event-loop.h (start_event_loop): Don't declare.
7164 * event-loop.c (start_event_loop): Move...
7165 * main.c (start_event_loop): ...here. Now static.
7166
b7f999ae
SDJ
71672020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7168
7169 * MAINTAINERS: Update my email address.
7170
1085dfd4
KR
71712020-04-12 Kamil Rytarowski <n54@gmx.com>
7172
7173 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7174 IP_ALL.
7175
49d1d1f5
KR
71762020-04-12 Kamil Rytarowski <n54@gmx.com>
7177
7178 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 7179 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 7180
b4848d2a
KR
71812020-04-12 Kamil Rytarowski <n54@gmx.com>
7182
7183 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 7184 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 7185
51c133d5
KR
71862020-04-12 Kamil Rytarowski <n54@gmx.com>
7187
7188 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7189
54b8cbd0
KR
71902020-04-11 Kamil Rytarowski <n54@gmx.com>
7191
7192 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7193 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7194 (nbsd_nat_target::info_proc): New functions.
7195 * nbsd-nat.c (kinfo_get_vmmap): New function.
7196 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7197 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7198 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7199 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7200 functions.
7201 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7202 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7203 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7204 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7205 (KINFO_VME_FLAG_GROWS_DOWN): New.
7206
cf83625d
AS
72072020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7208
7209 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7210 bit shift.
7211
0c4311ab
TT
72122020-04-10 Tom Tromey <tromey@adacore.com>
7213
7214 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7215
3e65b3e9
TT
72162020-04-10 Tom Tromey <tromey@adacore.com>
7217
7218 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7219 separate debug files.
7220
13302e95
HD
72212020-04-10 Hannes Domani <ssbssa@yahoo.de>
7222
7223 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7224 Move to...
7225 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7226 ... here.
7227 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7228 Check for STATUS_WX86_BREAKPOINT.
7229 (windows_nat_target::wait): Same.
7230
bdfc1e8a
TV
72312020-04-10 Tom de Vries <tdevries@suse.de>
7232
7233 PR cli/25808
7234 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7235
f4460aec
SM
72362020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7237
7238 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7239 (Write After Approval): Remove Tom de Vries.
7240
a25198bb
BE
72412020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7242
7243 revert partially:
7244 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7245
aac66a4c
SM
7246 * buildsym.c (record_line): Fix undefined behavior and preserve
7247 lines at eof.
a25198bb 7248
206c98a6
KR
72492020-04-09 Kamil Rytarowski <n54@gmx.com>
7250
7251 * auxv.h (svr4_auxv_parse): New.
7252 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7253 and generic_auxv_parse.
7254 (svr4_auxv_parse): Add.
7255 * obsd-tdep.c: Include "auxv.h".
7256 (obsd_auxv_parse): Remove.
7257 (obsd_init_abi): Remove comment.
7258 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7259 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7260 * nbsd-tdep.c: Include "auxv.h".
7261 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7262
71fbdbaf
TT
72632020-04-08 Tom Tromey <tromey@adacore.com>
7264
7265 * nat/windows-nat.h (last_wait_event): Don't declare.
7266 (wait_for_debug_event): Update comment.
7267 * nat/windows-nat.c (last_wait_event): Now static.
7268
2c1d95e8
TT
72692020-04-08 Tom Tromey <tromey@adacore.com>
7270
7271 * windows-nat.c (wait_for_debug_event): Move to
7272 nat/windows-nat.c.
7273 * nat/windows-nat.h (wait_for_debug_event): Declare.
7274 * nat/windows-nat.c (wait_for_debug_event): Move from
7275 windows-nat.c. No longer static.
7276
d2977bc4
TT
72772020-04-08 Tom Tromey <tromey@adacore.com>
7278
7279 * windows-nat.c (get_windows_debug_event): Use
7280 fetch_pending_stop.
7281 * nat/windows-nat.h (fetch_pending_stop): Declare.
7282 * nat/windows-nat.c (fetch_pending_stop): New function.
7283
e758e19c
TT
72842020-04-08 Tom Tromey <tromey@adacore.com>
7285
7286 * windows-nat.c (windows_continue): Use matching_pending_stop and
7287 continue_last_debug_event.
7288 * nat/windows-nat.h (matching_pending_stop)
7289 (continue_last_debug_event): Declare.
7290 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7291 (matching_pending_stop, continue_last_debug_event): New
7292 functions.
7293
8d30e395
TT
72942020-04-08 Tom Tromey <tromey@adacore.com>
7295
7296 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7297 (handle_exception_result): Move to nat/windows-nat.h.
7298 (DEBUG_EXCEPTION_SIMPLE): Remove.
7299 (windows_nat::handle_ms_vc_exception): New function.
7300 (handle_exception): Move to nat/windows-nat.c.
7301 (get_windows_debug_event): Update.
7302 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7303 nat/windows-nat.c.
7304 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7305 (handle_exception_result): Move from windows-nat.c.
7306 (handle_exception): Declare.
7307 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7308 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7309 windows-nat.c.
7310
29de418d
TT
73112020-04-08 Tom Tromey <tromey@adacore.com>
7312
7313 * windows-nat.c (exception_count, event_count): Remove.
7314 (handle_exception, get_windows_debug_event)
7315 (do_initial_windows_stuff): Update.
7316
a816ba18
TT
73172020-04-08 Tom Tromey <tromey@adacore.com>
7318
7319 * windows-nat.c (windows_nat::handle_load_dll)
7320 (windows_nat::handle_unload_dll): Rename. No longer static.
7321 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7322 Declare.
7323
a00caa12
TT
73242020-04-08 Tom Tromey <tromey@adacore.com>
7325
7326 * complaints.h (stop_whining): Declare at top-level.
7327 (complaint): Don't declare stop_whining.
7328
d41b524f
TT
73292020-04-08 Tom Tromey <tromey@adacore.com>
7330
7331 * windows-nat.c (windows_nat::handle_output_debug_string):
7332 Rename. No longer static.
7333 * nat/windows-nat.h (handle_output_debug_string): Declare.
7334
3c76026d
TT
73352020-04-08 Tom Tromey <tromey@adacore.com>
7336
7337 * windows-nat.c (current_process_handle, current_process_id)
7338 (main_thread_id, last_sig, current_event, last_wait_event)
7339 (current_windows_thread, desired_stop_thread_id, pending_stops)
7340 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7341 (display_selectors, fake_create_process)
7342 (get_windows_debug_event): Update.
7343 * nat/windows-nat.h (current_process_handle, current_process_id)
7344 (main_thread_id, last_sig, current_event, last_wait_event)
7345 (current_windows_thread, desired_stop_thread_id, pending_stops)
7346 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7347 * nat/windows-nat.c (current_process_handle, current_process_id)
7348 (main_thread_id, last_sig, current_event, last_wait_event)
7349 (current_windows_thread, desired_stop_thread_id, pending_stops)
7350 (siginfo_er): New globals. Move from windows-nat.c.
7351
9d8679cc
TT
73522020-04-08 Tom Tromey <tromey@adacore.com>
7353
7354 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7355 (handle_load_dll): Update.
7356 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7357
28688adf
TT
73582020-04-08 Tom Tromey <tromey@adacore.com>
7359
7360 * windows-nat.c (enum thread_disposition_type): Move to
7361 nat/windows-nat.h.
7362 (windows_nat::thread_rec): Rename from thread_rec. No longer
7363 static.
7364 (windows_add_thread, windows_nat_target::fetch_registers)
7365 (windows_nat_target::store_registers, handle_exception)
7366 (windows_nat_target::resume, get_windows_debug_event)
7367 (windows_nat_target::get_tib_address)
7368 (windows_nat_target::thread_name)
7369 (windows_nat_target::thread_alive): Update.
7370 * nat/windows-nat.h (enum thread_disposition_type): Move from
7371 windows-nat.c.
7372 (thread_rec): Declare.
7373
4834dad0
TT
73742020-04-08 Tom Tromey <tromey@adacore.com>
7375
7376 * windows-nat.c: Add "using namespace".
7377 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7378 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7379
65bafd5b
TT
73802020-04-08 Tom Tromey <tromey@adacore.com>
7381
7382 * nat/windows-nat.h (struct windows_thread_info): Declare
7383 destructor.
7384 * nat/windows-nat.c (~windows_thread_info): New.
7385
0a4afda3
TT
73862020-04-08 Tom Tromey <tromey@adacore.com>
7387
7388 PR gdb/22992
7389 * windows-nat.c (current_event): Update comment.
7390 (last_wait_event, desired_stop_thread_id): New globals.
7391 (struct pending_stop): New.
7392 (pending_stops): New global.
7393 (windows_nat_target) <stopped_by_sw_breakpoint>
7394 <supports_stopped_by_sw_breakpoint>: New methods.
7395 (windows_fetch_one_register): Add assertions. Adjust PC.
7396 (windows_continue): Handle pending stops. Suspend other threads
7397 when stepping. Use last_wait_event
7398 (wait_for_debug_event): New function.
7399 (get_windows_debug_event): Use wait_for_debug_event. Handle
7400 pending stops. Queue spurious stops.
7401 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7402 (windows_nat_target::kill): Use wait_for_debug_event.
7403 * nat/windows-nat.h (struct windows_thread_info)
7404 <stopped_at_software_breakpoint>: New field.
7405 * nat/windows-nat.c (windows_thread_info::resume): Clear
7406 stopped_at_software_breakpoint.
7407
8e61ebec
TT
74082020-04-08 Tom Tromey <tromey@adacore.com>
7409
7410 * windows-nat.c (enum thread_disposition_type): New.
7411 (thread_rec): Replace "get_context" parameter with "disposition";
7412 change type.
7413 (windows_add_thread, windows_nat_target::fetch_registers)
7414 (windows_nat_target::store_registers, handle_exception)
7415 (windows_nat_target::resume, get_windows_debug_event)
7416 (windows_nat_target::get_tib_address)
7417 (windows_nat_target::thread_name)
7418 (windows_nat_target::thread_alive): Update.
7419
98a03287
TT
74202020-04-08 Tom Tromey <tromey@adacore.com>
7421
7422 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7423 (windows_continue): Use windows_continue::resume.
7424 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7425 resume>: Declare new methods.
7426 * nat/windows-nat.c: New file.
7427 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7428
7c7411bc
TT
74292020-04-08 Tom Tromey <tromey@adacore.com>
7430
7431 * windows-nat.c (windows_add_thread, windows_delete_thread)
7432 (windows_nat_target::fetch_registers)
7433 (windows_nat_target::store_registers, fake_create_process)
7434 (windows_nat_target::resume, windows_nat_target::resume)
7435 (get_windows_debug_event, windows_nat_target::wait)
7436 (windows_nat_target::pid_to_str)
7437 (windows_nat_target::get_tib_address)
7438 (windows_nat_target::get_ada_task_ptid)
7439 (windows_nat_target::thread_name)
7440 (windows_nat_target::thread_alive): Use lwp, not tid.
7441
2950fdf7
TT
74422020-04-08 Tom Tromey <tromey@adacore.com>
7443
7444 * windows-nat.c (handle_exception)
7445 (windows_nat_target::thread_name): Update.
7446 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7447 <name>: Now unique_xmalloc_ptr.
7448
62fe396b
TT
74492020-04-08 Tom Tromey <tromey@adacore.com>
7450
7451 * windows-nat.c (thread_rec)
7452 (windows_nat_target::fetch_registers): Update.
7453 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7454 Update comment.
7455 <debug_registers_changed, reload_context>: Now bool.
7456
e9534bd2
TT
74572020-04-08 Tom Tromey <tromey@adacore.com>
7458
7459 * windows-nat.c (windows_add_thread): Use new.
7460 (windows_init_thread_list, windows_delete_thread): Use delete.
7461 (get_windows_debug_event): Update.
7462 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7463 destructor, and initializers.
7464
ae1f8880
TT
74652020-04-08 Tom Tromey <tromey@adacore.com>
7466
7467 * windows-nat.c (struct windows_thread_info): Remove.
7468 * nat/windows-nat.h: New file.
7469
55a1e039
TT
74702020-04-08 Tom Tromey <tromey@adacore.com>
7471
7472 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7473 (thread_rec, windows_add_thread, windows_delete_thread)
7474 (windows_continue): Update.
7475
93366324
TT
74762020-04-08 Tom Tromey <tromey@adacore.com>
7477
7478 * windows-nat.c (struct windows_thread_info): Remove typedef.
7479 (thread_head): Remove.
7480 (thread_list): New global.
7481 (thread_rec, windows_add_thread, windows_init_thread_list)
7482 (windows_delete_thread, windows_continue): Update.
7483
0f2265e2
SM
74842020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7485
7486 * windows-tdep.h (windows_init_abi): Add comment.
7487 (cygwin_init_abi): New declaration.
7488 * windows-tdep.c: Split signal enumeration in two, one for
7489 Windows and one for Cygwin.
7490 (windows_gdb_signal_to_target): Only deal with signal of the
7491 Windows OS ABI.
7492 (cygwin_gdb_signal_to_target): New function.
7493 (windows_init_abi): Rename to windows_init_abi_common, don't set
7494 gdb_signal_to_target gdbarch method. Add new new function with
7495 this name.
7496 (cygwin_init_abi): New function.
7497 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7498 comment. Don't call windows_init_abi.
7499 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7500 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7501 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7502 i386_windows_init_abi_common, don't call windows_init_abi. Add
7503 a new function of this name.
7504 (i386_cygwin_init_abi): New function.
7505 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7506 OS ABI Cygwin.
7507
3810f182
SM
75082020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7509
7510 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7511 parameter.c.
7512 (dwarf2_read_gdb_index): Update.
7513
063f8e80
KR
75142020-04-07 Kamil Rytarowski <n54@gmx.com>
7515
7516 * nbsd-tdep.c: Include "objfiles.h".
7517 (nbsd_skip_solib_resolver): New.
7518 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7519
85a9510c 75202020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7521
7522 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7523 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7524 with DW_LLE_base_addressx are being emitted in DWARFv5.
7525 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7526 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7527 unsigned integer.
7528
9fc3eaae 75292020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7530
7531 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7532 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7533 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7534 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7535 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7536 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7537 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7538
7539
41144253 75402020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7541
7542 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7543 (read_loclist_index): New function definition.
7544 (lookup_loclist_base): New function definition.
7545 (read_loclist_header): New function definition.
7546 (dwarf2_cu): Add loclist_base and loclist_header field.
7547 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7548 (read_full_die_1): Read the value of DW_AT_loclists_base.
7549 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7550 (read_attribute_value): Handle DW_FORM_loclistx.
7551 (skip_one_die): Handle DW_FORM_loclistx.
7552 (loclist_header): New structure declaration.
7553 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7554
9f4e76a4
SM
75552020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7556
7557 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7558 constructor. Remove `addr` parameter from other constructor and
7559 add `per_cu` parameter.
7560 * dwarf2/read.c (create_partial_symtab): Update.
7561
25c11aca
TV
75622020-04-07 Tom de Vries <tdevries@suse.de>
7563
7564 PR symtab/25796
7565 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7566 (partial_die_info::fixup): Inherit has_const_value.
7567
5707e24b
TV
75682020-04-07 Tom de Vries <tdevries@suse.de>
7569
7570 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7571 symbols without address.
7572
05f00e22
KR
75732020-04-06 Kamil Rytarowski <n54@gmx.com>
7574
7575 * nbsd-nat.h (struct thread_info): Add forward declaration.
7576 (nbsd_nat_target::thread_alive): Add.
7577 (nbsd_nat_target::thread_name): Likewise.
7578 (nbsd_nat_target::update_thread_list): Likewise.
7579 (update_thread_list::post_attach): Likewise.
7580 (post_attach::pid_to_str): Likewise.
7581 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7582 (nbsd_thread_lister): Add.
7583 (nbsd_nat_target::thread_alive): Likewise.
7584 (nbsd_nat_target::thread_name): Likewise.
7585 (nbsd_add_threads): Likewise.
7586 (update_thread_list::post_attach): Likewise.
7587 (nbsd_nat_target::update_thread_list): Likewise.
7588 (post_attach::pid_to_str): Likewise.
7589
6ee448cc
TT
75902020-04-06 Tom Tromey <tromey@adacore.com>
7591
7592 * ada-valprint.c (print_variant_part): Extract the variant field.
7593 (print_field_values): Use the field as the outer value when
7594 recursing.
7595
dea34e8c
TT
75962020-04-06 Tom Tromey <tromey@adacore.com>
7597
7598 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7599 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7600 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7601 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7602 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7603
93689ce9
TT
76042020-04-06 Tom Tromey <tromey@adacore.com>
7605
7606 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7607 TYPE_CODE_ERROR.
7608
79743962
KR
76092020-04-06 Kamil Rytarowski <n54@gmx.com>
7610
7611 * nbsd-tdep.c: Include "gdbarch.h".
7612 Define enum with NetBSD signal numbers.
7613 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7614 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7615 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7616 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7617 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7618 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7619 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7620 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7621 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7622 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7623 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7624 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7625
9e7c9a03
HD
76262020-04-03 Hannes Domani <ssbssa@yahoo.de>
7627
7628 PR gdb/25325
7629 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7630
d9e49b61
TT
76312020-04-03 Tom Tromey <tromey@adacore.com>
7632
7633 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7634 Read constant block.
7635
e0fc5c3f
SM
76362020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7637
7638 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7639 (gdb_bfd_get_full_section_contents): New declaration.
7640 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7641 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7642 gdb_bfd_get_full_section_contents.
7643
e2ff18a0
SM
76442020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7645
7646 * exec.c (build_section_table): Replace internal_error with
7647 gdb_assert.
7648 (section_table_xfer_memory_partial): Likewise.
7649 * mdebugread.c (parse_partial_symbols): Likewise.
7650 * psymtab.c (lookup_partial_symbol): Likewise.
7651 * utils.c (wrap_here): Likewise.
7652
0830d301
TT
76532020-04-02 Tom Tromey <tromey@adacore.com>
7654
7655 * f-lang.c (build_fortran_types): Use arch_type to initialize
7656 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7657
e7da7f8f
TT
76582020-04-02 Tom Tromey <tromey@adacore.com>
7659
7660 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7661 of attributes.
7662
c90d28ac
AB
76632020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7664 Bernd Edlinger <bernd.edlinger@hotmail.de>
7665 Tom Tromey <tromey@adacore.com>
7666
7667 * buildsym.c (buildsym_compunit::record_line): Remove
7668 deduplication code.
7669
1aa98955
TV
76702020-04-02 Tom de Vries <tdevries@suse.de>
7671
7672 PR ada/24671
7673 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7674
d3214198
TV
76752020-04-02 Tom de Vries <tdevries@suse.de>
7676
7677 * dwarf2/read.c (dwarf2_gdb_index_functions,
7678 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7679 NULL.
7680 * psymtab.c (psym_lookup_global_symbol_language): New function.
7681 (psym_functions): Init psym_lookup_global_symbol_language with
7682 psym_lookup_global_symbol_language.
7683 * symfile-debug.c (debug_sym_quick_functions): Init
7684 lookup_global_symbol_language with NULL.
7685 * symfile.c (set_initial_language): Remove fixme comment.
7686 * symfile.h (struct quick_symbol_functions): Add
7687 lookup_global_symbol_language.
7688 * symtab.c (find_quick_global_symbol_language): New function.
7689 (find_main_name): Use find_quick_global_symbol_language.
7690
2836752f
SM
76912020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7692
7693 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7694
64dc2d4b
BE
76952020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7696
7697 * buildsym.c (record_line): Fix undefined behavior and preserve
7698 lines at eof.
7699
bbe3dc41
BE
77002020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7701
7702 * buildsym.c (record_line): Fix the resizing condition.
7703
6b4a335b
TT
77042020-04-01 Tom Tromey <tom@tromey.com>
7705
7706 * value.h (value_literal_complex): Add comment.
7707 * valops.c (value_literal_complex): Refer to value.h.
7708
3638a098
TT
77092020-04-01 Tom Tromey <tom@tromey.com>
7710
7711 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7712 (scalar_type): New rule, from typebase.
7713 (typebase): Use scalar_type. Recognize complex types.
7714 (field_name): Handle FLOAT_KEYWORD.
7715 (ident_tokens): Add _Complex and __complex__.
7716
c34e8714
TT
77172020-04-01 Tom Tromey <tom@tromey.com>
7718
7719 PR exp/25299:
7720 * valarith.c (promotion_type, complex_binop): New functions.
7721 (scalar_binop): Handle complex numbers. Use promotion_type.
7722 (value_pos, value_neg, value_complement): Handle complex numbers.
7723
fa649bb7
TT
77242020-04-01 Tom Tromey <tom@tromey.com>
7725
7726 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7727 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7728 (parse_number): Handle complex numbers.
7729
981c08ce
TT
77302020-04-01 Tom Tromey <tom@tromey.com>
7731
7732 * c-valprint.c (c_decorations): Change complex suffix to "i".
7733
4c99290d
TT
77342020-04-01 Tom Tromey <tom@tromey.com>
7735
7736 * valprint.c (generic_value_print_complex): Use accessors.
7737 * value.h (value_real_part, value_imaginary_part): Declare.
7738 * valops.c (value_real_part, value_imaginary_part): New
7739 functions.
7740 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7741
5b930b45
TT
77422020-04-01 Tom Tromey <tom@tromey.com>
7743
7744 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7745 (read_range_type): Update.
7746 * mdebugread.c (basic_type): Update.
7747 * go-lang.c (build_go_types): Use init_complex_type.
7748 * gdbtypes.h (struct main_type) <complex_type>: New member.
7749 (init_complex_type): Update.
7750 (arch_complex_type): Don't declare.
7751 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7752 Make name if none given. Use alloc_type_copy. Look for cached
7753 complex type.
7754 (arch_complex_type): Remove.
7755 (gdbtypes_post_init): Use init_complex_type.
7756 * f-lang.c (build_fortran_types): Use init_complex_type.
7757 * dwarf2/read.c (read_base_type): Update.
7758 * d-lang.c (build_d_types): Use init_complex_type.
7759 * ctfread.c (read_base_type): Update.
7760
53cccef1
TBA
77612020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7762
7763 * infrun.c (stop_all_threads): Update assertion, plus when
7764 stopping threads, take into account that we might be trying
7765 to stop an all-stop target.
7766 (stop_waiting): Call 'stop_all_threads' if there exists a
7767 non-stop target.
7768
a0714d30
TBA
77692020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7770
7771 * target.h (exists_non_stop_target): New function declaration.
7772 * target.c (exists_non_stop_target): New function.
7773
60e22c1e
HD
77742020-04-01 Hannes Domani <ssbssa@yahoo.de>
7775
7776 PR gdb/24789
7777 * eval.c (is_integral_or_integral_reference): New function.
7778 (evaluate_subexp_standard): Allow integer references in
7779 pointer arithmetic.
7780
e139a727
TBA
77812020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7782
7783 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7784 check for no ptid in the stop reply when the target is non-stop.
7785
e0802d59
TT
77862020-04-01 Tom Tromey <tromey@adacore.com>
7787
7788 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7789 "name" parameter to rvalue reference. Initialize m_name_holder.
7790 <lookup_name_info>: New overloads.
7791 <name>: Return gdb::string_view.
7792 <c_str>: New method.
7793 <make_ignore_params>: Update.
7794 <search_name_hash>: Update.
7795 <language_lookup_name>: Return const char *.
7796 <m_name>: Change type.
7797 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7798 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7799 (lookup_name_info::match_any): Update.
7800 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7801 Update.
7802 * minsyms.c (linkage_name_str): Update.
7803 * language.c (default_symbol_name_matcher): Update.
7804 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7805 Update.
7806 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7807 (ada_lookup_name_info::ada_lookup_name_info): Update.
7808 (literal_symbol_name_matcher): Update.
7809
8c072cb6
TT
78102020-04-01 Tom Tromey <tromey@adacore.com>
7811
7812 * psymtab.c (psymtab_search_name): Remove function.
7813 (psym_lookup_symbol): Create search name and lookup name here.
7814 (lookup_partial_symbol): Remove "name" parameter; add
7815 lookup_name.
7816 (psym_expand_symtabs_for_function): Update.
7817
6f29a534
TT
78182020-03-31 Joel Jones <joelkevinjones@gmail.com>
7819
7820 PR tui/25597:
7821 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7822
af62665e
TT
78232020-03-31 Tom Tromey <tromey@adacore.com>
7824
7825 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7826 memcpy.
7827
d1a89da5
NC
78282020-03-30 Nelson Chu <nelson.chu@sifive.com>
7829
7830 * features/riscv/32bit-csr.xml: Regenerated.
7831 * features/riscv/64bit-csr.xml: Regenerated.
7832
d8af9068
TT
78332020-03-30 Tom Tromey <tromey@adacore.com>
7834
7835 * ada-valprint.c (print_variant_part): Update.
7836 * ada-lang.h (ada_which_variant_applies): Update.
7837 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7838 outer_valaddr parameters; replace with "outer" value parameter.
7839 (to_fixed_variant_branch_type): Update.
7840
227c0bf4
PFC
78412020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7842
7843 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7844 <list>. Remove inclusion of observable.h.
7845 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7846 (struct arch_lwp_info): New struct.
7847 (class ppc_linux_dreg_interface): New class.
7848 (struct ppc_linux_process_info): New struct.
7849 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7850 <low_new_clone, low_forget_process, low_prepare_to_resume>
7851 <copy_thread_dreg_state, mark_thread_stale>
7852 <mark_debug_registers_changed, register_hw_breakpoint>
7853 <clear_hw_breakpoint, register_wp, clear_wp>
7854 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7855 <num_memory_accesses, get_trigger_type>
7856 <create_watchpoint_request, hwdebug_point_cmp>
7857 <init_arch_lwp_info, get_arch_lwp_info>
7858 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7859 methods.
7860 <struct ptid_hash>: New inner struct.
7861 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7862 members.
7863 (saved_dabr_value, hwdebug_info, max_slots_number)
7864 (struct hw_break_tuple, struct thread_points, ppc_threads)
7865 (have_ptrace_hwdebug_interface)
7866 (hwdebug_find_thread_points_by_tid)
7867 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7868 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7869 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7870 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7871 use m_dreg_interface.
7872 (hwdebug_point_cmp): Change to...
7873 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7874 reference arguments instead of pointers.
7875 (ppc_linux_nat_target::ranged_break_num_registers): Use
7876 m_dreg_interface.
7877 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7878 m_dreg_interface. Call register_hw_breakpoint.
7879 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7880 m_dreg_interface. Call clear_hw_breakpoint.
7881 (get_trigger_type): Change to...
7882 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7883 comment.
7884 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7885 use m_dreg_interface. Call register_hw_breakpoint.
7886 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7887 use m_dreg_interface. Call clear_hw_breakpoint.
7888 (can_use_watchpoint_cond_accel): Change to...
7889 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7890 method. Update comment, use m_dreg_interface and
7891 m_process_info.
7892 (calculate_dvc): Change to...
7893 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7894 m_dreg_interface.
7895 (num_memory_accesses): Change to...
7896 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7897 (check_condition): Change to...
7898 (ppc_linux_nat_target::check_condition): ...this method.
7899 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7900 comment, use m_dreg_interface.
7901 (create_watchpoint_request): Change to...
7902 (ppc_linux_nat_target::create_watchpoint_request): ...this
7903 method. Use m_dreg_interface.
7904 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7905 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7906 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7907 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7908 (ppc_linux_nat_target::low_forget_process)
7909 (ppc_linux_nat_target::low_new_fork)
7910 (ppc_linux_nat_target::low_new_clone)
7911 (ppc_linux_nat_target::low_delete_thread)
7912 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7913 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7914 only call mark_thread_stale.
7915 (ppc_linux_thread_exit): Remove.
7916 (ppc_linux_nat_target::stopped_data_address): Change to...
7917 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7918 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7919 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7920 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7921 comment. Call low_stopped_data_address.
7922 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7923 m_dreg_interface.
7924 (ppc_linux_nat_target::masked_watch_num_registers): Use
7925 m_dreg_interface.
7926 (ppc_linux_nat_target::copy_thread_dreg_state)
7927 (ppc_linux_nat_target::mark_thread_stale)
7928 (ppc_linux_nat_target::mark_debug_registers_changed)
7929 (ppc_linux_nat_target::register_hw_breakpoint)
7930 (ppc_linux_nat_target::clear_hw_breakpoint)
7931 (ppc_linux_nat_target::register_wp)
7932 (ppc_linux_nat_target::clear_wp)
7933 (ppc_linux_nat_target::init_arch_lwp_info)
7934 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7935 (_initialize_ppc_linux_nat): Remove observer callback.
7936
4db10d8f
PFC
79372020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7938
7939 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7940 (ppc_linux_nat_target::auxv_parse)
7941 (ppc_linux_nat_target::read_description)
7942 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7943 Move up.
7944
1310c1b0
PFC
79452020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7946
7947 * linux-nat.h (low_new_clone): New method.
7948 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7949
69b037c3
SM
79502020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7951
7952 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7953 (dbx_expand_psymtab): ... this.
7954 (start_psymtab): Update.
7955 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7956 (mdebug_expand_psymtab): ... this.
7957 (parse_partial_symbols): Update.
7958 (new_psymtab): Update.
7959 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7960 (xcoff_expand_psymtab): ... this.
7961 (xcoff_start_psymtab): Update.
7962
48993951
SM
79632020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7964
7965 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7966 <expand_dependencies>: ... this.
7967 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7968 (partial_symtab::expand_dependencies): ... this.
7969 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7970 Update.
7971 (dwarf2_psymtab::expand_psymtab): Update.
7972 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7973 * mdebugread.c (psymtab_to_symtab_1): Update.
7974 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7975
3ad83046
SM
79762020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7977
7978 * psympriv.h (discard_psymtab): Remove.
7979 * dbxread.c (dbx_end_psymtab): Update.
7980 * xcoffread.c (xcoff_end_psymtab): Update.
7981
4d1b9ab6
TT
79822020-03-28 Tom Tromey <tom@tromey.com>
7983
7984 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7985 comment.
7986
f1749218
TT
79872020-03-28 Tom Tromey <tom@tromey.com>
7988
7989 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7990
ebea7626
HD
79912020-03-27 Hannes Domani <ssbssa@yahoo.de>
7992
7993 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7994
a879b4d5
JB
79952020-03-26 John Baldwin <jhb@FreeBSD.org>
7996
7997 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7998
0826b30a
TT
79992020-03-26 Tom Tromey <tom@tromey.com>
8000
8001 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8002 (mark_common_block_symbol_computed, read_tag_string_type)
8003 (attr_to_dynamic_prop, read_subrange_type): Update.
8004 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8005 to be methods on struct attribute.
8006 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8007 (read_call_site_scope, partial_die_info::read)
8008 (partial_die_info::read, lookup_die_type, follow_die_ref):
8009 Update.
8010 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8011 from dwarf2_get_ref_die_offset.
8012 (attribute::constant_value): New method, from
8013 dwarf2_get_attr_constant_value.
8014 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8015 Declare method.
8016 <constant_value>: New method.
8017
2b2558bf
TT
80182020-03-26 Tom Tromey <tom@tromey.com>
8019
8020 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8021 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8022 (dwarf_type_encoding_name): Move to stringify.c.
8023 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8024 * dwarf2/stringify.c: New file.
8025 * dwarf2/stringify.h: New file.
8026
eeb64781
TT
80272020-03-26 Tom Tromey <tom@tromey.com>
8028
8029 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8030 Rewrite.
8031
a39fdb41
TT
80322020-03-26 Tom Tromey <tom@tromey.com>
8033
8034 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8035 methods.
8036 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8037 (lookup_ranges_base): Likewise.
8038 (read_cutu_die_from_dwo, read_full_die_1): Update.
8039
436c571c
TT
80402020-03-26 Tom Tromey <tom@tromey.com>
8041
8042 * dwarf2/read.c (read_import_statement, read_file_scope)
8043 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8044 (read_lexical_block_scope, read_call_site_scope)
8045 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8046 (handle_struct_member_die, process_structure_scope)
8047 (update_enumeration_type_from_children)
8048 (process_enumeration_scope, read_array_type, read_common_block)
8049 (read_namespace, read_module, read_subroutine_type): Update.
8050 (sibling_die): Remove.
8051
052c8bb8
TT
80522020-03-26 Tom Tromey <tom@tromey.com>
8053
8054 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8055 (build_type_psymtabs_reader, read_structure_type)
8056 (read_enumeration_type, read_full_die_1): Update.
8057 (dwarf2_attr_no_follow): Move to die.h.
8058 * dwarf2/die.h (struct die_info) <attr>: New method.
8059
2b24b6e4
TT
80602020-03-26 Tom Tromey <tom@tromey.com>
8061
8062 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8063 <base_address>: Now an optional.
8064 (dwarf2_find_base_address, dwarf2_rnglists_process)
8065 (dwarf2_ranges_process, fill_in_loclist_baton)
8066 (dwarf2_symbol_mark_computed): Update.
8067
c2d50fd0
TT
80682020-03-26 Tom Tromey <tom@tromey.com>
8069
8070 * dwarf2/read.c (struct die_info): Move to die.h.
8071 * dwarf2/die.h: New file.
8072
0df7ad3a
TT
80732020-03-26 Tom Tromey <tom@tromey.com>
8074
8075 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8076 * dwarf2/read.c
8077 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8078 Move to line-header.c.
8079 (read_checked_initial_length_and_offset, read_formatted_entries):
8080 Likewise.
8081 (dwarf_decode_line_header): Split into two.
8082 * dwarf2/line-header.c
8083 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8084 Move from read.c.
8085 (read_checked_initial_length_and_offset, read_formatted_entries):
8086 Likewise.
8087 (dwarf_decode_line_header): New function, split from read.c.
8088
86c0bb4c
TT
80892020-03-26 Tom Tromey <tom@tromey.com>
8090
8091 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8092 Declare method.
8093 * dwarf2/read.c (read_attribute_value): Update.
8094 (dwarf2_per_objfile::read_line_string): Rename from
8095 read_indirect_line_string.
8096 (read_formatted_entries): Update.
8097
2ef46c2f
TT
80982020-03-26 Tom Tromey <tom@tromey.com>
8099
8100 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8101 variable.
8102
4f9c1eda
TT
81032020-03-26 Tom Tromey <tom@tromey.com>
8104
8105 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8106 const.
8107 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8108 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8109 parameter const.
8110
5a0e026f
TT
81112020-03-26 Tom Tromey <tom@tromey.com>
8112
8113 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8114 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8115 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8116 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8117
8844c11b
TT
81182020-03-26 Tom Tromey <tom@tromey.com>
8119
8120 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8121 file_names_size, file_full_name, file_file_name>: Use const.
8122 <file_name_at, file_names>: Add const overload.
8123 * dwarf2/line-header.c (line_header::file_file_name)
8124 (line_header::file_full_name): Update.
8125
c90ec28a
TT
81262020-03-26 Tom Tromey <tom@tromey.com>
8127
8128 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8129 (macro_start_file, consume_improper_spaces)
8130 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8131 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8132 (dwarf_decode_macros): Move to macro.c.
8133 * dwarf2/macro.c: New file.
8134 * dwarf2/macro.h: New file.
8135 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8136
4f44ae6c
TT
81372020-03-26 Tom Tromey <tom@tromey.com>
8138
8139 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8140 method.
8141 * dwarf2/section.c: New method. From
8142 read_indirect_string_at_offset_from.
8143 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8144 (read_indirect_string_at_offset_from): Move to section.c.
8145 (read_indirect_string_at_offset): Rewrite.
8146 (read_indirect_line_string_at_offset): Remove.
8147 (read_indirect_string, read_indirect_line_string)
8148 (dwarf_decode_macro_bytes): Update.
8149
a0194fa8
TT
81502020-03-26 Tom Tromey <tom@tromey.com>
8151
8152 * dwarf2/section.h (struct dwarf2_section_info)
8153 <overload_complaint>: Declare.
8154 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8155 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8156 Rename from dwarf2_section_buffer_overflow_complaint.
8157 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8158 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8159
3d27bbdb
TT
81602020-03-26 Tom Tromey <tom@tromey.com>
8161
8162 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8163 Declare.
8164 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8165 Move from read.c.
8166 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8167 to section.c.
8168
9eac9650
TT
81692020-03-26 Tom Tromey <tom@tromey.com>
8170
8171 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8172
bf80d710
TT
81732020-03-26 Tom Tromey <tom@tromey.com>
8174
8175 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8176 "builder".
8177 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8178 parameter.
8179 (dwarf_decode_macros): Update.
8180
0314b390
TT
81812020-03-26 Tom Tromey <tom@tromey.com>
8182
8183 * dwarf2/read.c (read_attribute_value): Update.
8184 (read_indirect_string_from_dwz): Move to dwz.c; change into
8185 method.
8186 (dwarf_decode_macro_bytes): Update.
8187 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8188 * dwarf2/dwz.c: New file.
8189 * Makefile.in (COMMON_SFILES): Add dwz.c.
8190
9fda78b6
TT
81912020-03-26 Tom Tromey <tom@tromey.com>
8192
8193 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8194 * dwarf2/read.c: Add include.
8195 * dwarf2/index-write.c: Add include.
8196 * dwarf2/index-cache.c: Add include.
8197 * dwarf2/dwz.h: New file.
8198
33aa3c10
TT
81992020-03-25 Tom Tromey <tom@tromey.com>
8200
8201 * compile/compile-object-load.c (get_out_value_type): Mention
8202 correct symbol name in error message.
8203
d503b685
HD
82042020-03-25 Hannes Domani <ssbssa@yahoo.de>
8205
8206 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8207
7b1eff95
TV
82082020-03-25 Tom de Vries <tdevries@suse.de>
8209
8210 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8211 * symmisc.c (dump_symtab_1): Print user and includes fields.
8212 (maintenance_info_symtabs): Same.
8213
dd895392
AB
82142020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8215
8216 PR gdb/25534
8217 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8218 (riscv_regcache_cooked_write): New function.
8219 (riscv_push_dummy_call): Use new function.
8220 (riscv_return_value): Likewise.
8221
5ab2fbf1
SM
82222020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8223
8224 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8225 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8226 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8227 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8228 * infrun.c (follow_fork): Likewise.
8229 (follow_fork_inferior): Likewise.
8230 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8231 * linux-nat.h (class linux_nat_target): Likewise.
8232 * remote.c (class remote_target) <follow_fork>: Likewise.
8233 (remote_target::follow_fork): Likewise.
8234 * target-delegates.c: Re-generate.
8235 * target.c (default_follow_fork): Likewise.
8236 (target_follow_fork): Likewise.
8237 * target.h (struct target_ops) <follow_fork>: Likewise.
8238 (target_follow_fork): Likewise.
8239
a64fafb5
TV
82402020-03-24 Tom de Vries <tdevries@suse.de>
8241
8242 * psymtab.c (maintenance_info_psymtabs): Print user field.
8243
fe26d3a3
TT
82442020-03-20 Tom Tromey <tromey@adacore.com>
8245
8246 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8247 const.
8248 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8249 const.
8250
c884cc46
SM
82512020-03-20 Simon Marchi <simon.marchi@efficios.com>
8252
8253 * ptrace.m4: Don't check for ptrace declaration.
8254 * config.in: Re-generate.
8255 * configure: Re-generate.
8256 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8257 not defined.
8258
1ff700c2
KR
82592020-03-20 Kamil Rytarowski <n54@gmx.com>
8260
8261 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8262 `PTRACE_TYPE_RET'.
8263 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8264 * sparc-nat.c (gdb_ptrace): Likewise.
8265 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8266
f7d4f0b1
TT
82672020-03-20 Tom Tromey <tromey@adacore.com>
8268
8269 * c-exp.y (lex_one_token): Fix assert.
8270
f67210ff
TT
82712020-03-20 Tom Tromey <tromey@adacore.com>
8272
8273 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8274 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8275 strncpy call.
8276
1773be9e
TT
82772020-03-20 Tom Tromey <tromey@adacore.com>
8278
8279 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8280
70304be9
TT
82812020-03-20 Tom Tromey <tromey@adacore.com>
8282
8283 * ada-valprint.c (print_variant_part): Remove parameters; switch
8284 to value-based API.
8285 (print_field_values): Likewise.
8286 (ada_val_print_struct_union): Likewise.
8287 (ada_value_print_1): Update.
8288
9faa006d
KR
82892020-03-20 Kamil Rytarowski <n54@gmx.com>
8290
8291 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8292 nbsd_nat_target instead of inf_ptrace_target.
8293 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8294 nbsd_nat_target.
8295
4a90f062
KR
82962020-03-20 Kamil Rytarowski <n54@gmx.com>
8297
8298 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8299 it to the ptrace call.
8300 * (store_registers): Likewise.
8301
83022020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
8303
8304 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8305 it to the ptrace call.
8306 * (store_registers): Likewise.
8307
2d07da27
LM
83082020-03-19 Luis Machado <luis.machado@linaro.org>
8309
8310 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8311 valid, fetch vg value from ptrace.
8312
f09db380
KR
83132020-03-19 Kamil Rytarowski <n54@gmx.com>
8314 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8315 * inf-ptrace.c: Likewise.
8316 * (gdb_ptrace): Add.
8317 * (inf_ptrace_target::resume): Update.
8318 * (inf_ptrace_target::xfer_partial): Likewise.
8319 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8320 * (inf_ptrace_peek_poke): Update.
8321
fcc7376e
KR
83222020-03-19 Kamil Rytarowski <n54@gmx.com>
8323
8324 * x86-bsd-nat.c (gdb_ptrace): New.
8325 * (x86bsd_dr_set): Add new argument `ptid'.
8326 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8327 x86bsd_dr_set_addr): Update.
8328
cada5fc9
AB
83292020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8330
8331 * remote.c (remote_target::process_stop_reply): Handle events for
8332 all threads differently.
8333
19a2740f
AB
83342020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8335
8336 * completer.c (completion_tracker::remove_completion): Define new
8337 function.
8338 * completer.h (completion_tracker::remove_completion): Declare new
8339 function.
8340 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8341 when adding a C++ function symbol.
8342
724fd9ba
AB
83432020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8344
8345 * completer.c (completion_tracker::completion_hash_entry): Define
8346 new class.
8347 (advance_to_filename_complete_word_point): Call
8348 recompute_lowest_common_denominator.
8349 (completion_tracker::completion_tracker): Call discard_completions
8350 to setup the hash table.
8351 (completion_tracker::discard_completions): Allow for being called
8352 from the constructor, pass new equal function, and element deleter
8353 when constructing the hash table. Initialise new class member
8354 variables.
8355 (completion_tracker::maybe_add_completion): Remove use of
8356 m_entries_vec, and store more information into m_entries_hash.
8357 (completion_tracker::recompute_lcd_visitor): New function, most
8358 content taken from...
8359 (completion_tracker::recompute_lowest_common_denominator):
8360 ...here, this now just visits each item in the hash calling the
8361 above visitor.
8362 (completion_tracker::build_completion_result): Remove use of
8363 m_entries_vec, call recompute_lowest_common_denominator.
8364 * completer.h (completion_tracker::have_completions): Remove use
8365 of m_entries_vec.
8366 (completion_tracker::completion_hash_entry): Declare new class.
8367 (completion_tracker::recompute_lowest_common_denominator): Change
8368 function signature.
8369 (completion_tracker::recompute_lcd_visitor): Declare new function.
8370 (completion_tracker::m_entries_vec): Delete.
8371 (completion_tracker::m_entries_hash): Initialize to NULL.
8372 (completion_tracker::m_lowest_common_denominator_valid): New
8373 member variable.
8374 (completion_tracker::m_lowest_common_denominator_max_length): New
8375 member variable.
8376
5a82b8a1
KR
83772020-03-17 Kamil Rytarowski <n54@gmx.com>
8378
8379 * regformats/regdef.h: Put reg in gdb namespace.
8380
fb516a69
KR
83812020-03-17 Kamil Rytarowski <n54@gmx.com>
8382
8383 * i386-bsd-nat.c (gdb_ptrace): New.
8384 * (i386bsd_fetch_inferior_registers,
8385 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8386 * (i386bsd_fetch_inferior_registers,
8387 i386bsd_store_inferior_registers) Use gdb_ptrace.
8388
1c0aa1fb
KR
83892020-03-17 Kamil Rytarowski <n54@gmx.com>
8390
8391 * amd64-bsd-nat.c (gdb_ptrace): New.
8392 * (amd64bsd_fetch_inferior_registers,
8393 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8394 * (amd64bsd_fetch_inferior_registers,
8395 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8396
5ccd2fb7
KR
83972020-03-17 Kamil Rytarowski <n54@gmx.com>
8398
8399 * user-regs.c (user_reg::read): Rename to...
8400 (user_reg::xread): ...this.
8401 * (append_user_reg): Rename argument `read' to `xread'.
8402 * (user_reg_add_builtin): Likewise.
8403 * (user_reg_add): Likewise.
8404 * (value_of_user_reg): Likewise.
8405
2108a63a
KR
84062020-03-17 Kamil Rytarowski <n54@gmx.com>
8407
8408 * sparc-nat.c (gdb_ptrace): New.
8409 * sparc-nat.c (sparc_fetch_inferior_registers)
8410 (sparc_store_inferior_registers) Remove obsolete comment.
8411 * sparc-nat.c (sparc_fetch_inferior_registers)
8412 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8413 * sparc-nat.c (sparc_fetch_inferior_registers)
8414 (sparc_store_inferior_registers) Use gdb_ptrace.
8415
a225c9a8
KR
84162020-03-17 Kamil Rytarowski <n54@gmx.com>
8417
8418 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8419 it to the ptrace call.
8420 * sh-nbsd-nat.c (store_registers): Likewise.
8421
98097623
KR
84222020-03-17 Kamil Rytarowski <n54@gmx.com>
8423
8424 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8425 nbsd_nat_target instead of inf_ptrace_target.
8426 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8427 nbsd_nat_target.
8428
9e38d619
KR
84292020-03-17 Kamil Rytarowski <n54@gmx.com>
8430
8431 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8432
a2ecbe9f
KR
84332020-03-17 Kamil Rytarowski <n54@gmx.com>
8434
8435 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8436 <sys/sysctl.h>.
8437 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8438
58990295
TV
84392020-03-17 Tom de Vries <tdevries@suse.de>
8440
8441 PR gdb/23710
8442 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8443 fields.
8444 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8445 fields.
8446 (process_imported_unit_die): Skip import of c++ CUs.
8447
771dd3a8
TT
84482020-03-16 Tom Tromey <tom@tromey.com>
8449
8450 * p-valprint.c (pascal_object_print_value): Initialize
8451 base_value.
8452
817a7585
AK
84532020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8454 Shahab Vahedi <shahab@synopsys.com>
8455
8456 * Makefile.in: Add arch/arc.o
8457 * configure.tgt: Likewise.
8458 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8459 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 8460 (arc_read_description): New function to cache target descriptions.
817a7585
AK
8461 * arc-tdep.h (arc_read_description): Add proto type.
8462 * arch/arc.c: New file.
8463 * arch/arc.h: Likewise.
8464 * features/Makefile: Replace old target descriptions with new.
8465 * features/arc-arcompact.c: Remove.
8466 * features/arc-arcompact.xml: Likewise.
8467 * features/arc-v2.c: Likewise
8468 * features/arc-v2.xml: Likewise
8469 * features/arc/aux-arcompact.xml: New file.
8470 * features/arc/aux-v2.xml: Likewise.
8471 * features/arc/core-arcompact.xml: Likewise.
8472 * features/arc/core-v2.xml: Likewise.
8473 * features/arc/aux-arcompact.c: Generate.
8474 * features/arc/aux-v2.c: Likewise.
8475 * features/arc/core-arcompact.c: Likewise.
8476 * features/arc/core-v2.c: Likewise.
8477 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8478
67430cd0
TT
84792020-03-16 Tom Tromey <tromey@adacore.com>
8480
8481 PR gdb/25663:
8482 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8483 putting value into bcache.
8484
30efb6c7
SM
84852020-03-16 Simon Marchi <simon.marchi@efficios.com>
8486
8487 PR gdb/21500
8488 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8489 to...
8490 (amd64_windows_init_abi_common): ... this. Don't set size of
8491 long type.
8492 (amd64_windows_init_abi): New function.
8493 (amd64_cygwin_init_abi): New function.
8494 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8495 the Cygwin OS ABI.
8496 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8497 comment.
8498
8db52437
SM
84992020-03-16 Simon Marchi <simon.marchi@efficios.com>
8500
8501 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8502 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8503 (pe_import_directory_entry): New struct type.
8504 (is_linked_with_cygwin_dll): New function.
8505 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8506 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8507 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8508
5982a56a
SM
85092020-03-16 Simon Marchi <simon.marchi@efficios.com>
8510
8511 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8512 i386_cygwin_core_osabi_sniffer.
8513
7a1998df
SM
85142020-03-16 Simon Marchi <simon.marchi@efficios.com>
8515
8516 * i386-cygwin-tdep.c: Rename to...
8517 * i386-windows-tdep.c: ... this.
8518 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8519 i386-windows-tdep.c.
8520 * configure.tgt: Likewise.
8521
053205cc
SM
85222020-03-16 Simon Marchi <simon.marchi@efficios.com>
8523
8524 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8525 * osabi.c (gdb_osabi_names): Add "Windows".
8526 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8527 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8528 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8529 i386_cygwin_osabi_sniffer.
8530 (_initialize_i386_cygwin_tdep): Register OS ABI
8531 GDB_OSABI_WINDOWS for i386.
8532 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8533 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8534 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8535 for x86-64.
8536 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8537 when the target matches '*-*-mingw*'.
8538
fe4b2ee6
SM
85392020-03-16 Simon Marchi <simon.marchi@efficios.com>
8540
8541 * defs.h (enum gdb_osabi): Move to...
8542 * osabi.h (enum gdb_osabi): ... here.
8543 * gdbarch.sh: Include osabi.h in gdbarch.h.
8544 * gdbarch.h: Re-generate.
8545
cb9b645d
SM
85462020-03-16 Simon Marchi <simon.marchi@efficios.com>
8547
8548 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8549 function.
8550 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8551
3293bbaf
TT
85522020-03-14 Tom Tromey <tom@tromey.com>
8553
8554 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8555 for C++.
8556 (c_type_print_modifier): Likewise. Add "language" parameter.
8557 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8558 (c_type_print_base_1): Update.
8559 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8560 constants.
8561 * type-stack.c (type_stack::insert): Handle tp_atomic and
8562 tp_restrict.
8563 (type_stack::follow_type_instance_flags): Likewise.
8564 (type_stack::follow_types): Likewise. Merge type-following code.
8565 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8566 (space_identifier, cv_with_space_id)
8567 (const_or_volatile_or_space_identifier_noopt)
8568 (const_or_volatile_or_space_identifier): Remove.
8569 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8570 rules.
8571 (ptr_operator, typebase): Update.
8572 (enum token_flag) <FLAG_C>: New constant.
8573 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8574 "_Atomic".
8575 (lex_one_token): Handle FLAG_C.
8576
154151a6
KR
85772020-03-14 Kamil Rytarowski <n54@gmx.com>
8578
8579 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8580 it to the ptrace call.
8581 * m68k-bsd-nat.c (store_registers): Likewise.
8582
bc107784
KR
85832020-03-14 Kamil Rytarowski <n54@gmx.com>
8584
8585 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8586 gdb_byte *.
8587 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8588 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8589 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8590
01a80117
KR
85912020-03-14 Kamil Rytarowski <n54@gmx.com>
8592
8593 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8594 nbsd_nat_target instead of inf_ptrace_target.
8595 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8596 nbsd_nat_target.
8597
f90280ca
KR
85982020-03-14 Kamil Rytarowski <n54@gmx.com>
8599
8600 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8601 register_t.
8602
6def66f1
KR
86032020-03-14 Kamil Rytarowski <n54@gmx.com>
8604
8605 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8606 it to the ptrace call.
8607 * alpha-bsd-nat.c (store_registers): Likewise.
8608
66eaca97
KR
86092020-03-14 Kamil Rytarowski <n54@gmx.com>
8610
8611 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8612 includes.
8613 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8614 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8615 fill_fpregset): Likewise.
8616
4fed520b
KR
86172020-03-14 Kamil Rytarowski <n54@gmx.com>
8618
8619 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8620 nbsd_nat_target instead of inf_ptrace_target.
8621 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8622 nbsd_nat_target.
8623
2190cf06
KR
86242020-03-14 Kamil Rytarowski <n54@gmx.com>
8625
8626 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8627 register_t.
8628
75c56d3d
KR
86292020-03-14 Kamil Rytarowski <n54@gmx.com>
8630
8631 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8632 it to the ptrace call.
8633 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8634 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8635 * arm-nbsd-nat.c (store_register): Likewise.
8636 * arm-nbsd-nat.c (store_regs): Likewise.
8637 * arm-nbsd-nat.c (store_fp_register): Likewise.
8638 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8639
6018d381
KR
86402020-03-14 Kamil Rytarowski <n54@gmx.com>
8641
8642 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8643 nbsd_nat_target instead of inf_ptrace_target.
8644 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8645 nbsd_nat_target.
8646
013f99f0
KR
86472020-03-14 Kamil Rytarowski <n54@gmx.com>
8648
8649 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8650 it to the ptrace call.
8651 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8652
12753073
KR
86532020-03-14 Kamil Rytarowski <n54@gmx.com>
8654
6227b330
KR
8655 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8656 it to the ptrace call.
8657 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8658
86592020-03-14 Kamil Rytarowski <n54@gmx.com>
8660
8661 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8662 gdb_byte *.
12753073
KR
8663 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8664
d5be5fa4
KR
86652020-03-14 Kamil Rytarowski <n54@gmx.com>
8666
8667 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8668 instead of inf_ptrace_target.
8669 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8670 nbsd_nat_target.
8671
8110f842
KR
86722020-03-14 Kamil Rytarowski <n54@gmx.com>
8673
8674 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8675 register_t.
8676
52feded7
KR
86772020-03-14 Kamil Rytarowski <n54@gmx.com>
8678
8679 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8680 register_t.
8681
25567eee
KR
86822020-03-14 Kamil Rytarowski <n54@gmx.com>
8683
8684 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8685 register_t.
8686
426a9c18
TT
86872020-03-13 Tom Tromey <tom@tromey.com>
8688
8689 * value.h (val_print): Don't declare.
8690 * valprint.h (val_print_array_elements)
8691 (val_print_scalar_formatted, generic_val_print): Don't declare.
8692 * valprint.c (generic_val_print_array): Take a struct value.
8693 (generic_val_print_ptr, generic_val_print_memberptr)
8694 (generic_val_print_bool, generic_val_print_int)
8695 (generic_val_print_char, generic_val_print_complex)
8696 (generic_val_print): Remove.
8697 (generic_value_print): Update.
8698 (do_val_print): Remove unused parameters. Don't call
8699 la_val_print.
8700 (val_print): Remove.
8701 (common_val_print): Update. Don't call value_check_printable.
8702 (val_print_scalar_formatted, val_print_array_elements): Remove.
8703 * rust-lang.c (rust_val_print): Remove.
8704 (rust_language_defn): Update.
8705 * p-valprint.c (pascal_val_print): Remove.
8706 (pascal_value_print_inner): Update.
8707 (pascal_object_print_val_fields, pascal_object_print_val):
8708 Remove.
8709 (pascal_object_print_static_field): Update.
8710 * p-lang.h (pascal_val_print): Don't declare.
8711 * p-lang.c (pascal_language_defn): Update.
8712 * opencl-lang.c (opencl_language_defn): Update.
8713 * objc-lang.c (objc_language_defn): Update.
8714 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8715 * m2-lang.h (m2_val_print): Don't declare.
8716 * m2-lang.c (m2_language_defn): Update.
8717 * language.h (struct language_defn) <la_val_print>: Remove.
8718 * language.c (unk_lang_value_print_inner): Rename. Change
8719 argument types.
8720 (unknown_language_defn, auto_language_defn): Update.
8721 * go-valprint.c (go_val_print): Remove.
8722 * go-lang.h (go_val_print): Don't declare.
8723 * go-lang.c (go_language_defn): Update.
8724 * f-valprint.c (f_val_print): Remove.
8725 * f-lang.h (f_value_print): Don't declare.
8726 * f-lang.c (f_language_defn): Update.
8727 * d-valprint.c (d_val_print): Remove.
8728 * d-lang.h (d_value_print): Don't declare.
8729 * d-lang.c (d_language_defn): Update.
8730 * cp-valprint.c (cp_print_value_fields)
8731 (cp_print_value_fields_rtti, cp_print_value): Remove.
8732 (cp_print_static_field): Update.
8733 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8734 (c_val_print_struct, c_val_print_union, c_val_print_int)
8735 (c_val_print_memberptr, c_val_print): Remove.
8736 * c-lang.h (c_val_print_array, cp_print_value_fields)
8737 (cp_print_value_fields_rtti): Don't declare.
8738 * c-lang.c (c_language_defn, cplus_language_defn)
8739 (asm_language_defn, minimal_language_defn): Update.
8740 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8741 (ada_val_print_enum): Take a struct value.
8742 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8743 (ada_val_print): Remove.
8744 (ada_value_print_1): Update.
8745 (printable_val_type): Remove.
8746 * ada-lang.h (ada_val_print): Don't declare.
8747 * ada-lang.c (ada_language_defn): Update.
8748
42331a1e
TT
87492020-03-13 Tom Tromey <tom@tromey.com>
8750
8751 * valprint.c (do_val_print): Update.
8752 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8753 a struct value.
8754 (value_to_value_object_no_release): Declare.
8755 * python/py-value.c (value_to_value_object_no_release): New
8756 function.
8757 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8758 struct value.
8759 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8760 function.
8761 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8762 a struct value.
8763 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8764 Declare.
8765 (gdbscm_apply_val_pretty_printer): Take a struct value.
8766 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8767 value.
8768 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8769 value.
8770 * extension-priv.h (struct extension_language_ops)
8771 <apply_val_pretty_printer>: Take a struct value.
8772 * cp-valprint.c (cp_print_value): Create a struct value.
8773 (cp_print_value): Update.
8774
3a916a97
TT
87752020-03-13 Tom Tromey <tom@tromey.com>
8776
8777 * ada-valprint.c (print_field_values): Call common_val_print.
8778
b59eac37
TT
87792020-03-13 Tom Tromey <tom@tromey.com>
8780
8781 * ada-valprint.c (val_print_packed_array_elements): Remove
8782 bitoffset and val parameters. Call common_val_print.
8783 (ada_val_print_string): Remove offset, address, and original_value
8784 parameters.
8785 (ada_val_print_array): Update.
8786 (ada_value_print_array): New function.
8787 (ada_value_print_1): Call it.
8788
03371129
TT
87892020-03-13 Tom Tromey <tom@tromey.com>
8790
8791 * ada-valprint.c (ada_value_print): Use common_val_print.
8792
2e088f8b
TT
87932020-03-13 Tom Tromey <tom@tromey.com>
8794
8795 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8796
39ef85a8
TT
87972020-03-13 Tom Tromey <tom@tromey.com>
8798
8799 * ada-valprint.c (ada_value_print_num): New function.
8800 (ada_value_print_1): Use it.
8801
b9fa6e07
TT
88022020-03-13 Tom Tromey <tom@tromey.com>
8803
8804 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8805
416595d6
TT
88062020-03-13 Tom Tromey <tom@tromey.com>
8807
8808 * ada-valprint.c (ada_value_print_ptr): New function.
8809 (ada_value_print_1): Use it.
8810
5b5e15ec
TT
88112020-03-13 Tom Tromey <tom@tromey.com>
8812
8813 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8814 call common_val_print.
8815 (ada_val_print_1): Update.
8816 (ada_value_print_1): New function.
8817 (ada_value_print_inner): Rewrite.
8818
fbf54e75
TT
88192020-03-13 Tom Tromey <tom@tromey.com>
8820
8821 * cp-valprint.c (cp_print_value_fields): Update.
8822 (cp_print_value): New function.
8823
64b653ca
TT
88242020-03-13 Tom Tromey <tom@tromey.com>
8825
8826 * m2-valprint.c (m2_value_print_inner): Use
8827 cp_print_value_fields.
8828 * cp-valprint.c (cp_print_value_fields): New function.
8829 * c-valprint.c (c_value_print_struct): New function.
8830 (c_value_print_inner): Use c_value_print_struct.
8831 * c-lang.h (cp_print_value_fields): Declare.
8832
6999f067
TT
88332020-03-13 Tom Tromey <tom@tromey.com>
8834
8835 * c-valprint.c (c_value_print_array): New function.
8836 (c_value_print_inner): Use it.
8837
ce80b8bd
TT
88382020-03-13 Tom Tromey <tom@tromey.com>
8839
8840 * c-valprint.c (c_value_print_memberptr): New function.
8841 (c_value_print_inner): Use it.
8842
2faac269
TT
88432020-03-13 Tom Tromey <tom@tromey.com>
8844
8845 * c-valprint.c (c_value_print_int): New function.
8846 (c_value_print_inner): Use it.
8847
da3e2c29
TT
88482020-03-13 Tom Tromey <tom@tromey.com>
8849
8850 * c-valprint.c (c_value_print_ptr): New function.
8851 (c_value_print_inner): Use it.
8852
50836231
TT
88532020-03-13 Tom Tromey <tom@tromey.com>
8854
8855 * c-valprint.c (c_value_print_inner): Rewrite.
8856
4f412b6e
TT
88572020-03-13 Tom Tromey <tom@tromey.com>
8858
8859 * valprint.c (generic_value_print_complex): New function.
8860 (generic_value_print): Use it.
8861
f5354008
TT
88622020-03-13 Tom Tromey <tom@tromey.com>
8863
8864 * valprint.c (generic_val_print_float): Don't call
8865 val_print_scalar_formatted.
8866 (generic_val_print, generic_value_print): Update.
8867
3eec3b05
TT
88682020-03-13 Tom Tromey <tom@tromey.com>
8869
8870 * valprint.c (generic_value_print_char): New function
8871 (generic_value_print): Use it.
8872
fdddfccb
TT
88732020-03-13 Tom Tromey <tom@tromey.com>
8874
8875 * valprint.c (generic_value_print_int): New function.
8876 (generic_value_print): Use it.
8877
6dde7521
TT
88782020-03-13 Tom Tromey <tom@tromey.com>
8879
8880 * valprint.c (generic_value_print_bool): New function.
8881 (generic_value_print): Use it.
8882
4112d2e6
TT
88832020-03-13 Tom Tromey <tom@tromey.com>
8884
8885 * valprint.c (generic_val_print_func): Simplify.
8886 (generic_val_print, generic_value_print): Update.
8887
65786af6
TT
88882020-03-13 Tom Tromey <tom@tromey.com>
8889
8890 * valprint.c (generic_val_print_flags): Remove.
8891 (generic_val_print, generic_value_print): Update.
8892 (val_print_type_code_flags): Add original_value parameter.
8893
40f3ce18
TT
88942020-03-13 Tom Tromey <tom@tromey.com>
8895
8896 * valprint.c (generic_val_print): Update.
8897 (generic_value_print): Update.
8898 * valprint.c (generic_val_print_enum): Don't call
8899 val_print_scalar_formatted.
8900
2a5b130b
TT
89012020-03-13 Tom Tromey <tom@tromey.com>
8902
8903 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8904 * valprint.c (generic_value_print_ptr): New function.
8905
abc66ce9
TT
89062020-03-13 Tom Tromey <tom@tromey.com>
8907
8908 * valprint.c (generic_value_print): Rewrite.
8909
07a32858
TT
89102020-03-13 Tom Tromey <tom@tromey.com>
8911
8912 * p-valprint.c (pascal_object_print_value_fields)
8913 (pascal_object_print_value): New functions.
8914
64d64d3a
TT
89152020-03-13 Tom Tromey <tom@tromey.com>
8916
8917 * p-valprint.c (pascal_value_print_inner): Rewrite.
8918
6a95a1f5
TT
89192020-03-13 Tom Tromey <tom@tromey.com>
8920
8921 * f-valprint.c (f_value_print_innner): Rewrite.
8922
59fcdac6
TT
89232020-03-13 Tom Tromey <tom@tromey.com>
8924
8925 * m2-valprint.c (m2_print_unbounded_array): New overload.
8926 (m2_print_unbounded_array): Update.
8927 (m2_print_array_contents): Take a struct value.
8928 (m2_value_print_inner): Rewrite.
8929
d133c3e1
TT
89302020-03-13 Tom Tromey <tom@tromey.com>
8931
8932 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8933 (d_value_print_inner): New function.
8934 * d-lang.h (d_value_print_inner): Declare.
8935 * d-lang.c (d_language_defn): Use d_value_print_inner.
8936
23b0f06b
TT
89372020-03-13 Tom Tromey <tom@tromey.com>
8938
8939 * go-valprint.c (go_value_print_inner): New function.
8940 * go-lang.h (go_value_print_inner): Declare.
8941 * go-lang.c (go_language_defn): Use go_value_print_inner.
8942
5f56f7cb
TT
89432020-03-13 Tom Tromey <tom@tromey.com>
8944
8945 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8946 API.
8947 (rust_val_print): Rewrite.
8948 (rust_value_print_inner): New function, from rust_val_print.
8949 (rust_language_defn): Use rust_value_print_inner.
8950
26792ee0
TT
89512020-03-13 Tom Tromey <tom@tromey.com>
8952
8953 * ada-valprint.c (ada_value_print_inner): New function.
8954 * ada-lang.h (ada_value_print_inner): Declare.
8955 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8956
24051bbe
TT
89572020-03-13 Tom Tromey <tom@tromey.com>
8958
8959 * f-valprint.c (f_value_print_innner): New function.
8960 * f-lang.h (f_value_print_innner): Declare.
8961 * f-lang.c (f_language_defn): Use f_value_print_innner.
8962
c0941be6
TT
89632020-03-13 Tom Tromey <tom@tromey.com>
8964
8965 * p-valprint.c (pascal_value_print_inner): New function.
8966 * p-lang.h (pascal_value_print_inner): Declare.
8967 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8968
62c4663d
TT
89692020-03-13 Tom Tromey <tom@tromey.com>
8970
8971 * m2-valprint.c (m2_value_print_inner): New function.
8972 * m2-lang.h (m2_value_print_inner): Declare.
8973 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8974
62182190
TT
89752020-03-13 Tom Tromey <tom@tromey.com>
8976
8977 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8978 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8979 * c-valprint.c (c_value_print_inner): New function.
8980 * c-lang.h (c_value_print_inner): Declare.
8981 * c-lang.c (c_language_defn, cplus_language_defn)
8982 (asm_language_defn, minimal_language_defn): Use
8983 c_value_print_inner.
8984
1e592a8a
TT
89852020-03-13 Tom Tromey <tom@tromey.com>
8986
8987 * p-valprint.c (pascal_object_print_value_fields): Now static.
8988 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8989
7fe471e9
TT
89902020-03-13 Tom Tromey <tom@tromey.com>
8991
8992 * c-valprint.c (c_val_print_array): Simplify.
8993
d121c6ce
TT
89942020-03-13 Tom Tromey <tom@tromey.com>
8995
8996 * valprint.c (value_print_array_elements): New function.
8997 * valprint.h (value_print_array_elements): Declare.
8998
4dba70ee
TT
89992020-03-13 Tom Tromey <tom@tromey.com>
9000
9001 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9002 * mips-tdep.c (mips_print_register): Use
9003 value_print_scalar_formatted.
9004
4f9ae810
TT
90052020-03-13 Tom Tromey <tom@tromey.com>
9006
9007 * valprint.h (value_print_scalar_formatted): Declare.
9008 * valprint.c (value_print_scalar_formatted): New function.
9009
156bfec9
TT
90102020-03-13 Tom Tromey <tom@tromey.com>
9011
9012 * valprint.h (generic_value_print): Declare.
9013 * valprint.c (generic_value_print): New function.
9014
2b4e573d
TT
90152020-03-13 Tom Tromey <tom@tromey.com>
9016
9017 * valprint.c (do_val_print): Call la_value_print_inner, if
9018 available.
9019 * rust-lang.c (rust_language_defn): Update.
9020 * p-lang.c (pascal_language_defn): Update.
9021 * opencl-lang.c (opencl_language_defn): Update.
9022 * objc-lang.c (objc_language_defn): Update.
9023 * m2-lang.c (m2_language_defn): Update.
9024 * language.h (struct language_defn) <la_value_print_inner>: New
9025 member.
9026 * language.c (unknown_language_defn, auto_language_defn): Update.
9027 * go-lang.c (go_language_defn): Update.
9028 * f-lang.c (f_language_defn): Update.
9029 * d-lang.c (d_language_defn): Update.
9030 * c-lang.c (c_language_defn, cplus_language_defn)
9031 (asm_language_defn, minimal_language_defn): Update.
9032 * ada-lang.c (ada_language_defn): Update.
9033
a1f6a07c
TT
90342020-03-13 Tom Tromey <tom@tromey.com>
9035
9036 * c-valprint.c (c_value_print): Use common_val_print.
9037
410cf315
TT
90382020-03-13 Tom Tromey <tom@tromey.com>
9039
9040 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9041
72a45c93
TT
90422020-03-13 Tom Tromey <tom@tromey.com>
9043
9044 * f-valprint.c (f77_print_array_1, f_val_print): Use
9045 common_val_print.
9046
040f66bd
TT
90472020-03-13 Tom Tromey <tom@tromey.com>
9048
9049 * riscv-tdep.c (riscv_print_one_register_info): Use
9050 common_val_print.
9051
a6e05a6c
TT
90522020-03-13 Tom Tromey <tom@tromey.com>
9053
9054 * mi/mi-main.c (output_register): Use common_val_print.
9055
3444c526
TT
90562020-03-13 Tom Tromey <tom@tromey.com>
9057
9058 * infcmd.c (default_print_one_register_info): Use
9059 common_val_print.
9060
c2a44efe
TT
90612020-03-13 Tom Tromey <tom@tromey.com>
9062
9063 * valprint.h (common_val_print_checked): Declare.
9064 * valprint.c (common_val_print_checked): New function.
9065 * stack.c (print_frame_arg): Use common_val_print_checked.
9066
b0c26e99
TT
90672020-03-13 Tom Tromey <tom@tromey.com>
9068
9069 * valprint.c (do_val_print): New function, from val_print.
9070 (val_print): Use do_val_print.
9071 (common_val_print): Use do_val_print.
9072
ce3acbe9
TT
90732020-03-13 Tom Tromey <tom@tromey.com>
9074
9075 * valprint.c (value_print): Use scoped_value_mark.
9076
96c7f873
TV
90772020-03-13 Tom de Vries <tdevries@suse.de>
9078
9079 PR symtab/25646
9080 * psymtab.c (partial_symtab::partial_symtab): Don't set
9081 globals_offset and statics_offset. Push element onto
9082 current_global_psymbols and current_static_psymbols stacks.
9083 (concat): New function.
9084 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9085 element from current_global_psymbols and current_static_psymbols
9086 stacks. Concat popped elements to global_psymbols and
9087 static_symbols.
9088 (add_psymbol_to_list): Use current_global_psymbols and
9089 current_static_psymbols stacks.
9090 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9091 current_static_psymbols fields.
9092
6ba0a321
CB
90932020-03-12 Christian Biesinger <cbiesinger@google.com>
9094
9095 * corelow.c (sniff_core_bfd): Remove.
9096 (class core_target) <m_core_vec>: Remove.
9097 (core_target::core_target): Update.
9098 (core_file_fns): Remove.
9099 (deprecated_add_core_fns): Remove.
9100 (default_core_sniffer): Remove.
9101 (sniff_core_bfd): Remove.
9102 (default_check_format): Remove.
9103 (gdb_check_format): Remove.
9104 (core_target_open): Update.
9105 (core_target::get_core_register_section): Update.
9106 (get_core_registers_cb): Update.
9107 (core_target::fetch_registers): Update.
9108 * gdbcore.h (struct core_fns): Remove.
9109 (deprecated_add_core_fns): Remove.
9110 (default_core_sniffer): Remove.
9111 (default_check_format): Remove.
9112
227031b2
TT
91132020-03-12 Tom Tromey <tom@tromey.com>
9114
9115 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9116 CORE_ADDR.
9117 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9118
53807e9f
TT
91192020-03-12 Tom Tromey <tom@tromey.com>
9120
9121 * remote.c (remote_target::download_tracepoint)
9122 (remote_target::enable_tracepoint)
9123 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9124 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9125 sprintf_vma.
9126
64f25102
TT
91272020-03-12 Tom Tromey <tom@tromey.com>
9128
9129 * symfile-mem.c: Update CORE_ADDR size assert.
9130
272cd5a3
SM
91312020-03-12 Simon Marchi <simon.marchi@efficios.com>
9132
9133 * selftest.m4: Move to gdbsupport/.
9134 * acinclude.m4: Update path to selftest.m4.
9135
74cd3f9d
SM
91362020-03-12 Simon Marchi <simon.marchi@efficios.com>
9137
9138 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9139 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9140 gdbarch-selfselftests.c and selftest-arch.c.
9141 (SUBDIR_UNITTESTS_OBS): Rename to...
9142 (SELFTESTS_OBS): ... this.
9143 (COMMON_SFILES): Remove disasm-selftests.c and
9144 gdbarch-selftests.c.
9145 * configure.ac: Don't add selftest-arch.{c,o} to
9146 CONFIG_{SRCS,OBS}.
9147 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9148 preprocessor conditions.
9149
db6878ac
SM
91502020-03-12 Simon Marchi <simon.marchi@efficios.com>
9151
9152 * configure.ac: Don't source bfd/development.sh.
9153 * selftest.m4: Modify comment.
9154 * configure: Re-generate.
9155
4d696a5c
SM
91562020-03-12 Simon Marchi <simon.marchi@efficios.com>
9157
9158 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9159 not "true" or "false".
9160 * configure: Re-generate.
9161
8dd8e1c7
CB
91622020-03-12 Christian Biesinger <cbiesinger@google.com>
9163
9164 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9165 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9166 renamed to arm_nbsd_supply_gregset.
9167 (fetch_register): Update to call arm_nbsd_supply_gregset.
9168 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9169 (arm_netbsd_nat_target::fetch_registers): Update.
9170 (fetch_elfcore_registers): Removed.
9171 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9172 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9173 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9174 not require NetBSD system headers.
9175 (arm_nbsd_regset): New struct.
9176 (arm_nbsd_iterate_over_regset_sections): New function.
9177 (arm_netbsd_init_abi_common): Updated to call
9178 set_gdbarch_iterate_over_regset_sections.
9179 * arm-nbsd-tdep.h: New file.
9180
dd69bf7a
KB
91812020-03-11 Kevin Buettner <kevinb@redhat.com>
9182
9183 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9184 recursion.
9185
a0761e34
SM
91862020-03-11 Simon Marchi <simon.marchi@efficios.com>
9187
9188 * configure: Re-generate.
9189
e7a82140
TT
91902020-03-11 Tom Tromey <tromey@adacore.com>
9191
9192 * ada-typeprint.c (print_choices): Fix comment.
9193
dcc050c8
AB
91942020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9195
9196 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9197 previous item in the list, when the list has no items.
9198
1c33af77
TV
91992020-03-11 Tom de Vries <tdevries@suse.de>
9200
9201 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9202 PROP_LOCLIST handling code.
9203
8c95582d
AB
92042020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9205
9206 * buildsym-legacy.c (record_line): Pass extra parameter to
9207 record_line.
9208 * buildsym.c (buildsym_compunit::record_line): Take an extra
9209 parameter, reduce duplication in the line table, and record the
9210 is_stmt flag in the line table.
9211 * buildsym.h (buildsym_compunit::record_line): Add extra
9212 parameter.
9213 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9214 non-statement lines.
9215 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9216 this to the symtab builder.
9217 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9218 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9219 through to dwarf_record_line_1.
9220 * infrun.c (process_event_stop_test): When stepping, don't stop at
9221 a non-statement instruction, and only refresh the step info when
9222 we land in the middle of a line's range. Also add an extra
9223 comment.
9224 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9225 field.
9226 * record-btrace.c (btrace_find_line_range): Only record lines
9227 marked as is-statement.
9228 * stack.c (frame_show_address): Show the frame address if we are
9229 in a non-statement sal.
9230 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9231 (maintenance_print_one_line_table): Print a header for the is_stmt
9232 column, and include is_stmt information in the output.
9233 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9234 preference to non-statements.
9235 (find_pcs_for_symtab_line): Prefer is-statement entries.
9236 (find_line_common): Likewise.
9237 * symtab.h (struct linetable_entry): Add is_stmt field.
9238 (struct symtab_and_line): Likewise.
9239 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9240 arranging the line table.
9241
e4003a34
TV
92422020-03-07 Tom de Vries <tdevries@suse.de>
9243
9244 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9245 DIE.
9246
e8932576
TT
92472020-03-07 Tom Tromey <tom@tromey.com>
9248
9249 * valops.c (value_literal_complex): Remove obsolete comment.
9250 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9251 comment.
9252
29734269
SM
92532020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9254
9255 * infrun.h: Forward-declare thread_info.
9256 (set_step_info): Add thread_info parameter, add doc.
9257 * infrun.c (set_step_info): Add thread_info parameter, move doc
9258 to header.
9259 * infrun.c (process_event_stop_test): Pass thread to
9260 set_step_info call.
9261 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9262 set_step_info.
9263 (prepare_one_step): Add thread_info parameter, pass it to
9264 set_step_frame and prepare_one_step (recursive) call.
9265 (step_1): Pass thread to prepare_one_step call.
9266 (step_command_fsm::should_stop): Pass thread to
9267 prepare_one_step.
9268 (until_next_fsm): Pass thread to set_step_frame call.
9269 (finish_command): Pass thread to set_step_info call.
9270
b7d64b29
HD
92712020-03-06 Hannes Domani <ssbssa@yahoo.de>
9272
9273 * windows-tdep.c (windows_solib_create_inferior_hook):
9274 Check if inferior is running.
9275
09f2921c
TV
92762020-03-06 Tom de Vries <tdevries@suse.de>
9277
9278 * NEWS: Fix "the the".
9279 * ctfread.c: Same.
9280
fd760e79
TV
92812020-03-06 Tom de Vries <tdevries@suse.de>
9282
9283 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9284
20ea4a60
AB
92852020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9286
9287 * .dir-locals.el: Add a comment referencing the other copies of
9288 this file.
9289
0afbabf0
JB
92902020-03-05 John Baldwin <jhb@FreeBSD.org>
9291
9292 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9293 psargs.
9294
842806cb
TBA
92952020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9296
9297 * .gitattributes: New file.
9298
be1e3d3e
TT
92992020-03-04 Tom Tromey <tom@tromey.com>
9300
9301 * symmisc.c (print_symbol_bcache_statistics)
9302 (print_objfile_statistics): Update.
9303 * symfile.c (allocate_symtab): Use intern.
9304 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9305 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9306 macro_cache>: Remove.
9307 <string_cache>: New member.
9308 (struct objfile) <intern>: New methods.
9309 * elfread.c (elf_symtab_read): Use intern.
9310 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9311 (dwarf2_compute_name, dwarf2_physname)
9312 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9313 names.
9314 (guess_partial_die_structure_name): Update.
9315 (partial_die_info::fixup): Intern name.
9316 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9317 name.
9318 (dwarf2_name): Intern name. Update.
9319 * buildsym.c (buildsym_compunit::get_macro_table): Use
9320 string_cache.
9321
4e7625fd
TT
93222020-03-04 Tom Tromey <tom@tromey.com>
9323
9324 * jit.c (bfd_open_from_target_memory): Make "target" const.
9325 * corefile.c (gnutarget): Now const.
9326 * gdbcore.h (gnutarget): Now const.
9327
46f9f931
HD
93282020-03-04 Hannes Domani <ssbssa@yahoo.de>
9329
9330 * NEWS: Mention support for WOW64 processes.
9331 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9332 (amd64_windows_segment_register_p): Remove static.
9333 (_initialize_amd64_windows_nat): Update.
9334 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9335 * i386-windows-nat.c (context_offset): Update.
9336 (i386_mappings): Rename and remove static.
9337 (i386_windows_segment_register_p): Remove static.
9338 (_initialize_i386_windows_nat): Update.
9339 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9340 (STATUS_WX86_SINGLE_STEP): New macro.
9341 (EnumProcessModulesEx): New macro.
9342 (Wow64SuspendThread): New macro.
9343 (Wow64GetThreadContext): New macro.
9344 (Wow64SetThreadContext): New macro.
9345 (Wow64GetThreadSelectorEntry): New macro.
9346 (windows_set_context_register_offsets): Add static.
9347 (windows_set_segment_register_p): Likewise.
9348 (windows_add_thread): Adapt for WOW64 processes.
9349 (windows_fetch_one_register): Likewise.
9350 (windows_nat_target::fetch_registers): Likewise.
9351 (windows_store_one_register): Likewise.
9352 (display_selector): Likewise.
9353 (display_selectors): Likewise.
9354 (handle_exception): Likewise.
9355 (windows_continue): Likewise.
9356 (windows_nat_target::resume): Likewise.
9357 (windows_add_all_dlls): Likewise.
9358 (do_initial_windows_stuff): Likewise.
9359 (windows_nat_target::attach): Likewise.
9360 (windows_get_exec_module_filename): Likewise.
9361 (windows_nat_target::create_inferior): Likewise.
9362 (windows_xfer_siginfo): Likewise.
9363 (_initialize_loadable): Initialize Wow64SuspendThread,
9364 Wow64GetThreadContext, Wow64SetThreadContext,
9365 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9366 * windows-nat.h (windows_set_context_register_offsets):
9367 Remove declaration.
9368 (windows_set_segment_register_p): Likewise.
9369 (i386_windows_segment_register_p): Add declaration.
9370 (amd64_windows_segment_register_p): Likewise.
9371
440cf44e
LM
93722020-03-04 Luis Machado <luis.machado@linaro.org>
9373
9374 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9375 in "info registers" for AArch64/ARM.
9376
9377 The change caused "info registers" to not print GPR's.
9378
9379 gdb/ChangeLog:
9380
9381 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9382
9383 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9384 when reg->group is empty and reggroup is not.
9385
1009d92f
TT
93862020-03-03 Tom Tromey <tromey@adacore.com>
9387
9388 * dwarf2/frame.c (struct dwarf2_frame_cache)
9389 <checked_tailcall_bottom, entry_cfa_sp_offset,
9390 entry_cfa_sp_offset_p>: Remove members.
9391 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9392 (dwarf2_frame_prev_register): Don't call
9393 dwarf2_tailcall_sniffer_first.
9394 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9395 * frame-unwind.c (add_unwinder): New fuction.
9396 (frame_unwind_init): Use it. Add tailcall unwinder.
9397
5e5d66b6
AB
93982020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9399 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9400
9401 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9402 value should be printed as true.
9403
584cf46d
HD
94042020-03-03 Hannes Domani <ssbssa@yahoo.de>
9405
9406 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9407 (windows_init_abi): Set and use windows_so_ops.
9408
7b973adc
SDJ
94092020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9410
9411 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9412 when verifying if dealing with a convenience variable.
9413
bb7b70ab
LM
94142020-03-03 Luis Machado <luis.machado@linaro.org>
9415
9416 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9417
9822cb57
SM
94182020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9419
9420 * infrun.c (gdbarch_supports_displaced_stepping): New.
9421 (use_displaced_stepping): Break up conditions in smaller pieces.
9422 Use gdbarch_supports_displaced_stepping.
9423 (displaced_step_prepare_throw): Use
9424 gdbarch_supports_displaced_stepping.
9425
63e163f2
AB
94262020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9427
9428 * NEWS: Mention new behaviour of the history filename.
9429 * top.c (write_history_p): Add comment.
9430 (show_write_history_p): Add header comment, give a different
9431 message when history writing is on, but the history filename is
9432 empty.
9433 (history_filename): Add comment.
9434 (history_filename_empty): New function.
9435 (show_history_filename): Add header comment, give a different
9436 message when the filename is empty.
9437 (init_history): Compare history_filename against nullptr, and only
9438 read history if the filename is not empty.
9439 (set_history_filename): Add header comment, and only make
9440 non-empty filenames absolute.
9441 (init_main): Make the filename argument to 'set history filename'
9442 optional.
9443
81b86b97
CB
94442020-03-02 Christian Biesinger <cbiesinger@google.com>
9445
9446 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9447 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9448 (fetch_fp_register): Update.
9449 (fetch_fp_regs): Update.
9450 (store_fp_register): Update.
9451 (store_fp_regs): Update.
9452 (arm_netbsd_nat_target::read_description): New function.
9453 (fetch_elfcore_registers): Update.
9454
24ed6739
AB
94552020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9456
9457 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9458 general_thread if the stop reply is missing a thread-id.
9459 (remote_target::process_stop_reply): Use the first non-exited
9460 thread if the target didn't pass a thread-id.
9461 * infrun.c (do_target_wait): Move call to
9462 switch_to_inferior_no_thread to ....
9463 (do_target_wait_1): ... here.
9464
a84bb2a0
JT
94652020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9466
9467 * debuginfod-support.c: Include defs.h first.
9468
658dadf0
TV
94692020-02-28 Tom de Vries <tdevries@suse.de>
9470
9471 * symfile.c (set_initial_language): Use default language for lookup.
9472
4ebe4877
SM
94732020-02-28 Simon Marchi <simon.marchi@efficios.com>
9474
9475 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9476 reader variable, pass `this` to read_cutu_die_from_dwo.
9477
e5da1139
AM
94782020-02-27 Aaron Merey <amerey@redhat.com>
9479
9480 * source.c (open_source_file): Check for nullptr when computing
9481 srcpath.
9482
317f7127
TT
94832020-02-27 Tom Tromey <tromey@adacore.com>
9484
9485 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9486 member.
9487 (dwarf2_add_field): Don't update nfields.
9488 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9489
3104d9ee
AB
94902020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9491
9492 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9493 abs.
9494
b83470bf
TT
94952020-02-26 Tom Tromey <tom@tromey.com>
9496
9497 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9498 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9499 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9500 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9501 per_cu_data.
9502
edfe0a0c
TT
95032020-02-26 Tom Tromey <tom@tromey.com>
9504
9505 * dwarf2/index-write.c (psym_index_map): Change type.
9506 (add_address_entry_worker, write_one_signatured_type)
9507 (recursively_count_psymbols, recursively_write_psymbols)
9508 (class debug_names, psyms_seen_size, write_gdbindex)
9509 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9510
0d79cdc4
AM
95112020-02-26 Aaron Merey <amerey@redhat.com>
9512
9513 * Makefile.in: Handle optional debuginfod support.
9514 * NEWS: Update.
9515 * README: Add --with-debuginfod summary.
9516 * config.in: Regenerate.
9517 * configure: Regenerate.
9518 * configure.ac: Handle optional debuginfod support.
9519 * debuginfod-support.c: debuginfod helper functions.
9520 * debuginfod-support.h: Ditto.
9521 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9522 summary.
9523 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9524 when a dwz file cannot be found.
9525 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9526 debuginfo file cannot be found.
9527 * source.c (open_source_file): Query debuginfod servers when a
9528 source file cannot be found.
9529 * top.c (print_gdb_configuration): Include
9530 --{with,without}-debuginfod in the output.
9531
b65ce565
JG
95322020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9533
9534 * thread.c (thr_try_catch_cmd): Print thread name.
9535
d4c9a4f8
SM
95362020-02-26 Simon Marchi <simon.marchi@efficios.com>
9537
9538 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9539 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9540 dwarf2_fetch_die_type_sect_off): Move to...
9541 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9542 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9543 dwarf2_fetch_die_type_sect_off): ... here.
9544 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9545 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9546 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9547
0dce4280
TV
95482020-02-26 Tom de Vries <tdevries@suse.de>
9549
9550 PR gdb/25603
9551 * symfile.c (set_initial_language): Exit-early if
9552 language_mode == language_mode_manual.
9553
450a1bfc
SM
95542020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9555
9556 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9557 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9558 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9559
9e80cfa1
AB
95602020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9561
9562 * gdbtypes.c (create_array_type_with_stride): Handle negative
9563 array strides.
9564 * valarith.c (value_subscripted_rvalue): Likewise.
9565
09624f1f
LM
95662020-02-25 Luis Machado <luis.machado@linaro.org>
9567
9568 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9569
8cb5117c
SM
95702020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9571
9572 * loc.h (dwarf2_get_die_type): Move to...
9573 * read.h (dwarf2_get_die_type): ... here.
9574 * read.c (dwarf2_get_die_type): Move doc to header.
9575
c325c44e
JB
95762020-02-25 Joel Brobecker <brobecker@adacore.com>
9577
9578 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9579 'gnulib/Makefile.in' to the list.
9580
4ac93832
TT
95812020-02-24 Tom Tromey <tom@tromey.com>
9582
9583 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9584 Remove.
9585 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9586 XOBNEWVEC.
9587
197400e8
TT
95882020-02-24 Tom Tromey <tom@tromey.com>
9589
9590 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9591 New method.
9592 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9593 (dw2_do_instantiate_symtab, dw2_get_file_names)
9594 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9595
76935768
TT
95962020-02-24 Tom Tromey <tom@tromey.com>
9597
9598 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9599 make_scoped_restore.
9600 (dwarf2_psymtab::read_symtab): Don't clear
9601 reading_partial_symbols.
9602
a88ef40d
TV
96032020-02-24 Tom de Vries <tdevries@suse.de>
9604
9605 PR gdb/25592
9606 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9607
c9af6521
TV
96082020-02-24 Tom de Vries <tdevries@suse.de>
9609
9610 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9611 commands layout next/prev/regs.
9612
5707a07a
TT
96132020-02-22 Tom Tromey <tom@tromey.com>
9614
9615 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9616 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9617
3b0fb49e
TT
96182020-02-22 Tom Tromey <tom@tromey.com>
9619
9620 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9621
283be8bf
TT
96222020-02-22 Tom Tromey <tom@tromey.com>
9623
9624 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9625 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9626 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9627 * tui/tui.c (_initialize_tui): Add usage text.
9628
ca793b96
TT
96292020-02-22 Tom Tromey <tom@tromey.com>
9630
9631 * tui/tui-win.c (tui_set_focus_command)
9632 (tui_set_win_height_command): Use error_no_arg.
9633 (_initialize_tui_win): Update help text.
9634 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9635
432b5c40
TT
96362020-02-22 Tom Tromey <tom@tromey.com>
9637
9638 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9639 * tui/tui-disasm.h (struct tui_disasm_window)
9640 <display_start_addr>: Declare.
9641 * tui/tui-source.h (struct tui_source_window)
9642 <display_start_addr>: Declare.
9643 * tui/tui-winsource.h (struct tui_source_window_base)
9644 <show_source_line, display_start_addr>: New methods.
9645 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9646 Rename and move to protected section.
9647 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9648 (tui_source_window_base::do_erase_source_content): Update.
9649 (tui_source_window_base::show_source_line): Now a method.
9650 (tui_source_window_base::show_source_content)
9651 (tui_source_window_base::tui_source_window_base)
9652 (tui_source_window_base::rerender)
9653 (tui_source_window_base::refill)
9654 (tui_source_window_base::do_scroll_horizontal)
9655 (tui_source_window_base::set_is_exec_point_at)
9656 (tui_source_window_base::update_breakpoint_info)
9657 (tui_source_window_base::update_exec_info): Update.
9658 * tui/tui-source.c (tui_source_window::set_contents)
9659 (tui_source_window::showing_source_p)
9660 (tui_source_window::do_scroll_vertical)
9661 (tui_source_window::location_matches_p)
9662 (tui_source_window::line_is_displayed): Update.
9663 (tui_source_window::display_start_addr): New method.
9664 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9665 (tui_disasm_window::do_scroll_vertical)
9666 (tui_disasm_window::location_matches_p): Update.
9667 (tui_disasm_window::display_start_addr): New method.
9668
01b1af32
TT
96692020-02-22 Tom Tromey <tom@tromey.com>
9670
9671 * NEWS: Add entry for gdb.register_window_type.
9672 * tui/tui-layout.h (window_factory): New typedef.
9673 (tui_register_window): Declare.
9674 * tui/tui-layout.c (saved_tui_windows): New global.
9675 (tui_apply_current_layout): Use it.
9676 (tui_register_window): New function.
9677 * python/python.c (do_start_initialization): Call
9678 gdbpy_initialize_tui.
9679 (python_GdbMethods): Add "register_window_type" function.
9680 * python/python-internal.h (gdbpy_register_tui_window)
9681 (gdbpy_initialize_tui): Declare.
9682 * python/py-tui.c: New file.
9683 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9684
fc96d20b
TT
96852020-02-22 Tom Tromey <tom@tromey.com>
9686
9687 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9688
935c78c0
TT
96892020-02-22 Tom Tromey <tom@tromey.com>
9690
9691 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9692 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9693 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9694 (tui_set_win_focus_to): Move from tui-win.c.
9695
0240c8f1
TT
96962020-02-22 Tom Tromey <tom@tromey.com>
9697
9698 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9699 functions.
9700 (known_window_types): New global.
9701 (tui_get_window_by_name): Reimplement.
9702 (initialize_known_windows): New function.
9703 (validate_window_name): Rewrite.
9704 (_initialize_tui_layout): Call initialize_known_windows.
9705
fdb01f0c
TT
97062020-02-22 Tom Tromey <tom@tromey.com>
9707
9708 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9709 Remove constants.
9710 * tui/tui-winsource.h (struct tui_source_window_base)
9711 <tui_source_window_base>: Remove parameter.
9712 * tui/tui-winsource.c
9713 (tui_source_window_base::tui_source_window_base): Remove
9714 parameter.
9715 (tui_source_window_base::refill): Update.
9716 * tui/tui-stack.h (struct tui_locator_window)
9717 <tui_locator_window>: Update.
9718 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9719 Default the constructor.
9720 * tui/tui-regs.h (struct tui_data_item_window)
9721 <tui_data_item_window>: Default the constructor.
9722 (struct tui_data_window) <tui_data_window>: Likewise.
9723 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9724 Default the constructor.
9725 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9726 Default the constructor.
9727 <type>: Remove.
9728 (struct tui_win_info) <tui_win_info>: Default the constructor.
9729 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9730 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9731 Default the constructor.
9732
865a5aec
TT
97332020-02-22 Tom Tromey <tom@tromey.com>
9734
9735 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9736 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9737 * tui/tui-win.c (tui_resize_all): Don't call
9738 tui_delete_invisible_windows.
9739 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9740 done.
9741 (tui_set_layout): Update.
9742 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9743 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9744 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9745
e098d18c
TT
97462020-02-22 Tom Tromey <tom@tromey.com>
9747
9748 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9749 correctly.
9750
eb9c8874
TT
97512020-02-22 Tom Tromey <tom@tromey.com>
9752
9753 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9754
7eed1a8e
TT
97552020-02-22 Tom Tromey <tom@tromey.com>
9756
9757 * tui/tui-winsource.h (struct tui_source_window_iterator)
9758 <inner_iterator>: New etytypedef.
9759 <tui_source_window_iterator>: Take "end" parameter.
9760 <tui_source_window_iterator>: Take iterator.
9761 <operator*, advance>: Update.
9762 <m_iter>: Change type.
9763 <m_end>: New field.
9764 (struct tui_source_windows) <begin, end>: Update.
9765 * tui/tui-layout.c (tui_windows): New global.
9766 (tui_apply_current_layout): Clear tui_windows.
9767 (tui_layout_window::apply): Update tui_windows.
9768 * tui/tui-data.h (tui_windows): Declare.
9769 (all_tui_windows): Now inline function.
9770 (class tui_window_iterator, struct all_tui_windows): Remove.
9771
7c043ba6
TT
97722020-02-22 Tom Tromey <tom@tromey.com>
9773
9774 PR tui/17850:
9775 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9776 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9777 "height" argument.
9778 (class tui_layout_window) <get_sizes>: Likewise.
9779 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9780 argument.
9781 <get_sizes>: Add "height" argument.
9782 <m_vertical>: New field.
9783 * tui/tui-layout.c (tui_layout_split::clone): Update.
9784 (tui_layout_split::get_sizes): Add "height" argument.
9785 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9786 (tui_new_layout_command): Parse "-horizontal".
9787 (_initialize_tui_layout): Update help string.
9788 (tui_layout_split::specification): Add "-horizontal" when needed.
9789 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9790 argument.
9791 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9792 New methods.
9793
6bc56648
TT
97942020-02-22 Tom Tromey <tom@tromey.com>
9795
9796 * tui/tui-layout.h (enum tui_adjust_result): New.
9797 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9798 (class tui_layout_window) <adjust_size>: Return
9799 tui_adjust_result. Rewrite.
9800 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9801 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9802
c22fef7e
TT
98032020-02-22 Tom Tromey <tom@tromey.com>
9804
9805 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9806 parameter and return types.
9807 (class tui_layout_base) <specification>: Add "depth".
9808 (class tui_layout_window) <specification>: Add "depth".
9809 (class tui_layout_split) <specification>: Add "depth".
9810 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9811 and return types.
9812 (tui_new_layout_command): Parse sub-layouts.
9813 (_initialize_tui_layout): Update help string.
9814 (tui_layout_window::specification): Add "depth".
9815 (add_layout_command): Update.
9816
ee325b61
TT
98172020-02-22 Tom Tromey <tom@tromey.com>
9818
9819 * NEWS: Add "tui new-layout" item.
9820 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9821 Add new-layout command to help text.
9822 (validate_window_name): New function.
9823 (tui_new_layout_command): New function.
9824 (_initialize_tui_layout): Register "new-layout".
9825 (tui_layout_window::specification): New method.
9826 (tui_layout_window::specification): New method.
9827 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9828 method.
9829 (class tui_layout_window) <specification>: New method.
9830 (class tui_layout_split) <specification>: New method.
9831
416eb92d
TT
98322020-02-22 Tom Tromey <tom@tromey.com>
9833
9834 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9835 * tui/tui-win.c (window_name_completer): Update comment.
9836 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9837 Declare method.
9838 (class tui_layout_window) <replace_window>: Likewise.
9839 (class tui_layout_split) <replace_window>: Likewise.
9840 (tui_set_layout): Don't declare.
9841 (tui_set_initial_layout): Declare function.
9842 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9843 (asm_regs_layout): New globals.
9844 (tui_current_layout, show_layout): Remove.
9845 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9846 (find_layout, tui_apply_layout): New function.
9847 (layout_completer): Remove.
9848 (tui_next_layout): Reimplement.
9849 (tui_next_layout_command): New function.
9850 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9851 (tui_regs_layout): Reimplement.
9852 (tui_regs_layout_command): New function.
9853 (extract_display_start_addr): Rewrite.
9854 (next_layout, prev_layout): Remove.
9855 (tui_layout_window::replace_window): New method.
9856 (tui_layout_split::replace_window): New method.
9857 (destroy_layout): New function.
9858 (layout_list): New global.
9859 (add_layout_command): New function.
9860 (initialize_layouts): Update.
9861 (tui_layout_command): New function.
9862 (_initialize_tui_layout): Install "layout" commands.
9863 * tui/tui-data.h (enum tui_layout_type): Remove.
9864 (tui_current_layout): Don't declare.
9865
0dbc2fc7
TT
98662020-02-22 Tom Tromey <tom@tromey.com>
9867
9868 * tui/tui-regs.c (tui_reg_layout): Remove.
9869 (tui_reg_command): Use tui_regs_layout.
9870 * tui/tui-layout.h (tui_reg_command): Declare.
9871 * tui/tui-layout.c (tui_reg_command): New function.
9872
5afe342e
TT
98732020-02-22 Tom Tromey <tom@tromey.com>
9874
9875 * tui/tui.c (tui_rl_delete_other_windows): Call
9876 tui_remove_some_windows.
9877 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9878 Declare method.
9879 (class tui_layout_window) <remove_windows>: New method.
9880 (class tui_layout_split) <remove_windows>: Declare.
9881 (tui_remove_some_windows): Declare.
9882 * tui/tui-layout.c (tui_remove_some_windows): New function.
9883 (tui_layout_split::remove_windows): New method.
9884
427326a8
TT
98852020-02-22 Tom Tromey <tom@tromey.com>
9886
9887 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9888 * tui/tui-layout.h (tui_next_layout): Declare.
9889 * tui/tui-layout.c (tui_next_layout): New function.
9890
3fe12b6d
TT
98912020-02-22 Tom Tromey <tom@tromey.com>
9892
9893 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9894 correct coordinates.
9895
59b8b5d2
TT
98962020-02-22 Tom Tromey <tom@tromey.com>
9897
9898 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9899 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9900 DATA_WIN case.
9901
2a3d458b
TT
99022020-02-22 Tom Tromey <tom@tromey.com>
9903
9904 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9905 TUI_DISASM_WIN, not tui_win_list.
9906
3f0cbb04
TT
99072020-02-22 Tom Tromey <tom@tromey.com>
9908
9909 * valprint.c (generic_val_print_enum_1)
9910 (val_print_type_code_flags): Style member names.
9911 * rust-lang.c (val_print_struct, rust_print_enum)
9912 (rust_print_struct_def, rust_internal_print_type): Style member
9913 names.
9914 * p-valprint.c (pascal_object_print_value_fields): Style member
9915 names. Only call fprintf_symbol_filtered for static members.
9916 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9917 * f-valprint.c (f_val_print): Style member names.
9918 * f-typeprint.c (f_type_print_base): Style member names.
9919 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9920 call fprintf_symbol_filtered for static members.
9921 (cp_print_class_member): Style member names.
9922 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9923 member names.
9924 * ada-valprint.c (ada_print_scalar): Style enum names.
9925 (ada_val_print_enum): Likewise.
9926 * ada-typeprint.c (print_enum_type): Style enum names.
9927
d4d947ae
TT
99282020-02-21 Tom Tromey <tom@tromey.com>
9929
9930 * psympriv.h (struct partial_symtab): Update comment.
9931
e94e944b
TT
99322020-02-21 Tom Tromey <tromey@adacore.com>
9933
9934 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9935 type is CORE_ADDR.
9936
1eb73179
TV
99372020-02-21 Tom de Vries <tdevries@suse.de>
9938
9939 PR gdb/25534
9940 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9941 if dependencies[i]->user != NULL.
9942
4f180d53
AT
99432020-02-21 Ali Tamur <tamur@google.com>
9944
9945 * dwarf2/read.c (dwarf2_name): Add null check.
9946
22b6cd70
TT
99472020-02-20 Tom Tromey <tom@tromey.com>
9948
9949 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9950 ">=", in binary search.
9951 (dwarf2_find_containing_comp_unit): New overload.
9952 (run_test): New self-test.
9953 (_initialize_dwarf2_read): Register new test.
9954
bd0cf5a6
NC
99552020-02-20 Nelson Chu <nelson.chu@sifive.com>
9956
9957 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9958 * riscv-tdep.h: Likewise.
9959 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9960 rv32-only CSR.
9961 * features/riscv/64bit-csr.xml: Regenerated.
9962
3f702acd
SDJ
99632020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9964 Tom Tromey <tom@tromey.com>
9965
9966 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9967 of 'fputc_unfiltered'.
9968 (putchar_unfiltered): Call 'fputc_unfiltered'.
9969 (fputc_unfiltered): Call 'fputs_unfiltered'.
9970
d13c7322
AB
99712020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9972
9973 * config.in: Regenerate.
9974 * configure: Regenerate.
9975 * configure.ac: Add --with-python-libdir option.
9976 * main.c: Use WITH_PYTHON_LIBDIR.
9977
869d8950
TT
99782020-02-19 Tom Tromey <tom@tromey.com>
9979
9980 * symtab.c (general_symbol_info::compute_and_set_names): Use
9981 obstack_strndup. Simplify call to symbol_set_demangled_name.
9982
298e9637
SM
99832020-02-19 Simon Marchi <simon.marchi@efficios.com>
9984
9985 * dwarf2/read.c (allocate_signatured_type_table,
9986 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9987 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9988 Remove objfile parameter, update all callers.
9989
08410482
DE
99902020-02-19 Doug Evans <dje@google.com>
9991
9992 PR rust/25535
9993 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9994 rust_enum_variant calculation.
9995
dfdeeca1
TT
99962020-02-19 Tom Tromey <tromey@adacore.com>
9997
9998 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9999
2ef5453b
TT
100002020-02-19 Tom Tromey <tromey@adacore.com>
10001
10002 * ada-lang.c (cache_symbol): Use obstack_strdup.
10003
9f1528a1
AB
100042020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10005
10006 * configure: Regenerate.
10007
d3c22fa8
TT
100082020-02-19 Tom Tromey <tromey@adacore.com>
10009
10010 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10011 NULL check.
10012
bf84f706
MR
100132020-02-19 Maciej W. Rozycki <macro@wdc.com>
10014
10015 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10016
d1c9b20f
AB
100172020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10018
10019 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10020 if GDBSERVER is not defined.
10021 (riscv_tdesc_cache): Likewise, also store const target_desc.
10022 (STATIC_IN_GDB): Define.
10023 (riscv_create_target_description): Update declaration with
10024 STATIC_IN_GDB.
10025 (riscv_lookup_target_description): New function, only define if
10026 GDBSERVER is not defined.
10027 * arch/riscv.h (riscv_create_target_description): Declare only
10028 when GDBSERVER is defined.
10029 (riscv_lookup_target_description): New declaration when GDBSERVER
10030 is not defined.
10031 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10032 (riscv_linux_read_features): ...this, and return
10033 riscv_gdbarch_features instead of target_desc.
10034 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10035 (riscv_linux_read_description): Rename to...
10036 (riscv_linux_read_features): ...this.
10037 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10038 Update to use riscv_gdbarch_features and
10039 riscv_lookup_target_description.
10040 * riscv-tdep.c (riscv_find_default_target_description): Use
10041 riscv_lookup_target_description instead of
10042 riscv_create_target_description.
10043
373d7ac0
SM
100442020-02-18 Simon Marchi <simon.marchi@efficios.com>
10045
10046 * valprint.c (generic_val_print_enum_1): When printing a flag
10047 enum with value 0 and there is no enumerator with value 0, print
10048 just "0" instead of "(unknown: 0x0)".
10049
b29a2df0
SM
100502020-02-18 Simon Marchi <simon.marchi@efficios.com>
10051
10052 * valprint.c (generic_val_print_enum_1): Print unknown part of
10053 flag enum in hex.
10054
6740f0cc
SM
100552020-02-18 Simon Marchi <simon.marchi@efficios.com>
10056
10057 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10058 flag enums to contain duplicate enumerators.
10059 * valprint.c (generic_val_print_enum_1): Update comment.
10060
edd45eb0
SM
100612020-02-18 Simon Marchi <simon.marchi@efficios.com>
10062
10063 * dwarf2/read.c: Include "count-one-bits.h".
10064 (update_enumeration_type_from_children): If an enumerator has
10065 multiple bits set, don't treat the enumeration as a "flag enum".
10066 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10067 of flag enums have 0 or 1 bit set.
10068
6d0cf446
BE
100692020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10070
10071 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10072 conversion.
10073 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10074 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10075 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10076 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10077 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10078
7001c1b7
SM
100792020-02-18 Simon Marchi <simon.marchi@efficios.com>
10080
10081 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10082
fdb61c6c
SM
100832020-02-14 Simon Marchi <simon.marchi@efficios.com>
10084
10085 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10086 displaced_step_closure_up.
10087 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10088 (struct displaced_step_closure_up):
10089 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10090 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10091 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10092 Likewise.
10093 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10094 * gdbarch.c, gdbarch.h: Re-generate.
10095 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10096 displaced_step_closure_up.
10097 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10098 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10099 * infrun.h (displaced_step_closure_up): New type alias.
10100 (struct displaced_step_inferior_state) <step_closure>: Change
10101 type to displaced_step_closure_up.
10102 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10103 displaced_step_closure_up.
10104 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10105
a4a38eb4
TT
101062020-02-14 Tom Tromey <tom@tromey.com>
10107
10108 * minidebug.c (gnu_debug_key): New global.
10109 (find_separate_debug_file_in_section): Use it.
10110
e8217e61
SM
101112020-02-14 Simon Marchi <simon.marchi@efficios.com>
10112
10113 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10114 std::unique_ptr.
10115 * gdbarch.c: Re-generate.
10116 * gdbarch.h: Re-generate.
10117 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10118 change.
10119 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10120 type to std::unique_ptr.
10121 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10122 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10123 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10124 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10125 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10126 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10127 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10128 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10129 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10130
d8d83535
SM
101312020-02-14 Simon Marchi <simon.marchi@efficios.com>
10132
10133 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10134 std::unique_ptr.
10135 (displaced_step_clear): Rename to...
10136 (displaced_step_reset): ... this. Just call displaced->reset ().
10137 (displaced_step_clear_cleanup): Rename to...
10138 (displaced_step_reset_cleanup): ... this.
10139 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10140 (displaced_step_fixup): Likewise.
10141 (resume_1): Likewise.
10142 (handle_inferior_event): Restore child's memory before calling
10143 displaced_step_fixup on the parent.
10144 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10145 to std::unique_ptr.
10146 <step_closure>: Change type to std::unique_ptr.
10147
5f661e03
SM
101482020-02-14 Simon Marchi <simon.marchi@efficios.com>
10149
10150 * arm-tdep.c: Include count-one-bits.h.
10151 (cleanup_block_store_pc): Use count_one_bits.
10152 (cleanup_block_load_pc): Use count_one_bits.
10153 (arm_copy_block_xfer): Use count_one_bits.
10154 (thumb2_copy_block_xfer): Use count_one_bits.
10155 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10156 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10157 (thumb_get_next_pcs_raw): Use count_one_bits.
10158 (arm_get_next_pcs_raw): Use count_one_bits_l.
10159 * arch/arm.c (bitcount): Remove.
10160 * arch/arm.h (bitcount): Remove.
10161
8084e579
TT
101622020-02-14 Tom Tromey <tromey@adacore.com>
10163
10164 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10165 Update.
10166 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10167 * dwarf2/loc.c (call_site_find_chain_1): Return
10168 unique_xmalloc_ptr.
10169 (call_site_find_chain): Likewise.
10170
258bf0ee
RB
101712020-02-14 Richard Biener <rguenther@suse.de>
10172
10173 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10174 on expression with division operators.
10175
f98a8458
AKS
101762020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10177
10178 * MAINTAINERS (Write After Approval): Adding myself.
10179
d1437c0e
TT
101802020-02-12 Tom Tromey <tom@tromey.com>
10181
10182 * event-loop.c (event_data, gdb_event, event_handler_func):
10183 Remove.
10184
3d4560f7
TT
101852020-02-12 Tom Tromey <tom@tromey.com>
10186
10187 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10188 (dwarf2_frame_objfile_data): Add comment.
10189 (find_comp_unit, set_comp_unit): New functions.
10190 (dwarf2_frame_find_fde): Use find_comp_unit.
10191 (dwarf2_build_frame_info): Use set_comp_unit.
10192
21982304
TT
101932020-02-12 Tom Tromey <tom@tromey.com>
10194
10195 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10196 (comp_unit): Don't initialize objfile.
10197 (execute_cfa_program): Add text_offset parameter.
10198 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10199 (dwarf2_frame_cache): Update.
10200 (dwarf2_build_frame_info): Don't set "objfile" member.
10201
4debb237
TT
102022020-02-12 Tom Tromey <tom@tromey.com>
10203
10204 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10205 (decode_frame_entry): Likewise.
10206 (dwarf2_build_frame_info): Update.
10207
0d404d44
TT
102082020-02-12 Tom Tromey <tom@tromey.com>
10209
10210 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10211 (decode_frame_entry_1): Use the comp_unit obstack.
10212
a7a3ae5c
TT
102132020-02-12 Tom Tromey <tom@tromey.com>
10214
10215 * dwarf2/frame.c (struct comp_unit): Add initializers and
10216 constructor.
10217 (dwarf2_frame_objfile_data): Store a comp_unit.
10218 (dwarf2_frame_find_fde): Update.
10219 (dwarf2_build_frame_info): Use "new".
10220
a9d65418
TT
102212020-02-12 Tom Tromey <tom@tromey.com>
10222
10223 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10224 (dwarf2_fde_table): Typedef for std::vector.
10225 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10226 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10227 (decode_frame_entry): Update.
10228 (dwarf2_build_frame_info): Use "new".
10229
7559c217
CB
102302020-02-12 Christian Biesinger <cbiesinger@google.com>
10231
10232 * arm-tdep.c (arm_gdbarch_init): Update.
10233 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10234 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10235 have_neon, is_m>: Change to bool.
10236
aeefc73c
CB
102372020-02-12 Christian Biesinger <cbiesinger@google.com>
10238
10239 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10240
d27b8e5f
TT
102412020-02-12 Tom Tromey <tom@tromey.com>
10242
10243 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10244
cd5900f3
HD
102452020-02-12 Hannes Domani <ssbssa@yahoo.de>
10246
10247 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10248 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10249
f056b22b
TT
102502020-02-11 Tom Tromey <tom@tromey.com>
10251
10252 * psymtab.h: Update comment.
10253
f92ff6b5
TT
102542020-02-11 Tom Tromey <tom@tromey.com>
10255
10256 * gdb_obstack.h (struct auto_obstack): Use
10257 DISABLE_COPY_AND_ASSIGN.
10258
3fd6912b
TT
102592020-02-11 Tom Tromey <tom@tromey.com>
10260
10261 * dwarf2/frame.h (struct objfile): Don't forward declare.
10262
69ed9b74
CB
102632020-02-11 Christian Biesinger <cbiesinger@google.com>
10264
10265 * cris-tdep.c (cris_supply_gregset): Change signature to match
10266 what struct regset expects.
10267 (cris_regset): New struct.
10268 (fetch_core_registers): Remove.
10269 (cris_iterate_over_regset_sections): New function.
10270 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10271 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10272
bda874f6
CB
102732020-02-11 Christian Biesinger <cbiesinger@google.com>
10274
10275 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10276 registers.
10277
754e1564
CB
102782020-02-11 Christian Biesinger <cbiesinger@google.com>
10279
10280 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10281
8ddd8e0e
SM
102822020-02-11 Simon Marchi <simon.marchi@efficios.com>
10283
10284 * configure: Re-generate.
10285
898e7f60
SM
102862020-02-11 Simon Marchi <simon.marchi@efficios.com>
10287
10288 * configure: Re-generate.
10289
58df732b
SM
102902020-02-11 Simon Marchi <simon.marchi@efficios.com>
10291
10292 * acinclude: Update warning.m4 path.
10293 * warning.m4: Move to gdbsupport.
10294
da5bd37e
TT
102952020-02-11 Tom Tromey <tromey@adacore.com>
10296
10297 * remote.c (remote_console_output): Update.
10298 * printcmd.c (printf_command): Update.
10299 * event-loop.c (gdb_wait_for_event): Update.
10300 * linux-nat.c (sigchld_handler): Update.
10301 * remote-sim.c (gdb_os_write_stdout): Update.
10302 (gdb_os_flush_stdout): Update.
10303 (gdb_os_flush_stderr): Update.
10304 (gdb_os_write_stderr): Update.
10305 * exceptions.c (print_exception): Update.
10306 * remote-fileio.c (remote_fileio_func_read): Update.
10307 (remote_fileio_func_write): Update.
10308 * tui/tui.c (tui_enable): Update.
10309 * tui/tui-interp.c (tui_interp::init): Update.
10310 * utils.c (init_page_info): Update.
10311 (putchar_unfiltered, fputc_unfiltered): Update.
10312 (gdb_flush): Update.
10313 (emit_style_escape): Update.
10314 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10315 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10316 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10317 (stderr_file::write): Update.
10318 (stderr_file::puts): Update.
10319 * ui-file.h (ui_file_isatty, ui_file_write)
10320 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10321 (ui_file_puts): Don't declare.
10322
85f0dd3c
TV
103232020-02-10 Tom de Vries <tdevries@suse.de>
10324
10325 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10326 sentinel to char *.
10327
2e927613
TV
103282020-02-09 Tom de Vries <tdevries@suse.de>
10329
10330 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10331 filename if it matches "<artificial>".
10332
6bafc845
HD
103332020-02-09 Hannes Domani <ssbssa@yahoo.de>
10334
10335 * windows-tdep.c (struct enum_value_name): New struct.
10336 (create_enum): New function.
10337 (windows_get_siginfo_type): Create and use enum types.
10338
7928d571
HD
103392020-02-09 Hannes Domani <ssbssa@yahoo.de>
10340
10341 * NEWS: Mention $_siginfo support for Windows.
10342 * windows-nat.c (handle_exception): Set siginfo_er.
10343 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10344 (windows_xfer_siginfo): New function.
10345 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10346 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10347 (init_windows_gdbarch_data): New function.
10348 (get_windows_gdbarch_data): New function.
10349 (windows_get_siginfo_type): New function.
10350 (windows_init_abi): Register windows_get_siginfo_type.
10351 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10352
6751ebae
TT
103532020-02-08 Tom Tromey <tom@tromey.com>
10354
10355 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10356 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10357 <keep>: Declare method.
10358 <m_keep>: Remove member.
10359 <~cutu_reader>: Remove.
10360 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10361 (cutu_reader::cutu_reader): Update.
10362 (cutu_reader::keep): Rename from ~cutu_reader.
10363 (process_psymtab_comp_unit, build_type_psymtabs_1)
10364 (process_skeletonless_type_unit, load_partial_comp_unit)
10365 (load_full_comp_unit, dwarf2_read_addr_index)
10366 (read_signatured_type): Update.
10367
135f5437
TT
103682020-02-08 Tom Tromey <tom@tromey.com>
10369
10370 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10371 "want_partial_unit" parameter.
10372 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10373 Inline check for DW_TAG_partial_unit.
10374 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10375
9f66ff1c
TT
103762020-02-08 Tom Tromey <tom@tromey.com>
10377
10378 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10379 read.c.
10380 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10381 read.c.
10382
c8a7a66f
TT
103832020-02-08 Tom Tromey <tom@tromey.com>
10384
10385 * dwarf2/read.c (read_address): Move to comp-unit.c.
10386 (dwarf2_rnglists_process, dwarf2_ranges_process)
10387 (read_attribute_value, dwarf_decode_lines_1)
10388 (var_decode_location, decode_locdesc): Update.
10389 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10390 read.c. Remove "cu" parameter.
10391 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10392 method.
10393
8266302d
TT
103942020-02-08 Tom Tromey <tom@tromey.com>
10395
10396 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10397 (read_indirect_line_string): Update.
10398 * dwarf2/comp-unit.c (read_offset): Remove.
10399 (read_comp_unit_head): Update.
10400 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10401 method.
10402 (read_offset): Don't declare.
10403
4057dfde
TT
104042020-02-08 Tom Tromey <tom@tromey.com>
10405
10406 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10407 * dwarf2/read.c (struct comp_unit_head): Move to
10408 dwarf2/comp-unit.h.
10409 (enum class rcuh_kind): Move to comp-unit.h.
10410 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10411 (read_comp_unit_head, error_check_comp_unit_head)
10412 (read_and_check_comp_unit_head): Move to comp-unit.c.
10413 (read_offset, dwarf_unit_type_name): Likewise.
10414 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10415 (cutu_reader::cutu_reader, read_call_site_scope)
10416 (find_partial_die, follow_die_offset): Update.
10417 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10418
24aa364d
TT
104192020-02-08 Tom Tromey <tom@tromey.com>
10420
10421 * dwarf2/read.c (read_offset_1): Move to leb.c.
10422 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10423 (dwarf_decode_macro_bytes): Update.
10424 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10425 * dwarf2/leb.h (read_offset): Declare.
10426
2c7d5afc
TT
104272020-02-08 Tom Tromey <tom@tromey.com>
10428
10429 * dwarf2/read.c (dwarf2_section_size): Remove.
10430 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10431 Update.
10432 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10433
4075cb26
TT
104342020-02-08 Tom Tromey <tom@tromey.com>
10435
10436 * dwarf2/read.c (read_initial_length): Move to leb.c.
10437 * dwarf2/leb.h (read_initial_length): Declare.
10438 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10439 handle_nonstd parameter.
10440 * dwarf2/frame.c (read_initial_length): Remove.
10441 (decode_frame_entry_1): Update.
10442
09ba997f
TT
104432020-02-08 Tom Tromey <tom@tromey.com>
10444
10445 * dwarf2/loc.c (dwarf2_find_location_expression)
10446 (dwarf_evaluate_loc_desc::get_tls_address)
10447 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10448 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10449 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10450 (dwarf2_compile_property_to_c)
10451 (dwarf2_loc_desc_get_symbol_read_needs)
10452 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10453 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10454 (loclist_describe_location, loclist_tracepoint_var_ref)
10455 (loclist_generate_c_location): Update.
10456 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10457 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10458 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10459 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10460 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10461 (dwarf2_per_cu_data::addr_size)
10462 (dwarf2_per_cu_data::ref_addr_size)
10463 (dwarf2_per_cu_data::text_offset)
10464 (dwarf2_per_cu_data::addr_type): Now methods.
10465 (per_cu_header_read_in): Make per_cu "const".
10466 (dwarf2_version): Remove.
10467 (dwarf2_per_cu_data::int_type): Now a method.
10468 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10469 (set_die_type, read_array_type, read_subrange_index_type)
10470 (read_tag_string_type, read_subrange_type): Update.
10471 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10472 offset_size, ref_addr_size, text_offset, addr_type, version,
10473 objfile, int_type, addr_sized_int_type>: Declare methods.
10474
96c738c0
TT
104752020-02-08 Tom Tromey <tom@tromey.com>
10476
10477 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10478 Move earlier.
10479
8fdd972c
TT
104802020-02-08 Tom Tromey <tom@tromey.com>
10481
10482 * dwarf2/read.h (dwarf_line_debug): Declare.
10483 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10484 * dwarf2/read.c: Move line_header code to new files.
10485 (dwarf_line_debug): No longer static.
10486 * dwarf2/line-header.c: New file.
10487 * dwarf2/line-header.h: New file.
10488
03075812
TT
104892020-02-08 Tom Tromey <tom@tromey.com>
10490
10491 * dwarf2/read.c (struct line_header) <file_full_name,
10492 file_file_name>: Return unique_xmalloc_ptr.
10493 (line_header::file_file_name): Update.
10494 (line_header::file_full_name): Update.
10495 (dw2_get_file_names_reader): Update.
10496 (macro_start_file): Update.
10497
bb822404
TT
104982020-02-08 Tom Tromey <tom@tromey.com>
10499
10500 * dwarf2/read.c (struct line_header) <file_full_name,
10501 file_file_name>: Declare methods.
10502 (dw2_get_file_names_reader): Update.
10503 (file_file_name): Now a method.
10504 (file_full_name): Likewise.
10505 (macro_start_file): Update.
10506
009b64fc
TT
105072020-02-08 Tom Tromey <tom@tromey.com>
10508
10509 * dwarf2/read.c (dwarf_always_disassemble)
10510 (show_dwarf_always_disassemble): Move to loc.c.
10511 (_initialize_dwarf2_read): Move "always-disassemble" registration
10512 to loc.c.
10513 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10514 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10515 static.
10516 (show_dwarf_always_disassemble): Move from read.c.
10517 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10518
5895093f
TT
105192020-02-08 Tom Tromey <tom@tromey.com>
10520
10521 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10522 (create_quick_file_names_table): Return htab_up.
10523 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10524 Update.
10525 * dwarf2/read.h (struct dwarf2_per_objfile)
10526 <quick_file_names_table>: Now htab_up.
10527
b3b32279
TT
105282020-02-08 Tom Tromey <tom@tromey.com>
10529
10530 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10531
1d33d811
TT
105322020-02-08 Tom Tromey <tom@tromey.com>
10533
10534 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10535 Rewrite.
10536 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10537 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10538 (abbrev_table::abbrev_table): No longer inline.
10539 (ABBREV_HASH_SIZE): Remove.
10540 (abbrev_table::m_abbrevs): Now an htab_up.
10541
86de1d91
TT
105422020-02-08 Tom Tromey <tom@tromey.com>
10543
10544 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10545 (cutu_reader): Update.
10546 (build_type_psymtabs_1): Update.
10547 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10548 (abbrev_table::alloc_abbrev): Update.
10549 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10550 (abbrev_table::read): New static method, renamed from
10551 abbrev_table_read_table.
10552 (abbrev_table::alloc_abbrev)
10553 (abbrev_table::add_abbrev): Now private.
10554 (abbrev_table::abbrev_table): Now private.
10555 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10556
0335378b
TT
105572020-02-08 Tom Tromey <tom@tromey.com>
10558
10559 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10560 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10561 htab_up.
10562
48b490f2
TT
105632020-02-08 Tom Tromey <tom@tromey.com>
10564
10565 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10566 htab_up.
10567 (lookup_dwo_unit_in_dwp): Update.
10568 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10569 on obstack.
10570
bc68fb19
TT
105712020-02-08 Tom Tromey <tom@tromey.com>
10572
10573 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10574 obstack.
10575
d15acc42
TT
105762020-02-08 Tom Tromey <tom@tromey.com>
10577
10578 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10579 line_header_hash.
10580 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10581 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10582 Change type to htab_up.
10583
eaa5fa8b
TT
105842020-02-08 Tom Tromey <tom@tromey.com>
10585
10586 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10587 htab_up. Don't allocate on obstack.
10588 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10589 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10590 Change type to htab_up.
10591
b0b6a987
TT
105922020-02-08 Tom Tromey <tom@tromey.com>
10593
10594 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10595 Change type to htab_up.
10596 * dwarf2/read.c (create_signatured_type_table_from_index)
10597 (create_signatured_type_table_from_debug_names)
10598 (create_all_type_units, add_type_unit)
10599 (lookup_dwo_signatured_type, lookup_signatured_type)
10600 (process_skeletonless_type_unit): Update.
10601 (create_debug_type_hash_table, create_debug_types_hash_table):
10602 Change type of types_htab.
10603 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10604 htab_up. Don't allocate on obstack.
10605 (create_cus_hash_table): Change type of cus_htab parameter.
10606 (struct dwo_file) <cus, tus>: Now htab_up.
10607 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10608 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10609 (queue_and_load_all_dwo_tus): Update.
10610 * dwarf2/index-write.c (write_gdbindex): Update.
10611 (write_debug_names): Update.
10612
39856def
TT
106132020-02-08 Tom Tromey <tom@tromey.com>
10614
10615 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10616 dwarf2/read.c. Remove "next" member. Add constructor ntad
10617 destructor.
10618 (struct dwarf2_per_objfile) <queue>: New member.
10619 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10620 dwarf2/read.h.
10621 (dwarf2_queue, dwarf2_queue_tail): Remove.
10622 (class dwarf2_queue_guard): Add parameter to constructor. Use
10623 DISABLE_COPY_AND_ASSIGN.
10624 <m_per_objfile>: New member.
10625 <~dwarf2_queue_guard>: Rewrite.
10626 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10627 Update.
10628 (~dwarf2_queue_item): New.
10629
3e225074
TT
106302020-02-08 Tom Tromey <tom@tromey.com>
10631
10632 * dwarf2/read.c (struct die_info) <has_children>: New member.
10633 (dw2_get_file_names_reader): Remove has_children.
10634 (dw2_get_file_names): Update.
10635 (read_cutu_die_from_dwo): Remove has_children.
10636 (cutu_reader::init_tu_and_read_dwo_dies)
10637 (cutu_reader::cutu_reader): Update.
10638 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10639 Remove has_children.
10640 (build_type_psymtabs_1, process_skeletonless_type_unit)
10641 (load_partial_comp_unit, load_full_comp_unit): Update.
10642 (create_dwo_cu_reader): Remove has_children.
10643 (create_cus_hash_table, read_die_and_children): Update.
10644 (read_full_die_1,read_full_die): Remove has_children.
10645 (read_signatured_type): Update.
10646 (class cutu_reader) <has_children>: Remove.
10647
82ca8957
TT
106482020-02-08 Tom Tromey <tom@tromey.com>
10649
10650 * dwarf2/expr.c: Rename from dwarf2expr.c.
10651 * dwarf2/expr.h: Rename from dwarf2expr.h.
10652 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10653 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10654 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10655 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10656 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10657 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10658 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10659 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10660 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10661 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10662 * dwarf2/loc.c: Rename from dwarf2loc.c.
10663 * dwarf2/loc.h: Rename from dwarf2loc.h.
10664 * dwarf2/read.c: Rename from dwarf2read.c.
10665 * dwarf2/read.h: Rename from dwarf2read.h.
10666 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10667 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10668 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10669 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10670 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10671 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10672 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10673 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10674 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10675 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10676 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10677 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10678 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10679 Update.
10680 * Makefile.in (COMMON_SFILES): Update.
10681 (HFILES_NO_SRCDIR): Update.
10682
9e35d499
TT
106832020-02-08 Tom Tromey <tom@tromey.com>
10684
10685 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10686 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10687
1eba2311
TT
106882020-02-08 Tom Tromey <tom@tromey.com>
10689
10690 * dwarf2read.h (struct die_info): Don't declare.
10691
e41c2da2
TT
106922020-02-08 Tom Tromey <tom@tromey.com>
10693
10694 * dwarf2read.h (die_info_ptr): Remove typedef.
10695
4fc6c0d5
TT
106962020-02-08 Tom Tromey <tom@tromey.com>
10697
10698 * dwarf2read.c (read_call_site_scope)
10699 (handle_data_member_location, dwarf2_add_member_fn)
10700 (mark_common_block_symbol_computed, read_common_block)
10701 (attr_to_dynamic_prop, partial_die_info::read)
10702 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10703 (dwarf2_symbol_mark_computed, set_die_type): Update.
10704 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10705 method.
10706 (attr_form_is_block): Don't declare.
10707 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10708
cd6c91b4
TT
107092020-02-08 Tom Tromey <tom@tromey.com>
10710
10711 * dwarf2read.c (dwarf2_find_base_address, )
10712 (read_call_site_scope, rust_containing_type)
10713 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10714 (handle_data_member_location, dwarf2_add_member_fn)
10715 (get_alignment, read_structure_type, process_structure_scope)
10716 (mark_common_block_symbol_computed, read_common_block)
10717 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10718 (partial_die_info::read, read_attribute_value, new_symbol)
10719 (lookup_die_type, dwarf2_get_ref_die_offset)
10720 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10721 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10722 (dwarf2_symbol_mark_computed): Update.
10723 * dwarf2/attribute.h (struct attribute) <value_as_address,
10724 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10725 methods.
10726 (value_as_address, attr_form_is_section_offset)
10727 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10728 * dwarf2/attribute.c (attribute::value_as_address)
10729 (attribute::form_is_section_offset, attribute::form_is_constant)
10730 (attribute::form_is_ref): Now methods.
10731
162dce55
TT
107322020-02-08 Tom Tromey <tom@tromey.com>
10733
10734 * dwarf2read.c (struct attribute, DW_STRING)
10735 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10736 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10737 (attr_form_is_block, attr_form_is_section_offset)
10738 (attr_form_is_constant, attr_form_is_ref): Move.
10739 * dwarf2/attribute.h: New file.
10740 * dwarf2/attribute.c: New file, from dwarf2read.c.
10741 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10742
3054dd54
TT
107432020-02-08 Tom Tromey <tom@tromey.com>
10744
10745 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10746 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10747 Move.
10748 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10749 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10750 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10751 abbrev.c.
10752 * dwarf2/abbrev.h: New file.
10753 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10754 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10755
96b79293
TT
107562020-02-08 Tom Tromey <tom@tromey.com>
10757
10758 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10759 (dwarf2_section_size, dwarf2_get_section_info)
10760 (create_signatured_type_table_from_debug_names)
10761 (create_addrmap_from_aranges, read_debug_names_from_section)
10762 (get_gdb_index_contents_from_section, read_comp_unit_head)
10763 (error_check_comp_unit_head, read_abbrev_offset)
10764 (create_debug_type_hash_table, init_cu_die_reader)
10765 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10766 (read_comp_units_from_section, create_cus_hash_table)
10767 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10768 (create_dwp_v2_section, dwarf2_rnglists_process)
10769 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10770 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10771 (read_indirect_string_from_dwz, read_addr_index_1)
10772 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10773 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10774 (fill_in_loclist_baton): Update.
10775 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10776 get_containing_section, get_bfd_owner, get_bfd_section,
10777 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10778 (dwarf2_read_section, get_section_name, get_section_file_name)
10779 (get_containing_section, get_section_bfd_owner)
10780 (get_section_bfd_section, get_section_name, get_section_file_name)
10781 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10782 declare.
10783 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10784 (dwarf2_section_info::get_bfd_owner)
10785 (dwarf2_section_info::get_bfd_section)
10786 (dwarf2_section_info::get_name)
10787 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10788 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10789 (dwarf2_section_info::read): Now methods.
10790 * dwarf-index-write.c (class debug_names): Update.
10791
2c86cff9
TT
107922020-02-08 Tom Tromey <tom@tromey.com>
10793
10794 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10795 Move to dwarf2/section.h.
10796 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10797 (get_section_bfd_section, get_section_name)
10798 (get_section_file_name, get_section_id, get_section_flags)
10799 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10800 dwarf2/section.c.
10801 * dwarf2/section.h: New file.
10802 * dwarf2/section.c: New file, from dwarf2read.c.
10803 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10804
f4382c45
TT
108052020-02-08 Tom Tromey <tom@tromey.com>
10806
10807 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10808 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10809 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10810 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10811 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10812 * dwarf2/leb.h: New file, from dwarf2read.c.
10813 * dwarf2/leb.c: New file, from dwarf2read.c.
10814 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10815 Remove.
10816 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10817 (COMMON_SFILES): Add dwarf2/leb.c.
10818
01840b7a
JB
108192020-02-08 Joel Brobecker <brobecker@adacore.com>
10820
10821 GDB 9.1 released.
10822
dfcb27e4
IB
108232020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10824
10825 PR gdb/25190:
aac66a4c
SM
10826 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10827 * gdb/remote.c (remote_console_output): Update.
10828 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10829 (ui_file_puts): ...this.
10830 * gdb/ui-file.h (ui_file_puts): Add declaration.
10831 * gdb/utils.c (emit_style_escape): Update.
10832 (flush_wrap_buffer): Update.
10833 (fputs_maybe_filtered): Update.
10834 (fputs_unfiltered): Add function.
dfcb27e4 10835
faa17681
IB
108362020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10837
aac66a4c
SM
10838 * gdb/event-loop.c (gdb_wait_for_event): Update.
10839 * gdb/printcmd.c (printf_command): Update.
10840 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10841 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10842 (gdb_os_flush_stderr): Update.
10843 * gdb/remote.c (remote_console_output): Update.
10844 * gdb/ui-file.c (gdb_flush): Rename to...
10845 (ui_file_flush): ...this.
10846 (stderr_file::write): Update.
10847 (stderr_file::puts): Update.
10848 * gdb/ui-file.h (gdb_flush): Rename to...
10849 (ui_file_flush): ...this.
10850 * gdb/utils.c (gdb_flush): Add function.
10851 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10852
5abbbe1d
TT
108532020-02-07 Tom Tromey <tromey@adacore.com>
10854
10855 PR breakpoints/24915:
10856 * source.c (find_and_open_source): Do not check basenames_may_differ.
10857
919adfe8
TT
108582020-02-07 Tom Tromey <tom@tromey.com>
10859
10860 * README: Update gdbserver documentation.
10861 * gdbserver: Move to top level.
10862 * configure.tgt (build_gdbserver): Remove.
10863 * configure.ac: Remove --enable-gdbserver.
10864 * configure: Rebuild.
10865 * Makefile.in (distclean): Don't mention gdbserver.
10866
1d5d29e7
SV
108672020-02-06 Shahab Vahedi <shahab@synopsys.com>
10868
10869 * source-cache.c (source_cache::ensure): Surround
10870 get_plain_source_lines with a try/catch.
10871 (source_cache::get_line_charpos): Get rid of try/catch
10872 and only check for the return value of "ensure".
10873 * tui/tui-source.c (tui_source_window::set_contents):
10874 Simplify "nlines" calculation.
10875
6eb1129c
SV
108762020-02-06 Shahab Vahedi <shahab@synopsys.com>
10877
10878 * MAINTAINERS (Write After Approval): Add myself.
10879
c6a42d11
CB
108802020-02-05 Christian Biesinger <cbiesinger@google.com>
10881
10882 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10883 function call.
10884
c8ecdda6
CB
108852020-02-05 Christian Biesinger <cbiesinger@google.com>
10886
10887 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10888
f6480e70
MR
108892020-02-05 Maciej W. Rozycki <macro@wdc.com>
10890
10891 * nat/riscv-linux-tdesc.h: New file.
10892 * nat/riscv-linux-tdesc.c: New file, taking code from...
10893 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10894 ... here.
10895 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10896 NATDEPFILES.
10897
dcc9fbc6
AB
108982020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10899
10900 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10901 we don't set the fake simulator ptid to the null_ptid.
10902
719546c4
SM
109032020-02-03 Simon Marchi <simon.marchi@efficios.com>
10904
10905 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10906 * gdbthread.h (class thread_info) <resumed>: Likewise.
10907 * infrun.c (resume_1): Likewise.
10908 (proceed): Likewise.
10909 (infrun_thread_stop_requested): Likewise.
10910 (stop_all_threads): Likewise.
10911 (handle_inferior_event): Likewise.
10912 (restart_threads): Likewise.
10913 (finish_step_over): Likewise.
10914 (keep_going_stepped_thread): Likewise.
10915 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10916 (linux_handle_extended_wait): Likewise.
10917 * record-btrace.c (get_thread_current_frame_id): Likewise.
10918 * record-full.c (record_full_wait_1): Likewise.
10919 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10920 * target.c (target_resume): Likewise.
10921 * thread.c (set_running_thread): Likewise.
10922
e409c542
AKS
109232020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10924
10925 * f-valprint.c (f77_print_array_1): Changed datatype of index
10926 variable to LONGEST from int to enable it to contain bound
10927 values correctly.
10928
ee98c0da
MR
109292020-02-03 Maciej W. Rozycki <macro@wdc.com>
10930
10931 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10932 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10933 offsets according to FLEN determined.
10934 (riscv_linux_nat_target::read_description): Determine FLEN
10935 dynamically.
10936 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10937 according to FLEN determined.
10938 (riscv_linux_nat_target::store_registers): Likewise.
10939
aa66aac4
SV
109402020-02-01 Shahab Vahedi <shahab@synopsys.com>
10941
10942 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10943 when reg->group is empty and reggroup is not.
10944
fd9faca8
TT
109452020-01-31 Tom Tromey <tromey@adacore.com>
10946
10947 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10948 Call beneath target's mourn_inferior after unpushing.
10949
42330a68
AB
109502020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10951
10952 PR tui/9765
10953 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10954 have enough lines to fill the screen, still return the lowest
10955 address we found.
10956
7a27a45b
AB
109572020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10958
10959 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10960 '-', '<', and '>' commands.
10961
c47f70e2
PA
109622020-01-29 Pedro Alves <palves@redhat.com>
10963 Sergio Durigan Junior <sergiodj@redhat.com>
10964
10965 * infcmd.c (construct_inferior_arguments): Assert that
10966 'argc' is greater than 0.
10967
5133a315
LM
109682020-01-29 Luis Machado <luis.machado@linaro.org>
10969
10970 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10971 (BRK_INSN_MASK): Define to 0xd4200000.
10972 (aarch64_program_breakpoint_here_p): New function.
10973 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10974 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10975 breakpoint.c.
10976 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10977 breakpoint.h
10978 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10979 call gdbarch_program_breakpoint_here_p.
10980 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10981 default_program_breakpoint_here_p, changed return type to bool and
10982 simplified.
10983 * breakpoint.h (program_breakpoint_here): Moved prototype to
10984 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10985 return type to bool.
10986 * gdbarch.c: Regenerate.
10987 * gdbarch.h: Regenerate.
10988 * gdbarch.sh (program_breakpoint_here_p): New method.
10989 * infrun.c (handle_signal_stop): Call
10990 gdbarch_program_breakpoint_here_p.
10991
168f8c6b
TT
109922020-01-26 Tom Tromey <tom@tromey.com>
10993
10994 * ctfread.c (struct ctf_fp_info): Reindent.
10995 (_initialize_ctfread): Remove.
10996
128a391f
TT
109972020-01-26 Tom Tromey <tom@tromey.com>
10998
10999 * psymtab.c (partial_map_expand_apply)
11000 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11001 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11002 (psym_print_stats, psym_expand_symtabs_for_function)
11003 (psym_map_symbol_filenames, psym_map_matching_symbols)
11004 (psym_expand_symtabs_matching)
11005 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11006 (maintenance_check_psymtabs): Use new methods.
11007 * psympriv.h (struct partial_symtab) <readin_p,
11008 get_compunit_symtab>: New methods.
11009 <readin, compunit_symtab>: Remove members.
11010 (struct standard_psymtab): New.
11011 (struct legacy_psymtab): Derive from standard_psymtab.
11012 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11013 standard_psymtab.
11014 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11015
0494dbec
TT
110162020-01-26 Tom Tromey <tom@tromey.com>
11017
11018 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11019 read_dependencies. Add assert.
11020 * psymtab.c (partial_symtab::read_dependencies): New method.
11021 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11022 method.
11023 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11024 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11025 read_dependencies.
11026 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11027 Add assert.
11028
8566b89b
TT
110292020-01-26 Tom Tromey <tom@tromey.com>
11030
11031 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11032 Call expand_psymtab.
11033 (xcoff_read_symtab): Call expand_psymtab.
11034 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11035 legacy_expand_psymtab.
11036 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11037 method.
11038 (struct legacy_psymtab) <expand_psymtab>: Implement.
11039 <legacy_expand_psymtab>: New member.
11040 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11041 (parse_partial_symbols): Set legacy_expand_psymtab.
11042 (psymtab_to_symtab_1): Change argument order. Call
11043 expand_psymtab.
11044 (new_psymtab): Set legacy_expand_psymtab.
11045 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11046 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11047 expand_psymtab.
11048 (dwarf2_psymtab::expand_psymtab): Rename from
11049 psymtab_to_symtab_1. Call expand_psymtab.
11050 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11051 (dbx_end_psymtab): Likewise.
11052 (dbx_psymtab_to_symtab_1): Change argument order. Call
11053 expand_psymtab.
11054 (dbx_read_symtab): Call expand_psymtab.
11055 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11056 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11057 (ctf_psymtab::read_symtab): Call expand_psymtab.
11058
077cbab2
TT
110592020-01-26 Tom Tromey <tom@tromey.com>
11060
11061 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11062 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11063 messages.
11064 * mdebugread.c (mdebug_read_symtab): Remove prints.
11065 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11066 assert.
11067 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11068
891813be
TT
110692020-01-26 Tom Tromey <tom@tromey.com>
11070
11071 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11072 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11073 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11074 legacy_symtab.
11075 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11076 * psymtab.c (psymtab_to_symtab): Call method.
11077 (dump_psymtab): Update.
11078 * psympriv.h (struct partial_symtab): Add virtual destructor.
11079 <read_symtab>: New method.
11080 (struct legacy_symtab): New.
11081 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11082 (struct pst_map) <pst>: Now a legacy_psymtab.
11083 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11084 (new_psymtab): Use legacy_psymtab.
11085 * dwarf2read.h (struct dwarf2_psymtab): New.
11086 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11087 * dwarf2read.c (dwarf2_create_include_psymtab)
11088 (dwarf2_build_include_psymtabs, create_type_unit_group)
11089 (create_partial_symtab, process_psymtab_comp_unit_reader)
11090 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11091 (set_partial_user): Use dwarf2_psymtab.
11092 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11093 (psymtab_to_symtab_1, process_full_comp_unit)
11094 (process_full_type_unit, dwarf2_ranges_read)
11095 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11096 (dwarf_decode_lines): Use dwarf2_psymtab.
11097 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11098 (add_address_entry_worker, write_one_signatured_type)
11099 (recursively_count_psymbols, recursively_write_psymbols)
11100 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11101 (write_debug_names): Likewise.
11102 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11103 <pst>: Now a legacy_psymtab.
11104 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11105 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11106 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11107 * ctfread.c (struct ctf_psymtab): New.
11108 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11109 ctf_psymtab.
11110 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11111 (create_partial_symtab): Return a ctf_psymtab.
11112 (scan_partial_symbols): Update.
11113
c3693a1d
TT
111142020-01-26 Tom Tromey <tom@tromey.com>
11115
11116 * xcoffread.c (xcoff_start_psymtab): Use new.
11117 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11118 renamed from start_psymtab_common.
11119 * psympriv.h (struct partial_symtab): Add new constructor.
11120 (start_psymtab_common): Don't declare.
11121 * mdebugread.c (parse_partial_symbols): Use new.
11122 * dwarf2read.c (create_partial_symtab): Use new.
11123 * dbxread.c (start_psymtab): Use new.
11124 * ctfread.c (create_partial_symtab): Use new.
11125
32caafd0
TT
111262020-01-26 Tom Tromey <tom@tromey.com>
11127
11128 * xcoffread.c (xcoff_end_psymtab): Use new.
11129 * psymtab.c (start_psymtab_common): Use new.
11130 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11131 Update.
11132 * psympriv.h (struct partial_symtab): Add parameters to
11133 constructor. Don't inline.
11134 (allocate_psymtab): Don't declare.
11135 * mdebugread.c (new_psymtab): Use new.
11136 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11137 * dbxread.c (dbx_end_psymtab): Use new.
11138
abaa2f23
TT
111392020-01-26 Tom Tromey <tom@tromey.com>
11140
11141 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11142 allocate_psymtab. Update documentation.
11143 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11144 allocate_psymtab. Do not use new.
11145 (allocate_psymtab): Use new. Update.
11146
6d94535f
TT
111472020-01-26 Tom Tromey <tom@tromey.com>
11148
11149 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11150 * psymtab.c (psym_print_stats): Update.
11151 * psympriv.h (struct partial_symtab) <readin,
11152 psymtabs_addrmap_supported, anonymous>: Now bool.
11153 * mdebugread.c (psymtab_to_symtab_1): Update.
11154 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11155 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11156 (process_full_comp_unit, process_full_type_unit): Update.
11157 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11158 * ctfread.c (psymtab_to_symtab): Update.
11159
6f17252b
TT
111602020-01-26 Tom Tromey <tom@tromey.com>
11161
11162 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11163 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11164 * psymtab.c (psymtab_storage): Delete psymtabs.
11165 (psymtab_storage::allocate_psymtab): Use new.
11166 (psymtab_storage::discard_psymtab): Use delete.
11167 * psympriv.h (struct partial_symtab): Add constructor and
11168 initializers.
11169
f6f1cebc
TT
111702020-01-26 Tom Tromey <tom@tromey.com>
11171
11172 * machoread.c: Do not include psympriv.h.
11173
e47e48f6
PW
111742020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11175
11176 * NEWS: Mention the new option and the set/show commands.
11177
a2fedca9
PW
111782020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11179
11180 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11181 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11182 (validate_exec_file): New variables, enums, functions.
11183 (exec_file_locate_attach, print_section_info): Style the filenames.
11184 (_initialize_exec): Install show_exec_file_mismatch_command and
11185 set_exec_file_mismatch_command.
11186 * gdbcore.h (validate_exec_file): Declare.
11187 * infcmd.c (attach_command): Call validate_exec_file.
11188 * remote.c ( remote_target::remote_add_inferior): Likewise.
11189
7ffa82e1
AB
111902020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11191
11192 * frame.c (find_frame_sal): Move call to get_next_frame into more
11193 inner scope.
11194 * inline-frame.c (inilne_state) <inline_state>: Update argument
11195 types.
11196 (inilne_state) <skipped_symbol>: Rename to...
11197 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11198 (skip_inline_frames): Build vector of skipped symbols and use this
11199 to reate the inline_state.
11200 (inline_skipped_symbol): Add a comment and some assertions, fetch
11201 skipped symbol from the list.
11202
3d92a3e3
AB
112032020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11204
11205 * buildsym.c (lte_is_less_than): Delete.
11206 (buildsym_compunit::end_symtab_with_blockvector): Create local
11207 lambda function to sort line table entries, and use
11208 std::stable_sort instead of std::sort.
11209 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11210 markers when looking for a previous line.
11211
94a72be7
AB
112122020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11213
11214 * dwarf2read.c (lnp_state_machine::record_line): Include
11215 end_sequence parameter in debug print out. Record the line if we
11216 are at an end_sequence marker even if it's not the start of a
11217 statement.
11218 * symmisc.c (maintenance_print_one_line_table): Print end of
11219 sequence markers with 'END' not '0'.
11220
53af73bf
PA
112212020-01-24 Pedro Alves <palves@redhat.com>
11222
11223 PR gdb/25410
11224 * thread.c (scoped_restore_current_thread::restore): Use
11225 switch_to_inferior_no_thread.
11226 * exec.c: Include "progspace-and-thread.h".
11227 (add_target_sections, remove_target_sections):
11228 scoped_restore_current_pspace_and_thread instead of
11229 scoped_restore_current_thread.
11230 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11231 and aspace to the inferior before calling clone_program_space.
11232 Remove stale comment.
11233
3050c6f4
CB
112342020-01-24 Christian Biesinger <cbiesinger@google.com>
11235
11236 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11237 (arm_netbsd_nat_target::fetch_registers): ...this.
11238 (arm_nbsd_nat_target::store_registers): Rename to...
11239 (arm_netbsd_nat_target::store_registers): ...this.
11240
73685c7e
CB
112412020-01-24 Christian Biesinger <cbiesinger@google.com>
11242
11243 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11244 register_t.
11245
89203d40
CB
112462020-01-24 Christian Biesinger <cbiesinger@google.com>
11247
11248 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11249 Update comment.
11250 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11251 Likewise.
11252 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11253 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11254 the correct replacement (iterate_over_regset_sections).
11255 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11256 Update comment.
11257
1ba1ac88
AB
112582020-01-24 Graham Markall <graham.markall@embecosm.com>
11259
11260 PR gdb/23718
11261 * gdb/python/python.c (execute_gdb_command): Call
11262 async_enable_stdin in catch block.
11263
f3364a6d
AB
112642020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11265
11266 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11267 SWITCH_THRU_ALL_UIS.
11268
733d0a67
AB
112692020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11270
11271 PR tui/9765
11272 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11273 comment, add extra parameter, and update to store previous symbol
11274 when appropriate.
11275 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11276 add extra parameter.
11277 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11278 remove unneeded parameter, add try/catch around gdb_print_insn,
11279 rewrite to add items to asm_lines vector.
11280 (tui_find_backward_disassembly_start_address): New function.
11281 (tui_find_disassembly_address): Updated throughout.
11282 (tui_disasm_window::set_contents): Update for changes to
11283 tui_disassemble.
11284 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11285 number of lines to scroll.
11286
b3b3bada
SM
112872020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11288
11289 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11290 (SECT_OFF_DATA): Likewise.
11291 (SECT_OFF_RODATA): Likewise.
11292 (SECT_OFF_TEXT): Likewise.
11293 (SECT_OFF_BSS): Likewise.
11294 (struct objfile) <text_section_offset, data_section_offset>: New
11295 methods.
11296 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11297 objfile::text_section_offset.
11298 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11299 * coffread.c (coff_symtab_read): Likewise.
11300 (enter_linenos): Likewise.
11301 (process_coff_symbol): Likewise.
11302 * ctfread.c (get_objfile_text_range): Likewise.
11303 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11304 Use objfile::data_section_offset.
11305 * dwarf2-frame.c (execute_cfa_program): Use
11306 objfile::text_section_offset.
11307 (dwarf2_frame_find_fde): Likewise.
11308 * dwarf2read.c (create_addrmap_from_index): Likewise.
11309 (create_addrmap_from_aranges): Likewise.
11310 (dw2_find_pc_sect_compunit_symtab): Likewise.
11311 (process_psymtab_comp_unit_reader): Likewise.
11312 (add_partial_symbol): Likewise.
11313 (add_partial_subprogram): Likewise.
11314 (process_full_comp_unit): Likewise.
11315 (read_file_scope): Likewise.
11316 (read_func_scope): Likewise.
11317 (read_lexical_block_scope): Likewise.
11318 (read_call_site_scope): Likewise.
11319 (dwarf2_rnglists_process): Likewise.
11320 (dwarf2_ranges_process): Likewise.
11321 (dwarf2_ranges_read): Likewise.
11322 (dwarf_decode_lines_1): Likewise.
11323 (new_symbol): Likewise.
11324 (dwarf2_fetch_die_loc_sect_off): Likewise.
11325 (dwarf2_per_cu_text_offset): Likewise.
11326 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11327 * hppa-tdep.c (read_unwind_info): Likewise.
11328 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11329 * psympriv.h (struct partial_symtab): Likewise.
11330 * psymtab.c (find_pc_sect_psymtab): Likewise.
11331 * solib-svr4.c (enable_break): Likewise.
11332 * stap-probe.c (relocate_address): Use
11333 objfile::data_section_offset.
11334 * xcoffread.c (enter_line_range): Use
11335 objfile::text_section_offset.
11336 (read_xcoff_symtab): Likewise.
11337
ab53f382
SM
113382020-01-23 Simon Marchi <simon.marchi@efficios.com>
11339
11340 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11341 declaration to narrower scopes.
11342
e7eee665
SM
113432020-01-23 Simon Marchi <simon.marchi@efficios.com>
11344
11345 * darwin-nat.h (struct darwin_exception_msg, enum
11346 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11347 Move up.
11348 (class darwin_nat_target) <wait_1, check_new_threads,
11349 decode_exception_message, decode_message, stop_inferior,
11350 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11351 * darwin-nat.c (darwin_check_new_threads): Rename to...
11352 (darwin_nat_target::check_new_threads): ... this.
11353 (darwin_suspend_inferior_it): Remove.
11354 (darwin_decode_exception_message): Rename to...
11355 (darwin_nat_target::decode_exception_message): ... this.
11356 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11357 (darwin_decode_message): Rename to...
11358 (darwin_nat_target::decode_message): ... this.
11359 (cancel_breakpoint): Rename to...
11360 (darwin_nat_target::cancel_breakpoint): ... this.
11361 (darwin_wait): Rename to...
11362 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11363 instead of iterate_over_inferiors.
11364 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11365 (darwin_stop_inferior): Rename to...
11366 (darwin_nat_target::stop_inferior): ... this.
11367 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11368 (darwin_init_thread_list): Rename to...
11369 (darwin_nat_target::init_thread_list): ... this.
11370 (darwin_ptrace_him): Rename to...
11371 (darwin_nat_target::ptrace_him): ... this.
11372 (darwin_nat_target::create_inferior): Pass lambda function to
11373 fork_inferior.
11374 (darwin_nat_target::detach): Call stop_inferior instead of
11375 darwin_stop_inferior.
11376 * fork-inferior.h (fork_inferior): Change init_trace_fun
11377 parameter to gdb::function_view.
11378 * fork-inferior.c (fork_inferior): Likewise.
11379
c162ed3e
HD
113802020-01-23 Hannes Domani <ssbssa@yahoo.de>
11381
11382 * i386-cygwin-tdep.c (core_process_module_section): Update.
11383 * windows-nat.c (struct lm_info_windows): Add text_offset.
11384 (windows_xfer_shared_libraries): Update.
11385 * windows-tdep.c (windows_xfer_shared_library):
11386 Add text_offset_cached argument.
11387 * windows-tdep.h (windows_xfer_shared_library): Update.
11388
a1237872
SM
113892020-01-21 Simon Marchi <simon.marchi@efficios.com>
11390
11391 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11392
b3ee6dd9
SM
113932020-01-21 Simon Marchi <simon.marchi@efficios.com>
11394
11395 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11396 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11397 replace with range-based for.
11398 (gdbsim_interrupt_inferior): Remove.
11399 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11400 with a range-based for. Inline code from
11401 gdbsim_interrupt_inferior.
11402
f9fac3c8
SM
114032020-01-21 Simon Marchi <simon.marchi@efficios.com>
11404
11405 * infrun.c (proceed): Fix indentation.
11406
f6474de9
TT
114072020-01-21 Tom Tromey <tromey@adacore.com>
11408
11409 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11410 * python/python.c (python_extension_ops): Update.
11411 (gdbpy_colorize): New function.
11412 * python/lib/gdb/__init__.py (colorize): New function.
11413 * extension.h (ext_lang_colorize): Declare.
11414 * extension.c (ext_lang_colorize): New function.
11415 * extension-priv.h (struct extension_language_ops) <colorize>: New
11416 member.
11417 * cli/cli-style.c (_initialize_cli_style): Update help text.
11418
f0c702d4
LM
114192020-01-21 Luis Machado <luis.machado@linaro.org>
11420
11421 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11422 <cond>: Change type to bool.
11423 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11424 (aarch64_displaced_step_cb): Likewise.
11425 (aarch64_displaced_step_tb): Likewise.
11426
1ab139e5
LM
114272020-01-21 Luis Machado <luis.machado@linaro.org>
11428
11429 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11430 output.
11431
0c271889
LM
114322020-01-21 Luis Machado <luis.machado@linaro.org>
11433
11434 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11435 <pc_adjust>: Adjust the documentation.
11436 (aarch64_displaced_step_fixup): Check if PC really moved before
11437 adjusting it.
11438
4d89c1c7
TT
114392020-01-19 Tom Tromey <tom@tromey.com>
11440
11441 * disasm.c (~gdb_disassembler): New destructor.
11442 (gdb_buffered_insn_length): Call disassemble_free_target.
11443 * disasm.h (class gdb_disassembler): Declare destructor. Use
11444 DISABLE_COPY_AND_ASSIGN.
11445
c0ab21c2
TT
114462020-01-19 Tom Tromey <tom@tromey.com>
11447
11448 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11449 (die_reader_func_ftype): Remove.
11450 (cutu_reader): New class.
11451 (dw2_get_file_names_reader): Remove "data" parameter.
11452 (dw2_get_file_names): Use cutu_reader.
11453 (create_debug_type_hash_table): Update.
11454 (read_cutu_die_from_dwo): Update comment.
11455 (lookup_dwo_unit): Add dwo_name parameter.
11456 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11457 die_reader_func_ftype and data parameters.
11458 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11459 Remove die_reader_func_ftype and data parameters.
11460 (~cutu_reader): New; from init_cutu_and_read_dies.
11461 (cutu_reader::cutu_reader): Rename from
11462 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11463 and data parameters.
11464 (init_cutu_and_read_dies_simple): Remove.
11465 (struct process_psymtab_comp_unit_data): Remove.
11466 (process_psymtab_comp_unit_reader): Remove data parameter; add
11467 want_partial_unit and pretend_language parameters.
11468 (process_psymtab_comp_unit): Use cutu_reader.
11469 (build_type_psymtabs_reader): Remove data parameter.
11470 (build_type_psymtabs_1): Use cutu_reader.
11471 (process_skeletonless_type_unit): Likewise.
11472 (load_partial_comp_unit_reader): Remove.
11473 (load_partial_comp_unit): Use cutu_reader.
11474 (load_full_comp_unit_reader): Remove.
11475 (load_full_comp_unit): Use cutu_reader.
11476 (struct create_dwo_cu_data): Remove.
11477 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11478 dwo_unit parameters.
11479 (create_cus_hash_table): Use cutu_reader.
11480 (struct dwarf2_read_addr_index_data): Remove.
11481 (dwarf2_read_addr_index_reader): Remove.
11482 (dwarf2_read_addr_index): Use cutu_reader.
11483 (read_signatured_type_reader): Remove.
11484 (read_signatured_type): Use cutu_reader.
11485
45bbae5c
TT
114862020-01-19 Tom Tromey <tom@tromey.com>
11487
11488 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11489 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11490 (tui_wrefresh): Declare.
11491 * tui/tui-wingeneral.c (suppress_output): New global.
11492 (tui_suppress_output, ~tui_suppress_output): New constructor and
11493 destructor.
11494 (tui_wrefresh): New function.
11495 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11496 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11497 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11498 method.
11499 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11500 tui_wrefresh.
11501 (tui_data_window::no_refresh): New method.
11502 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11503 (tui_reg_command): Use tui_suppress_output
11504 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11505 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11506 method.
11507 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11508
4f13c1c0
TT
115092020-01-19 Tom Tromey <tom@tromey.com>
11510
11511 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11512 Handle case where symtab is null.
11513
fa47e446
SM
115142020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11515
11516 * linux-fork.c (one_fork_p): Simplify.
11517
26f42329
SM
115182020-01-17 Simon Marchi <simon.marchi@efficios.com>
11519
11520 * top.c (struct qt_args): Remove.
11521 (kill_or_detach): Change return type to void, replace `void *`
11522 parameter with a proper one.
11523 (print_inferior_quit_action): Likewise.
11524 (quit_confirm): Use range-based for loop to iterate over inferiors.
11525 (quit_force): Likewise.
11526
a9ac81b1
SM
115272020-01-17 Simon Marchi <simon.marchi@efficios.com>
11528
11529 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11530 `void *` parameter with proper parameters.
11531 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11532 (print_one_inferior): Change return type to void, replace `void *`
11533 parameter with proper parameters.
11534 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11535 inferiors.
11536 (get_other_inferior): Remove.
11537 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11538 inferiors.
11539
788eca49
SM
115402020-01-17 Simon Marchi <simon.marchi@efficios.com>
11541
11542 * mi/mi-interp.c (report_initial_inferior): Remove.
11543 (mi_interp::init): Use range-based for to iterate over inferiors.
11544
d9bc85b6
SM
115452020-01-17 Simon Marchi <simon.marchi@efficios.com>
11546
11547 * python/py-inferior.c (build_inferior_list): Remove.
11548 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11549
40c94099
CB
115502020-01-16 Christian Biesinger <cbiesinger@google.com>
11551
11552 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11553 (btrace_stitch_trace): Likewise.
11554 * charset.c (intermediate_encoding): Likewise (vaild).
11555 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11556 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11557 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11558
e0cdfe3c
HD
115592020-01-16 Hannes Domani <ssbssa@yahoo.de>
11560
11561 * windows-tdep.c (windows_get_tlb_type):
11562 Add rtl_user_process_parameters type.
11563
790f1718 115642020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 11565 Norbert Lange <nolange79@gmail.com>
790f1718
PA
11566
11567 PR build/24805
11568 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11569 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11570 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11571 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11572 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11573 (ps_plog): Redeclare exported functions with default visibility.
11574
3112ed97
NA
115752020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11576
11577 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11578 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11579
8dc3273e
SM
115802020-01-15 Simon Marchi <simon.marchi@efficios.com>
11581
11582 * infcmd.c (post_create_inferior): Use get_thread_regcache
11583 instead of get_current_regcache.
11584
ff47f4f0
TT
115852020-01-14 Tom Tromey <tom@tromey.com>
11586
11587 PR symtab/12535:
11588 * python/python.c (gdbpy_decode_line): Treat empty string the same
11589 as no argument.
11590
975f45b7
TT
115912020-01-14 Tom Tromey <tom@tromey.com>
11592
11593 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11594
25e57356
TT
115952020-01-14 Tom Tromey <tom@tromey.com>
11596
11597 * nat/linux-btrace.c: Don't include <config.h>.
11598 * nat/linux-ptrace.c: Don't include <config.h>.
11599 * nat/x86-linux-dregs.c: Don't include <config.h>.
11600
05ea2a05
TT
116012020-01-14 Tom Tromey <tom@tromey.com>
11602
11603 * configure: Rebuild.
11604 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11605
01027315
TT
116062020-01-14 Tom Tromey <tom@tromey.com>
11607
11608 * nat/x86-linux-dregs.c: Include configh.h.
11609 * nat/linux-ptrace.c: Include configh.h.
11610 * nat/linux-btrace.c: Include configh.h.
11611 * defs.h: Include config.h, bfd.h.
11612 * configure.ac: Don't source common.host.
11613 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11614 * configure: Rebuild.
11615 * acinclude.m4: Update path.
11616 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11617 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11618 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11619 (CLIBS): Add LIBSUPPORT.
11620 (CDEPS): Likewise.
11621 (COMMON_SFILES): Remove gdbsupport files.
11622 (HFILES_NO_SRCDIR): Likewise.
11623 (stamp-version): Update path to create-version.sh.
11624 (ALLDEPFILES): Remove gdbsupport files.
11625
b2ceabe8
TT
116262020-01-14 Tom Tromey <tom@tromey.com>
11627
11628 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11629 USE_WIN32API when needed.
11630 * configure.ac (USE_WIN32API): Don't define.
11631 (WIN32LIBS): Use WIN32APILIBS.
11632 * configure: Rebuild.
11633
25c51f71
TT
116342020-01-14 Tom Tromey <tom@tromey.com>
11635
11636 * configure: Rebuild.
11637 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11638
717c684d
BE
116392020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11640
11641 * skip.c (skip_function_command): Make skip w/o arguments use the
11642 name of the inlined function if pc is inside any inlined function.
11643
7da6a5b9
LM
116442020-01-14 Luis Machado <luis.machado@linaro.org>
11645
11646 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11647 * infrun.c (resume_1): Likewise.
11648 (handle_inferior_event): Remove stale comment.
11649 * linux-nat.c (linux_nat_target::resume): Update comments.
11650 (save_stop_reason): Likewise.
11651 (linux_nat_filter_event): Likewise.
11652 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11653
44e4c775
AB
116542020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11655
11656 * elfread.c (record_minimal_symbol): Set section index to 0 for
11657 non-allocatable sections.
11658
18a8505e
AT
11659
116602020-01-13 Ali Tamur <tamur@google.com>
11661
11662 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11663 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11664 to gdb::optional. Update comments.
11665 (dwo_file): Update comments.
11666 (read_attribute): Update API to take an additional out parameter,
11667 need_reprocess. This is used to mark attributes that need other
11668 attributes (e.g. str_offsets_base) for correct computation which may not
11669 have been read yet.
11670 (read_attribute_reprocess): New function declaration.
11671 (read_addr_index): Likewise.
11672 (read_dwo_str_index): Likewise.
11673 (read_stub_str_index): Likewise.
11674 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11675 (lookup_addr_base): New function definition.
11676 (lookup_ranges_base): Likewise.
11677 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11678 lookup_ranges_base.
11679 (init_cutu_and_read_dies): Update comments.
11680 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11681 unit. This is used to inherit parent's str_offsets_base and addr_base.
11682 Update comments.
11683 (init_cutu_and_read_dies_simple): Reflect API changes.
11684 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11685 (create_cus_hash_table): Change API to take parent compile unit.
11686 Reflect API changes.
11687 (open_and_init_dwo_file): Reflect API changes.
11688 (dwarf2_get_pc_bounds): Update comments.
11689 (dwarf2_record_block_ranges): Likewise.
11690 (read_full_die_1): Change implementation to reprocess attributes that
11691 need str_offsets_base and addr_base.
11692 (partial_die_info::read): Likewise.
11693 (read_attribute_reprocess): New function definition.
11694 (read_attribute_value): Change API to take an additional out parameter,
11695 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11696 when a non-dwo compile unit has index based attributes.
11697 (read_attribute): Reflect API changes.
11698 (read_addr_index_1): Reflect API changes. Update comments.
11699 (dwarf2_read_addr_index_data): Reflect API changes.
11700 (dwarf2_read_addr_index): Likewise.
11701 (read_str_index): Change API and implementation. This becomes a helper
11702 to be used by the new string index related methods. Update error
11703 message and comments.
11704 (read_dwo_str_index): New function definition.
11705 (read_stub_str_index): Likewise.
11706 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11707 * symfile.h (dwarf2_debug_sections): Likewise.
11708 * xcoffread.c (dwarf2_debug_sections): Likewise.
11709
0cac9354
SM
117102020-01-13 Simon Marchi <simon.marchi@efficios.com>
11711
11712 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11713 core_reg_sect type to gdb_byte *.
11714 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11715 * cris-tdep.c (fetch_core_registers): Likewise.
11716 * corelow.c (core_target::get_core_register_section): Change
11717 type of `contents` to gdb::byte_vector.
11718
9a6d629c
AB
117192020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11720
11721 * tui/tui-wingeneral.c (box_win): Position the title in the center
11722 of the border.
11723
d8b2f9e3
SM
117242020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11725
11726 * corelow.c (core_target::get_core_register_section): Use
11727 std::vector instead of alloca.
11728
bb564c58
SM
117292020-01-13 Simon Marchi <simon.marchi@efficios.com>
11730
11731 * warning.m4: Add -Wmissing-declarations to build_warnings.
11732 * configure: Re-generate.
11733
6b366111
SM
117342020-01-13 Simon Marchi <simon.marchi@efficios.com>
11735
11736 * python/python.c (init__gdb_module): Add declaration.
11737
6c265988
SM
117382020-01-13 Simon Marchi <simon.marchi@efficios.com>
11739
11740 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11741 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11742 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11743 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11744 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11745 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11746 * ada-exp.y (_initialize_ada_exp): Add declaration.
11747 * ada-lang.c (_initialize_ada_language): Add declaration.
11748 * ada-tasks.c (_initialize_tasks): Add declaration.
11749 * agent.c (_initialize_agent): Add declaration.
11750 * aix-thread.c (_initialize_aix_thread): Add declaration.
11751 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11752 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11753 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11754 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11755 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11756 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11757 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11758 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11759 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11760 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11761 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11762 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11763 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11764 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11765 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11766 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11767 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11768 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11769 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11770 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11771 * annotate.c (_initialize_annotate): Add declaration.
11772 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11773 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11774 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11775 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11776 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11777 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11778 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11779 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11780 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11781 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11782 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11783 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11784 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11785 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11786 * auto-load.c (_initialize_auto_load): Add declaration.
11787 * auxv.c (_initialize_auxv): Add declaration.
11788 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11789 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11790 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11791 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11792 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11793 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11794 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11795 * breakpoint.c (_initialize_breakpoint): Add declaration.
11796 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11797 * btrace.c (_initialize_btrace): Add declaration.
11798 * charset.c (_initialize_charset): Add declaration.
11799 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11800 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11801 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11802 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11803 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11804 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11805 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11806 * coffread.c (_initialize_coffread): Add declaration.
11807 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11808 * compile/compile.c (_initialize_compile): Add declaration.
11809 * complaints.c (_initialize_complaints): Add declaration.
11810 * completer.c (_initialize_completer): Add declaration.
11811 * copying.c (_initialize_copying): Add declaration.
11812 * corefile.c (_initialize_core): Add declaration.
11813 * corelow.c (_initialize_corelow): Add declaration.
11814 * cp-abi.c (_initialize_cp_abi): Add declaration.
11815 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11816 * cp-support.c (_initialize_cp_support): Add declaration.
11817 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11818 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11819 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11820 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11821 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11822 * ctfread.c (_initialize_ctfread): Add declaration.
11823 * d-lang.c (_initialize_d_language): Add declaration.
11824 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11825 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11826 * dbxread.c (_initialize_dbxread): Add declaration.
11827 * dcache.c (_initialize_dcache): Add declaration.
11828 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11829 * disasm.c (_initialize_disasm): Add declaration.
11830 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11831 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11832 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11833 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11834 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11835 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11836 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11837 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11838 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11839 * elfread.c (_initialize_elfread): Add declaration.
11840 * exec.c (_initialize_exec): Add declaration.
11841 * extension.c (_initialize_extension): Add declaration.
11842 * f-lang.c (_initialize_f_language): Add declaration.
11843 * f-valprint.c (_initialize_f_valprint): Add declaration.
11844 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11845 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11846 * filesystem.c (_initialize_filesystem): Add declaration.
11847 * findcmd.c (_initialize_mem_search): Add declaration.
11848 * findvar.c (_initialize_findvar): Add declaration.
11849 * fork-child.c (_initialize_fork_child): Add declaration.
11850 * frame-base.c (_initialize_frame_base): Add declaration.
11851 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11852 * frame.c (_initialize_frame): Add declaration.
11853 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11854 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11855 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11856 * gcore.c (_initialize_gcore): Add declaration.
11857 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11858 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11859 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11860 * gdbarch.c (_initialize_gdbarch): Add declaration.
11861 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11862 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11863 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11864 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11865 * go-lang.c (_initialize_go_language): Add declaration.
11866 * go32-nat.c (_initialize_go32_nat): Add declaration.
11867 * guile/guile.c (_initialize_guile): Add declaration.
11868 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11869 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11870 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11871 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11872 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11873 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11874 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11875 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11876 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11877 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11878 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11879 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11880 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11881 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11882 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11883 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11884 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11885 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11886 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11887 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11888 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11889 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11890 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11891 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11892 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11893 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11894 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11895 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11896 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11897 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11898 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11899 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11900 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11901 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11902 * infcall.c (_initialize_infcall): Add declaration.
11903 * infcmd.c (_initialize_infcmd): Add declaration.
11904 * inflow.c (_initialize_inflow): Add declaration.
11905 * infrun.c (_initialize_infrun): Add declaration.
11906 * interps.c (_initialize_interpreter): Add declaration.
11907 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11908 * jit.c (_initialize_jit): Add declaration.
11909 * language.c (_initialize_language): Add declaration.
11910 * linux-fork.c (_initialize_linux_fork): Add declaration.
11911 * linux-nat.c (_initialize_linux_nat): Add declaration.
11912 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11913 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11914 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11915 * m2-lang.c (_initialize_m2_language): Add declaration.
11916 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11917 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11918 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11919 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11920 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11921 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11922 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11923 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11924 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11925 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11926 * machoread.c (_initialize_machoread): Add declaration.
11927 * macrocmd.c (_initialize_macrocmd): Add declaration.
11928 * macroscope.c (_initialize_macroscope): Add declaration.
11929 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11930 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11931 * maint.c (_initialize_maint_cmds): Add declaration.
11932 * mdebugread.c (_initialize_mdebugread): Add declaration.
11933 * memattr.c (_initialize_mem): Add declaration.
11934 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11935 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11936 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11937 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11938 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11939 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11940 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11941 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11942 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11943 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11944 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11945 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11946 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11947 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11948 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11949 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11950 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11951 * mipsread.c (_initialize_mipsread): Add declaration.
11952 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11953 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11954 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11955 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11956 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11957 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11958 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11959 * nto-procfs.c (_initialize_procfs): Add declaration.
11960 * objc-lang.c (_initialize_objc_language): Add declaration.
11961 * observable.c (_initialize_observer): Add declaration.
11962 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11963 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11964 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11965 * osabi.c (_initialize_gdb_osabi): Add declaration.
11966 * osdata.c (_initialize_osdata): Add declaration.
11967 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11968 * parse.c (_initialize_parse): Add declaration.
11969 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11970 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11971 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11972 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11973 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11974 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11975 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11976 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11977 * printcmd.c (_initialize_printcmd): Add declaration.
11978 * probe.c (_initialize_probe): Add declaration.
11979 * proc-api.c (_initialize_proc_api): Add declaration.
11980 * proc-events.c (_initialize_proc_events): Add declaration.
11981 * proc-service.c (_initialize_proc_service): Add declaration.
11982 * procfs.c (_initialize_procfs): Add declaration.
11983 * producer.c (_initialize_producer): Add declaration.
11984 * psymtab.c (_initialize_psymtab): Add declaration.
11985 * python/python.c (_initialize_python): Add declaration.
11986 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11987 * record-btrace.c (_initialize_record_btrace): Add declaration.
11988 * record-full.c (_initialize_record_full): Add declaration.
11989 * record.c (_initialize_record): Add declaration.
11990 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11991 * regcache.c (_initialize_regcache): Add declaration.
11992 * reggroups.c (_initialize_reggroup): Add declaration.
11993 * remote-notif.c (_initialize_notif): Add declaration.
11994 * remote-sim.c (_initialize_remote_sim): Add declaration.
11995 * remote.c (_initialize_remote): Add declaration.
11996 * reverse.c (_initialize_reverse): Add declaration.
11997 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11998 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11999 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12000 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12001 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12002 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12003 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12004 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12005 Add declaration.
12006 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12007 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12008 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12009 * rust-exp.y (_initialize_rust_exp): Add declaration.
12010 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12011 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12012 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12013 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12014 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12015 * score-tdep.c (_initialize_score_tdep): Add declaration.
12016 * ser-go32.c (_initialize_ser_dos): Add declaration.
12017 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12018 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12019 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12020 * ser-uds.c (_initialize_ser_socket): Add declaration.
12021 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12022 * serial.c (_initialize_serial): Add declaration.
12023 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12024 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12025 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12026 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12027 * skip.c (_initialize_step_skip): Add declaration.
12028 * sol-thread.c (_initialize_sol_thread): Add declaration.
12029 * solib-aix.c (_initialize_solib_aix): Add declaration.
12030 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12031 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12032 * solib-frv.c (_initialize_frv_solib): Add declaration.
12033 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12034 * solib-target.c (_initialize_solib_target): Add declaration.
12035 * solib.c (_initialize_solib): Add declaration.
12036 * source-cache.c (_initialize_source_cache): Add declaration.
12037 * source.c (_initialize_source): Add declaration.
12038 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12039 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12040 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12041 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12042 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12043 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12044 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12045 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12046 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12047 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12048 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12049 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12050 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12051 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12052 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12053 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12054 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12055 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12056 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12057 * stabsread.c (_initialize_stabsread): Add declaration.
12058 * stack.c (_initialize_stack): Add declaration.
12059 * stap-probe.c (_initialize_stap_probe): Add declaration.
12060 * std-regs.c (_initialize_frame_reg): Add declaration.
12061 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12062 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12063 * symfile.c (_initialize_symfile): Add declaration.
12064 * symmisc.c (_initialize_symmisc): Add declaration.
12065 * symtab.c (_initialize_symtab): Add declaration.
12066 * target.c (_initialize_target): Add declaration.
12067 * target-connection.c (_initialize_target_connection): Add
12068 declaration.
12069 * target-dcache.c (_initialize_target_dcache): Add declaration.
12070 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12071 * thread.c (_initialize_thread): Add declaration.
12072 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12073 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12074 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12075 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12076 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12077 * tracectf.c (_initialize_ctf): Add declaration.
12078 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12079 * tracefile.c (_initialize_tracefile): Add declaration.
12080 * tracepoint.c (_initialize_tracepoint): Add declaration.
12081 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12082 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12083 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12084 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12085 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12086 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12087 * tui/tui.c (_initialize_tui): Add declaration.
12088 * typeprint.c (_initialize_typeprint): Add declaration.
12089 * ui-style.c (_initialize_ui_style): Add declaration.
12090 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12091 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12092 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12093 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12094 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12095 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12096 * unittests/filtered_iterator-selftests.c
12097 (_initialize_filtered_iterator_selftests): Add declaration.
12098 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12099 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12100 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12101 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12102 * unittests/main-thread-selftests.c
12103 (_initialize_main_thread_selftests): Add declaration.
12104 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12105 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12106 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12107 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12108 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12109 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12110 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12111 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12112 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12113 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12114 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12115 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12116 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12117 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12118 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12119 declaration.
12120 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12121 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12122 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12123 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12124 * user-regs.c (_initialize_user_regs): Add declaration.
12125 * utils.c (_initialize_utils): Add declaration.
12126 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12127 * valops.c (_initialize_valops): Add declaration.
12128 * valprint.c (_initialize_valprint): Add declaration.
12129 * value.c (_initialize_values): Add declaration.
12130 * varobj.c (_initialize_varobj): Add declaration.
12131 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12132 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12133 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12134 * windows-nat.c (_initialize_windows_nat): Add declaration.
12135 (_initialize_check_for_gdb_ini): Add declaration.
12136 (_initialize_loadable): Add declaration.
12137 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12138 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12139 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12140 * xcoffread.c (_initialize_xcoffread): Add declaration.
12141 * xml-support.c (_initialize_xml_support): Add declaration.
12142 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12143 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12144 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12145 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12146
e2de1eec
SM
121472020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12148
12149 * regformats/regdat.sh: Generate declaration for init function.
12150
e0037b4c
SM
121512020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12152
12153 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12154 up.
12155 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12156 close_one_inferior>: New methods.
12157 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12158 pass down target to find_inferior_pid.
12159 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12160 Pass down target to find_inferior_ptid.
12161 (gdbsim_target::create_inferior): Pass down target to
12162 add_thread_silent.
12163 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12164 target down to find_inferior_ptid and switch_to_thread.
12165 (gdbsim_target::close): Update to call close_one_inferior.
12166 (struct resume_data): Remove.
12167 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12168 directly, rather than through a void pointer.
12169 (gdbsim_target::resume): Update to call resume_one_inferior.
12170
58920b5b
SM
121712020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12172
12173 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12174
4ec89149
PA
121752020-01-12 Pedro Alves <palves@redhat.com>
12176
12177 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12178 directly for the current inferior instead of
12179 discard_all_inferiors.
12180 (discard_all_inferiors): Delete.
12181
7c392d1d
TT
121822020-01-11 Tom Tromey <tom@tromey.com>
12183
12184 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12185 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12186 deprecated_safe_get_selected_frame.
12187
d9ebdab7
TBA
121882020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12189
12190 * inferior.c (print_inferior): Switch inferior before printing it.
12191
f3c469b9
PA
121922020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12193 Pedro Alves <palves@redhat.com>
12194
12195 * progspace-and-thread.c (switch_to_program_space_and_thread):
12196 Assert there's an inferior for PSPACE. Use
12197 switch_to_inferior_no_thread to switch the inferior too.
12198 * progspace.c (program_space::~program_space): Call
12199 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12200 (program_space::free_all_objfiles): Don't call clear_symtab_users
12201 here.
12202 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12203
65c574f6
PA
122042020-01-10 Pedro Alves <palves@redhat.com>
12205
12206 * NEWS: Mention multi-target debugging, "info connections", and
12207 "add-inferior -no-connection".
12208
2f4fcf00
PA
122092020-01-10 Pedro Alves <palves@redhat.com>
12210
12211 * infrun.c: Include "target-connection.h".
12212 (check_multi_target_resumption): New.
12213 (proceed): Call it.
12214 * target-connection.c (make_target_connection_string): Make
12215 extern.
12216 * target-connection.h (make_target_connection_string): Declare.
12217
121b3efd
PA
122182020-01-10 Pedro Alves <palves@redhat.com>
12219
12220 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12221 * inferior.c (uiout_field_connection): New function.
12222 (print_inferior): Add new "connection-id" column.
12223 (add_inferior_command): Show connection number/string of added
12224 inferior.
12225 * process-stratum-target.h
12226 (process_stratum_target::connection_string): New virtual method.
12227 (process_stratum_target::connection_number): New field.
12228 * remote.c (remote_target::connection_string): New override.
12229 * target-connection.c: New file.
12230 * target-connection.h: New file.
12231 * target.c (decref_target): Remove process_stratum targets from
12232 the connection list.
12233 (target_stack::push): Add process_stratum targets to the
12234 connection list.
12235
4f837581
PA
122362020-01-10 Pedro Alves <palves@redhat.com>
12237
12238 Revert:
12239 2016-04-12 Pedro Alves <palves@redhat.com>
12240 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12241 Remove references to name.
12242 * serial.h (struct serial) <name>: Delete.
12243
f4ec508e
PA
122442020-01-10 Pedro Alves <palves@redhat.com>
12245
12246 * gdbarch-selftests.c (register_to_value_test): Remove "target
12247 already pushed" check.
12248
5b6d1e4f
PA
122492020-01-10 Pedro Alves <palves@redhat.com>
12250 John Baldwin <jhb@FreeBSD.org>
12251
12252 * aarch64-linux-nat.c
12253 (aarch64_linux_nat_target::thread_architecture): Adjust.
12254 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12255 (task_command_1): Likewise.
12256 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12257 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12258 (aix_thread_target::store_registers)
12259 (aix_thread_target::thread_alive): Adjust.
12260 * amd64-fbsd-tdep.c: Include "inferior.h".
12261 (amd64fbsd_get_thread_local_address): Pass down target.
12262 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12263 thread's gdbarch instead of target_gdbarch.
12264 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12265 get_last_target_status.
12266 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12267 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12268 inferiors.
12269 (update_inserted_breakpoint_locations): Skip if inferiors with no
12270 execution.
12271 (update_global_location_list): When handling moribund locations,
12272 find representative inferior for location's pspace, and use thread
12273 count of its process_stratum target.
12274 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12275 * bsd-uthread.c (bsd_uthread_target::wait): Use
12276 as_process_stratum_target and adjust thread_change_ptid and
12277 add_thread calls.
12278 (bsd_uthread_target::update_thread_list): Use
12279 as_process_stratum_target and adjust find_thread_ptid,
12280 thread_change_ptid and add_thread calls.
12281 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12282 find_thread_ptid call.
12283 * corelow.c (add_to_thread_list): Adjust add_thread call.
12284 (core_target_open): Adjust add_thread_silent and thread_count
12285 calls.
12286 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12287 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12288 * event-top.c (async_disconnect): Pop targets from all inferiors.
12289 * exec.c (add_target_sections): Push exec target on all inferiors
12290 sharing the program space.
12291 (remove_target_sections): Remove the exec target from all
12292 inferiors sharing the program space.
12293 (exec_on_vfork): New.
12294 * exec.h (exec_on_vfork): Declare.
12295 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12296 Pass it down.
12297 (fbsd_nat_target::update_thread_list): Adjust.
12298 (fbsd_nat_target::resume): Adjust.
12299 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12300 down.
12301 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12302 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12303 get_thread_arch_regcache call.
12304 * fork-child.c (gdb_startup_inferior): Pass target down to
12305 startup_inferior and set_executing.
12306 * gdbthread.h (struct process_stratum_target): Forward declare.
12307 (add_thread, add_thread_silent, add_thread_with_info)
12308 (in_thread_list): Add process_stratum_target parameter.
12309 (find_thread_ptid(inferior*, ptid_t)): New overload.
12310 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12311 parameter.
12312 (all_threads()): Delete overload.
12313 (all_threads, all_non_exited_threads): Add process_stratum_target
12314 parameter.
12315 (all_threads_safe): Use brace initialization.
12316 (thread_count): Add process_stratum_target parameter.
12317 (set_resumed, set_running, set_stop_requested, set_executing)
12318 (threads_are_executing, finish_thread_state): Add
12319 process_stratum_target parameter.
12320 (switch_to_thread): Use is_current_thread.
12321 * i386-fbsd-tdep.c: Include "inferior.h".
12322 (i386fbsd_get_thread_local_address): Pass down target.
12323 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12324 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12325 have_inferiors check.
12326 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12327 (inf_ptrace_target::attach): Adjust.
12328 * infcall.c (run_inferior_call): Adjust.
12329 * infcmd.c (run_command_1): Pass target to
12330 scoped_finish_thread_state.
12331 (proceed_thread_callback): Skip inferiors with no execution.
12332 (continue_command): Rename 'all_threads' local to avoid hiding
12333 'all_threads' function. Adjust get_last_target_status call.
12334 (prepare_one_step): Adjust set_running call.
12335 (signal_command): Use user_visible_resume_target. Compare thread
12336 pointers instead of inferior_ptid.
12337 (info_program_command): Adjust to pass down target.
12338 (attach_command): Mark target's 'thread_executing' flag.
12339 (stop_current_target_threads_ns): New, factored out from ...
12340 (interrupt_target_1): ... this. Switch inferior before making
12341 target calls.
12342 * inferior-iter.h
12343 (struct all_inferiors_iterator, struct all_inferiors_range)
12344 (struct all_inferiors_safe_range)
12345 (struct all_non_exited_inferiors_range): Filter on
12346 process_stratum_target too. Remove explicit.
12347 * inferior.c (inferior::inferior): Push dummy target on target
12348 stack.
12349 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12350 Add process_stratum_target parameter, and pass it down.
12351 (have_live_inferiors): Adjust.
12352 (switch_to_inferior_and_push_target): New.
12353 (add_inferior_command, clone_inferior_command): Handle
12354 "-no-connection" parameter. Use
12355 switch_to_inferior_and_push_target.
12356 (_initialize_inferior): Mention "-no-connection" option in
12357 the help of "add-inferior" and "clone-inferior" commands.
12358 * inferior.h: Include "process-stratum-target.h".
12359 (interrupt_target_1): Use bool.
12360 (struct inferior) <push_target, unpush_target, target_is_pushed,
12361 find_target_beneath, top_target, process_target, target_at,
12362 m_stack>: New.
12363 (discard_all_inferiors): Delete.
12364 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12365 (all_inferiors, all_non_exited_inferiors): Add
12366 process_stratum_target parameter.
12367 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12368 (target_last_proc_target): New global.
12369 (follow_fork_inferior): Push target on new inferior. Pass target
12370 to add_thread_silent. Call exec_on_vfork. Handle target's
12371 reference count.
12372 (follow_fork): Adjust get_last_target_status call. Also consider
12373 target.
12374 (follow_exec): Push target on new inferior.
12375 (struct execution_control_state) <target>: New field.
12376 (user_visible_resume_target): New.
12377 (do_target_resume): Call target_async.
12378 (resume_1): Set target's threads_executing flag. Consider resume
12379 target.
12380 (commit_resume_all_targets): New.
12381 (proceed): Also consider resume target. Skip threads of inferiors
12382 with no execution. Commit resumtion in all targets.
12383 (start_remote): Pass current inferior to wait_for_inferior.
12384 (infrun_thread_stop_requested): Consider target as well. Pass
12385 thread_info pointer to clear_inline_frame_state instead of ptid.
12386 (infrun_thread_thread_exit): Consider target as well.
12387 (random_pending_event_thread): New inferior parameter. Use it.
12388 (do_target_wait): Rename to ...
12389 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12390 down.
12391 (threads_are_resumed_pending_p, do_target_wait): New.
12392 (prepare_for_detach): Adjust calls.
12393 (wait_for_inferior): New inferior parameter. Handle it. Use
12394 do_target_wait_1 instead of do_target_wait.
12395 (fetch_inferior_event): Adjust. Switch to representative
12396 inferior. Pass target down.
12397 (set_last_target_status): Add process_stratum_target parameter.
12398 Save target in global.
12399 (get_last_target_status): Add process_stratum_target parameter and
12400 handle it.
12401 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12402 (context_switch): Check inferior_ptid == null_ptid before calling
12403 inferior_thread().
12404 (get_inferior_stop_soon): Pass down target.
12405 (wait_one): Rename to ...
12406 (poll_one_curr_target): ... this.
12407 (struct wait_one_event): New.
12408 (wait_one): New.
12409 (stop_all_threads): Adjust.
12410 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12411 event's target.
12412 (switch_back_to_stepped_thread): Also consider target.
12413 (print_stop_event): Update.
12414 (normal_stop): Update. Also consider the resume target.
12415 * infrun.h (wait_for_inferior): Remove declaration.
12416 (user_visible_resume_target): New declaration.
12417 (get_last_target_status, set_last_target_status): New
12418 process_stratum_target parameter.
12419 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12420 process_stratum_target parameter, and use it.
12421 (clear_inline_frame_state (thread_info*)): New.
12422 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12423 process_stratum_target parameter.
12424 (clear_inline_frame_state (thread_info*)): Declare.
12425 * linux-fork.c (delete_checkpoint_command): Pass target down to
12426 find_thread_ptid.
12427 (checkpoint_command): Adjust.
12428 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12429 instead of just tweaking inferior_ptid.
12430 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12431 (exit_lwp): Pass target down to find_thread_ptid.
12432 (attach_proc_task_lwp_callback): Pass target down to
12433 add_thread/set_running/set_executing.
12434 (linux_nat_target::attach): Pass target down to
12435 thread_change_ptid.
12436 (get_detach_signal): Pass target down to find_thread_ptid.
12437 Consider last target status's target.
12438 (linux_resume_one_lwp_throw, resume_lwp)
12439 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12440 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12441 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12442 (linux_nat_target::async_wait_fd): New.
12443 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12444 target down.
12445 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12446 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12447 * linux-thread-db.c (struct thread_db_info::process_target): New
12448 field.
12449 (add_thread_db_info): Save target.
12450 (get_thread_db_info): New process_stratum_target parameter. Also
12451 match target.
12452 (delete_thread_db_info): New process_stratum_target parameter.
12453 Also match target.
12454 (thread_from_lwp): Adjust to pass down target.
12455 (thread_db_notice_clone): Pass down target.
12456 (check_thread_db_callback): Pass down target.
12457 (try_thread_db_load_1): Always push the thread_db target.
12458 (try_thread_db_load, record_thread): Pass target down.
12459 (thread_db_target::detach): Pass target down. Always unpush the
12460 thread_db target.
12461 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12462 target down. Always unpush the thread_db target.
12463 (find_new_threads_callback, thread_db_find_new_threads_2)
12464 (thread_db_target::update_thread_list): Pass target down.
12465 (thread_db_target::pid_to_str): Pass current inferior down.
12466 (thread_db_target::get_thread_local_address): Pass target down.
12467 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12468 target down.
12469 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12470 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12471 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12472 (procfs_init_inferior): Rename to ...
12473 (procfs_target::procfs_init_inferior): ... this and adjust.
12474 (procfs_target::create_inferior, procfs_notice_thread)
12475 (procfs_do_thread_registers): Adjust.
12476 * ppc-fbsd-tdep.c: Include "inferior.h".
12477 (ppcfbsd_get_thread_local_address): Pass down target.
12478 * proc-service.c (ps_xfer_memory): Switch current inferior and
12479 program space as well.
12480 (get_ps_regcache): Pass target down.
12481 * process-stratum-target.c
12482 (process_stratum_target::thread_address_space)
12483 (process_stratum_target::thread_architecture): Pass target down.
12484 * process-stratum-target.h
12485 (process_stratum_target::threads_executing): New field.
12486 (as_process_stratum_target): New.
12487 * ravenscar-thread.c
12488 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12489 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12490 down.
12491 * record-btrace.c (record_btrace_target::info_record): Adjust.
12492 (record_btrace_target::record_method)
12493 (record_btrace_target::record_is_replaying)
12494 (record_btrace_target::fetch_registers)
12495 (get_thread_current_frame_id, record_btrace_target::resume)
12496 (record_btrace_target::wait, record_btrace_target::stop): Pass
12497 target down.
12498 * record-full.c (record_full_wait_1): Switch to event thread.
12499 Pass target down.
12500 * regcache.c (regcache::regcache)
12501 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12502 process_stratum_target parameter and handle it.
12503 (current_thread_target): New global.
12504 (get_thread_regcache): Add process_stratum_target parameter and
12505 handle it. Switch inferior before calling target method.
12506 (get_thread_regcache): Pass target down.
12507 (get_thread_regcache_for_ptid): Pass target down.
12508 (registers_changed_ptid): Add process_stratum_target parameter and
12509 handle it.
12510 (registers_changed_thread, registers_changed): Pass target down.
12511 (test_get_thread_arch_aspace_regcache): New.
12512 (current_regcache_test): Define a couple local test_target_ops
12513 instances and use them for testing.
12514 (readwrite_regcache): Pass process_stratum_target parameter.
12515 (cooked_read_test, cooked_write_test): Pass mock_target down.
12516 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12517 (get_thread_arch_aspace_regcache): Add process_stratum_target
12518 parameter.
12519 (regcache::target): New method.
12520 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12521 (regcache::registers_changed_ptid): Add process_stratum_target
12522 parameter.
12523 (regcache::m_target): New field.
12524 (registers_changed_ptid): Add process_stratum_target parameter.
12525 * remote.c (remote_state::supports_vCont_probed): New field.
12526 (remote_target::async_wait_fd): New method.
12527 (remote_unpush_and_throw): Add remote_target parameter.
12528 (get_current_remote_target): Adjust.
12529 (remote_target::remote_add_inferior): Push target.
12530 (remote_target::remote_add_thread)
12531 (remote_target::remote_notice_new_inferior)
12532 (get_remote_thread_info): Pass target down.
12533 (remote_target::update_thread_list): Skip threads of inferiors
12534 bound to other targets. (remote_target::close): Don't discard
12535 inferiors. (remote_target::add_current_inferior_and_thread)
12536 (remote_target::process_initial_stop_replies)
12537 (remote_target::start_remote)
12538 (remote_target::remote_serial_quit_handler): Pass down target.
12539 (remote_target::remote_unpush_target): New remote_target
12540 parameter. Unpush the target from all inferiors.
12541 (remote_target::remote_unpush_and_throw): New remote_target
12542 parameter. Pass it down.
12543 (remote_target::open_1): Check whether the current inferior has
12544 execution instead of checking whether any inferior is live. Pass
12545 target down.
12546 (remote_target::remote_detach_1): Pass down target. Use
12547 remote_unpush_target.
12548 (extended_remote_target::attach): Pass down target.
12549 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12550 (remote_target::append_resumption): Pass down target.
12551 (remote_target::append_pending_thread_resumptions)
12552 (remote_target::remote_resume_with_hc, remote_target::resume)
12553 (remote_target::commit_resume): Pass down target.
12554 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12555 (remote_target::interrupt_query)
12556 (remote_target::remove_new_fork_children)
12557 (remote_target::check_pending_events_prevent_wildcard_vcont)
12558 (remote_target::remote_parse_stop_reply)
12559 (remote_target::process_stop_reply): Pass down target.
12560 (first_remote_resumed_thread): New remote_target parameter. Pass
12561 it down.
12562 (remote_target::wait_as): Pass down target.
12563 (unpush_and_perror): New remote_target parameter. Pass it down.
12564 (remote_target::readchar, remote_target::remote_serial_write)
12565 (remote_target::getpkt_or_notif_sane_1)
12566 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12567 down target.
12568 (remote_target::mourn_inferior): Pass down target. Use
12569 remote_unpush_target.
12570 (remote_target::core_of_thread)
12571 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12572 (remote_target::pid_to_exec_file)
12573 (remote_target::thread_handle_to_thread_info): Pass down target.
12574 (remote_target::async_wait_fd): New.
12575 * riscv-fbsd-tdep.c: Include "inferior.h".
12576 (riscv_fbsd_get_thread_local_address): Pass down target.
12577 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12578 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12579 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12580 Adjust.
12581 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12582 * solib-svr4.c (enable_break): Pass down target.
12583 * spu-multiarch.c (parse_spufs_run): Pass down target.
12584 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12585 * target-delegates.c: Regenerate.
12586 * target.c (g_target_stack): Delete.
12587 (current_top_target): Return the current inferior's top target.
12588 (target_has_execution_1): Refer to the passed-in inferior's top
12589 target.
12590 (target_supports_terminal_ours): Check whether the initial
12591 inferior was already created.
12592 (decref_target): New.
12593 (target_stack::push): Incref/decref the target.
12594 (push_target, push_target, unpush_target): Adjust.
12595 (target_stack::unpush): Defref target.
12596 (target_is_pushed): Return bool. Adjust to refer to the current
12597 inferior's target stack.
12598 (dispose_inferior): Delete, and inline parts ...
12599 (target_preopen): ... here. Only dispose of the current inferior.
12600 (target_detach): Hold strong target reference while detaching.
12601 Pass target down.
12602 (target_thread_name): Add assertion.
12603 (target_resume): Pass down target.
12604 (target_ops::beneath, find_target_at): Adjust to refer to the
12605 current inferior's target stack.
12606 (get_dummy_target): New.
12607 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12608 has a thread running.
12609 (initialize_targets): Rename to ...
12610 (_initialize_target): ... this.
12611 * target.h: Include "gdbsupport/refcounted-object.h".
12612 (struct target_ops): Inherit refcounted_object.
12613 (target_ops::shortname, target_ops::longname): Make const.
12614 (target_ops::async_wait_fd): New method.
12615 (decref_target): Declare.
12616 (struct target_ops_ref_policy): New.
12617 (target_ops_ref): New typedef.
12618 (get_dummy_target): Declare function.
12619 (target_is_pushed): Return bool.
12620 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12621 (all_matching_threads_iterator::all_matching_threads_iterator):
12622 Handle filter target.
12623 * thread-iter.h (struct all_matching_threads_iterator, struct
12624 all_matching_threads_range, class all_non_exited_threads_range):
12625 Filter by target too. Remove explicit.
12626 * thread.c (threads_executing): Delete.
12627 (inferior_thread): Pass down current inferior.
12628 (clear_thread_inferior_resources): Pass down thread pointer
12629 instead of ptid_t.
12630 (add_thread_silent, add_thread_with_info, add_thread): Add
12631 process_stratum_target parameter. Use it for thread and inferior
12632 searches.
12633 (is_current_thread): New.
12634 (thread_info::deletable): Use it.
12635 (find_thread_ptid, thread_count, in_thread_list)
12636 (thread_change_ptid, set_resumed, set_running): New
12637 process_stratum_target parameter. Pass it down.
12638 (set_executing): New process_stratum_target parameter. Pass it
12639 down. Adjust reference to 'threads_executing'.
12640 (threads_are_executing): New process_stratum_target parameter.
12641 Adjust reference to 'threads_executing'.
12642 (set_stop_requested, finish_thread_state): New
12643 process_stratum_target parameter. Pass it down.
12644 (switch_to_thread): Also match inferior.
12645 (switch_to_thread): New process_stratum_target parameter. Pass it
12646 down.
12647 (update_threads_executing): Reimplement.
12648 * top.c (quit_force): Pop targets from all inferior.
12649 (gdb_init): Don't call initialize_targets.
12650 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12651 Declare.
12652 (windows_add_thread, windows_delete_thread): Adjust.
12653 (get_windows_debug_event): Rename to ...
12654 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12655 * tracefile-tfile.c (tfile_target_open): Pass down target.
12656 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12657 Forward declare.
12658 (switch_to_thread): Add process_stratum_target parameter.
12659 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12660 parameter. Use it.
12661 (mi_on_resume): Pass target down.
12662 * nat/fork-inferior.c (startup_inferior): Add
12663 process_stratum_target parameter. Pass it down.
12664 * nat/fork-inferior.h (startup_inferior): Add
12665 process_stratum_target parameter.
12666 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12667
75c6c844
PA
126682020-01-10 Pedro Alves <palves@redhat.com>
12669
12670 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12671 directly. Instead find the first thread in the thread list and
12672 use switch_to_thread.
12673
78f2c40a
PA
126742020-01-10 Pedro Alves <palves@redhat.com>
12675
12676 * remote.c (remote_target::remote_add_inferior): Don't bind a
12677 process to the current inferior if the current inferior is already
12678 bound to a process.
12679
e7af6c70
TBA
126802020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12681 Pedro Alves <palves@redhat.com>
12682
12683 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12684 If no process is specified, return null_ptid instead of
12685 inferior_ptid.
12686 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12687 TARGET_WAITKIND_SIGNALLED with no pid.
12688
31ba933e
PA
126892020-01-10 Pedro Alves <palves@redhat.com>
12690
12691 * remote.c (first_remote_resumed_thread): New.
12692 (remote_target::wait_as): Use it as default event_ptid instead of
12693 inferior_ptid.
12694
735fc2ca
PA
126952020-01-10 Pedro Alves <palves@redhat.com>
12696
12697 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12698
c17e02e1
PA
126992020-01-10 Pedro Alves <palves@redhat.com>
12700
12701 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12702 not -1.
12703
ab1ddbcf
PA
127042020-01-10 Pedro Alves <palves@redhat.com>
12705
12706 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12707 ptid to get_last_target_status.
12708 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12709 ptid to get_last_target_status.
12710 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12711 get_last_target_status.
12712 (info_program_command): Don't pass a target_waitstatus to
12713 get_last_target_status.
12714 * infrun.c (init_wait_for_inferior): Use
12715 nullify_last_target_wait_ptid.
12716 (get_last_target_status): Handle nullptr arguments.
12717 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12718 (print_stop_event): Don't pass a ptid to get_last_target_status.
12719 (normal_stop): Don't pass a ptid to get_last_target_status.
12720 * infrun.h (get_last_target_status, set_last_target_status): Move
12721 comments here and update.
12722 (nullify_last_target_wait_ptid): Declare.
12723 * linux-fork.c (fork_load_infrun_state): Remove local extern
12724 declaration of nullify_last_target_wait_ptid.
12725 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12726 to get_last_target_status.
12727
f3f8ece4
PA
127282020-01-10 Pedro Alves <palves@redhat.com>
12729
12730 * gdbthread.h (scoped_restore_current_thread)
12731 <dont_restore, restore, m_dont_restore>: Declare.
12732 * thread.c (thread_alive): Add assertion. Return bool.
12733 (switch_to_thread_if_alive): New.
12734 (prune_threads): Switch inferior/thread.
12735 (print_thread_info_1): Switch thread before calling target methods.
12736 (scoped_restore_current_thread::restore): New, factored out from
12737 ...
12738 (scoped_restore_current_thread::~scoped_restore_current_thread):
12739 ... this.
12740 (scoped_restore_current_thread::scoped_restore_current_thread):
12741 Add assertion.
12742 (thread_apply_all_command, thread_select): Use
12743 switch_to_thread_if_alive.
12744 * infrun.c (proceed, restart_threads, handle_signal_stop)
12745 (switch_back_to_stepped_thread): Switch current thread before
12746 calling target methods.
12747
db2d40f7
PA
127482020-01-10 Pedro Alves <palves@redhat.com>
12749
12750 * inferior.c (switch_to_inferior_no_thread): New function,
12751 factored out from ...
12752 (inferior_command): ... here.
12753 * inferior.h (switch_to_inferior_no_thread): Declare.
12754 * mi/mi-main.c (run_one_inferior): Use
12755 switch_to_inferior_no_thread.
12756
bd420a2d
PA
127572020-01-10 Pedro Alves <palves@redhat.com>
12758
12759 * infcmd.c (kill_command): Remove dead code.
12760
ddf5db90
PA
127612020-01-10 Pedro Alves <palves@redhat.com>
12762
12763 * remote.c (remote_target::mourn_inferior): No longer check
12764 whether the target is running.
12765
5018ce90
PA
127662020-01-10 Pedro Alves <palves@redhat.com>
12767
12768 * corelow.c (core_target::has_execution): Change parameter type to
12769 inferior pointer.
12770 * inferior.c (number_of_live_inferiors): Use
12771 inferior::has_execution instead of target_has_execution_1.
12772 * inferior.h (inferior::has_execution): New.
12773 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12774 inferior::has_execution instead of target_has_execution_1.
12775 * process-stratum-target.c
12776 (process_stratum_target::has_execution): Change parameter type to
12777 inferior pointer. Check the inferior's PID instead of
12778 inferior_ptid.
12779 * process-stratum-target.h
12780 (process_stratum_target::has_execution): Change parameter type to
12781 inferior pointer.
12782 * record-full.c (record_full_core_target::has_execution): Change
12783 parameter type to inferior pointer.
12784 * target.c (target_has_execution_1): Change parameter type to
12785 inferior pointer.
12786 (target_has_execution_current): Adjust.
12787 * target.h (target_ops::has_execution): Change parameter type to
12788 inferior pointer.
12789 (target_has_execution_1): Change parameter type to inferior
12790 pointer. Change return type to bool.
12791 * tracefile.h (tracefile_target::has_execution): Change parameter
12792 type to inferior pointer.
12793
74375d18
PA
127942020-01-10 Pedro Alves <palves@redhat.com>
12795
12796 * exceptions.c (print_flush): Remove current_top_target() check.
12797
acdf84a6
PA
127982020-01-10 Pedro Alves <palves@redhat.com>
12799
12800 * remote.c (show_remote_exec_file): Show the current inferior's
12801 exec-file instead of the command variable's value.
12802
ec506636
PA
128032020-01-10 Pedro Alves <palves@redhat.com>
12804
12805 * record-full.c (record_full_resume_ptid): New global.
12806 (record_full_target::resume): Set it.
12807 (record_full_wait_1): Use record_full_resume_ptid instead of
12808 inferior_ptid.
12809
873657b9
PA
128102020-01-10 Pedro Alves <palves@redhat.com>
12811
12812 * gdbthread.h (scoped_restore_current_thread)
12813 <dont_restore, restore, m_dont_restore>: Declare.
12814 * thread.c (thread_alive): Add assertion. Return bool.
12815 (switch_to_thread_if_alive): New.
12816 (prune_threads): Switch inferior/thread.
12817 (print_thread_info_1): Switch thread before calling target methods.
12818 (scoped_restore_current_thread::restore): New, factored out from
12819 ...
12820 (scoped_restore_current_thread::~scoped_restore_current_thread):
12821 ... this.
12822 (scoped_restore_current_thread::scoped_restore_current_thread):
12823 Add assertion.
12824 (thread_apply_all_command, thread_select): Use
12825 switch_to_thread_if_alive.
12826
7f0ae84c
GB
128272020-01-10 George Barrett <bob@bob131.so>
12828
12829 * stap-probe.c (stap_modify_semaphore): Don't check for null
12830 semaphores.
12831 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12832 for null semaphores.
12833
f5a7c406
AB
128342020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12835
12836 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12837 all source windows, and maintain horizontal scroll status while
12838 doing so.
12839
9ae6bf64
TT
128402020-01-09 Tom Tromey <tom@tromey.com>
12841
12842 PR tui/18932:
12843 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12844 update_source_window, not print_source_lines.
12845
b2efe70c
AB
128462020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12847
12848 * tui/tui.c (tui_enable): Register tui hooks after calling
12849 tui_display_main.
12850
5f23a082
CB
128512020-01-09 Christian Biesinger <cbiesinger@google.com>
12852
12853 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12854
3061113b
SM
128552020-01-08 Simon Marchi <simon.marchi@efficios.com>
12856
12857 * thread.c (print_thread_info_1): Fix indentation.
12858
57d75002
CB
128592020-01-09 Christian Biesinger <cbiesinger@google.com>
12860
12861 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12862 unique_xmalloc_ptr outside the if to always free the demangled name.
12863
6a053cb1
TT
128642020-01-08 Tom Tromey <tromey@adacore.com>
12865
12866 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12867 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12868 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12869 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12870 Remove.
12871 (section_offsets): New typedef.
12872 * symtab.c (fixup_section, get_msymbol_address): Update.
12873 * symmisc.c (dump_msymbols): Update.
12874 * symfile.h (relative_addr_info_to_section_offsets)
12875 (symfile_map_offsets_to_segments): Update.
12876 * symfile.c (build_section_addr_info_from_objfile)
12877 (init_objfile_sect_indices): Update.
12878 (struct place_section_arg): Change type of "offsets".
12879 (place_section): Update.
12880 (relative_addr_info_to_section_offsets): Change type of
12881 "section_offsets". Remove "num_sections" parameter.
12882 (default_symfile_offsets, syms_from_objfile_1)
12883 (set_objfile_default_section_offset): Update.
12884 (reread_symbols): No need to preserve section offsets by hand.
12885 (symfile_map_offsets_to_segments): Change type of "offsets".
12886 * stap-probe.c (relocate_address): Update.
12887 * stabsread.h (process_one_symbol): Update.
12888 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12889 (solib_target_relocate_section_addresses): Update.
12890 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12891 Update.
12892 * solib-frv.c (frv_relocate_main_executable): Update.
12893 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12894 * solib-aix.c (solib_aix_get_section_offsets): Change return
12895 type.
12896 (solib_aix_solib_create_inferior_hook): Update.
12897 * remote.c (remote_target::get_offsets): Update.
12898 * psymtab.c (find_pc_sect_psymtab): Update.
12899 * psympriv.h (struct partial_symbol) <address, text_low,
12900 text_high>: Update.
12901 * objfiles.h (obj_section_offset): Update.
12902 (struct objfile) <section_offsets>: Change type.
12903 <num_sections>: Remove.
12904 (objfile_relocate): Update.
12905 * objfiles.c (entry_point_address_query): Update
12906 (relocate_one_symbol): Change type of "section_offsets".
12907 (objfile_relocate1, objfile_relocate1): Change type of
12908 "new_offsets".
12909 (objfile_rebase1): Update.
12910 * mipsread.c (mipscoff_symfile_read): Update.
12911 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12912 parameter.
12913 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12914 (parse_external, psymtab_to_symtab_1): Update.
12915 * machoread.c (macho_symfile_offsets): Update.
12916 * ia64-tdep.c (ia64_find_unwind_table): Update.
12917 * hppa-tdep.c (read_unwind_info): Update.
12918 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12919 * dwarf2read.c (create_addrmap_from_index)
12920 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12921 (process_psymtab_comp_unit_reader, add_partial_symbol)
12922 (add_partial_subprogram, process_full_comp_unit)
12923 (read_file_scope, read_func_scope, read_lexical_block_scope)
12924 (read_call_site_scope, dwarf2_rnglists_process)
12925 (dwarf2_ranges_process, dwarf2_ranges_read)
12926 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12927 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12928 Update.
12929 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12930 Update.
12931 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12932 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12933 (process_one_symbol): Change type of "section_offsets".
12934 * ctfread.c (get_objfile_text_range): Update.
12935 * coffread.c (coff_symtab_read, enter_linenos)
12936 (process_coff_symbol): Update.
12937 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12938 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12939
456e800a
TT
129402020-01-08 Tom Tromey <tromey@adacore.com>
12941
12942 * dwarf2read.c (parse_macro_definition): Use std::string.
12943 (parse_macro_definition): Likewise.
12944
6dfa2fc2
TT
129452020-01-08 Tom Tromey <tromey@adacore.com>
12946
12947 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12948 (ATTR_ALLOC_CHUNK): Remove.
12949
421d1616
TT
129502020-01-08 Tom Tromey <tromey@adacore.com>
12951
12952 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12953
43816ebc
TT
129542020-01-08 Tom Tromey <tromey@adacore.com>
12955
12956 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12957 (dwarf2_compute_name, open_dwo_file): Likewise.
12958 (process_enumeration_scope): Use std::vector.
12959 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12960 (partial_die_info::fixup, dwarf2_start_subfile)
12961 (guess_full_die_structure_name, dwarf2_name): Likewise.
12962 (determine_prefix): Update.
12963 (guess_full_die_structure_name): Make return type const.
12964 (partial_die_full_name): Return unique_xmalloc_ptr.
12965 (DW_FIELD_ALLOC_CHUNK): Remove.
12966
4212d509
TT
129672020-01-07 Tom Tromey <tromey@adacore.com>
12968
12969 PR build/24937:
12970 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12971
06a6207a
JT
129722020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12973
12974 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12975
153d79c4
AB
129762020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12977
12978 * stack.c (print_frame_info): Move disassemble_next_line code
12979 inside source_print block.
12980
66182876
EZ
129812020-01-06 Eli Zaretskii <eliz@gnu.org>
12982
12983 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12984 gdb/signals.h, as we are now using native signal symbols.
12985
cbfa8581
SV
129862020-01-06 Shahab Vahedi <shahab@synopsys.com>
12987
12988 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12989 overflow by an early check of content vs threshold.
aac66a4c 12990 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12991 Likewise.
12992
3f602821
EZ
129932020-01-06 Eli Zaretskii <eliz@gnu.org>
12994
12995 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12996
a08c904d
JT
129972020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12998
12999 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13000 export table if no section contains it's RVA.
13001
89a65580
EZ
130022020-01-06 Eli Zaretskii <eliz@gnu.org>
13003
13004 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13005
8b7fcda2
HD
130062020-01-06 Hannes Domani <ssbssa@yahoo.de>
13007
13008 * source.c (print_source_lines_base): Set last_line_listed.
13009
a61b4f69
SV
130102020-01-06 Shahab Vahedi <shahab@synopsys.com>
13011
13012 * tui/tui-disasm.c: Remove trailing spaces.
13013
559e7e50
EZ
130142020-01-06 Eli Zaretskii <eliz@gnu.org>
13015 Pedro Alves <palves@redhat.com>
13016
13017 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13018 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13019 (windows_gdb_signal_to_target): New function, uses the above
13020 enumeration to convert GDB internal signal codes to equivalent
13021 Windows codes.
13022 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13023 * windows-nat.c: Include "gdb_wait.h".
13024 (get_windows_debug_event): Extract the fatal exception from the
13025 exit status and convert to the equivalent Posix signal number.
13026 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13027 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13028 * gdbsupport/gdb_wait.c: New file, implements
13029 windows_status_to_termsig.
13030 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13031 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13032
f2302a34
AB
130332020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13034
13035 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13036 show_layout.
13037
6a5206eb
LM
130382020-01-05 Luis Machado <luis.machado@linaro.org>
13039
13040 * aarch64-linux-nat.c
13041 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13042 and bfd_mach_aarch64.
13043
6ec1d75e
PW
130442020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13045
13046 * ui-file.c (stdio_file::can_emit_style_escape)
13047 (tee_file::can_emit_style_escape): Ensure style is used also on
13048 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13049 to gdb_stdout.
13050 * main.c (set_gdb_data_directory): Use file style to output the
13051 warning that the given pathname is not a directory.
13052 * top.c (show_history_filename, gdb_safe_append_history)
13053 (show_gdb_datadir): Use file style.
13054
44f81a76
HD
130552020-01-03 Hannes Domani <ssbssa@yahoo.de>
13056
13057 * solib-target.c (struct lm_info_target):
13058 Change offsets to be a unique_xmalloc_ptr.
13059 (solib_target_relocate_section_addresses): Update.
13060
25057eb0
HD
130612020-01-03 Hannes Domani <ssbssa@yahoo.de>
13062
13063 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13064
6e2118f5
BE
130652020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13066
13067 * MAINTAINERS (Write After Approval): Add myself.
13068
8133c7dc
LM
130692020-01-02 Luis Machado <luis.machado@linaro.org>
13070
13071 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13072 Cell BE architecture.
13073 * target.h (struct target_ops) <thread_architecture>: Likewise.
13074
48189bec
HD
130752020-01-01 Hannes Domani <ssbssa@yahoo.de>
13076
13077 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13078
ead1063b
HD
130792020-01-01 Hannes Domani <ssbssa@yahoo.de>
13080
13081 * MAINTAINERS (Write After Approval): Add myself.
13082
e5d78223
JB
130832020-01-01 Joel Brobecker <brobecker@adacore.com>
13084
13085 * gdbarch.sh: Update copyright year range of generated files.
13086
b811d2c2
JB
130872020-01-01 Joel Brobecker <brobecker@adacore.com>
13088
13089 Update copyright year range in all GDB files.
13090
5f4def5c
JB
130912020-01-01 Joel Brobecker <brobecker@adacore.com>
13092
13093 * copyright.py: Convert to Python 3.
13094
51fd4002
JB
130952020-01-01 Joel Brobecker <brobecker@adacore.com>
13096
13097 * copyright.py: Adapt after move of gnulib directory from gdb
13098 directory to toplevel directory.
13099
5fb651f2
JB
131002020-01-01 Joel Brobecker <brobecker@adacore.com>
13101
13102 * copyright.py (main): Exit if run from the wrong directory.
13103
5dd8bf88
JB
131042020-01-01 Joel Brobecker <brobecker@adacore.com>
13105
13106 * top.c (print_gdb_version): Change copyright year to 2020.
13107
9f71dacb 131082020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 13109
9f71dacb 13110 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 13111
9f71dacb 13112For older changes see ChangeLog-2019.
c906108c
SS
13113\f
13114Local Variables:
13115mode: change-log
13116left-margin: 8
13117fill-column: 74
13118version-control: never
57da7796 13119coding: utf-8
c906108c 13120End: