]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame_incremental - gdb/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
... / ...
CommitLineData
12019-04-22 Ali Tamur <tamur@google.com>
2
3 * MAINTAINERS (Write After Approval): Add self.
4
52019-04-22 Simon Marchi <simon.marchi@efficios.com>
6
7 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9 (open_symbol_file_object): Likewise.
10 (svr4_default_sos): Add info parameter.
11 (svr4_read_so_list): Likewise.
12 (svr4_current_sos_direct): Adjust functions calls to pass down
13 info.
14 (svr4_current_sos_1): Add info parameter.
15 (svr4_current_sos): Call get_svr4_info, pass info down to
16 svr4_current_sos_1.
17 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
18 get_svr4_info.
19 (svr4_in_dynsym_resolve_code): Pass current_program_space to
20 get_svr4_info.
21 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
22 to get_svr4_info.
23 (probes_table_remove_objfile_probes): Likewise.
24 (register_solib_event_probe): Add info parameter.
25 (solist_update_incremental): Pass info parameter down to
26 svr4_read_so_list.
27 (disable_probes_interface): Add info parameter.
28 (svr4_handle_solib_event): Pass current_program_space to
29 get_svr4_info. Adjust disable_probes_interface cleanup.
30 (svr4_create_probe_breakpoints): Add info parameter, pass it
31 down to register_solib_event_probe.
32 (svr4_create_solib_event_breakpoints): Add info parameter,
33 pass it down to svr4_create_probe_breakpoints.
34 (enable_break): Pass info down to
35 svr4_create_solib_event_breakpoints.
36 (svr4_solib_create_inferior_hook): Pass current_program_space to
37 get_svr4_info.
38 (svr4_clear_solib): Likewise.
39
402019-04-22 Pedro Alves <palves@redhat.com>
41
42 * solib-svr4.c (svr4_free_objfile_observer): New.
43 (probe_and_action::objfile): New field.
44 (probes_table_htab_remove_objfile_probes)
45 (probes_table_remove_objfile_probes): New functions.
46 (register_solib_event_probe): Add 'objfile' parameter. Store it
47 in the new probe_and_action. Don't store the probe in 'lookup'.
48 (svr4_create_probe_breakpoints): Pass objfile to
49 register_solib_event_probe.
50 (_initialize_svr4_solib): Register a free_objfile observer.
51
522019-04-19 Tom Tromey <tom@tromey.com>
53
54 * common/queue.h: Remove.
55
562019-04-19 Tom Tromey <tom@tromey.com>
57
58 * event-loop.c: Don't include "common/queue.h".
59
602019-04-19 Tom Tromey <tom@tromey.com>
61
62 * remote.c (remote_target): Use delete.
63 * remote-notif.h: Include <list>, not "common/queue.h".
64 (notif_client_p): Remove typedef.
65 (remote_notif_state): Add constructor, destructor, initializer.
66 <notif_queue>: Now a std::list.
67 (remote_notif_state_xfree): Don't declare.
68 * remote-notif.c (remote_notif_process, handle_notification)
69 (remote_notif_state_allocate): Update.
70 (~remote_notif_state): Rename from remote_notif_state_xfree.
71
722019-04-19 Tom Tromey <tom@tromey.com>
73
74 * symfile.c (reread_symbols): Update.
75 * objfiles.c (objfile_register_static_link)
76 (objfile_lookup_static_link): Update
77 (~objfile) Don't delete static_links.
78 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
79
802019-04-19 Tom Tromey <tom@tromey.com>
81
82 * type-stack.h (struct type_stack) <insert>: Constify string.
83 * type-stack.c (type_stack::insert): Constify string.
84 * gdbtypes.h (lookup_template_type): Update.
85 (address_space_name_to_int): Update.
86 * gdbtypes.c (address_space_name_to_int): Make space_identifier
87 const.
88 (lookup_template_type): Make name const.
89 * c-exp.y: Update rules.
90 (lex_one_token, classify_name, classify_inner_name)
91 (c_print_token): Update.
92 * p-exp.y: Update rules.
93 (yylex): Update.
94 * f-exp.y: Update rules.
95 (yylex): Update.
96 * d-exp.y: Update rules.
97 (lex_one_token, classify_name, classify_inner_name): Update.
98 * parse.c (write_dollar_variable, copy_name): Return std::string.
99 * parser-defs.h (copy_name): Change return type.
100 * m2-exp.y: Update rules.
101 (yylex): Update.
102 * go-exp.y (lex_one_token): Update.
103 Update rules.
104 (classify_unsafe_function, classify_packaged_name)
105 (classify_name, yylex): Update.
106
1072019-04-19 Sergei Trofimovich <siarheit@google.com>
108
109 * configure.ac: add --enable-source-highlight switch.
110 * configure: Regenerate.
111 * top.c (print_gdb_version): plumb --enable-source-highlight
112 status to "show configuration".
113
1142019-04-19 Tom Tromey <tromey@adacore.com>
115
116 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
117 Check ADA_TYPE_P.
118 (empty_record, ada_template_to_fixed_record_type_1)
119 (template_to_static_fixed_type)
120 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
121 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
122 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
123 macros.
124
1252019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
126
127 PR symtab/24423:
128 * source.c (print_source_lines_base): Advance "iter" when a
129 control character is seen.
130
1312019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
132
133 * inferior.h (struct infcall_suspend_state_deleter):
134 Catch exception in destructor to avoid crash.
135
1362019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
137
138 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
139 close to the add_com "shell".
140
1412019-04-18 Tom Tromey <tromey@adacore.com>
142
143 * process-stratum-target.h (class process_stratum_target)
144 <stratum>: Add "final".
145
1462019-04-17 Tom Tromey <tromey@adacore.com>
147
148 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
149 against nullptr before use.
150
1512019-04-17 Alan Hayward <alan.hayward@arm.com>
152
153 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
154
1552019-04-17 Jim Wilson <jimw@sifive.com>
156 Andrew Burgess <andrew.burgess@embecosm.com>
157
158 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
159 code read might fail, assume 4-byte breakpoint in that case.
160
1612019-04-15 Leszek Swirski <leszeks@google.com>
162
163 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
164 rather than a hand-rolled POD check when checking for forced MEMORY
165 classification.
166
1672019-04-15 Alan Hayward <alan.hayward@arm.com>
168
169 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
170 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
171 function.
172 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
173 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
174 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
175 declaration.
176
1772019-04-15 Alan Hayward <alan.hayward@arm.com>
178
179 * aarch64-linux-nat.c
180 (aarch64_linux_nat_target::thread_architecture): Add override.
181 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
182 each VQ.
183
1842019-04-15 Alan Hayward <alan.hayward@arm.com>
185
186 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
187
1882019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
189
190 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
191 target types of size 96-bits, add some additional comments, and
192 check that the builtin type we found was the correct size.
193
1942019-04-12 Eli Zaretskii <eliz@gnu.org>
195
196 * utils.c (prompt_for_continue): Don't restore the styling at the
197 end, as applied_style has the wrong value. This fixes styling in
198 long lists of file names that are interrupted by the "Continue?"
199 prompt.
200
2012019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
202
203 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
204 * c-lang.c (c_language_defn): Likewise.
205 (cplus_language_defn): Likewise.
206 (asm_language_defn): Likewise.
207 (minimal_language_defn): Likewise.
208 * d-lang.c (d_language_defn): Likewise.
209 * f-lang.c (f_language_defn): Likewise.
210 * go-lang.c (go_language_defn): Likewise.
211 * language.c (unknown_language_defn): Likewise.
212 (auto_language_defn): Likewise.
213 * language.h (struct language_defn): Remove la_magic field.
214 (LANG_MAGIC): Delete.
215 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
216 * objc-lang.c (objc_language_defn): Likewise.
217 * opencl-lang.c (opencl_language_defn): Likewise.
218 * p-lang.c (pascal_language_defn): Likewise.
219 * rust-lang.c (rust_language_defn): Likewise.
220
2212019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
222
223 * riscv-tdep.c (riscv_type_align): New function.
224 (riscv_type_alignment): Delete.
225 (riscv_arg_location): Use 'type_align'.
226 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
227
2282019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
229
230 * gdbtypes.c (type_align): A struct with no non-static fields also
231 has alignment of 1.
232
2332019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
234
235 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
236 component to 0.
237 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
238 member.
239 (riscv_struct_info::analyse): New implementation using new
240 analyse_inner member function.
241 (riscv_struct_info::field_offset): New member function.
242 (riscv_struct_info::m_offsets): New member variable.
243 (riscv_struct_info::analyse_inner): New private member function,
244 takes the old implementation of riscv_struct_info::analyse but
245 extended to track field offsets.
246 (riscv_call_arg_struct): Update the struct folding special cases
247 to handle cases where empty C++ structs, which are non-zero
248 length, are found.
249 (riscv_arg_location): Initialise the length of each location, a
250 non-zero length now indicates the location is in use.
251 (riscv_push_dummy_call): Allow for the first location having a
252 non-zero offset when setting up arguments.
253 (riscv_return_value): Likewise, but for return values.
254
2552019-04-11 Tom Tromey <tromey@adacore.com>
256
257 * utils.c (internal_vproblem): Make "msg" const.
258
2592019-04-11 Alan Hayward <alan.hayward@arm.com>
260
261 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
262 * trad-frame.c (trad_frame_reset_saved_regs): New function.
263 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
264 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
265
2662019-04-10 Kevin Buettner <kevinb@redhat.com>
267
268 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
269 function.
270 (fill_gregset): Call amd64_linux_collect_native_gregset instead
271 of amd64_collect_native_gregset.
272 (amd64_linux_nat_target::store_registers): Likewise.
273
2742019-04-10 Tom Tromey <tom@tromey.com>
275
276 * symtab.c (lookup_global_symbol_from_objfile)
277 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
278 * objfiles.h (class separate_debug_iterator): New.
279 (class separate_debug_range): New.
280 (struct objfile) <separate_debug_objfiles>: New method.
281 (objfile_separate_debug_iterate): Don't declare.
282 * objfiles.c (separate_debug_iterator::operator++): Rename from
283 objfile_separate_debug_iterate.
284 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
285 iterator.
286 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
287 iterator.
288
2892019-04-10 Tom Tromey <tom@tromey.com>
290
291 * symfile.c (reread_symbols): Remove old comment.
292 * objfiles.c (free_all_objfiles): Fix a typo.
293
2942019-04-10 Tom Tromey <tom@tromey.com>
295
296 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
297 * minsyms.c (lookup_minimal_symbol): Use foreach.
298 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
299 (lookup_minimal_symbol_solib_trampoline): Likewise.
300 * symfile.c (reread_symbols): Use foreach.
301
3022019-04-09 Ivan Begert <ivanbegert@gmail.com>
303 Tom Tromey <tromey@adacore.com>
304
305 PR rust/24414:
306 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
307 (rust_lex_int_test): Change "value" to be LONGEST.
308 (rust_lex_tests): Add test for long integer literal.
309
3102019-04-09 Tom Tromey <tromey@adacore.com>
311
312 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
313 to bool.
314 (extended_remote_target::attach): Update.
315 (remote_target::remote_notice_new_inferior): Update.
316 (remote_target::add_current_inferior_and_thread): Update.
317 * inferior.c (exit_inferior_1): Use "false".
318 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
319
3202019-04-09 Simon Marchi <simon.marchi@efficios.com>
321
322 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
323 the "start" command.
324
3252019-04-08 Kevin Buettner <kevinb@redhat.com>
326
327 * python/py-inferior.c (infpy_thread_from_thread_handle):
328 Adjust comments to reflect renaming of thread_from_thread_handle
329 to thread_from_handle. Adjust keywords. Fix type error message.
330 (inferior_object_methods): Add thread_from_handle. Retain
331 thread_from_thread_handle, but mark it as deprecated.
332
3332019-04-08 Kevin Buettner <kevinb@redhat.com>
334
335 * gdbthread.h (find_thread_by_handle): Revise declaration.
336 * thread.c (find_thread_by_handle): Likewise. Adjust
337 implementation too.
338 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
339 support for buffer objects as handles.
340
3412019-04-08 Kevin Buettner <kevinb@redhat.com>
342
343 * python/py-infthread.c (thpy_thread_handle): New function.
344 (thread_object_methods): Register thpy_thread_handle.
345
3462019-04-08 Kevin Buettner <kevinb@redhat.com>
347
348 * gdbthread.h (thread_to_thread_handle): Declare.
349 * thread.c (gdbtypes.h): Include.
350 (thread_to_thread_handle): New function.
351
352 * target.h (struct target_ops): Add thread_info_to_thread_handle.
353 (target_thread_info_to_thread_handle): Declare.
354 * target.c (target_thread_info_to_thread_handle): New function.
355 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
356 * target-delegates.c: Regenerate.
357
358 * linux-thread-db.c (class thread_db_target): Add method
359 thread_info_to_thread_handle.
360 (thread_db_target::thread_info_to_thread_handle): Define.
361 * remote.c (class remote_target): Add new method
362 thread_info_to_thread_handle.
363 (remote_target::thread_info_to_thread_handle): Define.
364
3652019-04-08 Pedro Alves <palves@redhat.com>
366
367 * common/common-exceptions.c (throw_exception): Don't create
368 named object to throw; throw directly.
369 (throw_it): Likewise. Don't initialize gdb_exception::message
370 here, with new; pass FMT and AP to the ctor instead.
371 * common/common-exceptions.h: Include <string>.
372 (gdb_exception::gdb_exception(enum return_reason, enum errors,
373 const char *, va_list)): New ctor. Use std::make_shared.
374 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
375 errors)): Delete.
376 (gdb_exception_error::gdb_exception_error(enum errors, const char
377 *, va_list)): New.
378 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
379 Add assertion.
380 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
381 errors)): Delete.
382 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
383 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
384 Add assertion.
385
3862019-04-08 Tom Tromey <tom@tromey.com>
387
388 * valops.c (value_rtti_indirect_type): Replace throw_exception
389 with throw.
390 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
391 with throw.
392 * thread.c (thr_try_catch_cmd): Replace throw_exception with
393 throw.
394 * target.c (target_translate_tls_address): Replace throw_exception
395 with throw.
396 * stack.c (frame_apply_command_count): Replace throw_exception
397 with throw.
398 * solib-spu.c (append_ocl_sos): Replace throw_exception with
399 throw.
400 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
401 with throw.
402 * rs6000-tdep.c (rs6000_frame_cache)
403 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
404 * remote.c: Replace throw_exception with throw.
405 * record-full.c (record_full_message, record_full_wait_1)
406 (record_full_restore): Replace throw_exception with throw.
407 * record-btrace.c:
408 (get_thread_current_frame_id, record_btrace_start_replaying)
409 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
410 (cmd_record_btrace_start): Replace throw_exception with throw.
411 * parse.c (parse_exp_in_context_1): Replace throw_exception with
412 throw.
413 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
414 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
415 * linespec.c:
416 (find_linespec_symbols): Replace throw_exception with throw.
417 * infrun.c (displaced_step_prepare, resume): Replace
418 throw_exception with throw.
419 * infcmd.c (post_create_inferior): Replace throw_exception with
420 throw.
421 * inf-loop.c (inferior_event_handler): Replace throw_exception
422 with throw.
423 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
424 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
425 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
426 (get_prev_frame_always, get_frame_pc_if_available)
427 (get_frame_address_in_block_if_available, get_frame_language):
428 Replace throw_exception with throw.
429 * frame-unwind.c (frame_unwind_try_unwinder): Replace
430 throw_exception with throw.
431 * eval.c (fetch_subexp_value, evaluate_var_value)
432 (evaluate_funcall, evaluate_subexp_standard): Replace
433 throw_exception with throw.
434 * dwarf2loc.c (call_site_find_chain)
435 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
436 Replace throw_exception with throw.
437 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
438 with throw.
439 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
440 throw.
441 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
442 * completer.c (complete_line_internal): Replace throw_exception
443 with throw.
444 * compile/compile-object-run.c (compile_object_run): Replace
445 throw_exception with throw.
446 * cli/cli-script.c (process_next_line): Replace throw_exception
447 with throw.
448 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
449 (btrace_enable, btrace_maint_update_pt_packets): Replace
450 throw_exception with throw.
451 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
452 throw_exception with throw.
453 * break-catch-throw.c (re_set_exception_catchpoint): Replace
454 throw_exception with throw.
455 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
456 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
457 * aarch64-tdep.c (aarch64_make_prologue_cache)
458 (aarch64_make_stub_cache): Replace throw_exception with throw.
459
4602019-04-08 Tom Tromey <tom@tromey.com>
461
462 * common/common-exceptions.c (throw_exception): Rename from
463 throw_exception_cxx. Remove old copy. Make argument const.
464 (throw_it): Create and throw exception objects directly.
465 * common/common-exceptions.h (throw_exception): Make argument
466 const.
467 (struct gdb_exception_error): Add constructor.
468 (struct gdb_exception_quit): Add constructor.
469
4702019-04-08 Tom Tromey <tom@tromey.com>
471
472 * common/common-exceptions.h (exception_rethrow): Don't declare.
473 (TRY_SJLJ): Update comment.
474 (TRY, CATCH, END_CATCH): Remove.
475 * common/common-exceptions.c (exception_rethrow): Remove.
476
4772019-04-08 Tom Tromey <tom@tromey.com>
478
479 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
480 Remove.
481 (gdb_exception_error): Rename from
482 gdb_exception_RETURN_MASK_ERROR.
483 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
484 (gdb_quit_bad_alloc): Update.
485 * aarch64-tdep.c: Update.
486 * ada-lang.c: Update.
487 * ada-typeprint.c: Update.
488 * ada-valprint.c: Update.
489 * amd64-tdep.c: Update.
490 * arch-utils.c: Update.
491 * break-catch-throw.c: Update.
492 * breakpoint.c: Update.
493 * btrace.c: Update.
494 * c-varobj.c: Update.
495 * cli/cli-cmds.c: Update.
496 * cli/cli-interp.c: Update.
497 * cli/cli-script.c: Update.
498 * common/common-exceptions.c: Update.
499 * common/new-op.c: Update.
500 * common/selftest.c: Update.
501 * compile/compile-c-symbols.c: Update.
502 * compile/compile-cplus-symbols.c: Update.
503 * compile/compile-object-load.c: Update.
504 * compile/compile-object-run.c: Update.
505 * completer.c: Update.
506 * corelow.c: Update.
507 * cp-abi.c: Update.
508 * cp-support.c: Update.
509 * cp-valprint.c: Update.
510 * darwin-nat.c: Update.
511 * disasm-selftests.c: Update.
512 * dtrace-probe.c: Update.
513 * dwarf-index-cache.c: Update.
514 * dwarf-index-write.c: Update.
515 * dwarf2-frame-tailcall.c: Update.
516 * dwarf2-frame.c: Update.
517 * dwarf2loc.c: Update.
518 * dwarf2read.c: Update.
519 * eval.c: Update.
520 * event-loop.c: Update.
521 * event-top.c: Update.
522 * exec.c: Update.
523 * f-valprint.c: Update.
524 * fbsd-tdep.c: Update.
525 * frame-unwind.c: Update.
526 * frame.c: Update.
527 * gdbtypes.c: Update.
528 * gnu-v3-abi.c: Update.
529 * guile/guile-internal.h: Update.
530 * guile/scm-block.c: Update.
531 * guile/scm-breakpoint.c: Update.
532 * guile/scm-cmd.c: Update.
533 * guile/scm-disasm.c: Update.
534 * guile/scm-frame.c: Update.
535 * guile/scm-lazy-string.c: Update.
536 * guile/scm-math.c: Update.
537 * guile/scm-param.c: Update.
538 * guile/scm-ports.c: Update.
539 * guile/scm-pretty-print.c: Update.
540 * guile/scm-symbol.c: Update.
541 * guile/scm-symtab.c: Update.
542 * guile/scm-type.c: Update.
543 * guile/scm-value.c: Update.
544 * i386-linux-tdep.c: Update.
545 * i386-tdep.c: Update.
546 * inf-loop.c: Update.
547 * infcall.c: Update.
548 * infcmd.c: Update.
549 * infrun.c: Update.
550 * jit.c: Update.
551 * language.c: Update.
552 * linespec.c: Update.
553 * linux-fork.c: Update.
554 * linux-nat.c: Update.
555 * linux-tdep.c: Update.
556 * linux-thread-db.c: Update.
557 * main.c: Update.
558 * mi/mi-cmd-break.c: Update.
559 * mi/mi-cmd-stack.c: Update.
560 * mi/mi-interp.c: Update.
561 * mi/mi-main.c: Update.
562 * objc-lang.c: Update.
563 * p-valprint.c: Update.
564 * parse.c: Update.
565 * ppc-linux-tdep.c: Update.
566 * printcmd.c: Update.
567 * python/py-arch.c: Update.
568 * python/py-breakpoint.c: Update.
569 * python/py-cmd.c: Update.
570 * python/py-finishbreakpoint.c: Update.
571 * python/py-frame.c: Update.
572 * python/py-framefilter.c: Update.
573 * python/py-gdb-readline.c: Update.
574 * python/py-inferior.c: Update.
575 * python/py-infthread.c: Update.
576 * python/py-lazy-string.c: Update.
577 * python/py-linetable.c: Update.
578 * python/py-objfile.c: Update.
579 * python/py-param.c: Update.
580 * python/py-prettyprint.c: Update.
581 * python/py-progspace.c: Update.
582 * python/py-record-btrace.c: Update.
583 * python/py-record.c: Update.
584 * python/py-symbol.c: Update.
585 * python/py-type.c: Update.
586 * python/py-unwind.c: Update.
587 * python/py-utils.c: Update.
588 * python/py-value.c: Update.
589 * python/python.c: Update.
590 * record-btrace.c: Update.
591 * record-full.c: Update.
592 * remote-fileio.c: Update.
593 * remote.c: Update.
594 * riscv-tdep.c: Update.
595 * rs6000-aix-tdep.c: Update.
596 * rs6000-tdep.c: Update.
597 * rust-exp.y: Update.
598 * rust-lang.c: Update.
599 * s390-tdep.c: Update.
600 * selftest-arch.c: Update.
601 * solib-dsbt.c: Update.
602 * solib-frv.c: Update.
603 * solib-spu.c: Update.
604 * solib-svr4.c: Update.
605 * solib.c: Update.
606 * sparc64-linux-tdep.c: Update.
607 * stack.c: Update.
608 * symfile-mem.c: Update.
609 * symmisc.c: Update.
610 * target.c: Update.
611 * thread.c: Update.
612 * top.c: Update.
613 * tracefile-tfile.c: Update.
614 * tui/tui.c: Update.
615 * typeprint.c: Update.
616 * unittests/cli-utils-selftests.c: Update.
617 * unittests/parse-connection-spec-selftests.c: Update.
618 * valops.c: Update.
619 * valprint.c: Update.
620 * value.c: Update.
621 * varobj.c: Update.
622 * windows-nat.c: Update.
623 * x86-linux-nat.c: Update.
624 * xml-support.c: Update.
625
6262019-04-08 Tom Tromey <tom@tromey.com>
627
628 * xml-support.c: Use C++ exception handling.
629 * x86-linux-nat.c: Use C++ exception handling.
630 * windows-nat.c: Use C++ exception handling.
631 * varobj.c: Use C++ exception handling.
632 * value.c: Use C++ exception handling.
633 * valprint.c: Use C++ exception handling.
634 * valops.c: Use C++ exception handling.
635 * unittests/parse-connection-spec-selftests.c: Use C++ exception
636 handling.
637 * unittests/cli-utils-selftests.c: Use C++ exception handling.
638 * typeprint.c: Use C++ exception handling.
639 * tui/tui.c: Use C++ exception handling.
640 * tracefile-tfile.c: Use C++ exception handling.
641 * top.c: Use C++ exception handling.
642 * thread.c: Use C++ exception handling.
643 * target.c: Use C++ exception handling.
644 * symmisc.c: Use C++ exception handling.
645 * symfile-mem.c: Use C++ exception handling.
646 * stack.c: Use C++ exception handling.
647 * sparc64-linux-tdep.c: Use C++ exception handling.
648 * solib.c: Use C++ exception handling.
649 * solib-svr4.c: Use C++ exception handling.
650 * solib-spu.c: Use C++ exception handling.
651 * solib-frv.c: Use C++ exception handling.
652 * solib-dsbt.c: Use C++ exception handling.
653 * selftest-arch.c: Use C++ exception handling.
654 * s390-tdep.c: Use C++ exception handling.
655 * rust-lang.c: Use C++ exception handling.
656 * rust-exp.y: Use C++ exception handling.
657 * rs6000-tdep.c: Use C++ exception handling.
658 * rs6000-aix-tdep.c: Use C++ exception handling.
659 * riscv-tdep.c: Use C++ exception handling.
660 * remote.c: Use C++ exception handling.
661 * remote-fileio.c: Use C++ exception handling.
662 * record-full.c: Use C++ exception handling.
663 * record-btrace.c: Use C++ exception handling.
664 * python/python.c: Use C++ exception handling.
665 * python/py-value.c: Use C++ exception handling.
666 * python/py-utils.c: Use C++ exception handling.
667 * python/py-unwind.c: Use C++ exception handling.
668 * python/py-type.c: Use C++ exception handling.
669 * python/py-symbol.c: Use C++ exception handling.
670 * python/py-record.c: Use C++ exception handling.
671 * python/py-record-btrace.c: Use C++ exception handling.
672 * python/py-progspace.c: Use C++ exception handling.
673 * python/py-prettyprint.c: Use C++ exception handling.
674 * python/py-param.c: Use C++ exception handling.
675 * python/py-objfile.c: Use C++ exception handling.
676 * python/py-linetable.c: Use C++ exception handling.
677 * python/py-lazy-string.c: Use C++ exception handling.
678 * python/py-infthread.c: Use C++ exception handling.
679 * python/py-inferior.c: Use C++ exception handling.
680 * python/py-gdb-readline.c: Use C++ exception handling.
681 * python/py-framefilter.c: Use C++ exception handling.
682 * python/py-frame.c: Use C++ exception handling.
683 * python/py-finishbreakpoint.c: Use C++ exception handling.
684 * python/py-cmd.c: Use C++ exception handling.
685 * python/py-breakpoint.c: Use C++ exception handling.
686 * python/py-arch.c: Use C++ exception handling.
687 * printcmd.c: Use C++ exception handling.
688 * ppc-linux-tdep.c: Use C++ exception handling.
689 * parse.c: Use C++ exception handling.
690 * p-valprint.c: Use C++ exception handling.
691 * objc-lang.c: Use C++ exception handling.
692 * mi/mi-main.c: Use C++ exception handling.
693 * mi/mi-interp.c: Use C++ exception handling.
694 * mi/mi-cmd-stack.c: Use C++ exception handling.
695 * mi/mi-cmd-break.c: Use C++ exception handling.
696 * main.c: Use C++ exception handling.
697 * linux-thread-db.c: Use C++ exception handling.
698 * linux-tdep.c: Use C++ exception handling.
699 * linux-nat.c: Use C++ exception handling.
700 * linux-fork.c: Use C++ exception handling.
701 * linespec.c: Use C++ exception handling.
702 * language.c: Use C++ exception handling.
703 * jit.c: Use C++ exception handling.
704 * infrun.c: Use C++ exception handling.
705 * infcmd.c: Use C++ exception handling.
706 * infcall.c: Use C++ exception handling.
707 * inf-loop.c: Use C++ exception handling.
708 * i386-tdep.c: Use C++ exception handling.
709 * i386-linux-tdep.c: Use C++ exception handling.
710 * guile/scm-value.c: Use C++ exception handling.
711 * guile/scm-type.c: Use C++ exception handling.
712 * guile/scm-symtab.c: Use C++ exception handling.
713 * guile/scm-symbol.c: Use C++ exception handling.
714 * guile/scm-pretty-print.c: Use C++ exception handling.
715 * guile/scm-ports.c: Use C++ exception handling.
716 * guile/scm-param.c: Use C++ exception handling.
717 * guile/scm-math.c: Use C++ exception handling.
718 * guile/scm-lazy-string.c: Use C++ exception handling.
719 * guile/scm-frame.c: Use C++ exception handling.
720 * guile/scm-disasm.c: Use C++ exception handling.
721 * guile/scm-cmd.c: Use C++ exception handling.
722 * guile/scm-breakpoint.c: Use C++ exception handling.
723 * guile/scm-block.c: Use C++ exception handling.
724 * guile/guile-internal.h: Use C++ exception handling.
725 * gnu-v3-abi.c: Use C++ exception handling.
726 * gdbtypes.c: Use C++ exception handling.
727 * frame.c: Use C++ exception handling.
728 * frame-unwind.c: Use C++ exception handling.
729 * fbsd-tdep.c: Use C++ exception handling.
730 * f-valprint.c: Use C++ exception handling.
731 * exec.c: Use C++ exception handling.
732 * event-top.c: Use C++ exception handling.
733 * event-loop.c: Use C++ exception handling.
734 * eval.c: Use C++ exception handling.
735 * dwarf2read.c: Use C++ exception handling.
736 * dwarf2loc.c: Use C++ exception handling.
737 * dwarf2-frame.c: Use C++ exception handling.
738 * dwarf2-frame-tailcall.c: Use C++ exception handling.
739 * dwarf-index-write.c: Use C++ exception handling.
740 * dwarf-index-cache.c: Use C++ exception handling.
741 * dtrace-probe.c: Use C++ exception handling.
742 * disasm-selftests.c: Use C++ exception handling.
743 * darwin-nat.c: Use C++ exception handling.
744 * cp-valprint.c: Use C++ exception handling.
745 * cp-support.c: Use C++ exception handling.
746 * cp-abi.c: Use C++ exception handling.
747 * corelow.c: Use C++ exception handling.
748 * completer.c: Use C++ exception handling.
749 * compile/compile-object-run.c: Use C++ exception handling.
750 * compile/compile-object-load.c: Use C++ exception handling.
751 * compile/compile-cplus-symbols.c: Use C++ exception handling.
752 * compile/compile-c-symbols.c: Use C++ exception handling.
753 * common/selftest.c: Use C++ exception handling.
754 * common/new-op.c: Use C++ exception handling.
755 * cli/cli-script.c: Use C++ exception handling.
756 * cli/cli-interp.c: Use C++ exception handling.
757 * cli/cli-cmds.c: Use C++ exception handling.
758 * c-varobj.c: Use C++ exception handling.
759 * btrace.c: Use C++ exception handling.
760 * breakpoint.c: Use C++ exception handling.
761 * break-catch-throw.c: Use C++ exception handling.
762 * arch-utils.c: Use C++ exception handling.
763 * amd64-tdep.c: Use C++ exception handling.
764 * ada-valprint.c: Use C++ exception handling.
765 * ada-typeprint.c: Use C++ exception handling.
766 * ada-lang.c: Use C++ exception handling.
767 * aarch64-tdep.c: Use C++ exception handling.
768
7692019-04-08 Tom Tromey <tom@tromey.com>
770
771 * xml-support.c (gdb_xml_parser::parse): Update.
772 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
773 * value.c (show_convenience): Update.
774 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
775 (test_parse_flags_qcs): Update.
776 * thread.c (thr_try_catch_cmd): Update.
777 * target.c (target_translate_tls_address): Update.
778 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
779 (info_frame_command_core, frame_apply_command_count): Update.
780 * rust-exp.y (rust_lex_exception_test): Update.
781 * riscv-tdep.c (riscv_print_one_register_info): Update.
782 * remote.c (remote_target::enable_btrace): Update.
783 * record-btrace.c (record_btrace_enable_warn): Update.
784 * python/py-utils.c (gdbpy_convert_exception): Update.
785 * printcmd.c (do_one_display, print_variable_and_value): Update.
786 * mi/mi-main.c (mi_print_exception): Update.
787 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
788 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
789 * linux-nat.c (linux_nat_target::attach): Update.
790 * linux-fork.c (class scoped_switch_fork_info): Update.
791 * infrun.c (displaced_step_prepare): Update.
792 * infcall.c (call_function_by_hand_dummy): Update.
793 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
794 * gnu-v3-abi.c (print_one_vtable): Update.
795 * frame.c (get_prev_frame_always): Update.
796 * f-valprint.c (info_common_command_for_block): Update.
797 * exec.c (try_open_exec_file): Update.
798 * exceptions.c (print_exception, exception_print)
799 (exception_fprintf, exception_print_same): Update.
800 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
801 * dwarf-index-cache.c (index_cache::store)
802 (index_cache::lookup_gdb_index): Update.
803 * darwin-nat.c (maybe_cache_shell): Update.
804 * cp-valprint.c (cp_print_value_fields): Update.
805 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
806 (gcc_cplus_symbol_address): Update.
807 * compile/compile-c-symbols.c (gcc_convert_symbol)
808 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
809 * common/selftest.c: Update.
810 * common/common-exceptions.h (struct gdb_exception) <message>: Now
811 a std::string.
812 (exception_try_scope_entry, exception_try_scope_exit): Don't
813 declare.
814 (struct exception_try_scope): Remove.
815 (TRY): Don't use exception_try_scope.
816 (struct gdb_exception): Add constructor, operator=.
817 <what>: New method.
818 (struct gdb_exception_RETURN_MASK_ALL)
819 (struct gdb_exception_RETURN_MASK_ERROR)
820 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
821 (struct gdb_quit_bad_alloc): Update.
822 * common/common-exceptions.c (exception_none): Change
823 initializer.
824 (struct catcher) <state, exception>: Initialize inline.
825 <prev>: Remove member.
826 (current_catcher): Remove.
827 (catchers): New global.
828 (exceptions_state_mc_init): Simplify.
829 (catcher_pop): Remove.
830 (exceptions_state_mc, exceptions_state_mc_catch): Update.
831 (try_scope_depth, exception_try_scope_entry)
832 (exception_try_scope_exit): Remove.
833 (throw_exception_sjlj): Update.
834 (exception_messages, exception_messages_size): Remove.
835 (throw_it): Simplify.
836 (gdb_exception_sliced_copy): Remove.
837 (throw_exception_cxx): Update.
838 * cli/cli-script.c (script_from_file): Update.
839 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
840 Update.
841 * ada-valprint.c (ada_val_print): Update.
842 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
843 (create_excep_cond_exprs): Update.
844
8452019-04-08 Tom Tromey <tom@tromey.com>
846
847 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
848 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
849 (TRY, CATCH, END_CATCH): Remove some definitions.
850 * common/common-exceptions.c: Don't use GDB_XCPT.
851 (catcher_list_size): Remove.
852 (throw_exception, throw_it): Simplify.
853
8542019-04-05 Tom Tromey <tom@tromey.com>
855
856 Revert the header-sorting patch.
857 * ft32-tdep.c: Revert.
858 * frv-tdep.c: Revert.
859 * frv-linux-tdep.c: Revert.
860 * frame.c: Revert.
861 * frame-unwind.c: Revert.
862 * frame-base.c: Revert.
863 * fork-child.c: Revert.
864 * findvar.c: Revert.
865 * findcmd.c: Revert.
866 * filesystem.c: Revert.
867 * filename-seen-cache.h: Revert.
868 * filename-seen-cache.c: Revert.
869 * fbsd-tdep.c: Revert.
870 * fbsd-nat.h: Revert.
871 * fbsd-nat.c: Revert.
872 * f-valprint.c: Revert.
873 * f-typeprint.c: Revert.
874 * f-lang.c: Revert.
875 * extension.h: Revert.
876 * extension.c: Revert.
877 * extension-priv.h: Revert.
878 * expprint.c: Revert.
879 * exec.h: Revert.
880 * exec.c: Revert.
881 * exceptions.c: Revert.
882 * event-top.c: Revert.
883 * event-loop.c: Revert.
884 * eval.c: Revert.
885 * elfread.c: Revert.
886 * dwarf2read.h: Revert.
887 * dwarf2read.c: Revert.
888 * dwarf2loc.c: Revert.
889 * dwarf2expr.h: Revert.
890 * dwarf2expr.c: Revert.
891 * dwarf2-frame.c: Revert.
892 * dwarf2-frame-tailcall.c: Revert.
893 * dwarf-index-write.h: Revert.
894 * dwarf-index-write.c: Revert.
895 * dwarf-index-common.c: Revert.
896 * dwarf-index-cache.h: Revert.
897 * dwarf-index-cache.c: Revert.
898 * dummy-frame.c: Revert.
899 * dtrace-probe.c: Revert.
900 * disasm.h: Revert.
901 * disasm.c: Revert.
902 * disasm-selftests.c: Revert.
903 * dictionary.c: Revert.
904 * dicos-tdep.c: Revert.
905 * demangle.c: Revert.
906 * dcache.h: Revert.
907 * dcache.c: Revert.
908 * darwin-nat.h: Revert.
909 * darwin-nat.c: Revert.
910 * darwin-nat-info.c: Revert.
911 * d-valprint.c: Revert.
912 * d-namespace.c: Revert.
913 * d-lang.c: Revert.
914 * ctf.c: Revert.
915 * csky-tdep.c: Revert.
916 * csky-linux-tdep.c: Revert.
917 * cris-tdep.c: Revert.
918 * cris-linux-tdep.c: Revert.
919 * cp-valprint.c: Revert.
920 * cp-support.c: Revert.
921 * cp-namespace.c: Revert.
922 * cp-abi.c: Revert.
923 * corelow.c: Revert.
924 * corefile.c: Revert.
925 * continuations.c: Revert.
926 * completer.h: Revert.
927 * completer.c: Revert.
928 * complaints.c: Revert.
929 * coffread.c: Revert.
930 * coff-pe-read.c: Revert.
931 * cli-out.h: Revert.
932 * cli-out.c: Revert.
933 * charset.c: Revert.
934 * c-varobj.c: Revert.
935 * c-valprint.c: Revert.
936 * c-typeprint.c: Revert.
937 * c-lang.c: Revert.
938 * buildsym.c: Revert.
939 * buildsym-legacy.c: Revert.
940 * build-id.h: Revert.
941 * build-id.c: Revert.
942 * btrace.c: Revert.
943 * bsd-uthread.c: Revert.
944 * breakpoint.h: Revert.
945 * breakpoint.c: Revert.
946 * break-catch-throw.c: Revert.
947 * break-catch-syscall.c: Revert.
948 * break-catch-sig.c: Revert.
949 * blockframe.c: Revert.
950 * block.c: Revert.
951 * bfin-tdep.c: Revert.
952 * bfin-linux-tdep.c: Revert.
953 * bfd-target.c: Revert.
954 * bcache.c: Revert.
955 * ax-general.c: Revert.
956 * ax-gdb.h: Revert.
957 * ax-gdb.c: Revert.
958 * avr-tdep.c: Revert.
959 * auxv.c: Revert.
960 * auto-load.c: Revert.
961 * arm-wince-tdep.c: Revert.
962 * arm-tdep.c: Revert.
963 * arm-symbian-tdep.c: Revert.
964 * arm-pikeos-tdep.c: Revert.
965 * arm-obsd-tdep.c: Revert.
966 * arm-nbsd-tdep.c: Revert.
967 * arm-nbsd-nat.c: Revert.
968 * arm-linux-tdep.c: Revert.
969 * arm-linux-nat.c: Revert.
970 * arm-fbsd-tdep.c: Revert.
971 * arm-fbsd-nat.c: Revert.
972 * arm-bsd-tdep.c: Revert.
973 * arch-utils.c: Revert.
974 * arc-tdep.c: Revert.
975 * arc-newlib-tdep.c: Revert.
976 * annotate.h: Revert.
977 * annotate.c: Revert.
978 * amd64-windows-tdep.c: Revert.
979 * amd64-windows-nat.c: Revert.
980 * amd64-tdep.c: Revert.
981 * amd64-sol2-tdep.c: Revert.
982 * amd64-obsd-tdep.c: Revert.
983 * amd64-obsd-nat.c: Revert.
984 * amd64-nbsd-tdep.c: Revert.
985 * amd64-nbsd-nat.c: Revert.
986 * amd64-nat.c: Revert.
987 * amd64-linux-tdep.c: Revert.
988 * amd64-linux-nat.c: Revert.
989 * amd64-fbsd-tdep.c: Revert.
990 * amd64-fbsd-nat.c: Revert.
991 * amd64-dicos-tdep.c: Revert.
992 * amd64-darwin-tdep.c: Revert.
993 * amd64-bsd-nat.c: Revert.
994 * alpha-tdep.c: Revert.
995 * alpha-obsd-tdep.c: Revert.
996 * alpha-nbsd-tdep.c: Revert.
997 * alpha-mdebug-tdep.c: Revert.
998 * alpha-linux-tdep.c: Revert.
999 * alpha-linux-nat.c: Revert.
1000 * alpha-bsd-tdep.c: Revert.
1001 * alpha-bsd-nat.c: Revert.
1002 * aix-thread.c: Revert.
1003 * agent.c: Revert.
1004 * addrmap.c: Revert.
1005 * ada-varobj.c: Revert.
1006 * ada-valprint.c: Revert.
1007 * ada-typeprint.c: Revert.
1008 * ada-tasks.c: Revert.
1009 * ada-lang.c: Revert.
1010 * aarch64-tdep.c: Revert.
1011 * aarch64-ravenscar-thread.c: Revert.
1012 * aarch64-newlib-tdep.c: Revert.
1013 * aarch64-linux-tdep.c: Revert.
1014 * aarch64-linux-nat.c: Revert.
1015 * aarch64-fbsd-tdep.c: Revert.
1016 * aarch64-fbsd-nat.c: Revert.
1017 * aarch32-linux-nat.c: Revert.
1018
10192019-04-05 Tom Tromey <tom@tromey.com>
1020
1021 * ft32-tdep.c: Sort headers.
1022 * frv-tdep.c: Sort headers.
1023 * frv-linux-tdep.c: Sort headers.
1024 * frame.c: Sort headers.
1025 * frame-unwind.c: Sort headers.
1026 * frame-base.c: Sort headers.
1027 * fork-child.c: Sort headers.
1028 * findvar.c: Sort headers.
1029 * findcmd.c: Sort headers.
1030 * filesystem.c: Sort headers.
1031 * filename-seen-cache.h: Sort headers.
1032 * filename-seen-cache.c: Sort headers.
1033 * fbsd-tdep.c: Sort headers.
1034 * fbsd-nat.h: Sort headers.
1035 * fbsd-nat.c: Sort headers.
1036 * f-valprint.c: Sort headers.
1037 * f-typeprint.c: Sort headers.
1038 * f-lang.c: Sort headers.
1039 * extension.h: Sort headers.
1040 * extension.c: Sort headers.
1041 * extension-priv.h: Sort headers.
1042 * expprint.c: Sort headers.
1043 * exec.h: Sort headers.
1044 * exec.c: Sort headers.
1045 * exceptions.c: Sort headers.
1046 * event-top.c: Sort headers.
1047 * event-loop.c: Sort headers.
1048 * eval.c: Sort headers.
1049 * elfread.c: Sort headers.
1050 * dwarf2read.h: Sort headers.
1051 * dwarf2read.c: Sort headers.
1052 * dwarf2loc.c: Sort headers.
1053 * dwarf2expr.h: Sort headers.
1054 * dwarf2expr.c: Sort headers.
1055 * dwarf2-frame.c: Sort headers.
1056 * dwarf2-frame-tailcall.c: Sort headers.
1057 * dwarf-index-write.h: Sort headers.
1058 * dwarf-index-write.c: Sort headers.
1059 * dwarf-index-common.c: Sort headers.
1060 * dwarf-index-cache.h: Sort headers.
1061 * dwarf-index-cache.c: Sort headers.
1062 * dummy-frame.c: Sort headers.
1063 * dtrace-probe.c: Sort headers.
1064 * disasm.h: Sort headers.
1065 * disasm.c: Sort headers.
1066 * disasm-selftests.c: Sort headers.
1067 * dictionary.c: Sort headers.
1068 * dicos-tdep.c: Sort headers.
1069 * demangle.c: Sort headers.
1070 * dcache.h: Sort headers.
1071 * dcache.c: Sort headers.
1072 * darwin-nat.h: Sort headers.
1073 * darwin-nat.c: Sort headers.
1074 * darwin-nat-info.c: Sort headers.
1075 * d-valprint.c: Sort headers.
1076 * d-namespace.c: Sort headers.
1077 * d-lang.c: Sort headers.
1078 * ctf.c: Sort headers.
1079 * csky-tdep.c: Sort headers.
1080 * csky-linux-tdep.c: Sort headers.
1081 * cris-tdep.c: Sort headers.
1082 * cris-linux-tdep.c: Sort headers.
1083 * cp-valprint.c: Sort headers.
1084 * cp-support.c: Sort headers.
1085 * cp-namespace.c: Sort headers.
1086 * cp-abi.c: Sort headers.
1087 * corelow.c: Sort headers.
1088 * corefile.c: Sort headers.
1089 * continuations.c: Sort headers.
1090 * completer.h: Sort headers.
1091 * completer.c: Sort headers.
1092 * complaints.c: Sort headers.
1093 * coffread.c: Sort headers.
1094 * coff-pe-read.c: Sort headers.
1095 * cli-out.h: Sort headers.
1096 * cli-out.c: Sort headers.
1097 * charset.c: Sort headers.
1098 * c-varobj.c: Sort headers.
1099 * c-valprint.c: Sort headers.
1100 * c-typeprint.c: Sort headers.
1101 * c-lang.c: Sort headers.
1102 * buildsym.c: Sort headers.
1103 * buildsym-legacy.c: Sort headers.
1104 * build-id.h: Sort headers.
1105 * build-id.c: Sort headers.
1106 * btrace.c: Sort headers.
1107 * bsd-uthread.c: Sort headers.
1108 * breakpoint.h: Sort headers.
1109 * breakpoint.c: Sort headers.
1110 * break-catch-throw.c: Sort headers.
1111 * break-catch-syscall.c: Sort headers.
1112 * break-catch-sig.c: Sort headers.
1113 * blockframe.c: Sort headers.
1114 * block.c: Sort headers.
1115 * bfin-tdep.c: Sort headers.
1116 * bfin-linux-tdep.c: Sort headers.
1117 * bfd-target.c: Sort headers.
1118 * bcache.c: Sort headers.
1119 * ax-general.c: Sort headers.
1120 * ax-gdb.h: Sort headers.
1121 * ax-gdb.c: Sort headers.
1122 * avr-tdep.c: Sort headers.
1123 * auxv.c: Sort headers.
1124 * auto-load.c: Sort headers.
1125 * arm-wince-tdep.c: Sort headers.
1126 * arm-tdep.c: Sort headers.
1127 * arm-symbian-tdep.c: Sort headers.
1128 * arm-pikeos-tdep.c: Sort headers.
1129 * arm-obsd-tdep.c: Sort headers.
1130 * arm-nbsd-tdep.c: Sort headers.
1131 * arm-nbsd-nat.c: Sort headers.
1132 * arm-linux-tdep.c: Sort headers.
1133 * arm-linux-nat.c: Sort headers.
1134 * arm-fbsd-tdep.c: Sort headers.
1135 * arm-fbsd-nat.c: Sort headers.
1136 * arm-bsd-tdep.c: Sort headers.
1137 * arch-utils.c: Sort headers.
1138 * arc-tdep.c: Sort headers.
1139 * arc-newlib-tdep.c: Sort headers.
1140 * annotate.h: Sort headers.
1141 * annotate.c: Sort headers.
1142 * amd64-windows-tdep.c: Sort headers.
1143 * amd64-windows-nat.c: Sort headers.
1144 * amd64-tdep.c: Sort headers.
1145 * amd64-sol2-tdep.c: Sort headers.
1146 * amd64-obsd-tdep.c: Sort headers.
1147 * amd64-obsd-nat.c: Sort headers.
1148 * amd64-nbsd-tdep.c: Sort headers.
1149 * amd64-nbsd-nat.c: Sort headers.
1150 * amd64-nat.c: Sort headers.
1151 * amd64-linux-tdep.c: Sort headers.
1152 * amd64-linux-nat.c: Sort headers.
1153 * amd64-fbsd-tdep.c: Sort headers.
1154 * amd64-fbsd-nat.c: Sort headers.
1155 * amd64-dicos-tdep.c: Sort headers.
1156 * amd64-darwin-tdep.c: Sort headers.
1157 * amd64-bsd-nat.c: Sort headers.
1158 * alpha-tdep.c: Sort headers.
1159 * alpha-obsd-tdep.c: Sort headers.
1160 * alpha-nbsd-tdep.c: Sort headers.
1161 * alpha-mdebug-tdep.c: Sort headers.
1162 * alpha-linux-tdep.c: Sort headers.
1163 * alpha-linux-nat.c: Sort headers.
1164 * alpha-bsd-tdep.c: Sort headers.
1165 * alpha-bsd-nat.c: Sort headers.
1166 * aix-thread.c: Sort headers.
1167 * agent.c: Sort headers.
1168 * addrmap.c: Sort headers.
1169 * ada-varobj.c: Sort headers.
1170 * ada-valprint.c: Sort headers.
1171 * ada-typeprint.c: Sort headers.
1172 * ada-tasks.c: Sort headers.
1173 * ada-lang.c: Sort headers.
1174 * aarch64-tdep.c: Sort headers.
1175 * aarch64-ravenscar-thread.c: Sort headers.
1176 * aarch64-newlib-tdep.c: Sort headers.
1177 * aarch64-linux-tdep.c: Sort headers.
1178 * aarch64-linux-nat.c: Sort headers.
1179 * aarch64-fbsd-tdep.c: Sort headers.
1180 * aarch64-fbsd-nat.c: Sort headers.
1181 * aarch32-linux-nat.c: Sort headers.
1182
11832019-04-04 Tom Tromey <tom@tromey.com>
1184
1185 * varobj.c (varobj_create): Update.
1186 * rust-exp.y (struct rust_parser) <update_innermost_block,
1187 lookup_symbol>: New methods.
1188 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
1189 Rename.
1190 (rust_parser::rust_lookup_type)
1191 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
1192 * printcmd.c (display_command, do_one_display): Update.
1193 * parser-defs.h (struct parser_state) <parser_state>: Add
1194 "tracker" parameter.
1195 (block_tracker): New member.
1196 (class innermost_block_tracker) <innermost_block_tracker>: Add
1197 "types" parameter.
1198 <reset>: Remove method.
1199 (innermost_block): Don't declare.
1200 (null_post_parser): Update.
1201 * parse.c (innermost_block): Remove global.
1202 (write_dollar_variable): Update.
1203 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
1204 Remove "tracker_types" parameter.
1205 (parse_expression): Add "tracker" parameter.
1206 (parse_expression_for_completion): Update.
1207 (null_post_parser): Add "tracker" parameter.
1208 * p-exp.y: Update rules.
1209 * m2-exp.y: Update rules.
1210 * language.h (struct language_defn) <la_post_parser>: Add
1211 "tracker" parameter.
1212 * go-exp.y: Update rules.
1213 * f-exp.y: Update rules.
1214 * expression.h (parse_expression, parse_exp_1): Add "tracker"
1215 parameter.
1216 * d-exp.y: Update rules.
1217 * c-exp.y: Update rules.
1218 * breakpoint.c (set_breakpoint_condition): Create an
1219 innermost_block_tracker.
1220 (watch_command_1): Likewise.
1221 * ada-lang.c (resolve): Add "tracker" parameter.
1222 (resolve_subexp): Likewise.
1223 * ada-exp.y (write_var_from_sym): Update.
1224
12252019-04-04 Tom Tromey <tom@tromey.com>
1226
1227 * type-stack.h: New file.
1228 * type-stack.c: New file.
1229 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
1230 type-stack.h.
1231 (insert_into_type_stack, insert_type, push_type, push_type_int)
1232 (insert_type_address_space, pop_type, pop_type_int)
1233 (pop_typelist, pop_type_stack, append_type_stack)
1234 (push_type_stack, get_type_stack, push_typelist)
1235 (follow_type_instance_flags, follow_types): Don't declare.
1236 * parse.c (type_stack): Remove global.
1237 (parse_exp_in_context): Update.
1238 (insert_into_type_stack, insert_type, push_type, push_type_int)
1239 (insert_type_address_space, pop_type, pop_type_int)
1240 (pop_typelist, pop_type_stack, append_type_stack)
1241 (push_type_stack, get_type_stack, push_typelist)
1242 (follow_type_instance_flags, follow_types): Remove (moved to
1243 type-stack.c).
1244 * f-exp.y (type_stack): New global.
1245 Update rules.
1246 (push_kind_type, f_parse): Update.
1247 * d-exp.y (type_stack): New global.
1248 Update rules.
1249 (d_parse): Update.
1250 * c-exp.y (struct c_parse_state) <type_stack>: New member.
1251 Update rules.
1252 * Makefile.in (COMMON_SFILES): Add type-stack.c.
1253 (HFILES_NO_SRCDIR): Add type-stack.h.
1254
12552019-04-04 Tom Tromey <tom@tromey.com>
1256
1257 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
1258 (rust_parser::convert_ast_to_expression, rust_parse)
1259 (rust_lex_test_completion, rust_lex_tests): Update.
1260 * parser-defs.h (struct expr_completion_state): New.
1261 (struct parser_state) <parser_state>: Add completion parameter.
1262 <mark_struct_expression, mark_completion_tag>: New methods.
1263 <parse_completion, m_completion_state>: New members.
1264 (prefixify_expression, null_post_parser): Update.
1265 (mark_struct_expression, mark_completion_tag): Don't declare.
1266 * parse.c (parse_completion, expout_last_struct)
1267 (expout_tag_completion_type, expout_completion_name): Remove
1268 globals.
1269 (parser_state::mark_struct_expression)
1270 (parser_state::mark_completion_tag): Now methods.
1271 (prefixify_expression): Add last_struct parameter.
1272 (prefixify_subexp): Likewise.
1273 (parse_exp_1): Update.
1274 (parse_exp_in_context): Add cstate parameter. Update.
1275 (parse_expression_for_completion): Create an
1276 expr_completion_state.
1277 (null_post_parser): Add "completion" parameter.
1278 * p-exp.y: Update rules.
1279 (yylex): Update.
1280 * language.h (struct language_defn) <la_post_parser>: Add
1281 "completing" parameter.
1282 * go-exp.y: Update rules.
1283 (lex_one_token): Update.
1284 * expression.h (parse_completion): Don't declare.
1285 * d-exp.y: Update rules.
1286 (lex_one_token): Update rules.
1287 * c-exp.y: Update rules.
1288 (lex_one_token): Update.
1289 * ada-lang.c (resolve): Add "parse_completion" parameter.
1290 (resolve_subexp): Likewise.
1291 (ada_resolve_function): Likewise.
1292
12932019-04-04 Tom Tromey <tom@tromey.com>
1294
1295 * parser-defs.h (struct parser_state) <start_arglist,
1296 end_arglist>: New methods.
1297 <arglist_len, m_funcall_chain>: New members.
1298 (arglist_len, start_arglist, end_arglist): Don't declare.
1299 * parse.c (arglist_len, funcall_chain): Remove global.
1300 (start_arglist, end_arglist): Remove functions.
1301 (parse_exp_in_context): Update.
1302 * p-exp.y: Update rules.
1303 * m2-exp.y: Update rules.
1304 * go-exp.y: Update rules.
1305 * f-exp.y: Update rules.
1306 * d-exp.y: Update rules.
1307 * c-exp.y: Update rules.
1308
13092019-04-04 Tom Tromey <tom@tromey.com>
1310
1311 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
1312 lex_operator, push_back>: New methods.
1313 Update all rules.
1314 (rust_parser::lex_hex, lex_escape): Rename and update.
1315 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
1316 (rust_parser::lex_operator): Rename and update.
1317 (rust_parser::lex_number, rustyylex, rustyyerror)
1318 (rust_lex_test_init, rust_lex_test_sequence)
1319 (rust_lex_test_push_back, rust_lex_tests): Update.
1320 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
1321 parameter.
1322 <lexptr, prev_lexptr>: New members.
1323 (lexptr, prev_lexptr): Don't declare.
1324 * parse.c (lexptr, prev_lexptr): Remove globals.
1325 (parse_exp_in_context): Update.
1326 * p-exp.y (yylex, yyerror): Update.
1327 * m2-exp.y (parse_number, yylex, yyerror): Update.
1328 * go-exp.y (lex_one_token, yyerror): Update.
1329 * f-exp.y (match_string_literal, yylex, yyerror): Update.
1330 * d-exp.y (lex_one_token, yyerror): Update.
1331 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
1332 (lex_one_token, yyerror): Update.
1333 * ada-lex.l (YY_INPUT): Update.
1334 (rewind_to_char): Update.
1335 * ada-exp.y (yyerror): Update.
1336
13372019-04-04 Tom Tromey <tom@tromey.com>
1338
1339 * rust-exp.y (rustyylex, rust_lex_tests): Update.
1340 * parser-defs.h (struct parser_state) <parser_state>: Add new
1341 parameter.
1342 <comma_terminates>: New member.
1343 (comma_terminates): Don't declare global.
1344 * parse.c (comma_terminates): Remove global.
1345 (parse_exp_in_context): Update.
1346 * p-exp.y (yylex): Update.
1347 * m2-exp.y (yylex): Update.
1348 * go-exp.y (lex_one_token): Update.
1349 * f-exp.y (yylex): Update.
1350 * d-exp.y (lex_one_token): Update.
1351 * c-exp.y (lex_one_token): Update.
1352 * ada-lex.l: Update.
1353
13542019-04-04 Tom Tromey <tom@tromey.com>
1355
1356 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
1357 (rustyylex, rust_lex_test_init, rust_lex_test_one)
1358 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
1359 * parser-defs.h (paren_depth): Don't declare.
1360 * parse.c (paren_depth): Remove global.
1361 (parse_exp_in_context): Update.
1362 * p-exp.y (paren_depth): New global.
1363 (pascal_parse): Initialize it.
1364 * m2-exp.y (paren_depth): New global.
1365 (m2_parse): Initialize it.
1366 * go-exp.y (paren_depth): New global.
1367 (go_parse): Initialize it.
1368 * f-exp.y (paren_depth): New global.
1369 (f_parse): Initialize it.
1370 * d-exp.y (paren_depth): New global.
1371 (d_parse): Initialize it.
1372 * c-exp.y (paren_depth): New global.
1373 (c_parse): Initialize it.
1374 * ada-lex.l (paren_depth): New global.
1375 (lexer_init): Initialize it.
1376
13772019-04-04 Tom Tromey <tom@tromey.com>
1378
1379 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
1380 (rust_parser::convert_ast_to_type)
1381 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
1382 * parser-defs.h (struct parser_state) <parser_state>: Add
1383 parameters. Initialize new members.
1384 <expression_context_block, expression_context_pc>: New members.
1385 * parse.c (expression_context_block, expression_context_pc):
1386 Remove globals.
1387 (parse_exp_in_context): Update.
1388 * p-exp.y: Update all rules.
1389 (yylex): Update.
1390 * m2-exp.y: Update all rules.
1391 (yylex): Update.
1392 * go-exp.y (yylex): Update.
1393 * f-exp.y (yylex): Update.
1394 * d-exp.y: Update all rules.
1395 (yylex): Update.
1396 * c-exp.y: Update all rules.
1397 (lex_one_token, classify_name, yylex, c_parse): Update.
1398 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
1399
14002019-04-04 Tom Tromey <tom@tromey.com>
1401
1402 * gdbarch.h, gdbarch.c: Rebuild.
1403 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
1404 * stap-probe.h:
1405 (struct stap_parse_info): Replace "parser_state" with
1406 "expr_builder".
1407 * parser-defs.h (struct expr_builder): Rename from "parser_state".
1408 (parser_state): New class.
1409 * parse.c (expr_builder): Rename.
1410 (expr_builder::release): Rename.
1411 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
1412 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
1413 (write_exp_elt_longcst, write_exp_elt_floatcst)
1414 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
1415 (write_exp_string_vector, write_exp_bitstring)
1416 (write_exp_msymbol, mark_struct_expression)
1417 (write_dollar_variable)
1418 (insert_type_address_space, increase_expout_size): Replace
1419 "parser_state" with "expr_builder".
1420 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
1421 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
1422 "parser_state" with "expr_builder".
1423
14242019-04-04 Tom Tromey <tom@tromey.com>
1425
1426 * rust-exp.y: Replace "parse_language" with method call.
1427 * p-exp.y:
1428 (yylex): Replace "parse_language" with method call.
1429 * m2-exp.y:
1430 (yylex): Replace "parse_language" with method call.
1431 * go-exp.y (classify_name): Replace "parse_language" with method
1432 call.
1433 * f-exp.y (yylex): Replace "parse_language" with method call.
1434 * d-exp.y (lex_one_token): Replace "parse_language" with method
1435 call.
1436 * c-exp.y:
1437 (lex_one_token, classify_name, yylex): Replace "parse_language"
1438 with method call.
1439 * ada-exp.y (find_primitive_type, type_char)
1440 (type_system_address): Replace "parse_language" with method call.
1441
14422019-04-04 Tom Tromey <tom@tromey.com>
1443
1444 * rust-exp.y: Replace "parse_gdbarch" with method call.
1445 * parse.c (write_dollar_variable, insert_type_address_space):
1446 Replace "parse_gdbarch" with method call.
1447 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
1448 call.
1449 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
1450 call.
1451 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
1452 "parse_gdbarch" with method call.
1453 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
1454 with method call.
1455 * f-exp.y (parse_type, parse_f_type, yylex): Replace
1456 "parse_gdbarch" with method call.
1457 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
1458 "parse_gdbarch" with method call.
1459 * c-exp.y (parse_type, parse_number, classify_name): Replace
1460 "parse_gdbarch" with method call.
1461 * ada-lex.l: Replace "parse_gdbarch" with method call.
1462 * ada-exp.y (parse_type, find_primitive_type, type_char)
1463 (type_system_address): Replace "parse_gdbarch" with method call.
1464
14652019-04-04 Tom Tromey <tom@tromey.com>
1466
1467 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
1468 * stap-probe.c (stap_parse_argument): Update.
1469 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
1470 initial_size parameter.
1471 * rust-exp.y (rust_lex_tests): Update.
1472 * parse.c (parser_state): Update.
1473 (parse_exp_in_context): Update.
1474 * parser-defs.h (struct parser_state) <parser_state>: Remove
1475 "initial_size" parameter.
1476
14772019-04-04 Tom Tromey <tom@tromey.com>
1478
1479 * parser-defs.h (increase_expout_size): Don't declare.
1480 * parse.c (increase_expout_size): Now static.
1481
14822019-04-04 Thomas Schwinge <thomas@codesourcery.com>
1483
1484 * gnu-nat.c (gnu_nat_target::wait): Fix
1485 target_waitstatus_to_string call.
1486
14872019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
1488
1489 * eval.c (evaluate_subexp_standard): Handle internal functions
1490 during Fortran function call handling.
1491
14922019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
1493
1494 * NEWS: Mention new internal functions.
1495 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
1496 (read_base_type): Use dwarf2_init_complex_target_type.
1497 * value.c (creal_internal_fn): New function.
1498 (cimag_internal_fn): New function.
1499 (_initialize_values): Register new internal functions.
1500
15012019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1502
1503 * infrun.c (stop_all_threads): If debug_infrun, always
1504 trace the wait status after wait_one, using
1505 target_waitstatus_to_string and target_pid_to_str.
1506 (handle_inferior_event): Replace various trace of
1507 wait status kind by a single trace.
1508 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
1509 wait status kind image by target_waitstatus_to_string.
1510 * target/waitstatus.c (target_waitstatus_to_string): Fix
1511 obsolete comment.
1512
15132019-04-01 Tom Tromey <tromey@adacore.com>
1514
1515 PR symtab/23331:
1516 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
1517
15182019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
1519 Pedro Alves <palves@redhat.com>
1520
1521 * top.c (quit_force): Call 'finalize_values'.
1522 * value.c (finalize_values): New function.
1523 * value.h (finalize_values): Declare.
1524
15252019-03-30 Eli Zaretskii <eliz@gnu.org>
1526
1527 * NEWS: Announce $_gdb_major and $_gdb_minor.
1528
1529 * top.c (init_gdb_version_vars): New function.
1530 (gdb_init): Call init_gdb_version_vars.
1531
15322019-03-29 Tom Tromey <tromey@adacore.com>
1533
1534 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
1535 help text. Remove dead code.
1536
15372019-03-29 Keith Seitz <keiths@redhat.com>
1538
1539 From Siddhesh Poyarekar:
1540 * f-lang.h (f77_get_upperbound): Return LONGEST.
1541 (f77_get_lowerbound): Likewise.
1542 * f-typeprint.c (f_type_print_varspec_suffix): Expand
1543 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
1544 print them.
1545 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
1546 plongest to format print it.
1547 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
1548 (f77_get_upperbound): Likewise.
1549 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
1550 LOWER_BOUND to LONGEST.
1551 (f77_create_arrayprint_offset_tbl): Likewise.
1552
15532019-03-29 Keith Seitz <keiths@redhat.com>
1554
1555 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1556 %s/pulongest for TYPE_LENGTH instead of %d in format
1557 strings.
1558 * ada-typerint.c (ada_print_type): Likewise.
1559 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
1560 * compile/compile-c-support.c (generate_register_struct): Likewise.
1561 * gdbtypes.c (recursive_dump_type): Likewise.
1562 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
1563 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
1564 instead of %d in format strings.
1565 * riscv-tdep.c (riscv_type_alignment): Cast second argument
1566 to std::min to ULONGEST.
1567 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
1568 instead of %d in format strings.
1569 * tracepoint.c (info_scope_command): Likewise.
1570 * typeprint.c (print_offset_data::update)
1571 (print_offset_data::finish): Likewise.
1572 * xtensa-tdep.c (xtensa_store_return_value)
1573 (xtensa_push_dummy_call): Likewise.
1574
15752019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
1576
1577 * windows-nat.c (display_selector): Fixed format specifications
1578 for 64-bit Cygwin.
1579
15802019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1581
1582 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
1583
15842019-03-28 Sandra Loosemore <sandra@codesourcery.com>
1585
1586 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
1587 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
1588 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
1589 (nios2_linux_init_abi): Install it.
1590
15912019-03-28 Alan Hayward <alan.hayward@arm.com>
1592
1593 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
1594
15952019-03-28 Alan Hayward <alan.hayward@arm.com>
1596
1597 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
1598
15992019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1600 Tom Tromey <tromey@adacore.com>
1601
1602 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
1603
16042019-03-26 Joel Brobecker <brobecker@adacore.com>
1605
1606 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
1607 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
1608 method to compute the bounds of range types. Also print "[evaluated]"
1609 if the bounds' values come from a dynamic evaluation.
1610
16112019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
1612
1613 * cp-valprint.c (cp_print_value_fields): Don't print trailing
1614 whitespace when pretty printing is on.
1615
16162019-03-26 Alan Hayward <alan.hayward@arm.com>
1617
1618 * ppc-linux-nat.c: Add include.
1619
16202019-03-26 Alan Hayward <alan.hayward@arm.com>
1621
1622 * NEWS: Mention AArch64 Pointer Authentication.
1623
16242019-03-26 Alan Hayward <alan.hayward@arm.com>
1625
1626 * arm-linux-nat.c: Add include.
1627
16282019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
1629
1630 * source-cache.c (source_cache::get_source_lines): Re-read
1631 fullname after calling open_source_file.
1632
16332019-03-25 John Baldwin <jhb@FreeBSD.org>
1634
1635 * NEWS: Mention TLS support for FreeBSD.
1636
16372019-03-25 Tom Tromey <tromey@adacore.com>
1638
1639 * minsyms.c (BUNCH_SIZE): Update comment.
1640 (~minimal_symbol_reader): Remove old comment.
1641 (compact_minimal_symbols): Update comment.
1642 (minimal_symbol_reader::install): Remove old comment. Update
1643 other comments.
1644
16452019-03-25 Alan Hayward <alan.hayward@arm.com>
1646
1647 * s390-linux-nat.c: Add include.
1648
16492019-03-25 Alan Hayward <alan.hayward@arm.com>
1650
1651 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1652 Call linux_get_hwcap.
1653 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1654 Likewise.
1655 (aarch64_linux_get_hwcap): Remove function.
1656 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
1657 declaration.
1658 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
1659 linux_get_hwcap.
1660 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1661 * linux-tdep.c (linux_get_hwcap): Add function.
1662 (linux_get_hwcap2): Likewise.
1663 * linux-tdep.h (linux_get_hwcap): Add declaration.
1664 (linux_get_hwcap2): Likewise.
1665 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
1666 (ppc_linux_get_hwcap2): Likewise.
1667 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
1668 linux_get_hwcap.
1669 (ppc_linux_nat_target::insert_watchpoint): Likewise.
1670 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
1671 (ppc_linux_nat_target::read_description): Likewise.
1672 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
1673 * s390-linux-nat.c: Likewise.
1674 * s390-linux-tdep.c (s390_core_read_description): Likewise.
1675
16762019-03-24 Tom Tromey <tom@tromey.com>
1677
1678 * ada-lang.c (standard_lookup): Simplify initialization.
1679 (ada_lookup_symbol_nonlocal): Simplify return.
1680 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
1681 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
1682 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
1683 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
1684 initialization.
1685 * solib.c (solib_global_lookup): Simplify.
1686 * symtab.c (null_block_symbol): Remove.
1687 (symbol_cache_lookup): Simplify returns.
1688 (lookup_language_this): Simplify returns.
1689 (lookup_symbol_aux): Simplify return.
1690 (lookup_local_symbol): Simplify returns.
1691 (lookup_global_symbol_from_objfile): Simplify return.
1692 (lookup_symbol_in_objfile_symtabs)
1693 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
1694 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
1695 (lookup_static_symbol, lookup_global_symbol): Simplify return.
1696 * cp-namespace.c (cp_lookup_bare_symbol)
1697 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
1698 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
1699 (cp_lookup_nested_symbol): Don't use null_block_symbol.
1700 (cp_lookup_symbol_via_imports): Simplify initialization.
1701 (find_symbol_in_baseclass): Likewise.
1702 * symtab.h (null_block_symbol): Remove.
1703 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
1704 (d_lookup_nested_symbol, d_lookup_symbol_imports)
1705 (d_lookup_symbol_module): Likewise.
1706 (find_symbol_in_baseclass): Simplify initialization.
1707
17082019-03-24 Tom Tromey <tom@tromey.com>
1709
1710 * expression.h: Don't include symtab.h.
1711 (struct block): Forward declare.
1712
17132019-03-24 Tom Tromey <tom@tromey.com>
1714
1715 * c-exp.y (typebase): Remove casts.
1716 * gdbtypes.c (lookup_unsigned_typename, )
1717 (lookup_signed_typename): Remove cast.
1718 * eval.c (parse_to_comma_and_eval): Remove cast.
1719 * parse.c (write_dollar_variable): Remove cast.
1720 * block.h (struct block) <superblock>: Now const.
1721 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
1722 * psymtab.c (psym_map_matching_symbols): Make "block" const.
1723 (map_block): Make "block" const.
1724 * symfile.h (struct quick_symbol_functions)
1725 <map_matching_symbols>: Constify block argument to "callback".
1726 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
1727 const.
1728 (find_pc_sect_compunit_symtab): Make "b" const.
1729 (find_symbol_at_address): Likewise.
1730 (search_symbols): Likewise.
1731 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
1732 (dw2_debug_names_lookup_symbol): Likewise.
1733 (dw2_map_matching_symbols): Update.
1734 * p-valprint.c (pascal_val_print): Remove "block".
1735 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
1736 (aux_add_nonlocal_symbols): Make "block" const.
1737 (resolve_subexp): Remove cast.
1738 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
1739 const.
1740 (iterate_over_file_blocks): Likewise.
1741 * f-exp.y (%union) <bval>: Remove.
1742 * coffread.c (patch_opaque_types): Make "b" const.
1743 * spu-tdep.c (spu_catch_start): Make "block" const.
1744 * c-valprint.c (print_unpacked_pointer): Remove "block".
1745 * symmisc.c (dump_symtab_1): Make "b" const.
1746 (block_depth): Make "block" const.
1747 * d-exp.y (%union) <bval>: Remove.
1748 * cp-support.h (cp_lookup_rtti_type): Update.
1749 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
1750 * psymtab.c (psym_lookup_symbol): Make "block" const.
1751 (maintenance_check_psymtabs): Make "b" const.
1752 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
1753 (enumerate_locals, enumerate_args): Update.
1754 * python/py-symtab.c (stpy_global_block): Make "block" const.
1755 (stpy_static_block): Likewise.
1756 * inline-frame.c (block_starting_point_at): Make "new_block"
1757 const.
1758 * block.c (find_block_in_blockvector): Make return type const.
1759 (blockvector_for_pc_sect): Make "b" const.
1760 (find_block_in_blockvector): Make "b" const.
1761
17622019-03-23 Tom Tromey <tom@tromey.com>
1763
1764 * varobj.c (varobj_create): Update.
1765 * symfile.c (clear_symtab_users): Don't reset innermost_block.
1766 * printcmd.c (display_command, do_one_display): Don't reset
1767 innermost_block.
1768 * parser-defs.h (enum innermost_block_tracker_type): Move to
1769 expression.h.
1770 (innermost_block): Update comment.
1771 * parse.c (parse_exp_1): Add tracker_types parameter.
1772 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
1773 tracker_types parameter. Reset innermost_block.
1774 (parse_exp_in_context): Remove.
1775 (parse_expression_for_completion): Update.
1776 * objfiles.c (~objfile): Don't reset expression_context_block or
1777 innermost_block.
1778 * expression.h (enum innermost_block_tracker_type): Move from
1779 parser-defs.h.
1780 (parse_exp_1): Add tracker_types parameter.
1781 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
1782 reset innermost_block.
1783
17842019-03-23 Tom Tromey <tom@tromey.com>
1785
1786 * objfiles.h: Include bcache.h.
1787
17882019-03-23 Tom Tromey <tom@tromey.com>
1789
1790 * linespec.c (get_current_search_block): Use
1791 scoped_restore_current_language.
1792 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
1793
17942019-03-22 Alan Hayward <alan.hayward@arm.com>
1795 Jiong Wang <jiong.wang@arm.com>
1796
1797 * aarch64-linux-tdep.c
1798 (aarch64_linux_iterate_over_regset_sections): Check for pauth
1799 section.
1800 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
1801
18022019-03-22 Alan Hayward <alan.hayward@arm.com>
1803 Jiong Wang <jiong.wang@arm.com>
1804
1805 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
1806 instructions.
1807 (aarch64_analyze_prologue_test): Add PACIASP test.
1808 (aarch64_prologue_prev_register): Unmask PC value.
1809
18102019-03-22 Alan Hayward <alan.hayward@arm.com>
1811 Jiong Wang <jiong.wang@arm.com>
1812
1813 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
1814 (aarch64_dwarf2_prev_register): Unmask PC value.
1815 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
1816 (aarch64_execute_dwarf_cfa_vendor_op): Check for
1817 DW_CFA_AARCH64_negate_ra_state.
1818 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
1819
18202019-03-22 Alan Hayward <alan.hayward@arm.com>
1821 Jiong Wang <jiong.wang@arm.com>
1822
1823 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
1824 registers.
1825 (aarch64_pseudo_register_name): Likewise.
1826 (aarch64_pseudo_register_type): Likewise.
1827 (aarch64_pseudo_register_reggroup_p): Likewise.
1828 (aarch64_gdbarch_init): Add pauth registers.
1829 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
1830 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
1831 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
1832 (struct gdbarch_tdep): Add regnum for ra_state.
1833
18342019-03-22 Alan Hayward <alan.hayward@arm.com>
1835 Jiong Wang <jiong.wang@arm.com>
1836
1837 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
1838
18392019-03-22 Alan Hayward <alan.hayward@arm.com>
1840 Jiong Wang <jiong.wang@arm.com>
1841
1842 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
1843 function.
1844 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
1845 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
1846 (aarch64_gdbarch_init): Add puth registers.
1847 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
1848 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
1849 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
1850
18512019-03-22 Alan Hayward <alan.hayward@arm.com>
1852 Jiong Wang <jiong.wang@arm.com>
1853
1854 * aarch64-linux-nat.c
1855 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
1856 * aarch64-linux-tdep.c
1857 (aarch64_linux_core_read_description): Likewise.
1858 (aarch64_linux_get_hwcap): New function.
1859 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
1860 (aarch64_linux_get_hwcap): New declaration.
1861
18622019-03-22 Alan Hayward <alan.hayward@arm.com>
1863 Jiong Wang <jiong.wang@arm.com>
1864
1865 * aarch64-linux-nat.c
1866 (aarch64_linux_nat_target::read_description): Add pauth param.
1867 * aarch64-linux-tdep.c
1868 (aarch64_linux_core_read_description): Likewise.
1869 * aarch64-tdep.c (struct target_desc): Add in pauth.
1870 (aarch64_read_description): Add pauth param.
1871 (aarch64_gdbarch_init): Likewise.
1872 * aarch64-tdep.h (aarch64_read_description): Likewise.
1873 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1874 * arch/aarch64.h (aarch64_create_target_description): Likewise.
1875 * features/Makefile: Add new files.
1876 * features/aarch64-pauth.c: New file.
1877 * features/aarch64-pauth.xml: New file.
1878
18792019-03-20 Tom Tromey <tromey@adacore.com>
1880
1881 * infrun.c (handle_inferior_event): Rename from
1882 handle_inferior_event_1. Create a scoped_value_mark.
1883 (handle_inferior_event): Remove.
1884
18852019-03-19 Tom Tromey <tromey@adacore.com>
1886
1887 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
1888 * infrun.h (print_stop_event): Add "displays" parameter.
1889 * infrun.c (print_stop_event): Add "displays" parameter.
1890
18912019-03-19 Pedro Alves <palves@redhat.com>
1892
1893 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
1894 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
1895 to -1. Fix TABs vs spaces.
1896 (tui_ui_out::tui_ui_out): Don't initialize fields here.
1897 * tui/tui-out.h (tui_ui_out) Add intro comments.
1898 <m_line, m_start_of_line>: In-class initialize, and add describing
1899 comment.
1900
19012019-03-18 Alan Hayward <alan.hayward@arm.com>
1902
1903 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
1904 variable names.
1905 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
1906
19072019-03-18 Pedro Alves <palves@redhat.com>
1908 Eli Zaretskii <eliz@gnu.org>
1909
1910 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
1911 m_line and m_start_of_line.
1912
19132019-03-18 Eli Zaretskii <eliz@gnu.org>
1914
1915 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
1916 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
1917 it returns a newline. This fixes a regression in TU mode, whereby
1918 the next line is output on the same screen line as the user input.
1919
19202019-03-18 Tom Tromey <tromey@adacore.com>
1921
1922 * minsyms.c (minimal_symbol_reader::install): Remove call to
1923 obstack_blank.
1924
19252019-03-18 Pedro Alves <palves@redhat.com>
1926
1927 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
1928 New globals.
1929 (apply_style): New, factored out from ...
1930 (apply_ansi_escape): ... this. Handle reverse video mode.
1931 (tui_set_reverse_mode): New function.
1932 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
1933 * tui/tui-winsource.c (tui_show_source_line): Use
1934 tui_set_reverse_mode instead of setting A_STANDOUT.
1935 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
1936 New setter methods.
1937
19382019-03-18 Hannes Domani <ssbssa@yahoo.de>
1939
1940 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
1941 Handle tabs.
1942
19432019-03-18 Tom Tromey <tromey@adacore.com>
1944
1945 * ada-lang.c (empty_array): Add "high" parameter.
1946 (ada_evaluate_subexp): Update.
1947
19482019-03-17 Sergei Trofimovich <siarheit@google.com>
1949
1950 * unittests/string_view-selftests.c: Define
1951 _initialize_string_view_selftests unconditionally.
1952
19532019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
1954
1955 PR gdb/24350
1956 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
1957
19582019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
1959
1960 PR gdb/24351
1961 * windows-nat.c (display_selector): Fix format specifiers.
1962
19632019-03-17 Eli Zaretskii <eliz@gnu.org>
1964
1965 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
1966 tui_refill_source_window instead of tui_refresh_win, to update the
1967 current execution line. This fixes redisplay of the current line
1968 when stepping through the code with "next" or "step".
1969
19702019-03-16 Eli Zaretskii <eliz@gnu.org>
1971
1972 * source-cache.c (source_cache::get_source_lines): Call
1973 find_source_lines to initialize s->nlines. This fixes vertical
1974 scrolling of TUI source window when the DOWN arrow is pressed.
1975
19762019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1977
1978 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
1979 linux-thread-db.c (_initialize_thread_db): Likewise.
1980
19812019-03-16 Eli Zaretskii <eliz@gnu.org>
1982
1983 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
1984 wclrtoeol in tui_show_source_line". This reverts changes made in
1985 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
1986
19872019-03-15 Tom Tromey <tom@tromey.com>
1988
1989 * symtab.h (struct minimal_symbol): Derive from
1990 general_symbol_info.
1991 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
1992 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
1993 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
1994 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
1995 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
1996 (MSYMBOL_SEARCH_NAME): Update.
1997 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
1998 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
1999 * minsyms.c (minimal_symbol_reader::record_full): Update.
2000
20012019-03-15 Tom Tromey <tom@tromey.com>
2002
2003 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
2004
20052019-03-15 Tom Tromey <tom@tromey.com>
2006
2007 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
2008 unique_xmalloc_ptr.
2009 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
2010 Update.
2011 * minsyms.c (lookup_minimal_symbol_by_pc_section)
2012 (build_minimal_symbol_hash_tables)
2013 (minimal_symbol_reader::install): Update.
2014
20152019-03-15 Tom Tromey <tom@tromey.com>
2016
2017 * symtab.c (create_demangled_names_hash): Update.
2018 (symbol_set_names): Update.
2019 * objfiles.h (struct objfile_per_bfd_storage)
2020 <demangled_names_hash>: Now an htab_up.
2021 * objfiles.c (objfile_per_bfd_storage): Simplify.
2022
20232019-03-15 Tom Tromey <tom@tromey.com>
2024
2025 * objfiles.h (struct objfile_per_bfd_storage): Declare
2026 destructor.
2027 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
2028 New.
2029 (get_objfile_bfd_data): Use new. Don't initialize
2030 language_of_main.
2031 (free_objfile_per_bfd_storage): Remove.
2032 (objfile_bfd_data_free, objfile::~objfile): Use delete.
2033
20342019-03-15 Tom Tromey <tom@tromey.com>
2035
2036 * symfile.c (reread_symbols): Update.
2037 * objfiles.c (objfile::objfile): Update.
2038 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
2039 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
2040 comment.
2041 (minimal_symbol_reader::install): Update.
2042 (terminate_minimal_symbol_table): Remove.
2043 * jit.c (jit_object_close_impl): Update.
2044
20452019-03-15 Tom Tromey <tom@tromey.com>
2046
2047 * minsyms.c (minimal_symbol_reader::record_full): Remove some
2048 initializations.
2049
20502019-03-15 Tom Tromey <tom@tromey.com>
2051
2052 * objfiles.h (struct objfile_per_bfd_storage)
2053 <demangled_hash_languages>: Now a bitset.
2054 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
2055 (lookup_minimal_symbol): Update.
2056
20572019-03-15 Tom Tromey <tom@tromey.com>
2058
2059 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
2060 Don't return the symbol.
2061 * coffread.c (record_minimal_symbol): Use record_full.
2062
20632019-03-14 Eli Zaretskii <eliz@gnu.org>
2064
2065 The MS-Windows port of ncurses fails to switch to a color pair if
2066 one or both of the colors are the implicit default colors. This
2067 change records the default colors when TUI is initialized, and
2068 then specifies them explicitly when a color pair uses the default
2069 colors. This allows color styling in TUI mode on MS-Windows.
2070
2071 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
2072 ncurses_norm_attr.
2073 (tui_initialize_io) [__MINGW32__]: Record the default terminal
2074 colors in ncurses_norm_attr.
2075 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
2076 "none", replace it with the default color recorded in
2077 ncurses_norm_attr.
2078
20792019-03-14 Tom Tromey <tromey@adacore.com>
2080
2081 * source-cache.h (class source_cache) <get_source_lines>: Return
2082 std::string.
2083 * source-cache.c (source_cache::extract_lines): Handle case where
2084 first_pos==npos. Return std::string.
2085 (source_cache::get_source_lines): Update.
2086
20872019-03-14 Tom Tromey <tromey@adacore.com>
2088
2089 * NEWS: Add item for "style sources" commands.
2090 * source-cache.c (source_cache::get_source_lines): Check
2091 source_styling.
2092 * cli/cli-style.c (source_styling): New global.
2093 (_initialize_cli_style): Add "style sources" commands.
2094 (show_style_sources): New function.
2095 * cli/cli-style.h (source_styling): Declare.
2096
20972019-03-14 Pedro Alves <palves@redhat.com>
2098 Tom Tromey <tromey@adacore.com>
2099
2100 * tui/tui-winsource.h (tui_refill_source_window): Declare.
2101 * tui/tui-winsource.c (tui_refill_source_window): New function,
2102 from...
2103 (tui_horizontal_source_scroll): ... here. Move some logic.
2104 * cli/cli-style.c (set_style_enabled): Notify new observable.
2105 * tui/tui-hooks.c (tui_redisplay_source): New function.
2106 (tui_attach_detach_observers): Attach or detach
2107 tui_redisplay_source.
2108 * observable.h (source_styling_changed): New observable.
2109 * observable.c: Define source_styling_changed observable.
2110
21112019-03-13 Tom Tromey <tromey@adacore.com>
2112
2113 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
2114 (i386_gnu_nat_target::store_registers): Update.
2115 * target-debug.h (target_debug_print_std_string): New macro.
2116 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2117 * windows-tdep.c (display_one_tib): Update.
2118 * tui/tui-stack.c (tui_make_status_line): Update.
2119 * top.c (print_inferior_quit_action): Update.
2120 * thread.c (thr_try_catch_cmd): Update.
2121 (add_thread_with_info): Update.
2122 (thread_target_id_str): Update.
2123 (thr_try_catch_cmd): Update.
2124 (thread_command): Update.
2125 (thread_find_command): Update.
2126 * record-btrace.c (record_btrace_target::info_record)
2127 (record_btrace_resume_thread, record_btrace_target::resume)
2128 (record_btrace_cancel_resume, record_btrace_step_thread)
2129 (record_btrace_target::wait, record_btrace_target::wait)
2130 (record_btrace_target::wait, record_btrace_target::stop): Update.
2131 * progspace.c (print_program_space): Update.
2132 * process-stratum-target.c
2133 (process_stratum_target::thread_address_space): Update.
2134 * linux-fork.c (linux_fork_mourn_inferior)
2135 (detach_checkpoint_command, info_checkpoints_command)
2136 (linux_fork_context): Update.
2137 (linux_fork_detach): Update.
2138 (class scoped_switch_fork_info): Update.
2139 (delete_checkpoint_command): Update.
2140 * infrun.c (follow_fork_inferior): Update.
2141 (follow_fork_inferior): Update.
2142 (proceed_after_vfork_done): Update.
2143 (handle_vfork_child_exec_or_exit): Update.
2144 (follow_exec): Update.
2145 (displaced_step_prepare_throw): Update.
2146 (displaced_step_restore): Update.
2147 (start_step_over): Update.
2148 (resume_1): Update.
2149 (clear_proceed_status_thread): Update.
2150 (proceed): Update.
2151 (print_target_wait_results): Update.
2152 (do_target_wait): Update.
2153 (context_switch): Update.
2154 (stop_all_threads): Update.
2155 (restart_threads): Update.
2156 (finish_step_over): Update.
2157 (handle_signal_stop): Update.
2158 (switch_back_to_stepped_thread): Update.
2159 (keep_going_pass_signal): Update.
2160 (print_exited_reason): Update.
2161 (normal_stop): Update.
2162 * inferior.c (inferior_pid_to_str): Change return type.
2163 (print_selected_inferior): Update.
2164 (add_inferior): Update.
2165 (detach_inferior): Update.
2166 * dummy-frame.c (fprint_dummy_frames): Update.
2167 * dcache.c (dcache_info_1): Update.
2168 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
2169 (btrace_fetch, btrace_clear): Update.
2170 * linux-tdep.c (linux_core_pid_to_str): Change return type.
2171 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
2172 type.
2173 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
2174 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
2175 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
2176 * gdbarch.c, gdbarch.h: Rebuild.
2177 * gdbarch.sh (core_pid_to_str): Change return type.
2178 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
2179 return type.
2180 (windows_nat_target::pid_to_str): Change return type.
2181 (windows_delete_thread): Update.
2182 (windows_nat_target::attach): Update.
2183 (windows_nat_target::files_info): Update.
2184 * target-delegates.c: Rebuild.
2185 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
2186 return type.
2187 (sol_thread_target::pid_to_str): Change return type.
2188 * remote.c (class remote_target) <pid_to_str>: Change return
2189 type.
2190 (remote_target::pid_to_str): Change return type.
2191 (extended_remote_target::attach, remote_target::remote_stop_ns)
2192 (remote_target::remote_notif_remove_queued_reply)
2193 (remote_target::push_stop_reply, remote_target::disable_btrace):
2194 Update.
2195 (extended_remote_target::attach): Update.
2196 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
2197 type.
2198 (gdbsim_target::pid_to_str): Change return type.
2199 * ravenscar-thread.c (struct ravenscar_thread_target)
2200 <pid_to_str>: Change return type.
2201 (ravenscar_thread_target::pid_to_str): Change return type.
2202 * procfs.c (class procfs_target) <pid_to_str>: Change return
2203 type.
2204 (procfs_target::pid_to_str): Change return type.
2205 (procfs_target::attach): Update.
2206 (procfs_target::detach): Update.
2207 (procfs_target::fetch_registers): Update.
2208 (procfs_target::store_registers): Update.
2209 (procfs_target::wait): Update.
2210 (procfs_target::files_info): Update.
2211 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
2212 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
2213 return type.
2214 (nto_procfs_target::pid_to_str): Change return type.
2215 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
2216 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
2217 return type.
2218 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
2219 (exit_lwp): Update.
2220 (attach_proc_task_lwp_callback, get_detach_signal)
2221 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
2222 (linux_nat_target::resume, wait_lwp, stop_callback)
2223 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
2224 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
2225 (linux_nat_wait_1, resume_stopped_resumed_lwps)
2226 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
2227 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
2228 type.
2229 (inf_ptrace_target::attach): Update.
2230 (inf_ptrace_target::files_info): Update.
2231 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
2232 type.
2233 (go32_nat_target::pid_to_str): Change return type.
2234 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
2235 (gnu_nat_target::wait): Update.
2236 (gnu_nat_target::wait): Update.
2237 (gnu_nat_target::resume): Update.
2238 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
2239 (fbsd_nat_target::wait): Update.
2240 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
2241 type.
2242 (darwin_nat_target::attach): Update.
2243 * corelow.c (class core_target) <pid_to_str>: Change return type.
2244 (core_target::pid_to_str): Change return type.
2245 * target.c (normal_pid_to_str): Change return type.
2246 (default_pid_to_str): Likewise.
2247 (target_pid_to_str): Change return type.
2248 (target_translate_tls_address): Update.
2249 (target_announce_detach): Update.
2250 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
2251 return type.
2252 (bsd_uthread_target::pid_to_str): Change return type.
2253 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
2254 type.
2255 (bsd_kvm_target::pid_to_str): Change return type.
2256 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
2257 return type.
2258 (aix_thread_target::pid_to_str): Change return type.
2259 * target.h (struct target_ops) <pid_to_str>: Change return type.
2260 (target_pid_to_str, normal_pid_to_str): Likewise.
2261 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
2262 type.
2263 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
2264 type.
2265 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
2266 return type.
2267 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
2268 type.
2269 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
2270 type.
2271 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
2272 return type.
2273
22742019-03-13 Simon Marchi <simon.marchi@ericsson.com>
2275
2276 * NEWS: Mention that the new default MI version is 3. Mention
2277 changes to the output of commands and events that deal with
2278 multi-location breakpoints.
2279 * breakpoint.c: Include "mi/mi-out.h".
2280 (print_one_breakpoint): Change output syntax if using MI version
2281 >= 3.
2282 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
2283 New.
2284 (mi_multi_location_breakpoint_output_fixed): New.
2285 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
2286 (mi_cmd_fix_multi_location_breakpoint_output): New.
2287 (mi_multi_location_breakpoint_output_fixed): New.
2288 * mi/mi-cmds.c (mi_cmds): Register command
2289 -fix-multi-location-breakpoint-output.
2290 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
2291 interpreter "mi".
2292
22932019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2294
2295 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
2296 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
2297 instantiate mi_ui_out based on interpreter name.
2298 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
2299 * mi/mi-main.c (mi_load_progress): Likewise.
2300
23012019-03-12 John Baldwin <jhb@FreeBSD.org>
2302
2303 * NEWS: Combine separate "New targets" sections for 8.3.
2304
23052019-03-12 John Baldwin <jhb@FreeBSD.org>
2306
2307 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
2308 (ppcfbsd_init_abi): Install gdbarch
2309 "fetch_tls_load_module_address" and "get_thread_local_address"
2310 methods.
2311
23122019-03-12 John Baldwin <jhb@FreeBSD.org>
2313
2314 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
2315 (riscv_fbsd_init_abi): Install gdbarch
2316 "fetch_tls_load_module_address" and "get_thread_local_address"
2317 methods.
2318
23192019-03-12 John Baldwin <jhb@FreeBSD.org>
2320
2321 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
2322 (i386fbsd_init_abi): Install gdbarch
2323 "fetch_tls_load_module_address" and "get_thread_local_address"
2324 methods.
2325
23262019-03-12 John Baldwin <jhb@FreeBSD.org>
2327
2328 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
2329 (amd64fbsd_init_abi): Install gdbarch
2330 "fetch_tls_load_module_address" and "get_thread_local_address"
2331 methods.
2332
23332019-03-12 John Baldwin <jhb@FreeBSD.org>
2334
2335 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
2336 (struct fbsd_pspace_data): New type.
2337 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
2338 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
2339 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
2340 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
2341 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
2342
23432019-03-12 John Baldwin <jhb@FreeBSD.org>
2344
2345 * gdbtypes.c (lookup_struct_elt): New function.
2346 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
2347 * gdbtypes.h (struct struct_elt): New type.
2348 (lookup_struct_elt): New prototype.
2349
23502019-03-12 John Baldwin <jhb@FreeBSD.org>
2351
2352 * gdbtypes.c (lookup_struct_elt_type): Update comment and
2353 remove disabled code block.
2354
23552019-03-12 John Baldwin <jhb@FreeBSD.org>
2356
2357 * gdbarch.sh (get_thread_local_address): New method.
2358 * gdbarch.h, gdbarch.c: Regenerate.
2359 * target.c (target_translate_tls_address): Use
2360 gdbarch_get_thread_local_address if present instead of
2361 target::get_thread_local_address.
2362
23632019-03-12 John Baldwin <jhb@FreeBSD.org>
2364
2365 * target.h (target::get_thread_local_address): Update comment.
2366
23672019-03-12 John Baldwin <jhb@FreeBSD.org>
2368
2369 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
2370 objfile->separate_debug_objfile_backlink if not NULL.
2371
23722019-03-12 John Baldwin <jhb@FreeBSD.org>
2373
2374 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
2375 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
2376 (amd64bsd_store_inferior_registers): Likewise.
2377 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
2378 Enable segment base registers.
2379 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
2380 PT_GETFSBASE and PT_GETGSBASE.
2381 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
2382 PT_SETGSBASE.
2383 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
2384 segment base registers.
2385 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
2386
23872019-03-12 John Baldwin <jhb@FreeBSD.org>
2388
2389 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
2390 Update calls to i386_target_description to add 'segments'
2391 parameter.
2392 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
2393 add segment base registers.
2394 * arch/i386.c (i386_create_target_description): Add 'segments'
2395 parameter to enable segment base registers.
2396 * arch/i386.h (i386_create_target_description): Likewise.
2397 * features/i386/32bit-segments.xml: New file.
2398 * features/i386/32bit-segments.c: Generate.
2399 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
2400 call to i386_target_description to add 'segments' parameter.
2401 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
2402 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
2403 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
2404 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
2405 if feature is present.
2406 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
2407 Add 'segments' parameter to call to i386_target_description.
2408 (i386_target_description): Add 'segments' parameter to enable
2409 segment base registers.
2410 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
2411 to call to i386_target_description.
2412 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
2413 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
2414 Define I386_NUM_REGS.
2415 (i386_target_description): Add 'segments' parameter to enable
2416 segment base registers.
2417
24182019-03-12 Eli Zaretskii <eliz@gnu.org>
2419
2420 PR/24325
2421 * source-cache.c: #undef open and close, to avoid unresolved
2422 externals during linking.
2423
24242019-03-12 Tom Tromey <tromey@adacore.com>
2425
2426 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
2427 const. Add initializers.
2428 (_initialize_remote): Don't initialize ptid globals.
2429
24302019-03-12 Pedro Alves <palves@redhat.com>
2431
2432 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
2433
24342019-03-12 Pedro Alves <palves@redhat.com>
2435
2436 * cp-name-parser.y (main): Remove unused 'len' variable.
2437
24382019-03-12 Tom Tromey <tromey@adacore.com>
2439
2440 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
2441 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
2442
24432019-03-12 Tom Tromey <tromey@adacore.com>
2444
2445 * linux-nat.c (iterate_over_lwps): Update.
2446 (stop_callback): Remove parameter.
2447 (stop_wait_callback, detach_callback, resume_set_callback)
2448 (select_singlestep_lwp_callback, set_ignore_sigint)
2449 (status_callback, resumed_callback, resume_clear_callback)
2450 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
2451 data parameter.
2452 (linux_nat_target::detach, linux_nat_target::resume)
2453 (linux_stop_and_wait_all_lwps, select_event_lwp)
2454 (linux_nat_filter_event, linux_nat_wait_1)
2455 (linux_nat_target::kill, linux_nat_target::stop)
2456 (linux_nat_target::stop): Update.
2457 (linux_nat_resume_callback): Change type.
2458 (resume_stopped_resumed_lwps, count_events_callback)
2459 (select_event_lwp_callback): Likewise.
2460 (linux_stop_lwp, linux_nat_stop_lwp): Update.
2461 * arm-linux-nat.c (struct update_registers_data): Remove.
2462 (update_registers_callback): Change type.
2463 (arm_linux_insert_hw_breakpoint1): Update.
2464 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
2465 parameter.
2466 (x86_linux_dr_set_addr): Update.
2467 (x86_linux_dr_set_control): Update.
2468 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
2469 (iterate_over_lwps): Use gdb::function_view.
2470 * nat/aarch64-linux-hw-point.c (struct
2471 aarch64_dr_update_callback_param): Remove.
2472 (debug_reg_change_callback): Change type.
2473 (aarch64_notify_debug_reg_change): Update.
2474 * s390-linux-nat.c (s390_refresh_per_info): Update.
2475
24762019-03-11 Tom Tromey <tromey@adacore.com>
2477
2478 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
2479 redundant assignment to "this_cu".
2480
24812019-03-08 Simon Marchi <simon.marchi@efficios.com>
2482
2483 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
2484
24852019-03-08 Simon Marchi <simon.marchi@efficios.com>
2486
2487 * gdbtypes.c (rank_one_type_parm_set): New function extracted
2488 from...
2489 (rank_one_type): ... this.
2490
24912019-03-08 Simon Marchi <simon.marchi@efficios.com>
2492
2493 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
2494 from...
2495 (rank_one_type): ... this.
2496
24972019-03-08 Simon Marchi <simon.marchi@efficios.com>
2498
2499 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
2500 from...
2501 (rank_one_type): ... this.
2502
25032019-03-08 Simon Marchi <simon.marchi@efficios.com>
2504
2505 * gdbtypes.c (rank_one_type_parm_float): New function extracted
2506 from...
2507 (rank_one_type): ... this.
2508
25092019-03-08 Simon Marchi <simon.marchi@efficios.com>
2510
2511 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
2512 from...
2513 (rank_one_type): ... this.
2514
25152019-03-08 Simon Marchi <simon.marchi@efficios.com>
2516
2517 * gdbtypes.c (rank_one_type_parm_range): New function extracted
2518 from...
2519 (rank_one_type): ... this.
2520
25212019-03-08 Simon Marchi <simon.marchi@efficios.com>
2522
2523 * gdbtypes.c (rank_one_type_parm_char): New function extracted
2524 from...
2525 (rank_one_type): ... this.
2526
25272019-03-08 Simon Marchi <simon.marchi@efficios.com>
2528
2529 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
2530 from...
2531 (rank_one_type): ... this.
2532
25332019-03-08 Simon Marchi <simon.marchi@efficios.com>
2534
2535 * gdbtypes.c (rank_one_type_parm_int): New function extracted
2536 from...
2537 (rank_one_type): ... this.
2538
25392019-03-08 Simon Marchi <simon.marchi@efficios.com>
2540
2541 * gdbtypes.c (rank_one_type_parm_func): New function extracted
2542 from...
2543 (rank_one_type): ... this.
2544
25452019-03-08 Simon Marchi <simon.marchi@efficios.com>
2546
2547 * gdbtypes.c (rank_one_type_parm_array): New function extracted
2548 from...
2549 (rank_one_type): ... this.
2550
25512019-03-08 Simon Marchi <simon.marchi@efficios.com>
2552
2553 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
2554 from...
2555 (rank_one_type): ... this.
2556
25572019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2558
2559 * inferior.c (initialize_inferiors): Ensure 'help set/show print
2560 inferior-events' shows the example events.
2561
25622019-03-08 Eli Zaretskii <eliz@gnu.org>
2563
2564 Support styling on native MS-Windows console
2565
2566 PR/24315
2567 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
2568 on MS-Windows if $TERM is not defined.
2569
2570 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
2571
2572 * posix-hdep.c (gdb_console_fputs):
2573 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
2574 functions.
2575 * ui-file.h (gdb_console_fputs): Add prototype.
2576
2577 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
2578 back to fputs only if the former returns zero.
2579
25802019-03-07 Tom Tromey <tom@tromey.com>
2581
2582 * symmisc.c (print_symbol_bcache_statistics): Update.
2583 (print_objfile_statistics): Update.
2584 * symfile.c (allocate_symtab): Update.
2585 * stabsread.c: Don't include bcache.h.
2586 * psymtab.h (struct psymbol_bcache): Don't declare.
2587 (class psymtab_storage) <psymbol_cache>: Now a bcache.
2588 (psymbol_bcache_init, psymbol_bcache_free)
2589 (psymbol_bcache_get_bcache): Don't declare.
2590 * psymtab.c (struct psymbol_bcache): Remove.
2591 (psymtab_storage::psymtab_storage): Update.
2592 (psymtab_storage::~psymtab_storage): Update.
2593 (psymbol_bcache_init, psymbol_bcache_free)
2594 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
2595 (add_psymbol_to_bcache): Update.
2596 (allocate_psymtab): Update.
2597 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
2598 macro_cache>: No longer pointers.
2599 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
2600 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
2601 * macrotab.c (macro_bcache): Update.
2602 * macroexp.c: Don't include bcache.h.
2603 * gdbtypes.c (check_types_worklist): Update.
2604 (types_deeply_equal): Remove TRY/CATCH. Update.
2605 * elfread.c (elf_symtab_read): Update.
2606 * dwarf2read.c: Don't include bcache.h.
2607 * buildsym.c (buildsym_compunit::get_macro_table): Update.
2608 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
2609 (print_bcache_statistics, bcache_memory_used): Don't declare.
2610 (struct bcache): Move from bcache.c. Add constructor, destructor,
2611 methods. Rename all data members.
2612 * bcache.c (struct bcache): Move to bcache.h.
2613 (bcache::expand_hash_table): Rename from expand_hash_table.
2614 (bcache): Remove.
2615 (bcache::insert): Rename from bcache_full.
2616 (bcache::compare): Rename from bcache_compare.
2617 (bcache_xmalloc): Remove.
2618 (bcache::~bcache): Rename from bcache_xfree.
2619 (bcache::print_statistics): Rename from print_bcache_statistics.
2620 (bcache::memory_used): Rename from bcache_memory_used.
2621
26222019-03-07 Pedro Alves <palves@redhat.com>
2623
2624 * infrun.c (normal_stop): Also check for
2625 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
2626
26272019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
2628
2629 * f-lang.c (value_from_host_double): Moved to...
2630 * value.c (value_from_host_double): ...here.
2631 * value.h (value_from_host_double): Declare.
2632 * guile/scm-math.c (vlscm_convert_typed_number): Use
2633 value_from_host_double.
2634 (vlscm_convert_number): Likewise.
2635 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
2636 * python/py-value.c (convert_value_from_python): Likewise.
2637
26382019-03-06 Tom Tromey <tom@tromey.com>
2639
2640 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
2641
26422019-03-06 Tom Tromey <tom@tromey.com>
2643
2644 * utils.h (free_current_contents): Don't declare.
2645 * utils.c (free_current_contents): Remove.
2646
26472019-03-06 Tom Tromey <tom@tromey.com>
2648
2649 * top.c (quit_force): Update.
2650 * main.c (captured_command_loop): Update.
2651 * common/new-op.c (operator new): Update.
2652 * common/common-exceptions.c (struct catcher)
2653 <save_cleanup_chain>: Remove member.
2654 (exceptions_state_mc_init): Update.
2655 (exception_try_scope_entry): Return nullptr.
2656 (exception_try_scope_exit, exception_rethrow)
2657 (throw_exception_sjlj, throw_exception_cxx): Update.
2658 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
2659 (all_cleanups, do_cleanups, discard_cleanups)
2660 (discard_final_cleanups, save_cleanups, save_final_cleanups)
2661 (restore_cleanups, restore_final_cleanups): Don't declare.
2662 (do_final_cleanups): Remove parameter.
2663 * common/cleanups.c (cleanup_chain, make_cleanup)
2664 (make_cleanup_dtor, all_cleanups, do_cleanups)
2665 (discard_my_cleanups, discard_cleanups)
2666 (discard_final_cleanups, save_my_cleanups, save_cleanups)
2667 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
2668 (null_cleanup): Remove.
2669 (do_final_cleanups): Remove parameter.
2670
26712019-03-06 Tom Tromey <tom@tromey.com>
2672
2673 * remote.c (remote_target::remote_parse_stop_reply): Use
2674 unique_xmalloc_ptr.
2675
26762019-03-06 Tom Tromey <tom@tromey.com>
2677
2678 * stabsread.c (struct stabs_field_info): Rename from field_info.
2679 <list, fnlist>: Add initializers.
2680 <obstack>: New member.
2681 (read_member_functions, read_struct_fields, read_baseclasses):
2682 Allocate on obstack. Don't use cleanups.
2683 (read_one_struct_field, read_member_functions, read_struct_fields)
2684 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
2685 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
2686 (read_struct_type): Update.
2687
26882019-03-06 Tom Tromey <tom@tromey.com>
2689
2690 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
2691 * common/filestuff.h (make_cleanup_close): Don't declare.
2692 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
2693 Remove.
2694
26952019-03-06 Tom Tromey <tom@tromey.com>
2696
2697 * solib-aix.c: Use make_scope_exit.
2698
26992019-03-06 Tom Tromey <tom@tromey.com>
2700
2701 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
2702 Use make_scope_exit.
2703
27042019-03-06 Tom Tromey <tom@tromey.com>
2705
2706 * solib-svr4.c (disable_probes_interface): Remove parameter.
2707 (svr4_handle_solib_event): Use make_scope_exit.
2708
27092019-03-06 Tom Tromey <tom@tromey.com>
2710
2711 * remote.c (struct stop_reply_deleter): Remove.
2712 (stop_reply_up): Update.
2713 (struct stop_reply): Derive from notif_event. Don't typedef.
2714 <regcache>: Now a std::vector.
2715 (stop_reply_xfree): Remove.
2716 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
2717 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
2718 (remote_target::discard_pending_stop_replies): Use delete.
2719 (remote_target::remote_parse_stop_reply): Update.
2720 (remote_target::process_stop_reply): Update.
2721 * remote-notif.h (struct notif_event): Add virtual destructor.
2722 Remove "dtr" member.
2723 (struct notif_client) <alloc_event>: Return a unique_ptr.
2724 (notif_event_xfree): Don't declare.
2725 (notif_event_up): New typedef.
2726 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
2727 (notif_event_xfree, do_notif_event_xfree): Remove.
2728 (remote_notif_state_xfree): Update.
2729
27302019-03-06 Tom Tromey <tom@tromey.com>
2731
2732 * infrun.c (displaced_step_clear_cleanup): Now a
2733 forward_scope_exit type.
2734 (displaced_step_prepare_throw): Update.
2735 (displaced_step_fixup): Update.
2736
27372019-03-06 Tom Tromey <tom@tromey.com>
2738
2739 * inferior.h (class inferior): Update comment.
2740 * gdbthread.h (class thread_info): Update comment.
2741
27422019-03-06 Joel Brobecker <brobecker@adacore.com>
2743 Tom Tromey <tom@tromey.com>
2744
2745 * stabsread.h (struct stab_section_list): Remove.
2746 (coffstab_build_psymtabs): Update.
2747 * dbxread.c (symbuf_sections): Now a std::vector.
2748 (sect_idx): New global.
2749 (fill_symbuf): Update.
2750 (coffstab_build_psymtabs): Change type of stabsects parameter.
2751 Update.
2752 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
2753 std::vector.
2754 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
2755 (coff_locate_sections): Update.
2756 (coff_symfile_read): Remove cleanups. Update.
2757 (init_stringtab): Add storage parameter.
2758 (free_stringtab, free_stringtab_cleanup): Remove.
2759 (init_lineno): Add storage parameter.
2760 (free_linetab, free_linetab_cleanup): Remove.
2761
27622019-03-06 Pedro Alves <palves@redhat.com>
2763
2764 * linux-fork.c (fork_info::clobber_regs): Delete.
2765 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
2766 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
2767 comment. Adjust.
2768 (scoped_switch_fork_info::scoped_switch_fork_info)
2769 (checkpoint_command, linux_fork_context): Adjust
2770 fork_save_infrun_state calls.
2771
27722019-03-06 Pedro Alves <palves@redhat.com>
2773
2774 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
2775 (inf_has_multiple_threads): Return 'bool' and rewrite using
2776 inferior_info::threads().
2777
27782019-03-06 Pedro Alves <palves@redhat.com>
2779
2780 * linux-fork.c: Include <list>.
2781 (fork_list): Now a std::list instance.
2782 (fork_info): Add ctor, dtor, and in-class initialize all fields.
2783 (forks_exist_p, find_last_fork): Adjust.
2784 (new_fork): Delete.
2785 (one_fork_p): New.
2786 (add_fork): Adjust.
2787 (free_fork): Delete, folded into fork_info::~fork_info().
2788 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
2789 Adjust.
2790 (init_fork_list): Delete.
2791 (linux_fork_killall, linux_fork_mourn_inferior)
2792 (linux_fork_detach, info_checkpoints_command): Adjust.
2793 (_initialize_linux_fork): No longer call init_fork_list.
2794
27952019-03-06 Pedro Alves <palves@redhat.com>
2796
2797 * linux-fork.c (new_fork): New, split out of ...
2798 (add_fork): ... this. Return void. Move "first fork" special
2799 case from here, to ...
2800 (checkpoint_command): ... here.
2801 * linux-linux.h (add_fork): Return void.
2802
28032019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2804
2805 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
2806
28072019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2808 Chris January <chris.january@arm.com>
2809 David Lecomber <david.lecomber@arm.com>
2810
2811 * f-exp.y: New token, UNOP_INTRINSIC.
2812 (exp): New pattern using UNOP_INTRINSIC token.
2813 (f77_keywords): Add 'abs' keyword.
2814 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
2815 (value_from_host_double): New function.
2816 (evaluate_subexp_f): Support UNOP_ABS.
2817
28182019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2819
2820 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
2821 types.
2822
28232019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2824
2825 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
2826 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
2827 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
2828
28292019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2830
2831 * f-exp.y (convert_to_kind_type): Handle more type kinds.
2832
28332019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2834 Chris January <chris.january@arm.com>
2835
2836 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
2837 * f-exp.y: Define 'KIND' token.
2838 (exp): New pattern for KIND expressions.
2839 (ptype): Handle types with a kind extension.
2840 (direct_abs_decl): Extend to spot kind extensions.
2841 (f77_keywords): Add 'kind' to the list.
2842 (push_kind_type): New function.
2843 (convert_to_kind_type): New function.
2844 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
2845 * parse.c (operator_length_standard): Likewise.
2846 * parser-defs.h (enum type_pieces): Add tp_kind.
2847 * std-operator.def: Add UNOP_KIND.
2848
28492019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2850
2851 * f-exp.y (f_parse): Set yydebug.
2852
28532019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2854
2855 * f-lang.c (evaluate_subexp_f): New function.
2856 (exp_descriptor_f): New global.
2857 (f_language_defn): Use exp_descriptor_f instead of
2858 exp_descriptor_standard.
2859
28602019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2861
2862 * f-exp.y (struct token): Add comments.
2863 (dot_ops): Remove uppercase versions and the end marker.
2864 (f77_keywords): Likewise.
2865 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
2866 entries in the dot_ops array are case insensitive, and use
2867 strncasecmp to compare strings. Also some whitespace cleanup in
2868 this area. Similar for the f77_keywords array, except entries in
2869 this list might be case sensitive.
2870
28712019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2872
2873 * f-exp.y (struct f77_boolean_val): Add comments.
2874 (boolean_values): Remove uppercase versions, and end marker.
2875 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
2876 and use strncasecmp to achieve case insensitivity. Additionally,
2877 perform whitespace cleanup around this code.
2878
28792019-03-06 Tom Tromey <tromey@adacore.com>
2880
2881 * remote-sim.c (gdbsim_target_open): Use result of
2882 gdb_argv::release.
2883
28842019-03-06 Richard Bunt <richard.bunt@arm.com>
2885 Dirk Schubert <dirk.schubert@arm.com>
2886 Chris January <chris.january@arm.com>
2887
2888 * eval.c (evaluate_subexp_standard): Call Fortran argument
2889 wrapping logic.
2890 * f-lang.c (struct value): A value which can be passed into a
2891 Fortran function call.
2892 (fortran_argument_convert): Wrap Fortran arguments in a pointer
2893 where appropriate.
2894 (struct type): Value ready for a Fortran function call.
2895 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
2896 is needed.
2897 * f-lang.h (fortran_argument_convert): Declaration.
2898 (fortran_preserve_arg_pointer): Declaration.
2899 * infcall.c (value_arg_coerce): Call Fortran argument logic.
2900
29012019-03-05 Tom Tromey <tromey@adacore.com>
2902
2903 * python/py-prettyprint.c (print_string_repr): Remove #if.
2904 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
2905
29062019-03-05 Tom Tromey <tromey@adacore.com>
2907
2908 * target.c (the_dummy_target): Move later. Change type to
2909 "dummy_target".
2910 (initialize_targets): Don't initialize the_dummy_target.
2911
29122019-03-05 Tom Tromey <tromey@adacore.com>
2913
2914 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
2915 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
2916
29172019-03-05 Tom Tromey <tromey@adacore.com>
2918
2919 * windows-nat.c (windows_nat_target::attach)
2920 (windows_nat_target::detach): Don't call gdb_flush.
2921 * valprint.c (generic_val_print, val_print, val_print_string):
2922 Don't call gdb_flush.
2923 * utils.c (defaulted_query): Don't call gdb_flush.
2924 * typeprint.c (print_type_scalar): Don't call gdb_flush.
2925 * target.c (target_announce_detach): Don't call gdb_flush.
2926 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
2927 * remote.c (extended_remote_target::attach): Don't call
2928 gdb_flush.
2929 * procfs.c (procfs_target::detach): Don't call gdb_flush.
2930 * printcmd.c (do_examine): Don't call gdb_flush.
2931 (info_display_command): Don't call gdb_flush.
2932 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
2933 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
2934 * memattr.c (info_mem_command): Don't call gdb_flush.
2935 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
2936 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
2937 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
2938 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
2939 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
2940 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
2941 (gnu_nat_target::detach): Don't call gdb_flush.
2942 * f-valprint.c (f_val_print): Don't call gdb_flush.
2943 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
2944 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
2945 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
2946 gdb_flush.
2947 * c-valprint.c (c_val_print): Don't call gdb_flush.
2948 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
2949
29502019-03-05 Tom Tromey <tromey@adacore.com>
2951
2952 * varobj.c (update_dynamic_varobj_children): Update.
2953 (install_default_visualizer): Use reset, not release.
2954 * value.c (set_internalvar): Update.
2955 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
2956 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
2957 ATTRIBUTE_UNUSED_RESULT.
2958
29592019-03-05 Tom Tromey <tromey@adacore.com>
2960
2961 * remote.c (class scoped_remote_fd) <release>: Add
2962 ATTRIBUTE_UNUSED_RESULT.
2963
29642019-03-05 Tom Tromey <tromey@adacore.com>
2965
2966 * macroexp.c (struct macro_buffer) <release>: Add
2967 ATTRIBUTE_UNUSED_RESULT.
2968
29692019-03-05 Tom Tromey <tromey@adacore.com>
2970
2971 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
2972 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
2973 ATTRIBUTE_UNUSED_RESULT.
2974
29752019-03-05 Tom Tromey <tromey@adacore.com>
2976
2977 * common/scoped_fd.h (class scoped_fd) <release>: Add
2978 ATTRIBUTE_UNUSED_RESULT.
2979
29802019-03-05 Tom Tromey <tromey@adacore.com>
2981
2982 * parser-defs.h (struct parser_state) <release>: Add
2983 ATTRIBUTE_UNUSED_RESULT.
2984
29852019-03-05 Tom Tromey <tromey@adacore.com>
2986
2987 * utils.h (class gdb_argv) <release>: Add
2988 ATTRIBUTE_UNUSED_RESULT.
2989 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
2990
29912019-03-02 Eli Zaretskii <eliz@gnu.org>
2992
2993 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
2994 for-loop range, to avoid compiler warnings.
2995
2996 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
2997 avoid compiler warnings about unused variables.
2998
2999 * NEWS: Mention end of support for native debugging on MS-Windows
3000 before XP.
3001
3002 PR gdb/24292
3003 * common/netstuff.c:
3004 * gdbserver/gdbreplay.c
3005 * gdbserver/remote-utils.c:
3006 * ser-tcp.c:
3007 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
3008 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
3009 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
3010 'getaddrinfo' and 'freeaddrinfo' were not available before
3011 Windows XP, and mingw.org's MinGW headers by default define
3012 _WIN32_WINNT to 0x500.
3013
30142019-03-01 Gary Benson <gbenson@redhat.com>
3015
3016 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
3017
30182019-02-28 Brian Vandenberg <phantall@gmail.com>
3019 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3020
3021 PR gdb/8527
3022 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
3023 set_sigint_trap, clear_sigint_trap.
3024
30252019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3026
3027 * target.c (target_detach): Clear the regcache and the
3028 frame cache.
3029
30302019-02-27 Pedro Alves <palves@redhat.com>
3031
3032 * utils.c (set_screen_size): When we cap the height/width sizes,
3033 tweak the corresponding command variable to show "unlimited":
3034
30352019-02-27 Saagar Jha <saagar@saagarjha.com>
3036 Pedro Alves <palves@redhat.com>
3037
3038 * utils.c (set_screen_size): Reduce "infinite" rows and columns
3039 before calling rl_set_screen_size.
3040
30412019-02-27 Tom Tromey <tromey@adacore.com>
3042
3043 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
3044 define.
3045 * python/py-value.c: Remove Python 2.4 workaround.
3046 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
3047 workaround.
3048 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
3049 Python 2.4 workaround.
3050 * python/python-internal.h: Remove Python 2.4 comment.
3051 (Py_ssize_t): Don't define.
3052 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
3053 (gdb_Py_DECREF): Remove Python 2.4 workaround.
3054 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
3055 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
3056 * python/python.c (do_start_initialization): Remove Python 2.4
3057 workaround.
3058 * python/py-prettyprint.c (class dummy_python_frame): Remove.
3059 (print_children): Remove Python 2.4 workaround.
3060 * python/py-inferior.c (buffer_procs): Remove Python 2.4
3061 workaround.
3062 (CHARBUFFERPROC_NAME): Remove.
3063 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
3064 Python 2.4 workaround.
3065
30662019-02-27 Kevin Buettner <kevinb@redhat.com>
3067
3068 * NEWS: Note minimum Python version.
3069
30702019-02-27 Kevin Buettner <kevinb@redhat.com>
3071
3072 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
3073 code from these functions. Remove corresponding ifdefs. Use
3074 Py_buffer_up instead of explicit calls to PyBuffer_Release.
3075 Remove gotos and target of gotos.
3076 (infpy_search_memory): Likewise.
3077
30782019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3079
3080 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
3081 (hppa_gdbarch_init): Don't register deleted functions with
3082 gdbarch.
3083
30842019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3085
3086 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
3087 (h8300_unwind_sp): Delete.
3088 (h8300_dummy_id): Delete.
3089 (h8300_gdbarch_init): Don't register deleted functions with
3090 gdbarch.
3091
30922019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3093
3094 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
3095 (ft32_unwind_pc): Delete.
3096 (ft32_unwind_sp): Delete.
3097 (ft32_gdbarch_init): Don't register deleted functions with
3098 gdbarch.
3099
31002019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3101
3102 * gdb/frv-tdep.c (frv_dummy_id): Delete.
3103 (frv_unwind_pc): Delete.
3104 (frv_unwind_sp): Delete.
3105 (frv_gdbarch_init): Don't register deleted functions with
3106 gdbarch.
3107
31082019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3109
3110 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
3111 (riscv_unwind_pc): Delete.
3112 (riscv_unwind_sp): Delete.
3113 (riscv_gdbarch_init): Don't register deleted functions with
3114 gdbarch.
3115
31162019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3117
3118 * gdb/csky-tdep.c (csky_dummy_id): Delete.
3119 (csky_unwind_pc): Delete.
3120 (csky_unwind_sp): Delete.
3121 (csky_gdbarch_init): Don't register deleted functions with
3122 gdbarch.
3123
31242019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3125
3126 * gdb/cris-tdep.c (cris_dummy_id): Delete.
3127 (cris_unwind_pc): Delete.
3128 (cris_unwind_sp): Delete.
3129 (cris_gdbarch_init): Don't register deleted functions with
3130 gdbarch.
3131
31322019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3133
3134 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
3135 (bfin_unwind_pc): Delete.
3136 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
3137
31382019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3139
3140 * gdb/arm-tdep.c (arm_dummy_id): Delete.
3141 (arm_unwind_pc): Delete.
3142 (arm_unwind_sp): Delete.
3143 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
3144
31452019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3146
3147 * gdb/arc-tdep.c (arc_dummy_id): Delete.
3148 (arc_unwind_pc): Delete.
3149 (arc_unwind_sp): Delete.
3150 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
3151
31522019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3153
3154 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
3155 (alpha_unwind_pc): Delete.
3156 (alpha_gdbarch_init): Don't register deleted functions with
3157 gdbarch.
3158
31592019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3160
3161 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
3162 (aarch64_unwind_pc): Delete.
3163 (aarch64_unwind_sp): Delete.
3164 (aarch64_gdbarch_init): Don't register deleted functions with
3165 gdbarch.
3166
31672019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3168
3169 * gdbtypes.c (type_align): Don't consider static members when
3170 computing structure alignment.
3171
31722019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3173
3174 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
3175 return 0 for other types.
3176 * arch-utils.c (default_type_align): Always return 0.
3177 * gdbarch.h: Regenerate.
3178 * gdbarch.sh (type_align): Extend comment.
3179 * gdbtypes.c (type_align): Add additional comments, always call
3180 gdbarch_type_align before applying the default rules.
3181 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
3182 generic code will then apply a suitable default.
3183 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
3184 types, return 0 for other types.
3185
31862019-02-27 Joel Brobecker <brobecker@adacore.com>
3187
3188 * NEWS: Create a new section for the next release branch.
3189 Rename the section of the current branch, now that it has
3190 been cut.
3191
31922019-02-27 Joel Brobecker <brobecker@adacore.com>
3193
3194 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
3195 * version.in: Bump version to 8.3.50.DATE-git.
3196
31972019-02-26 Simon Marchi <simon.marchi@efficios.com>
3198
3199 * aix-thread.c (ptid_cmp): Remove unused variable.
3200 (get_signaled_thread): Likewise.
3201 (store_regs_user_thread): Likewise.
3202 (store_regs_kernel_thread): Likewise.
3203 (fetch_regs_kernel_thread): Remove shadowed variable.
3204
32052019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
3206
3207 * features/riscv/32bit-cpu.xml: Add register numbers.
3208 * features/riscv/32bit-fpu.c: Regenerate.
3209 * features/riscv/32bit-fpu.xml: Add register numbers.
3210 * features/riscv/64bit-cpu.xml: Add register numbers.
3211 * features/riscv/64bit-fpu.c: Regenerate.
3212 * features/riscv/64bit-fpu.xml: Add register numbers.
3213
32142019-02-26 Kevin Buettner <kevinb@redhat.com>
3215
3216 * NEWS: Mention two argument form of gdb.Value constructor.
3217 * python/py-value.c (convert_buffer_and_type_to_value): New
3218 function.
3219 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
3220 Add support for handling an optional second argument. Call
3221 convert_buffer_and_type_to_value as appropriate.
3222 * python/python-internal.h (Py_buffer_deleter): New struct.
3223 (Py_buffer_up): New typedef.
3224
32252019-02-25 John Baldwin <jhb@FreeBSD.org>
3226
3227 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
3228 instead of releasing ownership.
3229
32302019-02-25 Jordan Rupprecht <rupprecht@google.com>
3231
3232 * dwarf2read.c (open_and_init_dwp_file): Call
3233 elf_numsections instead of bfd_count_sections to initialize
3234 dwp_file->num_sections.
3235
32362019-02-25 Tom Tromey <tromey@adacore.com>
3237
3238 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
3239
32402019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
3241
3242 * gcore.in: Add '--readnever' option when invoking GDB.
3243
32442019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3245
3246 * MAINTAINERS: Update my email address.
3247
32482019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3249
3250 * build-id.c (build_id_to_debug_bfd_1): New function.
3251 (build_id_to_debug_bfd): Look for separate debug file in
3252 sysroot.
3253
32542019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
3255
3256 * gdbarch.sh: Update the copyright year range that is placed into
3257 generated files.
3258
32592019-02-22 Keith Seitz <keiths@redhat.com>
3260
3261 PR symtab/23853
3262 * linespec.c (create_sals_line_offset): Search for the default
3263 symtab's filename instead of its fullname.
3264
32652019-02-21 Alan Hayward <alan.hayward@arm.com>
3266
3267 * NEWS: Update style defaults.
3268
32692019-02-21 Alan Hayward <alan.hayward@arm.com>
3270
3271 * main.c (captured_main_1): Disable styling in batch mode.
3272
32732019-02-20 Tom Tromey <tom@tromey.com>
3274
3275 * symtab.c (symtab_symbol_info): Fix typos.
3276
32772019-02-20 Tom Tromey <tromey@adacore.com>
3278
3279 * findcmd.c (_initialize_mem_search): Use upper case for
3280 metasyntactic variables.
3281
32822019-02-20 Alan Hayward <alan.hayward@arm.com>
3283
3284 * aarch64-tdep.c (aarch64_add_reggroups): New function.
3285 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
3286
32872019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
3288
3289 * top.h (source_file_name): Change to std::string.
3290 * top.c (source_file_name): Likewise.
3291 (command_line_input): Adjust.
3292 * cli/cli-script.c (script_from_file): Adjust.
3293
32942019-02-19 Tom Tromey <tromey@adacore.com>
3295
3296 * ravenscar-thread.c
3297 (ravenscar_thread_target::update_thread_list): Don't call
3298 ada_build_task_list.
3299 * ada-lang.h (ada_build_task_list): Don't declare.
3300 * ada-tasks.c (struct ada_tasks_inferior_data)
3301 <task_list_valid_p>: Now bool.
3302 (read_known_tasks, ada_task_list_changed)
3303 (ada_tasks_invalidate_inferior_data): Update.
3304 (read_known_tasks_array): Return bool.
3305 (read_known_tasks_list): Likewise.
3306 (read_known_tasks): Return void.
3307 (ada_build_task_list): Now static.
3308
33092019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
3310
3311 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
3312 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
3313
33142019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3315
3316 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
3317 variant for ada_tasks_pspace_data_handle and
3318 ada_tasks_inferior_data_handle.
3319 (ada_tasks_pspace_data_cleanup): New function.
3320 (ada_tasks_inferior_data_cleanup): New function.
3321
33222019-02-17 Tom Tromey <tom@tromey.com>
3323
3324 * macrotab.h (macro_source_fullname): Return a std::string.
3325 * macrotab.c (macro_include, check_for_redefinition)
3326 (macro_undef, macro_lookup_definition, foreach_macro)
3327 (foreach_macro_in_scope): Update.
3328 (macro_source_fullname): Return a std::string.
3329 * macrocmd.c (show_pp_source_pos): Update.
3330
33312019-02-17 Tom Tromey <tom@tromey.com>
3332
3333 * macrocmd.c (show_pp_source_pos): Style the file names.
3334
33352019-02-17 Tom Tromey <tom@tromey.com>
3336
3337 PR tui/24197:
3338 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
3339
33402019-02-17 Tom Tromey <tom@tromey.com>
3341
3342 * ada-lang.c (user_select_syms): Use filtered printing.
3343 * utils.c (wrap_style): New global.
3344 (desired_style): Remove.
3345 (emit_style_escape): Add stream parameter.
3346 (set_output_style, reset_terminal_style, prompt_for_continue):
3347 Update.
3348 (flush_wrap_buffer): Only flush gdb_stdout.
3349 (wrap_here): Set wrap_style.
3350 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
3351 treat escape sequences as a character. Change when wrap buffer is
3352 flushed.
3353 (fputs_styled): Do not set the output style when the default is
3354 requested.
3355 * ui-style.h (struct ui_file_style) <is_default>: New method.
3356 * source.c (print_source_lines_base): Emit escape sequences in one
3357 piece.
3358
33592019-02-17 Joel Brobecker <brobecker@adacore.com>
3360
3361 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
3362 integers and enumeration types.
3363
33642019-02-17 Joel Brobecker <brobecker@adacore.com>
3365
3366 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
3367 instead of lookup_symbol_in_language
3368 (do_exact_match): New function.
3369 (ada_get_symbol_name_matcher): Return do_exact_match when
3370 doing a verbatim match.
3371
33722019-02-15 Tom Tromey <tromey@adacore.com>
3373
3374 * ravenscar-thread.c (ravenscar_thread_target::resume)
3375 (ravenscar_thread_target::wait): Special case wildcard requests.
3376
33772019-02-15 Tom Tromey <tromey@adacore.com>
3378
3379 * ravenscar-thread.c (base_ptid): Remove.
3380 (struct ravenscar_thread_target) <close>: New method.
3381 <m_base_ptid>: New member.
3382 <update_inferior_ptid, active_task, task_is_currently_active,
3383 runtime_initialized>: Declare methods.
3384 <ravenscar_thread_target>: Add constructor.
3385 (ravenscar_thread_target::task_is_currently_active)
3386 (ravenscar_thread_target::update_inferior_ptid)
3387 (ravenscar_runtime_initialized): Rename. Now methods.
3388 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
3389 (ravenscar_thread_target::update_thread_list): Update.
3390 (ravenscar_thread_target::active_task): Now method.
3391 (ravenscar_thread_target::store_registers)
3392 (ravenscar_thread_target::prepare_to_store)
3393 (ravenscar_thread_target::prepare_to_store)
3394 (ravenscar_thread_target::mourn_inferior): Update.
3395 (ravenscar_inferior_created): Use "new" to create target.
3396 (ravenscar_thread_target::get_ada_task_ptid): Update.
3397 (_initialize_ravenscar): Don't initialize base_ptid.
3398 (ravenscar_ops): Remove global.
3399
34002019-02-15 Tom Tromey <tromey@adacore.com>
3401
3402 * target.h (push_target): Declare new overload.
3403 * target.c (push_target): New overload, taking an rvalue reference.
3404 * remote.c (remote_target::open_1): Use push_target overload.
3405 * corelow.c (core_target_open): Use push_target overload.
3406
34072019-02-15 Tom Tromey <tromey@adacore.com>
3408
3409 * ravenscar-thread.c (is_ravenscar_task)
3410 (ravenscar_task_is_currently_active): Return bool.
3411 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
3412 (_initialize_ravenscar): Remove "(void)".
3413 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
3414 Return bool.
3415
34162019-02-15 Tom Tromey <tromey@adacore.com>
3417
3418 * ravenscar-thread.c (ravenscar_runtime_initializer)
3419 (has_ravenscar_runtime, get_running_thread_id)
3420 (ravenscar_thread_target::resume): Fix indentation.
3421
34222019-02-15 Tom Tromey <tromey@adacore.com>
3423
3424 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
3425 from ravenscar_arch_ops.
3426 (sparc_ravenscar_ops::fetch_registers)
3427 (sparc_ravenscar_ops::store_registers): Now methods.
3428 (sparc_ravenscar_prepare_to_store): Remove.
3429 (sparc_ravenscar_ops): Redefine.
3430 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
3431 methods and destructor. Remove members.
3432 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
3433 (ravenscar_thread_target::store_registers)
3434 (ravenscar_thread_target::prepare_to_store): Update.
3435 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
3436 Remove.
3437 (struct ppc_ravenscar_powerpc_ops): Derive from
3438 ravenscar_arch_ops.
3439 (ppc_ravenscar_powerpc_ops::fetch_registers)
3440 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
3441 (ppc_ravenscar_powerpc_ops): Redefine.
3442 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
3443 (ppc_ravenscar_e500_ops::fetch_registers)
3444 (ppc_ravenscar_e500_ops::store_registers): Now methods.
3445 (ppc_ravenscar_e500_ops): Redefine.
3446 * aarch64-ravenscar-thread.c
3447 (aarch64_ravenscar_generic_prepare_to_store): Remove.
3448 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
3449 (aarch64_ravenscar_fetch_registers)
3450 (aarch64_ravenscar_store_registers): Now methods.
3451 (aarch64_ravenscar_ops): Redefine.
3452
34532019-02-15 Tom Tromey <tromey@adacore.com>
3454
3455 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
3456 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3457 (ravenscar_thread_target::stopped_by_watchpoint)
3458 (ravenscar_thread_target::stopped_data_address)
3459 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
3460
34612019-02-15 Tom Tromey <tromey@adacore.com>
3462
3463 * ravenscar-thread.c: Fix some typos.
3464
34652019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3466 Tom Tromey <tromey@adacore.com>
3467
3468 * ada-lang.c (ada_exception_sal): Change addr_string to a
3469 std::string.
3470 (create_ada_exception_catchpoint): Update.
3471
34722019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3473 Tom Tromey <tromey@adacore.com>
3474
3475 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
3476 (bp_location_ops): Remove.
3477 (base_breakpoint_allocate_location): Update.
3478 (free_bp_location): Update.
3479 * ada-lang.c (class ada_catchpoint_location)
3480 <ada_catchpoint_location>: Remove ops parameter.
3481 (ada_catchpoint_location_dtor): Remove.
3482 (ada_catchpoint_location_ops): Remove.
3483 (allocate_location_exception): Update.
3484 * breakpoint.h (struct bp_location_ops): Remove.
3485 (class bp_location) <bp_location>: Remove bp_location_ops
3486 parameter.
3487 <~bp_location>: Add destructor.
3488 <ops>: Remove.
3489
34902019-02-14 Thomas Schwinge <thomas@codesourcery.com>
3491 Pedro Alves <palves@redhat.com>
3492
3493 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
3494 'PATH_MAX'.
3495
34962019-02-14 David Michael <fedora.dm0@gmail.com>
3497 Samuel Thibault <samuel.thibault@gnu.org>
3498 Thomas Schwinge <thomas@codesourcery.com>
3499
3500 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
3501 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
3502
35032019-02-14 Thomas Schwinge <thomas@codesourcery.com>
3504
3505 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
3506 (check_empty): Use "const char *".
3507
3508 * gnu-nat.c (gnu_nat_target::detach): Instead of
3509 'detach_inferior (pid)' call
3510 'detach_inferior (find_inferior_pid (pid))'.
3511
3512 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
3513 'nat/fork-inferior.o'.
3514 * gnu-nat.c: #include "nat/fork-inferior.h".
3515
3516 * gnu-nat.c (gnu_nat_target::detach): Instead of
3517 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
3518 * gnu-nat.h: #include "inf-child.h".
3519 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
3520 'i386_gnu_nat_target::fetch_registers'.
3521 (gnu_store_registers): Rename/move to
3522 'i386_gnu_nat_target::store_registers'.
3523
3524 * config/i386/nm-i386gnu.h: Don't "#include" any files.
3525 * gnu-nat.h (mach_thread_info): New function.
3526 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
3527
3528 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
3529
35302019-02-14 Frederic Konrad <konrad@adacore.com>
3531
3532 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
3533
35342019-02-14 Joel Brobecker <brobecker@adacore.com>
3535
3536 * windows-nat.c (windows_add_thread): Add new parameter
3537 "main_thread_p" with default value set to false. Update
3538 function documentation as well as all callers.
3539 (windows_delete_thread): Likewise.
3540 (fake_create_process): Update call to windows_add_thread.
3541 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
3542 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
3543 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
3544 call to windows_delete_thread.
3545
35462019-02-13 Simon Marchi <simon.marchi@ericsson.com>
3547
3548 * MAINTAINERS: Add Andrew Burgess as global maintainer.
3549
35502019-02-12 John Baldwin <jhb@FreeBSD.org>
3551
3552 * symfile.c (find_separate_debug_file): Use canonical path of
3553 sysroot with child_path instead of gdb_sysroot if it is valid.
3554
35552019-02-12 John Baldwin <jhb@FreeBSD.org>
3556
3557 * symfile.c (find_separate_debug_file): Use child_path to
3558 determine if an object file is under a sysroot.
3559
35602019-02-12 John Baldwin <jhb@FreeBSD.org>
3561
3562 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3563 unittests/child-path-selftests.c.
3564 * common/pathstuff.c (child_path): New function.
3565 * common/pathstuff.h (child_path): New prototype.
3566 * unittests/child-path-selftests.c: New file.
3567
35682019-02-12 John Baldwin <jhb@FreeBSD.org>
3569
3570 * symfile.c (find_separate_debug_file): Look for separate debug
3571 files in debug directories under the sysroot.
3572
35732019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3574
3575 * symtab.h (struct minimal_symbol data_p): New const method.
3576 (struct minimal_symbol text_p): Likewise.
3577 * symtab.c (output_source_filename): Use file name style
3578 to print file name.
3579 (print_symbol_info): Likewise.
3580 (print_msymbol_info): Use address style to print addresses.
3581 Use function name style to print executable text symbols.
3582 (expand_symtab_containing_pc): Use data_p.
3583 (find_pc_sect_compunit_symtab): Likewise.
3584
35852019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3586
3587 * breakpoint.c (describe_other_breakpoints): Use address style
3588 to print addresses.
3589 (say_where): Likewise.
3590
35912019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3592
3593 * ada-typeprint.c (print_func_type): Print function name
3594 style to print function name.
3595 * c-typeprint.c (c_print_type_1): Likewise.
3596
35972019-02-11 Alan Hayward <alan.hayward@arm.com>
3598
3599 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
3600 for execve.
3601
36022019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3603
3604 * c-exp.y (direct_abs_decl): Use emplace_back to record the
3605 type_stack.
3606
36072019-02-10 Joel Brobecker <brobecker@adacore.com>
3608
3609 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
3610 TYPE_CODE_REF types.
3611
36122019-02-08 Jim Wilson <jimw@sifive.com>
3613
3614 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
3615 (riscv_linux_fregset): New.
3616 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
3617
36182019-02-07 Tom Tromey <tom@tromey.com>
3619
3620 * thread.c (thread_cancel_execution_command): Update.
3621 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
3622 methods.
3623 (struct thread_fsm_ops): Remove.
3624 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
3625 (thread_fsm_should_stop, thread_fsm_return_value)
3626 (thread_fsm_set_finished, thread_fsm_finished_p)
3627 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
3628 Don't declare.
3629 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
3630 * infrun.c (clear_proceed_status_thread)
3631 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
3632 (print_stop_event): Update.
3633 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
3634 Add constructor.
3635 (step_command_fsm_ops): Remove.
3636 (new_step_command_fsm): Remove.
3637 (step_1): Update.
3638 (step_command_fsm::should_stop): Rename from
3639 step_command_fsm_should_stop.
3640 (step_command_fsm::clean_up): Rename from
3641 step_command_fsm_clean_up.
3642 (step_command_fsm::do_async_reply_reason): Rename from
3643 step_command_fsm_async_reply_reason.
3644 (struct until_next_fsm): Inherit from thread_fsm. Add
3645 constructor.
3646 (until_next_fsm_ops): Remove.
3647 (new_until_next_fsm): Remove.
3648 (until_next_fsm::should_stop): Rename from
3649 until_next_fsm_should_stop.
3650 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
3651 (until_next_fsm::do_async_reply_reason): Rename from
3652 until_next_fsm_async_reply_reason.
3653 (struct finish_command_fsm): Inherit from thread_fsm. Add
3654 constructor. Change type of breakpoint.
3655 (finish_command_fsm_ops): Remove.
3656 (new_finish_command_fsm): Remove.
3657 (finish_command_fsm::should_stop): Rename from
3658 finish_command_fsm_should_stop.
3659 (finish_command_fsm::clean_up): Rename from
3660 finish_command_fsm_clean_up.
3661 (finish_command_fsm::return_value): Rename from
3662 finish_command_fsm_return_value.
3663 (finish_command_fsm::do_async_reply_reason): Rename from
3664 finish_command_fsm_async_reply_reason.
3665 (finish_command): Update.
3666 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
3667 Add constructor.
3668 (call_thread_fsm_ops): Remove.
3669 (call_thread_fsm::call_thread_fsm): Rename from
3670 new_call_thread_fsm.
3671 (call_thread_fsm::should_stop): Rename from
3672 call_thread_fsm_should_stop.
3673 (call_thread_fsm::should_notify_stop): Rename from
3674 call_thread_fsm_should_notify_stop.
3675 (run_inferior_call, call_function_by_hand_dummy): Update.
3676 * cli/cli-interp.c (should_print_stop_to_console): Update.
3677 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
3678 Add constructor. Change type of location_breakpoint,
3679 caller_breakpoint.
3680 (until_break_fsm_ops): Remove.
3681 (new_until_break_fsm): Remove.
3682 (until_break_fsm::should_stop): Rename from
3683 until_break_fsm_should_stop.
3684 (until_break_fsm::clean_up): Rename from
3685 until_break_fsm_clean_up.
3686 (until_break_fsm::do_async_reply_reason): Rename from
3687 until_break_fsm_async_reply_reason.
3688 (until_break_command): Update.
3689 * thread-fsm.c: Remove.
3690 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
3691
36922019-02-07 Tom Tromey <tom@tromey.com>
3693
3694 * yy-remap.h: Add include guard.
3695 * xtensa-tdep.h: Add include guard.
3696 * xcoffread.h: Rename include guard.
3697 * varobj-iter.h: Add include guard.
3698 * tui/tui.h: Rename include guard.
3699 * tui/tui-winsource.h: Rename include guard.
3700 * tui/tui-wingeneral.h: Rename include guard.
3701 * tui/tui-windata.h: Rename include guard.
3702 * tui/tui-win.h: Rename include guard.
3703 * tui/tui-stack.h: Rename include guard.
3704 * tui/tui-source.h: Rename include guard.
3705 * tui/tui-regs.h: Rename include guard.
3706 * tui/tui-out.h: Rename include guard.
3707 * tui/tui-layout.h: Rename include guard.
3708 * tui/tui-io.h: Rename include guard.
3709 * tui/tui-hooks.h: Rename include guard.
3710 * tui/tui-file.h: Rename include guard.
3711 * tui/tui-disasm.h: Rename include guard.
3712 * tui/tui-data.h: Rename include guard.
3713 * tui/tui-command.h: Rename include guard.
3714 * tic6x-tdep.h: Add include guard.
3715 * target/waitstatus.h: Rename include guard.
3716 * target/wait.h: Rename include guard.
3717 * target/target.h: Rename include guard.
3718 * target/resume.h: Rename include guard.
3719 * target-float.h: Rename include guard.
3720 * stabsread.h: Add include guard.
3721 * rs6000-tdep.h: Add include guard.
3722 * riscv-fbsd-tdep.h: Add include guard.
3723 * regformats/regdef.h: Rename include guard.
3724 * record.h: Rename include guard.
3725 * python/python.h: Rename include guard.
3726 * python/python-internal.h: Rename include guard.
3727 * python/py-stopevent.h: Rename include guard.
3728 * python/py-ref.h: Rename include guard.
3729 * python/py-record.h: Rename include guard.
3730 * python/py-record-full.h: Rename include guard.
3731 * python/py-record-btrace.h: Rename include guard.
3732 * python/py-instruction.h: Rename include guard.
3733 * python/py-events.h: Rename include guard.
3734 * python/py-event.h: Rename include guard.
3735 * procfs.h: Add include guard.
3736 * proc-utils.h: Add include guard.
3737 * p-lang.h: Add include guard.
3738 * or1k-tdep.h: Rename include guard.
3739 * observable.h: Rename include guard.
3740 * nto-tdep.h: Rename include guard.
3741 * nat/x86-linux.h: Rename include guard.
3742 * nat/x86-linux-dregs.h: Rename include guard.
3743 * nat/x86-gcc-cpuid.h: Add include guard.
3744 * nat/x86-dregs.h: Rename include guard.
3745 * nat/x86-cpuid.h: Rename include guard.
3746 * nat/ppc-linux.h: Rename include guard.
3747 * nat/mips-linux-watch.h: Rename include guard.
3748 * nat/linux-waitpid.h: Rename include guard.
3749 * nat/linux-ptrace.h: Rename include guard.
3750 * nat/linux-procfs.h: Rename include guard.
3751 * nat/linux-osdata.h: Rename include guard.
3752 * nat/linux-nat.h: Rename include guard.
3753 * nat/linux-namespaces.h: Rename include guard.
3754 * nat/linux-btrace.h: Rename include guard.
3755 * nat/glibc_thread_db.h: Rename include guard.
3756 * nat/gdb_thread_db.h: Rename include guard.
3757 * nat/gdb_ptrace.h: Rename include guard.
3758 * nat/fork-inferior.h: Rename include guard.
3759 * nat/amd64-linux-siginfo.h: Rename include guard.
3760 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
3761 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
3762 * nat/aarch64-linux.h: Rename include guard.
3763 * nat/aarch64-linux-hw-point.h: Rename include guard.
3764 * mn10300-tdep.h: Add include guard.
3765 * mips-linux-tdep.h: Add include guard.
3766 * mi/mi-parse.h: Rename include guard.
3767 * mi/mi-out.h: Rename include guard.
3768 * mi/mi-main.h: Rename include guard.
3769 * mi/mi-interp.h: Rename include guard.
3770 * mi/mi-getopt.h: Rename include guard.
3771 * mi/mi-console.h: Rename include guard.
3772 * mi/mi-common.h: Rename include guard.
3773 * mi/mi-cmds.h: Rename include guard.
3774 * mi/mi-cmd-break.h: Rename include guard.
3775 * m2-lang.h: Add include guard.
3776 * location.h: Rename include guard.
3777 * linux-record.h: Rename include guard.
3778 * linux-nat.h: Add include guard.
3779 * linux-fork.h: Add include guard.
3780 * i386-darwin-tdep.h: Rename include guard.
3781 * hppa-linux-offsets.h: Add include guard.
3782 * guile/guile.h: Rename include guard.
3783 * guile/guile-internal.h: Rename include guard.
3784 * gnu-nat.h: Rename include guard.
3785 * gdb-stabs.h: Rename include guard.
3786 * frv-tdep.h: Add include guard.
3787 * f-lang.h: Add include guard.
3788 * event-loop.h: Add include guard.
3789 * darwin-nat.h: Rename include guard.
3790 * cp-abi.h: Rename include guard.
3791 * config/sparc/nm-sol2.h: Rename include guard.
3792 * config/nm-nto.h: Rename include guard.
3793 * config/nm-linux.h: Add include guard.
3794 * config/i386/nm-i386gnu.h: Rename include guard.
3795 * config/djgpp/nl_types.h: Rename include guard.
3796 * config/djgpp/langinfo.h: Rename include guard.
3797 * compile/gcc-cp-plugin.h: Add include guard.
3798 * compile/gcc-c-plugin.h: Add include guard.
3799 * compile/compile.h: Rename include guard.
3800 * compile/compile-object-run.h: Rename include guard.
3801 * compile/compile-object-load.h: Rename include guard.
3802 * compile/compile-internal.h: Rename include guard.
3803 * compile/compile-cplus.h: Rename include guard.
3804 * compile/compile-c.h: Rename include guard.
3805 * common/xml-utils.h: Rename include guard.
3806 * common/x86-xstate.h: Rename include guard.
3807 * common/version.h: Rename include guard.
3808 * common/vec.h: Rename include guard.
3809 * common/tdesc.h: Rename include guard.
3810 * common/selftest.h: Rename include guard.
3811 * common/scoped_restore.h: Rename include guard.
3812 * common/scoped_mmap.h: Rename include guard.
3813 * common/scoped_fd.h: Rename include guard.
3814 * common/safe-iterator.h: Rename include guard.
3815 * common/run-time-clock.h: Rename include guard.
3816 * common/refcounted-object.h: Rename include guard.
3817 * common/queue.h: Rename include guard.
3818 * common/ptid.h: Rename include guard.
3819 * common/print-utils.h: Rename include guard.
3820 * common/preprocessor.h: Rename include guard.
3821 * common/pathstuff.h: Rename include guard.
3822 * common/observable.h: Rename include guard.
3823 * common/netstuff.h: Rename include guard.
3824 * common/job-control.h: Rename include guard.
3825 * common/host-defs.h: Rename include guard.
3826 * common/gdb_wait.h: Rename include guard.
3827 * common/gdb_vecs.h: Rename include guard.
3828 * common/gdb_unlinker.h: Rename include guard.
3829 * common/gdb_unique_ptr.h: Rename include guard.
3830 * common/gdb_tilde_expand.h: Rename include guard.
3831 * common/gdb_sys_time.h: Rename include guard.
3832 * common/gdb_string_view.h: Rename include guard.
3833 * common/gdb_splay_tree.h: Rename include guard.
3834 * common/gdb_setjmp.h: Rename include guard.
3835 * common/gdb_ref_ptr.h: Rename include guard.
3836 * common/gdb_optional.h: Rename include guard.
3837 * common/gdb_locale.h: Rename include guard.
3838 * common/gdb_assert.h: Rename include guard.
3839 * common/filtered-iterator.h: Rename include guard.
3840 * common/filestuff.h: Rename include guard.
3841 * common/fileio.h: Rename include guard.
3842 * common/environ.h: Rename include guard.
3843 * common/common-utils.h: Rename include guard.
3844 * common/common-types.h: Rename include guard.
3845 * common/common-regcache.h: Rename include guard.
3846 * common/common-inferior.h: Rename include guard.
3847 * common/common-gdbthread.h: Rename include guard.
3848 * common/common-exceptions.h: Rename include guard.
3849 * common/common-defs.h: Rename include guard.
3850 * common/common-debug.h: Rename include guard.
3851 * common/cleanups.h: Rename include guard.
3852 * common/buffer.h: Rename include guard.
3853 * common/btrace-common.h: Rename include guard.
3854 * common/break-common.h: Rename include guard.
3855 * cli/cli-utils.h: Rename include guard.
3856 * cli/cli-style.h: Rename include guard.
3857 * cli/cli-setshow.h: Rename include guard.
3858 * cli/cli-script.h: Rename include guard.
3859 * cli/cli-interp.h: Rename include guard.
3860 * cli/cli-decode.h: Rename include guard.
3861 * cli/cli-cmds.h: Rename include guard.
3862 * charset-list.h: Add include guard.
3863 * buildsym-legacy.h: Rename include guard.
3864 * bfin-tdep.h: Add include guard.
3865 * ax.h: Rename include guard.
3866 * arm-linux-tdep.h: Add include guard.
3867 * arm-fbsd-tdep.h: Add include guard.
3868 * arch/xtensa.h: Rename include guard.
3869 * arch/tic6x.h: Add include guard.
3870 * arch/i386.h: Add include guard.
3871 * arch/arm.h: Rename include guard.
3872 * arch/arm-linux.h: Rename include guard.
3873 * arch/arm-get-next-pcs.h: Rename include guard.
3874 * arch/amd64.h: Add include guard.
3875 * arch/aarch64-insn.h: Rename include guard.
3876 * arch-utils.h: Rename include guard.
3877 * annotate.h: Add include guard.
3878 * amd64-darwin-tdep.h: Rename include guard.
3879 * aarch64-linux-tdep.h: Add include guard.
3880 * aarch64-fbsd-tdep.h: Add include guard.
3881 * aarch32-linux-nat.h: Add include guard.
3882
38832019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3884
3885 * macrotab.c (macro_define_internal): New function that
3886 factorizes macro_define_object_internal and macro_define_function
3887 code.
3888 (macro_define_object_internal): Use macro_define_internal.
3889 (macro_define_function): Likewise.
3890
38912019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3892
3893 * macrocmd.c (extract_identifier): Return
3894 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
3895 callers.
3896
38972019-02-06 John Baldwin <jhb@FreeBSD.org>
3898
3899 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
3900
39012019-02-05 Tom Tromey <tom@tromey.com>
3902
3903 * target.c (target_stack::unpush): Move assertion earlier.
3904
39052019-01-30 Tom Tromey <tom@tromey.com>
3906
3907 PR python/23615:
3908 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
3909 (gdbpy_parse_and_eval): Likewise.
3910 * python/python-internal.h (gdbpy_allow_threads): New class.
3911
39122019-01-28 John Baldwin <jhb@FreeBSD.org>
3913
3914 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
3915 (aarch64_fbsd_fpregmap): Move earlier.
3916 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
3917 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
3918 instead of individual calls to trad_frame_set_reg_addr.
3919 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
3920 earlier.
3921 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
3922 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
3923 instead of individual calls to trad_frame_set_reg_addr.
3924
39252019-01-28 Alan Hayward <alan.hayward@arm.com>
3926
3927 * CONTRIBUTE: Replace contribution list with wiki link.
3928
39292019-01-25 Tom Tromey <tom@tromey.com>
3930
3931 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
3932
39332019-01-25 Tom Tromey <tom@tromey.com>
3934
3935 * xtensa-linux-nat.c: Fix common/ includes.
3936 * xml-support.h: Fix common/ includes.
3937 * xml-support.c: Fix common/ includes.
3938 * x86-linux-nat.c: Fix common/ includes.
3939 * windows-nat.c: Fix common/ includes.
3940 * varobj.h: Fix common/ includes.
3941 * varobj.c: Fix common/ includes.
3942 * value.c: Fix common/ includes.
3943 * valops.c: Fix common/ includes.
3944 * utils.c: Fix common/ includes.
3945 * unittests/xml-utils-selftests.c: Fix common/ includes.
3946 * unittests/utils-selftests.c: Fix common/ includes.
3947 * unittests/unpack-selftests.c: Fix common/ includes.
3948 * unittests/tracepoint-selftests.c: Fix common/ includes.
3949 * unittests/style-selftests.c: Fix common/ includes.
3950 * unittests/string_view-selftests.c: Fix common/ includes.
3951 * unittests/scoped_restore-selftests.c: Fix common/ includes.
3952 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
3953 * unittests/scoped_fd-selftests.c: Fix common/ includes.
3954 * unittests/rsp-low-selftests.c: Fix common/ includes.
3955 * unittests/parse-connection-spec-selftests.c: Fix common/
3956 includes.
3957 * unittests/optional-selftests.c: Fix common/ includes.
3958 * unittests/offset-type-selftests.c: Fix common/ includes.
3959 * unittests/observable-selftests.c: Fix common/ includes.
3960 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
3961 * unittests/memrange-selftests.c: Fix common/ includes.
3962 * unittests/memory-map-selftests.c: Fix common/ includes.
3963 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
3964 * unittests/function-view-selftests.c: Fix common/ includes.
3965 * unittests/environ-selftests.c: Fix common/ includes.
3966 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
3967 * unittests/common-utils-selftests.c: Fix common/ includes.
3968 * unittests/cli-utils-selftests.c: Fix common/ includes.
3969 * unittests/array-view-selftests.c: Fix common/ includes.
3970 * ui-file.c: Fix common/ includes.
3971 * tui/tui-io.c: Fix common/ includes.
3972 * tracepoint.h: Fix common/ includes.
3973 * tracepoint.c: Fix common/ includes.
3974 * tracefile-tfile.c: Fix common/ includes.
3975 * top.h: Fix common/ includes.
3976 * top.c: Fix common/ includes.
3977 * thread.c: Fix common/ includes.
3978 * target/waitstatus.h: Fix common/ includes.
3979 * target/waitstatus.c: Fix common/ includes.
3980 * target.h: Fix common/ includes.
3981 * target.c: Fix common/ includes.
3982 * target-memory.c: Fix common/ includes.
3983 * target-descriptions.c: Fix common/ includes.
3984 * symtab.h: Fix common/ includes.
3985 * symfile.c: Fix common/ includes.
3986 * stap-probe.c: Fix common/ includes.
3987 * spu-linux-nat.c: Fix common/ includes.
3988 * sparc-nat.c: Fix common/ includes.
3989 * source.c: Fix common/ includes.
3990 * solib.c: Fix common/ includes.
3991 * solib-target.c: Fix common/ includes.
3992 * ser-unix.c: Fix common/ includes.
3993 * ser-tcp.c: Fix common/ includes.
3994 * ser-pipe.c: Fix common/ includes.
3995 * ser-base.c: Fix common/ includes.
3996 * selftest-arch.c: Fix common/ includes.
3997 * s12z-tdep.c: Fix common/ includes.
3998 * rust-exp.y: Fix common/ includes.
3999 * rs6000-aix-tdep.c: Fix common/ includes.
4000 * riscv-tdep.c: Fix common/ includes.
4001 * remote.c: Fix common/ includes.
4002 * remote-notif.h: Fix common/ includes.
4003 * remote-fileio.h: Fix common/ includes.
4004 * remote-fileio.c: Fix common/ includes.
4005 * regcache.h: Fix common/ includes.
4006 * regcache.c: Fix common/ includes.
4007 * record-btrace.c: Fix common/ includes.
4008 * python/python.c: Fix common/ includes.
4009 * python/py-type.c: Fix common/ includes.
4010 * python/py-inferior.c: Fix common/ includes.
4011 * progspace.h: Fix common/ includes.
4012 * producer.c: Fix common/ includes.
4013 * procfs.c: Fix common/ includes.
4014 * proc-api.c: Fix common/ includes.
4015 * printcmd.c: Fix common/ includes.
4016 * ppc-linux-nat.c: Fix common/ includes.
4017 * parser-defs.h: Fix common/ includes.
4018 * osdata.c: Fix common/ includes.
4019 * obsd-nat.c: Fix common/ includes.
4020 * nat/x86-linux.c: Fix common/ includes.
4021 * nat/x86-linux-dregs.c: Fix common/ includes.
4022 * nat/x86-dregs.h: Fix common/ includes.
4023 * nat/x86-dregs.c: Fix common/ includes.
4024 * nat/ppc-linux.c: Fix common/ includes.
4025 * nat/mips-linux-watch.h: Fix common/ includes.
4026 * nat/mips-linux-watch.c: Fix common/ includes.
4027 * nat/linux-waitpid.c: Fix common/ includes.
4028 * nat/linux-ptrace.h: Fix common/ includes.
4029 * nat/linux-ptrace.c: Fix common/ includes.
4030 * nat/linux-procfs.c: Fix common/ includes.
4031 * nat/linux-personality.c: Fix common/ includes.
4032 * nat/linux-osdata.c: Fix common/ includes.
4033 * nat/linux-namespaces.c: Fix common/ includes.
4034 * nat/linux-btrace.h: Fix common/ includes.
4035 * nat/linux-btrace.c: Fix common/ includes.
4036 * nat/fork-inferior.c: Fix common/ includes.
4037 * nat/amd64-linux-siginfo.c: Fix common/ includes.
4038 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
4039 * nat/aarch64-linux.c: Fix common/ includes.
4040 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
4041 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
4042 * namespace.h: Fix common/ includes.
4043 * mips-linux-tdep.c: Fix common/ includes.
4044 * minsyms.c: Fix common/ includes.
4045 * mi/mi-parse.h: Fix common/ includes.
4046 * mi/mi-main.c: Fix common/ includes.
4047 * mi/mi-cmd-env.c: Fix common/ includes.
4048 * memrange.h: Fix common/ includes.
4049 * memattr.c: Fix common/ includes.
4050 * maint.h: Fix common/ includes.
4051 * maint.c: Fix common/ includes.
4052 * main.c: Fix common/ includes.
4053 * machoread.c: Fix common/ includes.
4054 * location.c: Fix common/ includes.
4055 * linux-thread-db.c: Fix common/ includes.
4056 * linux-nat.c: Fix common/ includes.
4057 * linux-fork.c: Fix common/ includes.
4058 * inline-frame.c: Fix common/ includes.
4059 * infrun.c: Fix common/ includes.
4060 * inflow.c: Fix common/ includes.
4061 * inferior.h: Fix common/ includes.
4062 * inferior.c: Fix common/ includes.
4063 * infcmd.c: Fix common/ includes.
4064 * inf-ptrace.c: Fix common/ includes.
4065 * inf-child.c: Fix common/ includes.
4066 * ia64-linux-nat.c: Fix common/ includes.
4067 * i387-tdep.c: Fix common/ includes.
4068 * i386-tdep.c: Fix common/ includes.
4069 * i386-linux-tdep.c: Fix common/ includes.
4070 * i386-linux-nat.c: Fix common/ includes.
4071 * i386-go32-tdep.c: Fix common/ includes.
4072 * i386-fbsd-tdep.c: Fix common/ includes.
4073 * i386-fbsd-nat.c: Fix common/ includes.
4074 * guile/scm-type.c: Fix common/ includes.
4075 * guile/guile.c: Fix common/ includes.
4076 * go32-nat.c: Fix common/ includes.
4077 * gnu-nat.c: Fix common/ includes.
4078 * gdbthread.h: Fix common/ includes.
4079 * gdbarch-selftests.c: Fix common/ includes.
4080 * gdb_usleep.c: Fix common/ includes.
4081 * gdb_select.h: Fix common/ includes.
4082 * gdb_bfd.c: Fix common/ includes.
4083 * gcore.c: Fix common/ includes.
4084 * fork-child.c: Fix common/ includes.
4085 * findvar.c: Fix common/ includes.
4086 * fbsd-nat.c: Fix common/ includes.
4087 * event-top.c: Fix common/ includes.
4088 * event-loop.c: Fix common/ includes.
4089 * dwarf2read.c: Fix common/ includes.
4090 * dwarf2loc.c: Fix common/ includes.
4091 * dwarf2-frame.c: Fix common/ includes.
4092 * dwarf-index-cache.c: Fix common/ includes.
4093 * dtrace-probe.c: Fix common/ includes.
4094 * disasm-selftests.c: Fix common/ includes.
4095 * defs.h: Fix common/ includes.
4096 * csky-tdep.c: Fix common/ includes.
4097 * cp-valprint.c: Fix common/ includes.
4098 * cp-support.h: Fix common/ includes.
4099 * cp-support.c: Fix common/ includes.
4100 * corelow.c: Fix common/ includes.
4101 * completer.h: Fix common/ includes.
4102 * completer.c: Fix common/ includes.
4103 * compile/compile.c: Fix common/ includes.
4104 * compile/compile-loc2c.c: Fix common/ includes.
4105 * compile/compile-cplus-types.c: Fix common/ includes.
4106 * compile/compile-cplus-symbols.c: Fix common/ includes.
4107 * command.h: Fix common/ includes.
4108 * cli/cli-dump.c: Fix common/ includes.
4109 * cli/cli-cmds.c: Fix common/ includes.
4110 * charset.c: Fix common/ includes.
4111 * build-id.c: Fix common/ includes.
4112 * btrace.h: Fix common/ includes.
4113 * btrace.c: Fix common/ includes.
4114 * breakpoint.h: Fix common/ includes.
4115 * breakpoint.c: Fix common/ includes.
4116 * ax.h:
4117 (enum agent_op): Fix common/ includes.
4118 * ax-general.c (struct aop_map): Fix common/ includes.
4119 * ax-gdb.c: Fix common/ includes.
4120 * auxv.c: Fix common/ includes.
4121 * auto-load.c: Fix common/ includes.
4122 * arm-tdep.c: Fix common/ includes.
4123 * arch/riscv.c: Fix common/ includes.
4124 * arch/ppc-linux-common.c: Fix common/ includes.
4125 * arch/i386.c: Fix common/ includes.
4126 * arch/arm.c: Fix common/ includes.
4127 * arch/arm-linux.c: Fix common/ includes.
4128 * arch/arm-get-next-pcs.c: Fix common/ includes.
4129 * arch/amd64.c: Fix common/ includes.
4130 * arch/aarch64.c: Fix common/ includes.
4131 * arch/aarch64-insn.c: Fix common/ includes.
4132 * arch-utils.c: Fix common/ includes.
4133 * amd64-windows-tdep.c: Fix common/ includes.
4134 * amd64-tdep.c: Fix common/ includes.
4135 * amd64-sol2-tdep.c: Fix common/ includes.
4136 * amd64-obsd-tdep.c: Fix common/ includes.
4137 * amd64-nbsd-tdep.c: Fix common/ includes.
4138 * amd64-linux-tdep.c: Fix common/ includes.
4139 * amd64-linux-nat.c: Fix common/ includes.
4140 * amd64-fbsd-tdep.c: Fix common/ includes.
4141 * amd64-fbsd-nat.c: Fix common/ includes.
4142 * amd64-dicos-tdep.c: Fix common/ includes.
4143 * amd64-darwin-tdep.c: Fix common/ includes.
4144 * agent.c: Fix common/ includes.
4145 * ada-lang.h: Fix common/ includes.
4146 * ada-lang.c: Fix common/ includes.
4147 * aarch64-tdep.c: Fix common/ includes.
4148
41492019-01-25 Tom Tromey <tom@tromey.com>
4150
4151 * common/create-version.sh: Use common/version.h.
4152
41532019-01-24 Pedro Alves <palves@redhat.com>
4154
4155 * infrun.c (signal_stop, signal_print, signal_program)
4156 (signal_catch, signal_pass): Now arrays instead of pointers.
4157 (update_signals_program_target, do_target_resume)
4158 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
4159 * linux-nat.c (linux_nat_target::pass_signals)
4160 (linux_nat_target::create_inferior, linux_nat_target::attach):
4161 Adjust.
4162 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
4163 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
4164 * procfs.c (procfs_target::pass_signals): Adjust.
4165 * record-full.c (record_full_target::resume): Adjust.
4166 * remote.c (remote_target::pass_signals)
4167 (remote_target::program_signals): Adjust.
4168 * target-debug.h (target_debug_print_signals): Now takes a
4169 gdb::array_view as parameter. Adjust.
4170 * target.h (target_ops) <pass_signals, program_signals>: Replace
4171 pointer and length parameters with gdb::array_view.
4172 (target_pass_signals, target_program_signals): Likewise.
4173 * target-delegates.c: Regenerate.
4174
41752019-01-24 Pedro Alves <palves@redhat.com>
4176
4177 * common/forward-scope-exit.h
4178 (forward_scope_exit::forward_scope_exit): Pass arguments to
4179 m_bind_function directly, instead of creating a std::bind and
4180 copying that.
4181
41822019-01-24 Alan Hayward <alan.hayward@arm.com>
4183
4184 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
4185 for static members.
4186 (pass_in_v_vfp_candidate): Likewise.
4187
41882019-01-23 Tom Tromey <tom@tromey.com>
4189 Pedro Alves <palves@redhat.com>
4190
4191 * regcache.c (class regcache_invalidator): Remove.
4192 (regcache::raw_write): Use make_scope_exit.
4193
41942019-01-23 Tom Tromey <tom@tromey.com>
4195
4196 * ui-out.h (class ui_out_emit_type): Update comment.
4197
41982019-01-23 Tom Tromey <tom@tromey.com>
4199
4200 * infrun.c (fetch_inferior_event): Update comment.
4201
42022019-01-23 Tom Tromey <tom@tromey.com>
4203 Pedro Alves <palves@redhat.com>
4204
4205 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
4206 parameter.
4207 (fetch_inferior_event): Use SCOPE_EXIT.
4208
4209
42102019-01-23 Tom Tromey <tom@tromey.com>
4211 Pedro Alves <palves@redhat.com>
4212
4213 * infrun.c (disable_thread_events): Delete.
4214 (stop_all_threads): Use SCOPE_EXIT.
4215
42162019-01-23 Tom Tromey <tom@tromey.com>
4217 Pedro Alves <palves@redhat.com>
4218
4219 * symfile.c: Include forward-scope-exit.h.
4220 (clear_symtab_users_cleanup): Replace forward declaration with
4221 a FORWARD_SCOPE_EXIT.
4222 (syms_from_objfile_1): Use the forward_scope_exit and
4223 gdb::optional instead of cleanup_function.
4224 (reread_symbols): Use the forward_scope_exit instead of
4225 cleanup_function.
4226 (clear_symtab_users_cleanup): Remove function.
4227
42282019-01-23 Tom Tromey <tom@tromey.com>
4229 Pedro Alves <palves@redhat.com>
4230
4231 * linux-nat.c: Include scope-exit.h.
4232 (cleanup_target_stop): Remove.
4233 (linux_nat_target::static_tracepoint_markers_by_strid): Use
4234 SCOPE_EXIT.
4235
42362019-01-23 Tom Tromey <tom@tromey.com>
4237 Pedro Alves <palves@redhat.com>
4238
4239 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
4240 (call_function_by_hand_dummy): Use SCOPE_EXIT.
4241
42422019-01-23 Tom Tromey <tom@tromey.com>
4243 Andrew Burgess <andrew.burgess@embecosm.com>
4244 Pedro Alves <palves@redhat.com>
4245
4246 * infrun.c (fetch_inferior_event): Use scope_exit.
4247 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
4248 * top.c (execute_command): Use scope_exit.
4249 * breakpoint.c (bpstat_do_actions): Use scope_exit.
4250 * utils.c (do_bpstat_clear_actions_cleanup)
4251 (make_bpstat_clear_actions_cleanup): Remove.
4252
42532019-01-23 Tom Tromey <tom@tromey.com>
4254 Pedro Alves <palves@redhat.com>
4255
4256 * infrun.c: Include "common/scope-exit.h"
4257 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
4258 (wait_for_inferior): Use SCOPE_EXIT.
4259 (fetch_inferior_event): Use scope_exit.
4260
42612019-01-23 Tom Tromey <tom@tromey.com>
4262 Pedro Alves <palves@redhat.com>
4263
4264 * breakpoint.c (create_breakpoint): Remove cleanup.
4265
42662019-01-23 Tom Tromey <tom@tromey.com>
4267 Andrew Burgess <andrew.burgess@embecosm.com>
4268 Pedro Alves <palves@redhat.com>
4269
42702019-01-23 Pedro Alves <palves@redhat.com>
4271
4272 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
4273
42742019-01-23 Pedro Alves <palves@redhat.com>
4275 Andrew Burgess <andrew.burgess@embecosm.com>
4276
4277 * gdbthread.h: Include "common/forward-scope-exit.h".
4278 (scoped_finish_thread_state): Redefine custom class in terms of
4279 forward_scope_exit.
4280
42812019-01-23 Pedro Alves <palves@redhat.com>
4282 Andrew Burgess <andrew.burgess@embecosm.com>
4283
4284 * common/forward-scope-exit.h: New file.
4285
42862019-01-23 Pedro Alves <palves@redhat.com>
4287 Andrew Burgess <andrew.burgess@embecosm.com>
4288 Tom Tromey <tom@tromey.com>
4289
4290 * common/scope-exit.h: New file.
4291
42922019-01-23 Pedro Alves <palves@redhat.com>
4293
4294 * common/preprocessor.h (ESC): Rename to ...
4295 (ESC_PARENS): ... this.
4296 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
4297 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
4298
42992019-01-23 Tom Tromey <tom@tromey.com>
4300
4301 * language.h (class scoped_switch_to_sym_language_if_auto):
4302 Initialize m_lang in both cases.
4303
43042019-01-23 Alan Hayward <alan.hayward@arm.com>
4305
4306 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
4307 with XCNEW.
4308
43092019-01-22 Tom Tromey <tom@tromey.com>
4310
4311 * corelow.c: Do not include sys/file.h.
4312
43132019-01-22 Tom Tromey <tom@tromey.com>
4314
4315 * tui/tui-wingeneral.h: Include gdb_curses.h.
4316
43172019-01-22 Tom Tromey <tom@tromey.com>
4318
4319 * source-cache.h (class source_cache) <get_source_lines,
4320 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
4321
43222019-01-22 Tom Tromey <tom@tromey.com>
4323
4324 * remote-fileio.h (struct remote_target): Declare.
4325
43262019-01-22 Tom Tromey <tom@tromey.com>
4327
4328 * python/py-arch.c: Do not include py-ref.h.
4329 * python/py-bpevent.c: Do not include py-ref.h.
4330 * python/py-cmd.c: Do not include py-ref.h.
4331 * python/py-continueevent.c: Do not include py-ref.h.
4332 * python/py-event.h: Do not include py-ref.h.
4333 * python/py-evtregistry.c: Do not include py-ref.h.
4334 * python/py-finishbreakpoint.c: Do not include py-ref.h.
4335 * python/py-frame.c: Do not include py-ref.h.
4336 * python/py-framefilter.c: Do not include py-ref.h.
4337 * python/py-function.c: Do not include py-ref.h.
4338 * python/py-infevents.c: Do not include py-ref.h.
4339 * python/py-linetable.c: Do not include py-ref.h.
4340 * python/py-objfile.c: Do not include py-ref.h.
4341 * python/py-param.c: Do not include py-ref.h.
4342 * python/py-prettyprint.c: Do not include py-ref.h.
4343 * python/py-progspace.c: Do not include py-ref.h.
4344 * python/py-symbol.c: Do not include py-ref.h.
4345 * python/py-symtab.c: Do not include py-ref.h.
4346 * python/py-type.c: Do not include py-ref.h.
4347 * python/py-unwind.c: Do not include py-ref.h.
4348 * python/py-utils.c: Do not include py-ref.h.
4349 * python/py-value.c: Do not include py-ref.h.
4350 * python/py-varobj.c: Do not include py-ref.h.
4351 * python/py-xmethods.c: Do not include py-ref.h.
4352 * python/python.c: Do not include py-ref.h.
4353 * varobj.c: Do not include py-ref.h.
4354
43552019-01-22 Tom Tromey <tom@tromey.com>
4356
4357 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
4358 keyword for bcache.
4359
43602019-01-22 Tom Tromey <tom@tromey.com>
4361
4362 * compile/compile-cplus-types.c: Remove a comment by #include.
4363
43642019-01-22 Tom Tromey <tom@tromey.com>
4365
4366 * compile/gcc-c-plugin.h: Include compile-internal.h.
4367
43682019-01-22 Tom Tromey <tom@tromey.com>
4369
4370 * stabsread.c (EXTERN): Do not define.
4371 (symnum, next_symbol_text_func, processing_gcc_compilation)
4372 (within_function, global_sym_chain, global_stabs)
4373 (previous_stab_code, this_object_header_files)
4374 (n_this_object_header_files)
4375 (n_allocated_this_object_header_files): Define.
4376 * stabsread.h (EXTERN): Never define. Use "extern".
4377
43782019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4379
4380 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
4381 history_value.
4382
43832019-01-21 Tom Tromey <tom@tromey.com>
4384
4385 * ui-out.c: Fix includes.
4386 * tui/tui-source.c: Fix includes.
4387 * target.c: Fix includes.
4388 * remote.c: Fix includes.
4389 * regcache.c: Fix includes.
4390 * python/py-block.c: Fix includes.
4391 * printcmd.c: Fix includes.
4392 * or1k-tdep.c: Fix includes.
4393 * mi/mi-main.c: Fix includes.
4394 * m32r-tdep.c: Fix includes.
4395 * csky-tdep.c: Fix includes.
4396 * compile/compile-cplus-types.c: Fix includes.
4397 * cli/cli-interp.c: Fix includes.
4398
43992019-01-21 Alan Hayward <alan.hayward@arm.com>
4400
4401 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
4402 for padding.
4403
44042019-01-16 Tom Tromey <tom@tromey.com>
4405
4406 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
4407 earlier.
4408 (struct objfile) <msymbols_range>: Move from top level.
4409 <msymbols>: New method.
4410 (class objfile_msymbols): Remove.
4411 * symtab.c (default_collect_symbol_completion_matches_break_on):
4412 Update.
4413 * symmisc.c (dump_msymbols): Update.
4414 * stabsread.c (scan_file_globals): Update.
4415 * objc-lang.c (info_selectors_command, info_classes_command)
4416 (find_methods): Update.
4417 * minsyms.c (find_solib_trampoline_target): Update.
4418 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
4419 * coffread.c (coff_symfile_read): Update.
4420 * ada-lang.c (ada_lookup_simple_minsym)
4421 (ada_collect_symbol_completion_matches): Update.
4422
44232019-01-16 Tom Tromey <tom@tromey.com>
4424
4425 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
4426 type. Remove no-argument constructor.
4427 <iterator::operator++>: Simplify.
4428 <begin>: Update.
4429 <end>: Use minimal_symbol_count.
4430
44312019-01-16 Tom Tromey <tom@tromey.com>
4432
4433 * objfiles.h (struct objfile) <psymtabs>: New method.
4434 (class objfile_psymtabs): Remove.
4435 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
4436 typedef.
4437 <range>: New method.
4438 (require_partial_symbols): Change return type.
4439 * psymtab.c (require_partial_symbols)
4440 (psym_expand_symtabs_matching): Update.
4441 * mdebugread.c (parse_partial_symbols): Update.
4442 * dbxread.c (dbx_end_psymtab): Update.
4443
44442019-01-15 Tom Tromey <tom@tromey.com>
4445
4446 * symtab.c (lookup_objfile_from_block)
4447 (lookup_symbol_in_objfile_symtabs)
4448 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
4449 (find_line_symtab, info_sources_command)
4450 (default_collect_symbol_completion_matches_break_on)
4451 (make_source_files_completion_list): Update.
4452 * symmisc.c (print_objfile_statistics, dump_objfile)
4453 (maintenance_print_symbols, maintenance_info_symtabs)
4454 (maintenance_check_symtabs, maintenance_info_line_tables):
4455 Update.
4456 * source.c (select_source_symtab)
4457 (forget_cached_source_info_for_objfile): Update.
4458 * objfiles.h (class objfile_compunits): Remove.
4459 (struct objfile) <compunits_range>: New typedef.
4460 (compunits): New method.
4461 * objfiles.c (objfile_relocate1): Update.
4462 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
4463 * maint.c (count_symtabs_and_blocks): Update.
4464 * linespec.c (iterate_over_all_matching_symtabs): Update.
4465 * cp-support.c (add_symbol_overload_list_qualified): Update.
4466 * coffread.c (coff_symtab_read): Update.
4467 * ada-lang.c (add_nonlocal_symbols)
4468 (ada_collect_symbol_completion_matches)
4469 (ada_add_global_exceptions): Update.
4470
44712019-01-15 Tom Tromey <tom@tromey.com>
4472
4473 * progspace.h (program_space) <objfiles_safe_range>: New
4474 typedef.
4475 <objfiles_safe>: New method.
4476 * objfiles.h (class all_objfiles_safe): Remove.
4477 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
4478 * jit.c (jit_inferior_exit_hook): Update.
4479
44802019-01-17 Tom Tromey <tom@tromey.com>
4481
4482 * progspace.h (program_space) <objfiles_range>: New typedef.
4483 <objfiles>: New method.
4484 <objfiles_head>: Rename from objfiles.
4485 (object_files): Update.
4486 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
4487 * guile/scm-pretty-print.c
4488 (ppscm_find_pretty_printer_from_objfiles): Update.
4489 * guile/scm-objfile.c (gdbscm_objfiles): Update.
4490 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
4491 Update.
4492 * python/py-progspace.c (pspy_get_objfiles): Update.
4493 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
4494 Update.
4495 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
4496 (objfpy_lookup_objfile_by_build_id): Update.
4497 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
4498 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
4499 Update.
4500 * symtab.c (iterate_over_symtabs, matching_obj_sections)
4501 (expand_symtab_containing_pc, lookup_objfile_from_block)
4502 (lookup_static_symbol, basic_lookup_transparent_type)
4503 (find_pc_sect_compunit_symtab, find_symbol_at_address)
4504 (find_line_symtab, info_sources_command)
4505 (default_collect_symbol_completion_matches_break_on)
4506 (make_source_files_completion_list, find_main_name): Update.
4507 * symmisc.c (print_symbol_bcache_statistics)
4508 (print_objfile_statistics, maintenance_print_symbols)
4509 (maintenance_print_msymbols, maintenance_print_objfiles)
4510 (maintenance_info_symtabs, maintenance_check_symtabs)
4511 (maintenance_expand_symtabs, maintenance_info_line_tables):
4512 Update.
4513 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
4514 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
4515 (map_overlay_command, unmap_overlay_command)
4516 (simple_overlay_update, expand_symtabs_matching)
4517 (map_symbol_filenames): Update.
4518 * symfile-debug.c (set_debug_symfile): Update.
4519 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
4520 Update.
4521 * source.c (select_source_symtab, forget_cached_source_info):
4522 Update.
4523 * solib.c (solib_read_symbols): Update.
4524 * solib-spu.c (append_ocl_sos): Update.
4525 * psymtab.c (maintenance_print_psymbols)
4526 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
4527 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
4528 * printcmd.c (info_symbol_command): Update.
4529 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
4530 Update.
4531 * objfiles.h (class all_objfiles): Remove.
4532 * objfiles.c (have_partial_symbols, have_full_symbols)
4533 (have_minimal_symbols, qsort_cmp, update_section_map)
4534 (shared_objfile_contains_address_p)
4535 (default_iterate_over_objfiles_in_search_order): Update.
4536 * objc-lang.c (info_selectors_command, info_classes_command)
4537 (find_methods): Update.
4538 * minsyms.c (find_solib_trampoline_target): Update.
4539 * maint.c (maintenance_info_sections)
4540 (maintenance_translate_address, count_symtabs_and_blocks):
4541 Update.
4542 * main.c (captured_main_1): Update.
4543 * linux-thread-db.c (try_thread_db_load_from_pdir)
4544 (has_libpthread): Update.
4545 * linespec.c (iterate_over_all_matching_symtabs)
4546 (search_minsyms_for_name): Update.
4547 * jit.c (jit_find_objf_with_entry_addr): Update.
4548 * hppa-tdep.c (find_unwind_entry)
4549 (hppa_lookup_stub_minimal_symbol): Update.
4550 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
4551 Update.
4552 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
4553 (elf_gnu_ifunc_resolve_by_got): Update.
4554 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
4555 * dwarf-index-write.c (save_gdb_index_command): Update.
4556 * cp-support.c (add_symbol_overload_list_qualified): Update.
4557 * breakpoint.c (create_overlay_event_breakpoint)
4558 (create_longjmp_master_breakpoint)
4559 (create_std_terminate_master_breakpoint)
4560 (create_exception_master_breakpoint): Update.
4561 * blockframe.c (find_pc_partial_function): Update.
4562 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
4563 (ada_collect_symbol_completion_matches)
4564 (ada_add_global_exceptions): Update.
4565
45662019-01-17 Tom Tromey <tom@tromey.com>
4567
4568 * solib-target.c (lm_info_target_p): Remove typedef. Don't
4569 declare VEC.
4570 (solib_target_parse_libraries): Change return type.
4571 (library_list_start_segment, library_list_start_section)
4572 (library_list_end_library, library_list_start_library); Update.
4573 (solib_target_free_library_list): Remove.
4574 (solib_target_parse_libraries): Remove cleanup. Change return
4575 type.
4576 (solib_target_current_sos): Update.
4577
45782019-01-17 Tom Tromey <tromey@bapiya>
4579
4580 * valprint.c: Replace "the the" with "the".
4581 * symtab.c: Replace "the the" with "the".
4582 * solib.c: Replace "the the" with "the".
4583 * solib-dsbt.c: Replace "the the" with "the".
4584 * linespec.c: Replace "the the" with "the".
4585 * dwarf2loc.h: Replace "the the" with "the".
4586 * amd64-windows-tdep.c: Replace "the the" with "the".
4587 * aarch64-tdep.c: Replace "the the" with "the".
4588
45892019-01-16 Keith Seitz <keiths@redhat.com>
4590
4591 PR gdb/23773
4592 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
4593 <builder>: Rename to ..
4594 <m_builder>: ... this and make private.
4595 (dwarf2_cu::get_builder): New method. Change all users of
4596 `builder' to use this method.
4597 (dwarf2_start_symtab): Move to ...
4598 (dwarf2_cu::start_symtab): ... here. Update all callers
4599 (setup_type_unit_groups): Move to ...
4600 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
4601 callers.
4602 (dwarf2_cu::reset_builder): New method.
4603 (process_full_compunit, process_full_type_unit): Use
4604 dwarf2_cu::reset_builder.
4605 (follow_die_offset): Record the ancestor CU if it is different
4606 from the followed DIE's CU.
4607 (follow_die_sig_1): Likewise.
4608
46092019-01-15 Tom Tromey <tom@tromey.com>
4610
4611 * remote.c (class remote_state) <buf>: Now a char_vector.
4612 <buf_size>: Remove.
4613 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
4614 parameter.
4615 (remote_target::getpkt_or_notif_sane_1)
4616 (remote_target::getpkt_sane)
4617 (remote_target::getpkt_or_notif_sane): Likewise.
4618 (class remote_target) <putpkt>: New overload.
4619 (remote_target::read_frame): Change type of "buf_p". Remove
4620 sizeof_p parameter.
4621 (packet_ok): New overload.
4622 (packet_check_result): New overload.
4623 Update all uses.
4624
46252019-01-14 Tom Tromey <tom@tromey.com>
4626
4627 * remote-notif.c (handle_notification, remote_notif_ack)
4628 (remote_notif_parse): Make "buf" const.
4629 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
4630 const.
4631 (remote_notif_parse, remote_notif_ack, handle_notification):
4632 Likewise.
4633 * remote.c (remote_notif_stop_parse): Make "buf" const.
4634 (remote_target::remote_parse_stop_reply): Make "buf" const.
4635 (remote_notif_stop_ack): Make "buf" const.
4636
46372019-01-14 Tom Tromey <tom@tromey.com>
4638
4639 * remote.c (remote_console_output): Make parameter const.
4640
46412019-01-14 Tom Tromey <tom@tromey.com>
4642
4643 * target-debug.h (target_debug_print_signals): Constify.
4644 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
4645 * procfs.c (procfs_target::pass_signals): Update.
4646 * linux-nat.c (linux_nat_target::pass_signals): Update.
4647 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
4648 * target-delegates.c: Rebuild.
4649 * remote.c (remote_target::program_signals): Update.
4650 (remote_target::pass_signals): Update.
4651 * target.c (target_pass_signals): Constify argument.
4652 (target_program_signals): Likewise.
4653 * target.h (struct target_ops) <pass_signals, program_signals>:
4654 Constify argument.
4655 (target_pass_signals, target_program_signals): Constify argument.
4656
46572019-01-14 Tom Tromey <tom@tromey.com>
4658
4659 PR tui/28819:
4660 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
4661
46622019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4663
4664 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
4665 field.
4666 * rs6000-tdep.c: Include reggroups.h.
4667 (IS_V_ALIAS_PSEUDOREG): Define.
4668 (rs6000_register_name): Return names for the "vX" aliases.
4669 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
4670 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
4671 aliases. Call default_register_reggroup_p for all other
4672 pseudo-registers.
4673 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
4674 New functions.
4675 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
4676 Handle "vX" aliases.
4677 (v_alias_pseudo_register_collect): New function.
4678 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
4679 (rs6000_gdbarch_init): Initialize "vX" aliases as
4680 pseudo-registers. Restore registration of
4681 rs6000_pseudo_register_reggroup_p with
4682 set_tdesc_pseudo_register_reggroup_p.
4683
46842019-01-13 Max Filippov <jcmvbkbc@gmail.com>
4685
4686 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
4687 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
4688 set_gdbarch_num_pseudo_regs.
4689
46902019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4691
4692 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
4693 Remove arg prefixname, add do_set and do_show.
4694 Add member functions set_list and show_list.
4695 * cli/cli-style.c (class cli_style_option): Update accordingly.
4696 (style_set_list): Move to file scope.
4697 (style_show_list): Likewise.
4698 (set_style): Call help_list.
4699 (show_style): Call cmd_show_list.
4700 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
4701 Update to use the new macro.
4702
47032019-10-12 Joel Brobecker <brobecker@adacore.com>
4704
4705 * ada-lang.c (_initialize_ada_language): Expand the help text
4706 for the "catch exception" command.
4707
47082019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4709
4710 * symtab.c (matching_obj_sections): Initialize obj,
4711 declare it closer to its usage.
4712
47132019-01-10 Tom Tromey <tom@tromey.com>
4714
4715 * thread-iter.h (inf_threads_iterator): Use next_iterator.
4716 (basic_inf_threads_range): Remove.
4717 (inf_threads_range, inf_non_exited_threads_range)
4718 (safe_inf_threads_range): Use next_adapter.
4719
47202019-01-10 Keith Seitz <keiths@redhat.com>
4721
4722 PR gdb/23712
4723 PR symtab/23010
4724 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
4725 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
4726
47272019-01-10 Keith Seitz <keiths@redhat.com>
4728
4729 PR gdb/23712
4730 PR symtab/23010
4731 * dictionary.c (pending_to_vector): Remove.
4732 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
4733 Remove _1 suffix, replacing functions of the same name. Update
4734 all callers.
4735 (dict_create_hashed, dict_create_hashed_expandable)
4736 (dict_create_linear, dict_create_linear_expandable, dict_free)
4737 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
4738 Make functions static.
4739
47402019-01-10 Keith Seitz <keiths@redhat.com>
4741
4742 PR gdb/23712
4743 PR symtab/23010
4744 * dictionary.h (struct dictionary): Replace declaration with
4745 multidictionary.
4746 (dict_create_hashed, dict_create_hashed_expandable)
4747 (dict_create_linear, dict_create_linear_expandable)
4748 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
4749 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
4750 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
4751 taking multidictionary argument.
4752 [ALL_DICT_SYMBOLS]: Update for multidictionary.
4753 * block.h (struct block) <dict>: Change to multidictionary
4754 and rename `multidict'.
4755 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
4756 symmisc.c: Update all dictionary references to multidictionary.
4757
47582019-01-10 Keith Seitz <keiths@redhat.com>
4759
4760 PR gdb/23712
4761 PR symtab/23010
4762 * dictionary.c: Include unordered_map.
4763 (pending_to_vector): New function.
4764 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
4765 Rewrite the non-"_1" functions to take vector instead
4766 of linked list.
4767 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
4768 "new" _1 versions of the same name.
4769 (multidictionary): Define.
4770 (std::hash<enum language): New definition.
4771 (collate_pending_symbols_by_language, mdict_create_hashed)
4772 (mdict_create_hashed_expandable, mdict_create_linear)
4773 (mdict_create_linear_expandable, mdict_free)
4774 (find_language_dictionary, create_new_language_dictionary)
4775 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
4776 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
4777 (mdict_size, mdict_empty): New functions.
4778 * dictionary.h (mdict_iterator): Define.
4779
47802019-01-10 Pedro Alves <palves@redhat.com>
4781
4782 * breakpoint.c (read_uploaded_action)
4783 (create_tracepoint_from_upload): Adjust to use
4784 gdb::unique_xmalloc_ptr.
4785 * ctf.c (ctf_write_uploaded_tp):
4786 (SET_ARRAY_FIELD): Use emplace_back.
4787 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
4788 * tracefile-tfile.c (tfile_write_uploaded_tp):
4789 * tracepoint.c (parse_tracepoint_definition): Adjust to use
4790 gdb::unique_xmalloc_ptr.
4791 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
4792 at_string, cond_string, cmd_strings>: Replace char pointers
4793 with gdb::unique_xmalloc_ptr.
4794
47952019-01-10 Pedro Alves <palves@redhat.com>
4796
4797 * solib-target.c (library_list_start_library): Don't xstrdup name.
4798
47992019-01-10 Pedro Alves <palves@redhat.com>
4800
4801 * mdebugread.c (parse_partial_symbols): Use
4802 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
4803
48042019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
4805
4806 * linux-fork.c (scoped_switch_fork_info)
4807 <~scoped_switch_fork_info>: Fix incorrect variable name.
4808
48092019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
4810
4811 * linux-fork.c (scoped_switch_fork_info)
4812 <scoped_switch_fork_info>: Make explicit.
4813 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
4814
48152019-01-10 Tom Tromey <tom@tromey.com>
4816
4817 * objfiles.h (objfile::reset_psymtabs): Update.
4818 * objfiles.c (objfile::objfile): Update.
4819 * psymtab.h (psymtab_storage::obstack): Update.
4820 (psymtab_storage::m_obstack): Use gdb::optional.
4821 (class psymtab_storage): Update comment. Remove objfile
4822 parameter.
4823 * psymtab.c (psymtab_storage::psymtab_storage): Update.
4824
48252019-01-10 Tom Tromey <tom@tromey.com>
4826
4827 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
4828 <free_psymtabs>: Now private.
4829 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
4830 (allocate_psymtab): Use new method.
4831
48322019-01-10 Tom Tromey <tom@tromey.com>
4833
4834 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
4835 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
4836 * mdebugread.c (parse_partial_symbols): Use
4837 allocate_dependencies.
4838 * dwarf2read.c (dwarf2_create_include_psymtab): Use
4839 allocate_dependencies.
4840 (process_psymtab_comp_unit_reader)
4841 (build_type_psymtab_dependencies): Likewise.
4842 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
4843
48442019-01-10 Tom Tromey <tom@tromey.com>
4845
4846 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
4847 PSYMBOL_SET_LANGUAGE.
4848 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
4849
48502019-01-10 Tom Tromey <tom@tromey.com>
4851
4852 * psymtab.h (psymtab_storage::obstack): New method.
4853 <m_obstack>: Rename from obstack; now private.
4854 * psymtab.c (psymtab_storage): Update.
4855 * dwarf2read.c (create_addrmap_from_index)
4856 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
4857 Update.
4858
48592019-01-10 Tom Tromey <tom@tromey.com>
4860
4861 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
4862 * objfiles.h (objfile::reset_psymtabs): New method.
4863
48642019-01-10 Tom Tromey <tom@tromey.com>
4865
4866 * symmisc.c (print_symbol_bcache_statistics): Update.
4867 (print_objfile_statistics): Update.
4868 * symfile.c (reread_symbols): Update.
4869 * psymtab.h (class psymtab_storage): New.
4870 * psymtab.c (psymtab_storage): New constructor.
4871 (~psymtab_storage): New destructor.
4872 (require_partial_symbols): Update.
4873 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
4874 (find_pc_sect_psymtab, find_pc_sect_psymbol)
4875 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
4876 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
4877 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
4878 (start_psymtab_common, end_psymtab_common)
4879 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
4880 (allocate_psymtab): Update.
4881 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
4882 Update.
4883 (dump_psymtab_addrmap, maintenance_print_psymbols)
4884 (maintenance_check_psymtabs): Update.
4885 (class objfile_psymtabs): Move to objfiles.h.
4886 * psympriv.h (discard_psymtab): Now inline.
4887 (psymtab_discarder::psymtab_discarder): Update.
4888 (psymtab_discarder::~psymtab_discarder): Update.
4889 (ALL_OBJFILE_PSYMTABS): Rewrite.
4890 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
4891 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
4892 Remove fields.
4893 <partial_symtabs>: New field.
4894 (class objfile_psymtabs): Move from psymtab.h. Update.
4895 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
4896 psymbol_cache.
4897 (objfile::~objfile): Don't destroy psymbol_cache.
4898 * mdebugread.c (parse_partial_symbols): Update.
4899 * dwarf2read.c (create_addrmap_from_index)
4900 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4901 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
4902 (add_partial_subprogram, dwarf2_ranges_read): Update.
4903 * dwarf-index-write.c (write_address_map)
4904 (write_one_signatured_type, recursively_write_psymbols)
4905 (class debug_names, class debug_names, write_psymtabs_to_index):
4906 Update.
4907
49082019-01-10 Tom Tromey <tom@tromey.com>
4909
4910 * symtab.h (SYMBOL_SET_NAMES): Update.
4911 (symbol_set_names): Update.
4912 (MSYMBOL_SET_NAMES): Update.
4913 * symtab.c (symbol_set_names): Change argument to be an
4914 objfile_per_bfd_storage.
4915 * psymtab.c (add_psymbol_to_bcache): Update.
4916 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
4917
49182019-01-10 Tom Tromey <tom@tromey.com>
4919
4920 * symtab.c (create_demangled_names_hash): Change argument to be an
4921 objfile_per_bfd_storage.
4922 (symbol_set_names): Update.
4923
49242019-01-10 Tom Tromey <tom@tromey.com>
4925
4926 * xcoffread.c (xcoff_initial_scan): Unconditionally call
4927 init_psymbol_list.
4928 * psymtab.c (init_psymbol_list): Do nothing if already called.
4929 * psympriv.h (init_psymbol_list): Add comment.
4930 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
4931 init_psymbol_list.
4932 * dbxread.c (dbx_symfile_read): Unconditionally call
4933 init_psymbol_list.
4934
49352019-01-10 Tom Tromey <tom@tromey.com>
4936
4937 * xcoffread.c (scan_xcoff_symtab): Update.
4938 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
4939 "where".
4940 * mdebugread.c (parse_partial_symbols)
4941 (handle_psymbol_enumerators): Update.
4942 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
4943 * dbxread.c (read_dbx_symtab): Update.
4944 * psympriv.h (psymbol_placement): New enum.
4945 (add_psymbol_to_list): Update.
4946
49472019-01-10 Tom Tromey <tom@tromey.com>
4948
4949 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
4950 static_psymbols parameters.
4951 (scan_xcoff_symtab): Update.
4952 * psymtab.c (start_psymtab_common): Remove global_psymbols and
4953 static_psymbols parameters.
4954 * psympriv.h (start_psymtab_common): Update.
4955 * mdebugread.c (parse_partial_symbols): Update.
4956 * dwarf2read.c (create_partial_symtab): Update.
4957 * dbxread.c (read_dbx_symtab): Update.
4958 (start_psymtab): Remove global_psymbols and static_psymbols
4959 parameters.
4960
49612019-01-10 Tom Tromey <tom@tromey.com>
4962
4963 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
4964 * psymtab.c (allocate_psymtab): Add comment.
4965 * psympriv.h (allocate_psymtab): Add comment.
4966 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
4967 initializations.
4968 * dbxread.c (dbx_end_psymtab): Remove some initializations.
4969
49702019-01-10 Tom Tromey <tom@tromey.com>
4971
4972 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
4973 Don't declare.
4974 * mipsread.c: Include mdebugread.h.
4975 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
4976 Declare.
4977 * elfread.c: Include mdebugread.h.
4978
49792019-01-09 Tom Tromey <tom@tromey.com>
4980
4981 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
4982 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
4983 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
4984 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
4985 (psym_lookup_symbol, psym_find_last_source_symtab)
4986 (psym_forget_cached_source_info, psym_print_stats)
4987 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
4988 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
4989 (psym_map_matching_symbols, psym_expand_symtabs_matching)
4990 (psym_find_compunit_symtab_by_address)
4991 (maintenance_print_psymbols, maintenance_info_psymtabs)
4992 (maintenance_check_psymtabs): Use ranged for.
4993 * psymtab.h (class objfile_psymtabs): New.
4994 (require_partial_symbols): Return objfile_psymtabs.
4995 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
4996
49972019-01-09 Tom Tromey <tom@tromey.com>
4998
4999 * symfile.c (overlay_invalidate_all, find_pc_overlay)
5000 (find_pc_mapped_section, list_overlays_command)
5001 (map_overlay_command, unmap_overlay_command)
5002 (simple_overlay_update): Use all_objfiles.
5003 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
5004 * printcmd.c (info_symbol_command): Use all_objfiles.
5005 * objfiles.h (ALL_OBJSECTIONS): Remove.
5006 * maint.c (maintenance_translate_address): Use all_objfiles.
5007 * gcore.c (gcore_create_callback): Use all_objfiles.
5008 (objfile_find_memory_regions): Likewise.
5009
50102019-01-09 Tom Tromey <tom@tromey.com>
5011
5012 * symtab.c (find_line_symtab, info_sources_command)
5013 (make_source_files_completion_list): Use objfile_compunits.
5014 * source.c (select_source_symtab): Use objfile_compunits.
5015 * objfiles.h (struct objfile): Update comment.
5016 (ALL_OBJFILES): Remove.
5017 (ALL_FILETABS): Remove.
5018 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
5019 objfile_compunits.
5020
50212019-01-09 Tom Tromey <tom@tromey.com>
5022
5023 * symmisc.c (print_objfile_statistics, dump_objfile)
5024 (maintenance_print_symbols): Use compunit_filetabs.
5025 * source.c (forget_cached_source_info_for_objfile): Use
5026 compunit_filetabs.
5027 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
5028 (ALL_FILETABS): Use compunit_filetabs.
5029 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
5030 * coffread.c (coff_symtab_read): Use compunit_filetabs.
5031
50322019-01-09 Tom Tromey <tom@tromey.com>
5033
5034 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
5035 (compunit_filetabs): New.
5036 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
5037 compunit_filetabs.
5038 (info_sources_command, make_source_files_completion_list): Remove
5039 declaration.
5040 * symmisc.c (print_objfile_statistics, dump_objfile)
5041 (maintenance_print_symbols): Remove declaration.
5042 (maintenance_info_symtabs): Use compunit_filetabs.
5043 (maintenance_info_line_tables): Likewise.
5044 * source.c (select_source_symtab): Change local variable name.
5045 (forget_cached_source_info_for_objfile): Remove declaration.
5046 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
5047 * objfiles.c (objfile_relocate1): Remove declaration.
5048 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
5049 declaration.
5050 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
5051 * coffread.c (coff_symtab_read): Remove declaration.
5052 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5053 compunit_filetabs.
5054
50552019-01-09 Tom Tromey <tom@tromey.com>
5056
5057 * symtab.c (lookup_objfile_from_block)
5058 (find_pc_sect_compunit_symtab, search_symbols)
5059 (default_collect_symbol_completion_matches_break_on): Use
5060 objfile_compunits.
5061 * objfiles.h (ALL_COMPUNITS): Remove.
5062 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
5063 * cp-support.c (add_symbol_overload_list_qualified): Use
5064 objfile_compunits.
5065 * ada-lang.c (ada_collect_symbol_completion_matches)
5066 (ada_add_global_exceptions): Use objfile_compunits.
5067
50682019-01-09 Tom Tromey <tom@tromey.com>
5069
5070 * source.c (select_source_symtab)
5071 (forget_cached_source_info_for_objfile): Remove declaration.
5072 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
5073 declaration.
5074 * maint.c (count_symtabs_and_blocks): Remove declaration.
5075 * cp-support.c (add_symbol_overload_list_qualified): Remove
5076 declaration.
5077 * coffread.c (coff_symtab_read): Remove declaration.
5078 * symtab.c (lookup_symbol_in_objfile_symtabs)
5079 (basic_lookup_transparent_type_1): Use objfile_compunits.
5080 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
5081 (info_sources_command, search_symbols)
5082 (default_collect_symbol_completion_matches_break_on)
5083 (make_source_files_completion_list): Remove declaration.
5084 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
5085 (ada_collect_symbol_completion_matches)
5086 (ada_add_global_exceptions): Remove declaration.
5087 * linespec.c (iterate_over_all_matching_symtabs): Use
5088 objfile_compunits.
5089 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
5090 (class objfile_compunits): New.
5091 (ALL_COMPUNITS): Use objfile_compunits.
5092 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
5093 (maintenance_check_symtabs, maintenance_info_line_tables): Use
5094 objfile_compunits.
5095 * objfiles.c (objfile_relocate1): Use objfile_compunits.
5096
50972019-01-09 Tom Tromey <tom@tromey.com>
5098
5099 * symtab.c (search_symbols)
5100 (default_collect_symbol_completion_matches_break_on): Use
5101 objfile_msymbols.
5102 * ada-lang.c (ada_lookup_simple_minsym)
5103 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
5104 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
5105 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
5106 objfile_msymbols.
5107 * coffread.c (coff_symfile_read): Use objfile_msymbols.
5108 * symmisc.c (dump_msymbols): Use objfile_msymbols.
5109 * objc-lang.c (find_methods): Use objfile_msymbols.
5110 (info_selectors_command, info_classes_command): Likewise.
5111 * stabsread.c (scan_file_globals): Use objfile_msymbols.
5112 * objfiles.h (class objfile_msymbols): New.
5113 (ALL_OBJFILE_MSYMBOLS): Remove.
5114 (ALL_MSYMBOLS): Remove.
5115
51162019-01-09 Tom Tromey <tom@tromey.com>
5117
5118 * common/next-iterator.h (next_adapter): Add Iterator template
5119 parameter.
5120 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
5121 (class all_objfiles_safe): New.
5122 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
5123 * objfiles.c (put_objfile_before): Update comment.
5124 (add_separate_debug_objfile): Likewise.
5125 (free_all_objfiles): Use all_objfiles_safe.
5126 (objfile_purge_solibs): Likewise.
5127
51282019-01-09 Tom Tromey <tom@tromey.com>
5129
5130 * symtab.c (iterate_over_symtabs, matching_obj_sections)
5131 (expand_symtab_containing_pc, lookup_static_symbol)
5132 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
5133 (find_symbol_at_address, find_line_symtab, find_main_name): Use
5134 all_objfiles.
5135 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
5136 * breakpoint.c (create_overlay_event_breakpoint)
5137 (create_longjmp_master_breakpoint)
5138 (create_std_terminate_master_breakpoint)
5139 (create_exception_master_breakpoint): Use all_objfiles.
5140 * linux-thread-db.c (try_thread_db_load_from_pdir)
5141 (has_libpthread): Use all_objfiles.
5142 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
5143 * linespec.c (iterate_over_all_matching_symtabs)
5144 (search_minsyms_for_name): Use all_objfiles.
5145 * maint.c (maintenance_info_sections): Use all_objfiles.
5146 * main.c (captured_main_1): Use all_objfiles.
5147 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
5148 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
5149 * guile/scm-pretty-print.c
5150 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
5151 * solib-spu.c (append_ocl_sos): Use all_objfiles.
5152 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
5153 (maintenance_print_msymbols): Use all_objfiles.
5154 * source.c (select_source_symtab): Use all_objfiles.
5155 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
5156 * symfile.c (remove_symbol_file_command)
5157 (expand_symtabs_matching, map_symbol_filenames): Use
5158 all_objfiles.
5159 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
5160 all_objfiles.
5161 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
5162 * objc-lang.c (find_methods): Use all_objfiles.
5163 * objfiles.c (have_partial_symbols, have_full_symbols)
5164 (have_minimal_symbols, qsort_cmp)
5165 (default_iterate_over_objfiles_in_search_order): Use
5166 all_objfiles.
5167 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
5168 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
5169 (maintenance_check_psymtabs): Use all_objfiles.
5170 (ALL_PSYMTABS): Remove.
5171 * compile/compile-object-run.c (do_module_cleanup): Use
5172 all_objfiles.
5173 * blockframe.c (find_pc_partial_function): Use all_objfiles.
5174 * cp-support.c (add_symbol_overload_list_qualified): Use
5175 all_objfiles.
5176 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
5177 Use all_objfiles.
5178 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
5179 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
5180 all_objfiles.
5181 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
5182 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
5183 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
5184 Uses all_objfiles.
5185 * solib.c (solib_read_symbols): Use all_objfiles
5186
51872019-01-09 Tom Tromey <tom@tromey.com>
5188
5189 * probe.c (parse_probes_in_pspace): Use all_objfiles.
5190 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
5191 all_objfiles.
5192 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
5193 * symmisc.c (print_symbol_bcache_statistics)
5194 (print_objfile_statistics, maintenance_print_objfiles)
5195 (maintenance_info_symtabs, maintenance_check_symtabs)
5196 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
5197 all_objfiles.
5198 * source.c (forget_cached_source_info): Use all_objfiles.
5199 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
5200 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
5201 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
5202 * objfiles.c (update_section_map): Use all_objfiles.
5203 (shared_objfile_contains_address_p): Likewise.
5204 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
5205 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
5206
52072019-01-09 Tom Tromey <tom@tromey.com>
5208
5209 * common/next-iterator.h: New file.
5210 * objfiles.h (class all_objfiles): New.
5211 (struct objfile_iterator): New.
5212
52132019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5214
5215 * NEWS: Move the description of the changed "frame", "select-frame",
5216 and "info frame" commands to the Changed commands section.
5217
52182019-01-09 Simon Marchi <simon.marchi@ericsson.com>
5219
5220 * gdbtypes.c (check_stub_method_group): Remove handling of old
5221 mangling schemes.
5222 * linespec.c (find_methods): Likewise.
5223 * stabsread.c (read_member_functions): Likewise.
5224 * valops.c (search_struct_method): Likewise.
5225 (value_struct_elt_for_reference): Likewise.
5226 * NEWS: Mention this change.
5227
52282019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
5229
5230 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
5231 print_source_lines.
5232 * source.c (print_source_lines_base): Update line number check.
5233 (print_source_lines): New function.
5234 (source_lines_range::source_lines_range): New function.
5235 * source.h (class source_lines_range): New class.
5236 (print_source_lines): New declaration.
5237
52382019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5239
5240 * linespec.c (linespec_state_destructor): Free self->canonical_names.
5241
52422019-01-08 Tom Tromey <tom@tromey.com>
5243 Simon Marchi <simon.marchi@ericsson.com>
5244
5245 PR gdb/24060
5246 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
5247 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
5248 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
5249 * f-exp.y (DOLLAR_VARIABLE): Likewise.
5250 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
5251 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
5252
52532019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5254
5255 * source.c (select_source_symtab): Move header comment to
5256 declaration in source.h.
5257 (forget_cached_source_info_for_objfile): Likewise.
5258 (forget_cached_source_info): Likewise.
5259 (identify_source_line): Likewise.
5260 * source.h (identify_source_line): Move declaration from symtab.h
5261 and add comment from source.c
5262 (print_source_lines): Likewise.
5263 (forget_cached_source_info_for_objfile): Likewise.
5264 (forget_cached_source_info): Likewise.
5265 (select_source_symtab): Likewise.
5266 (enum print_source_lines_flag): Move definition from symtab.h.
5267 * symtab.h (identify_source_line): Move declaration to source.h.
5268 (print_source_lines): Likewise.
5269 (forget_cached_source_info_for_objfile): Likewise.
5270 (forget_cached_source_info): Likewise.
5271 (select_source_symtab): Likewise.
5272 (enum print_source_lines_flag): Move definition to source.h.
5273 * tui/tui-hooks.c: Add 'source.h' include.
5274
52752019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5276
5277 * source.c (print_source_lines_base): Handle requests to print
5278 reverse line number sequences, and guard against empty lines
5279 string.
5280
52812019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5282
5283 * source.c (print_source_lines_base): Fix skip of '\r' if next
5284 character is '\n'.
5285
52862019-01-06 Tom Tromey <tom@tromey.com>
5287
5288 * c-exp.y (struct c_parse_state) <macro_original_text,
5289 expansion_obstack>: New member.
5290 (macro_original_text, expansion_obstack): Remove globals.
5291 (scan_macro_expansion, scanning_macro_expansion)
5292 (finished_macro_expansion): Update.
5293 (scan_macro_cleanup): Remove.
5294 (yylex, c_parse): Update.
5295
52962019-01-06 Tom Tromey <tom@tromey.com>
5297
5298 * c-exp.y (struct c_parse_state) <strings>: New member.
5299 (operator_stoken): Update.
5300
53012019-01-06 Tom Tromey <tom@tromey.com>
5302
5303 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
5304 (union type_stack_elt) <typelist_val>: Now a pointer to
5305 std::vector.
5306 (type_stack_cleanup): Don't declare.
5307 (push_typelist): Update.
5308 * parse.c (pop_typelist): Return a std::vector.
5309 (push_typelist): Take a std::vector.
5310 (follow_types): Update. Do not free args.
5311 (type_stack_cleanup): Remove.
5312 * c-exp.y (struct c_parse_state): New.
5313 (cpstate): New global.
5314 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
5315 (nonempty_typelist): Update.
5316 (func_mod): Create a new vector.
5317 (c_parse): Create a c_parse_state.
5318 (check_parameter_typelist): Do not delete params.
5319 (function_method): Update. Do not delete type_list.
5320
53212019-01-06 Tom Tromey <tom@tromey.com>
5322
5323 PR gdb/28155:
5324 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
5325 check_typedef.
5326 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
5327 (print_return_value): Likewise.
5328
53292019-01-05 Tom Tromey <tom@tromey.com>
5330
5331 * contrib/cleanup_check.py: Remove.
5332 * contrib/gcc-with-excheck: Remove.
5333 * contrib/exsummary.py: Remove.
5334 * contrib/excheck.py: Remove.
5335
53362019-01-05 Joel Brobecker <brobecker@adacore.com>
5337
5338 * thread.c (delete_thread_1): Add gdb_assert that THR is not
5339 NULL. Initialize tpprev to NULL instead of assigning it
5340 to NULL on the next statement.
5341 * windows-nat.c (windows_delete_thread): Remove check for
5342 main_thread_id before printing thread exit notifications.
5343 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
5344 Remove thread ID check against main_thread_id.
5345 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
5346 windows_delete_thread.
5347 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
5348
53492019-01-04 Tom Tromey <tom@tromey.com>
5350
5351 * compile/compile.c (_initialize_compile): Use upper case for
5352 metasyntactic variables.
5353 * symmisc.c (_initialize_symmisc): Use upper case for
5354 metasyntactic variables.
5355 * psymtab.c (_initialize_psymtab): Use upper case for
5356 metasyntactic variables.
5357 * demangle.c (demangle_command): Use upper case for metasyntactic
5358 variables.
5359 (_initialize_demangler): Likewise.
5360 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
5361 variables.
5362
53632019-01-03 Tom Tromey <tom@tromey.com>
5364
5365 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
5366
53672019-01-03 Tom Tromey <tom@tromey.com>
5368
5369 * python/py-symtab.c (salpy_str): Update.
5370 (struct salpy_sal_object) <symtab>: Now a PyObject.
5371 (salpy_dealloc): Update.
5372 (del_objfile_sal): Use gdbpy_ref.
5373
53742019-01-03 Tom Tromey <tom@tromey.com>
5375
5376 * python/py-type.c (convert_field): Use new_reference. Return
5377 gdbpy_ref.
5378 (make_fielditem): Return gdbpy_ref.
5379 (typy_fields): Update.
5380 (typy_getitem): Update.
5381 (field_name): Return gdbpy_ref. Use new_reference.
5382 (typy_iterator_iternext): Update.
5383
53842019-01-03 Tom Tromey <tom@tromey.com>
5385
5386 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
5387
53882019-01-03 Tom Tromey <tom@tromey.com>
5389
5390 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
5391 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
5392 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
5393 (pspy_set_frame_filters, pspy_set_frame_unwinders)
5394 (pspy_set_type_printers): Likewise.
5395 * python/py-function.c (fnpy_init): Use gdbpy_ref.
5396 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
5397 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
5398 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
5399 (objfpy_set_type_printers): Likewise.
5400
54012019-01-03 Tom Tromey <tom@tromey.com>
5402
5403 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
5404 (gdbpy_print_stack): Use gdbpy_err_fetch.
5405 * python/python-internal.h (class gdbpy_err_fetch): New class.
5406 (class gdbpy_enter) <m_error_type, m_error_value,
5407 m_error_traceback>: Remove.
5408 <m_error>: New member.
5409 (gdbpy_exception_to_string): Don't declare.
5410 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
5411 * python/py-value.c (convert_value_from_python): Use
5412 gdbpy_err_fetch.
5413 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
5414 gdbpy_exception_to_string.
5415 (gdbpy_handle_exception): Use gdbpy_err_fetch.
5416 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
5417 gdbpy_err_fetch.
5418
54192019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5420
5421 * linux-nat.c (delete_lwp_cleanup): Delete.
5422 (struct lwp_deleter): New struct.
5423 (lwp_info_up): New typedef.
5424 (linux_nat_target::follow_fork): Delete cleanup, and make use of
5425 lwp_info_up.
5426
54272019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5428
5429 * linux-fork.c (class scoped_switch_fork_info): New class.
5430 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
5431
54322019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5433
5434 * valops.c (find_overload_match): Remove use of null_cleanup, and
5435 calls to do_cleanups.
5436
54372019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5438
5439 * compile/compile-cplus-types.c
5440 (compile_cplus_instance::decl_name): Handle changes to
5441 cp_func_name.
5442 * cp-support.c (cp_func_name): Update header comment, update
5443 return type.
5444 * cp-support.h (cp_func_name): Update return type in declaration.
5445 * valops.c (find_overload_match): Move temp_func local to top
5446 level of function and change its type. Use temp_func to hold and
5447 delete temporary string obtained from cp_func_name.
5448
54492019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5450
5451 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
5452 gdb::char_vector, remove cleanup, and update uses of `msg`.
5453
54542019-01-03 Jim Wilson <jimw@sifive.com>
5455
5456 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
5457
54582019-01-02 Tom Tromey <tom@tromey.com>
5459
5460 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
5461 (tdesc_parse_xml): Remove cleanups.
5462 * target-descriptions.h (make_cleanup_free_target_description):
5463 Don't declare.
5464 (target_desc_deleter): New struct.
5465 (target_desc_up): New typedef.
5466 * target-descriptions.c (target_desc_deleter::operator()): Rename
5467 from free_target_description.
5468 (make_cleanup_free_target_description): Remove.
5469
54702019-01-02 Tom Tromey <tom@tromey.com>
5471
5472 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
5473 constructor, destructor.
5474 (linespec_parser): Remove typedef.
5475 (~linespec_parser): Rename from linespec_parser_delete.
5476 (linespec_lex_to_end, linespec_complete_label)
5477 (linespec_complete): Update.
5478 (decode_line_full): Remove cleanups.
5479 (decode_line_1): Update.
5480
54812019-01-02 Tom Tromey <tom@tromey.com>
5482
5483 * python/python-internal.h (inferior_to_inferior_object): Change
5484 return type.
5485 * python/py-exitedevent.c (create_exited_event_object): Update.
5486 * python/py-inferior.c (inferior_to_inferior_object): Return
5487 gdbpy_ref.
5488 (python_new_inferior, python_inferior_deleted)
5489 (thread_to_thread_object, delete_thread_object)
5490 (build_inferior_list, gdbpy_selected_inferior): Update.
5491 * python/py-infthread.c (create_thread_object): Update. Also fail
5492 if inferior_to_inferior_object fails.
5493
54942019-01-02 Simon Marchi <simon.marchi@ericsson.com>
5495
5496 * inferior.h (class inferior) <displaced_step_state>: New field.
5497 * infrun.h (struct displaced_step_state): Move here from
5498 infrun.c. Initialize fields, add constructor.
5499 <inf>: Remove field.
5500 <reset>: New method.
5501 * infrun.c (struct displaced_step_inferior_state): Move to
5502 infrun.h.
5503 (displaced_step_inferior_states): Remove.
5504 (get_displaced_stepping_state): Adust.
5505 (displaced_step_in_progress_any_inferior): Adjust.
5506 (displaced_step_in_progress_thread): Adjust.
5507 (displaced_step_in_progress): Adjust.
5508 (add_displaced_stepping_state): Remove.
5509 (get_displaced_step_closure_by_addr): Adjust.
5510 (remove_displaced_stepping_state): Remove.
5511 (infrun_inferior_exit): Call displaced_step_state.reset.
5512 (use_displaced_stepping): Don't check for NULL.
5513 (displaced_step_prepare_throw): Call
5514 get_displaced_stepping_state.
5515 (displaced_step_fixup): Don't check for NULL.
5516 (prepare_for_detach): Don't check for NULL.
5517
55182019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5519
5520 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
5521 in case of call that did not complete.
5522
55232019-01-02 Andrey Utkin <autkin@undo.io>
5524
5525 * symfile.c (find_separate_debug_file): Fix search of debug files for
5526 remote debuggee.
5527
55282019-01-02 Tom Tromey <tom@tromey.com>
5529
5530 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
5531 indentation.
5532 * python/py-frame.c (frapy_older): Remove cast.
5533 (frapy_newer): Likewise.
5534 * python/py-breakpoint.c (local_setattro): Remove cast.
5535 * python/py-arch.c (archpy_name): Remove local variable.
5536 * python/py-type.c (gdbpy_lookup_type): Remove cast.
5537
55382019-01-02 Joel Brobecker <brobecker@adacore.com>
5539
5540 * unittests/basic_string_view/element_access/char/empty.cc:
5541 Fix year range in copyright header.
5542
55432019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
5544
5545 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
5546 Delete.
5547 <operator==>: Update with for removed field.
5548 <hash>: Likewise.
5549 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
5550 <isa_features>: ...this.
5551 <abi_features>: New field.
5552 (riscv_isa_flen): Update comment.
5553 (riscv_abi_xlen): New declaration.
5554 (riscv_abi_flen): New declaration.
5555 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
5556 isa_features.
5557 (riscv_abi_xlen): New function.
5558 (riscv_isa_flen): Update to get answer from isa_features.
5559 (riscv_abi_flen): New function.
5560 (riscv_has_fp_abi): Update to get answer from abi_features.
5561 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
5562 xlen and flen.
5563 (riscv_call_info) <xlen, flen>: Update comment.
5564 (riscv_call_arg_struct): Remove invalid assertions
5565 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
5566 is removed.
5567 (riscv_gdbarch_init): Gather isa features and abi features
5568 separately, ensure both match on the gdbarch when reusing an old
5569 gdbarch. Relax an error check to allow 32-bit abi float to run on
5570 a target with 64-bit float hardware.
5571
55722019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5573
5574 * source.c (search_command_helper): Stop reverse search
5575 when line 1 has been searched.
5576
55772019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5578
5579 * record-full.c (record_full_base_target::close): Rewrite
5580 record_full_core_buf_list free logic.
5581
55822019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5583
5584 * break-catch-syscall.c (print_one_catch_syscall): xfree
5585 the last text.
5586
55872019-01-01 Joel Brobecker <brobecker@adacore.com>
5588
5589 * top.c (print_gdb_version): Update Copyright year in version
5590 message.
5591
55922019-01-01 Joel Brobecker <brobecker@adacore.com>
5593
5594 Update copyright year range in all GDB files.
5595
55962019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
5597
5598 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
5599
5600For older changes see ChangeLog-2018.
5601\f
5602Local Variables:
5603mode: change-log
5604left-margin: 8
5605fill-column: 74
5606version-control: never
5607coding: utf-8
5608End:
5609