1 2019-04-25 Tom Tromey <tromey@adacore.com>
3 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6 (gdb_xml_parser::parse): Use std::move.
7 * python/python-internal.h (gdbpy_convert_exception): Take a const
9 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
11 * python/py-utils.c (gdbpy_convert_exception): Take a const
13 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
15 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
17 * mi/mi-main.c (mi_print_exception): Take a const reference.
18 * main.c (handle_command_errors): Take a const reference.
19 * linespec.c (parse_linespec): Use std::move.
20 * infcall.c (run_inferior_call): Use std::move.
21 (call_function_by_hand_dummy): Use std::move.
22 * exec.c (try_open_exec_file): Use std::move.
23 * exceptions.h (exception_print, exception_fprintf)
24 (exception_print_same): Update.
25 * exceptions.c (print_exception, exception_print)
26 (exception_fprintf, exception_print_same): Change parameters to
28 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
29 * common/new-op.c: Use std::move.
30 * common/common-exceptions.h (struct gdb_exception): Add move
32 (struct gdb_exception_error, struct gdb_exception_quit, struct
33 gdb_quit_bad_alloc): Change constructor to move constructor.
34 (throw_exception): Change parameter to rvalue reference.
35 * common/common-exceptions.c (throw_exception): Take rvalue
37 * cli/cli-interp.c (safe_execute_command): Use std::move.
38 * breakpoint.c (insert_bp_location, location_to_sals): Use
41 2019-04-25 Tom Tromey <tromey@adacore.com>
43 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
44 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
45 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
46 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
47 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
48 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
49 guile/scm-value.c: Use unpack.
50 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
52 (gdbscm_throw_gdb_exception): Likewise.
53 (struct gdbscm_gdb_exception): New.
54 (unpack): New function.
55 (gdbscm_wrap): Use unpack.
57 2019-04-25 Tom Tromey <tromey@adacore.com>
59 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
60 (gdb_rl_callback_handler): Use std::move.
61 * common/common-exceptions.h (struct gdb_exception): Add move
63 (throw_exception_sjlj): Change "exception" to const reference.
64 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
65 (throw_exception_sjlj): Change "exception" to const reference.
67 2019-04-25 Tom Tromey <tromey@adacore.com>
69 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
70 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
71 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
73 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
75 * mi/mi-interp.c (mi_interp::exec): Update.
76 * linespec.c (parse_linespec): Update.
77 * infcall.c (run_inferior_call): Update.
78 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
79 * guile/scm-symbol.c (gdbscm_lookup_symbol)
80 (gdbscm_lookup_global_symbol): Update.
81 * guile/scm-param.c (gdbscm_parameter_value): Update.
82 * guile/scm-frame.c (gdbscm_frame_read_register)
83 (gdbscm_frame_read_var): Update.
84 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
85 * exec.c (try_open_exec_file): Update.
86 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
87 (gdb_rl_callback_handler): Update.
88 * common/common-exceptions.h (exception_none): Don't declare.
89 * common/common-exceptions.c (exception_none): Don't define.
90 (struct catcher) <exception>: Update.
91 * cli/cli-interp.c (safe_execute_command): Update.
92 * breakpoint.c (insert_bp_location, location_to_sals): Update.
94 2019-04-25 Ali Tamur <tamur@google.com>
96 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
97 (read_attribute_value): Likewise.
98 (dwarf2_read_addr_index): Update comment.
99 (read_str_index): Add DW_FORM_strx.
100 (dwarf2_string_attr): Likewise.
101 (dwarf2_const_value_attr): Likewise.
102 (dump_die_shallow): Likewise.
103 (dwarf2_fetch_constant_bytes): Likewise.
104 (skip_form_bytes): Likewise.
105 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
107 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
111 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
112 OFFSET. Verify if current mapping contains an ELF header.
113 (linux_find_memory_regions_full): Adjust call to
116 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
117 Kang Li <kanglictf@gmail.com>
121 * dwarf2-frame.c (read_initial_length): Be consistent about using
122 unsigned representation of length.
123 (decode_frame_entry_1): Likewise. Check for wraparound of
124 end pointer as well as buffer overflow.
126 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
128 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
131 2019-04-24 Tom Tromey <tromey@adacore.com>
133 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
135 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
137 * s12z-tdep.c (s12z_unwind_pc): Delete.
138 (s12z_unwind_sp): Delete.
139 (s12z_gdbarch_init): Don't register deleted functions with
142 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
144 * rl78-tdep.c (rl78_unwind_sp): Delete.
145 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
147 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
149 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
150 (xstormy16_unwind_pc): Delete.
151 (xstormy16_dummy_id): Delete.
152 (xstormy16_gdbarch_init): Don't register deleted functions with
155 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
157 * vax-tdep.c (vax_unwind_pc): Delete.
158 (vax_gdbarch_init): Don't register deleted function with gdbarch.
160 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
162 * v850-tdep.c (v850_unwind_sp): Delete.
163 (v850_unwind_pc): Delete.
164 (v850_dummy_id): Delete.
165 (v850_gdbarch_init): Don't register deleted functions with
168 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
170 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
171 (tilegx_unwind_pc): Delete.
172 (tilegx_unwind_dummy_id): Delete.
173 (tilegx_gdbarch_init): Don't register deleted functions with
176 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
178 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
179 (tic6x_dummy_id): Delete.
180 (tic6x_gdbarch_init): Don't register deleted functions with
183 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
185 * sparc-tdep.c (sparc_unwind_pc): Delete.
186 (sparc32_gdbarch_init): Don't register deleted function with
189 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
191 * sh-tdep.c (sh_unwind_sp): Delete.
192 (sh_unwind_pc): Delete.
193 (sh_dummy_id): Delete.
194 (sh_gdbarch_init): Don't register deleted functions with
197 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
199 * score-tdep.c (score_unwind_sp): Delete.
200 (score_unwind_pc): Delete.
201 (score_dummy_id): Delete.
202 (score_gdbarch_init): Don't register deleted functions with
205 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
207 * rx-tdep.c (rx_unwind_pc): Delete.
208 (rx_unwind_sp): Delete.
209 (rx_dummy_id): Delete.
210 (rx_gdbarch_init): Don't register deleted functions with
211 gdbarch. Update comment.
213 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
215 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
216 (rs6000_dummy_id): Delete.
217 (rs6000_gdbarch_init): Don't register deleted functions with
220 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
222 * or1k-tdep.c (or1k_dummy_id): Delete.
223 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
225 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
227 * nios2-tdep.c (nios2_dummy_id): Delete.
228 (nios2_unwind_sp): Delete.
229 (nios2_gdbarch_init): Don't register deleted functions with
232 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
234 * nds32-tdep.c (nds32_dummy_id): Delete.
235 (nds32_unwind_pc): Delete.
236 (nds32_unwind_sp): Delete.
237 (nds32_gdbarch_init): Don't register deleted functions with
240 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
242 * msp430-tdep.c (msp430_unwind_pc): Delete.
243 (msp430_unwind_sp): Delete.
244 (msp430_dummy_id): Delete.
245 (msp430_gdbarch_init): Don't register deleted functions with
248 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
250 * moxie-tdep.c (moxie_unwind_sp): Delete.
251 (moxie_unwind_pc): Delete.
252 (moxie_dummy_id): Delete.
253 (moxie_gdbarch_init): Don't register deleted functions with
256 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
258 * mn10300-tdep.c (mn10300_dummy_id): Delete.
259 (mn10300_unwind_pc): Delete.
260 (mn10300_unwind_sp): Delete.
261 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
263 (mn10300_frame_unwind_init): Don't register deleted functions with
266 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
268 * mep-tdep.c (mep_unwind_pc): Delete.
269 (mep_unwind_sp): Delete.
270 (mep_dummy_id): Delete.
271 (mep_gdbarch_init): Don't register deleted functions with
274 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
276 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
277 (m68hc11_unwind_sp): Delete.
278 (m68hc11_gdbarch_init): Don't register deleted functions with
281 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
283 * m32r-tdep.c (m32r_unwind_sp): Delete.
284 (m32r_unwind_pc): Delete.
285 (m32r_dummy_id): Delete.
286 (m32r_gdbarch_init): Don't register deleted functions with
289 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
291 * m32c-tdep.c (m32c_unwind_pc): Delete.
292 (m32c_unwind_sp): Delete.
293 (m32c_dummy_id): Delete.
294 (m32c_gdbarch_init): Don't register deleted functions with
297 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
299 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
300 (lm32_unwind_pc): Delete.
301 (lm32_dummy_id): Delete.
302 (lm32_gdbarch_init): Don't register deleted functions with
305 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
307 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
308 (iq2000_unwind_pc): Delete.
309 (iq2000_dummy_id): Delete.
310 (iq2000_gdbarch_init): Don't register deleted functions with
313 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
315 * nds32-tdep.c (nds32_type_align): Delete.
316 (nds32_push_dummy_call): Use type_align instead.
318 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
320 * arm-tdep.c (arm_type_align): Only handle vector override case.
321 (arm_push_dummy_call): Use type_align.
322 (arm_gdbarch_init): Register arm_type_align gdbarch function.
324 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
326 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
328 (pass_on_stack): Use type_align.
329 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
332 2019-04-23 Tom Tromey <tromey@adacore.com>
334 * dwarf2read.c (line_header::file_name_at): Remove unused
337 2019-04-23 Tom de Vries <tdevries@suse.de>
340 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
344 2019-03-27 Ali Tamur <tamur@google.com>
346 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
347 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
348 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
349 (dwarf_expr_context::get_addr_index): Likewise
350 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
351 (symbol_needs_eval_context::get_addr_index): Likewise
352 (disassemble_dwarf_expression): Add DW_OP_addrx
353 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
354 (read_cutu_die_from_dwo): Update comment
355 (skip_one_die): Add DW_FORM_addrx
356 (read_attribute_value): Likewise
357 (var_decode_location): Add DW_OP_addrx
358 (dwarf2_const_value_attr): Add DW_FORM_addrx
359 (dump_die_shallow): Likewise
360 (dwarf2_fetch_constant_bytes): Likewise
361 (decode_locdesc): Add DW_OP_addrx
362 (skip_form_bytes): Add DW_FORM_addrx
364 2019-04-22 Ali Tamur <tamur@google.com>
366 * MAINTAINERS (Write After Approval): Add self.
368 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
370 * solib-svr4.c (get_svr4_info): Add pspace parameter.
371 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
372 (open_symbol_file_object): Likewise.
373 (svr4_default_sos): Add info parameter.
374 (svr4_read_so_list): Likewise.
375 (svr4_current_sos_direct): Adjust functions calls to pass down
377 (svr4_current_sos_1): Add info parameter.
378 (svr4_current_sos): Call get_svr4_info, pass info down to
380 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
382 (svr4_in_dynsym_resolve_code): Pass current_program_space to
384 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
386 (probes_table_remove_objfile_probes): Likewise.
387 (register_solib_event_probe): Add info parameter.
388 (solist_update_incremental): Pass info parameter down to
390 (disable_probes_interface): Add info parameter.
391 (svr4_handle_solib_event): Pass current_program_space to
392 get_svr4_info. Adjust disable_probes_interface cleanup.
393 (svr4_create_probe_breakpoints): Add info parameter, pass it
394 down to register_solib_event_probe.
395 (svr4_create_solib_event_breakpoints): Add info parameter,
396 pass it down to svr4_create_probe_breakpoints.
397 (enable_break): Pass info down to
398 svr4_create_solib_event_breakpoints.
399 (svr4_solib_create_inferior_hook): Pass current_program_space to
401 (svr4_clear_solib): Likewise.
403 2019-04-22 Pedro Alves <palves@redhat.com>
405 * solib-svr4.c (svr4_free_objfile_observer): New.
406 (probe_and_action::objfile): New field.
407 (probes_table_htab_remove_objfile_probes)
408 (probes_table_remove_objfile_probes): New functions.
409 (register_solib_event_probe): Add 'objfile' parameter. Store it
410 in the new probe_and_action. Don't store the probe in 'lookup'.
411 (svr4_create_probe_breakpoints): Pass objfile to
412 register_solib_event_probe.
413 (_initialize_svr4_solib): Register a free_objfile observer.
415 2019-04-19 Tom Tromey <tom@tromey.com>
417 * common/queue.h: Remove.
419 2019-04-19 Tom Tromey <tom@tromey.com>
421 * event-loop.c: Don't include "common/queue.h".
423 2019-04-19 Tom Tromey <tom@tromey.com>
425 * remote.c (remote_target): Use delete.
426 * remote-notif.h: Include <list>, not "common/queue.h".
427 (notif_client_p): Remove typedef.
428 (remote_notif_state): Add constructor, destructor, initializer.
429 <notif_queue>: Now a std::list.
430 (remote_notif_state_xfree): Don't declare.
431 * remote-notif.c (remote_notif_process, handle_notification)
432 (remote_notif_state_allocate): Update.
433 (~remote_notif_state): Rename from remote_notif_state_xfree.
435 2019-04-19 Tom Tromey <tom@tromey.com>
437 * symfile.c (reread_symbols): Update.
438 * objfiles.c (objfile_register_static_link)
439 (objfile_lookup_static_link): Update
440 (~objfile) Don't delete static_links.
441 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
443 2019-04-19 Tom Tromey <tom@tromey.com>
445 * type-stack.h (struct type_stack) <insert>: Constify string.
446 * type-stack.c (type_stack::insert): Constify string.
447 * gdbtypes.h (lookup_template_type): Update.
448 (address_space_name_to_int): Update.
449 * gdbtypes.c (address_space_name_to_int): Make space_identifier
451 (lookup_template_type): Make name const.
452 * c-exp.y: Update rules.
453 (lex_one_token, classify_name, classify_inner_name)
454 (c_print_token): Update.
455 * p-exp.y: Update rules.
457 * f-exp.y: Update rules.
459 * d-exp.y: Update rules.
460 (lex_one_token, classify_name, classify_inner_name): Update.
461 * parse.c (write_dollar_variable, copy_name): Return std::string.
462 * parser-defs.h (copy_name): Change return type.
463 * m2-exp.y: Update rules.
465 * go-exp.y (lex_one_token): Update.
467 (classify_unsafe_function, classify_packaged_name)
468 (classify_name, yylex): Update.
470 2019-04-19 Sergei Trofimovich <siarheit@google.com>
472 * configure.ac: add --enable-source-highlight switch.
473 * configure: Regenerate.
474 * top.c (print_gdb_version): plumb --enable-source-highlight
475 status to "show configuration".
477 2019-04-19 Tom Tromey <tromey@adacore.com>
479 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
481 (empty_record, ada_template_to_fixed_record_type_1)
482 (template_to_static_fixed_type)
483 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
484 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
485 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
488 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
491 * source.c (print_source_lines_base): Advance "iter" when a
492 control character is seen.
494 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
496 * inferior.h (struct infcall_suspend_state_deleter):
497 Catch exception in destructor to avoid crash.
499 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
501 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
502 close to the add_com "shell".
504 2019-04-18 Tom Tromey <tromey@adacore.com>
506 * process-stratum-target.h (class process_stratum_target)
507 <stratum>: Add "final".
509 2019-04-17 Tom Tromey <tromey@adacore.com>
511 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
512 against nullptr before use.
514 2019-04-17 Alan Hayward <alan.hayward@arm.com>
516 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
518 2019-04-17 Jim Wilson <jimw@sifive.com>
519 Andrew Burgess <andrew.burgess@embecosm.com>
521 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
522 code read might fail, assume 4-byte breakpoint in that case.
524 2019-04-15 Leszek Swirski <leszeks@google.com>
526 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
527 rather than a hand-rolled POD check when checking for forced MEMORY
530 2019-04-15 Alan Hayward <alan.hayward@arm.com>
532 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
533 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
535 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
536 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
537 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
540 2019-04-15 Alan Hayward <alan.hayward@arm.com>
542 * aarch64-linux-nat.c
543 (aarch64_linux_nat_target::thread_architecture): Add override.
544 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
547 2019-04-15 Alan Hayward <alan.hayward@arm.com>
549 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
551 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
553 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
554 target types of size 96-bits, add some additional comments, and
555 check that the builtin type we found was the correct size.
557 2019-04-12 Eli Zaretskii <eliz@gnu.org>
559 * utils.c (prompt_for_continue): Don't restore the styling at the
560 end, as applied_style has the wrong value. This fixes styling in
561 long lists of file names that are interrupted by the "Continue?"
564 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
566 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
567 * c-lang.c (c_language_defn): Likewise.
568 (cplus_language_defn): Likewise.
569 (asm_language_defn): Likewise.
570 (minimal_language_defn): Likewise.
571 * d-lang.c (d_language_defn): Likewise.
572 * f-lang.c (f_language_defn): Likewise.
573 * go-lang.c (go_language_defn): Likewise.
574 * language.c (unknown_language_defn): Likewise.
575 (auto_language_defn): Likewise.
576 * language.h (struct language_defn): Remove la_magic field.
577 (LANG_MAGIC): Delete.
578 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
579 * objc-lang.c (objc_language_defn): Likewise.
580 * opencl-lang.c (opencl_language_defn): Likewise.
581 * p-lang.c (pascal_language_defn): Likewise.
582 * rust-lang.c (rust_language_defn): Likewise.
584 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
586 * riscv-tdep.c (riscv_type_align): New function.
587 (riscv_type_alignment): Delete.
588 (riscv_arg_location): Use 'type_align'.
589 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
591 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
593 * gdbtypes.c (type_align): A struct with no non-static fields also
596 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
598 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
600 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
602 (riscv_struct_info::analyse): New implementation using new
603 analyse_inner member function.
604 (riscv_struct_info::field_offset): New member function.
605 (riscv_struct_info::m_offsets): New member variable.
606 (riscv_struct_info::analyse_inner): New private member function,
607 takes the old implementation of riscv_struct_info::analyse but
608 extended to track field offsets.
609 (riscv_call_arg_struct): Update the struct folding special cases
610 to handle cases where empty C++ structs, which are non-zero
612 (riscv_arg_location): Initialise the length of each location, a
613 non-zero length now indicates the location is in use.
614 (riscv_push_dummy_call): Allow for the first location having a
615 non-zero offset when setting up arguments.
616 (riscv_return_value): Likewise, but for return values.
618 2019-04-11 Tom Tromey <tromey@adacore.com>
620 * utils.c (internal_vproblem): Make "msg" const.
622 2019-04-11 Alan Hayward <alan.hayward@arm.com>
624 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
625 * trad-frame.c (trad_frame_reset_saved_regs): New function.
626 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
627 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
629 2019-04-10 Kevin Buettner <kevinb@redhat.com>
631 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
633 (fill_gregset): Call amd64_linux_collect_native_gregset instead
634 of amd64_collect_native_gregset.
635 (amd64_linux_nat_target::store_registers): Likewise.
637 2019-04-10 Tom Tromey <tom@tromey.com>
639 * symtab.c (lookup_global_symbol_from_objfile)
640 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
641 * objfiles.h (class separate_debug_iterator): New.
642 (class separate_debug_range): New.
643 (struct objfile) <separate_debug_objfiles>: New method.
644 (objfile_separate_debug_iterate): Don't declare.
645 * objfiles.c (separate_debug_iterator::operator++): Rename from
646 objfile_separate_debug_iterate.
647 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
649 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
652 2019-04-10 Tom Tromey <tom@tromey.com>
654 * symfile.c (reread_symbols): Remove old comment.
655 * objfiles.c (free_all_objfiles): Fix a typo.
657 2019-04-10 Tom Tromey <tom@tromey.com>
659 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
660 * minsyms.c (lookup_minimal_symbol): Use foreach.
661 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
662 (lookup_minimal_symbol_solib_trampoline): Likewise.
663 * symfile.c (reread_symbols): Use foreach.
665 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
666 Tom Tromey <tromey@adacore.com>
669 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
670 (rust_lex_int_test): Change "value" to be LONGEST.
671 (rust_lex_tests): Add test for long integer literal.
673 2019-04-09 Tom Tromey <tromey@adacore.com>
675 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
677 (extended_remote_target::attach): Update.
678 (remote_target::remote_notice_new_inferior): Update.
679 (remote_target::add_current_inferior_and_thread): Update.
680 * inferior.c (exit_inferior_1): Use "false".
681 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
683 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
685 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
688 2019-04-08 Kevin Buettner <kevinb@redhat.com>
690 * python/py-inferior.c (infpy_thread_from_thread_handle):
691 Adjust comments to reflect renaming of thread_from_thread_handle
692 to thread_from_handle. Adjust keywords. Fix type error message.
693 (inferior_object_methods): Add thread_from_handle. Retain
694 thread_from_thread_handle, but mark it as deprecated.
696 2019-04-08 Kevin Buettner <kevinb@redhat.com>
698 * gdbthread.h (find_thread_by_handle): Revise declaration.
699 * thread.c (find_thread_by_handle): Likewise. Adjust
701 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
702 support for buffer objects as handles.
704 2019-04-08 Kevin Buettner <kevinb@redhat.com>
706 * python/py-infthread.c (thpy_thread_handle): New function.
707 (thread_object_methods): Register thpy_thread_handle.
709 2019-04-08 Kevin Buettner <kevinb@redhat.com>
711 * gdbthread.h (thread_to_thread_handle): Declare.
712 * thread.c (gdbtypes.h): Include.
713 (thread_to_thread_handle): New function.
715 * target.h (struct target_ops): Add thread_info_to_thread_handle.
716 (target_thread_info_to_thread_handle): Declare.
717 * target.c (target_thread_info_to_thread_handle): New function.
718 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
719 * target-delegates.c: Regenerate.
721 * linux-thread-db.c (class thread_db_target): Add method
722 thread_info_to_thread_handle.
723 (thread_db_target::thread_info_to_thread_handle): Define.
724 * remote.c (class remote_target): Add new method
725 thread_info_to_thread_handle.
726 (remote_target::thread_info_to_thread_handle): Define.
728 2019-04-08 Pedro Alves <palves@redhat.com>
730 * common/common-exceptions.c (throw_exception): Don't create
731 named object to throw; throw directly.
732 (throw_it): Likewise. Don't initialize gdb_exception::message
733 here, with new; pass FMT and AP to the ctor instead.
734 * common/common-exceptions.h: Include <string>.
735 (gdb_exception::gdb_exception(enum return_reason, enum errors,
736 const char *, va_list)): New ctor. Use std::make_shared.
737 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
739 (gdb_exception_error::gdb_exception_error(enum errors, const char
741 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
743 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
745 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
746 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
749 2019-04-08 Tom Tromey <tom@tromey.com>
751 * valops.c (value_rtti_indirect_type): Replace throw_exception
753 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
755 * thread.c (thr_try_catch_cmd): Replace throw_exception with
757 * target.c (target_translate_tls_address): Replace throw_exception
759 * stack.c (frame_apply_command_count): Replace throw_exception
761 * solib-spu.c (append_ocl_sos): Replace throw_exception with
763 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
765 * rs6000-tdep.c (rs6000_frame_cache)
766 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
767 * remote.c: Replace throw_exception with throw.
768 * record-full.c (record_full_message, record_full_wait_1)
769 (record_full_restore): Replace throw_exception with throw.
771 (get_thread_current_frame_id, record_btrace_start_replaying)
772 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
773 (cmd_record_btrace_start): Replace throw_exception with throw.
774 * parse.c (parse_exp_in_context_1): Replace throw_exception with
776 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
777 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
779 (find_linespec_symbols): Replace throw_exception with throw.
780 * infrun.c (displaced_step_prepare, resume): Replace
781 throw_exception with throw.
782 * infcmd.c (post_create_inferior): Replace throw_exception with
784 * inf-loop.c (inferior_event_handler): Replace throw_exception
786 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
787 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
788 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
789 (get_prev_frame_always, get_frame_pc_if_available)
790 (get_frame_address_in_block_if_available, get_frame_language):
791 Replace throw_exception with throw.
792 * frame-unwind.c (frame_unwind_try_unwinder): Replace
793 throw_exception with throw.
794 * eval.c (fetch_subexp_value, evaluate_var_value)
795 (evaluate_funcall, evaluate_subexp_standard): Replace
796 throw_exception with throw.
797 * dwarf2loc.c (call_site_find_chain)
798 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
799 Replace throw_exception with throw.
800 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
802 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
804 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
805 * completer.c (complete_line_internal): Replace throw_exception
807 * compile/compile-object-run.c (compile_object_run): Replace
808 throw_exception with throw.
809 * cli/cli-script.c (process_next_line): Replace throw_exception
811 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
812 (btrace_enable, btrace_maint_update_pt_packets): Replace
813 throw_exception with throw.
814 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
815 throw_exception with throw.
816 * break-catch-throw.c (re_set_exception_catchpoint): Replace
817 throw_exception with throw.
818 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
819 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
820 * aarch64-tdep.c (aarch64_make_prologue_cache)
821 (aarch64_make_stub_cache): Replace throw_exception with throw.
823 2019-04-08 Tom Tromey <tom@tromey.com>
825 * common/common-exceptions.c (throw_exception): Rename from
826 throw_exception_cxx. Remove old copy. Make argument const.
827 (throw_it): Create and throw exception objects directly.
828 * common/common-exceptions.h (throw_exception): Make argument
830 (struct gdb_exception_error): Add constructor.
831 (struct gdb_exception_quit): Add constructor.
833 2019-04-08 Tom Tromey <tom@tromey.com>
835 * common/common-exceptions.h (exception_rethrow): Don't declare.
836 (TRY_SJLJ): Update comment.
837 (TRY, CATCH, END_CATCH): Remove.
838 * common/common-exceptions.c (exception_rethrow): Remove.
840 2019-04-08 Tom Tromey <tom@tromey.com>
842 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
844 (gdb_exception_error): Rename from
845 gdb_exception_RETURN_MASK_ERROR.
846 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
847 (gdb_quit_bad_alloc): Update.
848 * aarch64-tdep.c: Update.
849 * ada-lang.c: Update.
850 * ada-typeprint.c: Update.
851 * ada-valprint.c: Update.
852 * amd64-tdep.c: Update.
853 * arch-utils.c: Update.
854 * break-catch-throw.c: Update.
855 * breakpoint.c: Update.
857 * c-varobj.c: Update.
858 * cli/cli-cmds.c: Update.
859 * cli/cli-interp.c: Update.
860 * cli/cli-script.c: Update.
861 * common/common-exceptions.c: Update.
862 * common/new-op.c: Update.
863 * common/selftest.c: Update.
864 * compile/compile-c-symbols.c: Update.
865 * compile/compile-cplus-symbols.c: Update.
866 * compile/compile-object-load.c: Update.
867 * compile/compile-object-run.c: Update.
868 * completer.c: Update.
871 * cp-support.c: Update.
872 * cp-valprint.c: Update.
873 * darwin-nat.c: Update.
874 * disasm-selftests.c: Update.
875 * dtrace-probe.c: Update.
876 * dwarf-index-cache.c: Update.
877 * dwarf-index-write.c: Update.
878 * dwarf2-frame-tailcall.c: Update.
879 * dwarf2-frame.c: Update.
880 * dwarf2loc.c: Update.
881 * dwarf2read.c: Update.
883 * event-loop.c: Update.
884 * event-top.c: Update.
886 * f-valprint.c: Update.
887 * fbsd-tdep.c: Update.
888 * frame-unwind.c: Update.
890 * gdbtypes.c: Update.
891 * gnu-v3-abi.c: Update.
892 * guile/guile-internal.h: Update.
893 * guile/scm-block.c: Update.
894 * guile/scm-breakpoint.c: Update.
895 * guile/scm-cmd.c: Update.
896 * guile/scm-disasm.c: Update.
897 * guile/scm-frame.c: Update.
898 * guile/scm-lazy-string.c: Update.
899 * guile/scm-math.c: Update.
900 * guile/scm-param.c: Update.
901 * guile/scm-ports.c: Update.
902 * guile/scm-pretty-print.c: Update.
903 * guile/scm-symbol.c: Update.
904 * guile/scm-symtab.c: Update.
905 * guile/scm-type.c: Update.
906 * guile/scm-value.c: Update.
907 * i386-linux-tdep.c: Update.
908 * i386-tdep.c: Update.
909 * inf-loop.c: Update.
914 * language.c: Update.
915 * linespec.c: Update.
916 * linux-fork.c: Update.
917 * linux-nat.c: Update.
918 * linux-tdep.c: Update.
919 * linux-thread-db.c: Update.
921 * mi/mi-cmd-break.c: Update.
922 * mi/mi-cmd-stack.c: Update.
923 * mi/mi-interp.c: Update.
924 * mi/mi-main.c: Update.
925 * objc-lang.c: Update.
926 * p-valprint.c: Update.
928 * ppc-linux-tdep.c: Update.
929 * printcmd.c: Update.
930 * python/py-arch.c: Update.
931 * python/py-breakpoint.c: Update.
932 * python/py-cmd.c: Update.
933 * python/py-finishbreakpoint.c: Update.
934 * python/py-frame.c: Update.
935 * python/py-framefilter.c: Update.
936 * python/py-gdb-readline.c: Update.
937 * python/py-inferior.c: Update.
938 * python/py-infthread.c: Update.
939 * python/py-lazy-string.c: Update.
940 * python/py-linetable.c: Update.
941 * python/py-objfile.c: Update.
942 * python/py-param.c: Update.
943 * python/py-prettyprint.c: Update.
944 * python/py-progspace.c: Update.
945 * python/py-record-btrace.c: Update.
946 * python/py-record.c: Update.
947 * python/py-symbol.c: Update.
948 * python/py-type.c: Update.
949 * python/py-unwind.c: Update.
950 * python/py-utils.c: Update.
951 * python/py-value.c: Update.
952 * python/python.c: Update.
953 * record-btrace.c: Update.
954 * record-full.c: Update.
955 * remote-fileio.c: Update.
957 * riscv-tdep.c: Update.
958 * rs6000-aix-tdep.c: Update.
959 * rs6000-tdep.c: Update.
960 * rust-exp.y: Update.
961 * rust-lang.c: Update.
962 * s390-tdep.c: Update.
963 * selftest-arch.c: Update.
964 * solib-dsbt.c: Update.
965 * solib-frv.c: Update.
966 * solib-spu.c: Update.
967 * solib-svr4.c: Update.
969 * sparc64-linux-tdep.c: Update.
971 * symfile-mem.c: Update.
976 * tracefile-tfile.c: Update.
978 * typeprint.c: Update.
979 * unittests/cli-utils-selftests.c: Update.
980 * unittests/parse-connection-spec-selftests.c: Update.
982 * valprint.c: Update.
985 * windows-nat.c: Update.
986 * x86-linux-nat.c: Update.
987 * xml-support.c: Update.
989 2019-04-08 Tom Tromey <tom@tromey.com>
991 * xml-support.c: Use C++ exception handling.
992 * x86-linux-nat.c: Use C++ exception handling.
993 * windows-nat.c: Use C++ exception handling.
994 * varobj.c: Use C++ exception handling.
995 * value.c: Use C++ exception handling.
996 * valprint.c: Use C++ exception handling.
997 * valops.c: Use C++ exception handling.
998 * unittests/parse-connection-spec-selftests.c: Use C++ exception
1000 * unittests/cli-utils-selftests.c: Use C++ exception handling.
1001 * typeprint.c: Use C++ exception handling.
1002 * tui/tui.c: Use C++ exception handling.
1003 * tracefile-tfile.c: Use C++ exception handling.
1004 * top.c: Use C++ exception handling.
1005 * thread.c: Use C++ exception handling.
1006 * target.c: Use C++ exception handling.
1007 * symmisc.c: Use C++ exception handling.
1008 * symfile-mem.c: Use C++ exception handling.
1009 * stack.c: Use C++ exception handling.
1010 * sparc64-linux-tdep.c: Use C++ exception handling.
1011 * solib.c: Use C++ exception handling.
1012 * solib-svr4.c: Use C++ exception handling.
1013 * solib-spu.c: Use C++ exception handling.
1014 * solib-frv.c: Use C++ exception handling.
1015 * solib-dsbt.c: Use C++ exception handling.
1016 * selftest-arch.c: Use C++ exception handling.
1017 * s390-tdep.c: Use C++ exception handling.
1018 * rust-lang.c: Use C++ exception handling.
1019 * rust-exp.y: Use C++ exception handling.
1020 * rs6000-tdep.c: Use C++ exception handling.
1021 * rs6000-aix-tdep.c: Use C++ exception handling.
1022 * riscv-tdep.c: Use C++ exception handling.
1023 * remote.c: Use C++ exception handling.
1024 * remote-fileio.c: Use C++ exception handling.
1025 * record-full.c: Use C++ exception handling.
1026 * record-btrace.c: Use C++ exception handling.
1027 * python/python.c: Use C++ exception handling.
1028 * python/py-value.c: Use C++ exception handling.
1029 * python/py-utils.c: Use C++ exception handling.
1030 * python/py-unwind.c: Use C++ exception handling.
1031 * python/py-type.c: Use C++ exception handling.
1032 * python/py-symbol.c: Use C++ exception handling.
1033 * python/py-record.c: Use C++ exception handling.
1034 * python/py-record-btrace.c: Use C++ exception handling.
1035 * python/py-progspace.c: Use C++ exception handling.
1036 * python/py-prettyprint.c: Use C++ exception handling.
1037 * python/py-param.c: Use C++ exception handling.
1038 * python/py-objfile.c: Use C++ exception handling.
1039 * python/py-linetable.c: Use C++ exception handling.
1040 * python/py-lazy-string.c: Use C++ exception handling.
1041 * python/py-infthread.c: Use C++ exception handling.
1042 * python/py-inferior.c: Use C++ exception handling.
1043 * python/py-gdb-readline.c: Use C++ exception handling.
1044 * python/py-framefilter.c: Use C++ exception handling.
1045 * python/py-frame.c: Use C++ exception handling.
1046 * python/py-finishbreakpoint.c: Use C++ exception handling.
1047 * python/py-cmd.c: Use C++ exception handling.
1048 * python/py-breakpoint.c: Use C++ exception handling.
1049 * python/py-arch.c: Use C++ exception handling.
1050 * printcmd.c: Use C++ exception handling.
1051 * ppc-linux-tdep.c: Use C++ exception handling.
1052 * parse.c: Use C++ exception handling.
1053 * p-valprint.c: Use C++ exception handling.
1054 * objc-lang.c: Use C++ exception handling.
1055 * mi/mi-main.c: Use C++ exception handling.
1056 * mi/mi-interp.c: Use C++ exception handling.
1057 * mi/mi-cmd-stack.c: Use C++ exception handling.
1058 * mi/mi-cmd-break.c: Use C++ exception handling.
1059 * main.c: Use C++ exception handling.
1060 * linux-thread-db.c: Use C++ exception handling.
1061 * linux-tdep.c: Use C++ exception handling.
1062 * linux-nat.c: Use C++ exception handling.
1063 * linux-fork.c: Use C++ exception handling.
1064 * linespec.c: Use C++ exception handling.
1065 * language.c: Use C++ exception handling.
1066 * jit.c: Use C++ exception handling.
1067 * infrun.c: Use C++ exception handling.
1068 * infcmd.c: Use C++ exception handling.
1069 * infcall.c: Use C++ exception handling.
1070 * inf-loop.c: Use C++ exception handling.
1071 * i386-tdep.c: Use C++ exception handling.
1072 * i386-linux-tdep.c: Use C++ exception handling.
1073 * guile/scm-value.c: Use C++ exception handling.
1074 * guile/scm-type.c: Use C++ exception handling.
1075 * guile/scm-symtab.c: Use C++ exception handling.
1076 * guile/scm-symbol.c: Use C++ exception handling.
1077 * guile/scm-pretty-print.c: Use C++ exception handling.
1078 * guile/scm-ports.c: Use C++ exception handling.
1079 * guile/scm-param.c: Use C++ exception handling.
1080 * guile/scm-math.c: Use C++ exception handling.
1081 * guile/scm-lazy-string.c: Use C++ exception handling.
1082 * guile/scm-frame.c: Use C++ exception handling.
1083 * guile/scm-disasm.c: Use C++ exception handling.
1084 * guile/scm-cmd.c: Use C++ exception handling.
1085 * guile/scm-breakpoint.c: Use C++ exception handling.
1086 * guile/scm-block.c: Use C++ exception handling.
1087 * guile/guile-internal.h: Use C++ exception handling.
1088 * gnu-v3-abi.c: Use C++ exception handling.
1089 * gdbtypes.c: Use C++ exception handling.
1090 * frame.c: Use C++ exception handling.
1091 * frame-unwind.c: Use C++ exception handling.
1092 * fbsd-tdep.c: Use C++ exception handling.
1093 * f-valprint.c: Use C++ exception handling.
1094 * exec.c: Use C++ exception handling.
1095 * event-top.c: Use C++ exception handling.
1096 * event-loop.c: Use C++ exception handling.
1097 * eval.c: Use C++ exception handling.
1098 * dwarf2read.c: Use C++ exception handling.
1099 * dwarf2loc.c: Use C++ exception handling.
1100 * dwarf2-frame.c: Use C++ exception handling.
1101 * dwarf2-frame-tailcall.c: Use C++ exception handling.
1102 * dwarf-index-write.c: Use C++ exception handling.
1103 * dwarf-index-cache.c: Use C++ exception handling.
1104 * dtrace-probe.c: Use C++ exception handling.
1105 * disasm-selftests.c: Use C++ exception handling.
1106 * darwin-nat.c: Use C++ exception handling.
1107 * cp-valprint.c: Use C++ exception handling.
1108 * cp-support.c: Use C++ exception handling.
1109 * cp-abi.c: Use C++ exception handling.
1110 * corelow.c: Use C++ exception handling.
1111 * completer.c: Use C++ exception handling.
1112 * compile/compile-object-run.c: Use C++ exception handling.
1113 * compile/compile-object-load.c: Use C++ exception handling.
1114 * compile/compile-cplus-symbols.c: Use C++ exception handling.
1115 * compile/compile-c-symbols.c: Use C++ exception handling.
1116 * common/selftest.c: Use C++ exception handling.
1117 * common/new-op.c: Use C++ exception handling.
1118 * cli/cli-script.c: Use C++ exception handling.
1119 * cli/cli-interp.c: Use C++ exception handling.
1120 * cli/cli-cmds.c: Use C++ exception handling.
1121 * c-varobj.c: Use C++ exception handling.
1122 * btrace.c: Use C++ exception handling.
1123 * breakpoint.c: Use C++ exception handling.
1124 * break-catch-throw.c: Use C++ exception handling.
1125 * arch-utils.c: Use C++ exception handling.
1126 * amd64-tdep.c: Use C++ exception handling.
1127 * ada-valprint.c: Use C++ exception handling.
1128 * ada-typeprint.c: Use C++ exception handling.
1129 * ada-lang.c: Use C++ exception handling.
1130 * aarch64-tdep.c: Use C++ exception handling.
1132 2019-04-08 Tom Tromey <tom@tromey.com>
1134 * xml-support.c (gdb_xml_parser::parse): Update.
1135 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
1136 * value.c (show_convenience): Update.
1137 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
1138 (test_parse_flags_qcs): Update.
1139 * thread.c (thr_try_catch_cmd): Update.
1140 * target.c (target_translate_tls_address): Update.
1141 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1142 (info_frame_command_core, frame_apply_command_count): Update.
1143 * rust-exp.y (rust_lex_exception_test): Update.
1144 * riscv-tdep.c (riscv_print_one_register_info): Update.
1145 * remote.c (remote_target::enable_btrace): Update.
1146 * record-btrace.c (record_btrace_enable_warn): Update.
1147 * python/py-utils.c (gdbpy_convert_exception): Update.
1148 * printcmd.c (do_one_display, print_variable_and_value): Update.
1149 * mi/mi-main.c (mi_print_exception): Update.
1150 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
1151 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1152 * linux-nat.c (linux_nat_target::attach): Update.
1153 * linux-fork.c (class scoped_switch_fork_info): Update.
1154 * infrun.c (displaced_step_prepare): Update.
1155 * infcall.c (call_function_by_hand_dummy): Update.
1156 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
1157 * gnu-v3-abi.c (print_one_vtable): Update.
1158 * frame.c (get_prev_frame_always): Update.
1159 * f-valprint.c (info_common_command_for_block): Update.
1160 * exec.c (try_open_exec_file): Update.
1161 * exceptions.c (print_exception, exception_print)
1162 (exception_fprintf, exception_print_same): Update.
1163 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
1164 * dwarf-index-cache.c (index_cache::store)
1165 (index_cache::lookup_gdb_index): Update.
1166 * darwin-nat.c (maybe_cache_shell): Update.
1167 * cp-valprint.c (cp_print_value_fields): Update.
1168 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
1169 (gcc_cplus_symbol_address): Update.
1170 * compile/compile-c-symbols.c (gcc_convert_symbol)
1171 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
1172 * common/selftest.c: Update.
1173 * common/common-exceptions.h (struct gdb_exception) <message>: Now
1175 (exception_try_scope_entry, exception_try_scope_exit): Don't
1177 (struct exception_try_scope): Remove.
1178 (TRY): Don't use exception_try_scope.
1179 (struct gdb_exception): Add constructor, operator=.
1181 (struct gdb_exception_RETURN_MASK_ALL)
1182 (struct gdb_exception_RETURN_MASK_ERROR)
1183 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
1184 (struct gdb_quit_bad_alloc): Update.
1185 * common/common-exceptions.c (exception_none): Change
1187 (struct catcher) <state, exception>: Initialize inline.
1188 <prev>: Remove member.
1189 (current_catcher): Remove.
1190 (catchers): New global.
1191 (exceptions_state_mc_init): Simplify.
1192 (catcher_pop): Remove.
1193 (exceptions_state_mc, exceptions_state_mc_catch): Update.
1194 (try_scope_depth, exception_try_scope_entry)
1195 (exception_try_scope_exit): Remove.
1196 (throw_exception_sjlj): Update.
1197 (exception_messages, exception_messages_size): Remove.
1198 (throw_it): Simplify.
1199 (gdb_exception_sliced_copy): Remove.
1200 (throw_exception_cxx): Update.
1201 * cli/cli-script.c (script_from_file): Update.
1202 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
1204 * ada-valprint.c (ada_val_print): Update.
1205 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
1206 (create_excep_cond_exprs): Update.
1208 2019-04-08 Tom Tromey <tom@tromey.com>
1210 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
1211 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
1212 (TRY, CATCH, END_CATCH): Remove some definitions.
1213 * common/common-exceptions.c: Don't use GDB_XCPT.
1214 (catcher_list_size): Remove.
1215 (throw_exception, throw_it): Simplify.
1217 2019-04-05 Tom Tromey <tom@tromey.com>
1219 Revert the header-sorting patch.
1220 * ft32-tdep.c: Revert.
1221 * frv-tdep.c: Revert.
1222 * frv-linux-tdep.c: Revert.
1224 * frame-unwind.c: Revert.
1225 * frame-base.c: Revert.
1226 * fork-child.c: Revert.
1227 * findvar.c: Revert.
1228 * findcmd.c: Revert.
1229 * filesystem.c: Revert.
1230 * filename-seen-cache.h: Revert.
1231 * filename-seen-cache.c: Revert.
1232 * fbsd-tdep.c: Revert.
1233 * fbsd-nat.h: Revert.
1234 * fbsd-nat.c: Revert.
1235 * f-valprint.c: Revert.
1236 * f-typeprint.c: Revert.
1238 * extension.h: Revert.
1239 * extension.c: Revert.
1240 * extension-priv.h: Revert.
1241 * expprint.c: Revert.
1244 * exceptions.c: Revert.
1245 * event-top.c: Revert.
1246 * event-loop.c: Revert.
1248 * elfread.c: Revert.
1249 * dwarf2read.h: Revert.
1250 * dwarf2read.c: Revert.
1251 * dwarf2loc.c: Revert.
1252 * dwarf2expr.h: Revert.
1253 * dwarf2expr.c: Revert.
1254 * dwarf2-frame.c: Revert.
1255 * dwarf2-frame-tailcall.c: Revert.
1256 * dwarf-index-write.h: Revert.
1257 * dwarf-index-write.c: Revert.
1258 * dwarf-index-common.c: Revert.
1259 * dwarf-index-cache.h: Revert.
1260 * dwarf-index-cache.c: Revert.
1261 * dummy-frame.c: Revert.
1262 * dtrace-probe.c: Revert.
1265 * disasm-selftests.c: Revert.
1266 * dictionary.c: Revert.
1267 * dicos-tdep.c: Revert.
1268 * demangle.c: Revert.
1271 * darwin-nat.h: Revert.
1272 * darwin-nat.c: Revert.
1273 * darwin-nat-info.c: Revert.
1274 * d-valprint.c: Revert.
1275 * d-namespace.c: Revert.
1278 * csky-tdep.c: Revert.
1279 * csky-linux-tdep.c: Revert.
1280 * cris-tdep.c: Revert.
1281 * cris-linux-tdep.c: Revert.
1282 * cp-valprint.c: Revert.
1283 * cp-support.c: Revert.
1284 * cp-namespace.c: Revert.
1286 * corelow.c: Revert.
1287 * corefile.c: Revert.
1288 * continuations.c: Revert.
1289 * completer.h: Revert.
1290 * completer.c: Revert.
1291 * complaints.c: Revert.
1292 * coffread.c: Revert.
1293 * coff-pe-read.c: Revert.
1294 * cli-out.h: Revert.
1295 * cli-out.c: Revert.
1296 * charset.c: Revert.
1297 * c-varobj.c: Revert.
1298 * c-valprint.c: Revert.
1299 * c-typeprint.c: Revert.
1301 * buildsym.c: Revert.
1302 * buildsym-legacy.c: Revert.
1303 * build-id.h: Revert.
1304 * build-id.c: Revert.
1306 * bsd-uthread.c: Revert.
1307 * breakpoint.h: Revert.
1308 * breakpoint.c: Revert.
1309 * break-catch-throw.c: Revert.
1310 * break-catch-syscall.c: Revert.
1311 * break-catch-sig.c: Revert.
1312 * blockframe.c: Revert.
1314 * bfin-tdep.c: Revert.
1315 * bfin-linux-tdep.c: Revert.
1316 * bfd-target.c: Revert.
1318 * ax-general.c: Revert.
1321 * avr-tdep.c: Revert.
1323 * auto-load.c: Revert.
1324 * arm-wince-tdep.c: Revert.
1325 * arm-tdep.c: Revert.
1326 * arm-symbian-tdep.c: Revert.
1327 * arm-pikeos-tdep.c: Revert.
1328 * arm-obsd-tdep.c: Revert.
1329 * arm-nbsd-tdep.c: Revert.
1330 * arm-nbsd-nat.c: Revert.
1331 * arm-linux-tdep.c: Revert.
1332 * arm-linux-nat.c: Revert.
1333 * arm-fbsd-tdep.c: Revert.
1334 * arm-fbsd-nat.c: Revert.
1335 * arm-bsd-tdep.c: Revert.
1336 * arch-utils.c: Revert.
1337 * arc-tdep.c: Revert.
1338 * arc-newlib-tdep.c: Revert.
1339 * annotate.h: Revert.
1340 * annotate.c: Revert.
1341 * amd64-windows-tdep.c: Revert.
1342 * amd64-windows-nat.c: Revert.
1343 * amd64-tdep.c: Revert.
1344 * amd64-sol2-tdep.c: Revert.
1345 * amd64-obsd-tdep.c: Revert.
1346 * amd64-obsd-nat.c: Revert.
1347 * amd64-nbsd-tdep.c: Revert.
1348 * amd64-nbsd-nat.c: Revert.
1349 * amd64-nat.c: Revert.
1350 * amd64-linux-tdep.c: Revert.
1351 * amd64-linux-nat.c: Revert.
1352 * amd64-fbsd-tdep.c: Revert.
1353 * amd64-fbsd-nat.c: Revert.
1354 * amd64-dicos-tdep.c: Revert.
1355 * amd64-darwin-tdep.c: Revert.
1356 * amd64-bsd-nat.c: Revert.
1357 * alpha-tdep.c: Revert.
1358 * alpha-obsd-tdep.c: Revert.
1359 * alpha-nbsd-tdep.c: Revert.
1360 * alpha-mdebug-tdep.c: Revert.
1361 * alpha-linux-tdep.c: Revert.
1362 * alpha-linux-nat.c: Revert.
1363 * alpha-bsd-tdep.c: Revert.
1364 * alpha-bsd-nat.c: Revert.
1365 * aix-thread.c: Revert.
1367 * addrmap.c: Revert.
1368 * ada-varobj.c: Revert.
1369 * ada-valprint.c: Revert.
1370 * ada-typeprint.c: Revert.
1371 * ada-tasks.c: Revert.
1372 * ada-lang.c: Revert.
1373 * aarch64-tdep.c: Revert.
1374 * aarch64-ravenscar-thread.c: Revert.
1375 * aarch64-newlib-tdep.c: Revert.
1376 * aarch64-linux-tdep.c: Revert.
1377 * aarch64-linux-nat.c: Revert.
1378 * aarch64-fbsd-tdep.c: Revert.
1379 * aarch64-fbsd-nat.c: Revert.
1380 * aarch32-linux-nat.c: Revert.
1382 2019-04-05 Tom Tromey <tom@tromey.com>
1384 * ft32-tdep.c: Sort headers.
1385 * frv-tdep.c: Sort headers.
1386 * frv-linux-tdep.c: Sort headers.
1387 * frame.c: Sort headers.
1388 * frame-unwind.c: Sort headers.
1389 * frame-base.c: Sort headers.
1390 * fork-child.c: Sort headers.
1391 * findvar.c: Sort headers.
1392 * findcmd.c: Sort headers.
1393 * filesystem.c: Sort headers.
1394 * filename-seen-cache.h: Sort headers.
1395 * filename-seen-cache.c: Sort headers.
1396 * fbsd-tdep.c: Sort headers.
1397 * fbsd-nat.h: Sort headers.
1398 * fbsd-nat.c: Sort headers.
1399 * f-valprint.c: Sort headers.
1400 * f-typeprint.c: Sort headers.
1401 * f-lang.c: Sort headers.
1402 * extension.h: Sort headers.
1403 * extension.c: Sort headers.
1404 * extension-priv.h: Sort headers.
1405 * expprint.c: Sort headers.
1406 * exec.h: Sort headers.
1407 * exec.c: Sort headers.
1408 * exceptions.c: Sort headers.
1409 * event-top.c: Sort headers.
1410 * event-loop.c: Sort headers.
1411 * eval.c: Sort headers.
1412 * elfread.c: Sort headers.
1413 * dwarf2read.h: Sort headers.
1414 * dwarf2read.c: Sort headers.
1415 * dwarf2loc.c: Sort headers.
1416 * dwarf2expr.h: Sort headers.
1417 * dwarf2expr.c: Sort headers.
1418 * dwarf2-frame.c: Sort headers.
1419 * dwarf2-frame-tailcall.c: Sort headers.
1420 * dwarf-index-write.h: Sort headers.
1421 * dwarf-index-write.c: Sort headers.
1422 * dwarf-index-common.c: Sort headers.
1423 * dwarf-index-cache.h: Sort headers.
1424 * dwarf-index-cache.c: Sort headers.
1425 * dummy-frame.c: Sort headers.
1426 * dtrace-probe.c: Sort headers.
1427 * disasm.h: Sort headers.
1428 * disasm.c: Sort headers.
1429 * disasm-selftests.c: Sort headers.
1430 * dictionary.c: Sort headers.
1431 * dicos-tdep.c: Sort headers.
1432 * demangle.c: Sort headers.
1433 * dcache.h: Sort headers.
1434 * dcache.c: Sort headers.
1435 * darwin-nat.h: Sort headers.
1436 * darwin-nat.c: Sort headers.
1437 * darwin-nat-info.c: Sort headers.
1438 * d-valprint.c: Sort headers.
1439 * d-namespace.c: Sort headers.
1440 * d-lang.c: Sort headers.
1441 * ctf.c: Sort headers.
1442 * csky-tdep.c: Sort headers.
1443 * csky-linux-tdep.c: Sort headers.
1444 * cris-tdep.c: Sort headers.
1445 * cris-linux-tdep.c: Sort headers.
1446 * cp-valprint.c: Sort headers.
1447 * cp-support.c: Sort headers.
1448 * cp-namespace.c: Sort headers.
1449 * cp-abi.c: Sort headers.
1450 * corelow.c: Sort headers.
1451 * corefile.c: Sort headers.
1452 * continuations.c: Sort headers.
1453 * completer.h: Sort headers.
1454 * completer.c: Sort headers.
1455 * complaints.c: Sort headers.
1456 * coffread.c: Sort headers.
1457 * coff-pe-read.c: Sort headers.
1458 * cli-out.h: Sort headers.
1459 * cli-out.c: Sort headers.
1460 * charset.c: Sort headers.
1461 * c-varobj.c: Sort headers.
1462 * c-valprint.c: Sort headers.
1463 * c-typeprint.c: Sort headers.
1464 * c-lang.c: Sort headers.
1465 * buildsym.c: Sort headers.
1466 * buildsym-legacy.c: Sort headers.
1467 * build-id.h: Sort headers.
1468 * build-id.c: Sort headers.
1469 * btrace.c: Sort headers.
1470 * bsd-uthread.c: Sort headers.
1471 * breakpoint.h: Sort headers.
1472 * breakpoint.c: Sort headers.
1473 * break-catch-throw.c: Sort headers.
1474 * break-catch-syscall.c: Sort headers.
1475 * break-catch-sig.c: Sort headers.
1476 * blockframe.c: Sort headers.
1477 * block.c: Sort headers.
1478 * bfin-tdep.c: Sort headers.
1479 * bfin-linux-tdep.c: Sort headers.
1480 * bfd-target.c: Sort headers.
1481 * bcache.c: Sort headers.
1482 * ax-general.c: Sort headers.
1483 * ax-gdb.h: Sort headers.
1484 * ax-gdb.c: Sort headers.
1485 * avr-tdep.c: Sort headers.
1486 * auxv.c: Sort headers.
1487 * auto-load.c: Sort headers.
1488 * arm-wince-tdep.c: Sort headers.
1489 * arm-tdep.c: Sort headers.
1490 * arm-symbian-tdep.c: Sort headers.
1491 * arm-pikeos-tdep.c: Sort headers.
1492 * arm-obsd-tdep.c: Sort headers.
1493 * arm-nbsd-tdep.c: Sort headers.
1494 * arm-nbsd-nat.c: Sort headers.
1495 * arm-linux-tdep.c: Sort headers.
1496 * arm-linux-nat.c: Sort headers.
1497 * arm-fbsd-tdep.c: Sort headers.
1498 * arm-fbsd-nat.c: Sort headers.
1499 * arm-bsd-tdep.c: Sort headers.
1500 * arch-utils.c: Sort headers.
1501 * arc-tdep.c: Sort headers.
1502 * arc-newlib-tdep.c: Sort headers.
1503 * annotate.h: Sort headers.
1504 * annotate.c: Sort headers.
1505 * amd64-windows-tdep.c: Sort headers.
1506 * amd64-windows-nat.c: Sort headers.
1507 * amd64-tdep.c: Sort headers.
1508 * amd64-sol2-tdep.c: Sort headers.
1509 * amd64-obsd-tdep.c: Sort headers.
1510 * amd64-obsd-nat.c: Sort headers.
1511 * amd64-nbsd-tdep.c: Sort headers.
1512 * amd64-nbsd-nat.c: Sort headers.
1513 * amd64-nat.c: Sort headers.
1514 * amd64-linux-tdep.c: Sort headers.
1515 * amd64-linux-nat.c: Sort headers.
1516 * amd64-fbsd-tdep.c: Sort headers.
1517 * amd64-fbsd-nat.c: Sort headers.
1518 * amd64-dicos-tdep.c: Sort headers.
1519 * amd64-darwin-tdep.c: Sort headers.
1520 * amd64-bsd-nat.c: Sort headers.
1521 * alpha-tdep.c: Sort headers.
1522 * alpha-obsd-tdep.c: Sort headers.
1523 * alpha-nbsd-tdep.c: Sort headers.
1524 * alpha-mdebug-tdep.c: Sort headers.
1525 * alpha-linux-tdep.c: Sort headers.
1526 * alpha-linux-nat.c: Sort headers.
1527 * alpha-bsd-tdep.c: Sort headers.
1528 * alpha-bsd-nat.c: Sort headers.
1529 * aix-thread.c: Sort headers.
1530 * agent.c: Sort headers.
1531 * addrmap.c: Sort headers.
1532 * ada-varobj.c: Sort headers.
1533 * ada-valprint.c: Sort headers.
1534 * ada-typeprint.c: Sort headers.
1535 * ada-tasks.c: Sort headers.
1536 * ada-lang.c: Sort headers.
1537 * aarch64-tdep.c: Sort headers.
1538 * aarch64-ravenscar-thread.c: Sort headers.
1539 * aarch64-newlib-tdep.c: Sort headers.
1540 * aarch64-linux-tdep.c: Sort headers.
1541 * aarch64-linux-nat.c: Sort headers.
1542 * aarch64-fbsd-tdep.c: Sort headers.
1543 * aarch64-fbsd-nat.c: Sort headers.
1544 * aarch32-linux-nat.c: Sort headers.
1546 2019-04-04 Tom Tromey <tom@tromey.com>
1548 * varobj.c (varobj_create): Update.
1549 * rust-exp.y (struct rust_parser) <update_innermost_block,
1550 lookup_symbol>: New methods.
1551 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
1553 (rust_parser::rust_lookup_type)
1554 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
1555 * printcmd.c (display_command, do_one_display): Update.
1556 * parser-defs.h (struct parser_state) <parser_state>: Add
1557 "tracker" parameter.
1558 (block_tracker): New member.
1559 (class innermost_block_tracker) <innermost_block_tracker>: Add
1561 <reset>: Remove method.
1562 (innermost_block): Don't declare.
1563 (null_post_parser): Update.
1564 * parse.c (innermost_block): Remove global.
1565 (write_dollar_variable): Update.
1566 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
1567 Remove "tracker_types" parameter.
1568 (parse_expression): Add "tracker" parameter.
1569 (parse_expression_for_completion): Update.
1570 (null_post_parser): Add "tracker" parameter.
1571 * p-exp.y: Update rules.
1572 * m2-exp.y: Update rules.
1573 * language.h (struct language_defn) <la_post_parser>: Add
1574 "tracker" parameter.
1575 * go-exp.y: Update rules.
1576 * f-exp.y: Update rules.
1577 * expression.h (parse_expression, parse_exp_1): Add "tracker"
1579 * d-exp.y: Update rules.
1580 * c-exp.y: Update rules.
1581 * breakpoint.c (set_breakpoint_condition): Create an
1582 innermost_block_tracker.
1583 (watch_command_1): Likewise.
1584 * ada-lang.c (resolve): Add "tracker" parameter.
1585 (resolve_subexp): Likewise.
1586 * ada-exp.y (write_var_from_sym): Update.
1588 2019-04-04 Tom Tromey <tom@tromey.com>
1590 * type-stack.h: New file.
1591 * type-stack.c: New file.
1592 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
1594 (insert_into_type_stack, insert_type, push_type, push_type_int)
1595 (insert_type_address_space, pop_type, pop_type_int)
1596 (pop_typelist, pop_type_stack, append_type_stack)
1597 (push_type_stack, get_type_stack, push_typelist)
1598 (follow_type_instance_flags, follow_types): Don't declare.
1599 * parse.c (type_stack): Remove global.
1600 (parse_exp_in_context): Update.
1601 (insert_into_type_stack, insert_type, push_type, push_type_int)
1602 (insert_type_address_space, pop_type, pop_type_int)
1603 (pop_typelist, pop_type_stack, append_type_stack)
1604 (push_type_stack, get_type_stack, push_typelist)
1605 (follow_type_instance_flags, follow_types): Remove (moved to
1607 * f-exp.y (type_stack): New global.
1609 (push_kind_type, f_parse): Update.
1610 * d-exp.y (type_stack): New global.
1613 * c-exp.y (struct c_parse_state) <type_stack>: New member.
1615 * Makefile.in (COMMON_SFILES): Add type-stack.c.
1616 (HFILES_NO_SRCDIR): Add type-stack.h.
1618 2019-04-04 Tom Tromey <tom@tromey.com>
1620 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
1621 (rust_parser::convert_ast_to_expression, rust_parse)
1622 (rust_lex_test_completion, rust_lex_tests): Update.
1623 * parser-defs.h (struct expr_completion_state): New.
1624 (struct parser_state) <parser_state>: Add completion parameter.
1625 <mark_struct_expression, mark_completion_tag>: New methods.
1626 <parse_completion, m_completion_state>: New members.
1627 (prefixify_expression, null_post_parser): Update.
1628 (mark_struct_expression, mark_completion_tag): Don't declare.
1629 * parse.c (parse_completion, expout_last_struct)
1630 (expout_tag_completion_type, expout_completion_name): Remove
1632 (parser_state::mark_struct_expression)
1633 (parser_state::mark_completion_tag): Now methods.
1634 (prefixify_expression): Add last_struct parameter.
1635 (prefixify_subexp): Likewise.
1636 (parse_exp_1): Update.
1637 (parse_exp_in_context): Add cstate parameter. Update.
1638 (parse_expression_for_completion): Create an
1639 expr_completion_state.
1640 (null_post_parser): Add "completion" parameter.
1641 * p-exp.y: Update rules.
1643 * language.h (struct language_defn) <la_post_parser>: Add
1644 "completing" parameter.
1645 * go-exp.y: Update rules.
1646 (lex_one_token): Update.
1647 * expression.h (parse_completion): Don't declare.
1648 * d-exp.y: Update rules.
1649 (lex_one_token): Update rules.
1650 * c-exp.y: Update rules.
1651 (lex_one_token): Update.
1652 * ada-lang.c (resolve): Add "parse_completion" parameter.
1653 (resolve_subexp): Likewise.
1654 (ada_resolve_function): Likewise.
1656 2019-04-04 Tom Tromey <tom@tromey.com>
1658 * parser-defs.h (struct parser_state) <start_arglist,
1659 end_arglist>: New methods.
1660 <arglist_len, m_funcall_chain>: New members.
1661 (arglist_len, start_arglist, end_arglist): Don't declare.
1662 * parse.c (arglist_len, funcall_chain): Remove global.
1663 (start_arglist, end_arglist): Remove functions.
1664 (parse_exp_in_context): Update.
1665 * p-exp.y: Update rules.
1666 * m2-exp.y: Update rules.
1667 * go-exp.y: Update rules.
1668 * f-exp.y: Update rules.
1669 * d-exp.y: Update rules.
1670 * c-exp.y: Update rules.
1672 2019-04-04 Tom Tromey <tom@tromey.com>
1674 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
1675 lex_operator, push_back>: New methods.
1677 (rust_parser::lex_hex, lex_escape): Rename and update.
1678 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
1679 (rust_parser::lex_operator): Rename and update.
1680 (rust_parser::lex_number, rustyylex, rustyyerror)
1681 (rust_lex_test_init, rust_lex_test_sequence)
1682 (rust_lex_test_push_back, rust_lex_tests): Update.
1683 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
1685 <lexptr, prev_lexptr>: New members.
1686 (lexptr, prev_lexptr): Don't declare.
1687 * parse.c (lexptr, prev_lexptr): Remove globals.
1688 (parse_exp_in_context): Update.
1689 * p-exp.y (yylex, yyerror): Update.
1690 * m2-exp.y (parse_number, yylex, yyerror): Update.
1691 * go-exp.y (lex_one_token, yyerror): Update.
1692 * f-exp.y (match_string_literal, yylex, yyerror): Update.
1693 * d-exp.y (lex_one_token, yyerror): Update.
1694 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
1695 (lex_one_token, yyerror): Update.
1696 * ada-lex.l (YY_INPUT): Update.
1697 (rewind_to_char): Update.
1698 * ada-exp.y (yyerror): Update.
1700 2019-04-04 Tom Tromey <tom@tromey.com>
1702 * rust-exp.y (rustyylex, rust_lex_tests): Update.
1703 * parser-defs.h (struct parser_state) <parser_state>: Add new
1705 <comma_terminates>: New member.
1706 (comma_terminates): Don't declare global.
1707 * parse.c (comma_terminates): Remove global.
1708 (parse_exp_in_context): Update.
1709 * p-exp.y (yylex): Update.
1710 * m2-exp.y (yylex): Update.
1711 * go-exp.y (lex_one_token): Update.
1712 * f-exp.y (yylex): Update.
1713 * d-exp.y (lex_one_token): Update.
1714 * c-exp.y (lex_one_token): Update.
1715 * ada-lex.l: Update.
1717 2019-04-04 Tom Tromey <tom@tromey.com>
1719 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
1720 (rustyylex, rust_lex_test_init, rust_lex_test_one)
1721 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
1722 * parser-defs.h (paren_depth): Don't declare.
1723 * parse.c (paren_depth): Remove global.
1724 (parse_exp_in_context): Update.
1725 * p-exp.y (paren_depth): New global.
1726 (pascal_parse): Initialize it.
1727 * m2-exp.y (paren_depth): New global.
1728 (m2_parse): Initialize it.
1729 * go-exp.y (paren_depth): New global.
1730 (go_parse): Initialize it.
1731 * f-exp.y (paren_depth): New global.
1732 (f_parse): Initialize it.
1733 * d-exp.y (paren_depth): New global.
1734 (d_parse): Initialize it.
1735 * c-exp.y (paren_depth): New global.
1736 (c_parse): Initialize it.
1737 * ada-lex.l (paren_depth): New global.
1738 (lexer_init): Initialize it.
1740 2019-04-04 Tom Tromey <tom@tromey.com>
1742 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
1743 (rust_parser::convert_ast_to_type)
1744 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
1745 * parser-defs.h (struct parser_state) <parser_state>: Add
1746 parameters. Initialize new members.
1747 <expression_context_block, expression_context_pc>: New members.
1748 * parse.c (expression_context_block, expression_context_pc):
1750 (parse_exp_in_context): Update.
1751 * p-exp.y: Update all rules.
1753 * m2-exp.y: Update all rules.
1755 * go-exp.y (yylex): Update.
1756 * f-exp.y (yylex): Update.
1757 * d-exp.y: Update all rules.
1759 * c-exp.y: Update all rules.
1760 (lex_one_token, classify_name, yylex, c_parse): Update.
1761 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
1763 2019-04-04 Tom Tromey <tom@tromey.com>
1765 * gdbarch.h, gdbarch.c: Rebuild.
1766 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
1768 (struct stap_parse_info): Replace "parser_state" with
1770 * parser-defs.h (struct expr_builder): Rename from "parser_state".
1771 (parser_state): New class.
1772 * parse.c (expr_builder): Rename.
1773 (expr_builder::release): Rename.
1774 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
1775 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
1776 (write_exp_elt_longcst, write_exp_elt_floatcst)
1777 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
1778 (write_exp_string_vector, write_exp_bitstring)
1779 (write_exp_msymbol, mark_struct_expression)
1780 (write_dollar_variable)
1781 (insert_type_address_space, increase_expout_size): Replace
1782 "parser_state" with "expr_builder".
1783 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
1784 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
1785 "parser_state" with "expr_builder".
1787 2019-04-04 Tom Tromey <tom@tromey.com>
1789 * rust-exp.y: Replace "parse_language" with method call.
1791 (yylex): Replace "parse_language" with method call.
1793 (yylex): Replace "parse_language" with method call.
1794 * go-exp.y (classify_name): Replace "parse_language" with method
1796 * f-exp.y (yylex): Replace "parse_language" with method call.
1797 * d-exp.y (lex_one_token): Replace "parse_language" with method
1800 (lex_one_token, classify_name, yylex): Replace "parse_language"
1802 * ada-exp.y (find_primitive_type, type_char)
1803 (type_system_address): Replace "parse_language" with method call.
1805 2019-04-04 Tom Tromey <tom@tromey.com>
1807 * rust-exp.y: Replace "parse_gdbarch" with method call.
1808 * parse.c (write_dollar_variable, insert_type_address_space):
1809 Replace "parse_gdbarch" with method call.
1810 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
1812 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
1814 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
1815 "parse_gdbarch" with method call.
1816 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
1818 * f-exp.y (parse_type, parse_f_type, yylex): Replace
1819 "parse_gdbarch" with method call.
1820 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
1821 "parse_gdbarch" with method call.
1822 * c-exp.y (parse_type, parse_number, classify_name): Replace
1823 "parse_gdbarch" with method call.
1824 * ada-lex.l: Replace "parse_gdbarch" with method call.
1825 * ada-exp.y (parse_type, find_primitive_type, type_char)
1826 (type_system_address): Replace "parse_gdbarch" with method call.
1828 2019-04-04 Tom Tromey <tom@tromey.com>
1830 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
1831 * stap-probe.c (stap_parse_argument): Update.
1832 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
1833 initial_size parameter.
1834 * rust-exp.y (rust_lex_tests): Update.
1835 * parse.c (parser_state): Update.
1836 (parse_exp_in_context): Update.
1837 * parser-defs.h (struct parser_state) <parser_state>: Remove
1838 "initial_size" parameter.
1840 2019-04-04 Tom Tromey <tom@tromey.com>
1842 * parser-defs.h (increase_expout_size): Don't declare.
1843 * parse.c (increase_expout_size): Now static.
1845 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
1847 * gnu-nat.c (gnu_nat_target::wait): Fix
1848 target_waitstatus_to_string call.
1850 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
1852 * eval.c (evaluate_subexp_standard): Handle internal functions
1853 during Fortran function call handling.
1855 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
1857 * NEWS: Mention new internal functions.
1858 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
1859 (read_base_type): Use dwarf2_init_complex_target_type.
1860 * value.c (creal_internal_fn): New function.
1861 (cimag_internal_fn): New function.
1862 (_initialize_values): Register new internal functions.
1864 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1866 * infrun.c (stop_all_threads): If debug_infrun, always
1867 trace the wait status after wait_one, using
1868 target_waitstatus_to_string and target_pid_to_str.
1869 (handle_inferior_event): Replace various trace of
1870 wait status kind by a single trace.
1871 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
1872 wait status kind image by target_waitstatus_to_string.
1873 * target/waitstatus.c (target_waitstatus_to_string): Fix
1876 2019-04-01 Tom Tromey <tromey@adacore.com>
1879 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
1881 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
1882 Pedro Alves <palves@redhat.com>
1884 * top.c (quit_force): Call 'finalize_values'.
1885 * value.c (finalize_values): New function.
1886 * value.h (finalize_values): Declare.
1888 2019-03-30 Eli Zaretskii <eliz@gnu.org>
1890 * NEWS: Announce $_gdb_major and $_gdb_minor.
1892 * top.c (init_gdb_version_vars): New function.
1893 (gdb_init): Call init_gdb_version_vars.
1895 2019-03-29 Tom Tromey <tromey@adacore.com>
1897 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
1898 help text. Remove dead code.
1900 2019-03-29 Keith Seitz <keiths@redhat.com>
1902 From Siddhesh Poyarekar:
1903 * f-lang.h (f77_get_upperbound): Return LONGEST.
1904 (f77_get_lowerbound): Likewise.
1905 * f-typeprint.c (f_type_print_varspec_suffix): Expand
1906 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
1908 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
1909 plongest to format print it.
1910 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
1911 (f77_get_upperbound): Likewise.
1912 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
1913 LOWER_BOUND to LONGEST.
1914 (f77_create_arrayprint_offset_tbl): Likewise.
1916 2019-03-29 Keith Seitz <keiths@redhat.com>
1918 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1919 %s/pulongest for TYPE_LENGTH instead of %d in format
1921 * ada-typerint.c (ada_print_type): Likewise.
1922 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
1923 * compile/compile-c-support.c (generate_register_struct): Likewise.
1924 * gdbtypes.c (recursive_dump_type): Likewise.
1925 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
1926 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
1927 instead of %d in format strings.
1928 * riscv-tdep.c (riscv_type_alignment): Cast second argument
1929 to std::min to ULONGEST.
1930 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
1931 instead of %d in format strings.
1932 * tracepoint.c (info_scope_command): Likewise.
1933 * typeprint.c (print_offset_data::update)
1934 (print_offset_data::finish): Likewise.
1935 * xtensa-tdep.c (xtensa_store_return_value)
1936 (xtensa_push_dummy_call): Likewise.
1938 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
1940 * windows-nat.c (display_selector): Fixed format specifications
1943 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1945 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
1947 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
1949 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
1950 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
1951 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
1952 (nios2_linux_init_abi): Install it.
1954 2019-03-28 Alan Hayward <alan.hayward@arm.com>
1956 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
1958 2019-03-28 Alan Hayward <alan.hayward@arm.com>
1960 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
1962 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1963 Tom Tromey <tromey@adacore.com>
1965 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
1967 2019-03-26 Joel Brobecker <brobecker@adacore.com>
1969 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
1970 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
1971 method to compute the bounds of range types. Also print "[evaluated]"
1972 if the bounds' values come from a dynamic evaluation.
1974 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
1976 * cp-valprint.c (cp_print_value_fields): Don't print trailing
1977 whitespace when pretty printing is on.
1979 2019-03-26 Alan Hayward <alan.hayward@arm.com>
1981 * ppc-linux-nat.c: Add include.
1983 2019-03-26 Alan Hayward <alan.hayward@arm.com>
1985 * NEWS: Mention AArch64 Pointer Authentication.
1987 2019-03-26 Alan Hayward <alan.hayward@arm.com>
1989 * arm-linux-nat.c: Add include.
1991 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
1993 * source-cache.c (source_cache::get_source_lines): Re-read
1994 fullname after calling open_source_file.
1996 2019-03-25 John Baldwin <jhb@FreeBSD.org>
1998 * NEWS: Mention TLS support for FreeBSD.
2000 2019-03-25 Tom Tromey <tromey@adacore.com>
2002 * minsyms.c (BUNCH_SIZE): Update comment.
2003 (~minimal_symbol_reader): Remove old comment.
2004 (compact_minimal_symbols): Update comment.
2005 (minimal_symbol_reader::install): Remove old comment. Update
2008 2019-03-25 Alan Hayward <alan.hayward@arm.com>
2010 * s390-linux-nat.c: Add include.
2012 2019-03-25 Alan Hayward <alan.hayward@arm.com>
2014 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2015 Call linux_get_hwcap.
2016 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
2018 (aarch64_linux_get_hwcap): Remove function.
2019 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
2021 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
2023 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2024 * linux-tdep.c (linux_get_hwcap): Add function.
2025 (linux_get_hwcap2): Likewise.
2026 * linux-tdep.h (linux_get_hwcap): Add declaration.
2027 (linux_get_hwcap2): Likewise.
2028 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
2029 (ppc_linux_get_hwcap2): Likewise.
2030 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
2032 (ppc_linux_nat_target::insert_watchpoint): Likewise.
2033 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
2034 (ppc_linux_nat_target::read_description): Likewise.
2035 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
2036 * s390-linux-nat.c: Likewise.
2037 * s390-linux-tdep.c (s390_core_read_description): Likewise.
2039 2019-03-24 Tom Tromey <tom@tromey.com>
2041 * ada-lang.c (standard_lookup): Simplify initialization.
2042 (ada_lookup_symbol_nonlocal): Simplify return.
2043 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
2044 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
2045 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
2046 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
2048 * solib.c (solib_global_lookup): Simplify.
2049 * symtab.c (null_block_symbol): Remove.
2050 (symbol_cache_lookup): Simplify returns.
2051 (lookup_language_this): Simplify returns.
2052 (lookup_symbol_aux): Simplify return.
2053 (lookup_local_symbol): Simplify returns.
2054 (lookup_global_symbol_from_objfile): Simplify return.
2055 (lookup_symbol_in_objfile_symtabs)
2056 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
2057 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
2058 (lookup_static_symbol, lookup_global_symbol): Simplify return.
2059 * cp-namespace.c (cp_lookup_bare_symbol)
2060 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
2061 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
2062 (cp_lookup_nested_symbol): Don't use null_block_symbol.
2063 (cp_lookup_symbol_via_imports): Simplify initialization.
2064 (find_symbol_in_baseclass): Likewise.
2065 * symtab.h (null_block_symbol): Remove.
2066 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
2067 (d_lookup_nested_symbol, d_lookup_symbol_imports)
2068 (d_lookup_symbol_module): Likewise.
2069 (find_symbol_in_baseclass): Simplify initialization.
2071 2019-03-24 Tom Tromey <tom@tromey.com>
2073 * expression.h: Don't include symtab.h.
2074 (struct block): Forward declare.
2076 2019-03-24 Tom Tromey <tom@tromey.com>
2078 * c-exp.y (typebase): Remove casts.
2079 * gdbtypes.c (lookup_unsigned_typename, )
2080 (lookup_signed_typename): Remove cast.
2081 * eval.c (parse_to_comma_and_eval): Remove cast.
2082 * parse.c (write_dollar_variable): Remove cast.
2083 * block.h (struct block) <superblock>: Now const.
2084 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
2085 * psymtab.c (psym_map_matching_symbols): Make "block" const.
2086 (map_block): Make "block" const.
2087 * symfile.h (struct quick_symbol_functions)
2088 <map_matching_symbols>: Constify block argument to "callback".
2089 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
2091 (find_pc_sect_compunit_symtab): Make "b" const.
2092 (find_symbol_at_address): Likewise.
2093 (search_symbols): Likewise.
2094 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
2095 (dw2_debug_names_lookup_symbol): Likewise.
2096 (dw2_map_matching_symbols): Update.
2097 * p-valprint.c (pascal_val_print): Remove "block".
2098 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
2099 (aux_add_nonlocal_symbols): Make "block" const.
2100 (resolve_subexp): Remove cast.
2101 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
2103 (iterate_over_file_blocks): Likewise.
2104 * f-exp.y (%union) <bval>: Remove.
2105 * coffread.c (patch_opaque_types): Make "b" const.
2106 * spu-tdep.c (spu_catch_start): Make "block" const.
2107 * c-valprint.c (print_unpacked_pointer): Remove "block".
2108 * symmisc.c (dump_symtab_1): Make "b" const.
2109 (block_depth): Make "block" const.
2110 * d-exp.y (%union) <bval>: Remove.
2111 * cp-support.h (cp_lookup_rtti_type): Update.
2112 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
2113 * psymtab.c (psym_lookup_symbol): Make "block" const.
2114 (maintenance_check_psymtabs): Make "b" const.
2115 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
2116 (enumerate_locals, enumerate_args): Update.
2117 * python/py-symtab.c (stpy_global_block): Make "block" const.
2118 (stpy_static_block): Likewise.
2119 * inline-frame.c (block_starting_point_at): Make "new_block"
2121 * block.c (find_block_in_blockvector): Make return type const.
2122 (blockvector_for_pc_sect): Make "b" const.
2123 (find_block_in_blockvector): Make "b" const.
2125 2019-03-23 Tom Tromey <tom@tromey.com>
2127 * varobj.c (varobj_create): Update.
2128 * symfile.c (clear_symtab_users): Don't reset innermost_block.
2129 * printcmd.c (display_command, do_one_display): Don't reset
2131 * parser-defs.h (enum innermost_block_tracker_type): Move to
2133 (innermost_block): Update comment.
2134 * parse.c (parse_exp_1): Add tracker_types parameter.
2135 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
2136 tracker_types parameter. Reset innermost_block.
2137 (parse_exp_in_context): Remove.
2138 (parse_expression_for_completion): Update.
2139 * objfiles.c (~objfile): Don't reset expression_context_block or
2141 * expression.h (enum innermost_block_tracker_type): Move from
2143 (parse_exp_1): Add tracker_types parameter.
2144 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
2145 reset innermost_block.
2147 2019-03-23 Tom Tromey <tom@tromey.com>
2149 * objfiles.h: Include bcache.h.
2151 2019-03-23 Tom Tromey <tom@tromey.com>
2153 * linespec.c (get_current_search_block): Use
2154 scoped_restore_current_language.
2155 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
2157 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2158 Jiong Wang <jiong.wang@arm.com>
2160 * aarch64-linux-tdep.c
2161 (aarch64_linux_iterate_over_regset_sections): Check for pauth
2163 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
2165 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2166 Jiong Wang <jiong.wang@arm.com>
2168 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
2170 (aarch64_analyze_prologue_test): Add PACIASP test.
2171 (aarch64_prologue_prev_register): Unmask PC value.
2173 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2174 Jiong Wang <jiong.wang@arm.com>
2176 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
2177 (aarch64_dwarf2_prev_register): Unmask PC value.
2178 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
2179 (aarch64_execute_dwarf_cfa_vendor_op): Check for
2180 DW_CFA_AARCH64_negate_ra_state.
2181 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
2183 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2184 Jiong Wang <jiong.wang@arm.com>
2186 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
2188 (aarch64_pseudo_register_name): Likewise.
2189 (aarch64_pseudo_register_type): Likewise.
2190 (aarch64_pseudo_register_reggroup_p): Likewise.
2191 (aarch64_gdbarch_init): Add pauth registers.
2192 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
2193 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
2194 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
2195 (struct gdbarch_tdep): Add regnum for ra_state.
2197 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2198 Jiong Wang <jiong.wang@arm.com>
2200 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
2202 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2203 Jiong Wang <jiong.wang@arm.com>
2205 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
2207 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
2208 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
2209 (aarch64_gdbarch_init): Add puth registers.
2210 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
2211 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
2212 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
2214 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2215 Jiong Wang <jiong.wang@arm.com>
2217 * aarch64-linux-nat.c
2218 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
2219 * aarch64-linux-tdep.c
2220 (aarch64_linux_core_read_description): Likewise.
2221 (aarch64_linux_get_hwcap): New function.
2222 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
2223 (aarch64_linux_get_hwcap): New declaration.
2225 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2226 Jiong Wang <jiong.wang@arm.com>
2228 * aarch64-linux-nat.c
2229 (aarch64_linux_nat_target::read_description): Add pauth param.
2230 * aarch64-linux-tdep.c
2231 (aarch64_linux_core_read_description): Likewise.
2232 * aarch64-tdep.c (struct target_desc): Add in pauth.
2233 (aarch64_read_description): Add pauth param.
2234 (aarch64_gdbarch_init): Likewise.
2235 * aarch64-tdep.h (aarch64_read_description): Likewise.
2236 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2237 * arch/aarch64.h (aarch64_create_target_description): Likewise.
2238 * features/Makefile: Add new files.
2239 * features/aarch64-pauth.c: New file.
2240 * features/aarch64-pauth.xml: New file.
2242 2019-03-20 Tom Tromey <tromey@adacore.com>
2244 * infrun.c (handle_inferior_event): Rename from
2245 handle_inferior_event_1. Create a scoped_value_mark.
2246 (handle_inferior_event): Remove.
2248 2019-03-19 Tom Tromey <tromey@adacore.com>
2250 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
2251 * infrun.h (print_stop_event): Add "displays" parameter.
2252 * infrun.c (print_stop_event): Add "displays" parameter.
2254 2019-03-19 Pedro Alves <palves@redhat.com>
2256 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
2257 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
2258 to -1. Fix TABs vs spaces.
2259 (tui_ui_out::tui_ui_out): Don't initialize fields here.
2260 * tui/tui-out.h (tui_ui_out) Add intro comments.
2261 <m_line, m_start_of_line>: In-class initialize, and add describing
2264 2019-03-18 Alan Hayward <alan.hayward@arm.com>
2266 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
2268 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
2270 2019-03-18 Pedro Alves <palves@redhat.com>
2271 Eli Zaretskii <eliz@gnu.org>
2273 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
2274 m_line and m_start_of_line.
2276 2019-03-18 Eli Zaretskii <eliz@gnu.org>
2278 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
2279 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
2280 it returns a newline. This fixes a regression in TU mode, whereby
2281 the next line is output on the same screen line as the user input.
2283 2019-03-18 Tom Tromey <tromey@adacore.com>
2285 * minsyms.c (minimal_symbol_reader::install): Remove call to
2288 2019-03-18 Pedro Alves <palves@redhat.com>
2290 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
2292 (apply_style): New, factored out from ...
2293 (apply_ansi_escape): ... this. Handle reverse video mode.
2294 (tui_set_reverse_mode): New function.
2295 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
2296 * tui/tui-winsource.c (tui_show_source_line): Use
2297 tui_set_reverse_mode instead of setting A_STANDOUT.
2298 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
2301 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
2303 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
2306 2019-03-18 Tom Tromey <tromey@adacore.com>
2308 * ada-lang.c (empty_array): Add "high" parameter.
2309 (ada_evaluate_subexp): Update.
2311 2019-03-17 Sergei Trofimovich <siarheit@google.com>
2313 * unittests/string_view-selftests.c: Define
2314 _initialize_string_view_selftests unconditionally.
2316 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
2319 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
2321 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
2324 * windows-nat.c (display_selector): Fix format specifiers.
2326 2019-03-17 Eli Zaretskii <eliz@gnu.org>
2328 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
2329 tui_refill_source_window instead of tui_refresh_win, to update the
2330 current execution line. This fixes redisplay of the current line
2331 when stepping through the code with "next" or "step".
2333 2019-03-16 Eli Zaretskii <eliz@gnu.org>
2335 * source-cache.c (source_cache::get_source_lines): Call
2336 find_source_lines to initialize s->nlines. This fixes vertical
2337 scrolling of TUI source window when the DOWN arrow is pressed.
2339 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2341 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
2342 linux-thread-db.c (_initialize_thread_db): Likewise.
2344 2019-03-16 Eli Zaretskii <eliz@gnu.org>
2346 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
2347 wclrtoeol in tui_show_source_line". This reverts changes made in
2348 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
2350 2019-03-15 Tom Tromey <tom@tromey.com>
2352 * symtab.h (struct minimal_symbol): Derive from
2353 general_symbol_info.
2354 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
2355 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2356 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2357 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2358 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
2359 (MSYMBOL_SEARCH_NAME): Update.
2360 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
2361 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
2362 * minsyms.c (minimal_symbol_reader::record_full): Update.
2364 2019-03-15 Tom Tromey <tom@tromey.com>
2366 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
2368 2019-03-15 Tom Tromey <tom@tromey.com>
2370 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
2372 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
2374 * minsyms.c (lookup_minimal_symbol_by_pc_section)
2375 (build_minimal_symbol_hash_tables)
2376 (minimal_symbol_reader::install): Update.
2378 2019-03-15 Tom Tromey <tom@tromey.com>
2380 * symtab.c (create_demangled_names_hash): Update.
2381 (symbol_set_names): Update.
2382 * objfiles.h (struct objfile_per_bfd_storage)
2383 <demangled_names_hash>: Now an htab_up.
2384 * objfiles.c (objfile_per_bfd_storage): Simplify.
2386 2019-03-15 Tom Tromey <tom@tromey.com>
2388 * objfiles.h (struct objfile_per_bfd_storage): Declare
2390 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
2392 (get_objfile_bfd_data): Use new. Don't initialize
2394 (free_objfile_per_bfd_storage): Remove.
2395 (objfile_bfd_data_free, objfile::~objfile): Use delete.
2397 2019-03-15 Tom Tromey <tom@tromey.com>
2399 * symfile.c (reread_symbols): Update.
2400 * objfiles.c (objfile::objfile): Update.
2401 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
2402 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
2404 (minimal_symbol_reader::install): Update.
2405 (terminate_minimal_symbol_table): Remove.
2406 * jit.c (jit_object_close_impl): Update.
2408 2019-03-15 Tom Tromey <tom@tromey.com>
2410 * minsyms.c (minimal_symbol_reader::record_full): Remove some
2413 2019-03-15 Tom Tromey <tom@tromey.com>
2415 * objfiles.h (struct objfile_per_bfd_storage)
2416 <demangled_hash_languages>: Now a bitset.
2417 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
2418 (lookup_minimal_symbol): Update.
2420 2019-03-15 Tom Tromey <tom@tromey.com>
2422 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
2423 Don't return the symbol.
2424 * coffread.c (record_minimal_symbol): Use record_full.
2426 2019-03-14 Eli Zaretskii <eliz@gnu.org>
2428 The MS-Windows port of ncurses fails to switch to a color pair if
2429 one or both of the colors are the implicit default colors. This
2430 change records the default colors when TUI is initialized, and
2431 then specifies them explicitly when a color pair uses the default
2432 colors. This allows color styling in TUI mode on MS-Windows.
2434 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
2436 (tui_initialize_io) [__MINGW32__]: Record the default terminal
2437 colors in ncurses_norm_attr.
2438 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
2439 "none", replace it with the default color recorded in
2442 2019-03-14 Tom Tromey <tromey@adacore.com>
2444 * source-cache.h (class source_cache) <get_source_lines>: Return
2446 * source-cache.c (source_cache::extract_lines): Handle case where
2447 first_pos==npos. Return std::string.
2448 (source_cache::get_source_lines): Update.
2450 2019-03-14 Tom Tromey <tromey@adacore.com>
2452 * NEWS: Add item for "style sources" commands.
2453 * source-cache.c (source_cache::get_source_lines): Check
2455 * cli/cli-style.c (source_styling): New global.
2456 (_initialize_cli_style): Add "style sources" commands.
2457 (show_style_sources): New function.
2458 * cli/cli-style.h (source_styling): Declare.
2460 2019-03-14 Pedro Alves <palves@redhat.com>
2461 Tom Tromey <tromey@adacore.com>
2463 * tui/tui-winsource.h (tui_refill_source_window): Declare.
2464 * tui/tui-winsource.c (tui_refill_source_window): New function,
2466 (tui_horizontal_source_scroll): ... here. Move some logic.
2467 * cli/cli-style.c (set_style_enabled): Notify new observable.
2468 * tui/tui-hooks.c (tui_redisplay_source): New function.
2469 (tui_attach_detach_observers): Attach or detach
2470 tui_redisplay_source.
2471 * observable.h (source_styling_changed): New observable.
2472 * observable.c: Define source_styling_changed observable.
2474 2019-03-13 Tom Tromey <tromey@adacore.com>
2476 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
2477 (i386_gnu_nat_target::store_registers): Update.
2478 * target-debug.h (target_debug_print_std_string): New macro.
2479 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2480 * windows-tdep.c (display_one_tib): Update.
2481 * tui/tui-stack.c (tui_make_status_line): Update.
2482 * top.c (print_inferior_quit_action): Update.
2483 * thread.c (thr_try_catch_cmd): Update.
2484 (add_thread_with_info): Update.
2485 (thread_target_id_str): Update.
2486 (thr_try_catch_cmd): Update.
2487 (thread_command): Update.
2488 (thread_find_command): Update.
2489 * record-btrace.c (record_btrace_target::info_record)
2490 (record_btrace_resume_thread, record_btrace_target::resume)
2491 (record_btrace_cancel_resume, record_btrace_step_thread)
2492 (record_btrace_target::wait, record_btrace_target::wait)
2493 (record_btrace_target::wait, record_btrace_target::stop): Update.
2494 * progspace.c (print_program_space): Update.
2495 * process-stratum-target.c
2496 (process_stratum_target::thread_address_space): Update.
2497 * linux-fork.c (linux_fork_mourn_inferior)
2498 (detach_checkpoint_command, info_checkpoints_command)
2499 (linux_fork_context): Update.
2500 (linux_fork_detach): Update.
2501 (class scoped_switch_fork_info): Update.
2502 (delete_checkpoint_command): Update.
2503 * infrun.c (follow_fork_inferior): Update.
2504 (follow_fork_inferior): Update.
2505 (proceed_after_vfork_done): Update.
2506 (handle_vfork_child_exec_or_exit): Update.
2507 (follow_exec): Update.
2508 (displaced_step_prepare_throw): Update.
2509 (displaced_step_restore): Update.
2510 (start_step_over): Update.
2512 (clear_proceed_status_thread): Update.
2514 (print_target_wait_results): Update.
2515 (do_target_wait): Update.
2516 (context_switch): Update.
2517 (stop_all_threads): Update.
2518 (restart_threads): Update.
2519 (finish_step_over): Update.
2520 (handle_signal_stop): Update.
2521 (switch_back_to_stepped_thread): Update.
2522 (keep_going_pass_signal): Update.
2523 (print_exited_reason): Update.
2524 (normal_stop): Update.
2525 * inferior.c (inferior_pid_to_str): Change return type.
2526 (print_selected_inferior): Update.
2527 (add_inferior): Update.
2528 (detach_inferior): Update.
2529 * dummy-frame.c (fprint_dummy_frames): Update.
2530 * dcache.c (dcache_info_1): Update.
2531 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
2532 (btrace_fetch, btrace_clear): Update.
2533 * linux-tdep.c (linux_core_pid_to_str): Change return type.
2534 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
2536 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
2537 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
2538 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
2539 * gdbarch.c, gdbarch.h: Rebuild.
2540 * gdbarch.sh (core_pid_to_str): Change return type.
2541 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
2543 (windows_nat_target::pid_to_str): Change return type.
2544 (windows_delete_thread): Update.
2545 (windows_nat_target::attach): Update.
2546 (windows_nat_target::files_info): Update.
2547 * target-delegates.c: Rebuild.
2548 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
2550 (sol_thread_target::pid_to_str): Change return type.
2551 * remote.c (class remote_target) <pid_to_str>: Change return
2553 (remote_target::pid_to_str): Change return type.
2554 (extended_remote_target::attach, remote_target::remote_stop_ns)
2555 (remote_target::remote_notif_remove_queued_reply)
2556 (remote_target::push_stop_reply, remote_target::disable_btrace):
2558 (extended_remote_target::attach): Update.
2559 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
2561 (gdbsim_target::pid_to_str): Change return type.
2562 * ravenscar-thread.c (struct ravenscar_thread_target)
2563 <pid_to_str>: Change return type.
2564 (ravenscar_thread_target::pid_to_str): Change return type.
2565 * procfs.c (class procfs_target) <pid_to_str>: Change return
2567 (procfs_target::pid_to_str): Change return type.
2568 (procfs_target::attach): Update.
2569 (procfs_target::detach): Update.
2570 (procfs_target::fetch_registers): Update.
2571 (procfs_target::store_registers): Update.
2572 (procfs_target::wait): Update.
2573 (procfs_target::files_info): Update.
2574 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
2575 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
2577 (nto_procfs_target::pid_to_str): Change return type.
2578 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
2579 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
2581 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
2583 (attach_proc_task_lwp_callback, get_detach_signal)
2584 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
2585 (linux_nat_target::resume, wait_lwp, stop_callback)
2586 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
2587 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
2588 (linux_nat_wait_1, resume_stopped_resumed_lwps)
2589 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
2590 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
2592 (inf_ptrace_target::attach): Update.
2593 (inf_ptrace_target::files_info): Update.
2594 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
2596 (go32_nat_target::pid_to_str): Change return type.
2597 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
2598 (gnu_nat_target::wait): Update.
2599 (gnu_nat_target::wait): Update.
2600 (gnu_nat_target::resume): Update.
2601 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
2602 (fbsd_nat_target::wait): Update.
2603 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
2605 (darwin_nat_target::attach): Update.
2606 * corelow.c (class core_target) <pid_to_str>: Change return type.
2607 (core_target::pid_to_str): Change return type.
2608 * target.c (normal_pid_to_str): Change return type.
2609 (default_pid_to_str): Likewise.
2610 (target_pid_to_str): Change return type.
2611 (target_translate_tls_address): Update.
2612 (target_announce_detach): Update.
2613 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
2615 (bsd_uthread_target::pid_to_str): Change return type.
2616 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
2618 (bsd_kvm_target::pid_to_str): Change return type.
2619 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
2621 (aix_thread_target::pid_to_str): Change return type.
2622 * target.h (struct target_ops) <pid_to_str>: Change return type.
2623 (target_pid_to_str, normal_pid_to_str): Likewise.
2624 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
2626 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
2628 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
2630 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
2632 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
2634 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
2637 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
2639 * NEWS: Mention that the new default MI version is 3. Mention
2640 changes to the output of commands and events that deal with
2641 multi-location breakpoints.
2642 * breakpoint.c: Include "mi/mi-out.h".
2643 (print_one_breakpoint): Change output syntax if using MI version
2645 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
2647 (mi_multi_location_breakpoint_output_fixed): New.
2648 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
2649 (mi_cmd_fix_multi_location_breakpoint_output): New.
2650 (mi_multi_location_breakpoint_output_fixed): New.
2651 * mi/mi-cmds.c (mi_cmds): Register command
2652 -fix-multi-location-breakpoint-output.
2653 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
2656 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2658 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
2659 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
2660 instantiate mi_ui_out based on interpreter name.
2661 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
2662 * mi/mi-main.c (mi_load_progress): Likewise.
2664 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2666 * NEWS: Combine separate "New targets" sections for 8.3.
2668 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2670 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
2671 (ppcfbsd_init_abi): Install gdbarch
2672 "fetch_tls_load_module_address" and "get_thread_local_address"
2675 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2677 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
2678 (riscv_fbsd_init_abi): Install gdbarch
2679 "fetch_tls_load_module_address" and "get_thread_local_address"
2682 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2684 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
2685 (i386fbsd_init_abi): Install gdbarch
2686 "fetch_tls_load_module_address" and "get_thread_local_address"
2689 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2691 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
2692 (amd64fbsd_init_abi): Install gdbarch
2693 "fetch_tls_load_module_address" and "get_thread_local_address"
2696 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2698 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
2699 (struct fbsd_pspace_data): New type.
2700 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
2701 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
2702 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
2703 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
2704 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
2706 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2708 * gdbtypes.c (lookup_struct_elt): New function.
2709 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
2710 * gdbtypes.h (struct struct_elt): New type.
2711 (lookup_struct_elt): New prototype.
2713 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2715 * gdbtypes.c (lookup_struct_elt_type): Update comment and
2716 remove disabled code block.
2718 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2720 * gdbarch.sh (get_thread_local_address): New method.
2721 * gdbarch.h, gdbarch.c: Regenerate.
2722 * target.c (target_translate_tls_address): Use
2723 gdbarch_get_thread_local_address if present instead of
2724 target::get_thread_local_address.
2726 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2728 * target.h (target::get_thread_local_address): Update comment.
2730 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2732 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
2733 objfile->separate_debug_objfile_backlink if not NULL.
2735 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2737 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
2738 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
2739 (amd64bsd_store_inferior_registers): Likewise.
2740 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
2741 Enable segment base registers.
2742 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
2743 PT_GETFSBASE and PT_GETGSBASE.
2744 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
2746 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
2747 segment base registers.
2748 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
2750 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2752 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
2753 Update calls to i386_target_description to add 'segments'
2755 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
2756 add segment base registers.
2757 * arch/i386.c (i386_create_target_description): Add 'segments'
2758 parameter to enable segment base registers.
2759 * arch/i386.h (i386_create_target_description): Likewise.
2760 * features/i386/32bit-segments.xml: New file.
2761 * features/i386/32bit-segments.c: Generate.
2762 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
2763 call to i386_target_description to add 'segments' parameter.
2764 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
2765 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
2766 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
2767 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
2768 if feature is present.
2769 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
2770 Add 'segments' parameter to call to i386_target_description.
2771 (i386_target_description): Add 'segments' parameter to enable
2772 segment base registers.
2773 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
2774 to call to i386_target_description.
2775 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
2776 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
2777 Define I386_NUM_REGS.
2778 (i386_target_description): Add 'segments' parameter to enable
2779 segment base registers.
2781 2019-03-12 Eli Zaretskii <eliz@gnu.org>
2784 * source-cache.c: #undef open and close, to avoid unresolved
2785 externals during linking.
2787 2019-03-12 Tom Tromey <tromey@adacore.com>
2789 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
2790 const. Add initializers.
2791 (_initialize_remote): Don't initialize ptid globals.
2793 2019-03-12 Pedro Alves <palves@redhat.com>
2795 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
2797 2019-03-12 Pedro Alves <palves@redhat.com>
2799 * cp-name-parser.y (main): Remove unused 'len' variable.
2801 2019-03-12 Tom Tromey <tromey@adacore.com>
2803 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
2804 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
2806 2019-03-12 Tom Tromey <tromey@adacore.com>
2808 * linux-nat.c (iterate_over_lwps): Update.
2809 (stop_callback): Remove parameter.
2810 (stop_wait_callback, detach_callback, resume_set_callback)
2811 (select_singlestep_lwp_callback, set_ignore_sigint)
2812 (status_callback, resumed_callback, resume_clear_callback)
2813 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
2815 (linux_nat_target::detach, linux_nat_target::resume)
2816 (linux_stop_and_wait_all_lwps, select_event_lwp)
2817 (linux_nat_filter_event, linux_nat_wait_1)
2818 (linux_nat_target::kill, linux_nat_target::stop)
2819 (linux_nat_target::stop): Update.
2820 (linux_nat_resume_callback): Change type.
2821 (resume_stopped_resumed_lwps, count_events_callback)
2822 (select_event_lwp_callback): Likewise.
2823 (linux_stop_lwp, linux_nat_stop_lwp): Update.
2824 * arm-linux-nat.c (struct update_registers_data): Remove.
2825 (update_registers_callback): Change type.
2826 (arm_linux_insert_hw_breakpoint1): Update.
2827 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
2829 (x86_linux_dr_set_addr): Update.
2830 (x86_linux_dr_set_control): Update.
2831 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
2832 (iterate_over_lwps): Use gdb::function_view.
2833 * nat/aarch64-linux-hw-point.c (struct
2834 aarch64_dr_update_callback_param): Remove.
2835 (debug_reg_change_callback): Change type.
2836 (aarch64_notify_debug_reg_change): Update.
2837 * s390-linux-nat.c (s390_refresh_per_info): Update.
2839 2019-03-11 Tom Tromey <tromey@adacore.com>
2841 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
2842 redundant assignment to "this_cu".
2844 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2846 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
2848 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2850 * gdbtypes.c (rank_one_type_parm_set): New function extracted
2852 (rank_one_type): ... this.
2854 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2856 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
2858 (rank_one_type): ... this.
2860 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2862 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
2864 (rank_one_type): ... this.
2866 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2868 * gdbtypes.c (rank_one_type_parm_float): New function extracted
2870 (rank_one_type): ... this.
2872 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2874 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
2876 (rank_one_type): ... this.
2878 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2880 * gdbtypes.c (rank_one_type_parm_range): New function extracted
2882 (rank_one_type): ... this.
2884 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2886 * gdbtypes.c (rank_one_type_parm_char): New function extracted
2888 (rank_one_type): ... this.
2890 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2892 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
2894 (rank_one_type): ... this.
2896 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2898 * gdbtypes.c (rank_one_type_parm_int): New function extracted
2900 (rank_one_type): ... this.
2902 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2904 * gdbtypes.c (rank_one_type_parm_func): New function extracted
2906 (rank_one_type): ... this.
2908 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2910 * gdbtypes.c (rank_one_type_parm_array): New function extracted
2912 (rank_one_type): ... this.
2914 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2916 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
2918 (rank_one_type): ... this.
2920 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2922 * inferior.c (initialize_inferiors): Ensure 'help set/show print
2923 inferior-events' shows the example events.
2925 2019-03-08 Eli Zaretskii <eliz@gnu.org>
2927 Support styling on native MS-Windows console
2930 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
2931 on MS-Windows if $TERM is not defined.
2933 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
2935 * posix-hdep.c (gdb_console_fputs):
2936 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
2938 * ui-file.h (gdb_console_fputs): Add prototype.
2940 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
2941 back to fputs only if the former returns zero.
2943 2019-03-07 Tom Tromey <tom@tromey.com>
2945 * symmisc.c (print_symbol_bcache_statistics): Update.
2946 (print_objfile_statistics): Update.
2947 * symfile.c (allocate_symtab): Update.
2948 * stabsread.c: Don't include bcache.h.
2949 * psymtab.h (struct psymbol_bcache): Don't declare.
2950 (class psymtab_storage) <psymbol_cache>: Now a bcache.
2951 (psymbol_bcache_init, psymbol_bcache_free)
2952 (psymbol_bcache_get_bcache): Don't declare.
2953 * psymtab.c (struct psymbol_bcache): Remove.
2954 (psymtab_storage::psymtab_storage): Update.
2955 (psymtab_storage::~psymtab_storage): Update.
2956 (psymbol_bcache_init, psymbol_bcache_free)
2957 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
2958 (add_psymbol_to_bcache): Update.
2959 (allocate_psymtab): Update.
2960 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
2961 macro_cache>: No longer pointers.
2962 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
2963 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
2964 * macrotab.c (macro_bcache): Update.
2965 * macroexp.c: Don't include bcache.h.
2966 * gdbtypes.c (check_types_worklist): Update.
2967 (types_deeply_equal): Remove TRY/CATCH. Update.
2968 * elfread.c (elf_symtab_read): Update.
2969 * dwarf2read.c: Don't include bcache.h.
2970 * buildsym.c (buildsym_compunit::get_macro_table): Update.
2971 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
2972 (print_bcache_statistics, bcache_memory_used): Don't declare.
2973 (struct bcache): Move from bcache.c. Add constructor, destructor,
2974 methods. Rename all data members.
2975 * bcache.c (struct bcache): Move to bcache.h.
2976 (bcache::expand_hash_table): Rename from expand_hash_table.
2978 (bcache::insert): Rename from bcache_full.
2979 (bcache::compare): Rename from bcache_compare.
2980 (bcache_xmalloc): Remove.
2981 (bcache::~bcache): Rename from bcache_xfree.
2982 (bcache::print_statistics): Rename from print_bcache_statistics.
2983 (bcache::memory_used): Rename from bcache_memory_used.
2985 2019-03-07 Pedro Alves <palves@redhat.com>
2987 * infrun.c (normal_stop): Also check for
2988 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
2990 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
2992 * f-lang.c (value_from_host_double): Moved to...
2993 * value.c (value_from_host_double): ...here.
2994 * value.h (value_from_host_double): Declare.
2995 * guile/scm-math.c (vlscm_convert_typed_number): Use
2996 value_from_host_double.
2997 (vlscm_convert_number): Likewise.
2998 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
2999 * python/py-value.c (convert_value_from_python): Likewise.
3001 2019-03-06 Tom Tromey <tom@tromey.com>
3003 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
3005 2019-03-06 Tom Tromey <tom@tromey.com>
3007 * utils.h (free_current_contents): Don't declare.
3008 * utils.c (free_current_contents): Remove.
3010 2019-03-06 Tom Tromey <tom@tromey.com>
3012 * top.c (quit_force): Update.
3013 * main.c (captured_command_loop): Update.
3014 * common/new-op.c (operator new): Update.
3015 * common/common-exceptions.c (struct catcher)
3016 <save_cleanup_chain>: Remove member.
3017 (exceptions_state_mc_init): Update.
3018 (exception_try_scope_entry): Return nullptr.
3019 (exception_try_scope_exit, exception_rethrow)
3020 (throw_exception_sjlj, throw_exception_cxx): Update.
3021 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
3022 (all_cleanups, do_cleanups, discard_cleanups)
3023 (discard_final_cleanups, save_cleanups, save_final_cleanups)
3024 (restore_cleanups, restore_final_cleanups): Don't declare.
3025 (do_final_cleanups): Remove parameter.
3026 * common/cleanups.c (cleanup_chain, make_cleanup)
3027 (make_cleanup_dtor, all_cleanups, do_cleanups)
3028 (discard_my_cleanups, discard_cleanups)
3029 (discard_final_cleanups, save_my_cleanups, save_cleanups)
3030 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
3031 (null_cleanup): Remove.
3032 (do_final_cleanups): Remove parameter.
3034 2019-03-06 Tom Tromey <tom@tromey.com>
3036 * remote.c (remote_target::remote_parse_stop_reply): Use
3039 2019-03-06 Tom Tromey <tom@tromey.com>
3041 * stabsread.c (struct stabs_field_info): Rename from field_info.
3042 <list, fnlist>: Add initializers.
3043 <obstack>: New member.
3044 (read_member_functions, read_struct_fields, read_baseclasses):
3045 Allocate on obstack. Don't use cleanups.
3046 (read_one_struct_field, read_member_functions, read_struct_fields)
3047 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
3048 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
3049 (read_struct_type): Update.
3051 2019-03-06 Tom Tromey <tom@tromey.com>
3053 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
3054 * common/filestuff.h (make_cleanup_close): Don't declare.
3055 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
3058 2019-03-06 Tom Tromey <tom@tromey.com>
3060 * solib-aix.c: Use make_scope_exit.
3062 2019-03-06 Tom Tromey <tom@tromey.com>
3064 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
3065 Use make_scope_exit.
3067 2019-03-06 Tom Tromey <tom@tromey.com>
3069 * solib-svr4.c (disable_probes_interface): Remove parameter.
3070 (svr4_handle_solib_event): Use make_scope_exit.
3072 2019-03-06 Tom Tromey <tom@tromey.com>
3074 * remote.c (struct stop_reply_deleter): Remove.
3075 (stop_reply_up): Update.
3076 (struct stop_reply): Derive from notif_event. Don't typedef.
3077 <regcache>: Now a std::vector.
3078 (stop_reply_xfree): Remove.
3079 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
3080 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
3081 (remote_target::discard_pending_stop_replies): Use delete.
3082 (remote_target::remote_parse_stop_reply): Update.
3083 (remote_target::process_stop_reply): Update.
3084 * remote-notif.h (struct notif_event): Add virtual destructor.
3085 Remove "dtr" member.
3086 (struct notif_client) <alloc_event>: Return a unique_ptr.
3087 (notif_event_xfree): Don't declare.
3088 (notif_event_up): New typedef.
3089 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
3090 (notif_event_xfree, do_notif_event_xfree): Remove.
3091 (remote_notif_state_xfree): Update.
3093 2019-03-06 Tom Tromey <tom@tromey.com>
3095 * infrun.c (displaced_step_clear_cleanup): Now a
3096 forward_scope_exit type.
3097 (displaced_step_prepare_throw): Update.
3098 (displaced_step_fixup): Update.
3100 2019-03-06 Tom Tromey <tom@tromey.com>
3102 * inferior.h (class inferior): Update comment.
3103 * gdbthread.h (class thread_info): Update comment.
3105 2019-03-06 Joel Brobecker <brobecker@adacore.com>
3106 Tom Tromey <tom@tromey.com>
3108 * stabsread.h (struct stab_section_list): Remove.
3109 (coffstab_build_psymtabs): Update.
3110 * dbxread.c (symbuf_sections): Now a std::vector.
3111 (sect_idx): New global.
3112 (fill_symbuf): Update.
3113 (coffstab_build_psymtabs): Change type of stabsects parameter.
3115 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
3117 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
3118 (coff_locate_sections): Update.
3119 (coff_symfile_read): Remove cleanups. Update.
3120 (init_stringtab): Add storage parameter.
3121 (free_stringtab, free_stringtab_cleanup): Remove.
3122 (init_lineno): Add storage parameter.
3123 (free_linetab, free_linetab_cleanup): Remove.
3125 2019-03-06 Pedro Alves <palves@redhat.com>
3127 * linux-fork.c (fork_info::clobber_regs): Delete.
3128 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
3129 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
3131 (scoped_switch_fork_info::scoped_switch_fork_info)
3132 (checkpoint_command, linux_fork_context): Adjust
3133 fork_save_infrun_state calls.
3135 2019-03-06 Pedro Alves <palves@redhat.com>
3137 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
3138 (inf_has_multiple_threads): Return 'bool' and rewrite using
3139 inferior_info::threads().
3141 2019-03-06 Pedro Alves <palves@redhat.com>
3143 * linux-fork.c: Include <list>.
3144 (fork_list): Now a std::list instance.
3145 (fork_info): Add ctor, dtor, and in-class initialize all fields.
3146 (forks_exist_p, find_last_fork): Adjust.
3150 (free_fork): Delete, folded into fork_info::~fork_info().
3151 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
3153 (init_fork_list): Delete.
3154 (linux_fork_killall, linux_fork_mourn_inferior)
3155 (linux_fork_detach, info_checkpoints_command): Adjust.
3156 (_initialize_linux_fork): No longer call init_fork_list.
3158 2019-03-06 Pedro Alves <palves@redhat.com>
3160 * linux-fork.c (new_fork): New, split out of ...
3161 (add_fork): ... this. Return void. Move "first fork" special
3162 case from here, to ...
3163 (checkpoint_command): ... here.
3164 * linux-linux.h (add_fork): Return void.
3166 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3168 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
3170 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3171 Chris January <chris.january@arm.com>
3172 David Lecomber <david.lecomber@arm.com>
3174 * f-exp.y: New token, UNOP_INTRINSIC.
3175 (exp): New pattern using UNOP_INTRINSIC token.
3176 (f77_keywords): Add 'abs' keyword.
3177 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
3178 (value_from_host_double): New function.
3179 (evaluate_subexp_f): Support UNOP_ABS.
3181 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3183 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
3186 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3188 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
3189 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
3190 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
3192 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3194 * f-exp.y (convert_to_kind_type): Handle more type kinds.
3196 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3197 Chris January <chris.january@arm.com>
3199 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
3200 * f-exp.y: Define 'KIND' token.
3201 (exp): New pattern for KIND expressions.
3202 (ptype): Handle types with a kind extension.
3203 (direct_abs_decl): Extend to spot kind extensions.
3204 (f77_keywords): Add 'kind' to the list.
3205 (push_kind_type): New function.
3206 (convert_to_kind_type): New function.
3207 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
3208 * parse.c (operator_length_standard): Likewise.
3209 * parser-defs.h (enum type_pieces): Add tp_kind.
3210 * std-operator.def: Add UNOP_KIND.
3212 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3214 * f-exp.y (f_parse): Set yydebug.
3216 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3218 * f-lang.c (evaluate_subexp_f): New function.
3219 (exp_descriptor_f): New global.
3220 (f_language_defn): Use exp_descriptor_f instead of
3221 exp_descriptor_standard.
3223 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3225 * f-exp.y (struct token): Add comments.
3226 (dot_ops): Remove uppercase versions and the end marker.
3227 (f77_keywords): Likewise.
3228 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
3229 entries in the dot_ops array are case insensitive, and use
3230 strncasecmp to compare strings. Also some whitespace cleanup in
3231 this area. Similar for the f77_keywords array, except entries in
3232 this list might be case sensitive.
3234 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3236 * f-exp.y (struct f77_boolean_val): Add comments.
3237 (boolean_values): Remove uppercase versions, and end marker.
3238 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
3239 and use strncasecmp to achieve case insensitivity. Additionally,
3240 perform whitespace cleanup around this code.
3242 2019-03-06 Tom Tromey <tromey@adacore.com>
3244 * remote-sim.c (gdbsim_target_open): Use result of
3247 2019-03-06 Richard Bunt <richard.bunt@arm.com>
3248 Dirk Schubert <dirk.schubert@arm.com>
3249 Chris January <chris.january@arm.com>
3251 * eval.c (evaluate_subexp_standard): Call Fortran argument
3253 * f-lang.c (struct value): A value which can be passed into a
3254 Fortran function call.
3255 (fortran_argument_convert): Wrap Fortran arguments in a pointer
3257 (struct type): Value ready for a Fortran function call.
3258 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
3260 * f-lang.h (fortran_argument_convert): Declaration.
3261 (fortran_preserve_arg_pointer): Declaration.
3262 * infcall.c (value_arg_coerce): Call Fortran argument logic.
3264 2019-03-05 Tom Tromey <tromey@adacore.com>
3266 * python/py-prettyprint.c (print_string_repr): Remove #if.
3267 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
3269 2019-03-05 Tom Tromey <tromey@adacore.com>
3271 * target.c (the_dummy_target): Move later. Change type to
3273 (initialize_targets): Don't initialize the_dummy_target.
3275 2019-03-05 Tom Tromey <tromey@adacore.com>
3277 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
3278 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
3280 2019-03-05 Tom Tromey <tromey@adacore.com>
3282 * windows-nat.c (windows_nat_target::attach)
3283 (windows_nat_target::detach): Don't call gdb_flush.
3284 * valprint.c (generic_val_print, val_print, val_print_string):
3285 Don't call gdb_flush.
3286 * utils.c (defaulted_query): Don't call gdb_flush.
3287 * typeprint.c (print_type_scalar): Don't call gdb_flush.
3288 * target.c (target_announce_detach): Don't call gdb_flush.
3289 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
3290 * remote.c (extended_remote_target::attach): Don't call
3292 * procfs.c (procfs_target::detach): Don't call gdb_flush.
3293 * printcmd.c (do_examine): Don't call gdb_flush.
3294 (info_display_command): Don't call gdb_flush.
3295 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
3296 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
3297 * memattr.c (info_mem_command): Don't call gdb_flush.
3298 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
3299 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
3300 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
3301 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
3302 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
3303 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
3304 (gnu_nat_target::detach): Don't call gdb_flush.
3305 * f-valprint.c (f_val_print): Don't call gdb_flush.
3306 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
3307 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
3308 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
3310 * c-valprint.c (c_val_print): Don't call gdb_flush.
3311 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
3313 2019-03-05 Tom Tromey <tromey@adacore.com>
3315 * varobj.c (update_dynamic_varobj_children): Update.
3316 (install_default_visualizer): Use reset, not release.
3317 * value.c (set_internalvar): Update.
3318 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
3319 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
3320 ATTRIBUTE_UNUSED_RESULT.
3322 2019-03-05 Tom Tromey <tromey@adacore.com>
3324 * remote.c (class scoped_remote_fd) <release>: Add
3325 ATTRIBUTE_UNUSED_RESULT.
3327 2019-03-05 Tom Tromey <tromey@adacore.com>
3329 * macroexp.c (struct macro_buffer) <release>: Add
3330 ATTRIBUTE_UNUSED_RESULT.
3332 2019-03-05 Tom Tromey <tromey@adacore.com>
3334 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
3335 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
3336 ATTRIBUTE_UNUSED_RESULT.
3338 2019-03-05 Tom Tromey <tromey@adacore.com>
3340 * common/scoped_fd.h (class scoped_fd) <release>: Add
3341 ATTRIBUTE_UNUSED_RESULT.
3343 2019-03-05 Tom Tromey <tromey@adacore.com>
3345 * parser-defs.h (struct parser_state) <release>: Add
3346 ATTRIBUTE_UNUSED_RESULT.
3348 2019-03-05 Tom Tromey <tromey@adacore.com>
3350 * utils.h (class gdb_argv) <release>: Add
3351 ATTRIBUTE_UNUSED_RESULT.
3352 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
3354 2019-03-02 Eli Zaretskii <eliz@gnu.org>
3356 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
3357 for-loop range, to avoid compiler warnings.
3359 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
3360 avoid compiler warnings about unused variables.
3362 * NEWS: Mention end of support for native debugging on MS-Windows
3366 * common/netstuff.c:
3367 * gdbserver/gdbreplay.c
3368 * gdbserver/remote-utils.c:
3370 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
3371 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
3372 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
3373 'getaddrinfo' and 'freeaddrinfo' were not available before
3374 Windows XP, and mingw.org's MinGW headers by default define
3375 _WIN32_WINNT to 0x500.
3377 2019-03-01 Gary Benson <gbenson@redhat.com>
3379 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
3381 2019-02-28 Brian Vandenberg <phantall@gmail.com>
3382 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3385 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
3386 set_sigint_trap, clear_sigint_trap.
3388 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3390 * target.c (target_detach): Clear the regcache and the
3393 2019-02-27 Pedro Alves <palves@redhat.com>
3395 * utils.c (set_screen_size): When we cap the height/width sizes,
3396 tweak the corresponding command variable to show "unlimited":
3398 2019-02-27 Saagar Jha <saagar@saagarjha.com>
3399 Pedro Alves <palves@redhat.com>
3401 * utils.c (set_screen_size): Reduce "infinite" rows and columns
3402 before calling rl_set_screen_size.
3404 2019-02-27 Tom Tromey <tromey@adacore.com>
3406 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
3408 * python/py-value.c: Remove Python 2.4 workaround.
3409 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
3411 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
3412 Python 2.4 workaround.
3413 * python/python-internal.h: Remove Python 2.4 comment.
3414 (Py_ssize_t): Don't define.
3415 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
3416 (gdb_Py_DECREF): Remove Python 2.4 workaround.
3417 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
3418 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
3419 * python/python.c (do_start_initialization): Remove Python 2.4
3421 * python/py-prettyprint.c (class dummy_python_frame): Remove.
3422 (print_children): Remove Python 2.4 workaround.
3423 * python/py-inferior.c (buffer_procs): Remove Python 2.4
3425 (CHARBUFFERPROC_NAME): Remove.
3426 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
3427 Python 2.4 workaround.
3429 2019-02-27 Kevin Buettner <kevinb@redhat.com>
3431 * NEWS: Note minimum Python version.
3433 2019-02-27 Kevin Buettner <kevinb@redhat.com>
3435 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
3436 code from these functions. Remove corresponding ifdefs. Use
3437 Py_buffer_up instead of explicit calls to PyBuffer_Release.
3438 Remove gotos and target of gotos.
3439 (infpy_search_memory): Likewise.
3441 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3443 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
3444 (hppa_gdbarch_init): Don't register deleted functions with
3447 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3449 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
3450 (h8300_unwind_sp): Delete.
3451 (h8300_dummy_id): Delete.
3452 (h8300_gdbarch_init): Don't register deleted functions with
3455 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3457 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
3458 (ft32_unwind_pc): Delete.
3459 (ft32_unwind_sp): Delete.
3460 (ft32_gdbarch_init): Don't register deleted functions with
3463 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3465 * gdb/frv-tdep.c (frv_dummy_id): Delete.
3466 (frv_unwind_pc): Delete.
3467 (frv_unwind_sp): Delete.
3468 (frv_gdbarch_init): Don't register deleted functions with
3471 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3473 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
3474 (riscv_unwind_pc): Delete.
3475 (riscv_unwind_sp): Delete.
3476 (riscv_gdbarch_init): Don't register deleted functions with
3479 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3481 * gdb/csky-tdep.c (csky_dummy_id): Delete.
3482 (csky_unwind_pc): Delete.
3483 (csky_unwind_sp): Delete.
3484 (csky_gdbarch_init): Don't register deleted functions with
3487 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3489 * gdb/cris-tdep.c (cris_dummy_id): Delete.
3490 (cris_unwind_pc): Delete.
3491 (cris_unwind_sp): Delete.
3492 (cris_gdbarch_init): Don't register deleted functions with
3495 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3497 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
3498 (bfin_unwind_pc): Delete.
3499 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
3501 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3503 * gdb/arm-tdep.c (arm_dummy_id): Delete.
3504 (arm_unwind_pc): Delete.
3505 (arm_unwind_sp): Delete.
3506 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
3508 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3510 * gdb/arc-tdep.c (arc_dummy_id): Delete.
3511 (arc_unwind_pc): Delete.
3512 (arc_unwind_sp): Delete.
3513 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
3515 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3517 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
3518 (alpha_unwind_pc): Delete.
3519 (alpha_gdbarch_init): Don't register deleted functions with
3522 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3524 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
3525 (aarch64_unwind_pc): Delete.
3526 (aarch64_unwind_sp): Delete.
3527 (aarch64_gdbarch_init): Don't register deleted functions with
3530 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3532 * gdbtypes.c (type_align): Don't consider static members when
3533 computing structure alignment.
3535 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3537 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
3538 return 0 for other types.
3539 * arch-utils.c (default_type_align): Always return 0.
3540 * gdbarch.h: Regenerate.
3541 * gdbarch.sh (type_align): Extend comment.
3542 * gdbtypes.c (type_align): Add additional comments, always call
3543 gdbarch_type_align before applying the default rules.
3544 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
3545 generic code will then apply a suitable default.
3546 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
3547 types, return 0 for other types.
3549 2019-02-27 Joel Brobecker <brobecker@adacore.com>
3551 * NEWS: Create a new section for the next release branch.
3552 Rename the section of the current branch, now that it has
3555 2019-02-27 Joel Brobecker <brobecker@adacore.com>
3557 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
3558 * version.in: Bump version to 8.3.50.DATE-git.
3560 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
3562 * aix-thread.c (ptid_cmp): Remove unused variable.
3563 (get_signaled_thread): Likewise.
3564 (store_regs_user_thread): Likewise.
3565 (store_regs_kernel_thread): Likewise.
3566 (fetch_regs_kernel_thread): Remove shadowed variable.
3568 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
3570 * features/riscv/32bit-cpu.xml: Add register numbers.
3571 * features/riscv/32bit-fpu.c: Regenerate.
3572 * features/riscv/32bit-fpu.xml: Add register numbers.
3573 * features/riscv/64bit-cpu.xml: Add register numbers.
3574 * features/riscv/64bit-fpu.c: Regenerate.
3575 * features/riscv/64bit-fpu.xml: Add register numbers.
3577 2019-02-26 Kevin Buettner <kevinb@redhat.com>
3579 * NEWS: Mention two argument form of gdb.Value constructor.
3580 * python/py-value.c (convert_buffer_and_type_to_value): New
3582 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
3583 Add support for handling an optional second argument. Call
3584 convert_buffer_and_type_to_value as appropriate.
3585 * python/python-internal.h (Py_buffer_deleter): New struct.
3586 (Py_buffer_up): New typedef.
3588 2019-02-25 John Baldwin <jhb@FreeBSD.org>
3590 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
3591 instead of releasing ownership.
3593 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
3595 * dwarf2read.c (open_and_init_dwp_file): Call
3596 elf_numsections instead of bfd_count_sections to initialize
3597 dwp_file->num_sections.
3599 2019-02-25 Tom Tromey <tromey@adacore.com>
3601 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
3603 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
3605 * gcore.in: Add '--readnever' option when invoking GDB.
3607 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3609 * MAINTAINERS: Update my email address.
3611 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3613 * build-id.c (build_id_to_debug_bfd_1): New function.
3614 (build_id_to_debug_bfd): Look for separate debug file in
3617 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
3619 * gdbarch.sh: Update the copyright year range that is placed into
3622 2019-02-22 Keith Seitz <keiths@redhat.com>
3625 * linespec.c (create_sals_line_offset): Search for the default
3626 symtab's filename instead of its fullname.
3628 2019-02-21 Alan Hayward <alan.hayward@arm.com>
3630 * NEWS: Update style defaults.
3632 2019-02-21 Alan Hayward <alan.hayward@arm.com>
3634 * main.c (captured_main_1): Disable styling in batch mode.
3636 2019-02-20 Tom Tromey <tom@tromey.com>
3638 * symtab.c (symtab_symbol_info): Fix typos.
3640 2019-02-20 Tom Tromey <tromey@adacore.com>
3642 * findcmd.c (_initialize_mem_search): Use upper case for
3643 metasyntactic variables.
3645 2019-02-20 Alan Hayward <alan.hayward@arm.com>
3647 * aarch64-tdep.c (aarch64_add_reggroups): New function.
3648 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
3650 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
3652 * top.h (source_file_name): Change to std::string.
3653 * top.c (source_file_name): Likewise.
3654 (command_line_input): Adjust.
3655 * cli/cli-script.c (script_from_file): Adjust.
3657 2019-02-19 Tom Tromey <tromey@adacore.com>
3659 * ravenscar-thread.c
3660 (ravenscar_thread_target::update_thread_list): Don't call
3661 ada_build_task_list.
3662 * ada-lang.h (ada_build_task_list): Don't declare.
3663 * ada-tasks.c (struct ada_tasks_inferior_data)
3664 <task_list_valid_p>: Now bool.
3665 (read_known_tasks, ada_task_list_changed)
3666 (ada_tasks_invalidate_inferior_data): Update.
3667 (read_known_tasks_array): Return bool.
3668 (read_known_tasks_list): Likewise.
3669 (read_known_tasks): Return void.
3670 (ada_build_task_list): Now static.
3672 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
3674 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
3675 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
3677 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3679 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
3680 variant for ada_tasks_pspace_data_handle and
3681 ada_tasks_inferior_data_handle.
3682 (ada_tasks_pspace_data_cleanup): New function.
3683 (ada_tasks_inferior_data_cleanup): New function.
3685 2019-02-17 Tom Tromey <tom@tromey.com>
3687 * macrotab.h (macro_source_fullname): Return a std::string.
3688 * macrotab.c (macro_include, check_for_redefinition)
3689 (macro_undef, macro_lookup_definition, foreach_macro)
3690 (foreach_macro_in_scope): Update.
3691 (macro_source_fullname): Return a std::string.
3692 * macrocmd.c (show_pp_source_pos): Update.
3694 2019-02-17 Tom Tromey <tom@tromey.com>
3696 * macrocmd.c (show_pp_source_pos): Style the file names.
3698 2019-02-17 Tom Tromey <tom@tromey.com>
3701 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
3703 2019-02-17 Tom Tromey <tom@tromey.com>
3705 * ada-lang.c (user_select_syms): Use filtered printing.
3706 * utils.c (wrap_style): New global.
3707 (desired_style): Remove.
3708 (emit_style_escape): Add stream parameter.
3709 (set_output_style, reset_terminal_style, prompt_for_continue):
3711 (flush_wrap_buffer): Only flush gdb_stdout.
3712 (wrap_here): Set wrap_style.
3713 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
3714 treat escape sequences as a character. Change when wrap buffer is
3716 (fputs_styled): Do not set the output style when the default is
3718 * ui-style.h (struct ui_file_style) <is_default>: New method.
3719 * source.c (print_source_lines_base): Emit escape sequences in one
3722 2019-02-17 Joel Brobecker <brobecker@adacore.com>
3724 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
3725 integers and enumeration types.
3727 2019-02-17 Joel Brobecker <brobecker@adacore.com>
3729 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
3730 instead of lookup_symbol_in_language
3731 (do_exact_match): New function.
3732 (ada_get_symbol_name_matcher): Return do_exact_match when
3733 doing a verbatim match.
3735 2019-02-15 Tom Tromey <tromey@adacore.com>
3737 * ravenscar-thread.c (ravenscar_thread_target::resume)
3738 (ravenscar_thread_target::wait): Special case wildcard requests.
3740 2019-02-15 Tom Tromey <tromey@adacore.com>
3742 * ravenscar-thread.c (base_ptid): Remove.
3743 (struct ravenscar_thread_target) <close>: New method.
3744 <m_base_ptid>: New member.
3745 <update_inferior_ptid, active_task, task_is_currently_active,
3746 runtime_initialized>: Declare methods.
3747 <ravenscar_thread_target>: Add constructor.
3748 (ravenscar_thread_target::task_is_currently_active)
3749 (ravenscar_thread_target::update_inferior_ptid)
3750 (ravenscar_runtime_initialized): Rename. Now methods.
3751 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
3752 (ravenscar_thread_target::update_thread_list): Update.
3753 (ravenscar_thread_target::active_task): Now method.
3754 (ravenscar_thread_target::store_registers)
3755 (ravenscar_thread_target::prepare_to_store)
3756 (ravenscar_thread_target::prepare_to_store)
3757 (ravenscar_thread_target::mourn_inferior): Update.
3758 (ravenscar_inferior_created): Use "new" to create target.
3759 (ravenscar_thread_target::get_ada_task_ptid): Update.
3760 (_initialize_ravenscar): Don't initialize base_ptid.
3761 (ravenscar_ops): Remove global.
3763 2019-02-15 Tom Tromey <tromey@adacore.com>
3765 * target.h (push_target): Declare new overload.
3766 * target.c (push_target): New overload, taking an rvalue reference.
3767 * remote.c (remote_target::open_1): Use push_target overload.
3768 * corelow.c (core_target_open): Use push_target overload.
3770 2019-02-15 Tom Tromey <tromey@adacore.com>
3772 * ravenscar-thread.c (is_ravenscar_task)
3773 (ravenscar_task_is_currently_active): Return bool.
3774 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
3775 (_initialize_ravenscar): Remove "(void)".
3776 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
3779 2019-02-15 Tom Tromey <tromey@adacore.com>
3781 * ravenscar-thread.c (ravenscar_runtime_initializer)
3782 (has_ravenscar_runtime, get_running_thread_id)
3783 (ravenscar_thread_target::resume): Fix indentation.
3785 2019-02-15 Tom Tromey <tromey@adacore.com>
3787 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
3788 from ravenscar_arch_ops.
3789 (sparc_ravenscar_ops::fetch_registers)
3790 (sparc_ravenscar_ops::store_registers): Now methods.
3791 (sparc_ravenscar_prepare_to_store): Remove.
3792 (sparc_ravenscar_ops): Redefine.
3793 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
3794 methods and destructor. Remove members.
3795 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
3796 (ravenscar_thread_target::store_registers)
3797 (ravenscar_thread_target::prepare_to_store): Update.
3798 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
3800 (struct ppc_ravenscar_powerpc_ops): Derive from
3802 (ppc_ravenscar_powerpc_ops::fetch_registers)
3803 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
3804 (ppc_ravenscar_powerpc_ops): Redefine.
3805 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
3806 (ppc_ravenscar_e500_ops::fetch_registers)
3807 (ppc_ravenscar_e500_ops::store_registers): Now methods.
3808 (ppc_ravenscar_e500_ops): Redefine.
3809 * aarch64-ravenscar-thread.c
3810 (aarch64_ravenscar_generic_prepare_to_store): Remove.
3811 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
3812 (aarch64_ravenscar_fetch_registers)
3813 (aarch64_ravenscar_store_registers): Now methods.
3814 (aarch64_ravenscar_ops): Redefine.
3816 2019-02-15 Tom Tromey <tromey@adacore.com>
3818 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
3819 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3820 (ravenscar_thread_target::stopped_by_watchpoint)
3821 (ravenscar_thread_target::stopped_data_address)
3822 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
3824 2019-02-15 Tom Tromey <tromey@adacore.com>
3826 * ravenscar-thread.c: Fix some typos.
3828 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3829 Tom Tromey <tromey@adacore.com>
3831 * ada-lang.c (ada_exception_sal): Change addr_string to a
3833 (create_ada_exception_catchpoint): Update.
3835 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3836 Tom Tromey <tromey@adacore.com>
3838 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
3839 (bp_location_ops): Remove.
3840 (base_breakpoint_allocate_location): Update.
3841 (free_bp_location): Update.
3842 * ada-lang.c (class ada_catchpoint_location)
3843 <ada_catchpoint_location>: Remove ops parameter.
3844 (ada_catchpoint_location_dtor): Remove.
3845 (ada_catchpoint_location_ops): Remove.
3846 (allocate_location_exception): Update.
3847 * breakpoint.h (struct bp_location_ops): Remove.
3848 (class bp_location) <bp_location>: Remove bp_location_ops
3850 <~bp_location>: Add destructor.
3853 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
3854 Pedro Alves <palves@redhat.com>
3856 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
3859 2019-02-14 David Michael <fedora.dm0@gmail.com>
3860 Samuel Thibault <samuel.thibault@gnu.org>
3861 Thomas Schwinge <thomas@codesourcery.com>
3863 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
3864 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
3866 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
3868 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
3869 (check_empty): Use "const char *".
3871 * gnu-nat.c (gnu_nat_target::detach): Instead of
3872 'detach_inferior (pid)' call
3873 'detach_inferior (find_inferior_pid (pid))'.
3875 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
3876 'nat/fork-inferior.o'.
3877 * gnu-nat.c: #include "nat/fork-inferior.h".
3879 * gnu-nat.c (gnu_nat_target::detach): Instead of
3880 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
3881 * gnu-nat.h: #include "inf-child.h".
3882 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
3883 'i386_gnu_nat_target::fetch_registers'.
3884 (gnu_store_registers): Rename/move to
3885 'i386_gnu_nat_target::store_registers'.
3887 * config/i386/nm-i386gnu.h: Don't "#include" any files.
3888 * gnu-nat.h (mach_thread_info): New function.
3889 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
3891 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
3893 2019-02-14 Frederic Konrad <konrad@adacore.com>
3895 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
3897 2019-02-14 Joel Brobecker <brobecker@adacore.com>
3899 * windows-nat.c (windows_add_thread): Add new parameter
3900 "main_thread_p" with default value set to false. Update
3901 function documentation as well as all callers.
3902 (windows_delete_thread): Likewise.
3903 (fake_create_process): Update call to windows_add_thread.
3904 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
3905 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
3906 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
3907 call to windows_delete_thread.
3909 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
3911 * MAINTAINERS: Add Andrew Burgess as global maintainer.
3913 2019-02-12 John Baldwin <jhb@FreeBSD.org>
3915 * symfile.c (find_separate_debug_file): Use canonical path of
3916 sysroot with child_path instead of gdb_sysroot if it is valid.
3918 2019-02-12 John Baldwin <jhb@FreeBSD.org>
3920 * symfile.c (find_separate_debug_file): Use child_path to
3921 determine if an object file is under a sysroot.
3923 2019-02-12 John Baldwin <jhb@FreeBSD.org>
3925 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3926 unittests/child-path-selftests.c.
3927 * common/pathstuff.c (child_path): New function.
3928 * common/pathstuff.h (child_path): New prototype.
3929 * unittests/child-path-selftests.c: New file.
3931 2019-02-12 John Baldwin <jhb@FreeBSD.org>
3933 * symfile.c (find_separate_debug_file): Look for separate debug
3934 files in debug directories under the sysroot.
3936 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3938 * symtab.h (struct minimal_symbol data_p): New const method.
3939 (struct minimal_symbol text_p): Likewise.
3940 * symtab.c (output_source_filename): Use file name style
3942 (print_symbol_info): Likewise.
3943 (print_msymbol_info): Use address style to print addresses.
3944 Use function name style to print executable text symbols.
3945 (expand_symtab_containing_pc): Use data_p.
3946 (find_pc_sect_compunit_symtab): Likewise.
3948 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3950 * breakpoint.c (describe_other_breakpoints): Use address style
3952 (say_where): Likewise.
3954 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3956 * ada-typeprint.c (print_func_type): Print function name
3957 style to print function name.
3958 * c-typeprint.c (c_print_type_1): Likewise.
3960 2019-02-11 Alan Hayward <alan.hayward@arm.com>
3962 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
3965 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3967 * c-exp.y (direct_abs_decl): Use emplace_back to record the
3970 2019-02-10 Joel Brobecker <brobecker@adacore.com>
3972 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
3973 TYPE_CODE_REF types.
3975 2019-02-08 Jim Wilson <jimw@sifive.com>
3977 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
3978 (riscv_linux_fregset): New.
3979 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
3981 2019-02-07 Tom Tromey <tom@tromey.com>
3983 * thread.c (thread_cancel_execution_command): Update.
3984 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
3986 (struct thread_fsm_ops): Remove.
3987 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
3988 (thread_fsm_should_stop, thread_fsm_return_value)
3989 (thread_fsm_set_finished, thread_fsm_finished_p)
3990 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
3992 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
3993 * infrun.c (clear_proceed_status_thread)
3994 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
3995 (print_stop_event): Update.
3996 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
3998 (step_command_fsm_ops): Remove.
3999 (new_step_command_fsm): Remove.
4001 (step_command_fsm::should_stop): Rename from
4002 step_command_fsm_should_stop.
4003 (step_command_fsm::clean_up): Rename from
4004 step_command_fsm_clean_up.
4005 (step_command_fsm::do_async_reply_reason): Rename from
4006 step_command_fsm_async_reply_reason.
4007 (struct until_next_fsm): Inherit from thread_fsm. Add
4009 (until_next_fsm_ops): Remove.
4010 (new_until_next_fsm): Remove.
4011 (until_next_fsm::should_stop): Rename from
4012 until_next_fsm_should_stop.
4013 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
4014 (until_next_fsm::do_async_reply_reason): Rename from
4015 until_next_fsm_async_reply_reason.
4016 (struct finish_command_fsm): Inherit from thread_fsm. Add
4017 constructor. Change type of breakpoint.
4018 (finish_command_fsm_ops): Remove.
4019 (new_finish_command_fsm): Remove.
4020 (finish_command_fsm::should_stop): Rename from
4021 finish_command_fsm_should_stop.
4022 (finish_command_fsm::clean_up): Rename from
4023 finish_command_fsm_clean_up.
4024 (finish_command_fsm::return_value): Rename from
4025 finish_command_fsm_return_value.
4026 (finish_command_fsm::do_async_reply_reason): Rename from
4027 finish_command_fsm_async_reply_reason.
4028 (finish_command): Update.
4029 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
4031 (call_thread_fsm_ops): Remove.
4032 (call_thread_fsm::call_thread_fsm): Rename from
4033 new_call_thread_fsm.
4034 (call_thread_fsm::should_stop): Rename from
4035 call_thread_fsm_should_stop.
4036 (call_thread_fsm::should_notify_stop): Rename from
4037 call_thread_fsm_should_notify_stop.
4038 (run_inferior_call, call_function_by_hand_dummy): Update.
4039 * cli/cli-interp.c (should_print_stop_to_console): Update.
4040 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
4041 Add constructor. Change type of location_breakpoint,
4043 (until_break_fsm_ops): Remove.
4044 (new_until_break_fsm): Remove.
4045 (until_break_fsm::should_stop): Rename from
4046 until_break_fsm_should_stop.
4047 (until_break_fsm::clean_up): Rename from
4048 until_break_fsm_clean_up.
4049 (until_break_fsm::do_async_reply_reason): Rename from
4050 until_break_fsm_async_reply_reason.
4051 (until_break_command): Update.
4052 * thread-fsm.c: Remove.
4053 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
4055 2019-02-07 Tom Tromey <tom@tromey.com>
4057 * yy-remap.h: Add include guard.
4058 * xtensa-tdep.h: Add include guard.
4059 * xcoffread.h: Rename include guard.
4060 * varobj-iter.h: Add include guard.
4061 * tui/tui.h: Rename include guard.
4062 * tui/tui-winsource.h: Rename include guard.
4063 * tui/tui-wingeneral.h: Rename include guard.
4064 * tui/tui-windata.h: Rename include guard.
4065 * tui/tui-win.h: Rename include guard.
4066 * tui/tui-stack.h: Rename include guard.
4067 * tui/tui-source.h: Rename include guard.
4068 * tui/tui-regs.h: Rename include guard.
4069 * tui/tui-out.h: Rename include guard.
4070 * tui/tui-layout.h: Rename include guard.
4071 * tui/tui-io.h: Rename include guard.
4072 * tui/tui-hooks.h: Rename include guard.
4073 * tui/tui-file.h: Rename include guard.
4074 * tui/tui-disasm.h: Rename include guard.
4075 * tui/tui-data.h: Rename include guard.
4076 * tui/tui-command.h: Rename include guard.
4077 * tic6x-tdep.h: Add include guard.
4078 * target/waitstatus.h: Rename include guard.
4079 * target/wait.h: Rename include guard.
4080 * target/target.h: Rename include guard.
4081 * target/resume.h: Rename include guard.
4082 * target-float.h: Rename include guard.
4083 * stabsread.h: Add include guard.
4084 * rs6000-tdep.h: Add include guard.
4085 * riscv-fbsd-tdep.h: Add include guard.
4086 * regformats/regdef.h: Rename include guard.
4087 * record.h: Rename include guard.
4088 * python/python.h: Rename include guard.
4089 * python/python-internal.h: Rename include guard.
4090 * python/py-stopevent.h: Rename include guard.
4091 * python/py-ref.h: Rename include guard.
4092 * python/py-record.h: Rename include guard.
4093 * python/py-record-full.h: Rename include guard.
4094 * python/py-record-btrace.h: Rename include guard.
4095 * python/py-instruction.h: Rename include guard.
4096 * python/py-events.h: Rename include guard.
4097 * python/py-event.h: Rename include guard.
4098 * procfs.h: Add include guard.
4099 * proc-utils.h: Add include guard.
4100 * p-lang.h: Add include guard.
4101 * or1k-tdep.h: Rename include guard.
4102 * observable.h: Rename include guard.
4103 * nto-tdep.h: Rename include guard.
4104 * nat/x86-linux.h: Rename include guard.
4105 * nat/x86-linux-dregs.h: Rename include guard.
4106 * nat/x86-gcc-cpuid.h: Add include guard.
4107 * nat/x86-dregs.h: Rename include guard.
4108 * nat/x86-cpuid.h: Rename include guard.
4109 * nat/ppc-linux.h: Rename include guard.
4110 * nat/mips-linux-watch.h: Rename include guard.
4111 * nat/linux-waitpid.h: Rename include guard.
4112 * nat/linux-ptrace.h: Rename include guard.
4113 * nat/linux-procfs.h: Rename include guard.
4114 * nat/linux-osdata.h: Rename include guard.
4115 * nat/linux-nat.h: Rename include guard.
4116 * nat/linux-namespaces.h: Rename include guard.
4117 * nat/linux-btrace.h: Rename include guard.
4118 * nat/glibc_thread_db.h: Rename include guard.
4119 * nat/gdb_thread_db.h: Rename include guard.
4120 * nat/gdb_ptrace.h: Rename include guard.
4121 * nat/fork-inferior.h: Rename include guard.
4122 * nat/amd64-linux-siginfo.h: Rename include guard.
4123 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
4124 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
4125 * nat/aarch64-linux.h: Rename include guard.
4126 * nat/aarch64-linux-hw-point.h: Rename include guard.
4127 * mn10300-tdep.h: Add include guard.
4128 * mips-linux-tdep.h: Add include guard.
4129 * mi/mi-parse.h: Rename include guard.
4130 * mi/mi-out.h: Rename include guard.
4131 * mi/mi-main.h: Rename include guard.
4132 * mi/mi-interp.h: Rename include guard.
4133 * mi/mi-getopt.h: Rename include guard.
4134 * mi/mi-console.h: Rename include guard.
4135 * mi/mi-common.h: Rename include guard.
4136 * mi/mi-cmds.h: Rename include guard.
4137 * mi/mi-cmd-break.h: Rename include guard.
4138 * m2-lang.h: Add include guard.
4139 * location.h: Rename include guard.
4140 * linux-record.h: Rename include guard.
4141 * linux-nat.h: Add include guard.
4142 * linux-fork.h: Add include guard.
4143 * i386-darwin-tdep.h: Rename include guard.
4144 * hppa-linux-offsets.h: Add include guard.
4145 * guile/guile.h: Rename include guard.
4146 * guile/guile-internal.h: Rename include guard.
4147 * gnu-nat.h: Rename include guard.
4148 * gdb-stabs.h: Rename include guard.
4149 * frv-tdep.h: Add include guard.
4150 * f-lang.h: Add include guard.
4151 * event-loop.h: Add include guard.
4152 * darwin-nat.h: Rename include guard.
4153 * cp-abi.h: Rename include guard.
4154 * config/sparc/nm-sol2.h: Rename include guard.
4155 * config/nm-nto.h: Rename include guard.
4156 * config/nm-linux.h: Add include guard.
4157 * config/i386/nm-i386gnu.h: Rename include guard.
4158 * config/djgpp/nl_types.h: Rename include guard.
4159 * config/djgpp/langinfo.h: Rename include guard.
4160 * compile/gcc-cp-plugin.h: Add include guard.
4161 * compile/gcc-c-plugin.h: Add include guard.
4162 * compile/compile.h: Rename include guard.
4163 * compile/compile-object-run.h: Rename include guard.
4164 * compile/compile-object-load.h: Rename include guard.
4165 * compile/compile-internal.h: Rename include guard.
4166 * compile/compile-cplus.h: Rename include guard.
4167 * compile/compile-c.h: Rename include guard.
4168 * common/xml-utils.h: Rename include guard.
4169 * common/x86-xstate.h: Rename include guard.
4170 * common/version.h: Rename include guard.
4171 * common/vec.h: Rename include guard.
4172 * common/tdesc.h: Rename include guard.
4173 * common/selftest.h: Rename include guard.
4174 * common/scoped_restore.h: Rename include guard.
4175 * common/scoped_mmap.h: Rename include guard.
4176 * common/scoped_fd.h: Rename include guard.
4177 * common/safe-iterator.h: Rename include guard.
4178 * common/run-time-clock.h: Rename include guard.
4179 * common/refcounted-object.h: Rename include guard.
4180 * common/queue.h: Rename include guard.
4181 * common/ptid.h: Rename include guard.
4182 * common/print-utils.h: Rename include guard.
4183 * common/preprocessor.h: Rename include guard.
4184 * common/pathstuff.h: Rename include guard.
4185 * common/observable.h: Rename include guard.
4186 * common/netstuff.h: Rename include guard.
4187 * common/job-control.h: Rename include guard.
4188 * common/host-defs.h: Rename include guard.
4189 * common/gdb_wait.h: Rename include guard.
4190 * common/gdb_vecs.h: Rename include guard.
4191 * common/gdb_unlinker.h: Rename include guard.
4192 * common/gdb_unique_ptr.h: Rename include guard.
4193 * common/gdb_tilde_expand.h: Rename include guard.
4194 * common/gdb_sys_time.h: Rename include guard.
4195 * common/gdb_string_view.h: Rename include guard.
4196 * common/gdb_splay_tree.h: Rename include guard.
4197 * common/gdb_setjmp.h: Rename include guard.
4198 * common/gdb_ref_ptr.h: Rename include guard.
4199 * common/gdb_optional.h: Rename include guard.
4200 * common/gdb_locale.h: Rename include guard.
4201 * common/gdb_assert.h: Rename include guard.
4202 * common/filtered-iterator.h: Rename include guard.
4203 * common/filestuff.h: Rename include guard.
4204 * common/fileio.h: Rename include guard.
4205 * common/environ.h: Rename include guard.
4206 * common/common-utils.h: Rename include guard.
4207 * common/common-types.h: Rename include guard.
4208 * common/common-regcache.h: Rename include guard.
4209 * common/common-inferior.h: Rename include guard.
4210 * common/common-gdbthread.h: Rename include guard.
4211 * common/common-exceptions.h: Rename include guard.
4212 * common/common-defs.h: Rename include guard.
4213 * common/common-debug.h: Rename include guard.
4214 * common/cleanups.h: Rename include guard.
4215 * common/buffer.h: Rename include guard.
4216 * common/btrace-common.h: Rename include guard.
4217 * common/break-common.h: Rename include guard.
4218 * cli/cli-utils.h: Rename include guard.
4219 * cli/cli-style.h: Rename include guard.
4220 * cli/cli-setshow.h: Rename include guard.
4221 * cli/cli-script.h: Rename include guard.
4222 * cli/cli-interp.h: Rename include guard.
4223 * cli/cli-decode.h: Rename include guard.
4224 * cli/cli-cmds.h: Rename include guard.
4225 * charset-list.h: Add include guard.
4226 * buildsym-legacy.h: Rename include guard.
4227 * bfin-tdep.h: Add include guard.
4228 * ax.h: Rename include guard.
4229 * arm-linux-tdep.h: Add include guard.
4230 * arm-fbsd-tdep.h: Add include guard.
4231 * arch/xtensa.h: Rename include guard.
4232 * arch/tic6x.h: Add include guard.
4233 * arch/i386.h: Add include guard.
4234 * arch/arm.h: Rename include guard.
4235 * arch/arm-linux.h: Rename include guard.
4236 * arch/arm-get-next-pcs.h: Rename include guard.
4237 * arch/amd64.h: Add include guard.
4238 * arch/aarch64-insn.h: Rename include guard.
4239 * arch-utils.h: Rename include guard.
4240 * annotate.h: Add include guard.
4241 * amd64-darwin-tdep.h: Rename include guard.
4242 * aarch64-linux-tdep.h: Add include guard.
4243 * aarch64-fbsd-tdep.h: Add include guard.
4244 * aarch32-linux-nat.h: Add include guard.
4246 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4248 * macrotab.c (macro_define_internal): New function that
4249 factorizes macro_define_object_internal and macro_define_function
4251 (macro_define_object_internal): Use macro_define_internal.
4252 (macro_define_function): Likewise.
4254 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4256 * macrocmd.c (extract_identifier): Return
4257 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
4260 2019-02-06 John Baldwin <jhb@FreeBSD.org>
4262 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
4264 2019-02-05 Tom Tromey <tom@tromey.com>
4266 * target.c (target_stack::unpush): Move assertion earlier.
4268 2019-01-30 Tom Tromey <tom@tromey.com>
4271 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
4272 (gdbpy_parse_and_eval): Likewise.
4273 * python/python-internal.h (gdbpy_allow_threads): New class.
4275 2019-01-28 John Baldwin <jhb@FreeBSD.org>
4277 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
4278 (aarch64_fbsd_fpregmap): Move earlier.
4279 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
4280 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
4281 instead of individual calls to trad_frame_set_reg_addr.
4282 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
4284 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
4285 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
4286 instead of individual calls to trad_frame_set_reg_addr.
4288 2019-01-28 Alan Hayward <alan.hayward@arm.com>
4290 * CONTRIBUTE: Replace contribution list with wiki link.
4292 2019-01-25 Tom Tromey <tom@tromey.com>
4294 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
4296 2019-01-25 Tom Tromey <tom@tromey.com>
4298 * xtensa-linux-nat.c: Fix common/ includes.
4299 * xml-support.h: Fix common/ includes.
4300 * xml-support.c: Fix common/ includes.
4301 * x86-linux-nat.c: Fix common/ includes.
4302 * windows-nat.c: Fix common/ includes.
4303 * varobj.h: Fix common/ includes.
4304 * varobj.c: Fix common/ includes.
4305 * value.c: Fix common/ includes.
4306 * valops.c: Fix common/ includes.
4307 * utils.c: Fix common/ includes.
4308 * unittests/xml-utils-selftests.c: Fix common/ includes.
4309 * unittests/utils-selftests.c: Fix common/ includes.
4310 * unittests/unpack-selftests.c: Fix common/ includes.
4311 * unittests/tracepoint-selftests.c: Fix common/ includes.
4312 * unittests/style-selftests.c: Fix common/ includes.
4313 * unittests/string_view-selftests.c: Fix common/ includes.
4314 * unittests/scoped_restore-selftests.c: Fix common/ includes.
4315 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
4316 * unittests/scoped_fd-selftests.c: Fix common/ includes.
4317 * unittests/rsp-low-selftests.c: Fix common/ includes.
4318 * unittests/parse-connection-spec-selftests.c: Fix common/
4320 * unittests/optional-selftests.c: Fix common/ includes.
4321 * unittests/offset-type-selftests.c: Fix common/ includes.
4322 * unittests/observable-selftests.c: Fix common/ includes.
4323 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
4324 * unittests/memrange-selftests.c: Fix common/ includes.
4325 * unittests/memory-map-selftests.c: Fix common/ includes.
4326 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
4327 * unittests/function-view-selftests.c: Fix common/ includes.
4328 * unittests/environ-selftests.c: Fix common/ includes.
4329 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
4330 * unittests/common-utils-selftests.c: Fix common/ includes.
4331 * unittests/cli-utils-selftests.c: Fix common/ includes.
4332 * unittests/array-view-selftests.c: Fix common/ includes.
4333 * ui-file.c: Fix common/ includes.
4334 * tui/tui-io.c: Fix common/ includes.
4335 * tracepoint.h: Fix common/ includes.
4336 * tracepoint.c: Fix common/ includes.
4337 * tracefile-tfile.c: Fix common/ includes.
4338 * top.h: Fix common/ includes.
4339 * top.c: Fix common/ includes.
4340 * thread.c: Fix common/ includes.
4341 * target/waitstatus.h: Fix common/ includes.
4342 * target/waitstatus.c: Fix common/ includes.
4343 * target.h: Fix common/ includes.
4344 * target.c: Fix common/ includes.
4345 * target-memory.c: Fix common/ includes.
4346 * target-descriptions.c: Fix common/ includes.
4347 * symtab.h: Fix common/ includes.
4348 * symfile.c: Fix common/ includes.
4349 * stap-probe.c: Fix common/ includes.
4350 * spu-linux-nat.c: Fix common/ includes.
4351 * sparc-nat.c: Fix common/ includes.
4352 * source.c: Fix common/ includes.
4353 * solib.c: Fix common/ includes.
4354 * solib-target.c: Fix common/ includes.
4355 * ser-unix.c: Fix common/ includes.
4356 * ser-tcp.c: Fix common/ includes.
4357 * ser-pipe.c: Fix common/ includes.
4358 * ser-base.c: Fix common/ includes.
4359 * selftest-arch.c: Fix common/ includes.
4360 * s12z-tdep.c: Fix common/ includes.
4361 * rust-exp.y: Fix common/ includes.
4362 * rs6000-aix-tdep.c: Fix common/ includes.
4363 * riscv-tdep.c: Fix common/ includes.
4364 * remote.c: Fix common/ includes.
4365 * remote-notif.h: Fix common/ includes.
4366 * remote-fileio.h: Fix common/ includes.
4367 * remote-fileio.c: Fix common/ includes.
4368 * regcache.h: Fix common/ includes.
4369 * regcache.c: Fix common/ includes.
4370 * record-btrace.c: Fix common/ includes.
4371 * python/python.c: Fix common/ includes.
4372 * python/py-type.c: Fix common/ includes.
4373 * python/py-inferior.c: Fix common/ includes.
4374 * progspace.h: Fix common/ includes.
4375 * producer.c: Fix common/ includes.
4376 * procfs.c: Fix common/ includes.
4377 * proc-api.c: Fix common/ includes.
4378 * printcmd.c: Fix common/ includes.
4379 * ppc-linux-nat.c: Fix common/ includes.
4380 * parser-defs.h: Fix common/ includes.
4381 * osdata.c: Fix common/ includes.
4382 * obsd-nat.c: Fix common/ includes.
4383 * nat/x86-linux.c: Fix common/ includes.
4384 * nat/x86-linux-dregs.c: Fix common/ includes.
4385 * nat/x86-dregs.h: Fix common/ includes.
4386 * nat/x86-dregs.c: Fix common/ includes.
4387 * nat/ppc-linux.c: Fix common/ includes.
4388 * nat/mips-linux-watch.h: Fix common/ includes.
4389 * nat/mips-linux-watch.c: Fix common/ includes.
4390 * nat/linux-waitpid.c: Fix common/ includes.
4391 * nat/linux-ptrace.h: Fix common/ includes.
4392 * nat/linux-ptrace.c: Fix common/ includes.
4393 * nat/linux-procfs.c: Fix common/ includes.
4394 * nat/linux-personality.c: Fix common/ includes.
4395 * nat/linux-osdata.c: Fix common/ includes.
4396 * nat/linux-namespaces.c: Fix common/ includes.
4397 * nat/linux-btrace.h: Fix common/ includes.
4398 * nat/linux-btrace.c: Fix common/ includes.
4399 * nat/fork-inferior.c: Fix common/ includes.
4400 * nat/amd64-linux-siginfo.c: Fix common/ includes.
4401 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
4402 * nat/aarch64-linux.c: Fix common/ includes.
4403 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
4404 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
4405 * namespace.h: Fix common/ includes.
4406 * mips-linux-tdep.c: Fix common/ includes.
4407 * minsyms.c: Fix common/ includes.
4408 * mi/mi-parse.h: Fix common/ includes.
4409 * mi/mi-main.c: Fix common/ includes.
4410 * mi/mi-cmd-env.c: Fix common/ includes.
4411 * memrange.h: Fix common/ includes.
4412 * memattr.c: Fix common/ includes.
4413 * maint.h: Fix common/ includes.
4414 * maint.c: Fix common/ includes.
4415 * main.c: Fix common/ includes.
4416 * machoread.c: Fix common/ includes.
4417 * location.c: Fix common/ includes.
4418 * linux-thread-db.c: Fix common/ includes.
4419 * linux-nat.c: Fix common/ includes.
4420 * linux-fork.c: Fix common/ includes.
4421 * inline-frame.c: Fix common/ includes.
4422 * infrun.c: Fix common/ includes.
4423 * inflow.c: Fix common/ includes.
4424 * inferior.h: Fix common/ includes.
4425 * inferior.c: Fix common/ includes.
4426 * infcmd.c: Fix common/ includes.
4427 * inf-ptrace.c: Fix common/ includes.
4428 * inf-child.c: Fix common/ includes.
4429 * ia64-linux-nat.c: Fix common/ includes.
4430 * i387-tdep.c: Fix common/ includes.
4431 * i386-tdep.c: Fix common/ includes.
4432 * i386-linux-tdep.c: Fix common/ includes.
4433 * i386-linux-nat.c: Fix common/ includes.
4434 * i386-go32-tdep.c: Fix common/ includes.
4435 * i386-fbsd-tdep.c: Fix common/ includes.
4436 * i386-fbsd-nat.c: Fix common/ includes.
4437 * guile/scm-type.c: Fix common/ includes.
4438 * guile/guile.c: Fix common/ includes.
4439 * go32-nat.c: Fix common/ includes.
4440 * gnu-nat.c: Fix common/ includes.
4441 * gdbthread.h: Fix common/ includes.
4442 * gdbarch-selftests.c: Fix common/ includes.
4443 * gdb_usleep.c: Fix common/ includes.
4444 * gdb_select.h: Fix common/ includes.
4445 * gdb_bfd.c: Fix common/ includes.
4446 * gcore.c: Fix common/ includes.
4447 * fork-child.c: Fix common/ includes.
4448 * findvar.c: Fix common/ includes.
4449 * fbsd-nat.c: Fix common/ includes.
4450 * event-top.c: Fix common/ includes.
4451 * event-loop.c: Fix common/ includes.
4452 * dwarf2read.c: Fix common/ includes.
4453 * dwarf2loc.c: Fix common/ includes.
4454 * dwarf2-frame.c: Fix common/ includes.
4455 * dwarf-index-cache.c: Fix common/ includes.
4456 * dtrace-probe.c: Fix common/ includes.
4457 * disasm-selftests.c: Fix common/ includes.
4458 * defs.h: Fix common/ includes.
4459 * csky-tdep.c: Fix common/ includes.
4460 * cp-valprint.c: Fix common/ includes.
4461 * cp-support.h: Fix common/ includes.
4462 * cp-support.c: Fix common/ includes.
4463 * corelow.c: Fix common/ includes.
4464 * completer.h: Fix common/ includes.
4465 * completer.c: Fix common/ includes.
4466 * compile/compile.c: Fix common/ includes.
4467 * compile/compile-loc2c.c: Fix common/ includes.
4468 * compile/compile-cplus-types.c: Fix common/ includes.
4469 * compile/compile-cplus-symbols.c: Fix common/ includes.
4470 * command.h: Fix common/ includes.
4471 * cli/cli-dump.c: Fix common/ includes.
4472 * cli/cli-cmds.c: Fix common/ includes.
4473 * charset.c: Fix common/ includes.
4474 * build-id.c: Fix common/ includes.
4475 * btrace.h: Fix common/ includes.
4476 * btrace.c: Fix common/ includes.
4477 * breakpoint.h: Fix common/ includes.
4478 * breakpoint.c: Fix common/ includes.
4480 (enum agent_op): Fix common/ includes.
4481 * ax-general.c (struct aop_map): Fix common/ includes.
4482 * ax-gdb.c: Fix common/ includes.
4483 * auxv.c: Fix common/ includes.
4484 * auto-load.c: Fix common/ includes.
4485 * arm-tdep.c: Fix common/ includes.
4486 * arch/riscv.c: Fix common/ includes.
4487 * arch/ppc-linux-common.c: Fix common/ includes.
4488 * arch/i386.c: Fix common/ includes.
4489 * arch/arm.c: Fix common/ includes.
4490 * arch/arm-linux.c: Fix common/ includes.
4491 * arch/arm-get-next-pcs.c: Fix common/ includes.
4492 * arch/amd64.c: Fix common/ includes.
4493 * arch/aarch64.c: Fix common/ includes.
4494 * arch/aarch64-insn.c: Fix common/ includes.
4495 * arch-utils.c: Fix common/ includes.
4496 * amd64-windows-tdep.c: Fix common/ includes.
4497 * amd64-tdep.c: Fix common/ includes.
4498 * amd64-sol2-tdep.c: Fix common/ includes.
4499 * amd64-obsd-tdep.c: Fix common/ includes.
4500 * amd64-nbsd-tdep.c: Fix common/ includes.
4501 * amd64-linux-tdep.c: Fix common/ includes.
4502 * amd64-linux-nat.c: Fix common/ includes.
4503 * amd64-fbsd-tdep.c: Fix common/ includes.
4504 * amd64-fbsd-nat.c: Fix common/ includes.
4505 * amd64-dicos-tdep.c: Fix common/ includes.
4506 * amd64-darwin-tdep.c: Fix common/ includes.
4507 * agent.c: Fix common/ includes.
4508 * ada-lang.h: Fix common/ includes.
4509 * ada-lang.c: Fix common/ includes.
4510 * aarch64-tdep.c: Fix common/ includes.
4512 2019-01-25 Tom Tromey <tom@tromey.com>
4514 * common/create-version.sh: Use common/version.h.
4516 2019-01-24 Pedro Alves <palves@redhat.com>
4518 * infrun.c (signal_stop, signal_print, signal_program)
4519 (signal_catch, signal_pass): Now arrays instead of pointers.
4520 (update_signals_program_target, do_target_resume)
4521 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
4522 * linux-nat.c (linux_nat_target::pass_signals)
4523 (linux_nat_target::create_inferior, linux_nat_target::attach):
4525 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
4526 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
4527 * procfs.c (procfs_target::pass_signals): Adjust.
4528 * record-full.c (record_full_target::resume): Adjust.
4529 * remote.c (remote_target::pass_signals)
4530 (remote_target::program_signals): Adjust.
4531 * target-debug.h (target_debug_print_signals): Now takes a
4532 gdb::array_view as parameter. Adjust.
4533 * target.h (target_ops) <pass_signals, program_signals>: Replace
4534 pointer and length parameters with gdb::array_view.
4535 (target_pass_signals, target_program_signals): Likewise.
4536 * target-delegates.c: Regenerate.
4538 2019-01-24 Pedro Alves <palves@redhat.com>
4540 * common/forward-scope-exit.h
4541 (forward_scope_exit::forward_scope_exit): Pass arguments to
4542 m_bind_function directly, instead of creating a std::bind and
4545 2019-01-24 Alan Hayward <alan.hayward@arm.com>
4547 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
4549 (pass_in_v_vfp_candidate): Likewise.
4551 2019-01-23 Tom Tromey <tom@tromey.com>
4552 Pedro Alves <palves@redhat.com>
4554 * regcache.c (class regcache_invalidator): Remove.
4555 (regcache::raw_write): Use make_scope_exit.
4557 2019-01-23 Tom Tromey <tom@tromey.com>
4559 * ui-out.h (class ui_out_emit_type): Update comment.
4561 2019-01-23 Tom Tromey <tom@tromey.com>
4563 * infrun.c (fetch_inferior_event): Update comment.
4565 2019-01-23 Tom Tromey <tom@tromey.com>
4566 Pedro Alves <palves@redhat.com>
4568 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
4570 (fetch_inferior_event): Use SCOPE_EXIT.
4573 2019-01-23 Tom Tromey <tom@tromey.com>
4574 Pedro Alves <palves@redhat.com>
4576 * infrun.c (disable_thread_events): Delete.
4577 (stop_all_threads): Use SCOPE_EXIT.
4579 2019-01-23 Tom Tromey <tom@tromey.com>
4580 Pedro Alves <palves@redhat.com>
4582 * symfile.c: Include forward-scope-exit.h.
4583 (clear_symtab_users_cleanup): Replace forward declaration with
4584 a FORWARD_SCOPE_EXIT.
4585 (syms_from_objfile_1): Use the forward_scope_exit and
4586 gdb::optional instead of cleanup_function.
4587 (reread_symbols): Use the forward_scope_exit instead of
4589 (clear_symtab_users_cleanup): Remove function.
4591 2019-01-23 Tom Tromey <tom@tromey.com>
4592 Pedro Alves <palves@redhat.com>
4594 * linux-nat.c: Include scope-exit.h.
4595 (cleanup_target_stop): Remove.
4596 (linux_nat_target::static_tracepoint_markers_by_strid): Use
4599 2019-01-23 Tom Tromey <tom@tromey.com>
4600 Pedro Alves <palves@redhat.com>
4602 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
4603 (call_function_by_hand_dummy): Use SCOPE_EXIT.
4605 2019-01-23 Tom Tromey <tom@tromey.com>
4606 Andrew Burgess <andrew.burgess@embecosm.com>
4607 Pedro Alves <palves@redhat.com>
4609 * infrun.c (fetch_inferior_event): Use scope_exit.
4610 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
4611 * top.c (execute_command): Use scope_exit.
4612 * breakpoint.c (bpstat_do_actions): Use scope_exit.
4613 * utils.c (do_bpstat_clear_actions_cleanup)
4614 (make_bpstat_clear_actions_cleanup): Remove.
4616 2019-01-23 Tom Tromey <tom@tromey.com>
4617 Pedro Alves <palves@redhat.com>
4619 * infrun.c: Include "common/scope-exit.h"
4620 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
4621 (wait_for_inferior): Use SCOPE_EXIT.
4622 (fetch_inferior_event): Use scope_exit.
4624 2019-01-23 Tom Tromey <tom@tromey.com>
4625 Pedro Alves <palves@redhat.com>
4627 * breakpoint.c (create_breakpoint): Remove cleanup.
4629 2019-01-23 Tom Tromey <tom@tromey.com>
4630 Andrew Burgess <andrew.burgess@embecosm.com>
4631 Pedro Alves <palves@redhat.com>
4633 2019-01-23 Pedro Alves <palves@redhat.com>
4635 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
4637 2019-01-23 Pedro Alves <palves@redhat.com>
4638 Andrew Burgess <andrew.burgess@embecosm.com>
4640 * gdbthread.h: Include "common/forward-scope-exit.h".
4641 (scoped_finish_thread_state): Redefine custom class in terms of
4644 2019-01-23 Pedro Alves <palves@redhat.com>
4645 Andrew Burgess <andrew.burgess@embecosm.com>
4647 * common/forward-scope-exit.h: New file.
4649 2019-01-23 Pedro Alves <palves@redhat.com>
4650 Andrew Burgess <andrew.burgess@embecosm.com>
4651 Tom Tromey <tom@tromey.com>
4653 * common/scope-exit.h: New file.
4655 2019-01-23 Pedro Alves <palves@redhat.com>
4657 * common/preprocessor.h (ESC): Rename to ...
4658 (ESC_PARENS): ... this.
4659 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
4660 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
4662 2019-01-23 Tom Tromey <tom@tromey.com>
4664 * language.h (class scoped_switch_to_sym_language_if_auto):
4665 Initialize m_lang in both cases.
4667 2019-01-23 Alan Hayward <alan.hayward@arm.com>
4669 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
4672 2019-01-22 Tom Tromey <tom@tromey.com>
4674 * corelow.c: Do not include sys/file.h.
4676 2019-01-22 Tom Tromey <tom@tromey.com>
4678 * tui/tui-wingeneral.h: Include gdb_curses.h.
4680 2019-01-22 Tom Tromey <tom@tromey.com>
4682 * source-cache.h (class source_cache) <get_source_lines,
4683 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
4685 2019-01-22 Tom Tromey <tom@tromey.com>
4687 * remote-fileio.h (struct remote_target): Declare.
4689 2019-01-22 Tom Tromey <tom@tromey.com>
4691 * python/py-arch.c: Do not include py-ref.h.
4692 * python/py-bpevent.c: Do not include py-ref.h.
4693 * python/py-cmd.c: Do not include py-ref.h.
4694 * python/py-continueevent.c: Do not include py-ref.h.
4695 * python/py-event.h: Do not include py-ref.h.
4696 * python/py-evtregistry.c: Do not include py-ref.h.
4697 * python/py-finishbreakpoint.c: Do not include py-ref.h.
4698 * python/py-frame.c: Do not include py-ref.h.
4699 * python/py-framefilter.c: Do not include py-ref.h.
4700 * python/py-function.c: Do not include py-ref.h.
4701 * python/py-infevents.c: Do not include py-ref.h.
4702 * python/py-linetable.c: Do not include py-ref.h.
4703 * python/py-objfile.c: Do not include py-ref.h.
4704 * python/py-param.c: Do not include py-ref.h.
4705 * python/py-prettyprint.c: Do not include py-ref.h.
4706 * python/py-progspace.c: Do not include py-ref.h.
4707 * python/py-symbol.c: Do not include py-ref.h.
4708 * python/py-symtab.c: Do not include py-ref.h.
4709 * python/py-type.c: Do not include py-ref.h.
4710 * python/py-unwind.c: Do not include py-ref.h.
4711 * python/py-utils.c: Do not include py-ref.h.
4712 * python/py-value.c: Do not include py-ref.h.
4713 * python/py-varobj.c: Do not include py-ref.h.
4714 * python/py-xmethods.c: Do not include py-ref.h.
4715 * python/python.c: Do not include py-ref.h.
4716 * varobj.c: Do not include py-ref.h.
4718 2019-01-22 Tom Tromey <tom@tromey.com>
4720 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
4723 2019-01-22 Tom Tromey <tom@tromey.com>
4725 * compile/compile-cplus-types.c: Remove a comment by #include.
4727 2019-01-22 Tom Tromey <tom@tromey.com>
4729 * compile/gcc-c-plugin.h: Include compile-internal.h.
4731 2019-01-22 Tom Tromey <tom@tromey.com>
4733 * stabsread.c (EXTERN): Do not define.
4734 (symnum, next_symbol_text_func, processing_gcc_compilation)
4735 (within_function, global_sym_chain, global_stabs)
4736 (previous_stab_code, this_object_header_files)
4737 (n_this_object_header_files)
4738 (n_allocated_this_object_header_files): Define.
4739 * stabsread.h (EXTERN): Never define. Use "extern".
4741 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4743 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
4746 2019-01-21 Tom Tromey <tom@tromey.com>
4748 * ui-out.c: Fix includes.
4749 * tui/tui-source.c: Fix includes.
4750 * target.c: Fix includes.
4751 * remote.c: Fix includes.
4752 * regcache.c: Fix includes.
4753 * python/py-block.c: Fix includes.
4754 * printcmd.c: Fix includes.
4755 * or1k-tdep.c: Fix includes.
4756 * mi/mi-main.c: Fix includes.
4757 * m32r-tdep.c: Fix includes.
4758 * csky-tdep.c: Fix includes.
4759 * compile/compile-cplus-types.c: Fix includes.
4760 * cli/cli-interp.c: Fix includes.
4762 2019-01-21 Alan Hayward <alan.hayward@arm.com>
4764 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
4767 2019-01-16 Tom Tromey <tom@tromey.com>
4769 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
4771 (struct objfile) <msymbols_range>: Move from top level.
4772 <msymbols>: New method.
4773 (class objfile_msymbols): Remove.
4774 * symtab.c (default_collect_symbol_completion_matches_break_on):
4776 * symmisc.c (dump_msymbols): Update.
4777 * stabsread.c (scan_file_globals): Update.
4778 * objc-lang.c (info_selectors_command, info_classes_command)
4779 (find_methods): Update.
4780 * minsyms.c (find_solib_trampoline_target): Update.
4781 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
4782 * coffread.c (coff_symfile_read): Update.
4783 * ada-lang.c (ada_lookup_simple_minsym)
4784 (ada_collect_symbol_completion_matches): Update.
4786 2019-01-16 Tom Tromey <tom@tromey.com>
4788 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
4789 type. Remove no-argument constructor.
4790 <iterator::operator++>: Simplify.
4792 <end>: Use minimal_symbol_count.
4794 2019-01-16 Tom Tromey <tom@tromey.com>
4796 * objfiles.h (struct objfile) <psymtabs>: New method.
4797 (class objfile_psymtabs): Remove.
4798 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
4800 <range>: New method.
4801 (require_partial_symbols): Change return type.
4802 * psymtab.c (require_partial_symbols)
4803 (psym_expand_symtabs_matching): Update.
4804 * mdebugread.c (parse_partial_symbols): Update.
4805 * dbxread.c (dbx_end_psymtab): Update.
4807 2019-01-15 Tom Tromey <tom@tromey.com>
4809 * symtab.c (lookup_objfile_from_block)
4810 (lookup_symbol_in_objfile_symtabs)
4811 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
4812 (find_line_symtab, info_sources_command)
4813 (default_collect_symbol_completion_matches_break_on)
4814 (make_source_files_completion_list): Update.
4815 * symmisc.c (print_objfile_statistics, dump_objfile)
4816 (maintenance_print_symbols, maintenance_info_symtabs)
4817 (maintenance_check_symtabs, maintenance_info_line_tables):
4819 * source.c (select_source_symtab)
4820 (forget_cached_source_info_for_objfile): Update.
4821 * objfiles.h (class objfile_compunits): Remove.
4822 (struct objfile) <compunits_range>: New typedef.
4823 (compunits): New method.
4824 * objfiles.c (objfile_relocate1): Update.
4825 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
4826 * maint.c (count_symtabs_and_blocks): Update.
4827 * linespec.c (iterate_over_all_matching_symtabs): Update.
4828 * cp-support.c (add_symbol_overload_list_qualified): Update.
4829 * coffread.c (coff_symtab_read): Update.
4830 * ada-lang.c (add_nonlocal_symbols)
4831 (ada_collect_symbol_completion_matches)
4832 (ada_add_global_exceptions): Update.
4834 2019-01-15 Tom Tromey <tom@tromey.com>
4836 * progspace.h (program_space) <objfiles_safe_range>: New
4838 <objfiles_safe>: New method.
4839 * objfiles.h (class all_objfiles_safe): Remove.
4840 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
4841 * jit.c (jit_inferior_exit_hook): Update.
4843 2019-01-17 Tom Tromey <tom@tromey.com>
4845 * progspace.h (program_space) <objfiles_range>: New typedef.
4846 <objfiles>: New method.
4847 <objfiles_head>: Rename from objfiles.
4848 (object_files): Update.
4849 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
4850 * guile/scm-pretty-print.c
4851 (ppscm_find_pretty_printer_from_objfiles): Update.
4852 * guile/scm-objfile.c (gdbscm_objfiles): Update.
4853 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
4855 * python/py-progspace.c (pspy_get_objfiles): Update.
4856 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
4858 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
4859 (objfpy_lookup_objfile_by_build_id): Update.
4860 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
4861 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
4863 * symtab.c (iterate_over_symtabs, matching_obj_sections)
4864 (expand_symtab_containing_pc, lookup_objfile_from_block)
4865 (lookup_static_symbol, basic_lookup_transparent_type)
4866 (find_pc_sect_compunit_symtab, find_symbol_at_address)
4867 (find_line_symtab, info_sources_command)
4868 (default_collect_symbol_completion_matches_break_on)
4869 (make_source_files_completion_list, find_main_name): Update.
4870 * symmisc.c (print_symbol_bcache_statistics)
4871 (print_objfile_statistics, maintenance_print_symbols)
4872 (maintenance_print_msymbols, maintenance_print_objfiles)
4873 (maintenance_info_symtabs, maintenance_check_symtabs)
4874 (maintenance_expand_symtabs, maintenance_info_line_tables):
4876 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
4877 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
4878 (map_overlay_command, unmap_overlay_command)
4879 (simple_overlay_update, expand_symtabs_matching)
4880 (map_symbol_filenames): Update.
4881 * symfile-debug.c (set_debug_symfile): Update.
4882 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
4884 * source.c (select_source_symtab, forget_cached_source_info):
4886 * solib.c (solib_read_symbols): Update.
4887 * solib-spu.c (append_ocl_sos): Update.
4888 * psymtab.c (maintenance_print_psymbols)
4889 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
4890 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
4891 * printcmd.c (info_symbol_command): Update.
4892 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
4894 * objfiles.h (class all_objfiles): Remove.
4895 * objfiles.c (have_partial_symbols, have_full_symbols)
4896 (have_minimal_symbols, qsort_cmp, update_section_map)
4897 (shared_objfile_contains_address_p)
4898 (default_iterate_over_objfiles_in_search_order): Update.
4899 * objc-lang.c (info_selectors_command, info_classes_command)
4900 (find_methods): Update.
4901 * minsyms.c (find_solib_trampoline_target): Update.
4902 * maint.c (maintenance_info_sections)
4903 (maintenance_translate_address, count_symtabs_and_blocks):
4905 * main.c (captured_main_1): Update.
4906 * linux-thread-db.c (try_thread_db_load_from_pdir)
4907 (has_libpthread): Update.
4908 * linespec.c (iterate_over_all_matching_symtabs)
4909 (search_minsyms_for_name): Update.
4910 * jit.c (jit_find_objf_with_entry_addr): Update.
4911 * hppa-tdep.c (find_unwind_entry)
4912 (hppa_lookup_stub_minimal_symbol): Update.
4913 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
4915 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
4916 (elf_gnu_ifunc_resolve_by_got): Update.
4917 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
4918 * dwarf-index-write.c (save_gdb_index_command): Update.
4919 * cp-support.c (add_symbol_overload_list_qualified): Update.
4920 * breakpoint.c (create_overlay_event_breakpoint)
4921 (create_longjmp_master_breakpoint)
4922 (create_std_terminate_master_breakpoint)
4923 (create_exception_master_breakpoint): Update.
4924 * blockframe.c (find_pc_partial_function): Update.
4925 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
4926 (ada_collect_symbol_completion_matches)
4927 (ada_add_global_exceptions): Update.
4929 2019-01-17 Tom Tromey <tom@tromey.com>
4931 * solib-target.c (lm_info_target_p): Remove typedef. Don't
4933 (solib_target_parse_libraries): Change return type.
4934 (library_list_start_segment, library_list_start_section)
4935 (library_list_end_library, library_list_start_library); Update.
4936 (solib_target_free_library_list): Remove.
4937 (solib_target_parse_libraries): Remove cleanup. Change return
4939 (solib_target_current_sos): Update.
4941 2019-01-17 Tom Tromey <tromey@bapiya>
4943 * valprint.c: Replace "the the" with "the".
4944 * symtab.c: Replace "the the" with "the".
4945 * solib.c: Replace "the the" with "the".
4946 * solib-dsbt.c: Replace "the the" with "the".
4947 * linespec.c: Replace "the the" with "the".
4948 * dwarf2loc.h: Replace "the the" with "the".
4949 * amd64-windows-tdep.c: Replace "the the" with "the".
4950 * aarch64-tdep.c: Replace "the the" with "the".
4952 2019-01-16 Keith Seitz <keiths@redhat.com>
4955 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
4956 <builder>: Rename to ..
4957 <m_builder>: ... this and make private.
4958 (dwarf2_cu::get_builder): New method. Change all users of
4959 `builder' to use this method.
4960 (dwarf2_start_symtab): Move to ...
4961 (dwarf2_cu::start_symtab): ... here. Update all callers
4962 (setup_type_unit_groups): Move to ...
4963 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
4965 (dwarf2_cu::reset_builder): New method.
4966 (process_full_compunit, process_full_type_unit): Use
4967 dwarf2_cu::reset_builder.
4968 (follow_die_offset): Record the ancestor CU if it is different
4969 from the followed DIE's CU.
4970 (follow_die_sig_1): Likewise.
4972 2019-01-15 Tom Tromey <tom@tromey.com>
4974 * remote.c (class remote_state) <buf>: Now a char_vector.
4976 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
4978 (remote_target::getpkt_or_notif_sane_1)
4979 (remote_target::getpkt_sane)
4980 (remote_target::getpkt_or_notif_sane): Likewise.
4981 (class remote_target) <putpkt>: New overload.
4982 (remote_target::read_frame): Change type of "buf_p". Remove
4984 (packet_ok): New overload.
4985 (packet_check_result): New overload.
4988 2019-01-14 Tom Tromey <tom@tromey.com>
4990 * remote-notif.c (handle_notification, remote_notif_ack)
4991 (remote_notif_parse): Make "buf" const.
4992 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
4994 (remote_notif_parse, remote_notif_ack, handle_notification):
4996 * remote.c (remote_notif_stop_parse): Make "buf" const.
4997 (remote_target::remote_parse_stop_reply): Make "buf" const.
4998 (remote_notif_stop_ack): Make "buf" const.
5000 2019-01-14 Tom Tromey <tom@tromey.com>
5002 * remote.c (remote_console_output): Make parameter const.
5004 2019-01-14 Tom Tromey <tom@tromey.com>
5006 * target-debug.h (target_debug_print_signals): Constify.
5007 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
5008 * procfs.c (procfs_target::pass_signals): Update.
5009 * linux-nat.c (linux_nat_target::pass_signals): Update.
5010 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
5011 * target-delegates.c: Rebuild.
5012 * remote.c (remote_target::program_signals): Update.
5013 (remote_target::pass_signals): Update.
5014 * target.c (target_pass_signals): Constify argument.
5015 (target_program_signals): Likewise.
5016 * target.h (struct target_ops) <pass_signals, program_signals>:
5018 (target_pass_signals, target_program_signals): Constify argument.
5020 2019-01-14 Tom Tromey <tom@tromey.com>
5023 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
5025 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5027 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
5029 * rs6000-tdep.c: Include reggroups.h.
5030 (IS_V_ALIAS_PSEUDOREG): Define.
5031 (rs6000_register_name): Return names for the "vX" aliases.
5032 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
5033 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
5034 aliases. Call default_register_reggroup_p for all other
5036 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
5038 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
5039 Handle "vX" aliases.
5040 (v_alias_pseudo_register_collect): New function.
5041 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
5042 (rs6000_gdbarch_init): Initialize "vX" aliases as
5043 pseudo-registers. Restore registration of
5044 rs6000_pseudo_register_reggroup_p with
5045 set_tdesc_pseudo_register_reggroup_p.
5047 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
5049 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
5050 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
5051 set_gdbarch_num_pseudo_regs.
5053 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5055 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
5056 Remove arg prefixname, add do_set and do_show.
5057 Add member functions set_list and show_list.
5058 * cli/cli-style.c (class cli_style_option): Update accordingly.
5059 (style_set_list): Move to file scope.
5060 (style_show_list): Likewise.
5061 (set_style): Call help_list.
5062 (show_style): Call cmd_show_list.
5063 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
5064 Update to use the new macro.
5066 2019-10-12 Joel Brobecker <brobecker@adacore.com>
5068 * ada-lang.c (_initialize_ada_language): Expand the help text
5069 for the "catch exception" command.
5071 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5073 * symtab.c (matching_obj_sections): Initialize obj,
5074 declare it closer to its usage.
5076 2019-01-10 Tom Tromey <tom@tromey.com>
5078 * thread-iter.h (inf_threads_iterator): Use next_iterator.
5079 (basic_inf_threads_range): Remove.
5080 (inf_threads_range, inf_non_exited_threads_range)
5081 (safe_inf_threads_range): Use next_adapter.
5083 2019-01-10 Keith Seitz <keiths@redhat.com>
5087 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
5088 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
5090 2019-01-10 Keith Seitz <keiths@redhat.com>
5094 * dictionary.c (pending_to_vector): Remove.
5095 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
5096 Remove _1 suffix, replacing functions of the same name. Update
5098 (dict_create_hashed, dict_create_hashed_expandable)
5099 (dict_create_linear, dict_create_linear_expandable, dict_free)
5100 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
5101 Make functions static.
5103 2019-01-10 Keith Seitz <keiths@redhat.com>
5107 * dictionary.h (struct dictionary): Replace declaration with
5109 (dict_create_hashed, dict_create_hashed_expandable)
5110 (dict_create_linear, dict_create_linear_expandable)
5111 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
5112 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
5113 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
5114 taking multidictionary argument.
5115 [ALL_DICT_SYMBOLS]: Update for multidictionary.
5116 * block.h (struct block) <dict>: Change to multidictionary
5117 and rename `multidict'.
5118 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
5119 symmisc.c: Update all dictionary references to multidictionary.
5121 2019-01-10 Keith Seitz <keiths@redhat.com>
5125 * dictionary.c: Include unordered_map.
5126 (pending_to_vector): New function.
5127 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
5128 Rewrite the non-"_1" functions to take vector instead
5130 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
5131 "new" _1 versions of the same name.
5132 (multidictionary): Define.
5133 (std::hash<enum language): New definition.
5134 (collate_pending_symbols_by_language, mdict_create_hashed)
5135 (mdict_create_hashed_expandable, mdict_create_linear)
5136 (mdict_create_linear_expandable, mdict_free)
5137 (find_language_dictionary, create_new_language_dictionary)
5138 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
5139 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
5140 (mdict_size, mdict_empty): New functions.
5141 * dictionary.h (mdict_iterator): Define.
5143 2019-01-10 Pedro Alves <palves@redhat.com>
5145 * breakpoint.c (read_uploaded_action)
5146 (create_tracepoint_from_upload): Adjust to use
5147 gdb::unique_xmalloc_ptr.
5148 * ctf.c (ctf_write_uploaded_tp):
5149 (SET_ARRAY_FIELD): Use emplace_back.
5150 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
5151 * tracefile-tfile.c (tfile_write_uploaded_tp):
5152 * tracepoint.c (parse_tracepoint_definition): Adjust to use
5153 gdb::unique_xmalloc_ptr.
5154 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
5155 at_string, cond_string, cmd_strings>: Replace char pointers
5156 with gdb::unique_xmalloc_ptr.
5158 2019-01-10 Pedro Alves <palves@redhat.com>
5160 * solib-target.c (library_list_start_library): Don't xstrdup name.
5162 2019-01-10 Pedro Alves <palves@redhat.com>
5164 * mdebugread.c (parse_partial_symbols): Use
5165 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
5167 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
5169 * linux-fork.c (scoped_switch_fork_info)
5170 <~scoped_switch_fork_info>: Fix incorrect variable name.
5172 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
5174 * linux-fork.c (scoped_switch_fork_info)
5175 <scoped_switch_fork_info>: Make explicit.
5176 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
5178 2019-01-10 Tom Tromey <tom@tromey.com>
5180 * objfiles.h (objfile::reset_psymtabs): Update.
5181 * objfiles.c (objfile::objfile): Update.
5182 * psymtab.h (psymtab_storage::obstack): Update.
5183 (psymtab_storage::m_obstack): Use gdb::optional.
5184 (class psymtab_storage): Update comment. Remove objfile
5186 * psymtab.c (psymtab_storage::psymtab_storage): Update.
5188 2019-01-10 Tom Tromey <tom@tromey.com>
5190 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
5191 <free_psymtabs>: Now private.
5192 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
5193 (allocate_psymtab): Use new method.
5195 2019-01-10 Tom Tromey <tom@tromey.com>
5197 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
5198 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
5199 * mdebugread.c (parse_partial_symbols): Use
5200 allocate_dependencies.
5201 * dwarf2read.c (dwarf2_create_include_psymtab): Use
5202 allocate_dependencies.
5203 (process_psymtab_comp_unit_reader)
5204 (build_type_psymtab_dependencies): Likewise.
5205 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
5207 2019-01-10 Tom Tromey <tom@tromey.com>
5209 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
5210 PSYMBOL_SET_LANGUAGE.
5211 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
5213 2019-01-10 Tom Tromey <tom@tromey.com>
5215 * psymtab.h (psymtab_storage::obstack): New method.
5216 <m_obstack>: Rename from obstack; now private.
5217 * psymtab.c (psymtab_storage): Update.
5218 * dwarf2read.c (create_addrmap_from_index)
5219 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
5222 2019-01-10 Tom Tromey <tom@tromey.com>
5224 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
5225 * objfiles.h (objfile::reset_psymtabs): New method.
5227 2019-01-10 Tom Tromey <tom@tromey.com>
5229 * symmisc.c (print_symbol_bcache_statistics): Update.
5230 (print_objfile_statistics): Update.
5231 * symfile.c (reread_symbols): Update.
5232 * psymtab.h (class psymtab_storage): New.
5233 * psymtab.c (psymtab_storage): New constructor.
5234 (~psymtab_storage): New destructor.
5235 (require_partial_symbols): Update.
5236 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
5237 (find_pc_sect_psymtab, find_pc_sect_psymbol)
5238 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
5239 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
5240 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
5241 (start_psymtab_common, end_psymtab_common)
5242 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
5243 (allocate_psymtab): Update.
5244 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
5246 (dump_psymtab_addrmap, maintenance_print_psymbols)
5247 (maintenance_check_psymtabs): Update.
5248 (class objfile_psymtabs): Move to objfiles.h.
5249 * psympriv.h (discard_psymtab): Now inline.
5250 (psymtab_discarder::psymtab_discarder): Update.
5251 (psymtab_discarder::~psymtab_discarder): Update.
5252 (ALL_OBJFILE_PSYMTABS): Rewrite.
5253 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
5254 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
5256 <partial_symtabs>: New field.
5257 (class objfile_psymtabs): Move from psymtab.h. Update.
5258 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
5260 (objfile::~objfile): Don't destroy psymbol_cache.
5261 * mdebugread.c (parse_partial_symbols): Update.
5262 * dwarf2read.c (create_addrmap_from_index)
5263 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5264 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
5265 (add_partial_subprogram, dwarf2_ranges_read): Update.
5266 * dwarf-index-write.c (write_address_map)
5267 (write_one_signatured_type, recursively_write_psymbols)
5268 (class debug_names, class debug_names, write_psymtabs_to_index):
5271 2019-01-10 Tom Tromey <tom@tromey.com>
5273 * symtab.h (SYMBOL_SET_NAMES): Update.
5274 (symbol_set_names): Update.
5275 (MSYMBOL_SET_NAMES): Update.
5276 * symtab.c (symbol_set_names): Change argument to be an
5277 objfile_per_bfd_storage.
5278 * psymtab.c (add_psymbol_to_bcache): Update.
5279 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
5281 2019-01-10 Tom Tromey <tom@tromey.com>
5283 * symtab.c (create_demangled_names_hash): Change argument to be an
5284 objfile_per_bfd_storage.
5285 (symbol_set_names): Update.
5287 2019-01-10 Tom Tromey <tom@tromey.com>
5289 * xcoffread.c (xcoff_initial_scan): Unconditionally call
5291 * psymtab.c (init_psymbol_list): Do nothing if already called.
5292 * psympriv.h (init_psymbol_list): Add comment.
5293 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
5295 * dbxread.c (dbx_symfile_read): Unconditionally call
5298 2019-01-10 Tom Tromey <tom@tromey.com>
5300 * xcoffread.c (scan_xcoff_symtab): Update.
5301 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
5303 * mdebugread.c (parse_partial_symbols)
5304 (handle_psymbol_enumerators): Update.
5305 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
5306 * dbxread.c (read_dbx_symtab): Update.
5307 * psympriv.h (psymbol_placement): New enum.
5308 (add_psymbol_to_list): Update.
5310 2019-01-10 Tom Tromey <tom@tromey.com>
5312 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
5313 static_psymbols parameters.
5314 (scan_xcoff_symtab): Update.
5315 * psymtab.c (start_psymtab_common): Remove global_psymbols and
5316 static_psymbols parameters.
5317 * psympriv.h (start_psymtab_common): Update.
5318 * mdebugread.c (parse_partial_symbols): Update.
5319 * dwarf2read.c (create_partial_symtab): Update.
5320 * dbxread.c (read_dbx_symtab): Update.
5321 (start_psymtab): Remove global_psymbols and static_psymbols
5324 2019-01-10 Tom Tromey <tom@tromey.com>
5326 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
5327 * psymtab.c (allocate_psymtab): Add comment.
5328 * psympriv.h (allocate_psymtab): Add comment.
5329 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
5331 * dbxread.c (dbx_end_psymtab): Remove some initializations.
5333 2019-01-10 Tom Tromey <tom@tromey.com>
5335 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
5337 * mipsread.c: Include mdebugread.h.
5338 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
5340 * elfread.c: Include mdebugread.h.
5342 2019-01-09 Tom Tromey <tom@tromey.com>
5344 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
5345 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
5346 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
5347 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
5348 (psym_lookup_symbol, psym_find_last_source_symtab)
5349 (psym_forget_cached_source_info, psym_print_stats)
5350 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
5351 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
5352 (psym_map_matching_symbols, psym_expand_symtabs_matching)
5353 (psym_find_compunit_symtab_by_address)
5354 (maintenance_print_psymbols, maintenance_info_psymtabs)
5355 (maintenance_check_psymtabs): Use ranged for.
5356 * psymtab.h (class objfile_psymtabs): New.
5357 (require_partial_symbols): Return objfile_psymtabs.
5358 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
5360 2019-01-09 Tom Tromey <tom@tromey.com>
5362 * symfile.c (overlay_invalidate_all, find_pc_overlay)
5363 (find_pc_mapped_section, list_overlays_command)
5364 (map_overlay_command, unmap_overlay_command)
5365 (simple_overlay_update): Use all_objfiles.
5366 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
5367 * printcmd.c (info_symbol_command): Use all_objfiles.
5368 * objfiles.h (ALL_OBJSECTIONS): Remove.
5369 * maint.c (maintenance_translate_address): Use all_objfiles.
5370 * gcore.c (gcore_create_callback): Use all_objfiles.
5371 (objfile_find_memory_regions): Likewise.
5373 2019-01-09 Tom Tromey <tom@tromey.com>
5375 * symtab.c (find_line_symtab, info_sources_command)
5376 (make_source_files_completion_list): Use objfile_compunits.
5377 * source.c (select_source_symtab): Use objfile_compunits.
5378 * objfiles.h (struct objfile): Update comment.
5379 (ALL_OBJFILES): Remove.
5380 (ALL_FILETABS): Remove.
5381 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
5384 2019-01-09 Tom Tromey <tom@tromey.com>
5386 * symmisc.c (print_objfile_statistics, dump_objfile)
5387 (maintenance_print_symbols): Use compunit_filetabs.
5388 * source.c (forget_cached_source_info_for_objfile): Use
5390 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
5391 (ALL_FILETABS): Use compunit_filetabs.
5392 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
5393 * coffread.c (coff_symtab_read): Use compunit_filetabs.
5395 2019-01-09 Tom Tromey <tom@tromey.com>
5397 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
5398 (compunit_filetabs): New.
5399 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
5401 (info_sources_command, make_source_files_completion_list): Remove
5403 * symmisc.c (print_objfile_statistics, dump_objfile)
5404 (maintenance_print_symbols): Remove declaration.
5405 (maintenance_info_symtabs): Use compunit_filetabs.
5406 (maintenance_info_line_tables): Likewise.
5407 * source.c (select_source_symtab): Change local variable name.
5408 (forget_cached_source_info_for_objfile): Remove declaration.
5409 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
5410 * objfiles.c (objfile_relocate1): Remove declaration.
5411 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
5413 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
5414 * coffread.c (coff_symtab_read): Remove declaration.
5415 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5418 2019-01-09 Tom Tromey <tom@tromey.com>
5420 * symtab.c (lookup_objfile_from_block)
5421 (find_pc_sect_compunit_symtab, search_symbols)
5422 (default_collect_symbol_completion_matches_break_on): Use
5424 * objfiles.h (ALL_COMPUNITS): Remove.
5425 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
5426 * cp-support.c (add_symbol_overload_list_qualified): Use
5428 * ada-lang.c (ada_collect_symbol_completion_matches)
5429 (ada_add_global_exceptions): Use objfile_compunits.
5431 2019-01-09 Tom Tromey <tom@tromey.com>
5433 * source.c (select_source_symtab)
5434 (forget_cached_source_info_for_objfile): Remove declaration.
5435 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
5437 * maint.c (count_symtabs_and_blocks): Remove declaration.
5438 * cp-support.c (add_symbol_overload_list_qualified): Remove
5440 * coffread.c (coff_symtab_read): Remove declaration.
5441 * symtab.c (lookup_symbol_in_objfile_symtabs)
5442 (basic_lookup_transparent_type_1): Use objfile_compunits.
5443 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
5444 (info_sources_command, search_symbols)
5445 (default_collect_symbol_completion_matches_break_on)
5446 (make_source_files_completion_list): Remove declaration.
5447 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
5448 (ada_collect_symbol_completion_matches)
5449 (ada_add_global_exceptions): Remove declaration.
5450 * linespec.c (iterate_over_all_matching_symtabs): Use
5452 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
5453 (class objfile_compunits): New.
5454 (ALL_COMPUNITS): Use objfile_compunits.
5455 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
5456 (maintenance_check_symtabs, maintenance_info_line_tables): Use
5458 * objfiles.c (objfile_relocate1): Use objfile_compunits.
5460 2019-01-09 Tom Tromey <tom@tromey.com>
5462 * symtab.c (search_symbols)
5463 (default_collect_symbol_completion_matches_break_on): Use
5465 * ada-lang.c (ada_lookup_simple_minsym)
5466 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
5467 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
5468 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
5470 * coffread.c (coff_symfile_read): Use objfile_msymbols.
5471 * symmisc.c (dump_msymbols): Use objfile_msymbols.
5472 * objc-lang.c (find_methods): Use objfile_msymbols.
5473 (info_selectors_command, info_classes_command): Likewise.
5474 * stabsread.c (scan_file_globals): Use objfile_msymbols.
5475 * objfiles.h (class objfile_msymbols): New.
5476 (ALL_OBJFILE_MSYMBOLS): Remove.
5477 (ALL_MSYMBOLS): Remove.
5479 2019-01-09 Tom Tromey <tom@tromey.com>
5481 * common/next-iterator.h (next_adapter): Add Iterator template
5483 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
5484 (class all_objfiles_safe): New.
5485 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
5486 * objfiles.c (put_objfile_before): Update comment.
5487 (add_separate_debug_objfile): Likewise.
5488 (free_all_objfiles): Use all_objfiles_safe.
5489 (objfile_purge_solibs): Likewise.
5491 2019-01-09 Tom Tromey <tom@tromey.com>
5493 * symtab.c (iterate_over_symtabs, matching_obj_sections)
5494 (expand_symtab_containing_pc, lookup_static_symbol)
5495 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
5496 (find_symbol_at_address, find_line_symtab, find_main_name): Use
5498 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
5499 * breakpoint.c (create_overlay_event_breakpoint)
5500 (create_longjmp_master_breakpoint)
5501 (create_std_terminate_master_breakpoint)
5502 (create_exception_master_breakpoint): Use all_objfiles.
5503 * linux-thread-db.c (try_thread_db_load_from_pdir)
5504 (has_libpthread): Use all_objfiles.
5505 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
5506 * linespec.c (iterate_over_all_matching_symtabs)
5507 (search_minsyms_for_name): Use all_objfiles.
5508 * maint.c (maintenance_info_sections): Use all_objfiles.
5509 * main.c (captured_main_1): Use all_objfiles.
5510 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
5511 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
5512 * guile/scm-pretty-print.c
5513 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
5514 * solib-spu.c (append_ocl_sos): Use all_objfiles.
5515 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
5516 (maintenance_print_msymbols): Use all_objfiles.
5517 * source.c (select_source_symtab): Use all_objfiles.
5518 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
5519 * symfile.c (remove_symbol_file_command)
5520 (expand_symtabs_matching, map_symbol_filenames): Use
5522 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
5524 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
5525 * objc-lang.c (find_methods): Use all_objfiles.
5526 * objfiles.c (have_partial_symbols, have_full_symbols)
5527 (have_minimal_symbols, qsort_cmp)
5528 (default_iterate_over_objfiles_in_search_order): Use
5530 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
5531 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
5532 (maintenance_check_psymtabs): Use all_objfiles.
5533 (ALL_PSYMTABS): Remove.
5534 * compile/compile-object-run.c (do_module_cleanup): Use
5536 * blockframe.c (find_pc_partial_function): Use all_objfiles.
5537 * cp-support.c (add_symbol_overload_list_qualified): Use
5539 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
5541 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
5542 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
5544 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
5545 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
5546 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
5548 * solib.c (solib_read_symbols): Use all_objfiles
5550 2019-01-09 Tom Tromey <tom@tromey.com>
5552 * probe.c (parse_probes_in_pspace): Use all_objfiles.
5553 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
5555 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
5556 * symmisc.c (print_symbol_bcache_statistics)
5557 (print_objfile_statistics, maintenance_print_objfiles)
5558 (maintenance_info_symtabs, maintenance_check_symtabs)
5559 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
5561 * source.c (forget_cached_source_info): Use all_objfiles.
5562 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
5563 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
5564 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
5565 * objfiles.c (update_section_map): Use all_objfiles.
5566 (shared_objfile_contains_address_p): Likewise.
5567 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
5568 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
5570 2019-01-09 Tom Tromey <tom@tromey.com>
5572 * common/next-iterator.h: New file.
5573 * objfiles.h (class all_objfiles): New.
5574 (struct objfile_iterator): New.
5576 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5578 * NEWS: Move the description of the changed "frame", "select-frame",
5579 and "info frame" commands to the Changed commands section.
5581 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
5583 * gdbtypes.c (check_stub_method_group): Remove handling of old
5585 * linespec.c (find_methods): Likewise.
5586 * stabsread.c (read_member_functions): Likewise.
5587 * valops.c (search_struct_method): Likewise.
5588 (value_struct_elt_for_reference): Likewise.
5589 * NEWS: Mention this change.
5591 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
5593 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
5595 * source.c (print_source_lines_base): Update line number check.
5596 (print_source_lines): New function.
5597 (source_lines_range::source_lines_range): New function.
5598 * source.h (class source_lines_range): New class.
5599 (print_source_lines): New declaration.
5601 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5603 * linespec.c (linespec_state_destructor): Free self->canonical_names.
5605 2019-01-08 Tom Tromey <tom@tromey.com>
5606 Simon Marchi <simon.marchi@ericsson.com>
5609 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
5610 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
5611 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
5612 * f-exp.y (DOLLAR_VARIABLE): Likewise.
5613 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
5614 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
5616 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5618 * source.c (select_source_symtab): Move header comment to
5619 declaration in source.h.
5620 (forget_cached_source_info_for_objfile): Likewise.
5621 (forget_cached_source_info): Likewise.
5622 (identify_source_line): Likewise.
5623 * source.h (identify_source_line): Move declaration from symtab.h
5624 and add comment from source.c
5625 (print_source_lines): Likewise.
5626 (forget_cached_source_info_for_objfile): Likewise.
5627 (forget_cached_source_info): Likewise.
5628 (select_source_symtab): Likewise.
5629 (enum print_source_lines_flag): Move definition from symtab.h.
5630 * symtab.h (identify_source_line): Move declaration to source.h.
5631 (print_source_lines): Likewise.
5632 (forget_cached_source_info_for_objfile): Likewise.
5633 (forget_cached_source_info): Likewise.
5634 (select_source_symtab): Likewise.
5635 (enum print_source_lines_flag): Move definition to source.h.
5636 * tui/tui-hooks.c: Add 'source.h' include.
5638 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5640 * source.c (print_source_lines_base): Handle requests to print
5641 reverse line number sequences, and guard against empty lines
5644 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5646 * source.c (print_source_lines_base): Fix skip of '\r' if next
5649 2019-01-06 Tom Tromey <tom@tromey.com>
5651 * c-exp.y (struct c_parse_state) <macro_original_text,
5652 expansion_obstack>: New member.
5653 (macro_original_text, expansion_obstack): Remove globals.
5654 (scan_macro_expansion, scanning_macro_expansion)
5655 (finished_macro_expansion): Update.
5656 (scan_macro_cleanup): Remove.
5657 (yylex, c_parse): Update.
5659 2019-01-06 Tom Tromey <tom@tromey.com>
5661 * c-exp.y (struct c_parse_state) <strings>: New member.
5662 (operator_stoken): Update.
5664 2019-01-06 Tom Tromey <tom@tromey.com>
5666 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
5667 (union type_stack_elt) <typelist_val>: Now a pointer to
5669 (type_stack_cleanup): Don't declare.
5670 (push_typelist): Update.
5671 * parse.c (pop_typelist): Return a std::vector.
5672 (push_typelist): Take a std::vector.
5673 (follow_types): Update. Do not free args.
5674 (type_stack_cleanup): Remove.
5675 * c-exp.y (struct c_parse_state): New.
5676 (cpstate): New global.
5677 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
5678 (nonempty_typelist): Update.
5679 (func_mod): Create a new vector.
5680 (c_parse): Create a c_parse_state.
5681 (check_parameter_typelist): Do not delete params.
5682 (function_method): Update. Do not delete type_list.
5684 2019-01-06 Tom Tromey <tom@tromey.com>
5687 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
5689 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
5690 (print_return_value): Likewise.
5692 2019-01-05 Tom Tromey <tom@tromey.com>
5694 * contrib/cleanup_check.py: Remove.
5695 * contrib/gcc-with-excheck: Remove.
5696 * contrib/exsummary.py: Remove.
5697 * contrib/excheck.py: Remove.
5699 2019-01-05 Joel Brobecker <brobecker@adacore.com>
5701 * thread.c (delete_thread_1): Add gdb_assert that THR is not
5702 NULL. Initialize tpprev to NULL instead of assigning it
5703 to NULL on the next statement.
5704 * windows-nat.c (windows_delete_thread): Remove check for
5705 main_thread_id before printing thread exit notifications.
5706 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
5707 Remove thread ID check against main_thread_id.
5708 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
5709 windows_delete_thread.
5710 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
5712 2019-01-04 Tom Tromey <tom@tromey.com>
5714 * compile/compile.c (_initialize_compile): Use upper case for
5715 metasyntactic variables.
5716 * symmisc.c (_initialize_symmisc): Use upper case for
5717 metasyntactic variables.
5718 * psymtab.c (_initialize_psymtab): Use upper case for
5719 metasyntactic variables.
5720 * demangle.c (demangle_command): Use upper case for metasyntactic
5722 (_initialize_demangler): Likewise.
5723 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
5726 2019-01-03 Tom Tromey <tom@tromey.com>
5728 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
5730 2019-01-03 Tom Tromey <tom@tromey.com>
5732 * python/py-symtab.c (salpy_str): Update.
5733 (struct salpy_sal_object) <symtab>: Now a PyObject.
5734 (salpy_dealloc): Update.
5735 (del_objfile_sal): Use gdbpy_ref.
5737 2019-01-03 Tom Tromey <tom@tromey.com>
5739 * python/py-type.c (convert_field): Use new_reference. Return
5741 (make_fielditem): Return gdbpy_ref.
5742 (typy_fields): Update.
5743 (typy_getitem): Update.
5744 (field_name): Return gdbpy_ref. Use new_reference.
5745 (typy_iterator_iternext): Update.
5747 2019-01-03 Tom Tromey <tom@tromey.com>
5749 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
5751 2019-01-03 Tom Tromey <tom@tromey.com>
5753 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
5754 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
5755 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
5756 (pspy_set_frame_filters, pspy_set_frame_unwinders)
5757 (pspy_set_type_printers): Likewise.
5758 * python/py-function.c (fnpy_init): Use gdbpy_ref.
5759 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
5760 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
5761 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
5762 (objfpy_set_type_printers): Likewise.
5764 2019-01-03 Tom Tromey <tom@tromey.com>
5766 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
5767 (gdbpy_print_stack): Use gdbpy_err_fetch.
5768 * python/python-internal.h (class gdbpy_err_fetch): New class.
5769 (class gdbpy_enter) <m_error_type, m_error_value,
5770 m_error_traceback>: Remove.
5771 <m_error>: New member.
5772 (gdbpy_exception_to_string): Don't declare.
5773 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
5774 * python/py-value.c (convert_value_from_python): Use
5776 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
5777 gdbpy_exception_to_string.
5778 (gdbpy_handle_exception): Use gdbpy_err_fetch.
5779 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
5782 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5784 * linux-nat.c (delete_lwp_cleanup): Delete.
5785 (struct lwp_deleter): New struct.
5786 (lwp_info_up): New typedef.
5787 (linux_nat_target::follow_fork): Delete cleanup, and make use of
5790 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5792 * linux-fork.c (class scoped_switch_fork_info): New class.
5793 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
5795 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5797 * valops.c (find_overload_match): Remove use of null_cleanup, and
5798 calls to do_cleanups.
5800 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5802 * compile/compile-cplus-types.c
5803 (compile_cplus_instance::decl_name): Handle changes to
5805 * cp-support.c (cp_func_name): Update header comment, update
5807 * cp-support.h (cp_func_name): Update return type in declaration.
5808 * valops.c (find_overload_match): Move temp_func local to top
5809 level of function and change its type. Use temp_func to hold and
5810 delete temporary string obtained from cp_func_name.
5812 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5814 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
5815 gdb::char_vector, remove cleanup, and update uses of `msg`.
5817 2019-01-03 Jim Wilson <jimw@sifive.com>
5819 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
5821 2019-01-02 Tom Tromey <tom@tromey.com>
5823 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
5824 (tdesc_parse_xml): Remove cleanups.
5825 * target-descriptions.h (make_cleanup_free_target_description):
5827 (target_desc_deleter): New struct.
5828 (target_desc_up): New typedef.
5829 * target-descriptions.c (target_desc_deleter::operator()): Rename
5830 from free_target_description.
5831 (make_cleanup_free_target_description): Remove.
5833 2019-01-02 Tom Tromey <tom@tromey.com>
5835 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
5836 constructor, destructor.
5837 (linespec_parser): Remove typedef.
5838 (~linespec_parser): Rename from linespec_parser_delete.
5839 (linespec_lex_to_end, linespec_complete_label)
5840 (linespec_complete): Update.
5841 (decode_line_full): Remove cleanups.
5842 (decode_line_1): Update.
5844 2019-01-02 Tom Tromey <tom@tromey.com>
5846 * python/python-internal.h (inferior_to_inferior_object): Change
5848 * python/py-exitedevent.c (create_exited_event_object): Update.
5849 * python/py-inferior.c (inferior_to_inferior_object): Return
5851 (python_new_inferior, python_inferior_deleted)
5852 (thread_to_thread_object, delete_thread_object)
5853 (build_inferior_list, gdbpy_selected_inferior): Update.
5854 * python/py-infthread.c (create_thread_object): Update. Also fail
5855 if inferior_to_inferior_object fails.
5857 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
5859 * inferior.h (class inferior) <displaced_step_state>: New field.
5860 * infrun.h (struct displaced_step_state): Move here from
5861 infrun.c. Initialize fields, add constructor.
5862 <inf>: Remove field.
5863 <reset>: New method.
5864 * infrun.c (struct displaced_step_inferior_state): Move to
5866 (displaced_step_inferior_states): Remove.
5867 (get_displaced_stepping_state): Adust.
5868 (displaced_step_in_progress_any_inferior): Adjust.
5869 (displaced_step_in_progress_thread): Adjust.
5870 (displaced_step_in_progress): Adjust.
5871 (add_displaced_stepping_state): Remove.
5872 (get_displaced_step_closure_by_addr): Adjust.
5873 (remove_displaced_stepping_state): Remove.
5874 (infrun_inferior_exit): Call displaced_step_state.reset.
5875 (use_displaced_stepping): Don't check for NULL.
5876 (displaced_step_prepare_throw): Call
5877 get_displaced_stepping_state.
5878 (displaced_step_fixup): Don't check for NULL.
5879 (prepare_for_detach): Don't check for NULL.
5881 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5883 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
5884 in case of call that did not complete.
5886 2019-01-02 Andrey Utkin <autkin@undo.io>
5888 * symfile.c (find_separate_debug_file): Fix search of debug files for
5891 2019-01-02 Tom Tromey <tom@tromey.com>
5893 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
5895 * python/py-frame.c (frapy_older): Remove cast.
5896 (frapy_newer): Likewise.
5897 * python/py-breakpoint.c (local_setattro): Remove cast.
5898 * python/py-arch.c (archpy_name): Remove local variable.
5899 * python/py-type.c (gdbpy_lookup_type): Remove cast.
5901 2019-01-02 Joel Brobecker <brobecker@adacore.com>
5903 * unittests/basic_string_view/element_access/char/empty.cc:
5904 Fix year range in copyright header.
5906 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
5908 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
5910 <operator==>: Update with for removed field.
5912 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
5913 <isa_features>: ...this.
5914 <abi_features>: New field.
5915 (riscv_isa_flen): Update comment.
5916 (riscv_abi_xlen): New declaration.
5917 (riscv_abi_flen): New declaration.
5918 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
5920 (riscv_abi_xlen): New function.
5921 (riscv_isa_flen): Update to get answer from isa_features.
5922 (riscv_abi_flen): New function.
5923 (riscv_has_fp_abi): Update to get answer from abi_features.
5924 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
5926 (riscv_call_info) <xlen, flen>: Update comment.
5927 (riscv_call_arg_struct): Remove invalid assertions
5928 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
5930 (riscv_gdbarch_init): Gather isa features and abi features
5931 separately, ensure both match on the gdbarch when reusing an old
5932 gdbarch. Relax an error check to allow 32-bit abi float to run on
5933 a target with 64-bit float hardware.
5935 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5937 * source.c (search_command_helper): Stop reverse search
5938 when line 1 has been searched.
5940 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5942 * record-full.c (record_full_base_target::close): Rewrite
5943 record_full_core_buf_list free logic.
5945 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5947 * break-catch-syscall.c (print_one_catch_syscall): xfree
5950 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5952 * top.c (print_gdb_version): Update Copyright year in version
5955 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5957 Update copyright year range in all GDB files.
5959 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
5961 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
5963 For older changes see ChangeLog-2018.
5969 version-control: never