1 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8 (operator_length_f): New fuction.
9 (print_subexp_f): New function.
10 (op_name_f): New function.
11 (dump_subexp_body_f): New function.
12 (operator_check_f): New function.
13 (exp_descriptor_f): Replace standard expression handling functions
15 * gdb/fortran-operator.def: New file.
16 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
17 * gdb/std-operator.def: Remove UNOP_KIND.
19 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
21 * std-operator.def: Remove unbalanced, stray double quote
24 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
25 Chris January <chris.january@arm.com>
26 Daniel Everett <daniel.everett@arm.com>
27 Nick Forrington <nick.forrington@arm.com>
28 Richard Bunt <richard.bunt@arm.com>
30 * cp-valprint.c (cp_print_value_fields): Allow an additional level
31 of depth when printing anonymous structs or unions.
32 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
33 Don't print either the top-level value, or the children if the
34 max-depth is exceeded.
35 (ppscm_print_children): When printing the key of a map, allow one
37 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
38 print either the top-level value, or the children if the max-depth
40 (print_children): When printing the key of a map, allow one extra
42 * python/py-value.c (valpy_format_string): Add max_depth keyword.
43 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
44 (user_print_options): Initialise max_depth field.
45 (val_print_scalar_or_string_type_p): New function.
46 (val_print): Check to see if the max depth has been reached.
47 (val_print_check_max_depth): Define new function.
48 (show_print_max_depth): New function.
49 (_initialize_valprint): Add 'print max-depth' option.
50 * valprint.h (struct value_print_options) <max_depth>: New field.
51 (val_print_check_max_depth): Declare new function.
52 * NEWS: Document new feature.
54 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
56 * ada-lang.c (ada_language_defn): Initialise new field.
57 * c-lang.c (c_is_string_type_p): New function.
58 (c_language_defn): Initialise new field.
59 (cplus_language_defn): Initialise new field.
60 (asm_language_defn): Initialise new field.
61 (minimal_language_defn): Initialise new field.
62 * c-lang.h (c_is_string_type_p): Declare new function.
63 * d-lang.c (d_language_defn): Initialise new field.
64 * f-lang.c (f_is_string_type_p): New function.
65 (f_language_defn): Initialise new field.
66 * go-lang.c (go_is_string_type_p): New function.
67 (go_language_defn): Initialise new field.
68 * language.c (default_is_string_type_p): New function.
69 (unknown_language_defn): Initialise new field.
70 (auto_language_defn): Initialise new field.
71 * language.h (struct language_defn) <la_is_string_type_p>: New
73 (default_is_string_type_p): Declare new function.
74 * m2-lang.c (m2_language_defn): Initialise new field.
75 * objc-lang.c (objc_language_defn): Initialise new field.
76 * opencl-lang.c (opencl_language_defn): Initialise new field.
77 * p-lang.c (pascal_is_string_type_p): New function.
78 (pascal_language_defn): Initialise new field.
79 * rust-lang.c (rust_is_string_type_p): New function.
80 (rust_language_defn): Initialise new field.
82 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
84 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
86 * ada-lang.c (ada_language_defn): Initialise new field.
87 * c-lang.c (c_language_defn): Likewise.
88 (cplus_language_defn): Likewise.
89 (asm_language_defn): Likewise.
90 (minimal_language_defn): Likewise.
91 * d-lang.c (d_language_defn): Likewise.
92 * f-lang.c (f_language_defn): Likewise.
93 * go-lang.c (go_language_defn): Likewise.
94 * language.c (unknown_language_defn): Likewise.
95 (auto_language_defn): Likewise.
96 * m2-lang.c (m2_language_defn): Likewise.
97 * objc-lang.c (objc_language_defn): Likewise.
98 * opencl-lang.c (opencl_language_defn): Likewise.
99 * p-lang.c (pascal_language_defn): Likewise.
100 * rust-lang.c (rust_language_defn): Likewise.
102 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
104 * ada-lang.c (ada_is_character_type): Change return type to bool.
105 (ada_is_string_type): Likewise.
106 * ada-lang.h (ada_is_character_type): Update declaration
107 (ada_is_string_type): Likewise.
109 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
111 Support style in 'frame|thread apply'
113 * gdbcmd.h (execute_command_to_string): New term_out parameter.
114 * record.c (record_start, record_stop): Update callers of
115 execute_command_to_string with false.
116 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
117 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
119 (class string_file): New constructor with term_out parameter.
120 Override methods term_out and can_emit_style_escape. New member
122 (class stdio_file): Override can_emit_style_escape.
123 (class tee_file): Override term_out and can_emit_style_escape.
124 * utils.h (can_emit_style_escape): Remove.
125 * utils.c (can_emit_style_escape): Likewise.
126 Update all callers of can_emit_style_escape (SOMESTREAM) to
127 SOMESTREAM->can_emit_style_escape.
128 * source-cache.c (source_cache::get_source_lines): Likewise.
129 * stack.c (frame_apply_command_count): Call execute_command_to_string
130 passing the term_out characteristic of the current gdb_stdout.
131 * thread.c (thr_try_catch_cmd): Likewise.
132 * top.c (execute_command_to_string): pass term_out parameter
133 to construct the string_file for the command output.
134 * ui-file.c (term_cli_styling): New function (most code moved
135 from utils.c can_emit_style_escape).
136 (string_file::string_file, string_file::can_emit_style_escape,
137 stdio_file::can_emit_style_escape, tee_file::term_out,
138 tee_file::can_emit_style_escape): New functions.
140 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
142 * NEWS: Mention the new set|show may-call-functions.
143 * infcall.c (may_call_functions_p): New variable.
144 (show_may_call_functions_p): New function.
145 (call_function_by_hand_dummy): Throws an error if not
147 (_initialize_infcall): Call add_setshow_boolean_cmd for
150 2019-04-25 Keith Seitz <keiths@redhat.com>
153 * cp-support.c (inspect_type): Don't attempt substitutions
154 of symbol with the same name.
156 2019-04-25 Tom Tromey <tromey@adacore.com>
159 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
162 2019-04-25 Tom Tromey <tromey@adacore.com>
164 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
166 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
167 (gdb_xml_parser::parse): Use std::move.
168 * python/python-internal.h (gdbpy_convert_exception): Take a const
170 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
172 * python/py-utils.c (gdbpy_convert_exception): Take a const
174 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
176 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
178 * mi/mi-main.c (mi_print_exception): Take a const reference.
179 * main.c (handle_command_errors): Take a const reference.
180 * linespec.c (parse_linespec): Use std::move.
181 * infcall.c (run_inferior_call): Use std::move.
182 (call_function_by_hand_dummy): Use std::move.
183 * exec.c (try_open_exec_file): Use std::move.
184 * exceptions.h (exception_print, exception_fprintf)
185 (exception_print_same): Update.
186 * exceptions.c (print_exception, exception_print)
187 (exception_fprintf, exception_print_same): Change parameters to
189 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
190 * common/new-op.c: Use std::move.
191 * common/common-exceptions.h (struct gdb_exception): Add move
193 (struct gdb_exception_error, struct gdb_exception_quit, struct
194 gdb_quit_bad_alloc): Change constructor to move constructor.
195 (throw_exception): Change parameter to rvalue reference.
196 * common/common-exceptions.c (throw_exception): Take rvalue
198 * cli/cli-interp.c (safe_execute_command): Use std::move.
199 * breakpoint.c (insert_bp_location, location_to_sals): Use
202 2019-04-25 Tom Tromey <tromey@adacore.com>
204 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
205 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
206 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
207 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
208 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
209 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
210 guile/scm-value.c: Use unpack.
211 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
212 gdbscm_gdb_exception.
213 (gdbscm_throw_gdb_exception): Likewise.
214 (struct gdbscm_gdb_exception): New.
215 (unpack): New function.
216 (gdbscm_wrap): Use unpack.
218 2019-04-25 Tom Tromey <tromey@adacore.com>
220 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
221 (gdb_rl_callback_handler): Use std::move.
222 * common/common-exceptions.h (struct gdb_exception): Add move
224 (throw_exception_sjlj): Change "exception" to const reference.
225 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
226 (throw_exception_sjlj): Change "exception" to const reference.
228 2019-04-25 Tom Tromey <tromey@adacore.com>
230 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
231 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
232 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
234 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
236 * mi/mi-interp.c (mi_interp::exec): Update.
237 * linespec.c (parse_linespec): Update.
238 * infcall.c (run_inferior_call): Update.
239 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
240 * guile/scm-symbol.c (gdbscm_lookup_symbol)
241 (gdbscm_lookup_global_symbol): Update.
242 * guile/scm-param.c (gdbscm_parameter_value): Update.
243 * guile/scm-frame.c (gdbscm_frame_read_register)
244 (gdbscm_frame_read_var): Update.
245 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
246 * exec.c (try_open_exec_file): Update.
247 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
248 (gdb_rl_callback_handler): Update.
249 * common/common-exceptions.h (exception_none): Don't declare.
250 * common/common-exceptions.c (exception_none): Don't define.
251 (struct catcher) <exception>: Update.
252 * cli/cli-interp.c (safe_execute_command): Update.
253 * breakpoint.c (insert_bp_location, location_to_sals): Update.
255 2019-04-25 Ali Tamur <tamur@google.com>
257 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
258 (read_attribute_value): Likewise.
259 (dwarf2_read_addr_index): Update comment.
260 (read_str_index): Add DW_FORM_strx.
261 (dwarf2_string_attr): Likewise.
262 (dwarf2_const_value_attr): Likewise.
263 (dump_die_shallow): Likewise.
264 (dwarf2_fetch_constant_bytes): Likewise.
265 (skip_form_bytes): Likewise.
266 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
268 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
272 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
273 OFFSET. Verify if current mapping contains an ELF header.
274 (linux_find_memory_regions_full): Adjust call to
277 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
278 Kang Li <kanglictf@gmail.com>
282 * dwarf2-frame.c (read_initial_length): Be consistent about using
283 unsigned representation of length.
284 (decode_frame_entry_1): Likewise. Check for wraparound of
285 end pointer as well as buffer overflow.
287 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
289 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
292 2019-04-24 Tom Tromey <tromey@adacore.com>
294 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
296 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
298 * s12z-tdep.c (s12z_unwind_pc): Delete.
299 (s12z_unwind_sp): Delete.
300 (s12z_gdbarch_init): Don't register deleted functions with
303 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
305 * rl78-tdep.c (rl78_unwind_sp): Delete.
306 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
308 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
310 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
311 (xstormy16_unwind_pc): Delete.
312 (xstormy16_dummy_id): Delete.
313 (xstormy16_gdbarch_init): Don't register deleted functions with
316 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
318 * vax-tdep.c (vax_unwind_pc): Delete.
319 (vax_gdbarch_init): Don't register deleted function with gdbarch.
321 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
323 * v850-tdep.c (v850_unwind_sp): Delete.
324 (v850_unwind_pc): Delete.
325 (v850_dummy_id): Delete.
326 (v850_gdbarch_init): Don't register deleted functions with
329 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
331 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
332 (tilegx_unwind_pc): Delete.
333 (tilegx_unwind_dummy_id): Delete.
334 (tilegx_gdbarch_init): Don't register deleted functions with
337 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
339 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
340 (tic6x_dummy_id): Delete.
341 (tic6x_gdbarch_init): Don't register deleted functions with
344 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
346 * sparc-tdep.c (sparc_unwind_pc): Delete.
347 (sparc32_gdbarch_init): Don't register deleted function with
350 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
352 * sh-tdep.c (sh_unwind_sp): Delete.
353 (sh_unwind_pc): Delete.
354 (sh_dummy_id): Delete.
355 (sh_gdbarch_init): Don't register deleted functions with
358 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
360 * score-tdep.c (score_unwind_sp): Delete.
361 (score_unwind_pc): Delete.
362 (score_dummy_id): Delete.
363 (score_gdbarch_init): Don't register deleted functions with
366 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
368 * rx-tdep.c (rx_unwind_pc): Delete.
369 (rx_unwind_sp): Delete.
370 (rx_dummy_id): Delete.
371 (rx_gdbarch_init): Don't register deleted functions with
372 gdbarch. Update comment.
374 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
376 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
377 (rs6000_dummy_id): Delete.
378 (rs6000_gdbarch_init): Don't register deleted functions with
381 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
383 * or1k-tdep.c (or1k_dummy_id): Delete.
384 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
386 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
388 * nios2-tdep.c (nios2_dummy_id): Delete.
389 (nios2_unwind_sp): Delete.
390 (nios2_gdbarch_init): Don't register deleted functions with
393 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
395 * nds32-tdep.c (nds32_dummy_id): Delete.
396 (nds32_unwind_pc): Delete.
397 (nds32_unwind_sp): Delete.
398 (nds32_gdbarch_init): Don't register deleted functions with
401 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
403 * msp430-tdep.c (msp430_unwind_pc): Delete.
404 (msp430_unwind_sp): Delete.
405 (msp430_dummy_id): Delete.
406 (msp430_gdbarch_init): Don't register deleted functions with
409 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
411 * moxie-tdep.c (moxie_unwind_sp): Delete.
412 (moxie_unwind_pc): Delete.
413 (moxie_dummy_id): Delete.
414 (moxie_gdbarch_init): Don't register deleted functions with
417 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
419 * mn10300-tdep.c (mn10300_dummy_id): Delete.
420 (mn10300_unwind_pc): Delete.
421 (mn10300_unwind_sp): Delete.
422 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
424 (mn10300_frame_unwind_init): Don't register deleted functions with
427 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
429 * mep-tdep.c (mep_unwind_pc): Delete.
430 (mep_unwind_sp): Delete.
431 (mep_dummy_id): Delete.
432 (mep_gdbarch_init): Don't register deleted functions with
435 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
437 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
438 (m68hc11_unwind_sp): Delete.
439 (m68hc11_gdbarch_init): Don't register deleted functions with
442 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
444 * m32r-tdep.c (m32r_unwind_sp): Delete.
445 (m32r_unwind_pc): Delete.
446 (m32r_dummy_id): Delete.
447 (m32r_gdbarch_init): Don't register deleted functions with
450 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
452 * m32c-tdep.c (m32c_unwind_pc): Delete.
453 (m32c_unwind_sp): Delete.
454 (m32c_dummy_id): Delete.
455 (m32c_gdbarch_init): Don't register deleted functions with
458 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
460 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
461 (lm32_unwind_pc): Delete.
462 (lm32_dummy_id): Delete.
463 (lm32_gdbarch_init): Don't register deleted functions with
466 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
468 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
469 (iq2000_unwind_pc): Delete.
470 (iq2000_dummy_id): Delete.
471 (iq2000_gdbarch_init): Don't register deleted functions with
474 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
476 * nds32-tdep.c (nds32_type_align): Delete.
477 (nds32_push_dummy_call): Use type_align instead.
479 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
481 * arm-tdep.c (arm_type_align): Only handle vector override case.
482 (arm_push_dummy_call): Use type_align.
483 (arm_gdbarch_init): Register arm_type_align gdbarch function.
485 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
487 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
489 (pass_on_stack): Use type_align.
490 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
493 2019-04-23 Tom Tromey <tromey@adacore.com>
495 * dwarf2read.c (line_header::file_name_at): Remove unused
498 2019-04-23 Tom de Vries <tdevries@suse.de>
501 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
505 2019-03-27 Ali Tamur <tamur@google.com>
507 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
508 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
509 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
510 (dwarf_expr_context::get_addr_index): Likewise
511 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
512 (symbol_needs_eval_context::get_addr_index): Likewise
513 (disassemble_dwarf_expression): Add DW_OP_addrx
514 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
515 (read_cutu_die_from_dwo): Update comment
516 (skip_one_die): Add DW_FORM_addrx
517 (read_attribute_value): Likewise
518 (var_decode_location): Add DW_OP_addrx
519 (dwarf2_const_value_attr): Add DW_FORM_addrx
520 (dump_die_shallow): Likewise
521 (dwarf2_fetch_constant_bytes): Likewise
522 (decode_locdesc): Add DW_OP_addrx
523 (skip_form_bytes): Add DW_FORM_addrx
525 2019-04-22 Ali Tamur <tamur@google.com>
527 * MAINTAINERS (Write After Approval): Add self.
529 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
531 * solib-svr4.c (get_svr4_info): Add pspace parameter.
532 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
533 (open_symbol_file_object): Likewise.
534 (svr4_default_sos): Add info parameter.
535 (svr4_read_so_list): Likewise.
536 (svr4_current_sos_direct): Adjust functions calls to pass down
538 (svr4_current_sos_1): Add info parameter.
539 (svr4_current_sos): Call get_svr4_info, pass info down to
541 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
543 (svr4_in_dynsym_resolve_code): Pass current_program_space to
545 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
547 (probes_table_remove_objfile_probes): Likewise.
548 (register_solib_event_probe): Add info parameter.
549 (solist_update_incremental): Pass info parameter down to
551 (disable_probes_interface): Add info parameter.
552 (svr4_handle_solib_event): Pass current_program_space to
553 get_svr4_info. Adjust disable_probes_interface cleanup.
554 (svr4_create_probe_breakpoints): Add info parameter, pass it
555 down to register_solib_event_probe.
556 (svr4_create_solib_event_breakpoints): Add info parameter,
557 pass it down to svr4_create_probe_breakpoints.
558 (enable_break): Pass info down to
559 svr4_create_solib_event_breakpoints.
560 (svr4_solib_create_inferior_hook): Pass current_program_space to
562 (svr4_clear_solib): Likewise.
564 2019-04-22 Pedro Alves <palves@redhat.com>
566 * solib-svr4.c (svr4_free_objfile_observer): New.
567 (probe_and_action::objfile): New field.
568 (probes_table_htab_remove_objfile_probes)
569 (probes_table_remove_objfile_probes): New functions.
570 (register_solib_event_probe): Add 'objfile' parameter. Store it
571 in the new probe_and_action. Don't store the probe in 'lookup'.
572 (svr4_create_probe_breakpoints): Pass objfile to
573 register_solib_event_probe.
574 (_initialize_svr4_solib): Register a free_objfile observer.
576 2019-04-19 Tom Tromey <tom@tromey.com>
578 * common/queue.h: Remove.
580 2019-04-19 Tom Tromey <tom@tromey.com>
582 * event-loop.c: Don't include "common/queue.h".
584 2019-04-19 Tom Tromey <tom@tromey.com>
586 * remote.c (remote_target): Use delete.
587 * remote-notif.h: Include <list>, not "common/queue.h".
588 (notif_client_p): Remove typedef.
589 (remote_notif_state): Add constructor, destructor, initializer.
590 <notif_queue>: Now a std::list.
591 (remote_notif_state_xfree): Don't declare.
592 * remote-notif.c (remote_notif_process, handle_notification)
593 (remote_notif_state_allocate): Update.
594 (~remote_notif_state): Rename from remote_notif_state_xfree.
596 2019-04-19 Tom Tromey <tom@tromey.com>
598 * symfile.c (reread_symbols): Update.
599 * objfiles.c (objfile_register_static_link)
600 (objfile_lookup_static_link): Update
601 (~objfile) Don't delete static_links.
602 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
604 2019-04-19 Tom Tromey <tom@tromey.com>
606 * type-stack.h (struct type_stack) <insert>: Constify string.
607 * type-stack.c (type_stack::insert): Constify string.
608 * gdbtypes.h (lookup_template_type): Update.
609 (address_space_name_to_int): Update.
610 * gdbtypes.c (address_space_name_to_int): Make space_identifier
612 (lookup_template_type): Make name const.
613 * c-exp.y: Update rules.
614 (lex_one_token, classify_name, classify_inner_name)
615 (c_print_token): Update.
616 * p-exp.y: Update rules.
618 * f-exp.y: Update rules.
620 * d-exp.y: Update rules.
621 (lex_one_token, classify_name, classify_inner_name): Update.
622 * parse.c (write_dollar_variable, copy_name): Return std::string.
623 * parser-defs.h (copy_name): Change return type.
624 * m2-exp.y: Update rules.
626 * go-exp.y (lex_one_token): Update.
628 (classify_unsafe_function, classify_packaged_name)
629 (classify_name, yylex): Update.
631 2019-04-19 Sergei Trofimovich <siarheit@google.com>
633 * configure.ac: add --enable-source-highlight switch.
634 * configure: Regenerate.
635 * top.c (print_gdb_version): plumb --enable-source-highlight
636 status to "show configuration".
638 2019-04-19 Tom Tromey <tromey@adacore.com>
640 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
642 (empty_record, ada_template_to_fixed_record_type_1)
643 (template_to_static_fixed_type)
644 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
645 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
646 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
649 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
652 * source.c (print_source_lines_base): Advance "iter" when a
653 control character is seen.
655 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
657 * inferior.h (struct infcall_suspend_state_deleter):
658 Catch exception in destructor to avoid crash.
660 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
662 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
663 close to the add_com "shell".
665 2019-04-18 Tom Tromey <tromey@adacore.com>
667 * process-stratum-target.h (class process_stratum_target)
668 <stratum>: Add "final".
670 2019-04-17 Tom Tromey <tromey@adacore.com>
672 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
673 against nullptr before use.
675 2019-04-17 Alan Hayward <alan.hayward@arm.com>
677 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
679 2019-04-17 Jim Wilson <jimw@sifive.com>
680 Andrew Burgess <andrew.burgess@embecosm.com>
682 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
683 code read might fail, assume 4-byte breakpoint in that case.
685 2019-04-15 Leszek Swirski <leszeks@google.com>
687 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
688 rather than a hand-rolled POD check when checking for forced MEMORY
691 2019-04-15 Alan Hayward <alan.hayward@arm.com>
693 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
694 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
696 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
697 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
698 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
701 2019-04-15 Alan Hayward <alan.hayward@arm.com>
703 * aarch64-linux-nat.c
704 (aarch64_linux_nat_target::thread_architecture): Add override.
705 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
708 2019-04-15 Alan Hayward <alan.hayward@arm.com>
710 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
712 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
714 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
715 target types of size 96-bits, add some additional comments, and
716 check that the builtin type we found was the correct size.
718 2019-04-12 Eli Zaretskii <eliz@gnu.org>
720 * utils.c (prompt_for_continue): Don't restore the styling at the
721 end, as applied_style has the wrong value. This fixes styling in
722 long lists of file names that are interrupted by the "Continue?"
725 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
727 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
728 * c-lang.c (c_language_defn): Likewise.
729 (cplus_language_defn): Likewise.
730 (asm_language_defn): Likewise.
731 (minimal_language_defn): Likewise.
732 * d-lang.c (d_language_defn): Likewise.
733 * f-lang.c (f_language_defn): Likewise.
734 * go-lang.c (go_language_defn): Likewise.
735 * language.c (unknown_language_defn): Likewise.
736 (auto_language_defn): Likewise.
737 * language.h (struct language_defn): Remove la_magic field.
738 (LANG_MAGIC): Delete.
739 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
740 * objc-lang.c (objc_language_defn): Likewise.
741 * opencl-lang.c (opencl_language_defn): Likewise.
742 * p-lang.c (pascal_language_defn): Likewise.
743 * rust-lang.c (rust_language_defn): Likewise.
745 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
747 * riscv-tdep.c (riscv_type_align): New function.
748 (riscv_type_alignment): Delete.
749 (riscv_arg_location): Use 'type_align'.
750 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
752 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
754 * gdbtypes.c (type_align): A struct with no non-static fields also
757 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
759 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
761 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
763 (riscv_struct_info::analyse): New implementation using new
764 analyse_inner member function.
765 (riscv_struct_info::field_offset): New member function.
766 (riscv_struct_info::m_offsets): New member variable.
767 (riscv_struct_info::analyse_inner): New private member function,
768 takes the old implementation of riscv_struct_info::analyse but
769 extended to track field offsets.
770 (riscv_call_arg_struct): Update the struct folding special cases
771 to handle cases where empty C++ structs, which are non-zero
773 (riscv_arg_location): Initialise the length of each location, a
774 non-zero length now indicates the location is in use.
775 (riscv_push_dummy_call): Allow for the first location having a
776 non-zero offset when setting up arguments.
777 (riscv_return_value): Likewise, but for return values.
779 2019-04-11 Tom Tromey <tromey@adacore.com>
781 * utils.c (internal_vproblem): Make "msg" const.
783 2019-04-11 Alan Hayward <alan.hayward@arm.com>
785 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
786 * trad-frame.c (trad_frame_reset_saved_regs): New function.
787 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
788 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
790 2019-04-10 Kevin Buettner <kevinb@redhat.com>
792 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
794 (fill_gregset): Call amd64_linux_collect_native_gregset instead
795 of amd64_collect_native_gregset.
796 (amd64_linux_nat_target::store_registers): Likewise.
798 2019-04-10 Tom Tromey <tom@tromey.com>
800 * symtab.c (lookup_global_symbol_from_objfile)
801 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
802 * objfiles.h (class separate_debug_iterator): New.
803 (class separate_debug_range): New.
804 (struct objfile) <separate_debug_objfiles>: New method.
805 (objfile_separate_debug_iterate): Don't declare.
806 * objfiles.c (separate_debug_iterator::operator++): Rename from
807 objfile_separate_debug_iterate.
808 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
810 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
813 2019-04-10 Tom Tromey <tom@tromey.com>
815 * symfile.c (reread_symbols): Remove old comment.
816 * objfiles.c (free_all_objfiles): Fix a typo.
818 2019-04-10 Tom Tromey <tom@tromey.com>
820 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
821 * minsyms.c (lookup_minimal_symbol): Use foreach.
822 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
823 (lookup_minimal_symbol_solib_trampoline): Likewise.
824 * symfile.c (reread_symbols): Use foreach.
826 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
827 Tom Tromey <tromey@adacore.com>
830 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
831 (rust_lex_int_test): Change "value" to be LONGEST.
832 (rust_lex_tests): Add test for long integer literal.
834 2019-04-09 Tom Tromey <tromey@adacore.com>
836 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
838 (extended_remote_target::attach): Update.
839 (remote_target::remote_notice_new_inferior): Update.
840 (remote_target::add_current_inferior_and_thread): Update.
841 * inferior.c (exit_inferior_1): Use "false".
842 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
844 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
846 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
849 2019-04-08 Kevin Buettner <kevinb@redhat.com>
851 * python/py-inferior.c (infpy_thread_from_thread_handle):
852 Adjust comments to reflect renaming of thread_from_thread_handle
853 to thread_from_handle. Adjust keywords. Fix type error message.
854 (inferior_object_methods): Add thread_from_handle. Retain
855 thread_from_thread_handle, but mark it as deprecated.
857 2019-04-08 Kevin Buettner <kevinb@redhat.com>
859 * gdbthread.h (find_thread_by_handle): Revise declaration.
860 * thread.c (find_thread_by_handle): Likewise. Adjust
862 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
863 support for buffer objects as handles.
865 2019-04-08 Kevin Buettner <kevinb@redhat.com>
867 * python/py-infthread.c (thpy_thread_handle): New function.
868 (thread_object_methods): Register thpy_thread_handle.
870 2019-04-08 Kevin Buettner <kevinb@redhat.com>
872 * gdbthread.h (thread_to_thread_handle): Declare.
873 * thread.c (gdbtypes.h): Include.
874 (thread_to_thread_handle): New function.
876 * target.h (struct target_ops): Add thread_info_to_thread_handle.
877 (target_thread_info_to_thread_handle): Declare.
878 * target.c (target_thread_info_to_thread_handle): New function.
879 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
880 * target-delegates.c: Regenerate.
882 * linux-thread-db.c (class thread_db_target): Add method
883 thread_info_to_thread_handle.
884 (thread_db_target::thread_info_to_thread_handle): Define.
885 * remote.c (class remote_target): Add new method
886 thread_info_to_thread_handle.
887 (remote_target::thread_info_to_thread_handle): Define.
889 2019-04-08 Pedro Alves <palves@redhat.com>
891 * common/common-exceptions.c (throw_exception): Don't create
892 named object to throw; throw directly.
893 (throw_it): Likewise. Don't initialize gdb_exception::message
894 here, with new; pass FMT and AP to the ctor instead.
895 * common/common-exceptions.h: Include <string>.
896 (gdb_exception::gdb_exception(enum return_reason, enum errors,
897 const char *, va_list)): New ctor. Use std::make_shared.
898 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
900 (gdb_exception_error::gdb_exception_error(enum errors, const char
902 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
904 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
906 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
907 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
910 2019-04-08 Tom Tromey <tom@tromey.com>
912 * valops.c (value_rtti_indirect_type): Replace throw_exception
914 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
916 * thread.c (thr_try_catch_cmd): Replace throw_exception with
918 * target.c (target_translate_tls_address): Replace throw_exception
920 * stack.c (frame_apply_command_count): Replace throw_exception
922 * solib-spu.c (append_ocl_sos): Replace throw_exception with
924 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
926 * rs6000-tdep.c (rs6000_frame_cache)
927 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
928 * remote.c: Replace throw_exception with throw.
929 * record-full.c (record_full_message, record_full_wait_1)
930 (record_full_restore): Replace throw_exception with throw.
932 (get_thread_current_frame_id, record_btrace_start_replaying)
933 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
934 (cmd_record_btrace_start): Replace throw_exception with throw.
935 * parse.c (parse_exp_in_context_1): Replace throw_exception with
937 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
938 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
940 (find_linespec_symbols): Replace throw_exception with throw.
941 * infrun.c (displaced_step_prepare, resume): Replace
942 throw_exception with throw.
943 * infcmd.c (post_create_inferior): Replace throw_exception with
945 * inf-loop.c (inferior_event_handler): Replace throw_exception
947 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
948 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
949 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
950 (get_prev_frame_always, get_frame_pc_if_available)
951 (get_frame_address_in_block_if_available, get_frame_language):
952 Replace throw_exception with throw.
953 * frame-unwind.c (frame_unwind_try_unwinder): Replace
954 throw_exception with throw.
955 * eval.c (fetch_subexp_value, evaluate_var_value)
956 (evaluate_funcall, evaluate_subexp_standard): Replace
957 throw_exception with throw.
958 * dwarf2loc.c (call_site_find_chain)
959 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
960 Replace throw_exception with throw.
961 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
963 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
965 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
966 * completer.c (complete_line_internal): Replace throw_exception
968 * compile/compile-object-run.c (compile_object_run): Replace
969 throw_exception with throw.
970 * cli/cli-script.c (process_next_line): Replace throw_exception
972 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
973 (btrace_enable, btrace_maint_update_pt_packets): Replace
974 throw_exception with throw.
975 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
976 throw_exception with throw.
977 * break-catch-throw.c (re_set_exception_catchpoint): Replace
978 throw_exception with throw.
979 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
980 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
981 * aarch64-tdep.c (aarch64_make_prologue_cache)
982 (aarch64_make_stub_cache): Replace throw_exception with throw.
984 2019-04-08 Tom Tromey <tom@tromey.com>
986 * common/common-exceptions.c (throw_exception): Rename from
987 throw_exception_cxx. Remove old copy. Make argument const.
988 (throw_it): Create and throw exception objects directly.
989 * common/common-exceptions.h (throw_exception): Make argument
991 (struct gdb_exception_error): Add constructor.
992 (struct gdb_exception_quit): Add constructor.
994 2019-04-08 Tom Tromey <tom@tromey.com>
996 * common/common-exceptions.h (exception_rethrow): Don't declare.
997 (TRY_SJLJ): Update comment.
998 (TRY, CATCH, END_CATCH): Remove.
999 * common/common-exceptions.c (exception_rethrow): Remove.
1001 2019-04-08 Tom Tromey <tom@tromey.com>
1003 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
1005 (gdb_exception_error): Rename from
1006 gdb_exception_RETURN_MASK_ERROR.
1007 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
1008 (gdb_quit_bad_alloc): Update.
1009 * aarch64-tdep.c: Update.
1010 * ada-lang.c: Update.
1011 * ada-typeprint.c: Update.
1012 * ada-valprint.c: Update.
1013 * amd64-tdep.c: Update.
1014 * arch-utils.c: Update.
1015 * break-catch-throw.c: Update.
1016 * breakpoint.c: Update.
1018 * c-varobj.c: Update.
1019 * cli/cli-cmds.c: Update.
1020 * cli/cli-interp.c: Update.
1021 * cli/cli-script.c: Update.
1022 * common/common-exceptions.c: Update.
1023 * common/new-op.c: Update.
1024 * common/selftest.c: Update.
1025 * compile/compile-c-symbols.c: Update.
1026 * compile/compile-cplus-symbols.c: Update.
1027 * compile/compile-object-load.c: Update.
1028 * compile/compile-object-run.c: Update.
1029 * completer.c: Update.
1030 * corelow.c: Update.
1032 * cp-support.c: Update.
1033 * cp-valprint.c: Update.
1034 * darwin-nat.c: Update.
1035 * disasm-selftests.c: Update.
1036 * dtrace-probe.c: Update.
1037 * dwarf-index-cache.c: Update.
1038 * dwarf-index-write.c: Update.
1039 * dwarf2-frame-tailcall.c: Update.
1040 * dwarf2-frame.c: Update.
1041 * dwarf2loc.c: Update.
1042 * dwarf2read.c: Update.
1044 * event-loop.c: Update.
1045 * event-top.c: Update.
1047 * f-valprint.c: Update.
1048 * fbsd-tdep.c: Update.
1049 * frame-unwind.c: Update.
1051 * gdbtypes.c: Update.
1052 * gnu-v3-abi.c: Update.
1053 * guile/guile-internal.h: Update.
1054 * guile/scm-block.c: Update.
1055 * guile/scm-breakpoint.c: Update.
1056 * guile/scm-cmd.c: Update.
1057 * guile/scm-disasm.c: Update.
1058 * guile/scm-frame.c: Update.
1059 * guile/scm-lazy-string.c: Update.
1060 * guile/scm-math.c: Update.
1061 * guile/scm-param.c: Update.
1062 * guile/scm-ports.c: Update.
1063 * guile/scm-pretty-print.c: Update.
1064 * guile/scm-symbol.c: Update.
1065 * guile/scm-symtab.c: Update.
1066 * guile/scm-type.c: Update.
1067 * guile/scm-value.c: Update.
1068 * i386-linux-tdep.c: Update.
1069 * i386-tdep.c: Update.
1070 * inf-loop.c: Update.
1071 * infcall.c: Update.
1075 * language.c: Update.
1076 * linespec.c: Update.
1077 * linux-fork.c: Update.
1078 * linux-nat.c: Update.
1079 * linux-tdep.c: Update.
1080 * linux-thread-db.c: Update.
1082 * mi/mi-cmd-break.c: Update.
1083 * mi/mi-cmd-stack.c: Update.
1084 * mi/mi-interp.c: Update.
1085 * mi/mi-main.c: Update.
1086 * objc-lang.c: Update.
1087 * p-valprint.c: Update.
1089 * ppc-linux-tdep.c: Update.
1090 * printcmd.c: Update.
1091 * python/py-arch.c: Update.
1092 * python/py-breakpoint.c: Update.
1093 * python/py-cmd.c: Update.
1094 * python/py-finishbreakpoint.c: Update.
1095 * python/py-frame.c: Update.
1096 * python/py-framefilter.c: Update.
1097 * python/py-gdb-readline.c: Update.
1098 * python/py-inferior.c: Update.
1099 * python/py-infthread.c: Update.
1100 * python/py-lazy-string.c: Update.
1101 * python/py-linetable.c: Update.
1102 * python/py-objfile.c: Update.
1103 * python/py-param.c: Update.
1104 * python/py-prettyprint.c: Update.
1105 * python/py-progspace.c: Update.
1106 * python/py-record-btrace.c: Update.
1107 * python/py-record.c: Update.
1108 * python/py-symbol.c: Update.
1109 * python/py-type.c: Update.
1110 * python/py-unwind.c: Update.
1111 * python/py-utils.c: Update.
1112 * python/py-value.c: Update.
1113 * python/python.c: Update.
1114 * record-btrace.c: Update.
1115 * record-full.c: Update.
1116 * remote-fileio.c: Update.
1118 * riscv-tdep.c: Update.
1119 * rs6000-aix-tdep.c: Update.
1120 * rs6000-tdep.c: Update.
1121 * rust-exp.y: Update.
1122 * rust-lang.c: Update.
1123 * s390-tdep.c: Update.
1124 * selftest-arch.c: Update.
1125 * solib-dsbt.c: Update.
1126 * solib-frv.c: Update.
1127 * solib-spu.c: Update.
1128 * solib-svr4.c: Update.
1130 * sparc64-linux-tdep.c: Update.
1132 * symfile-mem.c: Update.
1133 * symmisc.c: Update.
1137 * tracefile-tfile.c: Update.
1138 * tui/tui.c: Update.
1139 * typeprint.c: Update.
1140 * unittests/cli-utils-selftests.c: Update.
1141 * unittests/parse-connection-spec-selftests.c: Update.
1143 * valprint.c: Update.
1146 * windows-nat.c: Update.
1147 * x86-linux-nat.c: Update.
1148 * xml-support.c: Update.
1150 2019-04-08 Tom Tromey <tom@tromey.com>
1152 * xml-support.c: Use C++ exception handling.
1153 * x86-linux-nat.c: Use C++ exception handling.
1154 * windows-nat.c: Use C++ exception handling.
1155 * varobj.c: Use C++ exception handling.
1156 * value.c: Use C++ exception handling.
1157 * valprint.c: Use C++ exception handling.
1158 * valops.c: Use C++ exception handling.
1159 * unittests/parse-connection-spec-selftests.c: Use C++ exception
1161 * unittests/cli-utils-selftests.c: Use C++ exception handling.
1162 * typeprint.c: Use C++ exception handling.
1163 * tui/tui.c: Use C++ exception handling.
1164 * tracefile-tfile.c: Use C++ exception handling.
1165 * top.c: Use C++ exception handling.
1166 * thread.c: Use C++ exception handling.
1167 * target.c: Use C++ exception handling.
1168 * symmisc.c: Use C++ exception handling.
1169 * symfile-mem.c: Use C++ exception handling.
1170 * stack.c: Use C++ exception handling.
1171 * sparc64-linux-tdep.c: Use C++ exception handling.
1172 * solib.c: Use C++ exception handling.
1173 * solib-svr4.c: Use C++ exception handling.
1174 * solib-spu.c: Use C++ exception handling.
1175 * solib-frv.c: Use C++ exception handling.
1176 * solib-dsbt.c: Use C++ exception handling.
1177 * selftest-arch.c: Use C++ exception handling.
1178 * s390-tdep.c: Use C++ exception handling.
1179 * rust-lang.c: Use C++ exception handling.
1180 * rust-exp.y: Use C++ exception handling.
1181 * rs6000-tdep.c: Use C++ exception handling.
1182 * rs6000-aix-tdep.c: Use C++ exception handling.
1183 * riscv-tdep.c: Use C++ exception handling.
1184 * remote.c: Use C++ exception handling.
1185 * remote-fileio.c: Use C++ exception handling.
1186 * record-full.c: Use C++ exception handling.
1187 * record-btrace.c: Use C++ exception handling.
1188 * python/python.c: Use C++ exception handling.
1189 * python/py-value.c: Use C++ exception handling.
1190 * python/py-utils.c: Use C++ exception handling.
1191 * python/py-unwind.c: Use C++ exception handling.
1192 * python/py-type.c: Use C++ exception handling.
1193 * python/py-symbol.c: Use C++ exception handling.
1194 * python/py-record.c: Use C++ exception handling.
1195 * python/py-record-btrace.c: Use C++ exception handling.
1196 * python/py-progspace.c: Use C++ exception handling.
1197 * python/py-prettyprint.c: Use C++ exception handling.
1198 * python/py-param.c: Use C++ exception handling.
1199 * python/py-objfile.c: Use C++ exception handling.
1200 * python/py-linetable.c: Use C++ exception handling.
1201 * python/py-lazy-string.c: Use C++ exception handling.
1202 * python/py-infthread.c: Use C++ exception handling.
1203 * python/py-inferior.c: Use C++ exception handling.
1204 * python/py-gdb-readline.c: Use C++ exception handling.
1205 * python/py-framefilter.c: Use C++ exception handling.
1206 * python/py-frame.c: Use C++ exception handling.
1207 * python/py-finishbreakpoint.c: Use C++ exception handling.
1208 * python/py-cmd.c: Use C++ exception handling.
1209 * python/py-breakpoint.c: Use C++ exception handling.
1210 * python/py-arch.c: Use C++ exception handling.
1211 * printcmd.c: Use C++ exception handling.
1212 * ppc-linux-tdep.c: Use C++ exception handling.
1213 * parse.c: Use C++ exception handling.
1214 * p-valprint.c: Use C++ exception handling.
1215 * objc-lang.c: Use C++ exception handling.
1216 * mi/mi-main.c: Use C++ exception handling.
1217 * mi/mi-interp.c: Use C++ exception handling.
1218 * mi/mi-cmd-stack.c: Use C++ exception handling.
1219 * mi/mi-cmd-break.c: Use C++ exception handling.
1220 * main.c: Use C++ exception handling.
1221 * linux-thread-db.c: Use C++ exception handling.
1222 * linux-tdep.c: Use C++ exception handling.
1223 * linux-nat.c: Use C++ exception handling.
1224 * linux-fork.c: Use C++ exception handling.
1225 * linespec.c: Use C++ exception handling.
1226 * language.c: Use C++ exception handling.
1227 * jit.c: Use C++ exception handling.
1228 * infrun.c: Use C++ exception handling.
1229 * infcmd.c: Use C++ exception handling.
1230 * infcall.c: Use C++ exception handling.
1231 * inf-loop.c: Use C++ exception handling.
1232 * i386-tdep.c: Use C++ exception handling.
1233 * i386-linux-tdep.c: Use C++ exception handling.
1234 * guile/scm-value.c: Use C++ exception handling.
1235 * guile/scm-type.c: Use C++ exception handling.
1236 * guile/scm-symtab.c: Use C++ exception handling.
1237 * guile/scm-symbol.c: Use C++ exception handling.
1238 * guile/scm-pretty-print.c: Use C++ exception handling.
1239 * guile/scm-ports.c: Use C++ exception handling.
1240 * guile/scm-param.c: Use C++ exception handling.
1241 * guile/scm-math.c: Use C++ exception handling.
1242 * guile/scm-lazy-string.c: Use C++ exception handling.
1243 * guile/scm-frame.c: Use C++ exception handling.
1244 * guile/scm-disasm.c: Use C++ exception handling.
1245 * guile/scm-cmd.c: Use C++ exception handling.
1246 * guile/scm-breakpoint.c: Use C++ exception handling.
1247 * guile/scm-block.c: Use C++ exception handling.
1248 * guile/guile-internal.h: Use C++ exception handling.
1249 * gnu-v3-abi.c: Use C++ exception handling.
1250 * gdbtypes.c: Use C++ exception handling.
1251 * frame.c: Use C++ exception handling.
1252 * frame-unwind.c: Use C++ exception handling.
1253 * fbsd-tdep.c: Use C++ exception handling.
1254 * f-valprint.c: Use C++ exception handling.
1255 * exec.c: Use C++ exception handling.
1256 * event-top.c: Use C++ exception handling.
1257 * event-loop.c: Use C++ exception handling.
1258 * eval.c: Use C++ exception handling.
1259 * dwarf2read.c: Use C++ exception handling.
1260 * dwarf2loc.c: Use C++ exception handling.
1261 * dwarf2-frame.c: Use C++ exception handling.
1262 * dwarf2-frame-tailcall.c: Use C++ exception handling.
1263 * dwarf-index-write.c: Use C++ exception handling.
1264 * dwarf-index-cache.c: Use C++ exception handling.
1265 * dtrace-probe.c: Use C++ exception handling.
1266 * disasm-selftests.c: Use C++ exception handling.
1267 * darwin-nat.c: Use C++ exception handling.
1268 * cp-valprint.c: Use C++ exception handling.
1269 * cp-support.c: Use C++ exception handling.
1270 * cp-abi.c: Use C++ exception handling.
1271 * corelow.c: Use C++ exception handling.
1272 * completer.c: Use C++ exception handling.
1273 * compile/compile-object-run.c: Use C++ exception handling.
1274 * compile/compile-object-load.c: Use C++ exception handling.
1275 * compile/compile-cplus-symbols.c: Use C++ exception handling.
1276 * compile/compile-c-symbols.c: Use C++ exception handling.
1277 * common/selftest.c: Use C++ exception handling.
1278 * common/new-op.c: Use C++ exception handling.
1279 * cli/cli-script.c: Use C++ exception handling.
1280 * cli/cli-interp.c: Use C++ exception handling.
1281 * cli/cli-cmds.c: Use C++ exception handling.
1282 * c-varobj.c: Use C++ exception handling.
1283 * btrace.c: Use C++ exception handling.
1284 * breakpoint.c: Use C++ exception handling.
1285 * break-catch-throw.c: Use C++ exception handling.
1286 * arch-utils.c: Use C++ exception handling.
1287 * amd64-tdep.c: Use C++ exception handling.
1288 * ada-valprint.c: Use C++ exception handling.
1289 * ada-typeprint.c: Use C++ exception handling.
1290 * ada-lang.c: Use C++ exception handling.
1291 * aarch64-tdep.c: Use C++ exception handling.
1293 2019-04-08 Tom Tromey <tom@tromey.com>
1295 * xml-support.c (gdb_xml_parser::parse): Update.
1296 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
1297 * value.c (show_convenience): Update.
1298 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
1299 (test_parse_flags_qcs): Update.
1300 * thread.c (thr_try_catch_cmd): Update.
1301 * target.c (target_translate_tls_address): Update.
1302 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1303 (info_frame_command_core, frame_apply_command_count): Update.
1304 * rust-exp.y (rust_lex_exception_test): Update.
1305 * riscv-tdep.c (riscv_print_one_register_info): Update.
1306 * remote.c (remote_target::enable_btrace): Update.
1307 * record-btrace.c (record_btrace_enable_warn): Update.
1308 * python/py-utils.c (gdbpy_convert_exception): Update.
1309 * printcmd.c (do_one_display, print_variable_and_value): Update.
1310 * mi/mi-main.c (mi_print_exception): Update.
1311 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
1312 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1313 * linux-nat.c (linux_nat_target::attach): Update.
1314 * linux-fork.c (class scoped_switch_fork_info): Update.
1315 * infrun.c (displaced_step_prepare): Update.
1316 * infcall.c (call_function_by_hand_dummy): Update.
1317 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
1318 * gnu-v3-abi.c (print_one_vtable): Update.
1319 * frame.c (get_prev_frame_always): Update.
1320 * f-valprint.c (info_common_command_for_block): Update.
1321 * exec.c (try_open_exec_file): Update.
1322 * exceptions.c (print_exception, exception_print)
1323 (exception_fprintf, exception_print_same): Update.
1324 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
1325 * dwarf-index-cache.c (index_cache::store)
1326 (index_cache::lookup_gdb_index): Update.
1327 * darwin-nat.c (maybe_cache_shell): Update.
1328 * cp-valprint.c (cp_print_value_fields): Update.
1329 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
1330 (gcc_cplus_symbol_address): Update.
1331 * compile/compile-c-symbols.c (gcc_convert_symbol)
1332 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
1333 * common/selftest.c: Update.
1334 * common/common-exceptions.h (struct gdb_exception) <message>: Now
1336 (exception_try_scope_entry, exception_try_scope_exit): Don't
1338 (struct exception_try_scope): Remove.
1339 (TRY): Don't use exception_try_scope.
1340 (struct gdb_exception): Add constructor, operator=.
1342 (struct gdb_exception_RETURN_MASK_ALL)
1343 (struct gdb_exception_RETURN_MASK_ERROR)
1344 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
1345 (struct gdb_quit_bad_alloc): Update.
1346 * common/common-exceptions.c (exception_none): Change
1348 (struct catcher) <state, exception>: Initialize inline.
1349 <prev>: Remove member.
1350 (current_catcher): Remove.
1351 (catchers): New global.
1352 (exceptions_state_mc_init): Simplify.
1353 (catcher_pop): Remove.
1354 (exceptions_state_mc, exceptions_state_mc_catch): Update.
1355 (try_scope_depth, exception_try_scope_entry)
1356 (exception_try_scope_exit): Remove.
1357 (throw_exception_sjlj): Update.
1358 (exception_messages, exception_messages_size): Remove.
1359 (throw_it): Simplify.
1360 (gdb_exception_sliced_copy): Remove.
1361 (throw_exception_cxx): Update.
1362 * cli/cli-script.c (script_from_file): Update.
1363 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
1365 * ada-valprint.c (ada_val_print): Update.
1366 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
1367 (create_excep_cond_exprs): Update.
1369 2019-04-08 Tom Tromey <tom@tromey.com>
1371 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
1372 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
1373 (TRY, CATCH, END_CATCH): Remove some definitions.
1374 * common/common-exceptions.c: Don't use GDB_XCPT.
1375 (catcher_list_size): Remove.
1376 (throw_exception, throw_it): Simplify.
1378 2019-04-05 Tom Tromey <tom@tromey.com>
1380 Revert the header-sorting patch.
1381 * ft32-tdep.c: Revert.
1382 * frv-tdep.c: Revert.
1383 * frv-linux-tdep.c: Revert.
1385 * frame-unwind.c: Revert.
1386 * frame-base.c: Revert.
1387 * fork-child.c: Revert.
1388 * findvar.c: Revert.
1389 * findcmd.c: Revert.
1390 * filesystem.c: Revert.
1391 * filename-seen-cache.h: Revert.
1392 * filename-seen-cache.c: Revert.
1393 * fbsd-tdep.c: Revert.
1394 * fbsd-nat.h: Revert.
1395 * fbsd-nat.c: Revert.
1396 * f-valprint.c: Revert.
1397 * f-typeprint.c: Revert.
1399 * extension.h: Revert.
1400 * extension.c: Revert.
1401 * extension-priv.h: Revert.
1402 * expprint.c: Revert.
1405 * exceptions.c: Revert.
1406 * event-top.c: Revert.
1407 * event-loop.c: Revert.
1409 * elfread.c: Revert.
1410 * dwarf2read.h: Revert.
1411 * dwarf2read.c: Revert.
1412 * dwarf2loc.c: Revert.
1413 * dwarf2expr.h: Revert.
1414 * dwarf2expr.c: Revert.
1415 * dwarf2-frame.c: Revert.
1416 * dwarf2-frame-tailcall.c: Revert.
1417 * dwarf-index-write.h: Revert.
1418 * dwarf-index-write.c: Revert.
1419 * dwarf-index-common.c: Revert.
1420 * dwarf-index-cache.h: Revert.
1421 * dwarf-index-cache.c: Revert.
1422 * dummy-frame.c: Revert.
1423 * dtrace-probe.c: Revert.
1426 * disasm-selftests.c: Revert.
1427 * dictionary.c: Revert.
1428 * dicos-tdep.c: Revert.
1429 * demangle.c: Revert.
1432 * darwin-nat.h: Revert.
1433 * darwin-nat.c: Revert.
1434 * darwin-nat-info.c: Revert.
1435 * d-valprint.c: Revert.
1436 * d-namespace.c: Revert.
1439 * csky-tdep.c: Revert.
1440 * csky-linux-tdep.c: Revert.
1441 * cris-tdep.c: Revert.
1442 * cris-linux-tdep.c: Revert.
1443 * cp-valprint.c: Revert.
1444 * cp-support.c: Revert.
1445 * cp-namespace.c: Revert.
1447 * corelow.c: Revert.
1448 * corefile.c: Revert.
1449 * continuations.c: Revert.
1450 * completer.h: Revert.
1451 * completer.c: Revert.
1452 * complaints.c: Revert.
1453 * coffread.c: Revert.
1454 * coff-pe-read.c: Revert.
1455 * cli-out.h: Revert.
1456 * cli-out.c: Revert.
1457 * charset.c: Revert.
1458 * c-varobj.c: Revert.
1459 * c-valprint.c: Revert.
1460 * c-typeprint.c: Revert.
1462 * buildsym.c: Revert.
1463 * buildsym-legacy.c: Revert.
1464 * build-id.h: Revert.
1465 * build-id.c: Revert.
1467 * bsd-uthread.c: Revert.
1468 * breakpoint.h: Revert.
1469 * breakpoint.c: Revert.
1470 * break-catch-throw.c: Revert.
1471 * break-catch-syscall.c: Revert.
1472 * break-catch-sig.c: Revert.
1473 * blockframe.c: Revert.
1475 * bfin-tdep.c: Revert.
1476 * bfin-linux-tdep.c: Revert.
1477 * bfd-target.c: Revert.
1479 * ax-general.c: Revert.
1482 * avr-tdep.c: Revert.
1484 * auto-load.c: Revert.
1485 * arm-wince-tdep.c: Revert.
1486 * arm-tdep.c: Revert.
1487 * arm-symbian-tdep.c: Revert.
1488 * arm-pikeos-tdep.c: Revert.
1489 * arm-obsd-tdep.c: Revert.
1490 * arm-nbsd-tdep.c: Revert.
1491 * arm-nbsd-nat.c: Revert.
1492 * arm-linux-tdep.c: Revert.
1493 * arm-linux-nat.c: Revert.
1494 * arm-fbsd-tdep.c: Revert.
1495 * arm-fbsd-nat.c: Revert.
1496 * arm-bsd-tdep.c: Revert.
1497 * arch-utils.c: Revert.
1498 * arc-tdep.c: Revert.
1499 * arc-newlib-tdep.c: Revert.
1500 * annotate.h: Revert.
1501 * annotate.c: Revert.
1502 * amd64-windows-tdep.c: Revert.
1503 * amd64-windows-nat.c: Revert.
1504 * amd64-tdep.c: Revert.
1505 * amd64-sol2-tdep.c: Revert.
1506 * amd64-obsd-tdep.c: Revert.
1507 * amd64-obsd-nat.c: Revert.
1508 * amd64-nbsd-tdep.c: Revert.
1509 * amd64-nbsd-nat.c: Revert.
1510 * amd64-nat.c: Revert.
1511 * amd64-linux-tdep.c: Revert.
1512 * amd64-linux-nat.c: Revert.
1513 * amd64-fbsd-tdep.c: Revert.
1514 * amd64-fbsd-nat.c: Revert.
1515 * amd64-dicos-tdep.c: Revert.
1516 * amd64-darwin-tdep.c: Revert.
1517 * amd64-bsd-nat.c: Revert.
1518 * alpha-tdep.c: Revert.
1519 * alpha-obsd-tdep.c: Revert.
1520 * alpha-nbsd-tdep.c: Revert.
1521 * alpha-mdebug-tdep.c: Revert.
1522 * alpha-linux-tdep.c: Revert.
1523 * alpha-linux-nat.c: Revert.
1524 * alpha-bsd-tdep.c: Revert.
1525 * alpha-bsd-nat.c: Revert.
1526 * aix-thread.c: Revert.
1528 * addrmap.c: Revert.
1529 * ada-varobj.c: Revert.
1530 * ada-valprint.c: Revert.
1531 * ada-typeprint.c: Revert.
1532 * ada-tasks.c: Revert.
1533 * ada-lang.c: Revert.
1534 * aarch64-tdep.c: Revert.
1535 * aarch64-ravenscar-thread.c: Revert.
1536 * aarch64-newlib-tdep.c: Revert.
1537 * aarch64-linux-tdep.c: Revert.
1538 * aarch64-linux-nat.c: Revert.
1539 * aarch64-fbsd-tdep.c: Revert.
1540 * aarch64-fbsd-nat.c: Revert.
1541 * aarch32-linux-nat.c: Revert.
1543 2019-04-05 Tom Tromey <tom@tromey.com>
1545 * ft32-tdep.c: Sort headers.
1546 * frv-tdep.c: Sort headers.
1547 * frv-linux-tdep.c: Sort headers.
1548 * frame.c: Sort headers.
1549 * frame-unwind.c: Sort headers.
1550 * frame-base.c: Sort headers.
1551 * fork-child.c: Sort headers.
1552 * findvar.c: Sort headers.
1553 * findcmd.c: Sort headers.
1554 * filesystem.c: Sort headers.
1555 * filename-seen-cache.h: Sort headers.
1556 * filename-seen-cache.c: Sort headers.
1557 * fbsd-tdep.c: Sort headers.
1558 * fbsd-nat.h: Sort headers.
1559 * fbsd-nat.c: Sort headers.
1560 * f-valprint.c: Sort headers.
1561 * f-typeprint.c: Sort headers.
1562 * f-lang.c: Sort headers.
1563 * extension.h: Sort headers.
1564 * extension.c: Sort headers.
1565 * extension-priv.h: Sort headers.
1566 * expprint.c: Sort headers.
1567 * exec.h: Sort headers.
1568 * exec.c: Sort headers.
1569 * exceptions.c: Sort headers.
1570 * event-top.c: Sort headers.
1571 * event-loop.c: Sort headers.
1572 * eval.c: Sort headers.
1573 * elfread.c: Sort headers.
1574 * dwarf2read.h: Sort headers.
1575 * dwarf2read.c: Sort headers.
1576 * dwarf2loc.c: Sort headers.
1577 * dwarf2expr.h: Sort headers.
1578 * dwarf2expr.c: Sort headers.
1579 * dwarf2-frame.c: Sort headers.
1580 * dwarf2-frame-tailcall.c: Sort headers.
1581 * dwarf-index-write.h: Sort headers.
1582 * dwarf-index-write.c: Sort headers.
1583 * dwarf-index-common.c: Sort headers.
1584 * dwarf-index-cache.h: Sort headers.
1585 * dwarf-index-cache.c: Sort headers.
1586 * dummy-frame.c: Sort headers.
1587 * dtrace-probe.c: Sort headers.
1588 * disasm.h: Sort headers.
1589 * disasm.c: Sort headers.
1590 * disasm-selftests.c: Sort headers.
1591 * dictionary.c: Sort headers.
1592 * dicos-tdep.c: Sort headers.
1593 * demangle.c: Sort headers.
1594 * dcache.h: Sort headers.
1595 * dcache.c: Sort headers.
1596 * darwin-nat.h: Sort headers.
1597 * darwin-nat.c: Sort headers.
1598 * darwin-nat-info.c: Sort headers.
1599 * d-valprint.c: Sort headers.
1600 * d-namespace.c: Sort headers.
1601 * d-lang.c: Sort headers.
1602 * ctf.c: Sort headers.
1603 * csky-tdep.c: Sort headers.
1604 * csky-linux-tdep.c: Sort headers.
1605 * cris-tdep.c: Sort headers.
1606 * cris-linux-tdep.c: Sort headers.
1607 * cp-valprint.c: Sort headers.
1608 * cp-support.c: Sort headers.
1609 * cp-namespace.c: Sort headers.
1610 * cp-abi.c: Sort headers.
1611 * corelow.c: Sort headers.
1612 * corefile.c: Sort headers.
1613 * continuations.c: Sort headers.
1614 * completer.h: Sort headers.
1615 * completer.c: Sort headers.
1616 * complaints.c: Sort headers.
1617 * coffread.c: Sort headers.
1618 * coff-pe-read.c: Sort headers.
1619 * cli-out.h: Sort headers.
1620 * cli-out.c: Sort headers.
1621 * charset.c: Sort headers.
1622 * c-varobj.c: Sort headers.
1623 * c-valprint.c: Sort headers.
1624 * c-typeprint.c: Sort headers.
1625 * c-lang.c: Sort headers.
1626 * buildsym.c: Sort headers.
1627 * buildsym-legacy.c: Sort headers.
1628 * build-id.h: Sort headers.
1629 * build-id.c: Sort headers.
1630 * btrace.c: Sort headers.
1631 * bsd-uthread.c: Sort headers.
1632 * breakpoint.h: Sort headers.
1633 * breakpoint.c: Sort headers.
1634 * break-catch-throw.c: Sort headers.
1635 * break-catch-syscall.c: Sort headers.
1636 * break-catch-sig.c: Sort headers.
1637 * blockframe.c: Sort headers.
1638 * block.c: Sort headers.
1639 * bfin-tdep.c: Sort headers.
1640 * bfin-linux-tdep.c: Sort headers.
1641 * bfd-target.c: Sort headers.
1642 * bcache.c: Sort headers.
1643 * ax-general.c: Sort headers.
1644 * ax-gdb.h: Sort headers.
1645 * ax-gdb.c: Sort headers.
1646 * avr-tdep.c: Sort headers.
1647 * auxv.c: Sort headers.
1648 * auto-load.c: Sort headers.
1649 * arm-wince-tdep.c: Sort headers.
1650 * arm-tdep.c: Sort headers.
1651 * arm-symbian-tdep.c: Sort headers.
1652 * arm-pikeos-tdep.c: Sort headers.
1653 * arm-obsd-tdep.c: Sort headers.
1654 * arm-nbsd-tdep.c: Sort headers.
1655 * arm-nbsd-nat.c: Sort headers.
1656 * arm-linux-tdep.c: Sort headers.
1657 * arm-linux-nat.c: Sort headers.
1658 * arm-fbsd-tdep.c: Sort headers.
1659 * arm-fbsd-nat.c: Sort headers.
1660 * arm-bsd-tdep.c: Sort headers.
1661 * arch-utils.c: Sort headers.
1662 * arc-tdep.c: Sort headers.
1663 * arc-newlib-tdep.c: Sort headers.
1664 * annotate.h: Sort headers.
1665 * annotate.c: Sort headers.
1666 * amd64-windows-tdep.c: Sort headers.
1667 * amd64-windows-nat.c: Sort headers.
1668 * amd64-tdep.c: Sort headers.
1669 * amd64-sol2-tdep.c: Sort headers.
1670 * amd64-obsd-tdep.c: Sort headers.
1671 * amd64-obsd-nat.c: Sort headers.
1672 * amd64-nbsd-tdep.c: Sort headers.
1673 * amd64-nbsd-nat.c: Sort headers.
1674 * amd64-nat.c: Sort headers.
1675 * amd64-linux-tdep.c: Sort headers.
1676 * amd64-linux-nat.c: Sort headers.
1677 * amd64-fbsd-tdep.c: Sort headers.
1678 * amd64-fbsd-nat.c: Sort headers.
1679 * amd64-dicos-tdep.c: Sort headers.
1680 * amd64-darwin-tdep.c: Sort headers.
1681 * amd64-bsd-nat.c: Sort headers.
1682 * alpha-tdep.c: Sort headers.
1683 * alpha-obsd-tdep.c: Sort headers.
1684 * alpha-nbsd-tdep.c: Sort headers.
1685 * alpha-mdebug-tdep.c: Sort headers.
1686 * alpha-linux-tdep.c: Sort headers.
1687 * alpha-linux-nat.c: Sort headers.
1688 * alpha-bsd-tdep.c: Sort headers.
1689 * alpha-bsd-nat.c: Sort headers.
1690 * aix-thread.c: Sort headers.
1691 * agent.c: Sort headers.
1692 * addrmap.c: Sort headers.
1693 * ada-varobj.c: Sort headers.
1694 * ada-valprint.c: Sort headers.
1695 * ada-typeprint.c: Sort headers.
1696 * ada-tasks.c: Sort headers.
1697 * ada-lang.c: Sort headers.
1698 * aarch64-tdep.c: Sort headers.
1699 * aarch64-ravenscar-thread.c: Sort headers.
1700 * aarch64-newlib-tdep.c: Sort headers.
1701 * aarch64-linux-tdep.c: Sort headers.
1702 * aarch64-linux-nat.c: Sort headers.
1703 * aarch64-fbsd-tdep.c: Sort headers.
1704 * aarch64-fbsd-nat.c: Sort headers.
1705 * aarch32-linux-nat.c: Sort headers.
1707 2019-04-04 Tom Tromey <tom@tromey.com>
1709 * varobj.c (varobj_create): Update.
1710 * rust-exp.y (struct rust_parser) <update_innermost_block,
1711 lookup_symbol>: New methods.
1712 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
1714 (rust_parser::rust_lookup_type)
1715 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
1716 * printcmd.c (display_command, do_one_display): Update.
1717 * parser-defs.h (struct parser_state) <parser_state>: Add
1718 "tracker" parameter.
1719 (block_tracker): New member.
1720 (class innermost_block_tracker) <innermost_block_tracker>: Add
1722 <reset>: Remove method.
1723 (innermost_block): Don't declare.
1724 (null_post_parser): Update.
1725 * parse.c (innermost_block): Remove global.
1726 (write_dollar_variable): Update.
1727 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
1728 Remove "tracker_types" parameter.
1729 (parse_expression): Add "tracker" parameter.
1730 (parse_expression_for_completion): Update.
1731 (null_post_parser): Add "tracker" parameter.
1732 * p-exp.y: Update rules.
1733 * m2-exp.y: Update rules.
1734 * language.h (struct language_defn) <la_post_parser>: Add
1735 "tracker" parameter.
1736 * go-exp.y: Update rules.
1737 * f-exp.y: Update rules.
1738 * expression.h (parse_expression, parse_exp_1): Add "tracker"
1740 * d-exp.y: Update rules.
1741 * c-exp.y: Update rules.
1742 * breakpoint.c (set_breakpoint_condition): Create an
1743 innermost_block_tracker.
1744 (watch_command_1): Likewise.
1745 * ada-lang.c (resolve): Add "tracker" parameter.
1746 (resolve_subexp): Likewise.
1747 * ada-exp.y (write_var_from_sym): Update.
1749 2019-04-04 Tom Tromey <tom@tromey.com>
1751 * type-stack.h: New file.
1752 * type-stack.c: New file.
1753 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
1755 (insert_into_type_stack, insert_type, push_type, push_type_int)
1756 (insert_type_address_space, pop_type, pop_type_int)
1757 (pop_typelist, pop_type_stack, append_type_stack)
1758 (push_type_stack, get_type_stack, push_typelist)
1759 (follow_type_instance_flags, follow_types): Don't declare.
1760 * parse.c (type_stack): Remove global.
1761 (parse_exp_in_context): Update.
1762 (insert_into_type_stack, insert_type, push_type, push_type_int)
1763 (insert_type_address_space, pop_type, pop_type_int)
1764 (pop_typelist, pop_type_stack, append_type_stack)
1765 (push_type_stack, get_type_stack, push_typelist)
1766 (follow_type_instance_flags, follow_types): Remove (moved to
1768 * f-exp.y (type_stack): New global.
1770 (push_kind_type, f_parse): Update.
1771 * d-exp.y (type_stack): New global.
1774 * c-exp.y (struct c_parse_state) <type_stack>: New member.
1776 * Makefile.in (COMMON_SFILES): Add type-stack.c.
1777 (HFILES_NO_SRCDIR): Add type-stack.h.
1779 2019-04-04 Tom Tromey <tom@tromey.com>
1781 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
1782 (rust_parser::convert_ast_to_expression, rust_parse)
1783 (rust_lex_test_completion, rust_lex_tests): Update.
1784 * parser-defs.h (struct expr_completion_state): New.
1785 (struct parser_state) <parser_state>: Add completion parameter.
1786 <mark_struct_expression, mark_completion_tag>: New methods.
1787 <parse_completion, m_completion_state>: New members.
1788 (prefixify_expression, null_post_parser): Update.
1789 (mark_struct_expression, mark_completion_tag): Don't declare.
1790 * parse.c (parse_completion, expout_last_struct)
1791 (expout_tag_completion_type, expout_completion_name): Remove
1793 (parser_state::mark_struct_expression)
1794 (parser_state::mark_completion_tag): Now methods.
1795 (prefixify_expression): Add last_struct parameter.
1796 (prefixify_subexp): Likewise.
1797 (parse_exp_1): Update.
1798 (parse_exp_in_context): Add cstate parameter. Update.
1799 (parse_expression_for_completion): Create an
1800 expr_completion_state.
1801 (null_post_parser): Add "completion" parameter.
1802 * p-exp.y: Update rules.
1804 * language.h (struct language_defn) <la_post_parser>: Add
1805 "completing" parameter.
1806 * go-exp.y: Update rules.
1807 (lex_one_token): Update.
1808 * expression.h (parse_completion): Don't declare.
1809 * d-exp.y: Update rules.
1810 (lex_one_token): Update rules.
1811 * c-exp.y: Update rules.
1812 (lex_one_token): Update.
1813 * ada-lang.c (resolve): Add "parse_completion" parameter.
1814 (resolve_subexp): Likewise.
1815 (ada_resolve_function): Likewise.
1817 2019-04-04 Tom Tromey <tom@tromey.com>
1819 * parser-defs.h (struct parser_state) <start_arglist,
1820 end_arglist>: New methods.
1821 <arglist_len, m_funcall_chain>: New members.
1822 (arglist_len, start_arglist, end_arglist): Don't declare.
1823 * parse.c (arglist_len, funcall_chain): Remove global.
1824 (start_arglist, end_arglist): Remove functions.
1825 (parse_exp_in_context): Update.
1826 * p-exp.y: Update rules.
1827 * m2-exp.y: Update rules.
1828 * go-exp.y: Update rules.
1829 * f-exp.y: Update rules.
1830 * d-exp.y: Update rules.
1831 * c-exp.y: Update rules.
1833 2019-04-04 Tom Tromey <tom@tromey.com>
1835 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
1836 lex_operator, push_back>: New methods.
1838 (rust_parser::lex_hex, lex_escape): Rename and update.
1839 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
1840 (rust_parser::lex_operator): Rename and update.
1841 (rust_parser::lex_number, rustyylex, rustyyerror)
1842 (rust_lex_test_init, rust_lex_test_sequence)
1843 (rust_lex_test_push_back, rust_lex_tests): Update.
1844 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
1846 <lexptr, prev_lexptr>: New members.
1847 (lexptr, prev_lexptr): Don't declare.
1848 * parse.c (lexptr, prev_lexptr): Remove globals.
1849 (parse_exp_in_context): Update.
1850 * p-exp.y (yylex, yyerror): Update.
1851 * m2-exp.y (parse_number, yylex, yyerror): Update.
1852 * go-exp.y (lex_one_token, yyerror): Update.
1853 * f-exp.y (match_string_literal, yylex, yyerror): Update.
1854 * d-exp.y (lex_one_token, yyerror): Update.
1855 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
1856 (lex_one_token, yyerror): Update.
1857 * ada-lex.l (YY_INPUT): Update.
1858 (rewind_to_char): Update.
1859 * ada-exp.y (yyerror): Update.
1861 2019-04-04 Tom Tromey <tom@tromey.com>
1863 * rust-exp.y (rustyylex, rust_lex_tests): Update.
1864 * parser-defs.h (struct parser_state) <parser_state>: Add new
1866 <comma_terminates>: New member.
1867 (comma_terminates): Don't declare global.
1868 * parse.c (comma_terminates): Remove global.
1869 (parse_exp_in_context): Update.
1870 * p-exp.y (yylex): Update.
1871 * m2-exp.y (yylex): Update.
1872 * go-exp.y (lex_one_token): Update.
1873 * f-exp.y (yylex): Update.
1874 * d-exp.y (lex_one_token): Update.
1875 * c-exp.y (lex_one_token): Update.
1876 * ada-lex.l: Update.
1878 2019-04-04 Tom Tromey <tom@tromey.com>
1880 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
1881 (rustyylex, rust_lex_test_init, rust_lex_test_one)
1882 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
1883 * parser-defs.h (paren_depth): Don't declare.
1884 * parse.c (paren_depth): Remove global.
1885 (parse_exp_in_context): Update.
1886 * p-exp.y (paren_depth): New global.
1887 (pascal_parse): Initialize it.
1888 * m2-exp.y (paren_depth): New global.
1889 (m2_parse): Initialize it.
1890 * go-exp.y (paren_depth): New global.
1891 (go_parse): Initialize it.
1892 * f-exp.y (paren_depth): New global.
1893 (f_parse): Initialize it.
1894 * d-exp.y (paren_depth): New global.
1895 (d_parse): Initialize it.
1896 * c-exp.y (paren_depth): New global.
1897 (c_parse): Initialize it.
1898 * ada-lex.l (paren_depth): New global.
1899 (lexer_init): Initialize it.
1901 2019-04-04 Tom Tromey <tom@tromey.com>
1903 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
1904 (rust_parser::convert_ast_to_type)
1905 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
1906 * parser-defs.h (struct parser_state) <parser_state>: Add
1907 parameters. Initialize new members.
1908 <expression_context_block, expression_context_pc>: New members.
1909 * parse.c (expression_context_block, expression_context_pc):
1911 (parse_exp_in_context): Update.
1912 * p-exp.y: Update all rules.
1914 * m2-exp.y: Update all rules.
1916 * go-exp.y (yylex): Update.
1917 * f-exp.y (yylex): Update.
1918 * d-exp.y: Update all rules.
1920 * c-exp.y: Update all rules.
1921 (lex_one_token, classify_name, yylex, c_parse): Update.
1922 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
1924 2019-04-04 Tom Tromey <tom@tromey.com>
1926 * gdbarch.h, gdbarch.c: Rebuild.
1927 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
1929 (struct stap_parse_info): Replace "parser_state" with
1931 * parser-defs.h (struct expr_builder): Rename from "parser_state".
1932 (parser_state): New class.
1933 * parse.c (expr_builder): Rename.
1934 (expr_builder::release): Rename.
1935 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
1936 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
1937 (write_exp_elt_longcst, write_exp_elt_floatcst)
1938 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
1939 (write_exp_string_vector, write_exp_bitstring)
1940 (write_exp_msymbol, mark_struct_expression)
1941 (write_dollar_variable)
1942 (insert_type_address_space, increase_expout_size): Replace
1943 "parser_state" with "expr_builder".
1944 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
1945 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
1946 "parser_state" with "expr_builder".
1948 2019-04-04 Tom Tromey <tom@tromey.com>
1950 * rust-exp.y: Replace "parse_language" with method call.
1952 (yylex): Replace "parse_language" with method call.
1954 (yylex): Replace "parse_language" with method call.
1955 * go-exp.y (classify_name): Replace "parse_language" with method
1957 * f-exp.y (yylex): Replace "parse_language" with method call.
1958 * d-exp.y (lex_one_token): Replace "parse_language" with method
1961 (lex_one_token, classify_name, yylex): Replace "parse_language"
1963 * ada-exp.y (find_primitive_type, type_char)
1964 (type_system_address): Replace "parse_language" with method call.
1966 2019-04-04 Tom Tromey <tom@tromey.com>
1968 * rust-exp.y: Replace "parse_gdbarch" with method call.
1969 * parse.c (write_dollar_variable, insert_type_address_space):
1970 Replace "parse_gdbarch" with method call.
1971 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
1973 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
1975 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
1976 "parse_gdbarch" with method call.
1977 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
1979 * f-exp.y (parse_type, parse_f_type, yylex): Replace
1980 "parse_gdbarch" with method call.
1981 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
1982 "parse_gdbarch" with method call.
1983 * c-exp.y (parse_type, parse_number, classify_name): Replace
1984 "parse_gdbarch" with method call.
1985 * ada-lex.l: Replace "parse_gdbarch" with method call.
1986 * ada-exp.y (parse_type, find_primitive_type, type_char)
1987 (type_system_address): Replace "parse_gdbarch" with method call.
1989 2019-04-04 Tom Tromey <tom@tromey.com>
1991 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
1992 * stap-probe.c (stap_parse_argument): Update.
1993 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
1994 initial_size parameter.
1995 * rust-exp.y (rust_lex_tests): Update.
1996 * parse.c (parser_state): Update.
1997 (parse_exp_in_context): Update.
1998 * parser-defs.h (struct parser_state) <parser_state>: Remove
1999 "initial_size" parameter.
2001 2019-04-04 Tom Tromey <tom@tromey.com>
2003 * parser-defs.h (increase_expout_size): Don't declare.
2004 * parse.c (increase_expout_size): Now static.
2006 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
2008 * gnu-nat.c (gnu_nat_target::wait): Fix
2009 target_waitstatus_to_string call.
2011 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
2013 * eval.c (evaluate_subexp_standard): Handle internal functions
2014 during Fortran function call handling.
2016 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
2018 * NEWS: Mention new internal functions.
2019 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
2020 (read_base_type): Use dwarf2_init_complex_target_type.
2021 * value.c (creal_internal_fn): New function.
2022 (cimag_internal_fn): New function.
2023 (_initialize_values): Register new internal functions.
2025 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2027 * infrun.c (stop_all_threads): If debug_infrun, always
2028 trace the wait status after wait_one, using
2029 target_waitstatus_to_string and target_pid_to_str.
2030 (handle_inferior_event): Replace various trace of
2031 wait status kind by a single trace.
2032 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
2033 wait status kind image by target_waitstatus_to_string.
2034 * target/waitstatus.c (target_waitstatus_to_string): Fix
2037 2019-04-01 Tom Tromey <tromey@adacore.com>
2040 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
2042 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
2043 Pedro Alves <palves@redhat.com>
2045 * top.c (quit_force): Call 'finalize_values'.
2046 * value.c (finalize_values): New function.
2047 * value.h (finalize_values): Declare.
2049 2019-03-30 Eli Zaretskii <eliz@gnu.org>
2051 * NEWS: Announce $_gdb_major and $_gdb_minor.
2053 * top.c (init_gdb_version_vars): New function.
2054 (gdb_init): Call init_gdb_version_vars.
2056 2019-03-29 Tom Tromey <tromey@adacore.com>
2058 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
2059 help text. Remove dead code.
2061 2019-03-29 Keith Seitz <keiths@redhat.com>
2063 From Siddhesh Poyarekar:
2064 * f-lang.h (f77_get_upperbound): Return LONGEST.
2065 (f77_get_lowerbound): Likewise.
2066 * f-typeprint.c (f_type_print_varspec_suffix): Expand
2067 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
2069 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
2070 plongest to format print it.
2071 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
2072 (f77_get_upperbound): Likewise.
2073 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
2074 LOWER_BOUND to LONGEST.
2075 (f77_create_arrayprint_offset_tbl): Likewise.
2077 2019-03-29 Keith Seitz <keiths@redhat.com>
2079 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2080 %s/pulongest for TYPE_LENGTH instead of %d in format
2082 * ada-typerint.c (ada_print_type): Likewise.
2083 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
2084 * compile/compile-c-support.c (generate_register_struct): Likewise.
2085 * gdbtypes.c (recursive_dump_type): Likewise.
2086 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
2087 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
2088 instead of %d in format strings.
2089 * riscv-tdep.c (riscv_type_alignment): Cast second argument
2090 to std::min to ULONGEST.
2091 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
2092 instead of %d in format strings.
2093 * tracepoint.c (info_scope_command): Likewise.
2094 * typeprint.c (print_offset_data::update)
2095 (print_offset_data::finish): Likewise.
2096 * xtensa-tdep.c (xtensa_store_return_value)
2097 (xtensa_push_dummy_call): Likewise.
2099 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
2101 * windows-nat.c (display_selector): Fixed format specifications
2104 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2106 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
2108 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
2110 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
2111 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
2112 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
2113 (nios2_linux_init_abi): Install it.
2115 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2117 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
2119 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2121 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
2123 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2124 Tom Tromey <tromey@adacore.com>
2126 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
2128 2019-03-26 Joel Brobecker <brobecker@adacore.com>
2130 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
2131 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
2132 method to compute the bounds of range types. Also print "[evaluated]"
2133 if the bounds' values come from a dynamic evaluation.
2135 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
2137 * cp-valprint.c (cp_print_value_fields): Don't print trailing
2138 whitespace when pretty printing is on.
2140 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2142 * ppc-linux-nat.c: Add include.
2144 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2146 * NEWS: Mention AArch64 Pointer Authentication.
2148 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2150 * arm-linux-nat.c: Add include.
2152 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
2154 * source-cache.c (source_cache::get_source_lines): Re-read
2155 fullname after calling open_source_file.
2157 2019-03-25 John Baldwin <jhb@FreeBSD.org>
2159 * NEWS: Mention TLS support for FreeBSD.
2161 2019-03-25 Tom Tromey <tromey@adacore.com>
2163 * minsyms.c (BUNCH_SIZE): Update comment.
2164 (~minimal_symbol_reader): Remove old comment.
2165 (compact_minimal_symbols): Update comment.
2166 (minimal_symbol_reader::install): Remove old comment. Update
2169 2019-03-25 Alan Hayward <alan.hayward@arm.com>
2171 * s390-linux-nat.c: Add include.
2173 2019-03-25 Alan Hayward <alan.hayward@arm.com>
2175 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2176 Call linux_get_hwcap.
2177 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
2179 (aarch64_linux_get_hwcap): Remove function.
2180 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
2182 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
2184 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2185 * linux-tdep.c (linux_get_hwcap): Add function.
2186 (linux_get_hwcap2): Likewise.
2187 * linux-tdep.h (linux_get_hwcap): Add declaration.
2188 (linux_get_hwcap2): Likewise.
2189 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
2190 (ppc_linux_get_hwcap2): Likewise.
2191 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
2193 (ppc_linux_nat_target::insert_watchpoint): Likewise.
2194 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
2195 (ppc_linux_nat_target::read_description): Likewise.
2196 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
2197 * s390-linux-nat.c: Likewise.
2198 * s390-linux-tdep.c (s390_core_read_description): Likewise.
2200 2019-03-24 Tom Tromey <tom@tromey.com>
2202 * ada-lang.c (standard_lookup): Simplify initialization.
2203 (ada_lookup_symbol_nonlocal): Simplify return.
2204 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
2205 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
2206 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
2207 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
2209 * solib.c (solib_global_lookup): Simplify.
2210 * symtab.c (null_block_symbol): Remove.
2211 (symbol_cache_lookup): Simplify returns.
2212 (lookup_language_this): Simplify returns.
2213 (lookup_symbol_aux): Simplify return.
2214 (lookup_local_symbol): Simplify returns.
2215 (lookup_global_symbol_from_objfile): Simplify return.
2216 (lookup_symbol_in_objfile_symtabs)
2217 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
2218 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
2219 (lookup_static_symbol, lookup_global_symbol): Simplify return.
2220 * cp-namespace.c (cp_lookup_bare_symbol)
2221 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
2222 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
2223 (cp_lookup_nested_symbol): Don't use null_block_symbol.
2224 (cp_lookup_symbol_via_imports): Simplify initialization.
2225 (find_symbol_in_baseclass): Likewise.
2226 * symtab.h (null_block_symbol): Remove.
2227 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
2228 (d_lookup_nested_symbol, d_lookup_symbol_imports)
2229 (d_lookup_symbol_module): Likewise.
2230 (find_symbol_in_baseclass): Simplify initialization.
2232 2019-03-24 Tom Tromey <tom@tromey.com>
2234 * expression.h: Don't include symtab.h.
2235 (struct block): Forward declare.
2237 2019-03-24 Tom Tromey <tom@tromey.com>
2239 * c-exp.y (typebase): Remove casts.
2240 * gdbtypes.c (lookup_unsigned_typename, )
2241 (lookup_signed_typename): Remove cast.
2242 * eval.c (parse_to_comma_and_eval): Remove cast.
2243 * parse.c (write_dollar_variable): Remove cast.
2244 * block.h (struct block) <superblock>: Now const.
2245 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
2246 * psymtab.c (psym_map_matching_symbols): Make "block" const.
2247 (map_block): Make "block" const.
2248 * symfile.h (struct quick_symbol_functions)
2249 <map_matching_symbols>: Constify block argument to "callback".
2250 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
2252 (find_pc_sect_compunit_symtab): Make "b" const.
2253 (find_symbol_at_address): Likewise.
2254 (search_symbols): Likewise.
2255 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
2256 (dw2_debug_names_lookup_symbol): Likewise.
2257 (dw2_map_matching_symbols): Update.
2258 * p-valprint.c (pascal_val_print): Remove "block".
2259 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
2260 (aux_add_nonlocal_symbols): Make "block" const.
2261 (resolve_subexp): Remove cast.
2262 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
2264 (iterate_over_file_blocks): Likewise.
2265 * f-exp.y (%union) <bval>: Remove.
2266 * coffread.c (patch_opaque_types): Make "b" const.
2267 * spu-tdep.c (spu_catch_start): Make "block" const.
2268 * c-valprint.c (print_unpacked_pointer): Remove "block".
2269 * symmisc.c (dump_symtab_1): Make "b" const.
2270 (block_depth): Make "block" const.
2271 * d-exp.y (%union) <bval>: Remove.
2272 * cp-support.h (cp_lookup_rtti_type): Update.
2273 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
2274 * psymtab.c (psym_lookup_symbol): Make "block" const.
2275 (maintenance_check_psymtabs): Make "b" const.
2276 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
2277 (enumerate_locals, enumerate_args): Update.
2278 * python/py-symtab.c (stpy_global_block): Make "block" const.
2279 (stpy_static_block): Likewise.
2280 * inline-frame.c (block_starting_point_at): Make "new_block"
2282 * block.c (find_block_in_blockvector): Make return type const.
2283 (blockvector_for_pc_sect): Make "b" const.
2284 (find_block_in_blockvector): Make "b" const.
2286 2019-03-23 Tom Tromey <tom@tromey.com>
2288 * varobj.c (varobj_create): Update.
2289 * symfile.c (clear_symtab_users): Don't reset innermost_block.
2290 * printcmd.c (display_command, do_one_display): Don't reset
2292 * parser-defs.h (enum innermost_block_tracker_type): Move to
2294 (innermost_block): Update comment.
2295 * parse.c (parse_exp_1): Add tracker_types parameter.
2296 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
2297 tracker_types parameter. Reset innermost_block.
2298 (parse_exp_in_context): Remove.
2299 (parse_expression_for_completion): Update.
2300 * objfiles.c (~objfile): Don't reset expression_context_block or
2302 * expression.h (enum innermost_block_tracker_type): Move from
2304 (parse_exp_1): Add tracker_types parameter.
2305 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
2306 reset innermost_block.
2308 2019-03-23 Tom Tromey <tom@tromey.com>
2310 * objfiles.h: Include bcache.h.
2312 2019-03-23 Tom Tromey <tom@tromey.com>
2314 * linespec.c (get_current_search_block): Use
2315 scoped_restore_current_language.
2316 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
2318 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2319 Jiong Wang <jiong.wang@arm.com>
2321 * aarch64-linux-tdep.c
2322 (aarch64_linux_iterate_over_regset_sections): Check for pauth
2324 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
2326 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2327 Jiong Wang <jiong.wang@arm.com>
2329 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
2331 (aarch64_analyze_prologue_test): Add PACIASP test.
2332 (aarch64_prologue_prev_register): Unmask PC value.
2334 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2335 Jiong Wang <jiong.wang@arm.com>
2337 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
2338 (aarch64_dwarf2_prev_register): Unmask PC value.
2339 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
2340 (aarch64_execute_dwarf_cfa_vendor_op): Check for
2341 DW_CFA_AARCH64_negate_ra_state.
2342 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
2344 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2345 Jiong Wang <jiong.wang@arm.com>
2347 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
2349 (aarch64_pseudo_register_name): Likewise.
2350 (aarch64_pseudo_register_type): Likewise.
2351 (aarch64_pseudo_register_reggroup_p): Likewise.
2352 (aarch64_gdbarch_init): Add pauth registers.
2353 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
2354 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
2355 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
2356 (struct gdbarch_tdep): Add regnum for ra_state.
2358 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2359 Jiong Wang <jiong.wang@arm.com>
2361 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
2363 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2364 Jiong Wang <jiong.wang@arm.com>
2366 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
2368 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
2369 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
2370 (aarch64_gdbarch_init): Add puth registers.
2371 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
2372 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
2373 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
2375 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2376 Jiong Wang <jiong.wang@arm.com>
2378 * aarch64-linux-nat.c
2379 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
2380 * aarch64-linux-tdep.c
2381 (aarch64_linux_core_read_description): Likewise.
2382 (aarch64_linux_get_hwcap): New function.
2383 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
2384 (aarch64_linux_get_hwcap): New declaration.
2386 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2387 Jiong Wang <jiong.wang@arm.com>
2389 * aarch64-linux-nat.c
2390 (aarch64_linux_nat_target::read_description): Add pauth param.
2391 * aarch64-linux-tdep.c
2392 (aarch64_linux_core_read_description): Likewise.
2393 * aarch64-tdep.c (struct target_desc): Add in pauth.
2394 (aarch64_read_description): Add pauth param.
2395 (aarch64_gdbarch_init): Likewise.
2396 * aarch64-tdep.h (aarch64_read_description): Likewise.
2397 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2398 * arch/aarch64.h (aarch64_create_target_description): Likewise.
2399 * features/Makefile: Add new files.
2400 * features/aarch64-pauth.c: New file.
2401 * features/aarch64-pauth.xml: New file.
2403 2019-03-20 Tom Tromey <tromey@adacore.com>
2405 * infrun.c (handle_inferior_event): Rename from
2406 handle_inferior_event_1. Create a scoped_value_mark.
2407 (handle_inferior_event): Remove.
2409 2019-03-19 Tom Tromey <tromey@adacore.com>
2411 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
2412 * infrun.h (print_stop_event): Add "displays" parameter.
2413 * infrun.c (print_stop_event): Add "displays" parameter.
2415 2019-03-19 Pedro Alves <palves@redhat.com>
2417 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
2418 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
2419 to -1. Fix TABs vs spaces.
2420 (tui_ui_out::tui_ui_out): Don't initialize fields here.
2421 * tui/tui-out.h (tui_ui_out) Add intro comments.
2422 <m_line, m_start_of_line>: In-class initialize, and add describing
2425 2019-03-18 Alan Hayward <alan.hayward@arm.com>
2427 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
2429 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
2431 2019-03-18 Pedro Alves <palves@redhat.com>
2432 Eli Zaretskii <eliz@gnu.org>
2434 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
2435 m_line and m_start_of_line.
2437 2019-03-18 Eli Zaretskii <eliz@gnu.org>
2439 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
2440 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
2441 it returns a newline. This fixes a regression in TU mode, whereby
2442 the next line is output on the same screen line as the user input.
2444 2019-03-18 Tom Tromey <tromey@adacore.com>
2446 * minsyms.c (minimal_symbol_reader::install): Remove call to
2449 2019-03-18 Pedro Alves <palves@redhat.com>
2451 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
2453 (apply_style): New, factored out from ...
2454 (apply_ansi_escape): ... this. Handle reverse video mode.
2455 (tui_set_reverse_mode): New function.
2456 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
2457 * tui/tui-winsource.c (tui_show_source_line): Use
2458 tui_set_reverse_mode instead of setting A_STANDOUT.
2459 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
2462 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
2464 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
2467 2019-03-18 Tom Tromey <tromey@adacore.com>
2469 * ada-lang.c (empty_array): Add "high" parameter.
2470 (ada_evaluate_subexp): Update.
2472 2019-03-17 Sergei Trofimovich <siarheit@google.com>
2474 * unittests/string_view-selftests.c: Define
2475 _initialize_string_view_selftests unconditionally.
2477 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
2480 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
2482 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
2485 * windows-nat.c (display_selector): Fix format specifiers.
2487 2019-03-17 Eli Zaretskii <eliz@gnu.org>
2489 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
2490 tui_refill_source_window instead of tui_refresh_win, to update the
2491 current execution line. This fixes redisplay of the current line
2492 when stepping through the code with "next" or "step".
2494 2019-03-16 Eli Zaretskii <eliz@gnu.org>
2496 * source-cache.c (source_cache::get_source_lines): Call
2497 find_source_lines to initialize s->nlines. This fixes vertical
2498 scrolling of TUI source window when the DOWN arrow is pressed.
2500 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2502 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
2503 linux-thread-db.c (_initialize_thread_db): Likewise.
2505 2019-03-16 Eli Zaretskii <eliz@gnu.org>
2507 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
2508 wclrtoeol in tui_show_source_line". This reverts changes made in
2509 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
2511 2019-03-15 Tom Tromey <tom@tromey.com>
2513 * symtab.h (struct minimal_symbol): Derive from
2514 general_symbol_info.
2515 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
2516 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2517 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2518 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2519 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
2520 (MSYMBOL_SEARCH_NAME): Update.
2521 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
2522 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
2523 * minsyms.c (minimal_symbol_reader::record_full): Update.
2525 2019-03-15 Tom Tromey <tom@tromey.com>
2527 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
2529 2019-03-15 Tom Tromey <tom@tromey.com>
2531 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
2533 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
2535 * minsyms.c (lookup_minimal_symbol_by_pc_section)
2536 (build_minimal_symbol_hash_tables)
2537 (minimal_symbol_reader::install): Update.
2539 2019-03-15 Tom Tromey <tom@tromey.com>
2541 * symtab.c (create_demangled_names_hash): Update.
2542 (symbol_set_names): Update.
2543 * objfiles.h (struct objfile_per_bfd_storage)
2544 <demangled_names_hash>: Now an htab_up.
2545 * objfiles.c (objfile_per_bfd_storage): Simplify.
2547 2019-03-15 Tom Tromey <tom@tromey.com>
2549 * objfiles.h (struct objfile_per_bfd_storage): Declare
2551 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
2553 (get_objfile_bfd_data): Use new. Don't initialize
2555 (free_objfile_per_bfd_storage): Remove.
2556 (objfile_bfd_data_free, objfile::~objfile): Use delete.
2558 2019-03-15 Tom Tromey <tom@tromey.com>
2560 * symfile.c (reread_symbols): Update.
2561 * objfiles.c (objfile::objfile): Update.
2562 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
2563 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
2565 (minimal_symbol_reader::install): Update.
2566 (terminate_minimal_symbol_table): Remove.
2567 * jit.c (jit_object_close_impl): Update.
2569 2019-03-15 Tom Tromey <tom@tromey.com>
2571 * minsyms.c (minimal_symbol_reader::record_full): Remove some
2574 2019-03-15 Tom Tromey <tom@tromey.com>
2576 * objfiles.h (struct objfile_per_bfd_storage)
2577 <demangled_hash_languages>: Now a bitset.
2578 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
2579 (lookup_minimal_symbol): Update.
2581 2019-03-15 Tom Tromey <tom@tromey.com>
2583 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
2584 Don't return the symbol.
2585 * coffread.c (record_minimal_symbol): Use record_full.
2587 2019-03-14 Eli Zaretskii <eliz@gnu.org>
2589 The MS-Windows port of ncurses fails to switch to a color pair if
2590 one or both of the colors are the implicit default colors. This
2591 change records the default colors when TUI is initialized, and
2592 then specifies them explicitly when a color pair uses the default
2593 colors. This allows color styling in TUI mode on MS-Windows.
2595 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
2597 (tui_initialize_io) [__MINGW32__]: Record the default terminal
2598 colors in ncurses_norm_attr.
2599 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
2600 "none", replace it with the default color recorded in
2603 2019-03-14 Tom Tromey <tromey@adacore.com>
2605 * source-cache.h (class source_cache) <get_source_lines>: Return
2607 * source-cache.c (source_cache::extract_lines): Handle case where
2608 first_pos==npos. Return std::string.
2609 (source_cache::get_source_lines): Update.
2611 2019-03-14 Tom Tromey <tromey@adacore.com>
2613 * NEWS: Add item for "style sources" commands.
2614 * source-cache.c (source_cache::get_source_lines): Check
2616 * cli/cli-style.c (source_styling): New global.
2617 (_initialize_cli_style): Add "style sources" commands.
2618 (show_style_sources): New function.
2619 * cli/cli-style.h (source_styling): Declare.
2621 2019-03-14 Pedro Alves <palves@redhat.com>
2622 Tom Tromey <tromey@adacore.com>
2624 * tui/tui-winsource.h (tui_refill_source_window): Declare.
2625 * tui/tui-winsource.c (tui_refill_source_window): New function,
2627 (tui_horizontal_source_scroll): ... here. Move some logic.
2628 * cli/cli-style.c (set_style_enabled): Notify new observable.
2629 * tui/tui-hooks.c (tui_redisplay_source): New function.
2630 (tui_attach_detach_observers): Attach or detach
2631 tui_redisplay_source.
2632 * observable.h (source_styling_changed): New observable.
2633 * observable.c: Define source_styling_changed observable.
2635 2019-03-13 Tom Tromey <tromey@adacore.com>
2637 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
2638 (i386_gnu_nat_target::store_registers): Update.
2639 * target-debug.h (target_debug_print_std_string): New macro.
2640 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2641 * windows-tdep.c (display_one_tib): Update.
2642 * tui/tui-stack.c (tui_make_status_line): Update.
2643 * top.c (print_inferior_quit_action): Update.
2644 * thread.c (thr_try_catch_cmd): Update.
2645 (add_thread_with_info): Update.
2646 (thread_target_id_str): Update.
2647 (thr_try_catch_cmd): Update.
2648 (thread_command): Update.
2649 (thread_find_command): Update.
2650 * record-btrace.c (record_btrace_target::info_record)
2651 (record_btrace_resume_thread, record_btrace_target::resume)
2652 (record_btrace_cancel_resume, record_btrace_step_thread)
2653 (record_btrace_target::wait, record_btrace_target::wait)
2654 (record_btrace_target::wait, record_btrace_target::stop): Update.
2655 * progspace.c (print_program_space): Update.
2656 * process-stratum-target.c
2657 (process_stratum_target::thread_address_space): Update.
2658 * linux-fork.c (linux_fork_mourn_inferior)
2659 (detach_checkpoint_command, info_checkpoints_command)
2660 (linux_fork_context): Update.
2661 (linux_fork_detach): Update.
2662 (class scoped_switch_fork_info): Update.
2663 (delete_checkpoint_command): Update.
2664 * infrun.c (follow_fork_inferior): Update.
2665 (follow_fork_inferior): Update.
2666 (proceed_after_vfork_done): Update.
2667 (handle_vfork_child_exec_or_exit): Update.
2668 (follow_exec): Update.
2669 (displaced_step_prepare_throw): Update.
2670 (displaced_step_restore): Update.
2671 (start_step_over): Update.
2673 (clear_proceed_status_thread): Update.
2675 (print_target_wait_results): Update.
2676 (do_target_wait): Update.
2677 (context_switch): Update.
2678 (stop_all_threads): Update.
2679 (restart_threads): Update.
2680 (finish_step_over): Update.
2681 (handle_signal_stop): Update.
2682 (switch_back_to_stepped_thread): Update.
2683 (keep_going_pass_signal): Update.
2684 (print_exited_reason): Update.
2685 (normal_stop): Update.
2686 * inferior.c (inferior_pid_to_str): Change return type.
2687 (print_selected_inferior): Update.
2688 (add_inferior): Update.
2689 (detach_inferior): Update.
2690 * dummy-frame.c (fprint_dummy_frames): Update.
2691 * dcache.c (dcache_info_1): Update.
2692 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
2693 (btrace_fetch, btrace_clear): Update.
2694 * linux-tdep.c (linux_core_pid_to_str): Change return type.
2695 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
2697 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
2698 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
2699 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
2700 * gdbarch.c, gdbarch.h: Rebuild.
2701 * gdbarch.sh (core_pid_to_str): Change return type.
2702 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
2704 (windows_nat_target::pid_to_str): Change return type.
2705 (windows_delete_thread): Update.
2706 (windows_nat_target::attach): Update.
2707 (windows_nat_target::files_info): Update.
2708 * target-delegates.c: Rebuild.
2709 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
2711 (sol_thread_target::pid_to_str): Change return type.
2712 * remote.c (class remote_target) <pid_to_str>: Change return
2714 (remote_target::pid_to_str): Change return type.
2715 (extended_remote_target::attach, remote_target::remote_stop_ns)
2716 (remote_target::remote_notif_remove_queued_reply)
2717 (remote_target::push_stop_reply, remote_target::disable_btrace):
2719 (extended_remote_target::attach): Update.
2720 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
2722 (gdbsim_target::pid_to_str): Change return type.
2723 * ravenscar-thread.c (struct ravenscar_thread_target)
2724 <pid_to_str>: Change return type.
2725 (ravenscar_thread_target::pid_to_str): Change return type.
2726 * procfs.c (class procfs_target) <pid_to_str>: Change return
2728 (procfs_target::pid_to_str): Change return type.
2729 (procfs_target::attach): Update.
2730 (procfs_target::detach): Update.
2731 (procfs_target::fetch_registers): Update.
2732 (procfs_target::store_registers): Update.
2733 (procfs_target::wait): Update.
2734 (procfs_target::files_info): Update.
2735 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
2736 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
2738 (nto_procfs_target::pid_to_str): Change return type.
2739 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
2740 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
2742 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
2744 (attach_proc_task_lwp_callback, get_detach_signal)
2745 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
2746 (linux_nat_target::resume, wait_lwp, stop_callback)
2747 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
2748 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
2749 (linux_nat_wait_1, resume_stopped_resumed_lwps)
2750 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
2751 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
2753 (inf_ptrace_target::attach): Update.
2754 (inf_ptrace_target::files_info): Update.
2755 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
2757 (go32_nat_target::pid_to_str): Change return type.
2758 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
2759 (gnu_nat_target::wait): Update.
2760 (gnu_nat_target::wait): Update.
2761 (gnu_nat_target::resume): Update.
2762 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
2763 (fbsd_nat_target::wait): Update.
2764 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
2766 (darwin_nat_target::attach): Update.
2767 * corelow.c (class core_target) <pid_to_str>: Change return type.
2768 (core_target::pid_to_str): Change return type.
2769 * target.c (normal_pid_to_str): Change return type.
2770 (default_pid_to_str): Likewise.
2771 (target_pid_to_str): Change return type.
2772 (target_translate_tls_address): Update.
2773 (target_announce_detach): Update.
2774 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
2776 (bsd_uthread_target::pid_to_str): Change return type.
2777 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
2779 (bsd_kvm_target::pid_to_str): Change return type.
2780 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
2782 (aix_thread_target::pid_to_str): Change return type.
2783 * target.h (struct target_ops) <pid_to_str>: Change return type.
2784 (target_pid_to_str, normal_pid_to_str): Likewise.
2785 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
2787 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
2789 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
2791 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
2793 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
2795 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
2798 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
2800 * NEWS: Mention that the new default MI version is 3. Mention
2801 changes to the output of commands and events that deal with
2802 multi-location breakpoints.
2803 * breakpoint.c: Include "mi/mi-out.h".
2804 (print_one_breakpoint): Change output syntax if using MI version
2806 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
2808 (mi_multi_location_breakpoint_output_fixed): New.
2809 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
2810 (mi_cmd_fix_multi_location_breakpoint_output): New.
2811 (mi_multi_location_breakpoint_output_fixed): New.
2812 * mi/mi-cmds.c (mi_cmds): Register command
2813 -fix-multi-location-breakpoint-output.
2814 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
2817 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2819 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
2820 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
2821 instantiate mi_ui_out based on interpreter name.
2822 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
2823 * mi/mi-main.c (mi_load_progress): Likewise.
2825 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2827 * NEWS: Combine separate "New targets" sections for 8.3.
2829 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2831 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
2832 (ppcfbsd_init_abi): Install gdbarch
2833 "fetch_tls_load_module_address" and "get_thread_local_address"
2836 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2838 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
2839 (riscv_fbsd_init_abi): Install gdbarch
2840 "fetch_tls_load_module_address" and "get_thread_local_address"
2843 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2845 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
2846 (i386fbsd_init_abi): Install gdbarch
2847 "fetch_tls_load_module_address" and "get_thread_local_address"
2850 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2852 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
2853 (amd64fbsd_init_abi): Install gdbarch
2854 "fetch_tls_load_module_address" and "get_thread_local_address"
2857 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2859 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
2860 (struct fbsd_pspace_data): New type.
2861 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
2862 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
2863 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
2864 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
2865 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
2867 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2869 * gdbtypes.c (lookup_struct_elt): New function.
2870 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
2871 * gdbtypes.h (struct struct_elt): New type.
2872 (lookup_struct_elt): New prototype.
2874 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2876 * gdbtypes.c (lookup_struct_elt_type): Update comment and
2877 remove disabled code block.
2879 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2881 * gdbarch.sh (get_thread_local_address): New method.
2882 * gdbarch.h, gdbarch.c: Regenerate.
2883 * target.c (target_translate_tls_address): Use
2884 gdbarch_get_thread_local_address if present instead of
2885 target::get_thread_local_address.
2887 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2889 * target.h (target::get_thread_local_address): Update comment.
2891 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2893 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
2894 objfile->separate_debug_objfile_backlink if not NULL.
2896 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2898 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
2899 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
2900 (amd64bsd_store_inferior_registers): Likewise.
2901 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
2902 Enable segment base registers.
2903 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
2904 PT_GETFSBASE and PT_GETGSBASE.
2905 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
2907 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
2908 segment base registers.
2909 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
2911 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2913 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
2914 Update calls to i386_target_description to add 'segments'
2916 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
2917 add segment base registers.
2918 * arch/i386.c (i386_create_target_description): Add 'segments'
2919 parameter to enable segment base registers.
2920 * arch/i386.h (i386_create_target_description): Likewise.
2921 * features/i386/32bit-segments.xml: New file.
2922 * features/i386/32bit-segments.c: Generate.
2923 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
2924 call to i386_target_description to add 'segments' parameter.
2925 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
2926 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
2927 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
2928 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
2929 if feature is present.
2930 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
2931 Add 'segments' parameter to call to i386_target_description.
2932 (i386_target_description): Add 'segments' parameter to enable
2933 segment base registers.
2934 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
2935 to call to i386_target_description.
2936 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
2937 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
2938 Define I386_NUM_REGS.
2939 (i386_target_description): Add 'segments' parameter to enable
2940 segment base registers.
2942 2019-03-12 Eli Zaretskii <eliz@gnu.org>
2945 * source-cache.c: #undef open and close, to avoid unresolved
2946 externals during linking.
2948 2019-03-12 Tom Tromey <tromey@adacore.com>
2950 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
2951 const. Add initializers.
2952 (_initialize_remote): Don't initialize ptid globals.
2954 2019-03-12 Pedro Alves <palves@redhat.com>
2956 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
2958 2019-03-12 Pedro Alves <palves@redhat.com>
2960 * cp-name-parser.y (main): Remove unused 'len' variable.
2962 2019-03-12 Tom Tromey <tromey@adacore.com>
2964 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
2965 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
2967 2019-03-12 Tom Tromey <tromey@adacore.com>
2969 * linux-nat.c (iterate_over_lwps): Update.
2970 (stop_callback): Remove parameter.
2971 (stop_wait_callback, detach_callback, resume_set_callback)
2972 (select_singlestep_lwp_callback, set_ignore_sigint)
2973 (status_callback, resumed_callback, resume_clear_callback)
2974 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
2976 (linux_nat_target::detach, linux_nat_target::resume)
2977 (linux_stop_and_wait_all_lwps, select_event_lwp)
2978 (linux_nat_filter_event, linux_nat_wait_1)
2979 (linux_nat_target::kill, linux_nat_target::stop)
2980 (linux_nat_target::stop): Update.
2981 (linux_nat_resume_callback): Change type.
2982 (resume_stopped_resumed_lwps, count_events_callback)
2983 (select_event_lwp_callback): Likewise.
2984 (linux_stop_lwp, linux_nat_stop_lwp): Update.
2985 * arm-linux-nat.c (struct update_registers_data): Remove.
2986 (update_registers_callback): Change type.
2987 (arm_linux_insert_hw_breakpoint1): Update.
2988 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
2990 (x86_linux_dr_set_addr): Update.
2991 (x86_linux_dr_set_control): Update.
2992 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
2993 (iterate_over_lwps): Use gdb::function_view.
2994 * nat/aarch64-linux-hw-point.c (struct
2995 aarch64_dr_update_callback_param): Remove.
2996 (debug_reg_change_callback): Change type.
2997 (aarch64_notify_debug_reg_change): Update.
2998 * s390-linux-nat.c (s390_refresh_per_info): Update.
3000 2019-03-11 Tom Tromey <tromey@adacore.com>
3002 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
3003 redundant assignment to "this_cu".
3005 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3007 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
3009 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3011 * gdbtypes.c (rank_one_type_parm_set): New function extracted
3013 (rank_one_type): ... this.
3015 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3017 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
3019 (rank_one_type): ... this.
3021 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3023 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
3025 (rank_one_type): ... this.
3027 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3029 * gdbtypes.c (rank_one_type_parm_float): New function extracted
3031 (rank_one_type): ... this.
3033 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3035 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
3037 (rank_one_type): ... this.
3039 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3041 * gdbtypes.c (rank_one_type_parm_range): New function extracted
3043 (rank_one_type): ... this.
3045 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3047 * gdbtypes.c (rank_one_type_parm_char): New function extracted
3049 (rank_one_type): ... this.
3051 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3053 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
3055 (rank_one_type): ... this.
3057 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3059 * gdbtypes.c (rank_one_type_parm_int): New function extracted
3061 (rank_one_type): ... this.
3063 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3065 * gdbtypes.c (rank_one_type_parm_func): New function extracted
3067 (rank_one_type): ... this.
3069 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3071 * gdbtypes.c (rank_one_type_parm_array): New function extracted
3073 (rank_one_type): ... this.
3075 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3077 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
3079 (rank_one_type): ... this.
3081 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3083 * inferior.c (initialize_inferiors): Ensure 'help set/show print
3084 inferior-events' shows the example events.
3086 2019-03-08 Eli Zaretskii <eliz@gnu.org>
3088 Support styling on native MS-Windows console
3091 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
3092 on MS-Windows if $TERM is not defined.
3094 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
3096 * posix-hdep.c (gdb_console_fputs):
3097 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
3099 * ui-file.h (gdb_console_fputs): Add prototype.
3101 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
3102 back to fputs only if the former returns zero.
3104 2019-03-07 Tom Tromey <tom@tromey.com>
3106 * symmisc.c (print_symbol_bcache_statistics): Update.
3107 (print_objfile_statistics): Update.
3108 * symfile.c (allocate_symtab): Update.
3109 * stabsread.c: Don't include bcache.h.
3110 * psymtab.h (struct psymbol_bcache): Don't declare.
3111 (class psymtab_storage) <psymbol_cache>: Now a bcache.
3112 (psymbol_bcache_init, psymbol_bcache_free)
3113 (psymbol_bcache_get_bcache): Don't declare.
3114 * psymtab.c (struct psymbol_bcache): Remove.
3115 (psymtab_storage::psymtab_storage): Update.
3116 (psymtab_storage::~psymtab_storage): Update.
3117 (psymbol_bcache_init, psymbol_bcache_free)
3118 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
3119 (add_psymbol_to_bcache): Update.
3120 (allocate_psymtab): Update.
3121 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
3122 macro_cache>: No longer pointers.
3123 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
3124 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
3125 * macrotab.c (macro_bcache): Update.
3126 * macroexp.c: Don't include bcache.h.
3127 * gdbtypes.c (check_types_worklist): Update.
3128 (types_deeply_equal): Remove TRY/CATCH. Update.
3129 * elfread.c (elf_symtab_read): Update.
3130 * dwarf2read.c: Don't include bcache.h.
3131 * buildsym.c (buildsym_compunit::get_macro_table): Update.
3132 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
3133 (print_bcache_statistics, bcache_memory_used): Don't declare.
3134 (struct bcache): Move from bcache.c. Add constructor, destructor,
3135 methods. Rename all data members.
3136 * bcache.c (struct bcache): Move to bcache.h.
3137 (bcache::expand_hash_table): Rename from expand_hash_table.
3139 (bcache::insert): Rename from bcache_full.
3140 (bcache::compare): Rename from bcache_compare.
3141 (bcache_xmalloc): Remove.
3142 (bcache::~bcache): Rename from bcache_xfree.
3143 (bcache::print_statistics): Rename from print_bcache_statistics.
3144 (bcache::memory_used): Rename from bcache_memory_used.
3146 2019-03-07 Pedro Alves <palves@redhat.com>
3148 * infrun.c (normal_stop): Also check for
3149 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
3151 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
3153 * f-lang.c (value_from_host_double): Moved to...
3154 * value.c (value_from_host_double): ...here.
3155 * value.h (value_from_host_double): Declare.
3156 * guile/scm-math.c (vlscm_convert_typed_number): Use
3157 value_from_host_double.
3158 (vlscm_convert_number): Likewise.
3159 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
3160 * python/py-value.c (convert_value_from_python): Likewise.
3162 2019-03-06 Tom Tromey <tom@tromey.com>
3164 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
3166 2019-03-06 Tom Tromey <tom@tromey.com>
3168 * utils.h (free_current_contents): Don't declare.
3169 * utils.c (free_current_contents): Remove.
3171 2019-03-06 Tom Tromey <tom@tromey.com>
3173 * top.c (quit_force): Update.
3174 * main.c (captured_command_loop): Update.
3175 * common/new-op.c (operator new): Update.
3176 * common/common-exceptions.c (struct catcher)
3177 <save_cleanup_chain>: Remove member.
3178 (exceptions_state_mc_init): Update.
3179 (exception_try_scope_entry): Return nullptr.
3180 (exception_try_scope_exit, exception_rethrow)
3181 (throw_exception_sjlj, throw_exception_cxx): Update.
3182 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
3183 (all_cleanups, do_cleanups, discard_cleanups)
3184 (discard_final_cleanups, save_cleanups, save_final_cleanups)
3185 (restore_cleanups, restore_final_cleanups): Don't declare.
3186 (do_final_cleanups): Remove parameter.
3187 * common/cleanups.c (cleanup_chain, make_cleanup)
3188 (make_cleanup_dtor, all_cleanups, do_cleanups)
3189 (discard_my_cleanups, discard_cleanups)
3190 (discard_final_cleanups, save_my_cleanups, save_cleanups)
3191 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
3192 (null_cleanup): Remove.
3193 (do_final_cleanups): Remove parameter.
3195 2019-03-06 Tom Tromey <tom@tromey.com>
3197 * remote.c (remote_target::remote_parse_stop_reply): Use
3200 2019-03-06 Tom Tromey <tom@tromey.com>
3202 * stabsread.c (struct stabs_field_info): Rename from field_info.
3203 <list, fnlist>: Add initializers.
3204 <obstack>: New member.
3205 (read_member_functions, read_struct_fields, read_baseclasses):
3206 Allocate on obstack. Don't use cleanups.
3207 (read_one_struct_field, read_member_functions, read_struct_fields)
3208 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
3209 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
3210 (read_struct_type): Update.
3212 2019-03-06 Tom Tromey <tom@tromey.com>
3214 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
3215 * common/filestuff.h (make_cleanup_close): Don't declare.
3216 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
3219 2019-03-06 Tom Tromey <tom@tromey.com>
3221 * solib-aix.c: Use make_scope_exit.
3223 2019-03-06 Tom Tromey <tom@tromey.com>
3225 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
3226 Use make_scope_exit.
3228 2019-03-06 Tom Tromey <tom@tromey.com>
3230 * solib-svr4.c (disable_probes_interface): Remove parameter.
3231 (svr4_handle_solib_event): Use make_scope_exit.
3233 2019-03-06 Tom Tromey <tom@tromey.com>
3235 * remote.c (struct stop_reply_deleter): Remove.
3236 (stop_reply_up): Update.
3237 (struct stop_reply): Derive from notif_event. Don't typedef.
3238 <regcache>: Now a std::vector.
3239 (stop_reply_xfree): Remove.
3240 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
3241 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
3242 (remote_target::discard_pending_stop_replies): Use delete.
3243 (remote_target::remote_parse_stop_reply): Update.
3244 (remote_target::process_stop_reply): Update.
3245 * remote-notif.h (struct notif_event): Add virtual destructor.
3246 Remove "dtr" member.
3247 (struct notif_client) <alloc_event>: Return a unique_ptr.
3248 (notif_event_xfree): Don't declare.
3249 (notif_event_up): New typedef.
3250 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
3251 (notif_event_xfree, do_notif_event_xfree): Remove.
3252 (remote_notif_state_xfree): Update.
3254 2019-03-06 Tom Tromey <tom@tromey.com>
3256 * infrun.c (displaced_step_clear_cleanup): Now a
3257 forward_scope_exit type.
3258 (displaced_step_prepare_throw): Update.
3259 (displaced_step_fixup): Update.
3261 2019-03-06 Tom Tromey <tom@tromey.com>
3263 * inferior.h (class inferior): Update comment.
3264 * gdbthread.h (class thread_info): Update comment.
3266 2019-03-06 Joel Brobecker <brobecker@adacore.com>
3267 Tom Tromey <tom@tromey.com>
3269 * stabsread.h (struct stab_section_list): Remove.
3270 (coffstab_build_psymtabs): Update.
3271 * dbxread.c (symbuf_sections): Now a std::vector.
3272 (sect_idx): New global.
3273 (fill_symbuf): Update.
3274 (coffstab_build_psymtabs): Change type of stabsects parameter.
3276 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
3278 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
3279 (coff_locate_sections): Update.
3280 (coff_symfile_read): Remove cleanups. Update.
3281 (init_stringtab): Add storage parameter.
3282 (free_stringtab, free_stringtab_cleanup): Remove.
3283 (init_lineno): Add storage parameter.
3284 (free_linetab, free_linetab_cleanup): Remove.
3286 2019-03-06 Pedro Alves <palves@redhat.com>
3288 * linux-fork.c (fork_info::clobber_regs): Delete.
3289 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
3290 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
3292 (scoped_switch_fork_info::scoped_switch_fork_info)
3293 (checkpoint_command, linux_fork_context): Adjust
3294 fork_save_infrun_state calls.
3296 2019-03-06 Pedro Alves <palves@redhat.com>
3298 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
3299 (inf_has_multiple_threads): Return 'bool' and rewrite using
3300 inferior_info::threads().
3302 2019-03-06 Pedro Alves <palves@redhat.com>
3304 * linux-fork.c: Include <list>.
3305 (fork_list): Now a std::list instance.
3306 (fork_info): Add ctor, dtor, and in-class initialize all fields.
3307 (forks_exist_p, find_last_fork): Adjust.
3311 (free_fork): Delete, folded into fork_info::~fork_info().
3312 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
3314 (init_fork_list): Delete.
3315 (linux_fork_killall, linux_fork_mourn_inferior)
3316 (linux_fork_detach, info_checkpoints_command): Adjust.
3317 (_initialize_linux_fork): No longer call init_fork_list.
3319 2019-03-06 Pedro Alves <palves@redhat.com>
3321 * linux-fork.c (new_fork): New, split out of ...
3322 (add_fork): ... this. Return void. Move "first fork" special
3323 case from here, to ...
3324 (checkpoint_command): ... here.
3325 * linux-linux.h (add_fork): Return void.
3327 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3329 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
3331 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3332 Chris January <chris.january@arm.com>
3333 David Lecomber <david.lecomber@arm.com>
3335 * f-exp.y: New token, UNOP_INTRINSIC.
3336 (exp): New pattern using UNOP_INTRINSIC token.
3337 (f77_keywords): Add 'abs' keyword.
3338 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
3339 (value_from_host_double): New function.
3340 (evaluate_subexp_f): Support UNOP_ABS.
3342 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3344 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
3347 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3349 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
3350 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
3351 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
3353 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3355 * f-exp.y (convert_to_kind_type): Handle more type kinds.
3357 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3358 Chris January <chris.january@arm.com>
3360 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
3361 * f-exp.y: Define 'KIND' token.
3362 (exp): New pattern for KIND expressions.
3363 (ptype): Handle types with a kind extension.
3364 (direct_abs_decl): Extend to spot kind extensions.
3365 (f77_keywords): Add 'kind' to the list.
3366 (push_kind_type): New function.
3367 (convert_to_kind_type): New function.
3368 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
3369 * parse.c (operator_length_standard): Likewise.
3370 * parser-defs.h (enum type_pieces): Add tp_kind.
3371 * std-operator.def: Add UNOP_KIND.
3373 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3375 * f-exp.y (f_parse): Set yydebug.
3377 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3379 * f-lang.c (evaluate_subexp_f): New function.
3380 (exp_descriptor_f): New global.
3381 (f_language_defn): Use exp_descriptor_f instead of
3382 exp_descriptor_standard.
3384 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3386 * f-exp.y (struct token): Add comments.
3387 (dot_ops): Remove uppercase versions and the end marker.
3388 (f77_keywords): Likewise.
3389 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
3390 entries in the dot_ops array are case insensitive, and use
3391 strncasecmp to compare strings. Also some whitespace cleanup in
3392 this area. Similar for the f77_keywords array, except entries in
3393 this list might be case sensitive.
3395 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3397 * f-exp.y (struct f77_boolean_val): Add comments.
3398 (boolean_values): Remove uppercase versions, and end marker.
3399 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
3400 and use strncasecmp to achieve case insensitivity. Additionally,
3401 perform whitespace cleanup around this code.
3403 2019-03-06 Tom Tromey <tromey@adacore.com>
3405 * remote-sim.c (gdbsim_target_open): Use result of
3408 2019-03-06 Richard Bunt <richard.bunt@arm.com>
3409 Dirk Schubert <dirk.schubert@arm.com>
3410 Chris January <chris.january@arm.com>
3412 * eval.c (evaluate_subexp_standard): Call Fortran argument
3414 * f-lang.c (struct value): A value which can be passed into a
3415 Fortran function call.
3416 (fortran_argument_convert): Wrap Fortran arguments in a pointer
3418 (struct type): Value ready for a Fortran function call.
3419 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
3421 * f-lang.h (fortran_argument_convert): Declaration.
3422 (fortran_preserve_arg_pointer): Declaration.
3423 * infcall.c (value_arg_coerce): Call Fortran argument logic.
3425 2019-03-05 Tom Tromey <tromey@adacore.com>
3427 * python/py-prettyprint.c (print_string_repr): Remove #if.
3428 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
3430 2019-03-05 Tom Tromey <tromey@adacore.com>
3432 * target.c (the_dummy_target): Move later. Change type to
3434 (initialize_targets): Don't initialize the_dummy_target.
3436 2019-03-05 Tom Tromey <tromey@adacore.com>
3438 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
3439 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
3441 2019-03-05 Tom Tromey <tromey@adacore.com>
3443 * windows-nat.c (windows_nat_target::attach)
3444 (windows_nat_target::detach): Don't call gdb_flush.
3445 * valprint.c (generic_val_print, val_print, val_print_string):
3446 Don't call gdb_flush.
3447 * utils.c (defaulted_query): Don't call gdb_flush.
3448 * typeprint.c (print_type_scalar): Don't call gdb_flush.
3449 * target.c (target_announce_detach): Don't call gdb_flush.
3450 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
3451 * remote.c (extended_remote_target::attach): Don't call
3453 * procfs.c (procfs_target::detach): Don't call gdb_flush.
3454 * printcmd.c (do_examine): Don't call gdb_flush.
3455 (info_display_command): Don't call gdb_flush.
3456 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
3457 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
3458 * memattr.c (info_mem_command): Don't call gdb_flush.
3459 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
3460 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
3461 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
3462 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
3463 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
3464 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
3465 (gnu_nat_target::detach): Don't call gdb_flush.
3466 * f-valprint.c (f_val_print): Don't call gdb_flush.
3467 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
3468 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
3469 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
3471 * c-valprint.c (c_val_print): Don't call gdb_flush.
3472 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
3474 2019-03-05 Tom Tromey <tromey@adacore.com>
3476 * varobj.c (update_dynamic_varobj_children): Update.
3477 (install_default_visualizer): Use reset, not release.
3478 * value.c (set_internalvar): Update.
3479 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
3480 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
3481 ATTRIBUTE_UNUSED_RESULT.
3483 2019-03-05 Tom Tromey <tromey@adacore.com>
3485 * remote.c (class scoped_remote_fd) <release>: Add
3486 ATTRIBUTE_UNUSED_RESULT.
3488 2019-03-05 Tom Tromey <tromey@adacore.com>
3490 * macroexp.c (struct macro_buffer) <release>: Add
3491 ATTRIBUTE_UNUSED_RESULT.
3493 2019-03-05 Tom Tromey <tromey@adacore.com>
3495 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
3496 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
3497 ATTRIBUTE_UNUSED_RESULT.
3499 2019-03-05 Tom Tromey <tromey@adacore.com>
3501 * common/scoped_fd.h (class scoped_fd) <release>: Add
3502 ATTRIBUTE_UNUSED_RESULT.
3504 2019-03-05 Tom Tromey <tromey@adacore.com>
3506 * parser-defs.h (struct parser_state) <release>: Add
3507 ATTRIBUTE_UNUSED_RESULT.
3509 2019-03-05 Tom Tromey <tromey@adacore.com>
3511 * utils.h (class gdb_argv) <release>: Add
3512 ATTRIBUTE_UNUSED_RESULT.
3513 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
3515 2019-03-02 Eli Zaretskii <eliz@gnu.org>
3517 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
3518 for-loop range, to avoid compiler warnings.
3520 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
3521 avoid compiler warnings about unused variables.
3523 * NEWS: Mention end of support for native debugging on MS-Windows
3527 * common/netstuff.c:
3528 * gdbserver/gdbreplay.c
3529 * gdbserver/remote-utils.c:
3531 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
3532 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
3533 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
3534 'getaddrinfo' and 'freeaddrinfo' were not available before
3535 Windows XP, and mingw.org's MinGW headers by default define
3536 _WIN32_WINNT to 0x500.
3538 2019-03-01 Gary Benson <gbenson@redhat.com>
3540 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
3542 2019-02-28 Brian Vandenberg <phantall@gmail.com>
3543 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3546 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
3547 set_sigint_trap, clear_sigint_trap.
3549 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3551 * target.c (target_detach): Clear the regcache and the
3554 2019-02-27 Pedro Alves <palves@redhat.com>
3556 * utils.c (set_screen_size): When we cap the height/width sizes,
3557 tweak the corresponding command variable to show "unlimited":
3559 2019-02-27 Saagar Jha <saagar@saagarjha.com>
3560 Pedro Alves <palves@redhat.com>
3562 * utils.c (set_screen_size): Reduce "infinite" rows and columns
3563 before calling rl_set_screen_size.
3565 2019-02-27 Tom Tromey <tromey@adacore.com>
3567 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
3569 * python/py-value.c: Remove Python 2.4 workaround.
3570 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
3572 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
3573 Python 2.4 workaround.
3574 * python/python-internal.h: Remove Python 2.4 comment.
3575 (Py_ssize_t): Don't define.
3576 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
3577 (gdb_Py_DECREF): Remove Python 2.4 workaround.
3578 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
3579 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
3580 * python/python.c (do_start_initialization): Remove Python 2.4
3582 * python/py-prettyprint.c (class dummy_python_frame): Remove.
3583 (print_children): Remove Python 2.4 workaround.
3584 * python/py-inferior.c (buffer_procs): Remove Python 2.4
3586 (CHARBUFFERPROC_NAME): Remove.
3587 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
3588 Python 2.4 workaround.
3590 2019-02-27 Kevin Buettner <kevinb@redhat.com>
3592 * NEWS: Note minimum Python version.
3594 2019-02-27 Kevin Buettner <kevinb@redhat.com>
3596 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
3597 code from these functions. Remove corresponding ifdefs. Use
3598 Py_buffer_up instead of explicit calls to PyBuffer_Release.
3599 Remove gotos and target of gotos.
3600 (infpy_search_memory): Likewise.
3602 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3604 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
3605 (hppa_gdbarch_init): Don't register deleted functions with
3608 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3610 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
3611 (h8300_unwind_sp): Delete.
3612 (h8300_dummy_id): Delete.
3613 (h8300_gdbarch_init): Don't register deleted functions with
3616 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3618 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
3619 (ft32_unwind_pc): Delete.
3620 (ft32_unwind_sp): Delete.
3621 (ft32_gdbarch_init): Don't register deleted functions with
3624 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3626 * gdb/frv-tdep.c (frv_dummy_id): Delete.
3627 (frv_unwind_pc): Delete.
3628 (frv_unwind_sp): Delete.
3629 (frv_gdbarch_init): Don't register deleted functions with
3632 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3634 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
3635 (riscv_unwind_pc): Delete.
3636 (riscv_unwind_sp): Delete.
3637 (riscv_gdbarch_init): Don't register deleted functions with
3640 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3642 * gdb/csky-tdep.c (csky_dummy_id): Delete.
3643 (csky_unwind_pc): Delete.
3644 (csky_unwind_sp): Delete.
3645 (csky_gdbarch_init): Don't register deleted functions with
3648 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3650 * gdb/cris-tdep.c (cris_dummy_id): Delete.
3651 (cris_unwind_pc): Delete.
3652 (cris_unwind_sp): Delete.
3653 (cris_gdbarch_init): Don't register deleted functions with
3656 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3658 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
3659 (bfin_unwind_pc): Delete.
3660 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
3662 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3664 * gdb/arm-tdep.c (arm_dummy_id): Delete.
3665 (arm_unwind_pc): Delete.
3666 (arm_unwind_sp): Delete.
3667 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
3669 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3671 * gdb/arc-tdep.c (arc_dummy_id): Delete.
3672 (arc_unwind_pc): Delete.
3673 (arc_unwind_sp): Delete.
3674 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
3676 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3678 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
3679 (alpha_unwind_pc): Delete.
3680 (alpha_gdbarch_init): Don't register deleted functions with
3683 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3685 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
3686 (aarch64_unwind_pc): Delete.
3687 (aarch64_unwind_sp): Delete.
3688 (aarch64_gdbarch_init): Don't register deleted functions with
3691 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3693 * gdbtypes.c (type_align): Don't consider static members when
3694 computing structure alignment.
3696 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3698 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
3699 return 0 for other types.
3700 * arch-utils.c (default_type_align): Always return 0.
3701 * gdbarch.h: Regenerate.
3702 * gdbarch.sh (type_align): Extend comment.
3703 * gdbtypes.c (type_align): Add additional comments, always call
3704 gdbarch_type_align before applying the default rules.
3705 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
3706 generic code will then apply a suitable default.
3707 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
3708 types, return 0 for other types.
3710 2019-02-27 Joel Brobecker <brobecker@adacore.com>
3712 * NEWS: Create a new section for the next release branch.
3713 Rename the section of the current branch, now that it has
3716 2019-02-27 Joel Brobecker <brobecker@adacore.com>
3718 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
3719 * version.in: Bump version to 8.3.50.DATE-git.
3721 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
3723 * aix-thread.c (ptid_cmp): Remove unused variable.
3724 (get_signaled_thread): Likewise.
3725 (store_regs_user_thread): Likewise.
3726 (store_regs_kernel_thread): Likewise.
3727 (fetch_regs_kernel_thread): Remove shadowed variable.
3729 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
3731 * features/riscv/32bit-cpu.xml: Add register numbers.
3732 * features/riscv/32bit-fpu.c: Regenerate.
3733 * features/riscv/32bit-fpu.xml: Add register numbers.
3734 * features/riscv/64bit-cpu.xml: Add register numbers.
3735 * features/riscv/64bit-fpu.c: Regenerate.
3736 * features/riscv/64bit-fpu.xml: Add register numbers.
3738 2019-02-26 Kevin Buettner <kevinb@redhat.com>
3740 * NEWS: Mention two argument form of gdb.Value constructor.
3741 * python/py-value.c (convert_buffer_and_type_to_value): New
3743 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
3744 Add support for handling an optional second argument. Call
3745 convert_buffer_and_type_to_value as appropriate.
3746 * python/python-internal.h (Py_buffer_deleter): New struct.
3747 (Py_buffer_up): New typedef.
3749 2019-02-25 John Baldwin <jhb@FreeBSD.org>
3751 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
3752 instead of releasing ownership.
3754 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
3756 * dwarf2read.c (open_and_init_dwp_file): Call
3757 elf_numsections instead of bfd_count_sections to initialize
3758 dwp_file->num_sections.
3760 2019-02-25 Tom Tromey <tromey@adacore.com>
3762 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
3764 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
3766 * gcore.in: Add '--readnever' option when invoking GDB.
3768 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3770 * MAINTAINERS: Update my email address.
3772 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3774 * build-id.c (build_id_to_debug_bfd_1): New function.
3775 (build_id_to_debug_bfd): Look for separate debug file in
3778 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
3780 * gdbarch.sh: Update the copyright year range that is placed into
3783 2019-02-22 Keith Seitz <keiths@redhat.com>
3786 * linespec.c (create_sals_line_offset): Search for the default
3787 symtab's filename instead of its fullname.
3789 2019-02-21 Alan Hayward <alan.hayward@arm.com>
3791 * NEWS: Update style defaults.
3793 2019-02-21 Alan Hayward <alan.hayward@arm.com>
3795 * main.c (captured_main_1): Disable styling in batch mode.
3797 2019-02-20 Tom Tromey <tom@tromey.com>
3799 * symtab.c (symtab_symbol_info): Fix typos.
3801 2019-02-20 Tom Tromey <tromey@adacore.com>
3803 * findcmd.c (_initialize_mem_search): Use upper case for
3804 metasyntactic variables.
3806 2019-02-20 Alan Hayward <alan.hayward@arm.com>
3808 * aarch64-tdep.c (aarch64_add_reggroups): New function.
3809 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
3811 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
3813 * top.h (source_file_name): Change to std::string.
3814 * top.c (source_file_name): Likewise.
3815 (command_line_input): Adjust.
3816 * cli/cli-script.c (script_from_file): Adjust.
3818 2019-02-19 Tom Tromey <tromey@adacore.com>
3820 * ravenscar-thread.c
3821 (ravenscar_thread_target::update_thread_list): Don't call
3822 ada_build_task_list.
3823 * ada-lang.h (ada_build_task_list): Don't declare.
3824 * ada-tasks.c (struct ada_tasks_inferior_data)
3825 <task_list_valid_p>: Now bool.
3826 (read_known_tasks, ada_task_list_changed)
3827 (ada_tasks_invalidate_inferior_data): Update.
3828 (read_known_tasks_array): Return bool.
3829 (read_known_tasks_list): Likewise.
3830 (read_known_tasks): Return void.
3831 (ada_build_task_list): Now static.
3833 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
3835 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
3836 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
3838 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3840 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
3841 variant for ada_tasks_pspace_data_handle and
3842 ada_tasks_inferior_data_handle.
3843 (ada_tasks_pspace_data_cleanup): New function.
3844 (ada_tasks_inferior_data_cleanup): New function.
3846 2019-02-17 Tom Tromey <tom@tromey.com>
3848 * macrotab.h (macro_source_fullname): Return a std::string.
3849 * macrotab.c (macro_include, check_for_redefinition)
3850 (macro_undef, macro_lookup_definition, foreach_macro)
3851 (foreach_macro_in_scope): Update.
3852 (macro_source_fullname): Return a std::string.
3853 * macrocmd.c (show_pp_source_pos): Update.
3855 2019-02-17 Tom Tromey <tom@tromey.com>
3857 * macrocmd.c (show_pp_source_pos): Style the file names.
3859 2019-02-17 Tom Tromey <tom@tromey.com>
3862 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
3864 2019-02-17 Tom Tromey <tom@tromey.com>
3866 * ada-lang.c (user_select_syms): Use filtered printing.
3867 * utils.c (wrap_style): New global.
3868 (desired_style): Remove.
3869 (emit_style_escape): Add stream parameter.
3870 (set_output_style, reset_terminal_style, prompt_for_continue):
3872 (flush_wrap_buffer): Only flush gdb_stdout.
3873 (wrap_here): Set wrap_style.
3874 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
3875 treat escape sequences as a character. Change when wrap buffer is
3877 (fputs_styled): Do not set the output style when the default is
3879 * ui-style.h (struct ui_file_style) <is_default>: New method.
3880 * source.c (print_source_lines_base): Emit escape sequences in one
3883 2019-02-17 Joel Brobecker <brobecker@adacore.com>
3885 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
3886 integers and enumeration types.
3888 2019-02-17 Joel Brobecker <brobecker@adacore.com>
3890 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
3891 instead of lookup_symbol_in_language
3892 (do_exact_match): New function.
3893 (ada_get_symbol_name_matcher): Return do_exact_match when
3894 doing a verbatim match.
3896 2019-02-15 Tom Tromey <tromey@adacore.com>
3898 * ravenscar-thread.c (ravenscar_thread_target::resume)
3899 (ravenscar_thread_target::wait): Special case wildcard requests.
3901 2019-02-15 Tom Tromey <tromey@adacore.com>
3903 * ravenscar-thread.c (base_ptid): Remove.
3904 (struct ravenscar_thread_target) <close>: New method.
3905 <m_base_ptid>: New member.
3906 <update_inferior_ptid, active_task, task_is_currently_active,
3907 runtime_initialized>: Declare methods.
3908 <ravenscar_thread_target>: Add constructor.
3909 (ravenscar_thread_target::task_is_currently_active)
3910 (ravenscar_thread_target::update_inferior_ptid)
3911 (ravenscar_runtime_initialized): Rename. Now methods.
3912 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
3913 (ravenscar_thread_target::update_thread_list): Update.
3914 (ravenscar_thread_target::active_task): Now method.
3915 (ravenscar_thread_target::store_registers)
3916 (ravenscar_thread_target::prepare_to_store)
3917 (ravenscar_thread_target::prepare_to_store)
3918 (ravenscar_thread_target::mourn_inferior): Update.
3919 (ravenscar_inferior_created): Use "new" to create target.
3920 (ravenscar_thread_target::get_ada_task_ptid): Update.
3921 (_initialize_ravenscar): Don't initialize base_ptid.
3922 (ravenscar_ops): Remove global.
3924 2019-02-15 Tom Tromey <tromey@adacore.com>
3926 * target.h (push_target): Declare new overload.
3927 * target.c (push_target): New overload, taking an rvalue reference.
3928 * remote.c (remote_target::open_1): Use push_target overload.
3929 * corelow.c (core_target_open): Use push_target overload.
3931 2019-02-15 Tom Tromey <tromey@adacore.com>
3933 * ravenscar-thread.c (is_ravenscar_task)
3934 (ravenscar_task_is_currently_active): Return bool.
3935 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
3936 (_initialize_ravenscar): Remove "(void)".
3937 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
3940 2019-02-15 Tom Tromey <tromey@adacore.com>
3942 * ravenscar-thread.c (ravenscar_runtime_initializer)
3943 (has_ravenscar_runtime, get_running_thread_id)
3944 (ravenscar_thread_target::resume): Fix indentation.
3946 2019-02-15 Tom Tromey <tromey@adacore.com>
3948 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
3949 from ravenscar_arch_ops.
3950 (sparc_ravenscar_ops::fetch_registers)
3951 (sparc_ravenscar_ops::store_registers): Now methods.
3952 (sparc_ravenscar_prepare_to_store): Remove.
3953 (sparc_ravenscar_ops): Redefine.
3954 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
3955 methods and destructor. Remove members.
3956 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
3957 (ravenscar_thread_target::store_registers)
3958 (ravenscar_thread_target::prepare_to_store): Update.
3959 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
3961 (struct ppc_ravenscar_powerpc_ops): Derive from
3963 (ppc_ravenscar_powerpc_ops::fetch_registers)
3964 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
3965 (ppc_ravenscar_powerpc_ops): Redefine.
3966 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
3967 (ppc_ravenscar_e500_ops::fetch_registers)
3968 (ppc_ravenscar_e500_ops::store_registers): Now methods.
3969 (ppc_ravenscar_e500_ops): Redefine.
3970 * aarch64-ravenscar-thread.c
3971 (aarch64_ravenscar_generic_prepare_to_store): Remove.
3972 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
3973 (aarch64_ravenscar_fetch_registers)
3974 (aarch64_ravenscar_store_registers): Now methods.
3975 (aarch64_ravenscar_ops): Redefine.
3977 2019-02-15 Tom Tromey <tromey@adacore.com>
3979 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
3980 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3981 (ravenscar_thread_target::stopped_by_watchpoint)
3982 (ravenscar_thread_target::stopped_data_address)
3983 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
3985 2019-02-15 Tom Tromey <tromey@adacore.com>
3987 * ravenscar-thread.c: Fix some typos.
3989 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3990 Tom Tromey <tromey@adacore.com>
3992 * ada-lang.c (ada_exception_sal): Change addr_string to a
3994 (create_ada_exception_catchpoint): Update.
3996 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3997 Tom Tromey <tromey@adacore.com>
3999 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
4000 (bp_location_ops): Remove.
4001 (base_breakpoint_allocate_location): Update.
4002 (free_bp_location): Update.
4003 * ada-lang.c (class ada_catchpoint_location)
4004 <ada_catchpoint_location>: Remove ops parameter.
4005 (ada_catchpoint_location_dtor): Remove.
4006 (ada_catchpoint_location_ops): Remove.
4007 (allocate_location_exception): Update.
4008 * breakpoint.h (struct bp_location_ops): Remove.
4009 (class bp_location) <bp_location>: Remove bp_location_ops
4011 <~bp_location>: Add destructor.
4014 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
4015 Pedro Alves <palves@redhat.com>
4017 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
4020 2019-02-14 David Michael <fedora.dm0@gmail.com>
4021 Samuel Thibault <samuel.thibault@gnu.org>
4022 Thomas Schwinge <thomas@codesourcery.com>
4024 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
4025 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
4027 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
4029 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
4030 (check_empty): Use "const char *".
4032 * gnu-nat.c (gnu_nat_target::detach): Instead of
4033 'detach_inferior (pid)' call
4034 'detach_inferior (find_inferior_pid (pid))'.
4036 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
4037 'nat/fork-inferior.o'.
4038 * gnu-nat.c: #include "nat/fork-inferior.h".
4040 * gnu-nat.c (gnu_nat_target::detach): Instead of
4041 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
4042 * gnu-nat.h: #include "inf-child.h".
4043 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
4044 'i386_gnu_nat_target::fetch_registers'.
4045 (gnu_store_registers): Rename/move to
4046 'i386_gnu_nat_target::store_registers'.
4048 * config/i386/nm-i386gnu.h: Don't "#include" any files.
4049 * gnu-nat.h (mach_thread_info): New function.
4050 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
4052 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
4054 2019-02-14 Frederic Konrad <konrad@adacore.com>
4056 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
4058 2019-02-14 Joel Brobecker <brobecker@adacore.com>
4060 * windows-nat.c (windows_add_thread): Add new parameter
4061 "main_thread_p" with default value set to false. Update
4062 function documentation as well as all callers.
4063 (windows_delete_thread): Likewise.
4064 (fake_create_process): Update call to windows_add_thread.
4065 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
4066 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
4067 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
4068 call to windows_delete_thread.
4070 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
4072 * MAINTAINERS: Add Andrew Burgess as global maintainer.
4074 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4076 * symfile.c (find_separate_debug_file): Use canonical path of
4077 sysroot with child_path instead of gdb_sysroot if it is valid.
4079 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4081 * symfile.c (find_separate_debug_file): Use child_path to
4082 determine if an object file is under a sysroot.
4084 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4086 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4087 unittests/child-path-selftests.c.
4088 * common/pathstuff.c (child_path): New function.
4089 * common/pathstuff.h (child_path): New prototype.
4090 * unittests/child-path-selftests.c: New file.
4092 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4094 * symfile.c (find_separate_debug_file): Look for separate debug
4095 files in debug directories under the sysroot.
4097 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4099 * symtab.h (struct minimal_symbol data_p): New const method.
4100 (struct minimal_symbol text_p): Likewise.
4101 * symtab.c (output_source_filename): Use file name style
4103 (print_symbol_info): Likewise.
4104 (print_msymbol_info): Use address style to print addresses.
4105 Use function name style to print executable text symbols.
4106 (expand_symtab_containing_pc): Use data_p.
4107 (find_pc_sect_compunit_symtab): Likewise.
4109 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4111 * breakpoint.c (describe_other_breakpoints): Use address style
4113 (say_where): Likewise.
4115 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4117 * ada-typeprint.c (print_func_type): Print function name
4118 style to print function name.
4119 * c-typeprint.c (c_print_type_1): Likewise.
4121 2019-02-11 Alan Hayward <alan.hayward@arm.com>
4123 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
4126 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4128 * c-exp.y (direct_abs_decl): Use emplace_back to record the
4131 2019-02-10 Joel Brobecker <brobecker@adacore.com>
4133 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
4134 TYPE_CODE_REF types.
4136 2019-02-08 Jim Wilson <jimw@sifive.com>
4138 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
4139 (riscv_linux_fregset): New.
4140 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
4142 2019-02-07 Tom Tromey <tom@tromey.com>
4144 * thread.c (thread_cancel_execution_command): Update.
4145 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
4147 (struct thread_fsm_ops): Remove.
4148 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
4149 (thread_fsm_should_stop, thread_fsm_return_value)
4150 (thread_fsm_set_finished, thread_fsm_finished_p)
4151 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
4153 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
4154 * infrun.c (clear_proceed_status_thread)
4155 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
4156 (print_stop_event): Update.
4157 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
4159 (step_command_fsm_ops): Remove.
4160 (new_step_command_fsm): Remove.
4162 (step_command_fsm::should_stop): Rename from
4163 step_command_fsm_should_stop.
4164 (step_command_fsm::clean_up): Rename from
4165 step_command_fsm_clean_up.
4166 (step_command_fsm::do_async_reply_reason): Rename from
4167 step_command_fsm_async_reply_reason.
4168 (struct until_next_fsm): Inherit from thread_fsm. Add
4170 (until_next_fsm_ops): Remove.
4171 (new_until_next_fsm): Remove.
4172 (until_next_fsm::should_stop): Rename from
4173 until_next_fsm_should_stop.
4174 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
4175 (until_next_fsm::do_async_reply_reason): Rename from
4176 until_next_fsm_async_reply_reason.
4177 (struct finish_command_fsm): Inherit from thread_fsm. Add
4178 constructor. Change type of breakpoint.
4179 (finish_command_fsm_ops): Remove.
4180 (new_finish_command_fsm): Remove.
4181 (finish_command_fsm::should_stop): Rename from
4182 finish_command_fsm_should_stop.
4183 (finish_command_fsm::clean_up): Rename from
4184 finish_command_fsm_clean_up.
4185 (finish_command_fsm::return_value): Rename from
4186 finish_command_fsm_return_value.
4187 (finish_command_fsm::do_async_reply_reason): Rename from
4188 finish_command_fsm_async_reply_reason.
4189 (finish_command): Update.
4190 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
4192 (call_thread_fsm_ops): Remove.
4193 (call_thread_fsm::call_thread_fsm): Rename from
4194 new_call_thread_fsm.
4195 (call_thread_fsm::should_stop): Rename from
4196 call_thread_fsm_should_stop.
4197 (call_thread_fsm::should_notify_stop): Rename from
4198 call_thread_fsm_should_notify_stop.
4199 (run_inferior_call, call_function_by_hand_dummy): Update.
4200 * cli/cli-interp.c (should_print_stop_to_console): Update.
4201 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
4202 Add constructor. Change type of location_breakpoint,
4204 (until_break_fsm_ops): Remove.
4205 (new_until_break_fsm): Remove.
4206 (until_break_fsm::should_stop): Rename from
4207 until_break_fsm_should_stop.
4208 (until_break_fsm::clean_up): Rename from
4209 until_break_fsm_clean_up.
4210 (until_break_fsm::do_async_reply_reason): Rename from
4211 until_break_fsm_async_reply_reason.
4212 (until_break_command): Update.
4213 * thread-fsm.c: Remove.
4214 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
4216 2019-02-07 Tom Tromey <tom@tromey.com>
4218 * yy-remap.h: Add include guard.
4219 * xtensa-tdep.h: Add include guard.
4220 * xcoffread.h: Rename include guard.
4221 * varobj-iter.h: Add include guard.
4222 * tui/tui.h: Rename include guard.
4223 * tui/tui-winsource.h: Rename include guard.
4224 * tui/tui-wingeneral.h: Rename include guard.
4225 * tui/tui-windata.h: Rename include guard.
4226 * tui/tui-win.h: Rename include guard.
4227 * tui/tui-stack.h: Rename include guard.
4228 * tui/tui-source.h: Rename include guard.
4229 * tui/tui-regs.h: Rename include guard.
4230 * tui/tui-out.h: Rename include guard.
4231 * tui/tui-layout.h: Rename include guard.
4232 * tui/tui-io.h: Rename include guard.
4233 * tui/tui-hooks.h: Rename include guard.
4234 * tui/tui-file.h: Rename include guard.
4235 * tui/tui-disasm.h: Rename include guard.
4236 * tui/tui-data.h: Rename include guard.
4237 * tui/tui-command.h: Rename include guard.
4238 * tic6x-tdep.h: Add include guard.
4239 * target/waitstatus.h: Rename include guard.
4240 * target/wait.h: Rename include guard.
4241 * target/target.h: Rename include guard.
4242 * target/resume.h: Rename include guard.
4243 * target-float.h: Rename include guard.
4244 * stabsread.h: Add include guard.
4245 * rs6000-tdep.h: Add include guard.
4246 * riscv-fbsd-tdep.h: Add include guard.
4247 * regformats/regdef.h: Rename include guard.
4248 * record.h: Rename include guard.
4249 * python/python.h: Rename include guard.
4250 * python/python-internal.h: Rename include guard.
4251 * python/py-stopevent.h: Rename include guard.
4252 * python/py-ref.h: Rename include guard.
4253 * python/py-record.h: Rename include guard.
4254 * python/py-record-full.h: Rename include guard.
4255 * python/py-record-btrace.h: Rename include guard.
4256 * python/py-instruction.h: Rename include guard.
4257 * python/py-events.h: Rename include guard.
4258 * python/py-event.h: Rename include guard.
4259 * procfs.h: Add include guard.
4260 * proc-utils.h: Add include guard.
4261 * p-lang.h: Add include guard.
4262 * or1k-tdep.h: Rename include guard.
4263 * observable.h: Rename include guard.
4264 * nto-tdep.h: Rename include guard.
4265 * nat/x86-linux.h: Rename include guard.
4266 * nat/x86-linux-dregs.h: Rename include guard.
4267 * nat/x86-gcc-cpuid.h: Add include guard.
4268 * nat/x86-dregs.h: Rename include guard.
4269 * nat/x86-cpuid.h: Rename include guard.
4270 * nat/ppc-linux.h: Rename include guard.
4271 * nat/mips-linux-watch.h: Rename include guard.
4272 * nat/linux-waitpid.h: Rename include guard.
4273 * nat/linux-ptrace.h: Rename include guard.
4274 * nat/linux-procfs.h: Rename include guard.
4275 * nat/linux-osdata.h: Rename include guard.
4276 * nat/linux-nat.h: Rename include guard.
4277 * nat/linux-namespaces.h: Rename include guard.
4278 * nat/linux-btrace.h: Rename include guard.
4279 * nat/glibc_thread_db.h: Rename include guard.
4280 * nat/gdb_thread_db.h: Rename include guard.
4281 * nat/gdb_ptrace.h: Rename include guard.
4282 * nat/fork-inferior.h: Rename include guard.
4283 * nat/amd64-linux-siginfo.h: Rename include guard.
4284 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
4285 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
4286 * nat/aarch64-linux.h: Rename include guard.
4287 * nat/aarch64-linux-hw-point.h: Rename include guard.
4288 * mn10300-tdep.h: Add include guard.
4289 * mips-linux-tdep.h: Add include guard.
4290 * mi/mi-parse.h: Rename include guard.
4291 * mi/mi-out.h: Rename include guard.
4292 * mi/mi-main.h: Rename include guard.
4293 * mi/mi-interp.h: Rename include guard.
4294 * mi/mi-getopt.h: Rename include guard.
4295 * mi/mi-console.h: Rename include guard.
4296 * mi/mi-common.h: Rename include guard.
4297 * mi/mi-cmds.h: Rename include guard.
4298 * mi/mi-cmd-break.h: Rename include guard.
4299 * m2-lang.h: Add include guard.
4300 * location.h: Rename include guard.
4301 * linux-record.h: Rename include guard.
4302 * linux-nat.h: Add include guard.
4303 * linux-fork.h: Add include guard.
4304 * i386-darwin-tdep.h: Rename include guard.
4305 * hppa-linux-offsets.h: Add include guard.
4306 * guile/guile.h: Rename include guard.
4307 * guile/guile-internal.h: Rename include guard.
4308 * gnu-nat.h: Rename include guard.
4309 * gdb-stabs.h: Rename include guard.
4310 * frv-tdep.h: Add include guard.
4311 * f-lang.h: Add include guard.
4312 * event-loop.h: Add include guard.
4313 * darwin-nat.h: Rename include guard.
4314 * cp-abi.h: Rename include guard.
4315 * config/sparc/nm-sol2.h: Rename include guard.
4316 * config/nm-nto.h: Rename include guard.
4317 * config/nm-linux.h: Add include guard.
4318 * config/i386/nm-i386gnu.h: Rename include guard.
4319 * config/djgpp/nl_types.h: Rename include guard.
4320 * config/djgpp/langinfo.h: Rename include guard.
4321 * compile/gcc-cp-plugin.h: Add include guard.
4322 * compile/gcc-c-plugin.h: Add include guard.
4323 * compile/compile.h: Rename include guard.
4324 * compile/compile-object-run.h: Rename include guard.
4325 * compile/compile-object-load.h: Rename include guard.
4326 * compile/compile-internal.h: Rename include guard.
4327 * compile/compile-cplus.h: Rename include guard.
4328 * compile/compile-c.h: Rename include guard.
4329 * common/xml-utils.h: Rename include guard.
4330 * common/x86-xstate.h: Rename include guard.
4331 * common/version.h: Rename include guard.
4332 * common/vec.h: Rename include guard.
4333 * common/tdesc.h: Rename include guard.
4334 * common/selftest.h: Rename include guard.
4335 * common/scoped_restore.h: Rename include guard.
4336 * common/scoped_mmap.h: Rename include guard.
4337 * common/scoped_fd.h: Rename include guard.
4338 * common/safe-iterator.h: Rename include guard.
4339 * common/run-time-clock.h: Rename include guard.
4340 * common/refcounted-object.h: Rename include guard.
4341 * common/queue.h: Rename include guard.
4342 * common/ptid.h: Rename include guard.
4343 * common/print-utils.h: Rename include guard.
4344 * common/preprocessor.h: Rename include guard.
4345 * common/pathstuff.h: Rename include guard.
4346 * common/observable.h: Rename include guard.
4347 * common/netstuff.h: Rename include guard.
4348 * common/job-control.h: Rename include guard.
4349 * common/host-defs.h: Rename include guard.
4350 * common/gdb_wait.h: Rename include guard.
4351 * common/gdb_vecs.h: Rename include guard.
4352 * common/gdb_unlinker.h: Rename include guard.
4353 * common/gdb_unique_ptr.h: Rename include guard.
4354 * common/gdb_tilde_expand.h: Rename include guard.
4355 * common/gdb_sys_time.h: Rename include guard.
4356 * common/gdb_string_view.h: Rename include guard.
4357 * common/gdb_splay_tree.h: Rename include guard.
4358 * common/gdb_setjmp.h: Rename include guard.
4359 * common/gdb_ref_ptr.h: Rename include guard.
4360 * common/gdb_optional.h: Rename include guard.
4361 * common/gdb_locale.h: Rename include guard.
4362 * common/gdb_assert.h: Rename include guard.
4363 * common/filtered-iterator.h: Rename include guard.
4364 * common/filestuff.h: Rename include guard.
4365 * common/fileio.h: Rename include guard.
4366 * common/environ.h: Rename include guard.
4367 * common/common-utils.h: Rename include guard.
4368 * common/common-types.h: Rename include guard.
4369 * common/common-regcache.h: Rename include guard.
4370 * common/common-inferior.h: Rename include guard.
4371 * common/common-gdbthread.h: Rename include guard.
4372 * common/common-exceptions.h: Rename include guard.
4373 * common/common-defs.h: Rename include guard.
4374 * common/common-debug.h: Rename include guard.
4375 * common/cleanups.h: Rename include guard.
4376 * common/buffer.h: Rename include guard.
4377 * common/btrace-common.h: Rename include guard.
4378 * common/break-common.h: Rename include guard.
4379 * cli/cli-utils.h: Rename include guard.
4380 * cli/cli-style.h: Rename include guard.
4381 * cli/cli-setshow.h: Rename include guard.
4382 * cli/cli-script.h: Rename include guard.
4383 * cli/cli-interp.h: Rename include guard.
4384 * cli/cli-decode.h: Rename include guard.
4385 * cli/cli-cmds.h: Rename include guard.
4386 * charset-list.h: Add include guard.
4387 * buildsym-legacy.h: Rename include guard.
4388 * bfin-tdep.h: Add include guard.
4389 * ax.h: Rename include guard.
4390 * arm-linux-tdep.h: Add include guard.
4391 * arm-fbsd-tdep.h: Add include guard.
4392 * arch/xtensa.h: Rename include guard.
4393 * arch/tic6x.h: Add include guard.
4394 * arch/i386.h: Add include guard.
4395 * arch/arm.h: Rename include guard.
4396 * arch/arm-linux.h: Rename include guard.
4397 * arch/arm-get-next-pcs.h: Rename include guard.
4398 * arch/amd64.h: Add include guard.
4399 * arch/aarch64-insn.h: Rename include guard.
4400 * arch-utils.h: Rename include guard.
4401 * annotate.h: Add include guard.
4402 * amd64-darwin-tdep.h: Rename include guard.
4403 * aarch64-linux-tdep.h: Add include guard.
4404 * aarch64-fbsd-tdep.h: Add include guard.
4405 * aarch32-linux-nat.h: Add include guard.
4407 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4409 * macrotab.c (macro_define_internal): New function that
4410 factorizes macro_define_object_internal and macro_define_function
4412 (macro_define_object_internal): Use macro_define_internal.
4413 (macro_define_function): Likewise.
4415 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4417 * macrocmd.c (extract_identifier): Return
4418 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
4421 2019-02-06 John Baldwin <jhb@FreeBSD.org>
4423 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
4425 2019-02-05 Tom Tromey <tom@tromey.com>
4427 * target.c (target_stack::unpush): Move assertion earlier.
4429 2019-01-30 Tom Tromey <tom@tromey.com>
4432 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
4433 (gdbpy_parse_and_eval): Likewise.
4434 * python/python-internal.h (gdbpy_allow_threads): New class.
4436 2019-01-28 John Baldwin <jhb@FreeBSD.org>
4438 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
4439 (aarch64_fbsd_fpregmap): Move earlier.
4440 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
4441 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
4442 instead of individual calls to trad_frame_set_reg_addr.
4443 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
4445 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
4446 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
4447 instead of individual calls to trad_frame_set_reg_addr.
4449 2019-01-28 Alan Hayward <alan.hayward@arm.com>
4451 * CONTRIBUTE: Replace contribution list with wiki link.
4453 2019-01-25 Tom Tromey <tom@tromey.com>
4455 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
4457 2019-01-25 Tom Tromey <tom@tromey.com>
4459 * xtensa-linux-nat.c: Fix common/ includes.
4460 * xml-support.h: Fix common/ includes.
4461 * xml-support.c: Fix common/ includes.
4462 * x86-linux-nat.c: Fix common/ includes.
4463 * windows-nat.c: Fix common/ includes.
4464 * varobj.h: Fix common/ includes.
4465 * varobj.c: Fix common/ includes.
4466 * value.c: Fix common/ includes.
4467 * valops.c: Fix common/ includes.
4468 * utils.c: Fix common/ includes.
4469 * unittests/xml-utils-selftests.c: Fix common/ includes.
4470 * unittests/utils-selftests.c: Fix common/ includes.
4471 * unittests/unpack-selftests.c: Fix common/ includes.
4472 * unittests/tracepoint-selftests.c: Fix common/ includes.
4473 * unittests/style-selftests.c: Fix common/ includes.
4474 * unittests/string_view-selftests.c: Fix common/ includes.
4475 * unittests/scoped_restore-selftests.c: Fix common/ includes.
4476 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
4477 * unittests/scoped_fd-selftests.c: Fix common/ includes.
4478 * unittests/rsp-low-selftests.c: Fix common/ includes.
4479 * unittests/parse-connection-spec-selftests.c: Fix common/
4481 * unittests/optional-selftests.c: Fix common/ includes.
4482 * unittests/offset-type-selftests.c: Fix common/ includes.
4483 * unittests/observable-selftests.c: Fix common/ includes.
4484 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
4485 * unittests/memrange-selftests.c: Fix common/ includes.
4486 * unittests/memory-map-selftests.c: Fix common/ includes.
4487 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
4488 * unittests/function-view-selftests.c: Fix common/ includes.
4489 * unittests/environ-selftests.c: Fix common/ includes.
4490 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
4491 * unittests/common-utils-selftests.c: Fix common/ includes.
4492 * unittests/cli-utils-selftests.c: Fix common/ includes.
4493 * unittests/array-view-selftests.c: Fix common/ includes.
4494 * ui-file.c: Fix common/ includes.
4495 * tui/tui-io.c: Fix common/ includes.
4496 * tracepoint.h: Fix common/ includes.
4497 * tracepoint.c: Fix common/ includes.
4498 * tracefile-tfile.c: Fix common/ includes.
4499 * top.h: Fix common/ includes.
4500 * top.c: Fix common/ includes.
4501 * thread.c: Fix common/ includes.
4502 * target/waitstatus.h: Fix common/ includes.
4503 * target/waitstatus.c: Fix common/ includes.
4504 * target.h: Fix common/ includes.
4505 * target.c: Fix common/ includes.
4506 * target-memory.c: Fix common/ includes.
4507 * target-descriptions.c: Fix common/ includes.
4508 * symtab.h: Fix common/ includes.
4509 * symfile.c: Fix common/ includes.
4510 * stap-probe.c: Fix common/ includes.
4511 * spu-linux-nat.c: Fix common/ includes.
4512 * sparc-nat.c: Fix common/ includes.
4513 * source.c: Fix common/ includes.
4514 * solib.c: Fix common/ includes.
4515 * solib-target.c: Fix common/ includes.
4516 * ser-unix.c: Fix common/ includes.
4517 * ser-tcp.c: Fix common/ includes.
4518 * ser-pipe.c: Fix common/ includes.
4519 * ser-base.c: Fix common/ includes.
4520 * selftest-arch.c: Fix common/ includes.
4521 * s12z-tdep.c: Fix common/ includes.
4522 * rust-exp.y: Fix common/ includes.
4523 * rs6000-aix-tdep.c: Fix common/ includes.
4524 * riscv-tdep.c: Fix common/ includes.
4525 * remote.c: Fix common/ includes.
4526 * remote-notif.h: Fix common/ includes.
4527 * remote-fileio.h: Fix common/ includes.
4528 * remote-fileio.c: Fix common/ includes.
4529 * regcache.h: Fix common/ includes.
4530 * regcache.c: Fix common/ includes.
4531 * record-btrace.c: Fix common/ includes.
4532 * python/python.c: Fix common/ includes.
4533 * python/py-type.c: Fix common/ includes.
4534 * python/py-inferior.c: Fix common/ includes.
4535 * progspace.h: Fix common/ includes.
4536 * producer.c: Fix common/ includes.
4537 * procfs.c: Fix common/ includes.
4538 * proc-api.c: Fix common/ includes.
4539 * printcmd.c: Fix common/ includes.
4540 * ppc-linux-nat.c: Fix common/ includes.
4541 * parser-defs.h: Fix common/ includes.
4542 * osdata.c: Fix common/ includes.
4543 * obsd-nat.c: Fix common/ includes.
4544 * nat/x86-linux.c: Fix common/ includes.
4545 * nat/x86-linux-dregs.c: Fix common/ includes.
4546 * nat/x86-dregs.h: Fix common/ includes.
4547 * nat/x86-dregs.c: Fix common/ includes.
4548 * nat/ppc-linux.c: Fix common/ includes.
4549 * nat/mips-linux-watch.h: Fix common/ includes.
4550 * nat/mips-linux-watch.c: Fix common/ includes.
4551 * nat/linux-waitpid.c: Fix common/ includes.
4552 * nat/linux-ptrace.h: Fix common/ includes.
4553 * nat/linux-ptrace.c: Fix common/ includes.
4554 * nat/linux-procfs.c: Fix common/ includes.
4555 * nat/linux-personality.c: Fix common/ includes.
4556 * nat/linux-osdata.c: Fix common/ includes.
4557 * nat/linux-namespaces.c: Fix common/ includes.
4558 * nat/linux-btrace.h: Fix common/ includes.
4559 * nat/linux-btrace.c: Fix common/ includes.
4560 * nat/fork-inferior.c: Fix common/ includes.
4561 * nat/amd64-linux-siginfo.c: Fix common/ includes.
4562 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
4563 * nat/aarch64-linux.c: Fix common/ includes.
4564 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
4565 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
4566 * namespace.h: Fix common/ includes.
4567 * mips-linux-tdep.c: Fix common/ includes.
4568 * minsyms.c: Fix common/ includes.
4569 * mi/mi-parse.h: Fix common/ includes.
4570 * mi/mi-main.c: Fix common/ includes.
4571 * mi/mi-cmd-env.c: Fix common/ includes.
4572 * memrange.h: Fix common/ includes.
4573 * memattr.c: Fix common/ includes.
4574 * maint.h: Fix common/ includes.
4575 * maint.c: Fix common/ includes.
4576 * main.c: Fix common/ includes.
4577 * machoread.c: Fix common/ includes.
4578 * location.c: Fix common/ includes.
4579 * linux-thread-db.c: Fix common/ includes.
4580 * linux-nat.c: Fix common/ includes.
4581 * linux-fork.c: Fix common/ includes.
4582 * inline-frame.c: Fix common/ includes.
4583 * infrun.c: Fix common/ includes.
4584 * inflow.c: Fix common/ includes.
4585 * inferior.h: Fix common/ includes.
4586 * inferior.c: Fix common/ includes.
4587 * infcmd.c: Fix common/ includes.
4588 * inf-ptrace.c: Fix common/ includes.
4589 * inf-child.c: Fix common/ includes.
4590 * ia64-linux-nat.c: Fix common/ includes.
4591 * i387-tdep.c: Fix common/ includes.
4592 * i386-tdep.c: Fix common/ includes.
4593 * i386-linux-tdep.c: Fix common/ includes.
4594 * i386-linux-nat.c: Fix common/ includes.
4595 * i386-go32-tdep.c: Fix common/ includes.
4596 * i386-fbsd-tdep.c: Fix common/ includes.
4597 * i386-fbsd-nat.c: Fix common/ includes.
4598 * guile/scm-type.c: Fix common/ includes.
4599 * guile/guile.c: Fix common/ includes.
4600 * go32-nat.c: Fix common/ includes.
4601 * gnu-nat.c: Fix common/ includes.
4602 * gdbthread.h: Fix common/ includes.
4603 * gdbarch-selftests.c: Fix common/ includes.
4604 * gdb_usleep.c: Fix common/ includes.
4605 * gdb_select.h: Fix common/ includes.
4606 * gdb_bfd.c: Fix common/ includes.
4607 * gcore.c: Fix common/ includes.
4608 * fork-child.c: Fix common/ includes.
4609 * findvar.c: Fix common/ includes.
4610 * fbsd-nat.c: Fix common/ includes.
4611 * event-top.c: Fix common/ includes.
4612 * event-loop.c: Fix common/ includes.
4613 * dwarf2read.c: Fix common/ includes.
4614 * dwarf2loc.c: Fix common/ includes.
4615 * dwarf2-frame.c: Fix common/ includes.
4616 * dwarf-index-cache.c: Fix common/ includes.
4617 * dtrace-probe.c: Fix common/ includes.
4618 * disasm-selftests.c: Fix common/ includes.
4619 * defs.h: Fix common/ includes.
4620 * csky-tdep.c: Fix common/ includes.
4621 * cp-valprint.c: Fix common/ includes.
4622 * cp-support.h: Fix common/ includes.
4623 * cp-support.c: Fix common/ includes.
4624 * corelow.c: Fix common/ includes.
4625 * completer.h: Fix common/ includes.
4626 * completer.c: Fix common/ includes.
4627 * compile/compile.c: Fix common/ includes.
4628 * compile/compile-loc2c.c: Fix common/ includes.
4629 * compile/compile-cplus-types.c: Fix common/ includes.
4630 * compile/compile-cplus-symbols.c: Fix common/ includes.
4631 * command.h: Fix common/ includes.
4632 * cli/cli-dump.c: Fix common/ includes.
4633 * cli/cli-cmds.c: Fix common/ includes.
4634 * charset.c: Fix common/ includes.
4635 * build-id.c: Fix common/ includes.
4636 * btrace.h: Fix common/ includes.
4637 * btrace.c: Fix common/ includes.
4638 * breakpoint.h: Fix common/ includes.
4639 * breakpoint.c: Fix common/ includes.
4641 (enum agent_op): Fix common/ includes.
4642 * ax-general.c (struct aop_map): Fix common/ includes.
4643 * ax-gdb.c: Fix common/ includes.
4644 * auxv.c: Fix common/ includes.
4645 * auto-load.c: Fix common/ includes.
4646 * arm-tdep.c: Fix common/ includes.
4647 * arch/riscv.c: Fix common/ includes.
4648 * arch/ppc-linux-common.c: Fix common/ includes.
4649 * arch/i386.c: Fix common/ includes.
4650 * arch/arm.c: Fix common/ includes.
4651 * arch/arm-linux.c: Fix common/ includes.
4652 * arch/arm-get-next-pcs.c: Fix common/ includes.
4653 * arch/amd64.c: Fix common/ includes.
4654 * arch/aarch64.c: Fix common/ includes.
4655 * arch/aarch64-insn.c: Fix common/ includes.
4656 * arch-utils.c: Fix common/ includes.
4657 * amd64-windows-tdep.c: Fix common/ includes.
4658 * amd64-tdep.c: Fix common/ includes.
4659 * amd64-sol2-tdep.c: Fix common/ includes.
4660 * amd64-obsd-tdep.c: Fix common/ includes.
4661 * amd64-nbsd-tdep.c: Fix common/ includes.
4662 * amd64-linux-tdep.c: Fix common/ includes.
4663 * amd64-linux-nat.c: Fix common/ includes.
4664 * amd64-fbsd-tdep.c: Fix common/ includes.
4665 * amd64-fbsd-nat.c: Fix common/ includes.
4666 * amd64-dicos-tdep.c: Fix common/ includes.
4667 * amd64-darwin-tdep.c: Fix common/ includes.
4668 * agent.c: Fix common/ includes.
4669 * ada-lang.h: Fix common/ includes.
4670 * ada-lang.c: Fix common/ includes.
4671 * aarch64-tdep.c: Fix common/ includes.
4673 2019-01-25 Tom Tromey <tom@tromey.com>
4675 * common/create-version.sh: Use common/version.h.
4677 2019-01-24 Pedro Alves <palves@redhat.com>
4679 * infrun.c (signal_stop, signal_print, signal_program)
4680 (signal_catch, signal_pass): Now arrays instead of pointers.
4681 (update_signals_program_target, do_target_resume)
4682 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
4683 * linux-nat.c (linux_nat_target::pass_signals)
4684 (linux_nat_target::create_inferior, linux_nat_target::attach):
4686 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
4687 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
4688 * procfs.c (procfs_target::pass_signals): Adjust.
4689 * record-full.c (record_full_target::resume): Adjust.
4690 * remote.c (remote_target::pass_signals)
4691 (remote_target::program_signals): Adjust.
4692 * target-debug.h (target_debug_print_signals): Now takes a
4693 gdb::array_view as parameter. Adjust.
4694 * target.h (target_ops) <pass_signals, program_signals>: Replace
4695 pointer and length parameters with gdb::array_view.
4696 (target_pass_signals, target_program_signals): Likewise.
4697 * target-delegates.c: Regenerate.
4699 2019-01-24 Pedro Alves <palves@redhat.com>
4701 * common/forward-scope-exit.h
4702 (forward_scope_exit::forward_scope_exit): Pass arguments to
4703 m_bind_function directly, instead of creating a std::bind and
4706 2019-01-24 Alan Hayward <alan.hayward@arm.com>
4708 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
4710 (pass_in_v_vfp_candidate): Likewise.
4712 2019-01-23 Tom Tromey <tom@tromey.com>
4713 Pedro Alves <palves@redhat.com>
4715 * regcache.c (class regcache_invalidator): Remove.
4716 (regcache::raw_write): Use make_scope_exit.
4718 2019-01-23 Tom Tromey <tom@tromey.com>
4720 * ui-out.h (class ui_out_emit_type): Update comment.
4722 2019-01-23 Tom Tromey <tom@tromey.com>
4724 * infrun.c (fetch_inferior_event): Update comment.
4726 2019-01-23 Tom Tromey <tom@tromey.com>
4727 Pedro Alves <palves@redhat.com>
4729 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
4731 (fetch_inferior_event): Use SCOPE_EXIT.
4734 2019-01-23 Tom Tromey <tom@tromey.com>
4735 Pedro Alves <palves@redhat.com>
4737 * infrun.c (disable_thread_events): Delete.
4738 (stop_all_threads): Use SCOPE_EXIT.
4740 2019-01-23 Tom Tromey <tom@tromey.com>
4741 Pedro Alves <palves@redhat.com>
4743 * symfile.c: Include forward-scope-exit.h.
4744 (clear_symtab_users_cleanup): Replace forward declaration with
4745 a FORWARD_SCOPE_EXIT.
4746 (syms_from_objfile_1): Use the forward_scope_exit and
4747 gdb::optional instead of cleanup_function.
4748 (reread_symbols): Use the forward_scope_exit instead of
4750 (clear_symtab_users_cleanup): Remove function.
4752 2019-01-23 Tom Tromey <tom@tromey.com>
4753 Pedro Alves <palves@redhat.com>
4755 * linux-nat.c: Include scope-exit.h.
4756 (cleanup_target_stop): Remove.
4757 (linux_nat_target::static_tracepoint_markers_by_strid): Use
4760 2019-01-23 Tom Tromey <tom@tromey.com>
4761 Pedro Alves <palves@redhat.com>
4763 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
4764 (call_function_by_hand_dummy): Use SCOPE_EXIT.
4766 2019-01-23 Tom Tromey <tom@tromey.com>
4767 Andrew Burgess <andrew.burgess@embecosm.com>
4768 Pedro Alves <palves@redhat.com>
4770 * infrun.c (fetch_inferior_event): Use scope_exit.
4771 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
4772 * top.c (execute_command): Use scope_exit.
4773 * breakpoint.c (bpstat_do_actions): Use scope_exit.
4774 * utils.c (do_bpstat_clear_actions_cleanup)
4775 (make_bpstat_clear_actions_cleanup): Remove.
4777 2019-01-23 Tom Tromey <tom@tromey.com>
4778 Pedro Alves <palves@redhat.com>
4780 * infrun.c: Include "common/scope-exit.h"
4781 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
4782 (wait_for_inferior): Use SCOPE_EXIT.
4783 (fetch_inferior_event): Use scope_exit.
4785 2019-01-23 Tom Tromey <tom@tromey.com>
4786 Pedro Alves <palves@redhat.com>
4788 * breakpoint.c (create_breakpoint): Remove cleanup.
4790 2019-01-23 Tom Tromey <tom@tromey.com>
4791 Andrew Burgess <andrew.burgess@embecosm.com>
4792 Pedro Alves <palves@redhat.com>
4794 2019-01-23 Pedro Alves <palves@redhat.com>
4796 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
4798 2019-01-23 Pedro Alves <palves@redhat.com>
4799 Andrew Burgess <andrew.burgess@embecosm.com>
4801 * gdbthread.h: Include "common/forward-scope-exit.h".
4802 (scoped_finish_thread_state): Redefine custom class in terms of
4805 2019-01-23 Pedro Alves <palves@redhat.com>
4806 Andrew Burgess <andrew.burgess@embecosm.com>
4808 * common/forward-scope-exit.h: New file.
4810 2019-01-23 Pedro Alves <palves@redhat.com>
4811 Andrew Burgess <andrew.burgess@embecosm.com>
4812 Tom Tromey <tom@tromey.com>
4814 * common/scope-exit.h: New file.
4816 2019-01-23 Pedro Alves <palves@redhat.com>
4818 * common/preprocessor.h (ESC): Rename to ...
4819 (ESC_PARENS): ... this.
4820 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
4821 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
4823 2019-01-23 Tom Tromey <tom@tromey.com>
4825 * language.h (class scoped_switch_to_sym_language_if_auto):
4826 Initialize m_lang in both cases.
4828 2019-01-23 Alan Hayward <alan.hayward@arm.com>
4830 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
4833 2019-01-22 Tom Tromey <tom@tromey.com>
4835 * corelow.c: Do not include sys/file.h.
4837 2019-01-22 Tom Tromey <tom@tromey.com>
4839 * tui/tui-wingeneral.h: Include gdb_curses.h.
4841 2019-01-22 Tom Tromey <tom@tromey.com>
4843 * source-cache.h (class source_cache) <get_source_lines,
4844 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
4846 2019-01-22 Tom Tromey <tom@tromey.com>
4848 * remote-fileio.h (struct remote_target): Declare.
4850 2019-01-22 Tom Tromey <tom@tromey.com>
4852 * python/py-arch.c: Do not include py-ref.h.
4853 * python/py-bpevent.c: Do not include py-ref.h.
4854 * python/py-cmd.c: Do not include py-ref.h.
4855 * python/py-continueevent.c: Do not include py-ref.h.
4856 * python/py-event.h: Do not include py-ref.h.
4857 * python/py-evtregistry.c: Do not include py-ref.h.
4858 * python/py-finishbreakpoint.c: Do not include py-ref.h.
4859 * python/py-frame.c: Do not include py-ref.h.
4860 * python/py-framefilter.c: Do not include py-ref.h.
4861 * python/py-function.c: Do not include py-ref.h.
4862 * python/py-infevents.c: Do not include py-ref.h.
4863 * python/py-linetable.c: Do not include py-ref.h.
4864 * python/py-objfile.c: Do not include py-ref.h.
4865 * python/py-param.c: Do not include py-ref.h.
4866 * python/py-prettyprint.c: Do not include py-ref.h.
4867 * python/py-progspace.c: Do not include py-ref.h.
4868 * python/py-symbol.c: Do not include py-ref.h.
4869 * python/py-symtab.c: Do not include py-ref.h.
4870 * python/py-type.c: Do not include py-ref.h.
4871 * python/py-unwind.c: Do not include py-ref.h.
4872 * python/py-utils.c: Do not include py-ref.h.
4873 * python/py-value.c: Do not include py-ref.h.
4874 * python/py-varobj.c: Do not include py-ref.h.
4875 * python/py-xmethods.c: Do not include py-ref.h.
4876 * python/python.c: Do not include py-ref.h.
4877 * varobj.c: Do not include py-ref.h.
4879 2019-01-22 Tom Tromey <tom@tromey.com>
4881 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
4884 2019-01-22 Tom Tromey <tom@tromey.com>
4886 * compile/compile-cplus-types.c: Remove a comment by #include.
4888 2019-01-22 Tom Tromey <tom@tromey.com>
4890 * compile/gcc-c-plugin.h: Include compile-internal.h.
4892 2019-01-22 Tom Tromey <tom@tromey.com>
4894 * stabsread.c (EXTERN): Do not define.
4895 (symnum, next_symbol_text_func, processing_gcc_compilation)
4896 (within_function, global_sym_chain, global_stabs)
4897 (previous_stab_code, this_object_header_files)
4898 (n_this_object_header_files)
4899 (n_allocated_this_object_header_files): Define.
4900 * stabsread.h (EXTERN): Never define. Use "extern".
4902 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4904 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
4907 2019-01-21 Tom Tromey <tom@tromey.com>
4909 * ui-out.c: Fix includes.
4910 * tui/tui-source.c: Fix includes.
4911 * target.c: Fix includes.
4912 * remote.c: Fix includes.
4913 * regcache.c: Fix includes.
4914 * python/py-block.c: Fix includes.
4915 * printcmd.c: Fix includes.
4916 * or1k-tdep.c: Fix includes.
4917 * mi/mi-main.c: Fix includes.
4918 * m32r-tdep.c: Fix includes.
4919 * csky-tdep.c: Fix includes.
4920 * compile/compile-cplus-types.c: Fix includes.
4921 * cli/cli-interp.c: Fix includes.
4923 2019-01-21 Alan Hayward <alan.hayward@arm.com>
4925 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
4928 2019-01-16 Tom Tromey <tom@tromey.com>
4930 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
4932 (struct objfile) <msymbols_range>: Move from top level.
4933 <msymbols>: New method.
4934 (class objfile_msymbols): Remove.
4935 * symtab.c (default_collect_symbol_completion_matches_break_on):
4937 * symmisc.c (dump_msymbols): Update.
4938 * stabsread.c (scan_file_globals): Update.
4939 * objc-lang.c (info_selectors_command, info_classes_command)
4940 (find_methods): Update.
4941 * minsyms.c (find_solib_trampoline_target): Update.
4942 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
4943 * coffread.c (coff_symfile_read): Update.
4944 * ada-lang.c (ada_lookup_simple_minsym)
4945 (ada_collect_symbol_completion_matches): Update.
4947 2019-01-16 Tom Tromey <tom@tromey.com>
4949 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
4950 type. Remove no-argument constructor.
4951 <iterator::operator++>: Simplify.
4953 <end>: Use minimal_symbol_count.
4955 2019-01-16 Tom Tromey <tom@tromey.com>
4957 * objfiles.h (struct objfile) <psymtabs>: New method.
4958 (class objfile_psymtabs): Remove.
4959 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
4961 <range>: New method.
4962 (require_partial_symbols): Change return type.
4963 * psymtab.c (require_partial_symbols)
4964 (psym_expand_symtabs_matching): Update.
4965 * mdebugread.c (parse_partial_symbols): Update.
4966 * dbxread.c (dbx_end_psymtab): Update.
4968 2019-01-15 Tom Tromey <tom@tromey.com>
4970 * symtab.c (lookup_objfile_from_block)
4971 (lookup_symbol_in_objfile_symtabs)
4972 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
4973 (find_line_symtab, info_sources_command)
4974 (default_collect_symbol_completion_matches_break_on)
4975 (make_source_files_completion_list): Update.
4976 * symmisc.c (print_objfile_statistics, dump_objfile)
4977 (maintenance_print_symbols, maintenance_info_symtabs)
4978 (maintenance_check_symtabs, maintenance_info_line_tables):
4980 * source.c (select_source_symtab)
4981 (forget_cached_source_info_for_objfile): Update.
4982 * objfiles.h (class objfile_compunits): Remove.
4983 (struct objfile) <compunits_range>: New typedef.
4984 (compunits): New method.
4985 * objfiles.c (objfile_relocate1): Update.
4986 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
4987 * maint.c (count_symtabs_and_blocks): Update.
4988 * linespec.c (iterate_over_all_matching_symtabs): Update.
4989 * cp-support.c (add_symbol_overload_list_qualified): Update.
4990 * coffread.c (coff_symtab_read): Update.
4991 * ada-lang.c (add_nonlocal_symbols)
4992 (ada_collect_symbol_completion_matches)
4993 (ada_add_global_exceptions): Update.
4995 2019-01-15 Tom Tromey <tom@tromey.com>
4997 * progspace.h (program_space) <objfiles_safe_range>: New
4999 <objfiles_safe>: New method.
5000 * objfiles.h (class all_objfiles_safe): Remove.
5001 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
5002 * jit.c (jit_inferior_exit_hook): Update.
5004 2019-01-17 Tom Tromey <tom@tromey.com>
5006 * progspace.h (program_space) <objfiles_range>: New typedef.
5007 <objfiles>: New method.
5008 <objfiles_head>: Rename from objfiles.
5009 (object_files): Update.
5010 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
5011 * guile/scm-pretty-print.c
5012 (ppscm_find_pretty_printer_from_objfiles): Update.
5013 * guile/scm-objfile.c (gdbscm_objfiles): Update.
5014 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
5016 * python/py-progspace.c (pspy_get_objfiles): Update.
5017 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
5019 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
5020 (objfpy_lookup_objfile_by_build_id): Update.
5021 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
5022 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
5024 * symtab.c (iterate_over_symtabs, matching_obj_sections)
5025 (expand_symtab_containing_pc, lookup_objfile_from_block)
5026 (lookup_static_symbol, basic_lookup_transparent_type)
5027 (find_pc_sect_compunit_symtab, find_symbol_at_address)
5028 (find_line_symtab, info_sources_command)
5029 (default_collect_symbol_completion_matches_break_on)
5030 (make_source_files_completion_list, find_main_name): Update.
5031 * symmisc.c (print_symbol_bcache_statistics)
5032 (print_objfile_statistics, maintenance_print_symbols)
5033 (maintenance_print_msymbols, maintenance_print_objfiles)
5034 (maintenance_info_symtabs, maintenance_check_symtabs)
5035 (maintenance_expand_symtabs, maintenance_info_line_tables):
5037 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
5038 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
5039 (map_overlay_command, unmap_overlay_command)
5040 (simple_overlay_update, expand_symtabs_matching)
5041 (map_symbol_filenames): Update.
5042 * symfile-debug.c (set_debug_symfile): Update.
5043 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
5045 * source.c (select_source_symtab, forget_cached_source_info):
5047 * solib.c (solib_read_symbols): Update.
5048 * solib-spu.c (append_ocl_sos): Update.
5049 * psymtab.c (maintenance_print_psymbols)
5050 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5051 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
5052 * printcmd.c (info_symbol_command): Update.
5053 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
5055 * objfiles.h (class all_objfiles): Remove.
5056 * objfiles.c (have_partial_symbols, have_full_symbols)
5057 (have_minimal_symbols, qsort_cmp, update_section_map)
5058 (shared_objfile_contains_address_p)
5059 (default_iterate_over_objfiles_in_search_order): Update.
5060 * objc-lang.c (info_selectors_command, info_classes_command)
5061 (find_methods): Update.
5062 * minsyms.c (find_solib_trampoline_target): Update.
5063 * maint.c (maintenance_info_sections)
5064 (maintenance_translate_address, count_symtabs_and_blocks):
5066 * main.c (captured_main_1): Update.
5067 * linux-thread-db.c (try_thread_db_load_from_pdir)
5068 (has_libpthread): Update.
5069 * linespec.c (iterate_over_all_matching_symtabs)
5070 (search_minsyms_for_name): Update.
5071 * jit.c (jit_find_objf_with_entry_addr): Update.
5072 * hppa-tdep.c (find_unwind_entry)
5073 (hppa_lookup_stub_minimal_symbol): Update.
5074 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
5076 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
5077 (elf_gnu_ifunc_resolve_by_got): Update.
5078 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
5079 * dwarf-index-write.c (save_gdb_index_command): Update.
5080 * cp-support.c (add_symbol_overload_list_qualified): Update.
5081 * breakpoint.c (create_overlay_event_breakpoint)
5082 (create_longjmp_master_breakpoint)
5083 (create_std_terminate_master_breakpoint)
5084 (create_exception_master_breakpoint): Update.
5085 * blockframe.c (find_pc_partial_function): Update.
5086 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
5087 (ada_collect_symbol_completion_matches)
5088 (ada_add_global_exceptions): Update.
5090 2019-01-17 Tom Tromey <tom@tromey.com>
5092 * solib-target.c (lm_info_target_p): Remove typedef. Don't
5094 (solib_target_parse_libraries): Change return type.
5095 (library_list_start_segment, library_list_start_section)
5096 (library_list_end_library, library_list_start_library); Update.
5097 (solib_target_free_library_list): Remove.
5098 (solib_target_parse_libraries): Remove cleanup. Change return
5100 (solib_target_current_sos): Update.
5102 2019-01-17 Tom Tromey <tromey@bapiya>
5104 * valprint.c: Replace "the the" with "the".
5105 * symtab.c: Replace "the the" with "the".
5106 * solib.c: Replace "the the" with "the".
5107 * solib-dsbt.c: Replace "the the" with "the".
5108 * linespec.c: Replace "the the" with "the".
5109 * dwarf2loc.h: Replace "the the" with "the".
5110 * amd64-windows-tdep.c: Replace "the the" with "the".
5111 * aarch64-tdep.c: Replace "the the" with "the".
5113 2019-01-16 Keith Seitz <keiths@redhat.com>
5116 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
5117 <builder>: Rename to ..
5118 <m_builder>: ... this and make private.
5119 (dwarf2_cu::get_builder): New method. Change all users of
5120 `builder' to use this method.
5121 (dwarf2_start_symtab): Move to ...
5122 (dwarf2_cu::start_symtab): ... here. Update all callers
5123 (setup_type_unit_groups): Move to ...
5124 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
5126 (dwarf2_cu::reset_builder): New method.
5127 (process_full_compunit, process_full_type_unit): Use
5128 dwarf2_cu::reset_builder.
5129 (follow_die_offset): Record the ancestor CU if it is different
5130 from the followed DIE's CU.
5131 (follow_die_sig_1): Likewise.
5133 2019-01-15 Tom Tromey <tom@tromey.com>
5135 * remote.c (class remote_state) <buf>: Now a char_vector.
5137 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
5139 (remote_target::getpkt_or_notif_sane_1)
5140 (remote_target::getpkt_sane)
5141 (remote_target::getpkt_or_notif_sane): Likewise.
5142 (class remote_target) <putpkt>: New overload.
5143 (remote_target::read_frame): Change type of "buf_p". Remove
5145 (packet_ok): New overload.
5146 (packet_check_result): New overload.
5149 2019-01-14 Tom Tromey <tom@tromey.com>
5151 * remote-notif.c (handle_notification, remote_notif_ack)
5152 (remote_notif_parse): Make "buf" const.
5153 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
5155 (remote_notif_parse, remote_notif_ack, handle_notification):
5157 * remote.c (remote_notif_stop_parse): Make "buf" const.
5158 (remote_target::remote_parse_stop_reply): Make "buf" const.
5159 (remote_notif_stop_ack): Make "buf" const.
5161 2019-01-14 Tom Tromey <tom@tromey.com>
5163 * remote.c (remote_console_output): Make parameter const.
5165 2019-01-14 Tom Tromey <tom@tromey.com>
5167 * target-debug.h (target_debug_print_signals): Constify.
5168 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
5169 * procfs.c (procfs_target::pass_signals): Update.
5170 * linux-nat.c (linux_nat_target::pass_signals): Update.
5171 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
5172 * target-delegates.c: Rebuild.
5173 * remote.c (remote_target::program_signals): Update.
5174 (remote_target::pass_signals): Update.
5175 * target.c (target_pass_signals): Constify argument.
5176 (target_program_signals): Likewise.
5177 * target.h (struct target_ops) <pass_signals, program_signals>:
5179 (target_pass_signals, target_program_signals): Constify argument.
5181 2019-01-14 Tom Tromey <tom@tromey.com>
5184 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
5186 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5188 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
5190 * rs6000-tdep.c: Include reggroups.h.
5191 (IS_V_ALIAS_PSEUDOREG): Define.
5192 (rs6000_register_name): Return names for the "vX" aliases.
5193 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
5194 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
5195 aliases. Call default_register_reggroup_p for all other
5197 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
5199 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
5200 Handle "vX" aliases.
5201 (v_alias_pseudo_register_collect): New function.
5202 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
5203 (rs6000_gdbarch_init): Initialize "vX" aliases as
5204 pseudo-registers. Restore registration of
5205 rs6000_pseudo_register_reggroup_p with
5206 set_tdesc_pseudo_register_reggroup_p.
5208 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
5210 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
5211 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
5212 set_gdbarch_num_pseudo_regs.
5214 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5216 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
5217 Remove arg prefixname, add do_set and do_show.
5218 Add member functions set_list and show_list.
5219 * cli/cli-style.c (class cli_style_option): Update accordingly.
5220 (style_set_list): Move to file scope.
5221 (style_show_list): Likewise.
5222 (set_style): Call help_list.
5223 (show_style): Call cmd_show_list.
5224 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
5225 Update to use the new macro.
5227 2019-10-12 Joel Brobecker <brobecker@adacore.com>
5229 * ada-lang.c (_initialize_ada_language): Expand the help text
5230 for the "catch exception" command.
5232 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5234 * symtab.c (matching_obj_sections): Initialize obj,
5235 declare it closer to its usage.
5237 2019-01-10 Tom Tromey <tom@tromey.com>
5239 * thread-iter.h (inf_threads_iterator): Use next_iterator.
5240 (basic_inf_threads_range): Remove.
5241 (inf_threads_range, inf_non_exited_threads_range)
5242 (safe_inf_threads_range): Use next_adapter.
5244 2019-01-10 Keith Seitz <keiths@redhat.com>
5248 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
5249 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
5251 2019-01-10 Keith Seitz <keiths@redhat.com>
5255 * dictionary.c (pending_to_vector): Remove.
5256 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
5257 Remove _1 suffix, replacing functions of the same name. Update
5259 (dict_create_hashed, dict_create_hashed_expandable)
5260 (dict_create_linear, dict_create_linear_expandable, dict_free)
5261 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
5262 Make functions static.
5264 2019-01-10 Keith Seitz <keiths@redhat.com>
5268 * dictionary.h (struct dictionary): Replace declaration with
5270 (dict_create_hashed, dict_create_hashed_expandable)
5271 (dict_create_linear, dict_create_linear_expandable)
5272 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
5273 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
5274 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
5275 taking multidictionary argument.
5276 [ALL_DICT_SYMBOLS]: Update for multidictionary.
5277 * block.h (struct block) <dict>: Change to multidictionary
5278 and rename `multidict'.
5279 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
5280 symmisc.c: Update all dictionary references to multidictionary.
5282 2019-01-10 Keith Seitz <keiths@redhat.com>
5286 * dictionary.c: Include unordered_map.
5287 (pending_to_vector): New function.
5288 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
5289 Rewrite the non-"_1" functions to take vector instead
5291 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
5292 "new" _1 versions of the same name.
5293 (multidictionary): Define.
5294 (std::hash<enum language): New definition.
5295 (collate_pending_symbols_by_language, mdict_create_hashed)
5296 (mdict_create_hashed_expandable, mdict_create_linear)
5297 (mdict_create_linear_expandable, mdict_free)
5298 (find_language_dictionary, create_new_language_dictionary)
5299 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
5300 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
5301 (mdict_size, mdict_empty): New functions.
5302 * dictionary.h (mdict_iterator): Define.
5304 2019-01-10 Pedro Alves <palves@redhat.com>
5306 * breakpoint.c (read_uploaded_action)
5307 (create_tracepoint_from_upload): Adjust to use
5308 gdb::unique_xmalloc_ptr.
5309 * ctf.c (ctf_write_uploaded_tp):
5310 (SET_ARRAY_FIELD): Use emplace_back.
5311 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
5312 * tracefile-tfile.c (tfile_write_uploaded_tp):
5313 * tracepoint.c (parse_tracepoint_definition): Adjust to use
5314 gdb::unique_xmalloc_ptr.
5315 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
5316 at_string, cond_string, cmd_strings>: Replace char pointers
5317 with gdb::unique_xmalloc_ptr.
5319 2019-01-10 Pedro Alves <palves@redhat.com>
5321 * solib-target.c (library_list_start_library): Don't xstrdup name.
5323 2019-01-10 Pedro Alves <palves@redhat.com>
5325 * mdebugread.c (parse_partial_symbols): Use
5326 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
5328 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
5330 * linux-fork.c (scoped_switch_fork_info)
5331 <~scoped_switch_fork_info>: Fix incorrect variable name.
5333 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
5335 * linux-fork.c (scoped_switch_fork_info)
5336 <scoped_switch_fork_info>: Make explicit.
5337 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
5339 2019-01-10 Tom Tromey <tom@tromey.com>
5341 * objfiles.h (objfile::reset_psymtabs): Update.
5342 * objfiles.c (objfile::objfile): Update.
5343 * psymtab.h (psymtab_storage::obstack): Update.
5344 (psymtab_storage::m_obstack): Use gdb::optional.
5345 (class psymtab_storage): Update comment. Remove objfile
5347 * psymtab.c (psymtab_storage::psymtab_storage): Update.
5349 2019-01-10 Tom Tromey <tom@tromey.com>
5351 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
5352 <free_psymtabs>: Now private.
5353 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
5354 (allocate_psymtab): Use new method.
5356 2019-01-10 Tom Tromey <tom@tromey.com>
5358 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
5359 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
5360 * mdebugread.c (parse_partial_symbols): Use
5361 allocate_dependencies.
5362 * dwarf2read.c (dwarf2_create_include_psymtab): Use
5363 allocate_dependencies.
5364 (process_psymtab_comp_unit_reader)
5365 (build_type_psymtab_dependencies): Likewise.
5366 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
5368 2019-01-10 Tom Tromey <tom@tromey.com>
5370 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
5371 PSYMBOL_SET_LANGUAGE.
5372 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
5374 2019-01-10 Tom Tromey <tom@tromey.com>
5376 * psymtab.h (psymtab_storage::obstack): New method.
5377 <m_obstack>: Rename from obstack; now private.
5378 * psymtab.c (psymtab_storage): Update.
5379 * dwarf2read.c (create_addrmap_from_index)
5380 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
5383 2019-01-10 Tom Tromey <tom@tromey.com>
5385 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
5386 * objfiles.h (objfile::reset_psymtabs): New method.
5388 2019-01-10 Tom Tromey <tom@tromey.com>
5390 * symmisc.c (print_symbol_bcache_statistics): Update.
5391 (print_objfile_statistics): Update.
5392 * symfile.c (reread_symbols): Update.
5393 * psymtab.h (class psymtab_storage): New.
5394 * psymtab.c (psymtab_storage): New constructor.
5395 (~psymtab_storage): New destructor.
5396 (require_partial_symbols): Update.
5397 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
5398 (find_pc_sect_psymtab, find_pc_sect_psymbol)
5399 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
5400 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
5401 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
5402 (start_psymtab_common, end_psymtab_common)
5403 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
5404 (allocate_psymtab): Update.
5405 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
5407 (dump_psymtab_addrmap, maintenance_print_psymbols)
5408 (maintenance_check_psymtabs): Update.
5409 (class objfile_psymtabs): Move to objfiles.h.
5410 * psympriv.h (discard_psymtab): Now inline.
5411 (psymtab_discarder::psymtab_discarder): Update.
5412 (psymtab_discarder::~psymtab_discarder): Update.
5413 (ALL_OBJFILE_PSYMTABS): Rewrite.
5414 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
5415 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
5417 <partial_symtabs>: New field.
5418 (class objfile_psymtabs): Move from psymtab.h. Update.
5419 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
5421 (objfile::~objfile): Don't destroy psymbol_cache.
5422 * mdebugread.c (parse_partial_symbols): Update.
5423 * dwarf2read.c (create_addrmap_from_index)
5424 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5425 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
5426 (add_partial_subprogram, dwarf2_ranges_read): Update.
5427 * dwarf-index-write.c (write_address_map)
5428 (write_one_signatured_type, recursively_write_psymbols)
5429 (class debug_names, class debug_names, write_psymtabs_to_index):
5432 2019-01-10 Tom Tromey <tom@tromey.com>
5434 * symtab.h (SYMBOL_SET_NAMES): Update.
5435 (symbol_set_names): Update.
5436 (MSYMBOL_SET_NAMES): Update.
5437 * symtab.c (symbol_set_names): Change argument to be an
5438 objfile_per_bfd_storage.
5439 * psymtab.c (add_psymbol_to_bcache): Update.
5440 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
5442 2019-01-10 Tom Tromey <tom@tromey.com>
5444 * symtab.c (create_demangled_names_hash): Change argument to be an
5445 objfile_per_bfd_storage.
5446 (symbol_set_names): Update.
5448 2019-01-10 Tom Tromey <tom@tromey.com>
5450 * xcoffread.c (xcoff_initial_scan): Unconditionally call
5452 * psymtab.c (init_psymbol_list): Do nothing if already called.
5453 * psympriv.h (init_psymbol_list): Add comment.
5454 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
5456 * dbxread.c (dbx_symfile_read): Unconditionally call
5459 2019-01-10 Tom Tromey <tom@tromey.com>
5461 * xcoffread.c (scan_xcoff_symtab): Update.
5462 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
5464 * mdebugread.c (parse_partial_symbols)
5465 (handle_psymbol_enumerators): Update.
5466 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
5467 * dbxread.c (read_dbx_symtab): Update.
5468 * psympriv.h (psymbol_placement): New enum.
5469 (add_psymbol_to_list): Update.
5471 2019-01-10 Tom Tromey <tom@tromey.com>
5473 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
5474 static_psymbols parameters.
5475 (scan_xcoff_symtab): Update.
5476 * psymtab.c (start_psymtab_common): Remove global_psymbols and
5477 static_psymbols parameters.
5478 * psympriv.h (start_psymtab_common): Update.
5479 * mdebugread.c (parse_partial_symbols): Update.
5480 * dwarf2read.c (create_partial_symtab): Update.
5481 * dbxread.c (read_dbx_symtab): Update.
5482 (start_psymtab): Remove global_psymbols and static_psymbols
5485 2019-01-10 Tom Tromey <tom@tromey.com>
5487 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
5488 * psymtab.c (allocate_psymtab): Add comment.
5489 * psympriv.h (allocate_psymtab): Add comment.
5490 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
5492 * dbxread.c (dbx_end_psymtab): Remove some initializations.
5494 2019-01-10 Tom Tromey <tom@tromey.com>
5496 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
5498 * mipsread.c: Include mdebugread.h.
5499 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
5501 * elfread.c: Include mdebugread.h.
5503 2019-01-09 Tom Tromey <tom@tromey.com>
5505 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
5506 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
5507 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
5508 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
5509 (psym_lookup_symbol, psym_find_last_source_symtab)
5510 (psym_forget_cached_source_info, psym_print_stats)
5511 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
5512 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
5513 (psym_map_matching_symbols, psym_expand_symtabs_matching)
5514 (psym_find_compunit_symtab_by_address)
5515 (maintenance_print_psymbols, maintenance_info_psymtabs)
5516 (maintenance_check_psymtabs): Use ranged for.
5517 * psymtab.h (class objfile_psymtabs): New.
5518 (require_partial_symbols): Return objfile_psymtabs.
5519 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
5521 2019-01-09 Tom Tromey <tom@tromey.com>
5523 * symfile.c (overlay_invalidate_all, find_pc_overlay)
5524 (find_pc_mapped_section, list_overlays_command)
5525 (map_overlay_command, unmap_overlay_command)
5526 (simple_overlay_update): Use all_objfiles.
5527 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
5528 * printcmd.c (info_symbol_command): Use all_objfiles.
5529 * objfiles.h (ALL_OBJSECTIONS): Remove.
5530 * maint.c (maintenance_translate_address): Use all_objfiles.
5531 * gcore.c (gcore_create_callback): Use all_objfiles.
5532 (objfile_find_memory_regions): Likewise.
5534 2019-01-09 Tom Tromey <tom@tromey.com>
5536 * symtab.c (find_line_symtab, info_sources_command)
5537 (make_source_files_completion_list): Use objfile_compunits.
5538 * source.c (select_source_symtab): Use objfile_compunits.
5539 * objfiles.h (struct objfile): Update comment.
5540 (ALL_OBJFILES): Remove.
5541 (ALL_FILETABS): Remove.
5542 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
5545 2019-01-09 Tom Tromey <tom@tromey.com>
5547 * symmisc.c (print_objfile_statistics, dump_objfile)
5548 (maintenance_print_symbols): Use compunit_filetabs.
5549 * source.c (forget_cached_source_info_for_objfile): Use
5551 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
5552 (ALL_FILETABS): Use compunit_filetabs.
5553 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
5554 * coffread.c (coff_symtab_read): Use compunit_filetabs.
5556 2019-01-09 Tom Tromey <tom@tromey.com>
5558 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
5559 (compunit_filetabs): New.
5560 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
5562 (info_sources_command, make_source_files_completion_list): Remove
5564 * symmisc.c (print_objfile_statistics, dump_objfile)
5565 (maintenance_print_symbols): Remove declaration.
5566 (maintenance_info_symtabs): Use compunit_filetabs.
5567 (maintenance_info_line_tables): Likewise.
5568 * source.c (select_source_symtab): Change local variable name.
5569 (forget_cached_source_info_for_objfile): Remove declaration.
5570 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
5571 * objfiles.c (objfile_relocate1): Remove declaration.
5572 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
5574 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
5575 * coffread.c (coff_symtab_read): Remove declaration.
5576 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5579 2019-01-09 Tom Tromey <tom@tromey.com>
5581 * symtab.c (lookup_objfile_from_block)
5582 (find_pc_sect_compunit_symtab, search_symbols)
5583 (default_collect_symbol_completion_matches_break_on): Use
5585 * objfiles.h (ALL_COMPUNITS): Remove.
5586 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
5587 * cp-support.c (add_symbol_overload_list_qualified): Use
5589 * ada-lang.c (ada_collect_symbol_completion_matches)
5590 (ada_add_global_exceptions): Use objfile_compunits.
5592 2019-01-09 Tom Tromey <tom@tromey.com>
5594 * source.c (select_source_symtab)
5595 (forget_cached_source_info_for_objfile): Remove declaration.
5596 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
5598 * maint.c (count_symtabs_and_blocks): Remove declaration.
5599 * cp-support.c (add_symbol_overload_list_qualified): Remove
5601 * coffread.c (coff_symtab_read): Remove declaration.
5602 * symtab.c (lookup_symbol_in_objfile_symtabs)
5603 (basic_lookup_transparent_type_1): Use objfile_compunits.
5604 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
5605 (info_sources_command, search_symbols)
5606 (default_collect_symbol_completion_matches_break_on)
5607 (make_source_files_completion_list): Remove declaration.
5608 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
5609 (ada_collect_symbol_completion_matches)
5610 (ada_add_global_exceptions): Remove declaration.
5611 * linespec.c (iterate_over_all_matching_symtabs): Use
5613 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
5614 (class objfile_compunits): New.
5615 (ALL_COMPUNITS): Use objfile_compunits.
5616 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
5617 (maintenance_check_symtabs, maintenance_info_line_tables): Use
5619 * objfiles.c (objfile_relocate1): Use objfile_compunits.
5621 2019-01-09 Tom Tromey <tom@tromey.com>
5623 * symtab.c (search_symbols)
5624 (default_collect_symbol_completion_matches_break_on): Use
5626 * ada-lang.c (ada_lookup_simple_minsym)
5627 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
5628 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
5629 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
5631 * coffread.c (coff_symfile_read): Use objfile_msymbols.
5632 * symmisc.c (dump_msymbols): Use objfile_msymbols.
5633 * objc-lang.c (find_methods): Use objfile_msymbols.
5634 (info_selectors_command, info_classes_command): Likewise.
5635 * stabsread.c (scan_file_globals): Use objfile_msymbols.
5636 * objfiles.h (class objfile_msymbols): New.
5637 (ALL_OBJFILE_MSYMBOLS): Remove.
5638 (ALL_MSYMBOLS): Remove.
5640 2019-01-09 Tom Tromey <tom@tromey.com>
5642 * common/next-iterator.h (next_adapter): Add Iterator template
5644 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
5645 (class all_objfiles_safe): New.
5646 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
5647 * objfiles.c (put_objfile_before): Update comment.
5648 (add_separate_debug_objfile): Likewise.
5649 (free_all_objfiles): Use all_objfiles_safe.
5650 (objfile_purge_solibs): Likewise.
5652 2019-01-09 Tom Tromey <tom@tromey.com>
5654 * symtab.c (iterate_over_symtabs, matching_obj_sections)
5655 (expand_symtab_containing_pc, lookup_static_symbol)
5656 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
5657 (find_symbol_at_address, find_line_symtab, find_main_name): Use
5659 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
5660 * breakpoint.c (create_overlay_event_breakpoint)
5661 (create_longjmp_master_breakpoint)
5662 (create_std_terminate_master_breakpoint)
5663 (create_exception_master_breakpoint): Use all_objfiles.
5664 * linux-thread-db.c (try_thread_db_load_from_pdir)
5665 (has_libpthread): Use all_objfiles.
5666 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
5667 * linespec.c (iterate_over_all_matching_symtabs)
5668 (search_minsyms_for_name): Use all_objfiles.
5669 * maint.c (maintenance_info_sections): Use all_objfiles.
5670 * main.c (captured_main_1): Use all_objfiles.
5671 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
5672 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
5673 * guile/scm-pretty-print.c
5674 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
5675 * solib-spu.c (append_ocl_sos): Use all_objfiles.
5676 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
5677 (maintenance_print_msymbols): Use all_objfiles.
5678 * source.c (select_source_symtab): Use all_objfiles.
5679 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
5680 * symfile.c (remove_symbol_file_command)
5681 (expand_symtabs_matching, map_symbol_filenames): Use
5683 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
5685 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
5686 * objc-lang.c (find_methods): Use all_objfiles.
5687 * objfiles.c (have_partial_symbols, have_full_symbols)
5688 (have_minimal_symbols, qsort_cmp)
5689 (default_iterate_over_objfiles_in_search_order): Use
5691 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
5692 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
5693 (maintenance_check_psymtabs): Use all_objfiles.
5694 (ALL_PSYMTABS): Remove.
5695 * compile/compile-object-run.c (do_module_cleanup): Use
5697 * blockframe.c (find_pc_partial_function): Use all_objfiles.
5698 * cp-support.c (add_symbol_overload_list_qualified): Use
5700 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
5702 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
5703 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
5705 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
5706 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
5707 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
5709 * solib.c (solib_read_symbols): Use all_objfiles
5711 2019-01-09 Tom Tromey <tom@tromey.com>
5713 * probe.c (parse_probes_in_pspace): Use all_objfiles.
5714 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
5716 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
5717 * symmisc.c (print_symbol_bcache_statistics)
5718 (print_objfile_statistics, maintenance_print_objfiles)
5719 (maintenance_info_symtabs, maintenance_check_symtabs)
5720 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
5722 * source.c (forget_cached_source_info): Use all_objfiles.
5723 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
5724 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
5725 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
5726 * objfiles.c (update_section_map): Use all_objfiles.
5727 (shared_objfile_contains_address_p): Likewise.
5728 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
5729 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
5731 2019-01-09 Tom Tromey <tom@tromey.com>
5733 * common/next-iterator.h: New file.
5734 * objfiles.h (class all_objfiles): New.
5735 (struct objfile_iterator): New.
5737 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5739 * NEWS: Move the description of the changed "frame", "select-frame",
5740 and "info frame" commands to the Changed commands section.
5742 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
5744 * gdbtypes.c (check_stub_method_group): Remove handling of old
5746 * linespec.c (find_methods): Likewise.
5747 * stabsread.c (read_member_functions): Likewise.
5748 * valops.c (search_struct_method): Likewise.
5749 (value_struct_elt_for_reference): Likewise.
5750 * NEWS: Mention this change.
5752 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
5754 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
5756 * source.c (print_source_lines_base): Update line number check.
5757 (print_source_lines): New function.
5758 (source_lines_range::source_lines_range): New function.
5759 * source.h (class source_lines_range): New class.
5760 (print_source_lines): New declaration.
5762 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5764 * linespec.c (linespec_state_destructor): Free self->canonical_names.
5766 2019-01-08 Tom Tromey <tom@tromey.com>
5767 Simon Marchi <simon.marchi@ericsson.com>
5770 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
5771 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
5772 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
5773 * f-exp.y (DOLLAR_VARIABLE): Likewise.
5774 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
5775 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
5777 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5779 * source.c (select_source_symtab): Move header comment to
5780 declaration in source.h.
5781 (forget_cached_source_info_for_objfile): Likewise.
5782 (forget_cached_source_info): Likewise.
5783 (identify_source_line): Likewise.
5784 * source.h (identify_source_line): Move declaration from symtab.h
5785 and add comment from source.c
5786 (print_source_lines): Likewise.
5787 (forget_cached_source_info_for_objfile): Likewise.
5788 (forget_cached_source_info): Likewise.
5789 (select_source_symtab): Likewise.
5790 (enum print_source_lines_flag): Move definition from symtab.h.
5791 * symtab.h (identify_source_line): Move declaration to source.h.
5792 (print_source_lines): Likewise.
5793 (forget_cached_source_info_for_objfile): Likewise.
5794 (forget_cached_source_info): Likewise.
5795 (select_source_symtab): Likewise.
5796 (enum print_source_lines_flag): Move definition to source.h.
5797 * tui/tui-hooks.c: Add 'source.h' include.
5799 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5801 * source.c (print_source_lines_base): Handle requests to print
5802 reverse line number sequences, and guard against empty lines
5805 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5807 * source.c (print_source_lines_base): Fix skip of '\r' if next
5810 2019-01-06 Tom Tromey <tom@tromey.com>
5812 * c-exp.y (struct c_parse_state) <macro_original_text,
5813 expansion_obstack>: New member.
5814 (macro_original_text, expansion_obstack): Remove globals.
5815 (scan_macro_expansion, scanning_macro_expansion)
5816 (finished_macro_expansion): Update.
5817 (scan_macro_cleanup): Remove.
5818 (yylex, c_parse): Update.
5820 2019-01-06 Tom Tromey <tom@tromey.com>
5822 * c-exp.y (struct c_parse_state) <strings>: New member.
5823 (operator_stoken): Update.
5825 2019-01-06 Tom Tromey <tom@tromey.com>
5827 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
5828 (union type_stack_elt) <typelist_val>: Now a pointer to
5830 (type_stack_cleanup): Don't declare.
5831 (push_typelist): Update.
5832 * parse.c (pop_typelist): Return a std::vector.
5833 (push_typelist): Take a std::vector.
5834 (follow_types): Update. Do not free args.
5835 (type_stack_cleanup): Remove.
5836 * c-exp.y (struct c_parse_state): New.
5837 (cpstate): New global.
5838 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
5839 (nonempty_typelist): Update.
5840 (func_mod): Create a new vector.
5841 (c_parse): Create a c_parse_state.
5842 (check_parameter_typelist): Do not delete params.
5843 (function_method): Update. Do not delete type_list.
5845 2019-01-06 Tom Tromey <tom@tromey.com>
5848 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
5850 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
5851 (print_return_value): Likewise.
5853 2019-01-05 Tom Tromey <tom@tromey.com>
5855 * contrib/cleanup_check.py: Remove.
5856 * contrib/gcc-with-excheck: Remove.
5857 * contrib/exsummary.py: Remove.
5858 * contrib/excheck.py: Remove.
5860 2019-01-05 Joel Brobecker <brobecker@adacore.com>
5862 * thread.c (delete_thread_1): Add gdb_assert that THR is not
5863 NULL. Initialize tpprev to NULL instead of assigning it
5864 to NULL on the next statement.
5865 * windows-nat.c (windows_delete_thread): Remove check for
5866 main_thread_id before printing thread exit notifications.
5867 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
5868 Remove thread ID check against main_thread_id.
5869 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
5870 windows_delete_thread.
5871 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
5873 2019-01-04 Tom Tromey <tom@tromey.com>
5875 * compile/compile.c (_initialize_compile): Use upper case for
5876 metasyntactic variables.
5877 * symmisc.c (_initialize_symmisc): Use upper case for
5878 metasyntactic variables.
5879 * psymtab.c (_initialize_psymtab): Use upper case for
5880 metasyntactic variables.
5881 * demangle.c (demangle_command): Use upper case for metasyntactic
5883 (_initialize_demangler): Likewise.
5884 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
5887 2019-01-03 Tom Tromey <tom@tromey.com>
5889 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
5891 2019-01-03 Tom Tromey <tom@tromey.com>
5893 * python/py-symtab.c (salpy_str): Update.
5894 (struct salpy_sal_object) <symtab>: Now a PyObject.
5895 (salpy_dealloc): Update.
5896 (del_objfile_sal): Use gdbpy_ref.
5898 2019-01-03 Tom Tromey <tom@tromey.com>
5900 * python/py-type.c (convert_field): Use new_reference. Return
5902 (make_fielditem): Return gdbpy_ref.
5903 (typy_fields): Update.
5904 (typy_getitem): Update.
5905 (field_name): Return gdbpy_ref. Use new_reference.
5906 (typy_iterator_iternext): Update.
5908 2019-01-03 Tom Tromey <tom@tromey.com>
5910 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
5912 2019-01-03 Tom Tromey <tom@tromey.com>
5914 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
5915 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
5916 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
5917 (pspy_set_frame_filters, pspy_set_frame_unwinders)
5918 (pspy_set_type_printers): Likewise.
5919 * python/py-function.c (fnpy_init): Use gdbpy_ref.
5920 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
5921 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
5922 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
5923 (objfpy_set_type_printers): Likewise.
5925 2019-01-03 Tom Tromey <tom@tromey.com>
5927 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
5928 (gdbpy_print_stack): Use gdbpy_err_fetch.
5929 * python/python-internal.h (class gdbpy_err_fetch): New class.
5930 (class gdbpy_enter) <m_error_type, m_error_value,
5931 m_error_traceback>: Remove.
5932 <m_error>: New member.
5933 (gdbpy_exception_to_string): Don't declare.
5934 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
5935 * python/py-value.c (convert_value_from_python): Use
5937 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
5938 gdbpy_exception_to_string.
5939 (gdbpy_handle_exception): Use gdbpy_err_fetch.
5940 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
5943 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5945 * linux-nat.c (delete_lwp_cleanup): Delete.
5946 (struct lwp_deleter): New struct.
5947 (lwp_info_up): New typedef.
5948 (linux_nat_target::follow_fork): Delete cleanup, and make use of
5951 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5953 * linux-fork.c (class scoped_switch_fork_info): New class.
5954 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
5956 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5958 * valops.c (find_overload_match): Remove use of null_cleanup, and
5959 calls to do_cleanups.
5961 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5963 * compile/compile-cplus-types.c
5964 (compile_cplus_instance::decl_name): Handle changes to
5966 * cp-support.c (cp_func_name): Update header comment, update
5968 * cp-support.h (cp_func_name): Update return type in declaration.
5969 * valops.c (find_overload_match): Move temp_func local to top
5970 level of function and change its type. Use temp_func to hold and
5971 delete temporary string obtained from cp_func_name.
5973 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5975 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
5976 gdb::char_vector, remove cleanup, and update uses of `msg`.
5978 2019-01-03 Jim Wilson <jimw@sifive.com>
5980 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
5982 2019-01-02 Tom Tromey <tom@tromey.com>
5984 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
5985 (tdesc_parse_xml): Remove cleanups.
5986 * target-descriptions.h (make_cleanup_free_target_description):
5988 (target_desc_deleter): New struct.
5989 (target_desc_up): New typedef.
5990 * target-descriptions.c (target_desc_deleter::operator()): Rename
5991 from free_target_description.
5992 (make_cleanup_free_target_description): Remove.
5994 2019-01-02 Tom Tromey <tom@tromey.com>
5996 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
5997 constructor, destructor.
5998 (linespec_parser): Remove typedef.
5999 (~linespec_parser): Rename from linespec_parser_delete.
6000 (linespec_lex_to_end, linespec_complete_label)
6001 (linespec_complete): Update.
6002 (decode_line_full): Remove cleanups.
6003 (decode_line_1): Update.
6005 2019-01-02 Tom Tromey <tom@tromey.com>
6007 * python/python-internal.h (inferior_to_inferior_object): Change
6009 * python/py-exitedevent.c (create_exited_event_object): Update.
6010 * python/py-inferior.c (inferior_to_inferior_object): Return
6012 (python_new_inferior, python_inferior_deleted)
6013 (thread_to_thread_object, delete_thread_object)
6014 (build_inferior_list, gdbpy_selected_inferior): Update.
6015 * python/py-infthread.c (create_thread_object): Update. Also fail
6016 if inferior_to_inferior_object fails.
6018 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
6020 * inferior.h (class inferior) <displaced_step_state>: New field.
6021 * infrun.h (struct displaced_step_state): Move here from
6022 infrun.c. Initialize fields, add constructor.
6023 <inf>: Remove field.
6024 <reset>: New method.
6025 * infrun.c (struct displaced_step_inferior_state): Move to
6027 (displaced_step_inferior_states): Remove.
6028 (get_displaced_stepping_state): Adust.
6029 (displaced_step_in_progress_any_inferior): Adjust.
6030 (displaced_step_in_progress_thread): Adjust.
6031 (displaced_step_in_progress): Adjust.
6032 (add_displaced_stepping_state): Remove.
6033 (get_displaced_step_closure_by_addr): Adjust.
6034 (remove_displaced_stepping_state): Remove.
6035 (infrun_inferior_exit): Call displaced_step_state.reset.
6036 (use_displaced_stepping): Don't check for NULL.
6037 (displaced_step_prepare_throw): Call
6038 get_displaced_stepping_state.
6039 (displaced_step_fixup): Don't check for NULL.
6040 (prepare_for_detach): Don't check for NULL.
6042 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6044 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
6045 in case of call that did not complete.
6047 2019-01-02 Andrey Utkin <autkin@undo.io>
6049 * symfile.c (find_separate_debug_file): Fix search of debug files for
6052 2019-01-02 Tom Tromey <tom@tromey.com>
6054 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
6056 * python/py-frame.c (frapy_older): Remove cast.
6057 (frapy_newer): Likewise.
6058 * python/py-breakpoint.c (local_setattro): Remove cast.
6059 * python/py-arch.c (archpy_name): Remove local variable.
6060 * python/py-type.c (gdbpy_lookup_type): Remove cast.
6062 2019-01-02 Joel Brobecker <brobecker@adacore.com>
6064 * unittests/basic_string_view/element_access/char/empty.cc:
6065 Fix year range in copyright header.
6067 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
6069 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
6071 <operator==>: Update with for removed field.
6073 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
6074 <isa_features>: ...this.
6075 <abi_features>: New field.
6076 (riscv_isa_flen): Update comment.
6077 (riscv_abi_xlen): New declaration.
6078 (riscv_abi_flen): New declaration.
6079 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
6081 (riscv_abi_xlen): New function.
6082 (riscv_isa_flen): Update to get answer from isa_features.
6083 (riscv_abi_flen): New function.
6084 (riscv_has_fp_abi): Update to get answer from abi_features.
6085 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
6087 (riscv_call_info) <xlen, flen>: Update comment.
6088 (riscv_call_arg_struct): Remove invalid assertions
6089 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
6091 (riscv_gdbarch_init): Gather isa features and abi features
6092 separately, ensure both match on the gdbarch when reusing an old
6093 gdbarch. Relax an error check to allow 32-bit abi float to run on
6094 a target with 64-bit float hardware.
6096 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6098 * source.c (search_command_helper): Stop reverse search
6099 when line 1 has been searched.
6101 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6103 * record-full.c (record_full_base_target::close): Rewrite
6104 record_full_core_buf_list free logic.
6106 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6108 * break-catch-syscall.c (print_one_catch_syscall): xfree
6111 2019-01-01 Joel Brobecker <brobecker@adacore.com>
6113 * top.c (print_gdb_version): Update Copyright year in version
6116 2019-01-01 Joel Brobecker <brobecker@adacore.com>
6118 Update copyright year range in all GDB files.
6120 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
6122 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
6124 For older changes see ChangeLog-2018.
6130 version-control: never