1 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3 Support style in 'frame|thread apply'
5 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6 * record.c (record_start, record_stop): Update callers of
7 execute_command_to_string with false.
8 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
11 (class string_file): New constructor with term_out parameter.
12 Override methods term_out and can_emit_style_escape. New member
14 (class stdio_file): Override can_emit_style_escape.
15 (class tee_file): Override term_out and can_emit_style_escape.
16 * utils.h (can_emit_style_escape): Remove.
17 * utils.c (can_emit_style_escape): Likewise.
18 Update all callers of can_emit_style_escape (SOMESTREAM) to
19 SOMESTREAM->can_emit_style_escape.
20 * source-cache.c (source_cache::get_source_lines): Likewise.
21 * stack.c (frame_apply_command_count): Call execute_command_to_string
22 passing the term_out characteristic of the current gdb_stdout.
23 * thread.c (thr_try_catch_cmd): Likewise.
24 * top.c (execute_command_to_string): pass term_out parameter
25 to construct the string_file for the command output.
26 * ui-file.c (term_cli_styling): New function (most code moved
27 from utils.c can_emit_style_escape).
28 (string_file::string_file, string_file::can_emit_style_escape,
29 stdio_file::can_emit_style_escape, tee_file::term_out,
30 tee_file::can_emit_style_escape): New functions.
32 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
34 * NEWS: Mention the new set|show may-call-functions.
35 * infcall.c (may_call_functions_p): New variable.
36 (show_may_call_functions_p): New function.
37 (call_function_by_hand_dummy): Throws an error if not
39 (_initialize_infcall): Call add_setshow_boolean_cmd for
42 2019-04-25 Keith Seitz <keiths@redhat.com>
45 * cp-support.c (inspect_type): Don't attempt substitutions
46 of symbol with the same name.
48 2019-04-25 Tom Tromey <tromey@adacore.com>
51 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
54 2019-04-25 Tom Tromey <tromey@adacore.com>
56 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
58 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
59 (gdb_xml_parser::parse): Use std::move.
60 * python/python-internal.h (gdbpy_convert_exception): Take a const
62 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
64 * python/py-utils.c (gdbpy_convert_exception): Take a const
66 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
68 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
70 * mi/mi-main.c (mi_print_exception): Take a const reference.
71 * main.c (handle_command_errors): Take a const reference.
72 * linespec.c (parse_linespec): Use std::move.
73 * infcall.c (run_inferior_call): Use std::move.
74 (call_function_by_hand_dummy): Use std::move.
75 * exec.c (try_open_exec_file): Use std::move.
76 * exceptions.h (exception_print, exception_fprintf)
77 (exception_print_same): Update.
78 * exceptions.c (print_exception, exception_print)
79 (exception_fprintf, exception_print_same): Change parameters to
81 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
82 * common/new-op.c: Use std::move.
83 * common/common-exceptions.h (struct gdb_exception): Add move
85 (struct gdb_exception_error, struct gdb_exception_quit, struct
86 gdb_quit_bad_alloc): Change constructor to move constructor.
87 (throw_exception): Change parameter to rvalue reference.
88 * common/common-exceptions.c (throw_exception): Take rvalue
90 * cli/cli-interp.c (safe_execute_command): Use std::move.
91 * breakpoint.c (insert_bp_location, location_to_sals): Use
94 2019-04-25 Tom Tromey <tromey@adacore.com>
96 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
97 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
98 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
99 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
100 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
101 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
102 guile/scm-value.c: Use unpack.
103 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
104 gdbscm_gdb_exception.
105 (gdbscm_throw_gdb_exception): Likewise.
106 (struct gdbscm_gdb_exception): New.
107 (unpack): New function.
108 (gdbscm_wrap): Use unpack.
110 2019-04-25 Tom Tromey <tromey@adacore.com>
112 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
113 (gdb_rl_callback_handler): Use std::move.
114 * common/common-exceptions.h (struct gdb_exception): Add move
116 (throw_exception_sjlj): Change "exception" to const reference.
117 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
118 (throw_exception_sjlj): Change "exception" to const reference.
120 2019-04-25 Tom Tromey <tromey@adacore.com>
122 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
123 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
124 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
126 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
128 * mi/mi-interp.c (mi_interp::exec): Update.
129 * linespec.c (parse_linespec): Update.
130 * infcall.c (run_inferior_call): Update.
131 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
132 * guile/scm-symbol.c (gdbscm_lookup_symbol)
133 (gdbscm_lookup_global_symbol): Update.
134 * guile/scm-param.c (gdbscm_parameter_value): Update.
135 * guile/scm-frame.c (gdbscm_frame_read_register)
136 (gdbscm_frame_read_var): Update.
137 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
138 * exec.c (try_open_exec_file): Update.
139 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
140 (gdb_rl_callback_handler): Update.
141 * common/common-exceptions.h (exception_none): Don't declare.
142 * common/common-exceptions.c (exception_none): Don't define.
143 (struct catcher) <exception>: Update.
144 * cli/cli-interp.c (safe_execute_command): Update.
145 * breakpoint.c (insert_bp_location, location_to_sals): Update.
147 2019-04-25 Ali Tamur <tamur@google.com>
149 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
150 (read_attribute_value): Likewise.
151 (dwarf2_read_addr_index): Update comment.
152 (read_str_index): Add DW_FORM_strx.
153 (dwarf2_string_attr): Likewise.
154 (dwarf2_const_value_attr): Likewise.
155 (dump_die_shallow): Likewise.
156 (dwarf2_fetch_constant_bytes): Likewise.
157 (skip_form_bytes): Likewise.
158 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
160 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
164 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
165 OFFSET. Verify if current mapping contains an ELF header.
166 (linux_find_memory_regions_full): Adjust call to
169 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
170 Kang Li <kanglictf@gmail.com>
174 * dwarf2-frame.c (read_initial_length): Be consistent about using
175 unsigned representation of length.
176 (decode_frame_entry_1): Likewise. Check for wraparound of
177 end pointer as well as buffer overflow.
179 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
181 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
184 2019-04-24 Tom Tromey <tromey@adacore.com>
186 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
188 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
190 * s12z-tdep.c (s12z_unwind_pc): Delete.
191 (s12z_unwind_sp): Delete.
192 (s12z_gdbarch_init): Don't register deleted functions with
195 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
197 * rl78-tdep.c (rl78_unwind_sp): Delete.
198 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
200 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
202 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
203 (xstormy16_unwind_pc): Delete.
204 (xstormy16_dummy_id): Delete.
205 (xstormy16_gdbarch_init): Don't register deleted functions with
208 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
210 * vax-tdep.c (vax_unwind_pc): Delete.
211 (vax_gdbarch_init): Don't register deleted function with gdbarch.
213 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
215 * v850-tdep.c (v850_unwind_sp): Delete.
216 (v850_unwind_pc): Delete.
217 (v850_dummy_id): Delete.
218 (v850_gdbarch_init): Don't register deleted functions with
221 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
223 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
224 (tilegx_unwind_pc): Delete.
225 (tilegx_unwind_dummy_id): Delete.
226 (tilegx_gdbarch_init): Don't register deleted functions with
229 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
231 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
232 (tic6x_dummy_id): Delete.
233 (tic6x_gdbarch_init): Don't register deleted functions with
236 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
238 * sparc-tdep.c (sparc_unwind_pc): Delete.
239 (sparc32_gdbarch_init): Don't register deleted function with
242 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
244 * sh-tdep.c (sh_unwind_sp): Delete.
245 (sh_unwind_pc): Delete.
246 (sh_dummy_id): Delete.
247 (sh_gdbarch_init): Don't register deleted functions with
250 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
252 * score-tdep.c (score_unwind_sp): Delete.
253 (score_unwind_pc): Delete.
254 (score_dummy_id): Delete.
255 (score_gdbarch_init): Don't register deleted functions with
258 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
260 * rx-tdep.c (rx_unwind_pc): Delete.
261 (rx_unwind_sp): Delete.
262 (rx_dummy_id): Delete.
263 (rx_gdbarch_init): Don't register deleted functions with
264 gdbarch. Update comment.
266 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
268 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
269 (rs6000_dummy_id): Delete.
270 (rs6000_gdbarch_init): Don't register deleted functions with
273 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
275 * or1k-tdep.c (or1k_dummy_id): Delete.
276 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
278 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
280 * nios2-tdep.c (nios2_dummy_id): Delete.
281 (nios2_unwind_sp): Delete.
282 (nios2_gdbarch_init): Don't register deleted functions with
285 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
287 * nds32-tdep.c (nds32_dummy_id): Delete.
288 (nds32_unwind_pc): Delete.
289 (nds32_unwind_sp): Delete.
290 (nds32_gdbarch_init): Don't register deleted functions with
293 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
295 * msp430-tdep.c (msp430_unwind_pc): Delete.
296 (msp430_unwind_sp): Delete.
297 (msp430_dummy_id): Delete.
298 (msp430_gdbarch_init): Don't register deleted functions with
301 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
303 * moxie-tdep.c (moxie_unwind_sp): Delete.
304 (moxie_unwind_pc): Delete.
305 (moxie_dummy_id): Delete.
306 (moxie_gdbarch_init): Don't register deleted functions with
309 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
311 * mn10300-tdep.c (mn10300_dummy_id): Delete.
312 (mn10300_unwind_pc): Delete.
313 (mn10300_unwind_sp): Delete.
314 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
316 (mn10300_frame_unwind_init): Don't register deleted functions with
319 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
321 * mep-tdep.c (mep_unwind_pc): Delete.
322 (mep_unwind_sp): Delete.
323 (mep_dummy_id): Delete.
324 (mep_gdbarch_init): Don't register deleted functions with
327 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
329 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
330 (m68hc11_unwind_sp): Delete.
331 (m68hc11_gdbarch_init): Don't register deleted functions with
334 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
336 * m32r-tdep.c (m32r_unwind_sp): Delete.
337 (m32r_unwind_pc): Delete.
338 (m32r_dummy_id): Delete.
339 (m32r_gdbarch_init): Don't register deleted functions with
342 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
344 * m32c-tdep.c (m32c_unwind_pc): Delete.
345 (m32c_unwind_sp): Delete.
346 (m32c_dummy_id): Delete.
347 (m32c_gdbarch_init): Don't register deleted functions with
350 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
352 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
353 (lm32_unwind_pc): Delete.
354 (lm32_dummy_id): Delete.
355 (lm32_gdbarch_init): Don't register deleted functions with
358 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
360 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
361 (iq2000_unwind_pc): Delete.
362 (iq2000_dummy_id): Delete.
363 (iq2000_gdbarch_init): Don't register deleted functions with
366 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
368 * nds32-tdep.c (nds32_type_align): Delete.
369 (nds32_push_dummy_call): Use type_align instead.
371 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
373 * arm-tdep.c (arm_type_align): Only handle vector override case.
374 (arm_push_dummy_call): Use type_align.
375 (arm_gdbarch_init): Register arm_type_align gdbarch function.
377 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
379 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
381 (pass_on_stack): Use type_align.
382 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
385 2019-04-23 Tom Tromey <tromey@adacore.com>
387 * dwarf2read.c (line_header::file_name_at): Remove unused
390 2019-04-23 Tom de Vries <tdevries@suse.de>
393 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
397 2019-03-27 Ali Tamur <tamur@google.com>
399 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
400 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
401 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
402 (dwarf_expr_context::get_addr_index): Likewise
403 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
404 (symbol_needs_eval_context::get_addr_index): Likewise
405 (disassemble_dwarf_expression): Add DW_OP_addrx
406 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
407 (read_cutu_die_from_dwo): Update comment
408 (skip_one_die): Add DW_FORM_addrx
409 (read_attribute_value): Likewise
410 (var_decode_location): Add DW_OP_addrx
411 (dwarf2_const_value_attr): Add DW_FORM_addrx
412 (dump_die_shallow): Likewise
413 (dwarf2_fetch_constant_bytes): Likewise
414 (decode_locdesc): Add DW_OP_addrx
415 (skip_form_bytes): Add DW_FORM_addrx
417 2019-04-22 Ali Tamur <tamur@google.com>
419 * MAINTAINERS (Write After Approval): Add self.
421 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
423 * solib-svr4.c (get_svr4_info): Add pspace parameter.
424 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
425 (open_symbol_file_object): Likewise.
426 (svr4_default_sos): Add info parameter.
427 (svr4_read_so_list): Likewise.
428 (svr4_current_sos_direct): Adjust functions calls to pass down
430 (svr4_current_sos_1): Add info parameter.
431 (svr4_current_sos): Call get_svr4_info, pass info down to
433 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
435 (svr4_in_dynsym_resolve_code): Pass current_program_space to
437 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
439 (probes_table_remove_objfile_probes): Likewise.
440 (register_solib_event_probe): Add info parameter.
441 (solist_update_incremental): Pass info parameter down to
443 (disable_probes_interface): Add info parameter.
444 (svr4_handle_solib_event): Pass current_program_space to
445 get_svr4_info. Adjust disable_probes_interface cleanup.
446 (svr4_create_probe_breakpoints): Add info parameter, pass it
447 down to register_solib_event_probe.
448 (svr4_create_solib_event_breakpoints): Add info parameter,
449 pass it down to svr4_create_probe_breakpoints.
450 (enable_break): Pass info down to
451 svr4_create_solib_event_breakpoints.
452 (svr4_solib_create_inferior_hook): Pass current_program_space to
454 (svr4_clear_solib): Likewise.
456 2019-04-22 Pedro Alves <palves@redhat.com>
458 * solib-svr4.c (svr4_free_objfile_observer): New.
459 (probe_and_action::objfile): New field.
460 (probes_table_htab_remove_objfile_probes)
461 (probes_table_remove_objfile_probes): New functions.
462 (register_solib_event_probe): Add 'objfile' parameter. Store it
463 in the new probe_and_action. Don't store the probe in 'lookup'.
464 (svr4_create_probe_breakpoints): Pass objfile to
465 register_solib_event_probe.
466 (_initialize_svr4_solib): Register a free_objfile observer.
468 2019-04-19 Tom Tromey <tom@tromey.com>
470 * common/queue.h: Remove.
472 2019-04-19 Tom Tromey <tom@tromey.com>
474 * event-loop.c: Don't include "common/queue.h".
476 2019-04-19 Tom Tromey <tom@tromey.com>
478 * remote.c (remote_target): Use delete.
479 * remote-notif.h: Include <list>, not "common/queue.h".
480 (notif_client_p): Remove typedef.
481 (remote_notif_state): Add constructor, destructor, initializer.
482 <notif_queue>: Now a std::list.
483 (remote_notif_state_xfree): Don't declare.
484 * remote-notif.c (remote_notif_process, handle_notification)
485 (remote_notif_state_allocate): Update.
486 (~remote_notif_state): Rename from remote_notif_state_xfree.
488 2019-04-19 Tom Tromey <tom@tromey.com>
490 * symfile.c (reread_symbols): Update.
491 * objfiles.c (objfile_register_static_link)
492 (objfile_lookup_static_link): Update
493 (~objfile) Don't delete static_links.
494 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
496 2019-04-19 Tom Tromey <tom@tromey.com>
498 * type-stack.h (struct type_stack) <insert>: Constify string.
499 * type-stack.c (type_stack::insert): Constify string.
500 * gdbtypes.h (lookup_template_type): Update.
501 (address_space_name_to_int): Update.
502 * gdbtypes.c (address_space_name_to_int): Make space_identifier
504 (lookup_template_type): Make name const.
505 * c-exp.y: Update rules.
506 (lex_one_token, classify_name, classify_inner_name)
507 (c_print_token): Update.
508 * p-exp.y: Update rules.
510 * f-exp.y: Update rules.
512 * d-exp.y: Update rules.
513 (lex_one_token, classify_name, classify_inner_name): Update.
514 * parse.c (write_dollar_variable, copy_name): Return std::string.
515 * parser-defs.h (copy_name): Change return type.
516 * m2-exp.y: Update rules.
518 * go-exp.y (lex_one_token): Update.
520 (classify_unsafe_function, classify_packaged_name)
521 (classify_name, yylex): Update.
523 2019-04-19 Sergei Trofimovich <siarheit@google.com>
525 * configure.ac: add --enable-source-highlight switch.
526 * configure: Regenerate.
527 * top.c (print_gdb_version): plumb --enable-source-highlight
528 status to "show configuration".
530 2019-04-19 Tom Tromey <tromey@adacore.com>
532 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
534 (empty_record, ada_template_to_fixed_record_type_1)
535 (template_to_static_fixed_type)
536 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
537 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
538 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
541 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
544 * source.c (print_source_lines_base): Advance "iter" when a
545 control character is seen.
547 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
549 * inferior.h (struct infcall_suspend_state_deleter):
550 Catch exception in destructor to avoid crash.
552 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
554 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
555 close to the add_com "shell".
557 2019-04-18 Tom Tromey <tromey@adacore.com>
559 * process-stratum-target.h (class process_stratum_target)
560 <stratum>: Add "final".
562 2019-04-17 Tom Tromey <tromey@adacore.com>
564 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
565 against nullptr before use.
567 2019-04-17 Alan Hayward <alan.hayward@arm.com>
569 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
571 2019-04-17 Jim Wilson <jimw@sifive.com>
572 Andrew Burgess <andrew.burgess@embecosm.com>
574 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
575 code read might fail, assume 4-byte breakpoint in that case.
577 2019-04-15 Leszek Swirski <leszeks@google.com>
579 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
580 rather than a hand-rolled POD check when checking for forced MEMORY
583 2019-04-15 Alan Hayward <alan.hayward@arm.com>
585 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
586 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
588 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
589 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
590 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
593 2019-04-15 Alan Hayward <alan.hayward@arm.com>
595 * aarch64-linux-nat.c
596 (aarch64_linux_nat_target::thread_architecture): Add override.
597 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
600 2019-04-15 Alan Hayward <alan.hayward@arm.com>
602 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
604 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
606 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
607 target types of size 96-bits, add some additional comments, and
608 check that the builtin type we found was the correct size.
610 2019-04-12 Eli Zaretskii <eliz@gnu.org>
612 * utils.c (prompt_for_continue): Don't restore the styling at the
613 end, as applied_style has the wrong value. This fixes styling in
614 long lists of file names that are interrupted by the "Continue?"
617 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
619 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
620 * c-lang.c (c_language_defn): Likewise.
621 (cplus_language_defn): Likewise.
622 (asm_language_defn): Likewise.
623 (minimal_language_defn): Likewise.
624 * d-lang.c (d_language_defn): Likewise.
625 * f-lang.c (f_language_defn): Likewise.
626 * go-lang.c (go_language_defn): Likewise.
627 * language.c (unknown_language_defn): Likewise.
628 (auto_language_defn): Likewise.
629 * language.h (struct language_defn): Remove la_magic field.
630 (LANG_MAGIC): Delete.
631 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
632 * objc-lang.c (objc_language_defn): Likewise.
633 * opencl-lang.c (opencl_language_defn): Likewise.
634 * p-lang.c (pascal_language_defn): Likewise.
635 * rust-lang.c (rust_language_defn): Likewise.
637 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
639 * riscv-tdep.c (riscv_type_align): New function.
640 (riscv_type_alignment): Delete.
641 (riscv_arg_location): Use 'type_align'.
642 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
644 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
646 * gdbtypes.c (type_align): A struct with no non-static fields also
649 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
651 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
653 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
655 (riscv_struct_info::analyse): New implementation using new
656 analyse_inner member function.
657 (riscv_struct_info::field_offset): New member function.
658 (riscv_struct_info::m_offsets): New member variable.
659 (riscv_struct_info::analyse_inner): New private member function,
660 takes the old implementation of riscv_struct_info::analyse but
661 extended to track field offsets.
662 (riscv_call_arg_struct): Update the struct folding special cases
663 to handle cases where empty C++ structs, which are non-zero
665 (riscv_arg_location): Initialise the length of each location, a
666 non-zero length now indicates the location is in use.
667 (riscv_push_dummy_call): Allow for the first location having a
668 non-zero offset when setting up arguments.
669 (riscv_return_value): Likewise, but for return values.
671 2019-04-11 Tom Tromey <tromey@adacore.com>
673 * utils.c (internal_vproblem): Make "msg" const.
675 2019-04-11 Alan Hayward <alan.hayward@arm.com>
677 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
678 * trad-frame.c (trad_frame_reset_saved_regs): New function.
679 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
680 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
682 2019-04-10 Kevin Buettner <kevinb@redhat.com>
684 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
686 (fill_gregset): Call amd64_linux_collect_native_gregset instead
687 of amd64_collect_native_gregset.
688 (amd64_linux_nat_target::store_registers): Likewise.
690 2019-04-10 Tom Tromey <tom@tromey.com>
692 * symtab.c (lookup_global_symbol_from_objfile)
693 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
694 * objfiles.h (class separate_debug_iterator): New.
695 (class separate_debug_range): New.
696 (struct objfile) <separate_debug_objfiles>: New method.
697 (objfile_separate_debug_iterate): Don't declare.
698 * objfiles.c (separate_debug_iterator::operator++): Rename from
699 objfile_separate_debug_iterate.
700 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
702 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
705 2019-04-10 Tom Tromey <tom@tromey.com>
707 * symfile.c (reread_symbols): Remove old comment.
708 * objfiles.c (free_all_objfiles): Fix a typo.
710 2019-04-10 Tom Tromey <tom@tromey.com>
712 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
713 * minsyms.c (lookup_minimal_symbol): Use foreach.
714 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
715 (lookup_minimal_symbol_solib_trampoline): Likewise.
716 * symfile.c (reread_symbols): Use foreach.
718 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
719 Tom Tromey <tromey@adacore.com>
722 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
723 (rust_lex_int_test): Change "value" to be LONGEST.
724 (rust_lex_tests): Add test for long integer literal.
726 2019-04-09 Tom Tromey <tromey@adacore.com>
728 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
730 (extended_remote_target::attach): Update.
731 (remote_target::remote_notice_new_inferior): Update.
732 (remote_target::add_current_inferior_and_thread): Update.
733 * inferior.c (exit_inferior_1): Use "false".
734 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
736 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
738 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
741 2019-04-08 Kevin Buettner <kevinb@redhat.com>
743 * python/py-inferior.c (infpy_thread_from_thread_handle):
744 Adjust comments to reflect renaming of thread_from_thread_handle
745 to thread_from_handle. Adjust keywords. Fix type error message.
746 (inferior_object_methods): Add thread_from_handle. Retain
747 thread_from_thread_handle, but mark it as deprecated.
749 2019-04-08 Kevin Buettner <kevinb@redhat.com>
751 * gdbthread.h (find_thread_by_handle): Revise declaration.
752 * thread.c (find_thread_by_handle): Likewise. Adjust
754 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
755 support for buffer objects as handles.
757 2019-04-08 Kevin Buettner <kevinb@redhat.com>
759 * python/py-infthread.c (thpy_thread_handle): New function.
760 (thread_object_methods): Register thpy_thread_handle.
762 2019-04-08 Kevin Buettner <kevinb@redhat.com>
764 * gdbthread.h (thread_to_thread_handle): Declare.
765 * thread.c (gdbtypes.h): Include.
766 (thread_to_thread_handle): New function.
768 * target.h (struct target_ops): Add thread_info_to_thread_handle.
769 (target_thread_info_to_thread_handle): Declare.
770 * target.c (target_thread_info_to_thread_handle): New function.
771 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
772 * target-delegates.c: Regenerate.
774 * linux-thread-db.c (class thread_db_target): Add method
775 thread_info_to_thread_handle.
776 (thread_db_target::thread_info_to_thread_handle): Define.
777 * remote.c (class remote_target): Add new method
778 thread_info_to_thread_handle.
779 (remote_target::thread_info_to_thread_handle): Define.
781 2019-04-08 Pedro Alves <palves@redhat.com>
783 * common/common-exceptions.c (throw_exception): Don't create
784 named object to throw; throw directly.
785 (throw_it): Likewise. Don't initialize gdb_exception::message
786 here, with new; pass FMT and AP to the ctor instead.
787 * common/common-exceptions.h: Include <string>.
788 (gdb_exception::gdb_exception(enum return_reason, enum errors,
789 const char *, va_list)): New ctor. Use std::make_shared.
790 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
792 (gdb_exception_error::gdb_exception_error(enum errors, const char
794 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
796 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
798 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
799 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
802 2019-04-08 Tom Tromey <tom@tromey.com>
804 * valops.c (value_rtti_indirect_type): Replace throw_exception
806 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
808 * thread.c (thr_try_catch_cmd): Replace throw_exception with
810 * target.c (target_translate_tls_address): Replace throw_exception
812 * stack.c (frame_apply_command_count): Replace throw_exception
814 * solib-spu.c (append_ocl_sos): Replace throw_exception with
816 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
818 * rs6000-tdep.c (rs6000_frame_cache)
819 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
820 * remote.c: Replace throw_exception with throw.
821 * record-full.c (record_full_message, record_full_wait_1)
822 (record_full_restore): Replace throw_exception with throw.
824 (get_thread_current_frame_id, record_btrace_start_replaying)
825 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
826 (cmd_record_btrace_start): Replace throw_exception with throw.
827 * parse.c (parse_exp_in_context_1): Replace throw_exception with
829 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
830 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
832 (find_linespec_symbols): Replace throw_exception with throw.
833 * infrun.c (displaced_step_prepare, resume): Replace
834 throw_exception with throw.
835 * infcmd.c (post_create_inferior): Replace throw_exception with
837 * inf-loop.c (inferior_event_handler): Replace throw_exception
839 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
840 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
841 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
842 (get_prev_frame_always, get_frame_pc_if_available)
843 (get_frame_address_in_block_if_available, get_frame_language):
844 Replace throw_exception with throw.
845 * frame-unwind.c (frame_unwind_try_unwinder): Replace
846 throw_exception with throw.
847 * eval.c (fetch_subexp_value, evaluate_var_value)
848 (evaluate_funcall, evaluate_subexp_standard): Replace
849 throw_exception with throw.
850 * dwarf2loc.c (call_site_find_chain)
851 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
852 Replace throw_exception with throw.
853 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
855 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
857 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
858 * completer.c (complete_line_internal): Replace throw_exception
860 * compile/compile-object-run.c (compile_object_run): Replace
861 throw_exception with throw.
862 * cli/cli-script.c (process_next_line): Replace throw_exception
864 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
865 (btrace_enable, btrace_maint_update_pt_packets): Replace
866 throw_exception with throw.
867 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
868 throw_exception with throw.
869 * break-catch-throw.c (re_set_exception_catchpoint): Replace
870 throw_exception with throw.
871 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
872 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
873 * aarch64-tdep.c (aarch64_make_prologue_cache)
874 (aarch64_make_stub_cache): Replace throw_exception with throw.
876 2019-04-08 Tom Tromey <tom@tromey.com>
878 * common/common-exceptions.c (throw_exception): Rename from
879 throw_exception_cxx. Remove old copy. Make argument const.
880 (throw_it): Create and throw exception objects directly.
881 * common/common-exceptions.h (throw_exception): Make argument
883 (struct gdb_exception_error): Add constructor.
884 (struct gdb_exception_quit): Add constructor.
886 2019-04-08 Tom Tromey <tom@tromey.com>
888 * common/common-exceptions.h (exception_rethrow): Don't declare.
889 (TRY_SJLJ): Update comment.
890 (TRY, CATCH, END_CATCH): Remove.
891 * common/common-exceptions.c (exception_rethrow): Remove.
893 2019-04-08 Tom Tromey <tom@tromey.com>
895 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
897 (gdb_exception_error): Rename from
898 gdb_exception_RETURN_MASK_ERROR.
899 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
900 (gdb_quit_bad_alloc): Update.
901 * aarch64-tdep.c: Update.
902 * ada-lang.c: Update.
903 * ada-typeprint.c: Update.
904 * ada-valprint.c: Update.
905 * amd64-tdep.c: Update.
906 * arch-utils.c: Update.
907 * break-catch-throw.c: Update.
908 * breakpoint.c: Update.
910 * c-varobj.c: Update.
911 * cli/cli-cmds.c: Update.
912 * cli/cli-interp.c: Update.
913 * cli/cli-script.c: Update.
914 * common/common-exceptions.c: Update.
915 * common/new-op.c: Update.
916 * common/selftest.c: Update.
917 * compile/compile-c-symbols.c: Update.
918 * compile/compile-cplus-symbols.c: Update.
919 * compile/compile-object-load.c: Update.
920 * compile/compile-object-run.c: Update.
921 * completer.c: Update.
924 * cp-support.c: Update.
925 * cp-valprint.c: Update.
926 * darwin-nat.c: Update.
927 * disasm-selftests.c: Update.
928 * dtrace-probe.c: Update.
929 * dwarf-index-cache.c: Update.
930 * dwarf-index-write.c: Update.
931 * dwarf2-frame-tailcall.c: Update.
932 * dwarf2-frame.c: Update.
933 * dwarf2loc.c: Update.
934 * dwarf2read.c: Update.
936 * event-loop.c: Update.
937 * event-top.c: Update.
939 * f-valprint.c: Update.
940 * fbsd-tdep.c: Update.
941 * frame-unwind.c: Update.
943 * gdbtypes.c: Update.
944 * gnu-v3-abi.c: Update.
945 * guile/guile-internal.h: Update.
946 * guile/scm-block.c: Update.
947 * guile/scm-breakpoint.c: Update.
948 * guile/scm-cmd.c: Update.
949 * guile/scm-disasm.c: Update.
950 * guile/scm-frame.c: Update.
951 * guile/scm-lazy-string.c: Update.
952 * guile/scm-math.c: Update.
953 * guile/scm-param.c: Update.
954 * guile/scm-ports.c: Update.
955 * guile/scm-pretty-print.c: Update.
956 * guile/scm-symbol.c: Update.
957 * guile/scm-symtab.c: Update.
958 * guile/scm-type.c: Update.
959 * guile/scm-value.c: Update.
960 * i386-linux-tdep.c: Update.
961 * i386-tdep.c: Update.
962 * inf-loop.c: Update.
967 * language.c: Update.
968 * linespec.c: Update.
969 * linux-fork.c: Update.
970 * linux-nat.c: Update.
971 * linux-tdep.c: Update.
972 * linux-thread-db.c: Update.
974 * mi/mi-cmd-break.c: Update.
975 * mi/mi-cmd-stack.c: Update.
976 * mi/mi-interp.c: Update.
977 * mi/mi-main.c: Update.
978 * objc-lang.c: Update.
979 * p-valprint.c: Update.
981 * ppc-linux-tdep.c: Update.
982 * printcmd.c: Update.
983 * python/py-arch.c: Update.
984 * python/py-breakpoint.c: Update.
985 * python/py-cmd.c: Update.
986 * python/py-finishbreakpoint.c: Update.
987 * python/py-frame.c: Update.
988 * python/py-framefilter.c: Update.
989 * python/py-gdb-readline.c: Update.
990 * python/py-inferior.c: Update.
991 * python/py-infthread.c: Update.
992 * python/py-lazy-string.c: Update.
993 * python/py-linetable.c: Update.
994 * python/py-objfile.c: Update.
995 * python/py-param.c: Update.
996 * python/py-prettyprint.c: Update.
997 * python/py-progspace.c: Update.
998 * python/py-record-btrace.c: Update.
999 * python/py-record.c: Update.
1000 * python/py-symbol.c: Update.
1001 * python/py-type.c: Update.
1002 * python/py-unwind.c: Update.
1003 * python/py-utils.c: Update.
1004 * python/py-value.c: Update.
1005 * python/python.c: Update.
1006 * record-btrace.c: Update.
1007 * record-full.c: Update.
1008 * remote-fileio.c: Update.
1010 * riscv-tdep.c: Update.
1011 * rs6000-aix-tdep.c: Update.
1012 * rs6000-tdep.c: Update.
1013 * rust-exp.y: Update.
1014 * rust-lang.c: Update.
1015 * s390-tdep.c: Update.
1016 * selftest-arch.c: Update.
1017 * solib-dsbt.c: Update.
1018 * solib-frv.c: Update.
1019 * solib-spu.c: Update.
1020 * solib-svr4.c: Update.
1022 * sparc64-linux-tdep.c: Update.
1024 * symfile-mem.c: Update.
1025 * symmisc.c: Update.
1029 * tracefile-tfile.c: Update.
1030 * tui/tui.c: Update.
1031 * typeprint.c: Update.
1032 * unittests/cli-utils-selftests.c: Update.
1033 * unittests/parse-connection-spec-selftests.c: Update.
1035 * valprint.c: Update.
1038 * windows-nat.c: Update.
1039 * x86-linux-nat.c: Update.
1040 * xml-support.c: Update.
1042 2019-04-08 Tom Tromey <tom@tromey.com>
1044 * xml-support.c: Use C++ exception handling.
1045 * x86-linux-nat.c: Use C++ exception handling.
1046 * windows-nat.c: Use C++ exception handling.
1047 * varobj.c: Use C++ exception handling.
1048 * value.c: Use C++ exception handling.
1049 * valprint.c: Use C++ exception handling.
1050 * valops.c: Use C++ exception handling.
1051 * unittests/parse-connection-spec-selftests.c: Use C++ exception
1053 * unittests/cli-utils-selftests.c: Use C++ exception handling.
1054 * typeprint.c: Use C++ exception handling.
1055 * tui/tui.c: Use C++ exception handling.
1056 * tracefile-tfile.c: Use C++ exception handling.
1057 * top.c: Use C++ exception handling.
1058 * thread.c: Use C++ exception handling.
1059 * target.c: Use C++ exception handling.
1060 * symmisc.c: Use C++ exception handling.
1061 * symfile-mem.c: Use C++ exception handling.
1062 * stack.c: Use C++ exception handling.
1063 * sparc64-linux-tdep.c: Use C++ exception handling.
1064 * solib.c: Use C++ exception handling.
1065 * solib-svr4.c: Use C++ exception handling.
1066 * solib-spu.c: Use C++ exception handling.
1067 * solib-frv.c: Use C++ exception handling.
1068 * solib-dsbt.c: Use C++ exception handling.
1069 * selftest-arch.c: Use C++ exception handling.
1070 * s390-tdep.c: Use C++ exception handling.
1071 * rust-lang.c: Use C++ exception handling.
1072 * rust-exp.y: Use C++ exception handling.
1073 * rs6000-tdep.c: Use C++ exception handling.
1074 * rs6000-aix-tdep.c: Use C++ exception handling.
1075 * riscv-tdep.c: Use C++ exception handling.
1076 * remote.c: Use C++ exception handling.
1077 * remote-fileio.c: Use C++ exception handling.
1078 * record-full.c: Use C++ exception handling.
1079 * record-btrace.c: Use C++ exception handling.
1080 * python/python.c: Use C++ exception handling.
1081 * python/py-value.c: Use C++ exception handling.
1082 * python/py-utils.c: Use C++ exception handling.
1083 * python/py-unwind.c: Use C++ exception handling.
1084 * python/py-type.c: Use C++ exception handling.
1085 * python/py-symbol.c: Use C++ exception handling.
1086 * python/py-record.c: Use C++ exception handling.
1087 * python/py-record-btrace.c: Use C++ exception handling.
1088 * python/py-progspace.c: Use C++ exception handling.
1089 * python/py-prettyprint.c: Use C++ exception handling.
1090 * python/py-param.c: Use C++ exception handling.
1091 * python/py-objfile.c: Use C++ exception handling.
1092 * python/py-linetable.c: Use C++ exception handling.
1093 * python/py-lazy-string.c: Use C++ exception handling.
1094 * python/py-infthread.c: Use C++ exception handling.
1095 * python/py-inferior.c: Use C++ exception handling.
1096 * python/py-gdb-readline.c: Use C++ exception handling.
1097 * python/py-framefilter.c: Use C++ exception handling.
1098 * python/py-frame.c: Use C++ exception handling.
1099 * python/py-finishbreakpoint.c: Use C++ exception handling.
1100 * python/py-cmd.c: Use C++ exception handling.
1101 * python/py-breakpoint.c: Use C++ exception handling.
1102 * python/py-arch.c: Use C++ exception handling.
1103 * printcmd.c: Use C++ exception handling.
1104 * ppc-linux-tdep.c: Use C++ exception handling.
1105 * parse.c: Use C++ exception handling.
1106 * p-valprint.c: Use C++ exception handling.
1107 * objc-lang.c: Use C++ exception handling.
1108 * mi/mi-main.c: Use C++ exception handling.
1109 * mi/mi-interp.c: Use C++ exception handling.
1110 * mi/mi-cmd-stack.c: Use C++ exception handling.
1111 * mi/mi-cmd-break.c: Use C++ exception handling.
1112 * main.c: Use C++ exception handling.
1113 * linux-thread-db.c: Use C++ exception handling.
1114 * linux-tdep.c: Use C++ exception handling.
1115 * linux-nat.c: Use C++ exception handling.
1116 * linux-fork.c: Use C++ exception handling.
1117 * linespec.c: Use C++ exception handling.
1118 * language.c: Use C++ exception handling.
1119 * jit.c: Use C++ exception handling.
1120 * infrun.c: Use C++ exception handling.
1121 * infcmd.c: Use C++ exception handling.
1122 * infcall.c: Use C++ exception handling.
1123 * inf-loop.c: Use C++ exception handling.
1124 * i386-tdep.c: Use C++ exception handling.
1125 * i386-linux-tdep.c: Use C++ exception handling.
1126 * guile/scm-value.c: Use C++ exception handling.
1127 * guile/scm-type.c: Use C++ exception handling.
1128 * guile/scm-symtab.c: Use C++ exception handling.
1129 * guile/scm-symbol.c: Use C++ exception handling.
1130 * guile/scm-pretty-print.c: Use C++ exception handling.
1131 * guile/scm-ports.c: Use C++ exception handling.
1132 * guile/scm-param.c: Use C++ exception handling.
1133 * guile/scm-math.c: Use C++ exception handling.
1134 * guile/scm-lazy-string.c: Use C++ exception handling.
1135 * guile/scm-frame.c: Use C++ exception handling.
1136 * guile/scm-disasm.c: Use C++ exception handling.
1137 * guile/scm-cmd.c: Use C++ exception handling.
1138 * guile/scm-breakpoint.c: Use C++ exception handling.
1139 * guile/scm-block.c: Use C++ exception handling.
1140 * guile/guile-internal.h: Use C++ exception handling.
1141 * gnu-v3-abi.c: Use C++ exception handling.
1142 * gdbtypes.c: Use C++ exception handling.
1143 * frame.c: Use C++ exception handling.
1144 * frame-unwind.c: Use C++ exception handling.
1145 * fbsd-tdep.c: Use C++ exception handling.
1146 * f-valprint.c: Use C++ exception handling.
1147 * exec.c: Use C++ exception handling.
1148 * event-top.c: Use C++ exception handling.
1149 * event-loop.c: Use C++ exception handling.
1150 * eval.c: Use C++ exception handling.
1151 * dwarf2read.c: Use C++ exception handling.
1152 * dwarf2loc.c: Use C++ exception handling.
1153 * dwarf2-frame.c: Use C++ exception handling.
1154 * dwarf2-frame-tailcall.c: Use C++ exception handling.
1155 * dwarf-index-write.c: Use C++ exception handling.
1156 * dwarf-index-cache.c: Use C++ exception handling.
1157 * dtrace-probe.c: Use C++ exception handling.
1158 * disasm-selftests.c: Use C++ exception handling.
1159 * darwin-nat.c: Use C++ exception handling.
1160 * cp-valprint.c: Use C++ exception handling.
1161 * cp-support.c: Use C++ exception handling.
1162 * cp-abi.c: Use C++ exception handling.
1163 * corelow.c: Use C++ exception handling.
1164 * completer.c: Use C++ exception handling.
1165 * compile/compile-object-run.c: Use C++ exception handling.
1166 * compile/compile-object-load.c: Use C++ exception handling.
1167 * compile/compile-cplus-symbols.c: Use C++ exception handling.
1168 * compile/compile-c-symbols.c: Use C++ exception handling.
1169 * common/selftest.c: Use C++ exception handling.
1170 * common/new-op.c: Use C++ exception handling.
1171 * cli/cli-script.c: Use C++ exception handling.
1172 * cli/cli-interp.c: Use C++ exception handling.
1173 * cli/cli-cmds.c: Use C++ exception handling.
1174 * c-varobj.c: Use C++ exception handling.
1175 * btrace.c: Use C++ exception handling.
1176 * breakpoint.c: Use C++ exception handling.
1177 * break-catch-throw.c: Use C++ exception handling.
1178 * arch-utils.c: Use C++ exception handling.
1179 * amd64-tdep.c: Use C++ exception handling.
1180 * ada-valprint.c: Use C++ exception handling.
1181 * ada-typeprint.c: Use C++ exception handling.
1182 * ada-lang.c: Use C++ exception handling.
1183 * aarch64-tdep.c: Use C++ exception handling.
1185 2019-04-08 Tom Tromey <tom@tromey.com>
1187 * xml-support.c (gdb_xml_parser::parse): Update.
1188 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
1189 * value.c (show_convenience): Update.
1190 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
1191 (test_parse_flags_qcs): Update.
1192 * thread.c (thr_try_catch_cmd): Update.
1193 * target.c (target_translate_tls_address): Update.
1194 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1195 (info_frame_command_core, frame_apply_command_count): Update.
1196 * rust-exp.y (rust_lex_exception_test): Update.
1197 * riscv-tdep.c (riscv_print_one_register_info): Update.
1198 * remote.c (remote_target::enable_btrace): Update.
1199 * record-btrace.c (record_btrace_enable_warn): Update.
1200 * python/py-utils.c (gdbpy_convert_exception): Update.
1201 * printcmd.c (do_one_display, print_variable_and_value): Update.
1202 * mi/mi-main.c (mi_print_exception): Update.
1203 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
1204 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1205 * linux-nat.c (linux_nat_target::attach): Update.
1206 * linux-fork.c (class scoped_switch_fork_info): Update.
1207 * infrun.c (displaced_step_prepare): Update.
1208 * infcall.c (call_function_by_hand_dummy): Update.
1209 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
1210 * gnu-v3-abi.c (print_one_vtable): Update.
1211 * frame.c (get_prev_frame_always): Update.
1212 * f-valprint.c (info_common_command_for_block): Update.
1213 * exec.c (try_open_exec_file): Update.
1214 * exceptions.c (print_exception, exception_print)
1215 (exception_fprintf, exception_print_same): Update.
1216 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
1217 * dwarf-index-cache.c (index_cache::store)
1218 (index_cache::lookup_gdb_index): Update.
1219 * darwin-nat.c (maybe_cache_shell): Update.
1220 * cp-valprint.c (cp_print_value_fields): Update.
1221 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
1222 (gcc_cplus_symbol_address): Update.
1223 * compile/compile-c-symbols.c (gcc_convert_symbol)
1224 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
1225 * common/selftest.c: Update.
1226 * common/common-exceptions.h (struct gdb_exception) <message>: Now
1228 (exception_try_scope_entry, exception_try_scope_exit): Don't
1230 (struct exception_try_scope): Remove.
1231 (TRY): Don't use exception_try_scope.
1232 (struct gdb_exception): Add constructor, operator=.
1234 (struct gdb_exception_RETURN_MASK_ALL)
1235 (struct gdb_exception_RETURN_MASK_ERROR)
1236 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
1237 (struct gdb_quit_bad_alloc): Update.
1238 * common/common-exceptions.c (exception_none): Change
1240 (struct catcher) <state, exception>: Initialize inline.
1241 <prev>: Remove member.
1242 (current_catcher): Remove.
1243 (catchers): New global.
1244 (exceptions_state_mc_init): Simplify.
1245 (catcher_pop): Remove.
1246 (exceptions_state_mc, exceptions_state_mc_catch): Update.
1247 (try_scope_depth, exception_try_scope_entry)
1248 (exception_try_scope_exit): Remove.
1249 (throw_exception_sjlj): Update.
1250 (exception_messages, exception_messages_size): Remove.
1251 (throw_it): Simplify.
1252 (gdb_exception_sliced_copy): Remove.
1253 (throw_exception_cxx): Update.
1254 * cli/cli-script.c (script_from_file): Update.
1255 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
1257 * ada-valprint.c (ada_val_print): Update.
1258 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
1259 (create_excep_cond_exprs): Update.
1261 2019-04-08 Tom Tromey <tom@tromey.com>
1263 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
1264 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
1265 (TRY, CATCH, END_CATCH): Remove some definitions.
1266 * common/common-exceptions.c: Don't use GDB_XCPT.
1267 (catcher_list_size): Remove.
1268 (throw_exception, throw_it): Simplify.
1270 2019-04-05 Tom Tromey <tom@tromey.com>
1272 Revert the header-sorting patch.
1273 * ft32-tdep.c: Revert.
1274 * frv-tdep.c: Revert.
1275 * frv-linux-tdep.c: Revert.
1277 * frame-unwind.c: Revert.
1278 * frame-base.c: Revert.
1279 * fork-child.c: Revert.
1280 * findvar.c: Revert.
1281 * findcmd.c: Revert.
1282 * filesystem.c: Revert.
1283 * filename-seen-cache.h: Revert.
1284 * filename-seen-cache.c: Revert.
1285 * fbsd-tdep.c: Revert.
1286 * fbsd-nat.h: Revert.
1287 * fbsd-nat.c: Revert.
1288 * f-valprint.c: Revert.
1289 * f-typeprint.c: Revert.
1291 * extension.h: Revert.
1292 * extension.c: Revert.
1293 * extension-priv.h: Revert.
1294 * expprint.c: Revert.
1297 * exceptions.c: Revert.
1298 * event-top.c: Revert.
1299 * event-loop.c: Revert.
1301 * elfread.c: Revert.
1302 * dwarf2read.h: Revert.
1303 * dwarf2read.c: Revert.
1304 * dwarf2loc.c: Revert.
1305 * dwarf2expr.h: Revert.
1306 * dwarf2expr.c: Revert.
1307 * dwarf2-frame.c: Revert.
1308 * dwarf2-frame-tailcall.c: Revert.
1309 * dwarf-index-write.h: Revert.
1310 * dwarf-index-write.c: Revert.
1311 * dwarf-index-common.c: Revert.
1312 * dwarf-index-cache.h: Revert.
1313 * dwarf-index-cache.c: Revert.
1314 * dummy-frame.c: Revert.
1315 * dtrace-probe.c: Revert.
1318 * disasm-selftests.c: Revert.
1319 * dictionary.c: Revert.
1320 * dicos-tdep.c: Revert.
1321 * demangle.c: Revert.
1324 * darwin-nat.h: Revert.
1325 * darwin-nat.c: Revert.
1326 * darwin-nat-info.c: Revert.
1327 * d-valprint.c: Revert.
1328 * d-namespace.c: Revert.
1331 * csky-tdep.c: Revert.
1332 * csky-linux-tdep.c: Revert.
1333 * cris-tdep.c: Revert.
1334 * cris-linux-tdep.c: Revert.
1335 * cp-valprint.c: Revert.
1336 * cp-support.c: Revert.
1337 * cp-namespace.c: Revert.
1339 * corelow.c: Revert.
1340 * corefile.c: Revert.
1341 * continuations.c: Revert.
1342 * completer.h: Revert.
1343 * completer.c: Revert.
1344 * complaints.c: Revert.
1345 * coffread.c: Revert.
1346 * coff-pe-read.c: Revert.
1347 * cli-out.h: Revert.
1348 * cli-out.c: Revert.
1349 * charset.c: Revert.
1350 * c-varobj.c: Revert.
1351 * c-valprint.c: Revert.
1352 * c-typeprint.c: Revert.
1354 * buildsym.c: Revert.
1355 * buildsym-legacy.c: Revert.
1356 * build-id.h: Revert.
1357 * build-id.c: Revert.
1359 * bsd-uthread.c: Revert.
1360 * breakpoint.h: Revert.
1361 * breakpoint.c: Revert.
1362 * break-catch-throw.c: Revert.
1363 * break-catch-syscall.c: Revert.
1364 * break-catch-sig.c: Revert.
1365 * blockframe.c: Revert.
1367 * bfin-tdep.c: Revert.
1368 * bfin-linux-tdep.c: Revert.
1369 * bfd-target.c: Revert.
1371 * ax-general.c: Revert.
1374 * avr-tdep.c: Revert.
1376 * auto-load.c: Revert.
1377 * arm-wince-tdep.c: Revert.
1378 * arm-tdep.c: Revert.
1379 * arm-symbian-tdep.c: Revert.
1380 * arm-pikeos-tdep.c: Revert.
1381 * arm-obsd-tdep.c: Revert.
1382 * arm-nbsd-tdep.c: Revert.
1383 * arm-nbsd-nat.c: Revert.
1384 * arm-linux-tdep.c: Revert.
1385 * arm-linux-nat.c: Revert.
1386 * arm-fbsd-tdep.c: Revert.
1387 * arm-fbsd-nat.c: Revert.
1388 * arm-bsd-tdep.c: Revert.
1389 * arch-utils.c: Revert.
1390 * arc-tdep.c: Revert.
1391 * arc-newlib-tdep.c: Revert.
1392 * annotate.h: Revert.
1393 * annotate.c: Revert.
1394 * amd64-windows-tdep.c: Revert.
1395 * amd64-windows-nat.c: Revert.
1396 * amd64-tdep.c: Revert.
1397 * amd64-sol2-tdep.c: Revert.
1398 * amd64-obsd-tdep.c: Revert.
1399 * amd64-obsd-nat.c: Revert.
1400 * amd64-nbsd-tdep.c: Revert.
1401 * amd64-nbsd-nat.c: Revert.
1402 * amd64-nat.c: Revert.
1403 * amd64-linux-tdep.c: Revert.
1404 * amd64-linux-nat.c: Revert.
1405 * amd64-fbsd-tdep.c: Revert.
1406 * amd64-fbsd-nat.c: Revert.
1407 * amd64-dicos-tdep.c: Revert.
1408 * amd64-darwin-tdep.c: Revert.
1409 * amd64-bsd-nat.c: Revert.
1410 * alpha-tdep.c: Revert.
1411 * alpha-obsd-tdep.c: Revert.
1412 * alpha-nbsd-tdep.c: Revert.
1413 * alpha-mdebug-tdep.c: Revert.
1414 * alpha-linux-tdep.c: Revert.
1415 * alpha-linux-nat.c: Revert.
1416 * alpha-bsd-tdep.c: Revert.
1417 * alpha-bsd-nat.c: Revert.
1418 * aix-thread.c: Revert.
1420 * addrmap.c: Revert.
1421 * ada-varobj.c: Revert.
1422 * ada-valprint.c: Revert.
1423 * ada-typeprint.c: Revert.
1424 * ada-tasks.c: Revert.
1425 * ada-lang.c: Revert.
1426 * aarch64-tdep.c: Revert.
1427 * aarch64-ravenscar-thread.c: Revert.
1428 * aarch64-newlib-tdep.c: Revert.
1429 * aarch64-linux-tdep.c: Revert.
1430 * aarch64-linux-nat.c: Revert.
1431 * aarch64-fbsd-tdep.c: Revert.
1432 * aarch64-fbsd-nat.c: Revert.
1433 * aarch32-linux-nat.c: Revert.
1435 2019-04-05 Tom Tromey <tom@tromey.com>
1437 * ft32-tdep.c: Sort headers.
1438 * frv-tdep.c: Sort headers.
1439 * frv-linux-tdep.c: Sort headers.
1440 * frame.c: Sort headers.
1441 * frame-unwind.c: Sort headers.
1442 * frame-base.c: Sort headers.
1443 * fork-child.c: Sort headers.
1444 * findvar.c: Sort headers.
1445 * findcmd.c: Sort headers.
1446 * filesystem.c: Sort headers.
1447 * filename-seen-cache.h: Sort headers.
1448 * filename-seen-cache.c: Sort headers.
1449 * fbsd-tdep.c: Sort headers.
1450 * fbsd-nat.h: Sort headers.
1451 * fbsd-nat.c: Sort headers.
1452 * f-valprint.c: Sort headers.
1453 * f-typeprint.c: Sort headers.
1454 * f-lang.c: Sort headers.
1455 * extension.h: Sort headers.
1456 * extension.c: Sort headers.
1457 * extension-priv.h: Sort headers.
1458 * expprint.c: Sort headers.
1459 * exec.h: Sort headers.
1460 * exec.c: Sort headers.
1461 * exceptions.c: Sort headers.
1462 * event-top.c: Sort headers.
1463 * event-loop.c: Sort headers.
1464 * eval.c: Sort headers.
1465 * elfread.c: Sort headers.
1466 * dwarf2read.h: Sort headers.
1467 * dwarf2read.c: Sort headers.
1468 * dwarf2loc.c: Sort headers.
1469 * dwarf2expr.h: Sort headers.
1470 * dwarf2expr.c: Sort headers.
1471 * dwarf2-frame.c: Sort headers.
1472 * dwarf2-frame-tailcall.c: Sort headers.
1473 * dwarf-index-write.h: Sort headers.
1474 * dwarf-index-write.c: Sort headers.
1475 * dwarf-index-common.c: Sort headers.
1476 * dwarf-index-cache.h: Sort headers.
1477 * dwarf-index-cache.c: Sort headers.
1478 * dummy-frame.c: Sort headers.
1479 * dtrace-probe.c: Sort headers.
1480 * disasm.h: Sort headers.
1481 * disasm.c: Sort headers.
1482 * disasm-selftests.c: Sort headers.
1483 * dictionary.c: Sort headers.
1484 * dicos-tdep.c: Sort headers.
1485 * demangle.c: Sort headers.
1486 * dcache.h: Sort headers.
1487 * dcache.c: Sort headers.
1488 * darwin-nat.h: Sort headers.
1489 * darwin-nat.c: Sort headers.
1490 * darwin-nat-info.c: Sort headers.
1491 * d-valprint.c: Sort headers.
1492 * d-namespace.c: Sort headers.
1493 * d-lang.c: Sort headers.
1494 * ctf.c: Sort headers.
1495 * csky-tdep.c: Sort headers.
1496 * csky-linux-tdep.c: Sort headers.
1497 * cris-tdep.c: Sort headers.
1498 * cris-linux-tdep.c: Sort headers.
1499 * cp-valprint.c: Sort headers.
1500 * cp-support.c: Sort headers.
1501 * cp-namespace.c: Sort headers.
1502 * cp-abi.c: Sort headers.
1503 * corelow.c: Sort headers.
1504 * corefile.c: Sort headers.
1505 * continuations.c: Sort headers.
1506 * completer.h: Sort headers.
1507 * completer.c: Sort headers.
1508 * complaints.c: Sort headers.
1509 * coffread.c: Sort headers.
1510 * coff-pe-read.c: Sort headers.
1511 * cli-out.h: Sort headers.
1512 * cli-out.c: Sort headers.
1513 * charset.c: Sort headers.
1514 * c-varobj.c: Sort headers.
1515 * c-valprint.c: Sort headers.
1516 * c-typeprint.c: Sort headers.
1517 * c-lang.c: Sort headers.
1518 * buildsym.c: Sort headers.
1519 * buildsym-legacy.c: Sort headers.
1520 * build-id.h: Sort headers.
1521 * build-id.c: Sort headers.
1522 * btrace.c: Sort headers.
1523 * bsd-uthread.c: Sort headers.
1524 * breakpoint.h: Sort headers.
1525 * breakpoint.c: Sort headers.
1526 * break-catch-throw.c: Sort headers.
1527 * break-catch-syscall.c: Sort headers.
1528 * break-catch-sig.c: Sort headers.
1529 * blockframe.c: Sort headers.
1530 * block.c: Sort headers.
1531 * bfin-tdep.c: Sort headers.
1532 * bfin-linux-tdep.c: Sort headers.
1533 * bfd-target.c: Sort headers.
1534 * bcache.c: Sort headers.
1535 * ax-general.c: Sort headers.
1536 * ax-gdb.h: Sort headers.
1537 * ax-gdb.c: Sort headers.
1538 * avr-tdep.c: Sort headers.
1539 * auxv.c: Sort headers.
1540 * auto-load.c: Sort headers.
1541 * arm-wince-tdep.c: Sort headers.
1542 * arm-tdep.c: Sort headers.
1543 * arm-symbian-tdep.c: Sort headers.
1544 * arm-pikeos-tdep.c: Sort headers.
1545 * arm-obsd-tdep.c: Sort headers.
1546 * arm-nbsd-tdep.c: Sort headers.
1547 * arm-nbsd-nat.c: Sort headers.
1548 * arm-linux-tdep.c: Sort headers.
1549 * arm-linux-nat.c: Sort headers.
1550 * arm-fbsd-tdep.c: Sort headers.
1551 * arm-fbsd-nat.c: Sort headers.
1552 * arm-bsd-tdep.c: Sort headers.
1553 * arch-utils.c: Sort headers.
1554 * arc-tdep.c: Sort headers.
1555 * arc-newlib-tdep.c: Sort headers.
1556 * annotate.h: Sort headers.
1557 * annotate.c: Sort headers.
1558 * amd64-windows-tdep.c: Sort headers.
1559 * amd64-windows-nat.c: Sort headers.
1560 * amd64-tdep.c: Sort headers.
1561 * amd64-sol2-tdep.c: Sort headers.
1562 * amd64-obsd-tdep.c: Sort headers.
1563 * amd64-obsd-nat.c: Sort headers.
1564 * amd64-nbsd-tdep.c: Sort headers.
1565 * amd64-nbsd-nat.c: Sort headers.
1566 * amd64-nat.c: Sort headers.
1567 * amd64-linux-tdep.c: Sort headers.
1568 * amd64-linux-nat.c: Sort headers.
1569 * amd64-fbsd-tdep.c: Sort headers.
1570 * amd64-fbsd-nat.c: Sort headers.
1571 * amd64-dicos-tdep.c: Sort headers.
1572 * amd64-darwin-tdep.c: Sort headers.
1573 * amd64-bsd-nat.c: Sort headers.
1574 * alpha-tdep.c: Sort headers.
1575 * alpha-obsd-tdep.c: Sort headers.
1576 * alpha-nbsd-tdep.c: Sort headers.
1577 * alpha-mdebug-tdep.c: Sort headers.
1578 * alpha-linux-tdep.c: Sort headers.
1579 * alpha-linux-nat.c: Sort headers.
1580 * alpha-bsd-tdep.c: Sort headers.
1581 * alpha-bsd-nat.c: Sort headers.
1582 * aix-thread.c: Sort headers.
1583 * agent.c: Sort headers.
1584 * addrmap.c: Sort headers.
1585 * ada-varobj.c: Sort headers.
1586 * ada-valprint.c: Sort headers.
1587 * ada-typeprint.c: Sort headers.
1588 * ada-tasks.c: Sort headers.
1589 * ada-lang.c: Sort headers.
1590 * aarch64-tdep.c: Sort headers.
1591 * aarch64-ravenscar-thread.c: Sort headers.
1592 * aarch64-newlib-tdep.c: Sort headers.
1593 * aarch64-linux-tdep.c: Sort headers.
1594 * aarch64-linux-nat.c: Sort headers.
1595 * aarch64-fbsd-tdep.c: Sort headers.
1596 * aarch64-fbsd-nat.c: Sort headers.
1597 * aarch32-linux-nat.c: Sort headers.
1599 2019-04-04 Tom Tromey <tom@tromey.com>
1601 * varobj.c (varobj_create): Update.
1602 * rust-exp.y (struct rust_parser) <update_innermost_block,
1603 lookup_symbol>: New methods.
1604 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
1606 (rust_parser::rust_lookup_type)
1607 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
1608 * printcmd.c (display_command, do_one_display): Update.
1609 * parser-defs.h (struct parser_state) <parser_state>: Add
1610 "tracker" parameter.
1611 (block_tracker): New member.
1612 (class innermost_block_tracker) <innermost_block_tracker>: Add
1614 <reset>: Remove method.
1615 (innermost_block): Don't declare.
1616 (null_post_parser): Update.
1617 * parse.c (innermost_block): Remove global.
1618 (write_dollar_variable): Update.
1619 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
1620 Remove "tracker_types" parameter.
1621 (parse_expression): Add "tracker" parameter.
1622 (parse_expression_for_completion): Update.
1623 (null_post_parser): Add "tracker" parameter.
1624 * p-exp.y: Update rules.
1625 * m2-exp.y: Update rules.
1626 * language.h (struct language_defn) <la_post_parser>: Add
1627 "tracker" parameter.
1628 * go-exp.y: Update rules.
1629 * f-exp.y: Update rules.
1630 * expression.h (parse_expression, parse_exp_1): Add "tracker"
1632 * d-exp.y: Update rules.
1633 * c-exp.y: Update rules.
1634 * breakpoint.c (set_breakpoint_condition): Create an
1635 innermost_block_tracker.
1636 (watch_command_1): Likewise.
1637 * ada-lang.c (resolve): Add "tracker" parameter.
1638 (resolve_subexp): Likewise.
1639 * ada-exp.y (write_var_from_sym): Update.
1641 2019-04-04 Tom Tromey <tom@tromey.com>
1643 * type-stack.h: New file.
1644 * type-stack.c: New file.
1645 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
1647 (insert_into_type_stack, insert_type, push_type, push_type_int)
1648 (insert_type_address_space, pop_type, pop_type_int)
1649 (pop_typelist, pop_type_stack, append_type_stack)
1650 (push_type_stack, get_type_stack, push_typelist)
1651 (follow_type_instance_flags, follow_types): Don't declare.
1652 * parse.c (type_stack): Remove global.
1653 (parse_exp_in_context): Update.
1654 (insert_into_type_stack, insert_type, push_type, push_type_int)
1655 (insert_type_address_space, pop_type, pop_type_int)
1656 (pop_typelist, pop_type_stack, append_type_stack)
1657 (push_type_stack, get_type_stack, push_typelist)
1658 (follow_type_instance_flags, follow_types): Remove (moved to
1660 * f-exp.y (type_stack): New global.
1662 (push_kind_type, f_parse): Update.
1663 * d-exp.y (type_stack): New global.
1666 * c-exp.y (struct c_parse_state) <type_stack>: New member.
1668 * Makefile.in (COMMON_SFILES): Add type-stack.c.
1669 (HFILES_NO_SRCDIR): Add type-stack.h.
1671 2019-04-04 Tom Tromey <tom@tromey.com>
1673 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
1674 (rust_parser::convert_ast_to_expression, rust_parse)
1675 (rust_lex_test_completion, rust_lex_tests): Update.
1676 * parser-defs.h (struct expr_completion_state): New.
1677 (struct parser_state) <parser_state>: Add completion parameter.
1678 <mark_struct_expression, mark_completion_tag>: New methods.
1679 <parse_completion, m_completion_state>: New members.
1680 (prefixify_expression, null_post_parser): Update.
1681 (mark_struct_expression, mark_completion_tag): Don't declare.
1682 * parse.c (parse_completion, expout_last_struct)
1683 (expout_tag_completion_type, expout_completion_name): Remove
1685 (parser_state::mark_struct_expression)
1686 (parser_state::mark_completion_tag): Now methods.
1687 (prefixify_expression): Add last_struct parameter.
1688 (prefixify_subexp): Likewise.
1689 (parse_exp_1): Update.
1690 (parse_exp_in_context): Add cstate parameter. Update.
1691 (parse_expression_for_completion): Create an
1692 expr_completion_state.
1693 (null_post_parser): Add "completion" parameter.
1694 * p-exp.y: Update rules.
1696 * language.h (struct language_defn) <la_post_parser>: Add
1697 "completing" parameter.
1698 * go-exp.y: Update rules.
1699 (lex_one_token): Update.
1700 * expression.h (parse_completion): Don't declare.
1701 * d-exp.y: Update rules.
1702 (lex_one_token): Update rules.
1703 * c-exp.y: Update rules.
1704 (lex_one_token): Update.
1705 * ada-lang.c (resolve): Add "parse_completion" parameter.
1706 (resolve_subexp): Likewise.
1707 (ada_resolve_function): Likewise.
1709 2019-04-04 Tom Tromey <tom@tromey.com>
1711 * parser-defs.h (struct parser_state) <start_arglist,
1712 end_arglist>: New methods.
1713 <arglist_len, m_funcall_chain>: New members.
1714 (arglist_len, start_arglist, end_arglist): Don't declare.
1715 * parse.c (arglist_len, funcall_chain): Remove global.
1716 (start_arglist, end_arglist): Remove functions.
1717 (parse_exp_in_context): Update.
1718 * p-exp.y: Update rules.
1719 * m2-exp.y: Update rules.
1720 * go-exp.y: Update rules.
1721 * f-exp.y: Update rules.
1722 * d-exp.y: Update rules.
1723 * c-exp.y: Update rules.
1725 2019-04-04 Tom Tromey <tom@tromey.com>
1727 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
1728 lex_operator, push_back>: New methods.
1730 (rust_parser::lex_hex, lex_escape): Rename and update.
1731 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
1732 (rust_parser::lex_operator): Rename and update.
1733 (rust_parser::lex_number, rustyylex, rustyyerror)
1734 (rust_lex_test_init, rust_lex_test_sequence)
1735 (rust_lex_test_push_back, rust_lex_tests): Update.
1736 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
1738 <lexptr, prev_lexptr>: New members.
1739 (lexptr, prev_lexptr): Don't declare.
1740 * parse.c (lexptr, prev_lexptr): Remove globals.
1741 (parse_exp_in_context): Update.
1742 * p-exp.y (yylex, yyerror): Update.
1743 * m2-exp.y (parse_number, yylex, yyerror): Update.
1744 * go-exp.y (lex_one_token, yyerror): Update.
1745 * f-exp.y (match_string_literal, yylex, yyerror): Update.
1746 * d-exp.y (lex_one_token, yyerror): Update.
1747 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
1748 (lex_one_token, yyerror): Update.
1749 * ada-lex.l (YY_INPUT): Update.
1750 (rewind_to_char): Update.
1751 * ada-exp.y (yyerror): Update.
1753 2019-04-04 Tom Tromey <tom@tromey.com>
1755 * rust-exp.y (rustyylex, rust_lex_tests): Update.
1756 * parser-defs.h (struct parser_state) <parser_state>: Add new
1758 <comma_terminates>: New member.
1759 (comma_terminates): Don't declare global.
1760 * parse.c (comma_terminates): Remove global.
1761 (parse_exp_in_context): Update.
1762 * p-exp.y (yylex): Update.
1763 * m2-exp.y (yylex): Update.
1764 * go-exp.y (lex_one_token): Update.
1765 * f-exp.y (yylex): Update.
1766 * d-exp.y (lex_one_token): Update.
1767 * c-exp.y (lex_one_token): Update.
1768 * ada-lex.l: Update.
1770 2019-04-04 Tom Tromey <tom@tromey.com>
1772 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
1773 (rustyylex, rust_lex_test_init, rust_lex_test_one)
1774 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
1775 * parser-defs.h (paren_depth): Don't declare.
1776 * parse.c (paren_depth): Remove global.
1777 (parse_exp_in_context): Update.
1778 * p-exp.y (paren_depth): New global.
1779 (pascal_parse): Initialize it.
1780 * m2-exp.y (paren_depth): New global.
1781 (m2_parse): Initialize it.
1782 * go-exp.y (paren_depth): New global.
1783 (go_parse): Initialize it.
1784 * f-exp.y (paren_depth): New global.
1785 (f_parse): Initialize it.
1786 * d-exp.y (paren_depth): New global.
1787 (d_parse): Initialize it.
1788 * c-exp.y (paren_depth): New global.
1789 (c_parse): Initialize it.
1790 * ada-lex.l (paren_depth): New global.
1791 (lexer_init): Initialize it.
1793 2019-04-04 Tom Tromey <tom@tromey.com>
1795 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
1796 (rust_parser::convert_ast_to_type)
1797 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
1798 * parser-defs.h (struct parser_state) <parser_state>: Add
1799 parameters. Initialize new members.
1800 <expression_context_block, expression_context_pc>: New members.
1801 * parse.c (expression_context_block, expression_context_pc):
1803 (parse_exp_in_context): Update.
1804 * p-exp.y: Update all rules.
1806 * m2-exp.y: Update all rules.
1808 * go-exp.y (yylex): Update.
1809 * f-exp.y (yylex): Update.
1810 * d-exp.y: Update all rules.
1812 * c-exp.y: Update all rules.
1813 (lex_one_token, classify_name, yylex, c_parse): Update.
1814 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
1816 2019-04-04 Tom Tromey <tom@tromey.com>
1818 * gdbarch.h, gdbarch.c: Rebuild.
1819 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
1821 (struct stap_parse_info): Replace "parser_state" with
1823 * parser-defs.h (struct expr_builder): Rename from "parser_state".
1824 (parser_state): New class.
1825 * parse.c (expr_builder): Rename.
1826 (expr_builder::release): Rename.
1827 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
1828 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
1829 (write_exp_elt_longcst, write_exp_elt_floatcst)
1830 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
1831 (write_exp_string_vector, write_exp_bitstring)
1832 (write_exp_msymbol, mark_struct_expression)
1833 (write_dollar_variable)
1834 (insert_type_address_space, increase_expout_size): Replace
1835 "parser_state" with "expr_builder".
1836 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
1837 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
1838 "parser_state" with "expr_builder".
1840 2019-04-04 Tom Tromey <tom@tromey.com>
1842 * rust-exp.y: Replace "parse_language" with method call.
1844 (yylex): Replace "parse_language" with method call.
1846 (yylex): Replace "parse_language" with method call.
1847 * go-exp.y (classify_name): Replace "parse_language" with method
1849 * f-exp.y (yylex): Replace "parse_language" with method call.
1850 * d-exp.y (lex_one_token): Replace "parse_language" with method
1853 (lex_one_token, classify_name, yylex): Replace "parse_language"
1855 * ada-exp.y (find_primitive_type, type_char)
1856 (type_system_address): Replace "parse_language" with method call.
1858 2019-04-04 Tom Tromey <tom@tromey.com>
1860 * rust-exp.y: Replace "parse_gdbarch" with method call.
1861 * parse.c (write_dollar_variable, insert_type_address_space):
1862 Replace "parse_gdbarch" with method call.
1863 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
1865 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
1867 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
1868 "parse_gdbarch" with method call.
1869 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
1871 * f-exp.y (parse_type, parse_f_type, yylex): Replace
1872 "parse_gdbarch" with method call.
1873 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
1874 "parse_gdbarch" with method call.
1875 * c-exp.y (parse_type, parse_number, classify_name): Replace
1876 "parse_gdbarch" with method call.
1877 * ada-lex.l: Replace "parse_gdbarch" with method call.
1878 * ada-exp.y (parse_type, find_primitive_type, type_char)
1879 (type_system_address): Replace "parse_gdbarch" with method call.
1881 2019-04-04 Tom Tromey <tom@tromey.com>
1883 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
1884 * stap-probe.c (stap_parse_argument): Update.
1885 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
1886 initial_size parameter.
1887 * rust-exp.y (rust_lex_tests): Update.
1888 * parse.c (parser_state): Update.
1889 (parse_exp_in_context): Update.
1890 * parser-defs.h (struct parser_state) <parser_state>: Remove
1891 "initial_size" parameter.
1893 2019-04-04 Tom Tromey <tom@tromey.com>
1895 * parser-defs.h (increase_expout_size): Don't declare.
1896 * parse.c (increase_expout_size): Now static.
1898 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
1900 * gnu-nat.c (gnu_nat_target::wait): Fix
1901 target_waitstatus_to_string call.
1903 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
1905 * eval.c (evaluate_subexp_standard): Handle internal functions
1906 during Fortran function call handling.
1908 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
1910 * NEWS: Mention new internal functions.
1911 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
1912 (read_base_type): Use dwarf2_init_complex_target_type.
1913 * value.c (creal_internal_fn): New function.
1914 (cimag_internal_fn): New function.
1915 (_initialize_values): Register new internal functions.
1917 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1919 * infrun.c (stop_all_threads): If debug_infrun, always
1920 trace the wait status after wait_one, using
1921 target_waitstatus_to_string and target_pid_to_str.
1922 (handle_inferior_event): Replace various trace of
1923 wait status kind by a single trace.
1924 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
1925 wait status kind image by target_waitstatus_to_string.
1926 * target/waitstatus.c (target_waitstatus_to_string): Fix
1929 2019-04-01 Tom Tromey <tromey@adacore.com>
1932 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
1934 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
1935 Pedro Alves <palves@redhat.com>
1937 * top.c (quit_force): Call 'finalize_values'.
1938 * value.c (finalize_values): New function.
1939 * value.h (finalize_values): Declare.
1941 2019-03-30 Eli Zaretskii <eliz@gnu.org>
1943 * NEWS: Announce $_gdb_major and $_gdb_minor.
1945 * top.c (init_gdb_version_vars): New function.
1946 (gdb_init): Call init_gdb_version_vars.
1948 2019-03-29 Tom Tromey <tromey@adacore.com>
1950 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
1951 help text. Remove dead code.
1953 2019-03-29 Keith Seitz <keiths@redhat.com>
1955 From Siddhesh Poyarekar:
1956 * f-lang.h (f77_get_upperbound): Return LONGEST.
1957 (f77_get_lowerbound): Likewise.
1958 * f-typeprint.c (f_type_print_varspec_suffix): Expand
1959 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
1961 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
1962 plongest to format print it.
1963 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
1964 (f77_get_upperbound): Likewise.
1965 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
1966 LOWER_BOUND to LONGEST.
1967 (f77_create_arrayprint_offset_tbl): Likewise.
1969 2019-03-29 Keith Seitz <keiths@redhat.com>
1971 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1972 %s/pulongest for TYPE_LENGTH instead of %d in format
1974 * ada-typerint.c (ada_print_type): Likewise.
1975 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
1976 * compile/compile-c-support.c (generate_register_struct): Likewise.
1977 * gdbtypes.c (recursive_dump_type): Likewise.
1978 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
1979 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
1980 instead of %d in format strings.
1981 * riscv-tdep.c (riscv_type_alignment): Cast second argument
1982 to std::min to ULONGEST.
1983 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
1984 instead of %d in format strings.
1985 * tracepoint.c (info_scope_command): Likewise.
1986 * typeprint.c (print_offset_data::update)
1987 (print_offset_data::finish): Likewise.
1988 * xtensa-tdep.c (xtensa_store_return_value)
1989 (xtensa_push_dummy_call): Likewise.
1991 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
1993 * windows-nat.c (display_selector): Fixed format specifications
1996 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1998 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
2000 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
2002 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
2003 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
2004 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
2005 (nios2_linux_init_abi): Install it.
2007 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2009 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
2011 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2013 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
2015 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2016 Tom Tromey <tromey@adacore.com>
2018 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
2020 2019-03-26 Joel Brobecker <brobecker@adacore.com>
2022 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
2023 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
2024 method to compute the bounds of range types. Also print "[evaluated]"
2025 if the bounds' values come from a dynamic evaluation.
2027 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
2029 * cp-valprint.c (cp_print_value_fields): Don't print trailing
2030 whitespace when pretty printing is on.
2032 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2034 * ppc-linux-nat.c: Add include.
2036 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2038 * NEWS: Mention AArch64 Pointer Authentication.
2040 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2042 * arm-linux-nat.c: Add include.
2044 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
2046 * source-cache.c (source_cache::get_source_lines): Re-read
2047 fullname after calling open_source_file.
2049 2019-03-25 John Baldwin <jhb@FreeBSD.org>
2051 * NEWS: Mention TLS support for FreeBSD.
2053 2019-03-25 Tom Tromey <tromey@adacore.com>
2055 * minsyms.c (BUNCH_SIZE): Update comment.
2056 (~minimal_symbol_reader): Remove old comment.
2057 (compact_minimal_symbols): Update comment.
2058 (minimal_symbol_reader::install): Remove old comment. Update
2061 2019-03-25 Alan Hayward <alan.hayward@arm.com>
2063 * s390-linux-nat.c: Add include.
2065 2019-03-25 Alan Hayward <alan.hayward@arm.com>
2067 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2068 Call linux_get_hwcap.
2069 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
2071 (aarch64_linux_get_hwcap): Remove function.
2072 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
2074 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
2076 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2077 * linux-tdep.c (linux_get_hwcap): Add function.
2078 (linux_get_hwcap2): Likewise.
2079 * linux-tdep.h (linux_get_hwcap): Add declaration.
2080 (linux_get_hwcap2): Likewise.
2081 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
2082 (ppc_linux_get_hwcap2): Likewise.
2083 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
2085 (ppc_linux_nat_target::insert_watchpoint): Likewise.
2086 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
2087 (ppc_linux_nat_target::read_description): Likewise.
2088 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
2089 * s390-linux-nat.c: Likewise.
2090 * s390-linux-tdep.c (s390_core_read_description): Likewise.
2092 2019-03-24 Tom Tromey <tom@tromey.com>
2094 * ada-lang.c (standard_lookup): Simplify initialization.
2095 (ada_lookup_symbol_nonlocal): Simplify return.
2096 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
2097 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
2098 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
2099 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
2101 * solib.c (solib_global_lookup): Simplify.
2102 * symtab.c (null_block_symbol): Remove.
2103 (symbol_cache_lookup): Simplify returns.
2104 (lookup_language_this): Simplify returns.
2105 (lookup_symbol_aux): Simplify return.
2106 (lookup_local_symbol): Simplify returns.
2107 (lookup_global_symbol_from_objfile): Simplify return.
2108 (lookup_symbol_in_objfile_symtabs)
2109 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
2110 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
2111 (lookup_static_symbol, lookup_global_symbol): Simplify return.
2112 * cp-namespace.c (cp_lookup_bare_symbol)
2113 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
2114 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
2115 (cp_lookup_nested_symbol): Don't use null_block_symbol.
2116 (cp_lookup_symbol_via_imports): Simplify initialization.
2117 (find_symbol_in_baseclass): Likewise.
2118 * symtab.h (null_block_symbol): Remove.
2119 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
2120 (d_lookup_nested_symbol, d_lookup_symbol_imports)
2121 (d_lookup_symbol_module): Likewise.
2122 (find_symbol_in_baseclass): Simplify initialization.
2124 2019-03-24 Tom Tromey <tom@tromey.com>
2126 * expression.h: Don't include symtab.h.
2127 (struct block): Forward declare.
2129 2019-03-24 Tom Tromey <tom@tromey.com>
2131 * c-exp.y (typebase): Remove casts.
2132 * gdbtypes.c (lookup_unsigned_typename, )
2133 (lookup_signed_typename): Remove cast.
2134 * eval.c (parse_to_comma_and_eval): Remove cast.
2135 * parse.c (write_dollar_variable): Remove cast.
2136 * block.h (struct block) <superblock>: Now const.
2137 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
2138 * psymtab.c (psym_map_matching_symbols): Make "block" const.
2139 (map_block): Make "block" const.
2140 * symfile.h (struct quick_symbol_functions)
2141 <map_matching_symbols>: Constify block argument to "callback".
2142 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
2144 (find_pc_sect_compunit_symtab): Make "b" const.
2145 (find_symbol_at_address): Likewise.
2146 (search_symbols): Likewise.
2147 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
2148 (dw2_debug_names_lookup_symbol): Likewise.
2149 (dw2_map_matching_symbols): Update.
2150 * p-valprint.c (pascal_val_print): Remove "block".
2151 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
2152 (aux_add_nonlocal_symbols): Make "block" const.
2153 (resolve_subexp): Remove cast.
2154 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
2156 (iterate_over_file_blocks): Likewise.
2157 * f-exp.y (%union) <bval>: Remove.
2158 * coffread.c (patch_opaque_types): Make "b" const.
2159 * spu-tdep.c (spu_catch_start): Make "block" const.
2160 * c-valprint.c (print_unpacked_pointer): Remove "block".
2161 * symmisc.c (dump_symtab_1): Make "b" const.
2162 (block_depth): Make "block" const.
2163 * d-exp.y (%union) <bval>: Remove.
2164 * cp-support.h (cp_lookup_rtti_type): Update.
2165 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
2166 * psymtab.c (psym_lookup_symbol): Make "block" const.
2167 (maintenance_check_psymtabs): Make "b" const.
2168 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
2169 (enumerate_locals, enumerate_args): Update.
2170 * python/py-symtab.c (stpy_global_block): Make "block" const.
2171 (stpy_static_block): Likewise.
2172 * inline-frame.c (block_starting_point_at): Make "new_block"
2174 * block.c (find_block_in_blockvector): Make return type const.
2175 (blockvector_for_pc_sect): Make "b" const.
2176 (find_block_in_blockvector): Make "b" const.
2178 2019-03-23 Tom Tromey <tom@tromey.com>
2180 * varobj.c (varobj_create): Update.
2181 * symfile.c (clear_symtab_users): Don't reset innermost_block.
2182 * printcmd.c (display_command, do_one_display): Don't reset
2184 * parser-defs.h (enum innermost_block_tracker_type): Move to
2186 (innermost_block): Update comment.
2187 * parse.c (parse_exp_1): Add tracker_types parameter.
2188 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
2189 tracker_types parameter. Reset innermost_block.
2190 (parse_exp_in_context): Remove.
2191 (parse_expression_for_completion): Update.
2192 * objfiles.c (~objfile): Don't reset expression_context_block or
2194 * expression.h (enum innermost_block_tracker_type): Move from
2196 (parse_exp_1): Add tracker_types parameter.
2197 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
2198 reset innermost_block.
2200 2019-03-23 Tom Tromey <tom@tromey.com>
2202 * objfiles.h: Include bcache.h.
2204 2019-03-23 Tom Tromey <tom@tromey.com>
2206 * linespec.c (get_current_search_block): Use
2207 scoped_restore_current_language.
2208 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
2210 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2211 Jiong Wang <jiong.wang@arm.com>
2213 * aarch64-linux-tdep.c
2214 (aarch64_linux_iterate_over_regset_sections): Check for pauth
2216 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
2218 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2219 Jiong Wang <jiong.wang@arm.com>
2221 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
2223 (aarch64_analyze_prologue_test): Add PACIASP test.
2224 (aarch64_prologue_prev_register): Unmask PC value.
2226 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2227 Jiong Wang <jiong.wang@arm.com>
2229 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
2230 (aarch64_dwarf2_prev_register): Unmask PC value.
2231 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
2232 (aarch64_execute_dwarf_cfa_vendor_op): Check for
2233 DW_CFA_AARCH64_negate_ra_state.
2234 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
2236 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2237 Jiong Wang <jiong.wang@arm.com>
2239 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
2241 (aarch64_pseudo_register_name): Likewise.
2242 (aarch64_pseudo_register_type): Likewise.
2243 (aarch64_pseudo_register_reggroup_p): Likewise.
2244 (aarch64_gdbarch_init): Add pauth registers.
2245 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
2246 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
2247 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
2248 (struct gdbarch_tdep): Add regnum for ra_state.
2250 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2251 Jiong Wang <jiong.wang@arm.com>
2253 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
2255 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2256 Jiong Wang <jiong.wang@arm.com>
2258 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
2260 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
2261 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
2262 (aarch64_gdbarch_init): Add puth registers.
2263 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
2264 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
2265 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
2267 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2268 Jiong Wang <jiong.wang@arm.com>
2270 * aarch64-linux-nat.c
2271 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
2272 * aarch64-linux-tdep.c
2273 (aarch64_linux_core_read_description): Likewise.
2274 (aarch64_linux_get_hwcap): New function.
2275 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
2276 (aarch64_linux_get_hwcap): New declaration.
2278 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2279 Jiong Wang <jiong.wang@arm.com>
2281 * aarch64-linux-nat.c
2282 (aarch64_linux_nat_target::read_description): Add pauth param.
2283 * aarch64-linux-tdep.c
2284 (aarch64_linux_core_read_description): Likewise.
2285 * aarch64-tdep.c (struct target_desc): Add in pauth.
2286 (aarch64_read_description): Add pauth param.
2287 (aarch64_gdbarch_init): Likewise.
2288 * aarch64-tdep.h (aarch64_read_description): Likewise.
2289 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2290 * arch/aarch64.h (aarch64_create_target_description): Likewise.
2291 * features/Makefile: Add new files.
2292 * features/aarch64-pauth.c: New file.
2293 * features/aarch64-pauth.xml: New file.
2295 2019-03-20 Tom Tromey <tromey@adacore.com>
2297 * infrun.c (handle_inferior_event): Rename from
2298 handle_inferior_event_1. Create a scoped_value_mark.
2299 (handle_inferior_event): Remove.
2301 2019-03-19 Tom Tromey <tromey@adacore.com>
2303 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
2304 * infrun.h (print_stop_event): Add "displays" parameter.
2305 * infrun.c (print_stop_event): Add "displays" parameter.
2307 2019-03-19 Pedro Alves <palves@redhat.com>
2309 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
2310 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
2311 to -1. Fix TABs vs spaces.
2312 (tui_ui_out::tui_ui_out): Don't initialize fields here.
2313 * tui/tui-out.h (tui_ui_out) Add intro comments.
2314 <m_line, m_start_of_line>: In-class initialize, and add describing
2317 2019-03-18 Alan Hayward <alan.hayward@arm.com>
2319 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
2321 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
2323 2019-03-18 Pedro Alves <palves@redhat.com>
2324 Eli Zaretskii <eliz@gnu.org>
2326 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
2327 m_line and m_start_of_line.
2329 2019-03-18 Eli Zaretskii <eliz@gnu.org>
2331 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
2332 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
2333 it returns a newline. This fixes a regression in TU mode, whereby
2334 the next line is output on the same screen line as the user input.
2336 2019-03-18 Tom Tromey <tromey@adacore.com>
2338 * minsyms.c (minimal_symbol_reader::install): Remove call to
2341 2019-03-18 Pedro Alves <palves@redhat.com>
2343 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
2345 (apply_style): New, factored out from ...
2346 (apply_ansi_escape): ... this. Handle reverse video mode.
2347 (tui_set_reverse_mode): New function.
2348 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
2349 * tui/tui-winsource.c (tui_show_source_line): Use
2350 tui_set_reverse_mode instead of setting A_STANDOUT.
2351 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
2354 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
2356 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
2359 2019-03-18 Tom Tromey <tromey@adacore.com>
2361 * ada-lang.c (empty_array): Add "high" parameter.
2362 (ada_evaluate_subexp): Update.
2364 2019-03-17 Sergei Trofimovich <siarheit@google.com>
2366 * unittests/string_view-selftests.c: Define
2367 _initialize_string_view_selftests unconditionally.
2369 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
2372 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
2374 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
2377 * windows-nat.c (display_selector): Fix format specifiers.
2379 2019-03-17 Eli Zaretskii <eliz@gnu.org>
2381 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
2382 tui_refill_source_window instead of tui_refresh_win, to update the
2383 current execution line. This fixes redisplay of the current line
2384 when stepping through the code with "next" or "step".
2386 2019-03-16 Eli Zaretskii <eliz@gnu.org>
2388 * source-cache.c (source_cache::get_source_lines): Call
2389 find_source_lines to initialize s->nlines. This fixes vertical
2390 scrolling of TUI source window when the DOWN arrow is pressed.
2392 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2394 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
2395 linux-thread-db.c (_initialize_thread_db): Likewise.
2397 2019-03-16 Eli Zaretskii <eliz@gnu.org>
2399 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
2400 wclrtoeol in tui_show_source_line". This reverts changes made in
2401 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
2403 2019-03-15 Tom Tromey <tom@tromey.com>
2405 * symtab.h (struct minimal_symbol): Derive from
2406 general_symbol_info.
2407 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
2408 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2409 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2410 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2411 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
2412 (MSYMBOL_SEARCH_NAME): Update.
2413 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
2414 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
2415 * minsyms.c (minimal_symbol_reader::record_full): Update.
2417 2019-03-15 Tom Tromey <tom@tromey.com>
2419 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
2421 2019-03-15 Tom Tromey <tom@tromey.com>
2423 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
2425 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
2427 * minsyms.c (lookup_minimal_symbol_by_pc_section)
2428 (build_minimal_symbol_hash_tables)
2429 (minimal_symbol_reader::install): Update.
2431 2019-03-15 Tom Tromey <tom@tromey.com>
2433 * symtab.c (create_demangled_names_hash): Update.
2434 (symbol_set_names): Update.
2435 * objfiles.h (struct objfile_per_bfd_storage)
2436 <demangled_names_hash>: Now an htab_up.
2437 * objfiles.c (objfile_per_bfd_storage): Simplify.
2439 2019-03-15 Tom Tromey <tom@tromey.com>
2441 * objfiles.h (struct objfile_per_bfd_storage): Declare
2443 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
2445 (get_objfile_bfd_data): Use new. Don't initialize
2447 (free_objfile_per_bfd_storage): Remove.
2448 (objfile_bfd_data_free, objfile::~objfile): Use delete.
2450 2019-03-15 Tom Tromey <tom@tromey.com>
2452 * symfile.c (reread_symbols): Update.
2453 * objfiles.c (objfile::objfile): Update.
2454 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
2455 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
2457 (minimal_symbol_reader::install): Update.
2458 (terminate_minimal_symbol_table): Remove.
2459 * jit.c (jit_object_close_impl): Update.
2461 2019-03-15 Tom Tromey <tom@tromey.com>
2463 * minsyms.c (minimal_symbol_reader::record_full): Remove some
2466 2019-03-15 Tom Tromey <tom@tromey.com>
2468 * objfiles.h (struct objfile_per_bfd_storage)
2469 <demangled_hash_languages>: Now a bitset.
2470 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
2471 (lookup_minimal_symbol): Update.
2473 2019-03-15 Tom Tromey <tom@tromey.com>
2475 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
2476 Don't return the symbol.
2477 * coffread.c (record_minimal_symbol): Use record_full.
2479 2019-03-14 Eli Zaretskii <eliz@gnu.org>
2481 The MS-Windows port of ncurses fails to switch to a color pair if
2482 one or both of the colors are the implicit default colors. This
2483 change records the default colors when TUI is initialized, and
2484 then specifies them explicitly when a color pair uses the default
2485 colors. This allows color styling in TUI mode on MS-Windows.
2487 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
2489 (tui_initialize_io) [__MINGW32__]: Record the default terminal
2490 colors in ncurses_norm_attr.
2491 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
2492 "none", replace it with the default color recorded in
2495 2019-03-14 Tom Tromey <tromey@adacore.com>
2497 * source-cache.h (class source_cache) <get_source_lines>: Return
2499 * source-cache.c (source_cache::extract_lines): Handle case where
2500 first_pos==npos. Return std::string.
2501 (source_cache::get_source_lines): Update.
2503 2019-03-14 Tom Tromey <tromey@adacore.com>
2505 * NEWS: Add item for "style sources" commands.
2506 * source-cache.c (source_cache::get_source_lines): Check
2508 * cli/cli-style.c (source_styling): New global.
2509 (_initialize_cli_style): Add "style sources" commands.
2510 (show_style_sources): New function.
2511 * cli/cli-style.h (source_styling): Declare.
2513 2019-03-14 Pedro Alves <palves@redhat.com>
2514 Tom Tromey <tromey@adacore.com>
2516 * tui/tui-winsource.h (tui_refill_source_window): Declare.
2517 * tui/tui-winsource.c (tui_refill_source_window): New function,
2519 (tui_horizontal_source_scroll): ... here. Move some logic.
2520 * cli/cli-style.c (set_style_enabled): Notify new observable.
2521 * tui/tui-hooks.c (tui_redisplay_source): New function.
2522 (tui_attach_detach_observers): Attach or detach
2523 tui_redisplay_source.
2524 * observable.h (source_styling_changed): New observable.
2525 * observable.c: Define source_styling_changed observable.
2527 2019-03-13 Tom Tromey <tromey@adacore.com>
2529 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
2530 (i386_gnu_nat_target::store_registers): Update.
2531 * target-debug.h (target_debug_print_std_string): New macro.
2532 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2533 * windows-tdep.c (display_one_tib): Update.
2534 * tui/tui-stack.c (tui_make_status_line): Update.
2535 * top.c (print_inferior_quit_action): Update.
2536 * thread.c (thr_try_catch_cmd): Update.
2537 (add_thread_with_info): Update.
2538 (thread_target_id_str): Update.
2539 (thr_try_catch_cmd): Update.
2540 (thread_command): Update.
2541 (thread_find_command): Update.
2542 * record-btrace.c (record_btrace_target::info_record)
2543 (record_btrace_resume_thread, record_btrace_target::resume)
2544 (record_btrace_cancel_resume, record_btrace_step_thread)
2545 (record_btrace_target::wait, record_btrace_target::wait)
2546 (record_btrace_target::wait, record_btrace_target::stop): Update.
2547 * progspace.c (print_program_space): Update.
2548 * process-stratum-target.c
2549 (process_stratum_target::thread_address_space): Update.
2550 * linux-fork.c (linux_fork_mourn_inferior)
2551 (detach_checkpoint_command, info_checkpoints_command)
2552 (linux_fork_context): Update.
2553 (linux_fork_detach): Update.
2554 (class scoped_switch_fork_info): Update.
2555 (delete_checkpoint_command): Update.
2556 * infrun.c (follow_fork_inferior): Update.
2557 (follow_fork_inferior): Update.
2558 (proceed_after_vfork_done): Update.
2559 (handle_vfork_child_exec_or_exit): Update.
2560 (follow_exec): Update.
2561 (displaced_step_prepare_throw): Update.
2562 (displaced_step_restore): Update.
2563 (start_step_over): Update.
2565 (clear_proceed_status_thread): Update.
2567 (print_target_wait_results): Update.
2568 (do_target_wait): Update.
2569 (context_switch): Update.
2570 (stop_all_threads): Update.
2571 (restart_threads): Update.
2572 (finish_step_over): Update.
2573 (handle_signal_stop): Update.
2574 (switch_back_to_stepped_thread): Update.
2575 (keep_going_pass_signal): Update.
2576 (print_exited_reason): Update.
2577 (normal_stop): Update.
2578 * inferior.c (inferior_pid_to_str): Change return type.
2579 (print_selected_inferior): Update.
2580 (add_inferior): Update.
2581 (detach_inferior): Update.
2582 * dummy-frame.c (fprint_dummy_frames): Update.
2583 * dcache.c (dcache_info_1): Update.
2584 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
2585 (btrace_fetch, btrace_clear): Update.
2586 * linux-tdep.c (linux_core_pid_to_str): Change return type.
2587 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
2589 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
2590 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
2591 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
2592 * gdbarch.c, gdbarch.h: Rebuild.
2593 * gdbarch.sh (core_pid_to_str): Change return type.
2594 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
2596 (windows_nat_target::pid_to_str): Change return type.
2597 (windows_delete_thread): Update.
2598 (windows_nat_target::attach): Update.
2599 (windows_nat_target::files_info): Update.
2600 * target-delegates.c: Rebuild.
2601 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
2603 (sol_thread_target::pid_to_str): Change return type.
2604 * remote.c (class remote_target) <pid_to_str>: Change return
2606 (remote_target::pid_to_str): Change return type.
2607 (extended_remote_target::attach, remote_target::remote_stop_ns)
2608 (remote_target::remote_notif_remove_queued_reply)
2609 (remote_target::push_stop_reply, remote_target::disable_btrace):
2611 (extended_remote_target::attach): Update.
2612 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
2614 (gdbsim_target::pid_to_str): Change return type.
2615 * ravenscar-thread.c (struct ravenscar_thread_target)
2616 <pid_to_str>: Change return type.
2617 (ravenscar_thread_target::pid_to_str): Change return type.
2618 * procfs.c (class procfs_target) <pid_to_str>: Change return
2620 (procfs_target::pid_to_str): Change return type.
2621 (procfs_target::attach): Update.
2622 (procfs_target::detach): Update.
2623 (procfs_target::fetch_registers): Update.
2624 (procfs_target::store_registers): Update.
2625 (procfs_target::wait): Update.
2626 (procfs_target::files_info): Update.
2627 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
2628 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
2630 (nto_procfs_target::pid_to_str): Change return type.
2631 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
2632 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
2634 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
2636 (attach_proc_task_lwp_callback, get_detach_signal)
2637 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
2638 (linux_nat_target::resume, wait_lwp, stop_callback)
2639 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
2640 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
2641 (linux_nat_wait_1, resume_stopped_resumed_lwps)
2642 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
2643 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
2645 (inf_ptrace_target::attach): Update.
2646 (inf_ptrace_target::files_info): Update.
2647 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
2649 (go32_nat_target::pid_to_str): Change return type.
2650 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
2651 (gnu_nat_target::wait): Update.
2652 (gnu_nat_target::wait): Update.
2653 (gnu_nat_target::resume): Update.
2654 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
2655 (fbsd_nat_target::wait): Update.
2656 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
2658 (darwin_nat_target::attach): Update.
2659 * corelow.c (class core_target) <pid_to_str>: Change return type.
2660 (core_target::pid_to_str): Change return type.
2661 * target.c (normal_pid_to_str): Change return type.
2662 (default_pid_to_str): Likewise.
2663 (target_pid_to_str): Change return type.
2664 (target_translate_tls_address): Update.
2665 (target_announce_detach): Update.
2666 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
2668 (bsd_uthread_target::pid_to_str): Change return type.
2669 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
2671 (bsd_kvm_target::pid_to_str): Change return type.
2672 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
2674 (aix_thread_target::pid_to_str): Change return type.
2675 * target.h (struct target_ops) <pid_to_str>: Change return type.
2676 (target_pid_to_str, normal_pid_to_str): Likewise.
2677 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
2679 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
2681 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
2683 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
2685 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
2687 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
2690 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
2692 * NEWS: Mention that the new default MI version is 3. Mention
2693 changes to the output of commands and events that deal with
2694 multi-location breakpoints.
2695 * breakpoint.c: Include "mi/mi-out.h".
2696 (print_one_breakpoint): Change output syntax if using MI version
2698 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
2700 (mi_multi_location_breakpoint_output_fixed): New.
2701 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
2702 (mi_cmd_fix_multi_location_breakpoint_output): New.
2703 (mi_multi_location_breakpoint_output_fixed): New.
2704 * mi/mi-cmds.c (mi_cmds): Register command
2705 -fix-multi-location-breakpoint-output.
2706 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
2709 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2711 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
2712 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
2713 instantiate mi_ui_out based on interpreter name.
2714 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
2715 * mi/mi-main.c (mi_load_progress): Likewise.
2717 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2719 * NEWS: Combine separate "New targets" sections for 8.3.
2721 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2723 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
2724 (ppcfbsd_init_abi): Install gdbarch
2725 "fetch_tls_load_module_address" and "get_thread_local_address"
2728 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2730 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
2731 (riscv_fbsd_init_abi): Install gdbarch
2732 "fetch_tls_load_module_address" and "get_thread_local_address"
2735 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2737 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
2738 (i386fbsd_init_abi): Install gdbarch
2739 "fetch_tls_load_module_address" and "get_thread_local_address"
2742 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2744 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
2745 (amd64fbsd_init_abi): Install gdbarch
2746 "fetch_tls_load_module_address" and "get_thread_local_address"
2749 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2751 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
2752 (struct fbsd_pspace_data): New type.
2753 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
2754 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
2755 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
2756 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
2757 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
2759 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2761 * gdbtypes.c (lookup_struct_elt): New function.
2762 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
2763 * gdbtypes.h (struct struct_elt): New type.
2764 (lookup_struct_elt): New prototype.
2766 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2768 * gdbtypes.c (lookup_struct_elt_type): Update comment and
2769 remove disabled code block.
2771 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2773 * gdbarch.sh (get_thread_local_address): New method.
2774 * gdbarch.h, gdbarch.c: Regenerate.
2775 * target.c (target_translate_tls_address): Use
2776 gdbarch_get_thread_local_address if present instead of
2777 target::get_thread_local_address.
2779 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2781 * target.h (target::get_thread_local_address): Update comment.
2783 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2785 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
2786 objfile->separate_debug_objfile_backlink if not NULL.
2788 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2790 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
2791 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
2792 (amd64bsd_store_inferior_registers): Likewise.
2793 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
2794 Enable segment base registers.
2795 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
2796 PT_GETFSBASE and PT_GETGSBASE.
2797 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
2799 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
2800 segment base registers.
2801 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
2803 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2805 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
2806 Update calls to i386_target_description to add 'segments'
2808 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
2809 add segment base registers.
2810 * arch/i386.c (i386_create_target_description): Add 'segments'
2811 parameter to enable segment base registers.
2812 * arch/i386.h (i386_create_target_description): Likewise.
2813 * features/i386/32bit-segments.xml: New file.
2814 * features/i386/32bit-segments.c: Generate.
2815 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
2816 call to i386_target_description to add 'segments' parameter.
2817 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
2818 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
2819 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
2820 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
2821 if feature is present.
2822 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
2823 Add 'segments' parameter to call to i386_target_description.
2824 (i386_target_description): Add 'segments' parameter to enable
2825 segment base registers.
2826 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
2827 to call to i386_target_description.
2828 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
2829 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
2830 Define I386_NUM_REGS.
2831 (i386_target_description): Add 'segments' parameter to enable
2832 segment base registers.
2834 2019-03-12 Eli Zaretskii <eliz@gnu.org>
2837 * source-cache.c: #undef open and close, to avoid unresolved
2838 externals during linking.
2840 2019-03-12 Tom Tromey <tromey@adacore.com>
2842 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
2843 const. Add initializers.
2844 (_initialize_remote): Don't initialize ptid globals.
2846 2019-03-12 Pedro Alves <palves@redhat.com>
2848 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
2850 2019-03-12 Pedro Alves <palves@redhat.com>
2852 * cp-name-parser.y (main): Remove unused 'len' variable.
2854 2019-03-12 Tom Tromey <tromey@adacore.com>
2856 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
2857 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
2859 2019-03-12 Tom Tromey <tromey@adacore.com>
2861 * linux-nat.c (iterate_over_lwps): Update.
2862 (stop_callback): Remove parameter.
2863 (stop_wait_callback, detach_callback, resume_set_callback)
2864 (select_singlestep_lwp_callback, set_ignore_sigint)
2865 (status_callback, resumed_callback, resume_clear_callback)
2866 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
2868 (linux_nat_target::detach, linux_nat_target::resume)
2869 (linux_stop_and_wait_all_lwps, select_event_lwp)
2870 (linux_nat_filter_event, linux_nat_wait_1)
2871 (linux_nat_target::kill, linux_nat_target::stop)
2872 (linux_nat_target::stop): Update.
2873 (linux_nat_resume_callback): Change type.
2874 (resume_stopped_resumed_lwps, count_events_callback)
2875 (select_event_lwp_callback): Likewise.
2876 (linux_stop_lwp, linux_nat_stop_lwp): Update.
2877 * arm-linux-nat.c (struct update_registers_data): Remove.
2878 (update_registers_callback): Change type.
2879 (arm_linux_insert_hw_breakpoint1): Update.
2880 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
2882 (x86_linux_dr_set_addr): Update.
2883 (x86_linux_dr_set_control): Update.
2884 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
2885 (iterate_over_lwps): Use gdb::function_view.
2886 * nat/aarch64-linux-hw-point.c (struct
2887 aarch64_dr_update_callback_param): Remove.
2888 (debug_reg_change_callback): Change type.
2889 (aarch64_notify_debug_reg_change): Update.
2890 * s390-linux-nat.c (s390_refresh_per_info): Update.
2892 2019-03-11 Tom Tromey <tromey@adacore.com>
2894 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
2895 redundant assignment to "this_cu".
2897 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2899 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
2901 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2903 * gdbtypes.c (rank_one_type_parm_set): New function extracted
2905 (rank_one_type): ... this.
2907 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2909 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
2911 (rank_one_type): ... this.
2913 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2915 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
2917 (rank_one_type): ... this.
2919 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2921 * gdbtypes.c (rank_one_type_parm_float): New function extracted
2923 (rank_one_type): ... this.
2925 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2927 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
2929 (rank_one_type): ... this.
2931 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2933 * gdbtypes.c (rank_one_type_parm_range): New function extracted
2935 (rank_one_type): ... this.
2937 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2939 * gdbtypes.c (rank_one_type_parm_char): New function extracted
2941 (rank_one_type): ... this.
2943 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2945 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
2947 (rank_one_type): ... this.
2949 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2951 * gdbtypes.c (rank_one_type_parm_int): New function extracted
2953 (rank_one_type): ... this.
2955 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2957 * gdbtypes.c (rank_one_type_parm_func): New function extracted
2959 (rank_one_type): ... this.
2961 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2963 * gdbtypes.c (rank_one_type_parm_array): New function extracted
2965 (rank_one_type): ... this.
2967 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2969 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
2971 (rank_one_type): ... this.
2973 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2975 * inferior.c (initialize_inferiors): Ensure 'help set/show print
2976 inferior-events' shows the example events.
2978 2019-03-08 Eli Zaretskii <eliz@gnu.org>
2980 Support styling on native MS-Windows console
2983 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
2984 on MS-Windows if $TERM is not defined.
2986 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
2988 * posix-hdep.c (gdb_console_fputs):
2989 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
2991 * ui-file.h (gdb_console_fputs): Add prototype.
2993 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
2994 back to fputs only if the former returns zero.
2996 2019-03-07 Tom Tromey <tom@tromey.com>
2998 * symmisc.c (print_symbol_bcache_statistics): Update.
2999 (print_objfile_statistics): Update.
3000 * symfile.c (allocate_symtab): Update.
3001 * stabsread.c: Don't include bcache.h.
3002 * psymtab.h (struct psymbol_bcache): Don't declare.
3003 (class psymtab_storage) <psymbol_cache>: Now a bcache.
3004 (psymbol_bcache_init, psymbol_bcache_free)
3005 (psymbol_bcache_get_bcache): Don't declare.
3006 * psymtab.c (struct psymbol_bcache): Remove.
3007 (psymtab_storage::psymtab_storage): Update.
3008 (psymtab_storage::~psymtab_storage): Update.
3009 (psymbol_bcache_init, psymbol_bcache_free)
3010 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
3011 (add_psymbol_to_bcache): Update.
3012 (allocate_psymtab): Update.
3013 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
3014 macro_cache>: No longer pointers.
3015 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
3016 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
3017 * macrotab.c (macro_bcache): Update.
3018 * macroexp.c: Don't include bcache.h.
3019 * gdbtypes.c (check_types_worklist): Update.
3020 (types_deeply_equal): Remove TRY/CATCH. Update.
3021 * elfread.c (elf_symtab_read): Update.
3022 * dwarf2read.c: Don't include bcache.h.
3023 * buildsym.c (buildsym_compunit::get_macro_table): Update.
3024 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
3025 (print_bcache_statistics, bcache_memory_used): Don't declare.
3026 (struct bcache): Move from bcache.c. Add constructor, destructor,
3027 methods. Rename all data members.
3028 * bcache.c (struct bcache): Move to bcache.h.
3029 (bcache::expand_hash_table): Rename from expand_hash_table.
3031 (bcache::insert): Rename from bcache_full.
3032 (bcache::compare): Rename from bcache_compare.
3033 (bcache_xmalloc): Remove.
3034 (bcache::~bcache): Rename from bcache_xfree.
3035 (bcache::print_statistics): Rename from print_bcache_statistics.
3036 (bcache::memory_used): Rename from bcache_memory_used.
3038 2019-03-07 Pedro Alves <palves@redhat.com>
3040 * infrun.c (normal_stop): Also check for
3041 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
3043 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
3045 * f-lang.c (value_from_host_double): Moved to...
3046 * value.c (value_from_host_double): ...here.
3047 * value.h (value_from_host_double): Declare.
3048 * guile/scm-math.c (vlscm_convert_typed_number): Use
3049 value_from_host_double.
3050 (vlscm_convert_number): Likewise.
3051 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
3052 * python/py-value.c (convert_value_from_python): Likewise.
3054 2019-03-06 Tom Tromey <tom@tromey.com>
3056 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
3058 2019-03-06 Tom Tromey <tom@tromey.com>
3060 * utils.h (free_current_contents): Don't declare.
3061 * utils.c (free_current_contents): Remove.
3063 2019-03-06 Tom Tromey <tom@tromey.com>
3065 * top.c (quit_force): Update.
3066 * main.c (captured_command_loop): Update.
3067 * common/new-op.c (operator new): Update.
3068 * common/common-exceptions.c (struct catcher)
3069 <save_cleanup_chain>: Remove member.
3070 (exceptions_state_mc_init): Update.
3071 (exception_try_scope_entry): Return nullptr.
3072 (exception_try_scope_exit, exception_rethrow)
3073 (throw_exception_sjlj, throw_exception_cxx): Update.
3074 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
3075 (all_cleanups, do_cleanups, discard_cleanups)
3076 (discard_final_cleanups, save_cleanups, save_final_cleanups)
3077 (restore_cleanups, restore_final_cleanups): Don't declare.
3078 (do_final_cleanups): Remove parameter.
3079 * common/cleanups.c (cleanup_chain, make_cleanup)
3080 (make_cleanup_dtor, all_cleanups, do_cleanups)
3081 (discard_my_cleanups, discard_cleanups)
3082 (discard_final_cleanups, save_my_cleanups, save_cleanups)
3083 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
3084 (null_cleanup): Remove.
3085 (do_final_cleanups): Remove parameter.
3087 2019-03-06 Tom Tromey <tom@tromey.com>
3089 * remote.c (remote_target::remote_parse_stop_reply): Use
3092 2019-03-06 Tom Tromey <tom@tromey.com>
3094 * stabsread.c (struct stabs_field_info): Rename from field_info.
3095 <list, fnlist>: Add initializers.
3096 <obstack>: New member.
3097 (read_member_functions, read_struct_fields, read_baseclasses):
3098 Allocate on obstack. Don't use cleanups.
3099 (read_one_struct_field, read_member_functions, read_struct_fields)
3100 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
3101 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
3102 (read_struct_type): Update.
3104 2019-03-06 Tom Tromey <tom@tromey.com>
3106 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
3107 * common/filestuff.h (make_cleanup_close): Don't declare.
3108 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
3111 2019-03-06 Tom Tromey <tom@tromey.com>
3113 * solib-aix.c: Use make_scope_exit.
3115 2019-03-06 Tom Tromey <tom@tromey.com>
3117 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
3118 Use make_scope_exit.
3120 2019-03-06 Tom Tromey <tom@tromey.com>
3122 * solib-svr4.c (disable_probes_interface): Remove parameter.
3123 (svr4_handle_solib_event): Use make_scope_exit.
3125 2019-03-06 Tom Tromey <tom@tromey.com>
3127 * remote.c (struct stop_reply_deleter): Remove.
3128 (stop_reply_up): Update.
3129 (struct stop_reply): Derive from notif_event. Don't typedef.
3130 <regcache>: Now a std::vector.
3131 (stop_reply_xfree): Remove.
3132 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
3133 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
3134 (remote_target::discard_pending_stop_replies): Use delete.
3135 (remote_target::remote_parse_stop_reply): Update.
3136 (remote_target::process_stop_reply): Update.
3137 * remote-notif.h (struct notif_event): Add virtual destructor.
3138 Remove "dtr" member.
3139 (struct notif_client) <alloc_event>: Return a unique_ptr.
3140 (notif_event_xfree): Don't declare.
3141 (notif_event_up): New typedef.
3142 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
3143 (notif_event_xfree, do_notif_event_xfree): Remove.
3144 (remote_notif_state_xfree): Update.
3146 2019-03-06 Tom Tromey <tom@tromey.com>
3148 * infrun.c (displaced_step_clear_cleanup): Now a
3149 forward_scope_exit type.
3150 (displaced_step_prepare_throw): Update.
3151 (displaced_step_fixup): Update.
3153 2019-03-06 Tom Tromey <tom@tromey.com>
3155 * inferior.h (class inferior): Update comment.
3156 * gdbthread.h (class thread_info): Update comment.
3158 2019-03-06 Joel Brobecker <brobecker@adacore.com>
3159 Tom Tromey <tom@tromey.com>
3161 * stabsread.h (struct stab_section_list): Remove.
3162 (coffstab_build_psymtabs): Update.
3163 * dbxread.c (symbuf_sections): Now a std::vector.
3164 (sect_idx): New global.
3165 (fill_symbuf): Update.
3166 (coffstab_build_psymtabs): Change type of stabsects parameter.
3168 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
3170 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
3171 (coff_locate_sections): Update.
3172 (coff_symfile_read): Remove cleanups. Update.
3173 (init_stringtab): Add storage parameter.
3174 (free_stringtab, free_stringtab_cleanup): Remove.
3175 (init_lineno): Add storage parameter.
3176 (free_linetab, free_linetab_cleanup): Remove.
3178 2019-03-06 Pedro Alves <palves@redhat.com>
3180 * linux-fork.c (fork_info::clobber_regs): Delete.
3181 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
3182 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
3184 (scoped_switch_fork_info::scoped_switch_fork_info)
3185 (checkpoint_command, linux_fork_context): Adjust
3186 fork_save_infrun_state calls.
3188 2019-03-06 Pedro Alves <palves@redhat.com>
3190 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
3191 (inf_has_multiple_threads): Return 'bool' and rewrite using
3192 inferior_info::threads().
3194 2019-03-06 Pedro Alves <palves@redhat.com>
3196 * linux-fork.c: Include <list>.
3197 (fork_list): Now a std::list instance.
3198 (fork_info): Add ctor, dtor, and in-class initialize all fields.
3199 (forks_exist_p, find_last_fork): Adjust.
3203 (free_fork): Delete, folded into fork_info::~fork_info().
3204 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
3206 (init_fork_list): Delete.
3207 (linux_fork_killall, linux_fork_mourn_inferior)
3208 (linux_fork_detach, info_checkpoints_command): Adjust.
3209 (_initialize_linux_fork): No longer call init_fork_list.
3211 2019-03-06 Pedro Alves <palves@redhat.com>
3213 * linux-fork.c (new_fork): New, split out of ...
3214 (add_fork): ... this. Return void. Move "first fork" special
3215 case from here, to ...
3216 (checkpoint_command): ... here.
3217 * linux-linux.h (add_fork): Return void.
3219 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3221 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
3223 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3224 Chris January <chris.january@arm.com>
3225 David Lecomber <david.lecomber@arm.com>
3227 * f-exp.y: New token, UNOP_INTRINSIC.
3228 (exp): New pattern using UNOP_INTRINSIC token.
3229 (f77_keywords): Add 'abs' keyword.
3230 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
3231 (value_from_host_double): New function.
3232 (evaluate_subexp_f): Support UNOP_ABS.
3234 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3236 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
3239 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3241 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
3242 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
3243 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
3245 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3247 * f-exp.y (convert_to_kind_type): Handle more type kinds.
3249 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3250 Chris January <chris.january@arm.com>
3252 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
3253 * f-exp.y: Define 'KIND' token.
3254 (exp): New pattern for KIND expressions.
3255 (ptype): Handle types with a kind extension.
3256 (direct_abs_decl): Extend to spot kind extensions.
3257 (f77_keywords): Add 'kind' to the list.
3258 (push_kind_type): New function.
3259 (convert_to_kind_type): New function.
3260 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
3261 * parse.c (operator_length_standard): Likewise.
3262 * parser-defs.h (enum type_pieces): Add tp_kind.
3263 * std-operator.def: Add UNOP_KIND.
3265 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3267 * f-exp.y (f_parse): Set yydebug.
3269 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3271 * f-lang.c (evaluate_subexp_f): New function.
3272 (exp_descriptor_f): New global.
3273 (f_language_defn): Use exp_descriptor_f instead of
3274 exp_descriptor_standard.
3276 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3278 * f-exp.y (struct token): Add comments.
3279 (dot_ops): Remove uppercase versions and the end marker.
3280 (f77_keywords): Likewise.
3281 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
3282 entries in the dot_ops array are case insensitive, and use
3283 strncasecmp to compare strings. Also some whitespace cleanup in
3284 this area. Similar for the f77_keywords array, except entries in
3285 this list might be case sensitive.
3287 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3289 * f-exp.y (struct f77_boolean_val): Add comments.
3290 (boolean_values): Remove uppercase versions, and end marker.
3291 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
3292 and use strncasecmp to achieve case insensitivity. Additionally,
3293 perform whitespace cleanup around this code.
3295 2019-03-06 Tom Tromey <tromey@adacore.com>
3297 * remote-sim.c (gdbsim_target_open): Use result of
3300 2019-03-06 Richard Bunt <richard.bunt@arm.com>
3301 Dirk Schubert <dirk.schubert@arm.com>
3302 Chris January <chris.january@arm.com>
3304 * eval.c (evaluate_subexp_standard): Call Fortran argument
3306 * f-lang.c (struct value): A value which can be passed into a
3307 Fortran function call.
3308 (fortran_argument_convert): Wrap Fortran arguments in a pointer
3310 (struct type): Value ready for a Fortran function call.
3311 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
3313 * f-lang.h (fortran_argument_convert): Declaration.
3314 (fortran_preserve_arg_pointer): Declaration.
3315 * infcall.c (value_arg_coerce): Call Fortran argument logic.
3317 2019-03-05 Tom Tromey <tromey@adacore.com>
3319 * python/py-prettyprint.c (print_string_repr): Remove #if.
3320 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
3322 2019-03-05 Tom Tromey <tromey@adacore.com>
3324 * target.c (the_dummy_target): Move later. Change type to
3326 (initialize_targets): Don't initialize the_dummy_target.
3328 2019-03-05 Tom Tromey <tromey@adacore.com>
3330 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
3331 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
3333 2019-03-05 Tom Tromey <tromey@adacore.com>
3335 * windows-nat.c (windows_nat_target::attach)
3336 (windows_nat_target::detach): Don't call gdb_flush.
3337 * valprint.c (generic_val_print, val_print, val_print_string):
3338 Don't call gdb_flush.
3339 * utils.c (defaulted_query): Don't call gdb_flush.
3340 * typeprint.c (print_type_scalar): Don't call gdb_flush.
3341 * target.c (target_announce_detach): Don't call gdb_flush.
3342 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
3343 * remote.c (extended_remote_target::attach): Don't call
3345 * procfs.c (procfs_target::detach): Don't call gdb_flush.
3346 * printcmd.c (do_examine): Don't call gdb_flush.
3347 (info_display_command): Don't call gdb_flush.
3348 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
3349 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
3350 * memattr.c (info_mem_command): Don't call gdb_flush.
3351 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
3352 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
3353 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
3354 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
3355 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
3356 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
3357 (gnu_nat_target::detach): Don't call gdb_flush.
3358 * f-valprint.c (f_val_print): Don't call gdb_flush.
3359 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
3360 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
3361 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
3363 * c-valprint.c (c_val_print): Don't call gdb_flush.
3364 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
3366 2019-03-05 Tom Tromey <tromey@adacore.com>
3368 * varobj.c (update_dynamic_varobj_children): Update.
3369 (install_default_visualizer): Use reset, not release.
3370 * value.c (set_internalvar): Update.
3371 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
3372 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
3373 ATTRIBUTE_UNUSED_RESULT.
3375 2019-03-05 Tom Tromey <tromey@adacore.com>
3377 * remote.c (class scoped_remote_fd) <release>: Add
3378 ATTRIBUTE_UNUSED_RESULT.
3380 2019-03-05 Tom Tromey <tromey@adacore.com>
3382 * macroexp.c (struct macro_buffer) <release>: Add
3383 ATTRIBUTE_UNUSED_RESULT.
3385 2019-03-05 Tom Tromey <tromey@adacore.com>
3387 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
3388 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
3389 ATTRIBUTE_UNUSED_RESULT.
3391 2019-03-05 Tom Tromey <tromey@adacore.com>
3393 * common/scoped_fd.h (class scoped_fd) <release>: Add
3394 ATTRIBUTE_UNUSED_RESULT.
3396 2019-03-05 Tom Tromey <tromey@adacore.com>
3398 * parser-defs.h (struct parser_state) <release>: Add
3399 ATTRIBUTE_UNUSED_RESULT.
3401 2019-03-05 Tom Tromey <tromey@adacore.com>
3403 * utils.h (class gdb_argv) <release>: Add
3404 ATTRIBUTE_UNUSED_RESULT.
3405 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
3407 2019-03-02 Eli Zaretskii <eliz@gnu.org>
3409 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
3410 for-loop range, to avoid compiler warnings.
3412 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
3413 avoid compiler warnings about unused variables.
3415 * NEWS: Mention end of support for native debugging on MS-Windows
3419 * common/netstuff.c:
3420 * gdbserver/gdbreplay.c
3421 * gdbserver/remote-utils.c:
3423 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
3424 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
3425 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
3426 'getaddrinfo' and 'freeaddrinfo' were not available before
3427 Windows XP, and mingw.org's MinGW headers by default define
3428 _WIN32_WINNT to 0x500.
3430 2019-03-01 Gary Benson <gbenson@redhat.com>
3432 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
3434 2019-02-28 Brian Vandenberg <phantall@gmail.com>
3435 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3438 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
3439 set_sigint_trap, clear_sigint_trap.
3441 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3443 * target.c (target_detach): Clear the regcache and the
3446 2019-02-27 Pedro Alves <palves@redhat.com>
3448 * utils.c (set_screen_size): When we cap the height/width sizes,
3449 tweak the corresponding command variable to show "unlimited":
3451 2019-02-27 Saagar Jha <saagar@saagarjha.com>
3452 Pedro Alves <palves@redhat.com>
3454 * utils.c (set_screen_size): Reduce "infinite" rows and columns
3455 before calling rl_set_screen_size.
3457 2019-02-27 Tom Tromey <tromey@adacore.com>
3459 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
3461 * python/py-value.c: Remove Python 2.4 workaround.
3462 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
3464 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
3465 Python 2.4 workaround.
3466 * python/python-internal.h: Remove Python 2.4 comment.
3467 (Py_ssize_t): Don't define.
3468 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
3469 (gdb_Py_DECREF): Remove Python 2.4 workaround.
3470 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
3471 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
3472 * python/python.c (do_start_initialization): Remove Python 2.4
3474 * python/py-prettyprint.c (class dummy_python_frame): Remove.
3475 (print_children): Remove Python 2.4 workaround.
3476 * python/py-inferior.c (buffer_procs): Remove Python 2.4
3478 (CHARBUFFERPROC_NAME): Remove.
3479 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
3480 Python 2.4 workaround.
3482 2019-02-27 Kevin Buettner <kevinb@redhat.com>
3484 * NEWS: Note minimum Python version.
3486 2019-02-27 Kevin Buettner <kevinb@redhat.com>
3488 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
3489 code from these functions. Remove corresponding ifdefs. Use
3490 Py_buffer_up instead of explicit calls to PyBuffer_Release.
3491 Remove gotos and target of gotos.
3492 (infpy_search_memory): Likewise.
3494 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3496 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
3497 (hppa_gdbarch_init): Don't register deleted functions with
3500 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3502 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
3503 (h8300_unwind_sp): Delete.
3504 (h8300_dummy_id): Delete.
3505 (h8300_gdbarch_init): Don't register deleted functions with
3508 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3510 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
3511 (ft32_unwind_pc): Delete.
3512 (ft32_unwind_sp): Delete.
3513 (ft32_gdbarch_init): Don't register deleted functions with
3516 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3518 * gdb/frv-tdep.c (frv_dummy_id): Delete.
3519 (frv_unwind_pc): Delete.
3520 (frv_unwind_sp): Delete.
3521 (frv_gdbarch_init): Don't register deleted functions with
3524 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3526 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
3527 (riscv_unwind_pc): Delete.
3528 (riscv_unwind_sp): Delete.
3529 (riscv_gdbarch_init): Don't register deleted functions with
3532 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3534 * gdb/csky-tdep.c (csky_dummy_id): Delete.
3535 (csky_unwind_pc): Delete.
3536 (csky_unwind_sp): Delete.
3537 (csky_gdbarch_init): Don't register deleted functions with
3540 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3542 * gdb/cris-tdep.c (cris_dummy_id): Delete.
3543 (cris_unwind_pc): Delete.
3544 (cris_unwind_sp): Delete.
3545 (cris_gdbarch_init): Don't register deleted functions with
3548 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3550 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
3551 (bfin_unwind_pc): Delete.
3552 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
3554 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3556 * gdb/arm-tdep.c (arm_dummy_id): Delete.
3557 (arm_unwind_pc): Delete.
3558 (arm_unwind_sp): Delete.
3559 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
3561 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3563 * gdb/arc-tdep.c (arc_dummy_id): Delete.
3564 (arc_unwind_pc): Delete.
3565 (arc_unwind_sp): Delete.
3566 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
3568 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3570 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
3571 (alpha_unwind_pc): Delete.
3572 (alpha_gdbarch_init): Don't register deleted functions with
3575 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3577 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
3578 (aarch64_unwind_pc): Delete.
3579 (aarch64_unwind_sp): Delete.
3580 (aarch64_gdbarch_init): Don't register deleted functions with
3583 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3585 * gdbtypes.c (type_align): Don't consider static members when
3586 computing structure alignment.
3588 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3590 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
3591 return 0 for other types.
3592 * arch-utils.c (default_type_align): Always return 0.
3593 * gdbarch.h: Regenerate.
3594 * gdbarch.sh (type_align): Extend comment.
3595 * gdbtypes.c (type_align): Add additional comments, always call
3596 gdbarch_type_align before applying the default rules.
3597 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
3598 generic code will then apply a suitable default.
3599 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
3600 types, return 0 for other types.
3602 2019-02-27 Joel Brobecker <brobecker@adacore.com>
3604 * NEWS: Create a new section for the next release branch.
3605 Rename the section of the current branch, now that it has
3608 2019-02-27 Joel Brobecker <brobecker@adacore.com>
3610 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
3611 * version.in: Bump version to 8.3.50.DATE-git.
3613 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
3615 * aix-thread.c (ptid_cmp): Remove unused variable.
3616 (get_signaled_thread): Likewise.
3617 (store_regs_user_thread): Likewise.
3618 (store_regs_kernel_thread): Likewise.
3619 (fetch_regs_kernel_thread): Remove shadowed variable.
3621 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
3623 * features/riscv/32bit-cpu.xml: Add register numbers.
3624 * features/riscv/32bit-fpu.c: Regenerate.
3625 * features/riscv/32bit-fpu.xml: Add register numbers.
3626 * features/riscv/64bit-cpu.xml: Add register numbers.
3627 * features/riscv/64bit-fpu.c: Regenerate.
3628 * features/riscv/64bit-fpu.xml: Add register numbers.
3630 2019-02-26 Kevin Buettner <kevinb@redhat.com>
3632 * NEWS: Mention two argument form of gdb.Value constructor.
3633 * python/py-value.c (convert_buffer_and_type_to_value): New
3635 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
3636 Add support for handling an optional second argument. Call
3637 convert_buffer_and_type_to_value as appropriate.
3638 * python/python-internal.h (Py_buffer_deleter): New struct.
3639 (Py_buffer_up): New typedef.
3641 2019-02-25 John Baldwin <jhb@FreeBSD.org>
3643 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
3644 instead of releasing ownership.
3646 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
3648 * dwarf2read.c (open_and_init_dwp_file): Call
3649 elf_numsections instead of bfd_count_sections to initialize
3650 dwp_file->num_sections.
3652 2019-02-25 Tom Tromey <tromey@adacore.com>
3654 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
3656 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
3658 * gcore.in: Add '--readnever' option when invoking GDB.
3660 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3662 * MAINTAINERS: Update my email address.
3664 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3666 * build-id.c (build_id_to_debug_bfd_1): New function.
3667 (build_id_to_debug_bfd): Look for separate debug file in
3670 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
3672 * gdbarch.sh: Update the copyright year range that is placed into
3675 2019-02-22 Keith Seitz <keiths@redhat.com>
3678 * linespec.c (create_sals_line_offset): Search for the default
3679 symtab's filename instead of its fullname.
3681 2019-02-21 Alan Hayward <alan.hayward@arm.com>
3683 * NEWS: Update style defaults.
3685 2019-02-21 Alan Hayward <alan.hayward@arm.com>
3687 * main.c (captured_main_1): Disable styling in batch mode.
3689 2019-02-20 Tom Tromey <tom@tromey.com>
3691 * symtab.c (symtab_symbol_info): Fix typos.
3693 2019-02-20 Tom Tromey <tromey@adacore.com>
3695 * findcmd.c (_initialize_mem_search): Use upper case for
3696 metasyntactic variables.
3698 2019-02-20 Alan Hayward <alan.hayward@arm.com>
3700 * aarch64-tdep.c (aarch64_add_reggroups): New function.
3701 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
3703 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
3705 * top.h (source_file_name): Change to std::string.
3706 * top.c (source_file_name): Likewise.
3707 (command_line_input): Adjust.
3708 * cli/cli-script.c (script_from_file): Adjust.
3710 2019-02-19 Tom Tromey <tromey@adacore.com>
3712 * ravenscar-thread.c
3713 (ravenscar_thread_target::update_thread_list): Don't call
3714 ada_build_task_list.
3715 * ada-lang.h (ada_build_task_list): Don't declare.
3716 * ada-tasks.c (struct ada_tasks_inferior_data)
3717 <task_list_valid_p>: Now bool.
3718 (read_known_tasks, ada_task_list_changed)
3719 (ada_tasks_invalidate_inferior_data): Update.
3720 (read_known_tasks_array): Return bool.
3721 (read_known_tasks_list): Likewise.
3722 (read_known_tasks): Return void.
3723 (ada_build_task_list): Now static.
3725 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
3727 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
3728 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
3730 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3732 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
3733 variant for ada_tasks_pspace_data_handle and
3734 ada_tasks_inferior_data_handle.
3735 (ada_tasks_pspace_data_cleanup): New function.
3736 (ada_tasks_inferior_data_cleanup): New function.
3738 2019-02-17 Tom Tromey <tom@tromey.com>
3740 * macrotab.h (macro_source_fullname): Return a std::string.
3741 * macrotab.c (macro_include, check_for_redefinition)
3742 (macro_undef, macro_lookup_definition, foreach_macro)
3743 (foreach_macro_in_scope): Update.
3744 (macro_source_fullname): Return a std::string.
3745 * macrocmd.c (show_pp_source_pos): Update.
3747 2019-02-17 Tom Tromey <tom@tromey.com>
3749 * macrocmd.c (show_pp_source_pos): Style the file names.
3751 2019-02-17 Tom Tromey <tom@tromey.com>
3754 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
3756 2019-02-17 Tom Tromey <tom@tromey.com>
3758 * ada-lang.c (user_select_syms): Use filtered printing.
3759 * utils.c (wrap_style): New global.
3760 (desired_style): Remove.
3761 (emit_style_escape): Add stream parameter.
3762 (set_output_style, reset_terminal_style, prompt_for_continue):
3764 (flush_wrap_buffer): Only flush gdb_stdout.
3765 (wrap_here): Set wrap_style.
3766 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
3767 treat escape sequences as a character. Change when wrap buffer is
3769 (fputs_styled): Do not set the output style when the default is
3771 * ui-style.h (struct ui_file_style) <is_default>: New method.
3772 * source.c (print_source_lines_base): Emit escape sequences in one
3775 2019-02-17 Joel Brobecker <brobecker@adacore.com>
3777 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
3778 integers and enumeration types.
3780 2019-02-17 Joel Brobecker <brobecker@adacore.com>
3782 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
3783 instead of lookup_symbol_in_language
3784 (do_exact_match): New function.
3785 (ada_get_symbol_name_matcher): Return do_exact_match when
3786 doing a verbatim match.
3788 2019-02-15 Tom Tromey <tromey@adacore.com>
3790 * ravenscar-thread.c (ravenscar_thread_target::resume)
3791 (ravenscar_thread_target::wait): Special case wildcard requests.
3793 2019-02-15 Tom Tromey <tromey@adacore.com>
3795 * ravenscar-thread.c (base_ptid): Remove.
3796 (struct ravenscar_thread_target) <close>: New method.
3797 <m_base_ptid>: New member.
3798 <update_inferior_ptid, active_task, task_is_currently_active,
3799 runtime_initialized>: Declare methods.
3800 <ravenscar_thread_target>: Add constructor.
3801 (ravenscar_thread_target::task_is_currently_active)
3802 (ravenscar_thread_target::update_inferior_ptid)
3803 (ravenscar_runtime_initialized): Rename. Now methods.
3804 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
3805 (ravenscar_thread_target::update_thread_list): Update.
3806 (ravenscar_thread_target::active_task): Now method.
3807 (ravenscar_thread_target::store_registers)
3808 (ravenscar_thread_target::prepare_to_store)
3809 (ravenscar_thread_target::prepare_to_store)
3810 (ravenscar_thread_target::mourn_inferior): Update.
3811 (ravenscar_inferior_created): Use "new" to create target.
3812 (ravenscar_thread_target::get_ada_task_ptid): Update.
3813 (_initialize_ravenscar): Don't initialize base_ptid.
3814 (ravenscar_ops): Remove global.
3816 2019-02-15 Tom Tromey <tromey@adacore.com>
3818 * target.h (push_target): Declare new overload.
3819 * target.c (push_target): New overload, taking an rvalue reference.
3820 * remote.c (remote_target::open_1): Use push_target overload.
3821 * corelow.c (core_target_open): Use push_target overload.
3823 2019-02-15 Tom Tromey <tromey@adacore.com>
3825 * ravenscar-thread.c (is_ravenscar_task)
3826 (ravenscar_task_is_currently_active): Return bool.
3827 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
3828 (_initialize_ravenscar): Remove "(void)".
3829 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
3832 2019-02-15 Tom Tromey <tromey@adacore.com>
3834 * ravenscar-thread.c (ravenscar_runtime_initializer)
3835 (has_ravenscar_runtime, get_running_thread_id)
3836 (ravenscar_thread_target::resume): Fix indentation.
3838 2019-02-15 Tom Tromey <tromey@adacore.com>
3840 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
3841 from ravenscar_arch_ops.
3842 (sparc_ravenscar_ops::fetch_registers)
3843 (sparc_ravenscar_ops::store_registers): Now methods.
3844 (sparc_ravenscar_prepare_to_store): Remove.
3845 (sparc_ravenscar_ops): Redefine.
3846 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
3847 methods and destructor. Remove members.
3848 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
3849 (ravenscar_thread_target::store_registers)
3850 (ravenscar_thread_target::prepare_to_store): Update.
3851 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
3853 (struct ppc_ravenscar_powerpc_ops): Derive from
3855 (ppc_ravenscar_powerpc_ops::fetch_registers)
3856 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
3857 (ppc_ravenscar_powerpc_ops): Redefine.
3858 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
3859 (ppc_ravenscar_e500_ops::fetch_registers)
3860 (ppc_ravenscar_e500_ops::store_registers): Now methods.
3861 (ppc_ravenscar_e500_ops): Redefine.
3862 * aarch64-ravenscar-thread.c
3863 (aarch64_ravenscar_generic_prepare_to_store): Remove.
3864 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
3865 (aarch64_ravenscar_fetch_registers)
3866 (aarch64_ravenscar_store_registers): Now methods.
3867 (aarch64_ravenscar_ops): Redefine.
3869 2019-02-15 Tom Tromey <tromey@adacore.com>
3871 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
3872 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3873 (ravenscar_thread_target::stopped_by_watchpoint)
3874 (ravenscar_thread_target::stopped_data_address)
3875 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
3877 2019-02-15 Tom Tromey <tromey@adacore.com>
3879 * ravenscar-thread.c: Fix some typos.
3881 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3882 Tom Tromey <tromey@adacore.com>
3884 * ada-lang.c (ada_exception_sal): Change addr_string to a
3886 (create_ada_exception_catchpoint): Update.
3888 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3889 Tom Tromey <tromey@adacore.com>
3891 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
3892 (bp_location_ops): Remove.
3893 (base_breakpoint_allocate_location): Update.
3894 (free_bp_location): Update.
3895 * ada-lang.c (class ada_catchpoint_location)
3896 <ada_catchpoint_location>: Remove ops parameter.
3897 (ada_catchpoint_location_dtor): Remove.
3898 (ada_catchpoint_location_ops): Remove.
3899 (allocate_location_exception): Update.
3900 * breakpoint.h (struct bp_location_ops): Remove.
3901 (class bp_location) <bp_location>: Remove bp_location_ops
3903 <~bp_location>: Add destructor.
3906 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
3907 Pedro Alves <palves@redhat.com>
3909 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
3912 2019-02-14 David Michael <fedora.dm0@gmail.com>
3913 Samuel Thibault <samuel.thibault@gnu.org>
3914 Thomas Schwinge <thomas@codesourcery.com>
3916 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
3917 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
3919 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
3921 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
3922 (check_empty): Use "const char *".
3924 * gnu-nat.c (gnu_nat_target::detach): Instead of
3925 'detach_inferior (pid)' call
3926 'detach_inferior (find_inferior_pid (pid))'.
3928 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
3929 'nat/fork-inferior.o'.
3930 * gnu-nat.c: #include "nat/fork-inferior.h".
3932 * gnu-nat.c (gnu_nat_target::detach): Instead of
3933 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
3934 * gnu-nat.h: #include "inf-child.h".
3935 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
3936 'i386_gnu_nat_target::fetch_registers'.
3937 (gnu_store_registers): Rename/move to
3938 'i386_gnu_nat_target::store_registers'.
3940 * config/i386/nm-i386gnu.h: Don't "#include" any files.
3941 * gnu-nat.h (mach_thread_info): New function.
3942 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
3944 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
3946 2019-02-14 Frederic Konrad <konrad@adacore.com>
3948 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
3950 2019-02-14 Joel Brobecker <brobecker@adacore.com>
3952 * windows-nat.c (windows_add_thread): Add new parameter
3953 "main_thread_p" with default value set to false. Update
3954 function documentation as well as all callers.
3955 (windows_delete_thread): Likewise.
3956 (fake_create_process): Update call to windows_add_thread.
3957 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
3958 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
3959 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
3960 call to windows_delete_thread.
3962 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
3964 * MAINTAINERS: Add Andrew Burgess as global maintainer.
3966 2019-02-12 John Baldwin <jhb@FreeBSD.org>
3968 * symfile.c (find_separate_debug_file): Use canonical path of
3969 sysroot with child_path instead of gdb_sysroot if it is valid.
3971 2019-02-12 John Baldwin <jhb@FreeBSD.org>
3973 * symfile.c (find_separate_debug_file): Use child_path to
3974 determine if an object file is under a sysroot.
3976 2019-02-12 John Baldwin <jhb@FreeBSD.org>
3978 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3979 unittests/child-path-selftests.c.
3980 * common/pathstuff.c (child_path): New function.
3981 * common/pathstuff.h (child_path): New prototype.
3982 * unittests/child-path-selftests.c: New file.
3984 2019-02-12 John Baldwin <jhb@FreeBSD.org>
3986 * symfile.c (find_separate_debug_file): Look for separate debug
3987 files in debug directories under the sysroot.
3989 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3991 * symtab.h (struct minimal_symbol data_p): New const method.
3992 (struct minimal_symbol text_p): Likewise.
3993 * symtab.c (output_source_filename): Use file name style
3995 (print_symbol_info): Likewise.
3996 (print_msymbol_info): Use address style to print addresses.
3997 Use function name style to print executable text symbols.
3998 (expand_symtab_containing_pc): Use data_p.
3999 (find_pc_sect_compunit_symtab): Likewise.
4001 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4003 * breakpoint.c (describe_other_breakpoints): Use address style
4005 (say_where): Likewise.
4007 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4009 * ada-typeprint.c (print_func_type): Print function name
4010 style to print function name.
4011 * c-typeprint.c (c_print_type_1): Likewise.
4013 2019-02-11 Alan Hayward <alan.hayward@arm.com>
4015 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
4018 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4020 * c-exp.y (direct_abs_decl): Use emplace_back to record the
4023 2019-02-10 Joel Brobecker <brobecker@adacore.com>
4025 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
4026 TYPE_CODE_REF types.
4028 2019-02-08 Jim Wilson <jimw@sifive.com>
4030 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
4031 (riscv_linux_fregset): New.
4032 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
4034 2019-02-07 Tom Tromey <tom@tromey.com>
4036 * thread.c (thread_cancel_execution_command): Update.
4037 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
4039 (struct thread_fsm_ops): Remove.
4040 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
4041 (thread_fsm_should_stop, thread_fsm_return_value)
4042 (thread_fsm_set_finished, thread_fsm_finished_p)
4043 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
4045 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
4046 * infrun.c (clear_proceed_status_thread)
4047 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
4048 (print_stop_event): Update.
4049 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
4051 (step_command_fsm_ops): Remove.
4052 (new_step_command_fsm): Remove.
4054 (step_command_fsm::should_stop): Rename from
4055 step_command_fsm_should_stop.
4056 (step_command_fsm::clean_up): Rename from
4057 step_command_fsm_clean_up.
4058 (step_command_fsm::do_async_reply_reason): Rename from
4059 step_command_fsm_async_reply_reason.
4060 (struct until_next_fsm): Inherit from thread_fsm. Add
4062 (until_next_fsm_ops): Remove.
4063 (new_until_next_fsm): Remove.
4064 (until_next_fsm::should_stop): Rename from
4065 until_next_fsm_should_stop.
4066 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
4067 (until_next_fsm::do_async_reply_reason): Rename from
4068 until_next_fsm_async_reply_reason.
4069 (struct finish_command_fsm): Inherit from thread_fsm. Add
4070 constructor. Change type of breakpoint.
4071 (finish_command_fsm_ops): Remove.
4072 (new_finish_command_fsm): Remove.
4073 (finish_command_fsm::should_stop): Rename from
4074 finish_command_fsm_should_stop.
4075 (finish_command_fsm::clean_up): Rename from
4076 finish_command_fsm_clean_up.
4077 (finish_command_fsm::return_value): Rename from
4078 finish_command_fsm_return_value.
4079 (finish_command_fsm::do_async_reply_reason): Rename from
4080 finish_command_fsm_async_reply_reason.
4081 (finish_command): Update.
4082 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
4084 (call_thread_fsm_ops): Remove.
4085 (call_thread_fsm::call_thread_fsm): Rename from
4086 new_call_thread_fsm.
4087 (call_thread_fsm::should_stop): Rename from
4088 call_thread_fsm_should_stop.
4089 (call_thread_fsm::should_notify_stop): Rename from
4090 call_thread_fsm_should_notify_stop.
4091 (run_inferior_call, call_function_by_hand_dummy): Update.
4092 * cli/cli-interp.c (should_print_stop_to_console): Update.
4093 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
4094 Add constructor. Change type of location_breakpoint,
4096 (until_break_fsm_ops): Remove.
4097 (new_until_break_fsm): Remove.
4098 (until_break_fsm::should_stop): Rename from
4099 until_break_fsm_should_stop.
4100 (until_break_fsm::clean_up): Rename from
4101 until_break_fsm_clean_up.
4102 (until_break_fsm::do_async_reply_reason): Rename from
4103 until_break_fsm_async_reply_reason.
4104 (until_break_command): Update.
4105 * thread-fsm.c: Remove.
4106 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
4108 2019-02-07 Tom Tromey <tom@tromey.com>
4110 * yy-remap.h: Add include guard.
4111 * xtensa-tdep.h: Add include guard.
4112 * xcoffread.h: Rename include guard.
4113 * varobj-iter.h: Add include guard.
4114 * tui/tui.h: Rename include guard.
4115 * tui/tui-winsource.h: Rename include guard.
4116 * tui/tui-wingeneral.h: Rename include guard.
4117 * tui/tui-windata.h: Rename include guard.
4118 * tui/tui-win.h: Rename include guard.
4119 * tui/tui-stack.h: Rename include guard.
4120 * tui/tui-source.h: Rename include guard.
4121 * tui/tui-regs.h: Rename include guard.
4122 * tui/tui-out.h: Rename include guard.
4123 * tui/tui-layout.h: Rename include guard.
4124 * tui/tui-io.h: Rename include guard.
4125 * tui/tui-hooks.h: Rename include guard.
4126 * tui/tui-file.h: Rename include guard.
4127 * tui/tui-disasm.h: Rename include guard.
4128 * tui/tui-data.h: Rename include guard.
4129 * tui/tui-command.h: Rename include guard.
4130 * tic6x-tdep.h: Add include guard.
4131 * target/waitstatus.h: Rename include guard.
4132 * target/wait.h: Rename include guard.
4133 * target/target.h: Rename include guard.
4134 * target/resume.h: Rename include guard.
4135 * target-float.h: Rename include guard.
4136 * stabsread.h: Add include guard.
4137 * rs6000-tdep.h: Add include guard.
4138 * riscv-fbsd-tdep.h: Add include guard.
4139 * regformats/regdef.h: Rename include guard.
4140 * record.h: Rename include guard.
4141 * python/python.h: Rename include guard.
4142 * python/python-internal.h: Rename include guard.
4143 * python/py-stopevent.h: Rename include guard.
4144 * python/py-ref.h: Rename include guard.
4145 * python/py-record.h: Rename include guard.
4146 * python/py-record-full.h: Rename include guard.
4147 * python/py-record-btrace.h: Rename include guard.
4148 * python/py-instruction.h: Rename include guard.
4149 * python/py-events.h: Rename include guard.
4150 * python/py-event.h: Rename include guard.
4151 * procfs.h: Add include guard.
4152 * proc-utils.h: Add include guard.
4153 * p-lang.h: Add include guard.
4154 * or1k-tdep.h: Rename include guard.
4155 * observable.h: Rename include guard.
4156 * nto-tdep.h: Rename include guard.
4157 * nat/x86-linux.h: Rename include guard.
4158 * nat/x86-linux-dregs.h: Rename include guard.
4159 * nat/x86-gcc-cpuid.h: Add include guard.
4160 * nat/x86-dregs.h: Rename include guard.
4161 * nat/x86-cpuid.h: Rename include guard.
4162 * nat/ppc-linux.h: Rename include guard.
4163 * nat/mips-linux-watch.h: Rename include guard.
4164 * nat/linux-waitpid.h: Rename include guard.
4165 * nat/linux-ptrace.h: Rename include guard.
4166 * nat/linux-procfs.h: Rename include guard.
4167 * nat/linux-osdata.h: Rename include guard.
4168 * nat/linux-nat.h: Rename include guard.
4169 * nat/linux-namespaces.h: Rename include guard.
4170 * nat/linux-btrace.h: Rename include guard.
4171 * nat/glibc_thread_db.h: Rename include guard.
4172 * nat/gdb_thread_db.h: Rename include guard.
4173 * nat/gdb_ptrace.h: Rename include guard.
4174 * nat/fork-inferior.h: Rename include guard.
4175 * nat/amd64-linux-siginfo.h: Rename include guard.
4176 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
4177 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
4178 * nat/aarch64-linux.h: Rename include guard.
4179 * nat/aarch64-linux-hw-point.h: Rename include guard.
4180 * mn10300-tdep.h: Add include guard.
4181 * mips-linux-tdep.h: Add include guard.
4182 * mi/mi-parse.h: Rename include guard.
4183 * mi/mi-out.h: Rename include guard.
4184 * mi/mi-main.h: Rename include guard.
4185 * mi/mi-interp.h: Rename include guard.
4186 * mi/mi-getopt.h: Rename include guard.
4187 * mi/mi-console.h: Rename include guard.
4188 * mi/mi-common.h: Rename include guard.
4189 * mi/mi-cmds.h: Rename include guard.
4190 * mi/mi-cmd-break.h: Rename include guard.
4191 * m2-lang.h: Add include guard.
4192 * location.h: Rename include guard.
4193 * linux-record.h: Rename include guard.
4194 * linux-nat.h: Add include guard.
4195 * linux-fork.h: Add include guard.
4196 * i386-darwin-tdep.h: Rename include guard.
4197 * hppa-linux-offsets.h: Add include guard.
4198 * guile/guile.h: Rename include guard.
4199 * guile/guile-internal.h: Rename include guard.
4200 * gnu-nat.h: Rename include guard.
4201 * gdb-stabs.h: Rename include guard.
4202 * frv-tdep.h: Add include guard.
4203 * f-lang.h: Add include guard.
4204 * event-loop.h: Add include guard.
4205 * darwin-nat.h: Rename include guard.
4206 * cp-abi.h: Rename include guard.
4207 * config/sparc/nm-sol2.h: Rename include guard.
4208 * config/nm-nto.h: Rename include guard.
4209 * config/nm-linux.h: Add include guard.
4210 * config/i386/nm-i386gnu.h: Rename include guard.
4211 * config/djgpp/nl_types.h: Rename include guard.
4212 * config/djgpp/langinfo.h: Rename include guard.
4213 * compile/gcc-cp-plugin.h: Add include guard.
4214 * compile/gcc-c-plugin.h: Add include guard.
4215 * compile/compile.h: Rename include guard.
4216 * compile/compile-object-run.h: Rename include guard.
4217 * compile/compile-object-load.h: Rename include guard.
4218 * compile/compile-internal.h: Rename include guard.
4219 * compile/compile-cplus.h: Rename include guard.
4220 * compile/compile-c.h: Rename include guard.
4221 * common/xml-utils.h: Rename include guard.
4222 * common/x86-xstate.h: Rename include guard.
4223 * common/version.h: Rename include guard.
4224 * common/vec.h: Rename include guard.
4225 * common/tdesc.h: Rename include guard.
4226 * common/selftest.h: Rename include guard.
4227 * common/scoped_restore.h: Rename include guard.
4228 * common/scoped_mmap.h: Rename include guard.
4229 * common/scoped_fd.h: Rename include guard.
4230 * common/safe-iterator.h: Rename include guard.
4231 * common/run-time-clock.h: Rename include guard.
4232 * common/refcounted-object.h: Rename include guard.
4233 * common/queue.h: Rename include guard.
4234 * common/ptid.h: Rename include guard.
4235 * common/print-utils.h: Rename include guard.
4236 * common/preprocessor.h: Rename include guard.
4237 * common/pathstuff.h: Rename include guard.
4238 * common/observable.h: Rename include guard.
4239 * common/netstuff.h: Rename include guard.
4240 * common/job-control.h: Rename include guard.
4241 * common/host-defs.h: Rename include guard.
4242 * common/gdb_wait.h: Rename include guard.
4243 * common/gdb_vecs.h: Rename include guard.
4244 * common/gdb_unlinker.h: Rename include guard.
4245 * common/gdb_unique_ptr.h: Rename include guard.
4246 * common/gdb_tilde_expand.h: Rename include guard.
4247 * common/gdb_sys_time.h: Rename include guard.
4248 * common/gdb_string_view.h: Rename include guard.
4249 * common/gdb_splay_tree.h: Rename include guard.
4250 * common/gdb_setjmp.h: Rename include guard.
4251 * common/gdb_ref_ptr.h: Rename include guard.
4252 * common/gdb_optional.h: Rename include guard.
4253 * common/gdb_locale.h: Rename include guard.
4254 * common/gdb_assert.h: Rename include guard.
4255 * common/filtered-iterator.h: Rename include guard.
4256 * common/filestuff.h: Rename include guard.
4257 * common/fileio.h: Rename include guard.
4258 * common/environ.h: Rename include guard.
4259 * common/common-utils.h: Rename include guard.
4260 * common/common-types.h: Rename include guard.
4261 * common/common-regcache.h: Rename include guard.
4262 * common/common-inferior.h: Rename include guard.
4263 * common/common-gdbthread.h: Rename include guard.
4264 * common/common-exceptions.h: Rename include guard.
4265 * common/common-defs.h: Rename include guard.
4266 * common/common-debug.h: Rename include guard.
4267 * common/cleanups.h: Rename include guard.
4268 * common/buffer.h: Rename include guard.
4269 * common/btrace-common.h: Rename include guard.
4270 * common/break-common.h: Rename include guard.
4271 * cli/cli-utils.h: Rename include guard.
4272 * cli/cli-style.h: Rename include guard.
4273 * cli/cli-setshow.h: Rename include guard.
4274 * cli/cli-script.h: Rename include guard.
4275 * cli/cli-interp.h: Rename include guard.
4276 * cli/cli-decode.h: Rename include guard.
4277 * cli/cli-cmds.h: Rename include guard.
4278 * charset-list.h: Add include guard.
4279 * buildsym-legacy.h: Rename include guard.
4280 * bfin-tdep.h: Add include guard.
4281 * ax.h: Rename include guard.
4282 * arm-linux-tdep.h: Add include guard.
4283 * arm-fbsd-tdep.h: Add include guard.
4284 * arch/xtensa.h: Rename include guard.
4285 * arch/tic6x.h: Add include guard.
4286 * arch/i386.h: Add include guard.
4287 * arch/arm.h: Rename include guard.
4288 * arch/arm-linux.h: Rename include guard.
4289 * arch/arm-get-next-pcs.h: Rename include guard.
4290 * arch/amd64.h: Add include guard.
4291 * arch/aarch64-insn.h: Rename include guard.
4292 * arch-utils.h: Rename include guard.
4293 * annotate.h: Add include guard.
4294 * amd64-darwin-tdep.h: Rename include guard.
4295 * aarch64-linux-tdep.h: Add include guard.
4296 * aarch64-fbsd-tdep.h: Add include guard.
4297 * aarch32-linux-nat.h: Add include guard.
4299 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4301 * macrotab.c (macro_define_internal): New function that
4302 factorizes macro_define_object_internal and macro_define_function
4304 (macro_define_object_internal): Use macro_define_internal.
4305 (macro_define_function): Likewise.
4307 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4309 * macrocmd.c (extract_identifier): Return
4310 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
4313 2019-02-06 John Baldwin <jhb@FreeBSD.org>
4315 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
4317 2019-02-05 Tom Tromey <tom@tromey.com>
4319 * target.c (target_stack::unpush): Move assertion earlier.
4321 2019-01-30 Tom Tromey <tom@tromey.com>
4324 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
4325 (gdbpy_parse_and_eval): Likewise.
4326 * python/python-internal.h (gdbpy_allow_threads): New class.
4328 2019-01-28 John Baldwin <jhb@FreeBSD.org>
4330 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
4331 (aarch64_fbsd_fpregmap): Move earlier.
4332 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
4333 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
4334 instead of individual calls to trad_frame_set_reg_addr.
4335 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
4337 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
4338 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
4339 instead of individual calls to trad_frame_set_reg_addr.
4341 2019-01-28 Alan Hayward <alan.hayward@arm.com>
4343 * CONTRIBUTE: Replace contribution list with wiki link.
4345 2019-01-25 Tom Tromey <tom@tromey.com>
4347 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
4349 2019-01-25 Tom Tromey <tom@tromey.com>
4351 * xtensa-linux-nat.c: Fix common/ includes.
4352 * xml-support.h: Fix common/ includes.
4353 * xml-support.c: Fix common/ includes.
4354 * x86-linux-nat.c: Fix common/ includes.
4355 * windows-nat.c: Fix common/ includes.
4356 * varobj.h: Fix common/ includes.
4357 * varobj.c: Fix common/ includes.
4358 * value.c: Fix common/ includes.
4359 * valops.c: Fix common/ includes.
4360 * utils.c: Fix common/ includes.
4361 * unittests/xml-utils-selftests.c: Fix common/ includes.
4362 * unittests/utils-selftests.c: Fix common/ includes.
4363 * unittests/unpack-selftests.c: Fix common/ includes.
4364 * unittests/tracepoint-selftests.c: Fix common/ includes.
4365 * unittests/style-selftests.c: Fix common/ includes.
4366 * unittests/string_view-selftests.c: Fix common/ includes.
4367 * unittests/scoped_restore-selftests.c: Fix common/ includes.
4368 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
4369 * unittests/scoped_fd-selftests.c: Fix common/ includes.
4370 * unittests/rsp-low-selftests.c: Fix common/ includes.
4371 * unittests/parse-connection-spec-selftests.c: Fix common/
4373 * unittests/optional-selftests.c: Fix common/ includes.
4374 * unittests/offset-type-selftests.c: Fix common/ includes.
4375 * unittests/observable-selftests.c: Fix common/ includes.
4376 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
4377 * unittests/memrange-selftests.c: Fix common/ includes.
4378 * unittests/memory-map-selftests.c: Fix common/ includes.
4379 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
4380 * unittests/function-view-selftests.c: Fix common/ includes.
4381 * unittests/environ-selftests.c: Fix common/ includes.
4382 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
4383 * unittests/common-utils-selftests.c: Fix common/ includes.
4384 * unittests/cli-utils-selftests.c: Fix common/ includes.
4385 * unittests/array-view-selftests.c: Fix common/ includes.
4386 * ui-file.c: Fix common/ includes.
4387 * tui/tui-io.c: Fix common/ includes.
4388 * tracepoint.h: Fix common/ includes.
4389 * tracepoint.c: Fix common/ includes.
4390 * tracefile-tfile.c: Fix common/ includes.
4391 * top.h: Fix common/ includes.
4392 * top.c: Fix common/ includes.
4393 * thread.c: Fix common/ includes.
4394 * target/waitstatus.h: Fix common/ includes.
4395 * target/waitstatus.c: Fix common/ includes.
4396 * target.h: Fix common/ includes.
4397 * target.c: Fix common/ includes.
4398 * target-memory.c: Fix common/ includes.
4399 * target-descriptions.c: Fix common/ includes.
4400 * symtab.h: Fix common/ includes.
4401 * symfile.c: Fix common/ includes.
4402 * stap-probe.c: Fix common/ includes.
4403 * spu-linux-nat.c: Fix common/ includes.
4404 * sparc-nat.c: Fix common/ includes.
4405 * source.c: Fix common/ includes.
4406 * solib.c: Fix common/ includes.
4407 * solib-target.c: Fix common/ includes.
4408 * ser-unix.c: Fix common/ includes.
4409 * ser-tcp.c: Fix common/ includes.
4410 * ser-pipe.c: Fix common/ includes.
4411 * ser-base.c: Fix common/ includes.
4412 * selftest-arch.c: Fix common/ includes.
4413 * s12z-tdep.c: Fix common/ includes.
4414 * rust-exp.y: Fix common/ includes.
4415 * rs6000-aix-tdep.c: Fix common/ includes.
4416 * riscv-tdep.c: Fix common/ includes.
4417 * remote.c: Fix common/ includes.
4418 * remote-notif.h: Fix common/ includes.
4419 * remote-fileio.h: Fix common/ includes.
4420 * remote-fileio.c: Fix common/ includes.
4421 * regcache.h: Fix common/ includes.
4422 * regcache.c: Fix common/ includes.
4423 * record-btrace.c: Fix common/ includes.
4424 * python/python.c: Fix common/ includes.
4425 * python/py-type.c: Fix common/ includes.
4426 * python/py-inferior.c: Fix common/ includes.
4427 * progspace.h: Fix common/ includes.
4428 * producer.c: Fix common/ includes.
4429 * procfs.c: Fix common/ includes.
4430 * proc-api.c: Fix common/ includes.
4431 * printcmd.c: Fix common/ includes.
4432 * ppc-linux-nat.c: Fix common/ includes.
4433 * parser-defs.h: Fix common/ includes.
4434 * osdata.c: Fix common/ includes.
4435 * obsd-nat.c: Fix common/ includes.
4436 * nat/x86-linux.c: Fix common/ includes.
4437 * nat/x86-linux-dregs.c: Fix common/ includes.
4438 * nat/x86-dregs.h: Fix common/ includes.
4439 * nat/x86-dregs.c: Fix common/ includes.
4440 * nat/ppc-linux.c: Fix common/ includes.
4441 * nat/mips-linux-watch.h: Fix common/ includes.
4442 * nat/mips-linux-watch.c: Fix common/ includes.
4443 * nat/linux-waitpid.c: Fix common/ includes.
4444 * nat/linux-ptrace.h: Fix common/ includes.
4445 * nat/linux-ptrace.c: Fix common/ includes.
4446 * nat/linux-procfs.c: Fix common/ includes.
4447 * nat/linux-personality.c: Fix common/ includes.
4448 * nat/linux-osdata.c: Fix common/ includes.
4449 * nat/linux-namespaces.c: Fix common/ includes.
4450 * nat/linux-btrace.h: Fix common/ includes.
4451 * nat/linux-btrace.c: Fix common/ includes.
4452 * nat/fork-inferior.c: Fix common/ includes.
4453 * nat/amd64-linux-siginfo.c: Fix common/ includes.
4454 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
4455 * nat/aarch64-linux.c: Fix common/ includes.
4456 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
4457 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
4458 * namespace.h: Fix common/ includes.
4459 * mips-linux-tdep.c: Fix common/ includes.
4460 * minsyms.c: Fix common/ includes.
4461 * mi/mi-parse.h: Fix common/ includes.
4462 * mi/mi-main.c: Fix common/ includes.
4463 * mi/mi-cmd-env.c: Fix common/ includes.
4464 * memrange.h: Fix common/ includes.
4465 * memattr.c: Fix common/ includes.
4466 * maint.h: Fix common/ includes.
4467 * maint.c: Fix common/ includes.
4468 * main.c: Fix common/ includes.
4469 * machoread.c: Fix common/ includes.
4470 * location.c: Fix common/ includes.
4471 * linux-thread-db.c: Fix common/ includes.
4472 * linux-nat.c: Fix common/ includes.
4473 * linux-fork.c: Fix common/ includes.
4474 * inline-frame.c: Fix common/ includes.
4475 * infrun.c: Fix common/ includes.
4476 * inflow.c: Fix common/ includes.
4477 * inferior.h: Fix common/ includes.
4478 * inferior.c: Fix common/ includes.
4479 * infcmd.c: Fix common/ includes.
4480 * inf-ptrace.c: Fix common/ includes.
4481 * inf-child.c: Fix common/ includes.
4482 * ia64-linux-nat.c: Fix common/ includes.
4483 * i387-tdep.c: Fix common/ includes.
4484 * i386-tdep.c: Fix common/ includes.
4485 * i386-linux-tdep.c: Fix common/ includes.
4486 * i386-linux-nat.c: Fix common/ includes.
4487 * i386-go32-tdep.c: Fix common/ includes.
4488 * i386-fbsd-tdep.c: Fix common/ includes.
4489 * i386-fbsd-nat.c: Fix common/ includes.
4490 * guile/scm-type.c: Fix common/ includes.
4491 * guile/guile.c: Fix common/ includes.
4492 * go32-nat.c: Fix common/ includes.
4493 * gnu-nat.c: Fix common/ includes.
4494 * gdbthread.h: Fix common/ includes.
4495 * gdbarch-selftests.c: Fix common/ includes.
4496 * gdb_usleep.c: Fix common/ includes.
4497 * gdb_select.h: Fix common/ includes.
4498 * gdb_bfd.c: Fix common/ includes.
4499 * gcore.c: Fix common/ includes.
4500 * fork-child.c: Fix common/ includes.
4501 * findvar.c: Fix common/ includes.
4502 * fbsd-nat.c: Fix common/ includes.
4503 * event-top.c: Fix common/ includes.
4504 * event-loop.c: Fix common/ includes.
4505 * dwarf2read.c: Fix common/ includes.
4506 * dwarf2loc.c: Fix common/ includes.
4507 * dwarf2-frame.c: Fix common/ includes.
4508 * dwarf-index-cache.c: Fix common/ includes.
4509 * dtrace-probe.c: Fix common/ includes.
4510 * disasm-selftests.c: Fix common/ includes.
4511 * defs.h: Fix common/ includes.
4512 * csky-tdep.c: Fix common/ includes.
4513 * cp-valprint.c: Fix common/ includes.
4514 * cp-support.h: Fix common/ includes.
4515 * cp-support.c: Fix common/ includes.
4516 * corelow.c: Fix common/ includes.
4517 * completer.h: Fix common/ includes.
4518 * completer.c: Fix common/ includes.
4519 * compile/compile.c: Fix common/ includes.
4520 * compile/compile-loc2c.c: Fix common/ includes.
4521 * compile/compile-cplus-types.c: Fix common/ includes.
4522 * compile/compile-cplus-symbols.c: Fix common/ includes.
4523 * command.h: Fix common/ includes.
4524 * cli/cli-dump.c: Fix common/ includes.
4525 * cli/cli-cmds.c: Fix common/ includes.
4526 * charset.c: Fix common/ includes.
4527 * build-id.c: Fix common/ includes.
4528 * btrace.h: Fix common/ includes.
4529 * btrace.c: Fix common/ includes.
4530 * breakpoint.h: Fix common/ includes.
4531 * breakpoint.c: Fix common/ includes.
4533 (enum agent_op): Fix common/ includes.
4534 * ax-general.c (struct aop_map): Fix common/ includes.
4535 * ax-gdb.c: Fix common/ includes.
4536 * auxv.c: Fix common/ includes.
4537 * auto-load.c: Fix common/ includes.
4538 * arm-tdep.c: Fix common/ includes.
4539 * arch/riscv.c: Fix common/ includes.
4540 * arch/ppc-linux-common.c: Fix common/ includes.
4541 * arch/i386.c: Fix common/ includes.
4542 * arch/arm.c: Fix common/ includes.
4543 * arch/arm-linux.c: Fix common/ includes.
4544 * arch/arm-get-next-pcs.c: Fix common/ includes.
4545 * arch/amd64.c: Fix common/ includes.
4546 * arch/aarch64.c: Fix common/ includes.
4547 * arch/aarch64-insn.c: Fix common/ includes.
4548 * arch-utils.c: Fix common/ includes.
4549 * amd64-windows-tdep.c: Fix common/ includes.
4550 * amd64-tdep.c: Fix common/ includes.
4551 * amd64-sol2-tdep.c: Fix common/ includes.
4552 * amd64-obsd-tdep.c: Fix common/ includes.
4553 * amd64-nbsd-tdep.c: Fix common/ includes.
4554 * amd64-linux-tdep.c: Fix common/ includes.
4555 * amd64-linux-nat.c: Fix common/ includes.
4556 * amd64-fbsd-tdep.c: Fix common/ includes.
4557 * amd64-fbsd-nat.c: Fix common/ includes.
4558 * amd64-dicos-tdep.c: Fix common/ includes.
4559 * amd64-darwin-tdep.c: Fix common/ includes.
4560 * agent.c: Fix common/ includes.
4561 * ada-lang.h: Fix common/ includes.
4562 * ada-lang.c: Fix common/ includes.
4563 * aarch64-tdep.c: Fix common/ includes.
4565 2019-01-25 Tom Tromey <tom@tromey.com>
4567 * common/create-version.sh: Use common/version.h.
4569 2019-01-24 Pedro Alves <palves@redhat.com>
4571 * infrun.c (signal_stop, signal_print, signal_program)
4572 (signal_catch, signal_pass): Now arrays instead of pointers.
4573 (update_signals_program_target, do_target_resume)
4574 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
4575 * linux-nat.c (linux_nat_target::pass_signals)
4576 (linux_nat_target::create_inferior, linux_nat_target::attach):
4578 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
4579 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
4580 * procfs.c (procfs_target::pass_signals): Adjust.
4581 * record-full.c (record_full_target::resume): Adjust.
4582 * remote.c (remote_target::pass_signals)
4583 (remote_target::program_signals): Adjust.
4584 * target-debug.h (target_debug_print_signals): Now takes a
4585 gdb::array_view as parameter. Adjust.
4586 * target.h (target_ops) <pass_signals, program_signals>: Replace
4587 pointer and length parameters with gdb::array_view.
4588 (target_pass_signals, target_program_signals): Likewise.
4589 * target-delegates.c: Regenerate.
4591 2019-01-24 Pedro Alves <palves@redhat.com>
4593 * common/forward-scope-exit.h
4594 (forward_scope_exit::forward_scope_exit): Pass arguments to
4595 m_bind_function directly, instead of creating a std::bind and
4598 2019-01-24 Alan Hayward <alan.hayward@arm.com>
4600 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
4602 (pass_in_v_vfp_candidate): Likewise.
4604 2019-01-23 Tom Tromey <tom@tromey.com>
4605 Pedro Alves <palves@redhat.com>
4607 * regcache.c (class regcache_invalidator): Remove.
4608 (regcache::raw_write): Use make_scope_exit.
4610 2019-01-23 Tom Tromey <tom@tromey.com>
4612 * ui-out.h (class ui_out_emit_type): Update comment.
4614 2019-01-23 Tom Tromey <tom@tromey.com>
4616 * infrun.c (fetch_inferior_event): Update comment.
4618 2019-01-23 Tom Tromey <tom@tromey.com>
4619 Pedro Alves <palves@redhat.com>
4621 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
4623 (fetch_inferior_event): Use SCOPE_EXIT.
4626 2019-01-23 Tom Tromey <tom@tromey.com>
4627 Pedro Alves <palves@redhat.com>
4629 * infrun.c (disable_thread_events): Delete.
4630 (stop_all_threads): Use SCOPE_EXIT.
4632 2019-01-23 Tom Tromey <tom@tromey.com>
4633 Pedro Alves <palves@redhat.com>
4635 * symfile.c: Include forward-scope-exit.h.
4636 (clear_symtab_users_cleanup): Replace forward declaration with
4637 a FORWARD_SCOPE_EXIT.
4638 (syms_from_objfile_1): Use the forward_scope_exit and
4639 gdb::optional instead of cleanup_function.
4640 (reread_symbols): Use the forward_scope_exit instead of
4642 (clear_symtab_users_cleanup): Remove function.
4644 2019-01-23 Tom Tromey <tom@tromey.com>
4645 Pedro Alves <palves@redhat.com>
4647 * linux-nat.c: Include scope-exit.h.
4648 (cleanup_target_stop): Remove.
4649 (linux_nat_target::static_tracepoint_markers_by_strid): Use
4652 2019-01-23 Tom Tromey <tom@tromey.com>
4653 Pedro Alves <palves@redhat.com>
4655 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
4656 (call_function_by_hand_dummy): Use SCOPE_EXIT.
4658 2019-01-23 Tom Tromey <tom@tromey.com>
4659 Andrew Burgess <andrew.burgess@embecosm.com>
4660 Pedro Alves <palves@redhat.com>
4662 * infrun.c (fetch_inferior_event): Use scope_exit.
4663 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
4664 * top.c (execute_command): Use scope_exit.
4665 * breakpoint.c (bpstat_do_actions): Use scope_exit.
4666 * utils.c (do_bpstat_clear_actions_cleanup)
4667 (make_bpstat_clear_actions_cleanup): Remove.
4669 2019-01-23 Tom Tromey <tom@tromey.com>
4670 Pedro Alves <palves@redhat.com>
4672 * infrun.c: Include "common/scope-exit.h"
4673 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
4674 (wait_for_inferior): Use SCOPE_EXIT.
4675 (fetch_inferior_event): Use scope_exit.
4677 2019-01-23 Tom Tromey <tom@tromey.com>
4678 Pedro Alves <palves@redhat.com>
4680 * breakpoint.c (create_breakpoint): Remove cleanup.
4682 2019-01-23 Tom Tromey <tom@tromey.com>
4683 Andrew Burgess <andrew.burgess@embecosm.com>
4684 Pedro Alves <palves@redhat.com>
4686 2019-01-23 Pedro Alves <palves@redhat.com>
4688 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
4690 2019-01-23 Pedro Alves <palves@redhat.com>
4691 Andrew Burgess <andrew.burgess@embecosm.com>
4693 * gdbthread.h: Include "common/forward-scope-exit.h".
4694 (scoped_finish_thread_state): Redefine custom class in terms of
4697 2019-01-23 Pedro Alves <palves@redhat.com>
4698 Andrew Burgess <andrew.burgess@embecosm.com>
4700 * common/forward-scope-exit.h: New file.
4702 2019-01-23 Pedro Alves <palves@redhat.com>
4703 Andrew Burgess <andrew.burgess@embecosm.com>
4704 Tom Tromey <tom@tromey.com>
4706 * common/scope-exit.h: New file.
4708 2019-01-23 Pedro Alves <palves@redhat.com>
4710 * common/preprocessor.h (ESC): Rename to ...
4711 (ESC_PARENS): ... this.
4712 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
4713 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
4715 2019-01-23 Tom Tromey <tom@tromey.com>
4717 * language.h (class scoped_switch_to_sym_language_if_auto):
4718 Initialize m_lang in both cases.
4720 2019-01-23 Alan Hayward <alan.hayward@arm.com>
4722 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
4725 2019-01-22 Tom Tromey <tom@tromey.com>
4727 * corelow.c: Do not include sys/file.h.
4729 2019-01-22 Tom Tromey <tom@tromey.com>
4731 * tui/tui-wingeneral.h: Include gdb_curses.h.
4733 2019-01-22 Tom Tromey <tom@tromey.com>
4735 * source-cache.h (class source_cache) <get_source_lines,
4736 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
4738 2019-01-22 Tom Tromey <tom@tromey.com>
4740 * remote-fileio.h (struct remote_target): Declare.
4742 2019-01-22 Tom Tromey <tom@tromey.com>
4744 * python/py-arch.c: Do not include py-ref.h.
4745 * python/py-bpevent.c: Do not include py-ref.h.
4746 * python/py-cmd.c: Do not include py-ref.h.
4747 * python/py-continueevent.c: Do not include py-ref.h.
4748 * python/py-event.h: Do not include py-ref.h.
4749 * python/py-evtregistry.c: Do not include py-ref.h.
4750 * python/py-finishbreakpoint.c: Do not include py-ref.h.
4751 * python/py-frame.c: Do not include py-ref.h.
4752 * python/py-framefilter.c: Do not include py-ref.h.
4753 * python/py-function.c: Do not include py-ref.h.
4754 * python/py-infevents.c: Do not include py-ref.h.
4755 * python/py-linetable.c: Do not include py-ref.h.
4756 * python/py-objfile.c: Do not include py-ref.h.
4757 * python/py-param.c: Do not include py-ref.h.
4758 * python/py-prettyprint.c: Do not include py-ref.h.
4759 * python/py-progspace.c: Do not include py-ref.h.
4760 * python/py-symbol.c: Do not include py-ref.h.
4761 * python/py-symtab.c: Do not include py-ref.h.
4762 * python/py-type.c: Do not include py-ref.h.
4763 * python/py-unwind.c: Do not include py-ref.h.
4764 * python/py-utils.c: Do not include py-ref.h.
4765 * python/py-value.c: Do not include py-ref.h.
4766 * python/py-varobj.c: Do not include py-ref.h.
4767 * python/py-xmethods.c: Do not include py-ref.h.
4768 * python/python.c: Do not include py-ref.h.
4769 * varobj.c: Do not include py-ref.h.
4771 2019-01-22 Tom Tromey <tom@tromey.com>
4773 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
4776 2019-01-22 Tom Tromey <tom@tromey.com>
4778 * compile/compile-cplus-types.c: Remove a comment by #include.
4780 2019-01-22 Tom Tromey <tom@tromey.com>
4782 * compile/gcc-c-plugin.h: Include compile-internal.h.
4784 2019-01-22 Tom Tromey <tom@tromey.com>
4786 * stabsread.c (EXTERN): Do not define.
4787 (symnum, next_symbol_text_func, processing_gcc_compilation)
4788 (within_function, global_sym_chain, global_stabs)
4789 (previous_stab_code, this_object_header_files)
4790 (n_this_object_header_files)
4791 (n_allocated_this_object_header_files): Define.
4792 * stabsread.h (EXTERN): Never define. Use "extern".
4794 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4796 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
4799 2019-01-21 Tom Tromey <tom@tromey.com>
4801 * ui-out.c: Fix includes.
4802 * tui/tui-source.c: Fix includes.
4803 * target.c: Fix includes.
4804 * remote.c: Fix includes.
4805 * regcache.c: Fix includes.
4806 * python/py-block.c: Fix includes.
4807 * printcmd.c: Fix includes.
4808 * or1k-tdep.c: Fix includes.
4809 * mi/mi-main.c: Fix includes.
4810 * m32r-tdep.c: Fix includes.
4811 * csky-tdep.c: Fix includes.
4812 * compile/compile-cplus-types.c: Fix includes.
4813 * cli/cli-interp.c: Fix includes.
4815 2019-01-21 Alan Hayward <alan.hayward@arm.com>
4817 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
4820 2019-01-16 Tom Tromey <tom@tromey.com>
4822 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
4824 (struct objfile) <msymbols_range>: Move from top level.
4825 <msymbols>: New method.
4826 (class objfile_msymbols): Remove.
4827 * symtab.c (default_collect_symbol_completion_matches_break_on):
4829 * symmisc.c (dump_msymbols): Update.
4830 * stabsread.c (scan_file_globals): Update.
4831 * objc-lang.c (info_selectors_command, info_classes_command)
4832 (find_methods): Update.
4833 * minsyms.c (find_solib_trampoline_target): Update.
4834 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
4835 * coffread.c (coff_symfile_read): Update.
4836 * ada-lang.c (ada_lookup_simple_minsym)
4837 (ada_collect_symbol_completion_matches): Update.
4839 2019-01-16 Tom Tromey <tom@tromey.com>
4841 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
4842 type. Remove no-argument constructor.
4843 <iterator::operator++>: Simplify.
4845 <end>: Use minimal_symbol_count.
4847 2019-01-16 Tom Tromey <tom@tromey.com>
4849 * objfiles.h (struct objfile) <psymtabs>: New method.
4850 (class objfile_psymtabs): Remove.
4851 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
4853 <range>: New method.
4854 (require_partial_symbols): Change return type.
4855 * psymtab.c (require_partial_symbols)
4856 (psym_expand_symtabs_matching): Update.
4857 * mdebugread.c (parse_partial_symbols): Update.
4858 * dbxread.c (dbx_end_psymtab): Update.
4860 2019-01-15 Tom Tromey <tom@tromey.com>
4862 * symtab.c (lookup_objfile_from_block)
4863 (lookup_symbol_in_objfile_symtabs)
4864 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
4865 (find_line_symtab, info_sources_command)
4866 (default_collect_symbol_completion_matches_break_on)
4867 (make_source_files_completion_list): Update.
4868 * symmisc.c (print_objfile_statistics, dump_objfile)
4869 (maintenance_print_symbols, maintenance_info_symtabs)
4870 (maintenance_check_symtabs, maintenance_info_line_tables):
4872 * source.c (select_source_symtab)
4873 (forget_cached_source_info_for_objfile): Update.
4874 * objfiles.h (class objfile_compunits): Remove.
4875 (struct objfile) <compunits_range>: New typedef.
4876 (compunits): New method.
4877 * objfiles.c (objfile_relocate1): Update.
4878 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
4879 * maint.c (count_symtabs_and_blocks): Update.
4880 * linespec.c (iterate_over_all_matching_symtabs): Update.
4881 * cp-support.c (add_symbol_overload_list_qualified): Update.
4882 * coffread.c (coff_symtab_read): Update.
4883 * ada-lang.c (add_nonlocal_symbols)
4884 (ada_collect_symbol_completion_matches)
4885 (ada_add_global_exceptions): Update.
4887 2019-01-15 Tom Tromey <tom@tromey.com>
4889 * progspace.h (program_space) <objfiles_safe_range>: New
4891 <objfiles_safe>: New method.
4892 * objfiles.h (class all_objfiles_safe): Remove.
4893 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
4894 * jit.c (jit_inferior_exit_hook): Update.
4896 2019-01-17 Tom Tromey <tom@tromey.com>
4898 * progspace.h (program_space) <objfiles_range>: New typedef.
4899 <objfiles>: New method.
4900 <objfiles_head>: Rename from objfiles.
4901 (object_files): Update.
4902 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
4903 * guile/scm-pretty-print.c
4904 (ppscm_find_pretty_printer_from_objfiles): Update.
4905 * guile/scm-objfile.c (gdbscm_objfiles): Update.
4906 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
4908 * python/py-progspace.c (pspy_get_objfiles): Update.
4909 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
4911 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
4912 (objfpy_lookup_objfile_by_build_id): Update.
4913 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
4914 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
4916 * symtab.c (iterate_over_symtabs, matching_obj_sections)
4917 (expand_symtab_containing_pc, lookup_objfile_from_block)
4918 (lookup_static_symbol, basic_lookup_transparent_type)
4919 (find_pc_sect_compunit_symtab, find_symbol_at_address)
4920 (find_line_symtab, info_sources_command)
4921 (default_collect_symbol_completion_matches_break_on)
4922 (make_source_files_completion_list, find_main_name): Update.
4923 * symmisc.c (print_symbol_bcache_statistics)
4924 (print_objfile_statistics, maintenance_print_symbols)
4925 (maintenance_print_msymbols, maintenance_print_objfiles)
4926 (maintenance_info_symtabs, maintenance_check_symtabs)
4927 (maintenance_expand_symtabs, maintenance_info_line_tables):
4929 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
4930 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
4931 (map_overlay_command, unmap_overlay_command)
4932 (simple_overlay_update, expand_symtabs_matching)
4933 (map_symbol_filenames): Update.
4934 * symfile-debug.c (set_debug_symfile): Update.
4935 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
4937 * source.c (select_source_symtab, forget_cached_source_info):
4939 * solib.c (solib_read_symbols): Update.
4940 * solib-spu.c (append_ocl_sos): Update.
4941 * psymtab.c (maintenance_print_psymbols)
4942 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
4943 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
4944 * printcmd.c (info_symbol_command): Update.
4945 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
4947 * objfiles.h (class all_objfiles): Remove.
4948 * objfiles.c (have_partial_symbols, have_full_symbols)
4949 (have_minimal_symbols, qsort_cmp, update_section_map)
4950 (shared_objfile_contains_address_p)
4951 (default_iterate_over_objfiles_in_search_order): Update.
4952 * objc-lang.c (info_selectors_command, info_classes_command)
4953 (find_methods): Update.
4954 * minsyms.c (find_solib_trampoline_target): Update.
4955 * maint.c (maintenance_info_sections)
4956 (maintenance_translate_address, count_symtabs_and_blocks):
4958 * main.c (captured_main_1): Update.
4959 * linux-thread-db.c (try_thread_db_load_from_pdir)
4960 (has_libpthread): Update.
4961 * linespec.c (iterate_over_all_matching_symtabs)
4962 (search_minsyms_for_name): Update.
4963 * jit.c (jit_find_objf_with_entry_addr): Update.
4964 * hppa-tdep.c (find_unwind_entry)
4965 (hppa_lookup_stub_minimal_symbol): Update.
4966 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
4968 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
4969 (elf_gnu_ifunc_resolve_by_got): Update.
4970 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
4971 * dwarf-index-write.c (save_gdb_index_command): Update.
4972 * cp-support.c (add_symbol_overload_list_qualified): Update.
4973 * breakpoint.c (create_overlay_event_breakpoint)
4974 (create_longjmp_master_breakpoint)
4975 (create_std_terminate_master_breakpoint)
4976 (create_exception_master_breakpoint): Update.
4977 * blockframe.c (find_pc_partial_function): Update.
4978 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
4979 (ada_collect_symbol_completion_matches)
4980 (ada_add_global_exceptions): Update.
4982 2019-01-17 Tom Tromey <tom@tromey.com>
4984 * solib-target.c (lm_info_target_p): Remove typedef. Don't
4986 (solib_target_parse_libraries): Change return type.
4987 (library_list_start_segment, library_list_start_section)
4988 (library_list_end_library, library_list_start_library); Update.
4989 (solib_target_free_library_list): Remove.
4990 (solib_target_parse_libraries): Remove cleanup. Change return
4992 (solib_target_current_sos): Update.
4994 2019-01-17 Tom Tromey <tromey@bapiya>
4996 * valprint.c: Replace "the the" with "the".
4997 * symtab.c: Replace "the the" with "the".
4998 * solib.c: Replace "the the" with "the".
4999 * solib-dsbt.c: Replace "the the" with "the".
5000 * linespec.c: Replace "the the" with "the".
5001 * dwarf2loc.h: Replace "the the" with "the".
5002 * amd64-windows-tdep.c: Replace "the the" with "the".
5003 * aarch64-tdep.c: Replace "the the" with "the".
5005 2019-01-16 Keith Seitz <keiths@redhat.com>
5008 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
5009 <builder>: Rename to ..
5010 <m_builder>: ... this and make private.
5011 (dwarf2_cu::get_builder): New method. Change all users of
5012 `builder' to use this method.
5013 (dwarf2_start_symtab): Move to ...
5014 (dwarf2_cu::start_symtab): ... here. Update all callers
5015 (setup_type_unit_groups): Move to ...
5016 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
5018 (dwarf2_cu::reset_builder): New method.
5019 (process_full_compunit, process_full_type_unit): Use
5020 dwarf2_cu::reset_builder.
5021 (follow_die_offset): Record the ancestor CU if it is different
5022 from the followed DIE's CU.
5023 (follow_die_sig_1): Likewise.
5025 2019-01-15 Tom Tromey <tom@tromey.com>
5027 * remote.c (class remote_state) <buf>: Now a char_vector.
5029 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
5031 (remote_target::getpkt_or_notif_sane_1)
5032 (remote_target::getpkt_sane)
5033 (remote_target::getpkt_or_notif_sane): Likewise.
5034 (class remote_target) <putpkt>: New overload.
5035 (remote_target::read_frame): Change type of "buf_p". Remove
5037 (packet_ok): New overload.
5038 (packet_check_result): New overload.
5041 2019-01-14 Tom Tromey <tom@tromey.com>
5043 * remote-notif.c (handle_notification, remote_notif_ack)
5044 (remote_notif_parse): Make "buf" const.
5045 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
5047 (remote_notif_parse, remote_notif_ack, handle_notification):
5049 * remote.c (remote_notif_stop_parse): Make "buf" const.
5050 (remote_target::remote_parse_stop_reply): Make "buf" const.
5051 (remote_notif_stop_ack): Make "buf" const.
5053 2019-01-14 Tom Tromey <tom@tromey.com>
5055 * remote.c (remote_console_output): Make parameter const.
5057 2019-01-14 Tom Tromey <tom@tromey.com>
5059 * target-debug.h (target_debug_print_signals): Constify.
5060 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
5061 * procfs.c (procfs_target::pass_signals): Update.
5062 * linux-nat.c (linux_nat_target::pass_signals): Update.
5063 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
5064 * target-delegates.c: Rebuild.
5065 * remote.c (remote_target::program_signals): Update.
5066 (remote_target::pass_signals): Update.
5067 * target.c (target_pass_signals): Constify argument.
5068 (target_program_signals): Likewise.
5069 * target.h (struct target_ops) <pass_signals, program_signals>:
5071 (target_pass_signals, target_program_signals): Constify argument.
5073 2019-01-14 Tom Tromey <tom@tromey.com>
5076 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
5078 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5080 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
5082 * rs6000-tdep.c: Include reggroups.h.
5083 (IS_V_ALIAS_PSEUDOREG): Define.
5084 (rs6000_register_name): Return names for the "vX" aliases.
5085 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
5086 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
5087 aliases. Call default_register_reggroup_p for all other
5089 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
5091 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
5092 Handle "vX" aliases.
5093 (v_alias_pseudo_register_collect): New function.
5094 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
5095 (rs6000_gdbarch_init): Initialize "vX" aliases as
5096 pseudo-registers. Restore registration of
5097 rs6000_pseudo_register_reggroup_p with
5098 set_tdesc_pseudo_register_reggroup_p.
5100 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
5102 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
5103 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
5104 set_gdbarch_num_pseudo_regs.
5106 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5108 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
5109 Remove arg prefixname, add do_set and do_show.
5110 Add member functions set_list and show_list.
5111 * cli/cli-style.c (class cli_style_option): Update accordingly.
5112 (style_set_list): Move to file scope.
5113 (style_show_list): Likewise.
5114 (set_style): Call help_list.
5115 (show_style): Call cmd_show_list.
5116 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
5117 Update to use the new macro.
5119 2019-10-12 Joel Brobecker <brobecker@adacore.com>
5121 * ada-lang.c (_initialize_ada_language): Expand the help text
5122 for the "catch exception" command.
5124 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5126 * symtab.c (matching_obj_sections): Initialize obj,
5127 declare it closer to its usage.
5129 2019-01-10 Tom Tromey <tom@tromey.com>
5131 * thread-iter.h (inf_threads_iterator): Use next_iterator.
5132 (basic_inf_threads_range): Remove.
5133 (inf_threads_range, inf_non_exited_threads_range)
5134 (safe_inf_threads_range): Use next_adapter.
5136 2019-01-10 Keith Seitz <keiths@redhat.com>
5140 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
5141 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
5143 2019-01-10 Keith Seitz <keiths@redhat.com>
5147 * dictionary.c (pending_to_vector): Remove.
5148 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
5149 Remove _1 suffix, replacing functions of the same name. Update
5151 (dict_create_hashed, dict_create_hashed_expandable)
5152 (dict_create_linear, dict_create_linear_expandable, dict_free)
5153 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
5154 Make functions static.
5156 2019-01-10 Keith Seitz <keiths@redhat.com>
5160 * dictionary.h (struct dictionary): Replace declaration with
5162 (dict_create_hashed, dict_create_hashed_expandable)
5163 (dict_create_linear, dict_create_linear_expandable)
5164 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
5165 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
5166 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
5167 taking multidictionary argument.
5168 [ALL_DICT_SYMBOLS]: Update for multidictionary.
5169 * block.h (struct block) <dict>: Change to multidictionary
5170 and rename `multidict'.
5171 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
5172 symmisc.c: Update all dictionary references to multidictionary.
5174 2019-01-10 Keith Seitz <keiths@redhat.com>
5178 * dictionary.c: Include unordered_map.
5179 (pending_to_vector): New function.
5180 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
5181 Rewrite the non-"_1" functions to take vector instead
5183 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
5184 "new" _1 versions of the same name.
5185 (multidictionary): Define.
5186 (std::hash<enum language): New definition.
5187 (collate_pending_symbols_by_language, mdict_create_hashed)
5188 (mdict_create_hashed_expandable, mdict_create_linear)
5189 (mdict_create_linear_expandable, mdict_free)
5190 (find_language_dictionary, create_new_language_dictionary)
5191 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
5192 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
5193 (mdict_size, mdict_empty): New functions.
5194 * dictionary.h (mdict_iterator): Define.
5196 2019-01-10 Pedro Alves <palves@redhat.com>
5198 * breakpoint.c (read_uploaded_action)
5199 (create_tracepoint_from_upload): Adjust to use
5200 gdb::unique_xmalloc_ptr.
5201 * ctf.c (ctf_write_uploaded_tp):
5202 (SET_ARRAY_FIELD): Use emplace_back.
5203 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
5204 * tracefile-tfile.c (tfile_write_uploaded_tp):
5205 * tracepoint.c (parse_tracepoint_definition): Adjust to use
5206 gdb::unique_xmalloc_ptr.
5207 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
5208 at_string, cond_string, cmd_strings>: Replace char pointers
5209 with gdb::unique_xmalloc_ptr.
5211 2019-01-10 Pedro Alves <palves@redhat.com>
5213 * solib-target.c (library_list_start_library): Don't xstrdup name.
5215 2019-01-10 Pedro Alves <palves@redhat.com>
5217 * mdebugread.c (parse_partial_symbols): Use
5218 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
5220 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
5222 * linux-fork.c (scoped_switch_fork_info)
5223 <~scoped_switch_fork_info>: Fix incorrect variable name.
5225 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
5227 * linux-fork.c (scoped_switch_fork_info)
5228 <scoped_switch_fork_info>: Make explicit.
5229 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
5231 2019-01-10 Tom Tromey <tom@tromey.com>
5233 * objfiles.h (objfile::reset_psymtabs): Update.
5234 * objfiles.c (objfile::objfile): Update.
5235 * psymtab.h (psymtab_storage::obstack): Update.
5236 (psymtab_storage::m_obstack): Use gdb::optional.
5237 (class psymtab_storage): Update comment. Remove objfile
5239 * psymtab.c (psymtab_storage::psymtab_storage): Update.
5241 2019-01-10 Tom Tromey <tom@tromey.com>
5243 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
5244 <free_psymtabs>: Now private.
5245 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
5246 (allocate_psymtab): Use new method.
5248 2019-01-10 Tom Tromey <tom@tromey.com>
5250 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
5251 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
5252 * mdebugread.c (parse_partial_symbols): Use
5253 allocate_dependencies.
5254 * dwarf2read.c (dwarf2_create_include_psymtab): Use
5255 allocate_dependencies.
5256 (process_psymtab_comp_unit_reader)
5257 (build_type_psymtab_dependencies): Likewise.
5258 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
5260 2019-01-10 Tom Tromey <tom@tromey.com>
5262 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
5263 PSYMBOL_SET_LANGUAGE.
5264 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
5266 2019-01-10 Tom Tromey <tom@tromey.com>
5268 * psymtab.h (psymtab_storage::obstack): New method.
5269 <m_obstack>: Rename from obstack; now private.
5270 * psymtab.c (psymtab_storage): Update.
5271 * dwarf2read.c (create_addrmap_from_index)
5272 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
5275 2019-01-10 Tom Tromey <tom@tromey.com>
5277 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
5278 * objfiles.h (objfile::reset_psymtabs): New method.
5280 2019-01-10 Tom Tromey <tom@tromey.com>
5282 * symmisc.c (print_symbol_bcache_statistics): Update.
5283 (print_objfile_statistics): Update.
5284 * symfile.c (reread_symbols): Update.
5285 * psymtab.h (class psymtab_storage): New.
5286 * psymtab.c (psymtab_storage): New constructor.
5287 (~psymtab_storage): New destructor.
5288 (require_partial_symbols): Update.
5289 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
5290 (find_pc_sect_psymtab, find_pc_sect_psymbol)
5291 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
5292 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
5293 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
5294 (start_psymtab_common, end_psymtab_common)
5295 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
5296 (allocate_psymtab): Update.
5297 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
5299 (dump_psymtab_addrmap, maintenance_print_psymbols)
5300 (maintenance_check_psymtabs): Update.
5301 (class objfile_psymtabs): Move to objfiles.h.
5302 * psympriv.h (discard_psymtab): Now inline.
5303 (psymtab_discarder::psymtab_discarder): Update.
5304 (psymtab_discarder::~psymtab_discarder): Update.
5305 (ALL_OBJFILE_PSYMTABS): Rewrite.
5306 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
5307 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
5309 <partial_symtabs>: New field.
5310 (class objfile_psymtabs): Move from psymtab.h. Update.
5311 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
5313 (objfile::~objfile): Don't destroy psymbol_cache.
5314 * mdebugread.c (parse_partial_symbols): Update.
5315 * dwarf2read.c (create_addrmap_from_index)
5316 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5317 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
5318 (add_partial_subprogram, dwarf2_ranges_read): Update.
5319 * dwarf-index-write.c (write_address_map)
5320 (write_one_signatured_type, recursively_write_psymbols)
5321 (class debug_names, class debug_names, write_psymtabs_to_index):
5324 2019-01-10 Tom Tromey <tom@tromey.com>
5326 * symtab.h (SYMBOL_SET_NAMES): Update.
5327 (symbol_set_names): Update.
5328 (MSYMBOL_SET_NAMES): Update.
5329 * symtab.c (symbol_set_names): Change argument to be an
5330 objfile_per_bfd_storage.
5331 * psymtab.c (add_psymbol_to_bcache): Update.
5332 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
5334 2019-01-10 Tom Tromey <tom@tromey.com>
5336 * symtab.c (create_demangled_names_hash): Change argument to be an
5337 objfile_per_bfd_storage.
5338 (symbol_set_names): Update.
5340 2019-01-10 Tom Tromey <tom@tromey.com>
5342 * xcoffread.c (xcoff_initial_scan): Unconditionally call
5344 * psymtab.c (init_psymbol_list): Do nothing if already called.
5345 * psympriv.h (init_psymbol_list): Add comment.
5346 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
5348 * dbxread.c (dbx_symfile_read): Unconditionally call
5351 2019-01-10 Tom Tromey <tom@tromey.com>
5353 * xcoffread.c (scan_xcoff_symtab): Update.
5354 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
5356 * mdebugread.c (parse_partial_symbols)
5357 (handle_psymbol_enumerators): Update.
5358 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
5359 * dbxread.c (read_dbx_symtab): Update.
5360 * psympriv.h (psymbol_placement): New enum.
5361 (add_psymbol_to_list): Update.
5363 2019-01-10 Tom Tromey <tom@tromey.com>
5365 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
5366 static_psymbols parameters.
5367 (scan_xcoff_symtab): Update.
5368 * psymtab.c (start_psymtab_common): Remove global_psymbols and
5369 static_psymbols parameters.
5370 * psympriv.h (start_psymtab_common): Update.
5371 * mdebugread.c (parse_partial_symbols): Update.
5372 * dwarf2read.c (create_partial_symtab): Update.
5373 * dbxread.c (read_dbx_symtab): Update.
5374 (start_psymtab): Remove global_psymbols and static_psymbols
5377 2019-01-10 Tom Tromey <tom@tromey.com>
5379 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
5380 * psymtab.c (allocate_psymtab): Add comment.
5381 * psympriv.h (allocate_psymtab): Add comment.
5382 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
5384 * dbxread.c (dbx_end_psymtab): Remove some initializations.
5386 2019-01-10 Tom Tromey <tom@tromey.com>
5388 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
5390 * mipsread.c: Include mdebugread.h.
5391 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
5393 * elfread.c: Include mdebugread.h.
5395 2019-01-09 Tom Tromey <tom@tromey.com>
5397 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
5398 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
5399 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
5400 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
5401 (psym_lookup_symbol, psym_find_last_source_symtab)
5402 (psym_forget_cached_source_info, psym_print_stats)
5403 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
5404 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
5405 (psym_map_matching_symbols, psym_expand_symtabs_matching)
5406 (psym_find_compunit_symtab_by_address)
5407 (maintenance_print_psymbols, maintenance_info_psymtabs)
5408 (maintenance_check_psymtabs): Use ranged for.
5409 * psymtab.h (class objfile_psymtabs): New.
5410 (require_partial_symbols): Return objfile_psymtabs.
5411 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
5413 2019-01-09 Tom Tromey <tom@tromey.com>
5415 * symfile.c (overlay_invalidate_all, find_pc_overlay)
5416 (find_pc_mapped_section, list_overlays_command)
5417 (map_overlay_command, unmap_overlay_command)
5418 (simple_overlay_update): Use all_objfiles.
5419 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
5420 * printcmd.c (info_symbol_command): Use all_objfiles.
5421 * objfiles.h (ALL_OBJSECTIONS): Remove.
5422 * maint.c (maintenance_translate_address): Use all_objfiles.
5423 * gcore.c (gcore_create_callback): Use all_objfiles.
5424 (objfile_find_memory_regions): Likewise.
5426 2019-01-09 Tom Tromey <tom@tromey.com>
5428 * symtab.c (find_line_symtab, info_sources_command)
5429 (make_source_files_completion_list): Use objfile_compunits.
5430 * source.c (select_source_symtab): Use objfile_compunits.
5431 * objfiles.h (struct objfile): Update comment.
5432 (ALL_OBJFILES): Remove.
5433 (ALL_FILETABS): Remove.
5434 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
5437 2019-01-09 Tom Tromey <tom@tromey.com>
5439 * symmisc.c (print_objfile_statistics, dump_objfile)
5440 (maintenance_print_symbols): Use compunit_filetabs.
5441 * source.c (forget_cached_source_info_for_objfile): Use
5443 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
5444 (ALL_FILETABS): Use compunit_filetabs.
5445 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
5446 * coffread.c (coff_symtab_read): Use compunit_filetabs.
5448 2019-01-09 Tom Tromey <tom@tromey.com>
5450 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
5451 (compunit_filetabs): New.
5452 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
5454 (info_sources_command, make_source_files_completion_list): Remove
5456 * symmisc.c (print_objfile_statistics, dump_objfile)
5457 (maintenance_print_symbols): Remove declaration.
5458 (maintenance_info_symtabs): Use compunit_filetabs.
5459 (maintenance_info_line_tables): Likewise.
5460 * source.c (select_source_symtab): Change local variable name.
5461 (forget_cached_source_info_for_objfile): Remove declaration.
5462 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
5463 * objfiles.c (objfile_relocate1): Remove declaration.
5464 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
5466 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
5467 * coffread.c (coff_symtab_read): Remove declaration.
5468 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5471 2019-01-09 Tom Tromey <tom@tromey.com>
5473 * symtab.c (lookup_objfile_from_block)
5474 (find_pc_sect_compunit_symtab, search_symbols)
5475 (default_collect_symbol_completion_matches_break_on): Use
5477 * objfiles.h (ALL_COMPUNITS): Remove.
5478 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
5479 * cp-support.c (add_symbol_overload_list_qualified): Use
5481 * ada-lang.c (ada_collect_symbol_completion_matches)
5482 (ada_add_global_exceptions): Use objfile_compunits.
5484 2019-01-09 Tom Tromey <tom@tromey.com>
5486 * source.c (select_source_symtab)
5487 (forget_cached_source_info_for_objfile): Remove declaration.
5488 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
5490 * maint.c (count_symtabs_and_blocks): Remove declaration.
5491 * cp-support.c (add_symbol_overload_list_qualified): Remove
5493 * coffread.c (coff_symtab_read): Remove declaration.
5494 * symtab.c (lookup_symbol_in_objfile_symtabs)
5495 (basic_lookup_transparent_type_1): Use objfile_compunits.
5496 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
5497 (info_sources_command, search_symbols)
5498 (default_collect_symbol_completion_matches_break_on)
5499 (make_source_files_completion_list): Remove declaration.
5500 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
5501 (ada_collect_symbol_completion_matches)
5502 (ada_add_global_exceptions): Remove declaration.
5503 * linespec.c (iterate_over_all_matching_symtabs): Use
5505 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
5506 (class objfile_compunits): New.
5507 (ALL_COMPUNITS): Use objfile_compunits.
5508 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
5509 (maintenance_check_symtabs, maintenance_info_line_tables): Use
5511 * objfiles.c (objfile_relocate1): Use objfile_compunits.
5513 2019-01-09 Tom Tromey <tom@tromey.com>
5515 * symtab.c (search_symbols)
5516 (default_collect_symbol_completion_matches_break_on): Use
5518 * ada-lang.c (ada_lookup_simple_minsym)
5519 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
5520 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
5521 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
5523 * coffread.c (coff_symfile_read): Use objfile_msymbols.
5524 * symmisc.c (dump_msymbols): Use objfile_msymbols.
5525 * objc-lang.c (find_methods): Use objfile_msymbols.
5526 (info_selectors_command, info_classes_command): Likewise.
5527 * stabsread.c (scan_file_globals): Use objfile_msymbols.
5528 * objfiles.h (class objfile_msymbols): New.
5529 (ALL_OBJFILE_MSYMBOLS): Remove.
5530 (ALL_MSYMBOLS): Remove.
5532 2019-01-09 Tom Tromey <tom@tromey.com>
5534 * common/next-iterator.h (next_adapter): Add Iterator template
5536 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
5537 (class all_objfiles_safe): New.
5538 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
5539 * objfiles.c (put_objfile_before): Update comment.
5540 (add_separate_debug_objfile): Likewise.
5541 (free_all_objfiles): Use all_objfiles_safe.
5542 (objfile_purge_solibs): Likewise.
5544 2019-01-09 Tom Tromey <tom@tromey.com>
5546 * symtab.c (iterate_over_symtabs, matching_obj_sections)
5547 (expand_symtab_containing_pc, lookup_static_symbol)
5548 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
5549 (find_symbol_at_address, find_line_symtab, find_main_name): Use
5551 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
5552 * breakpoint.c (create_overlay_event_breakpoint)
5553 (create_longjmp_master_breakpoint)
5554 (create_std_terminate_master_breakpoint)
5555 (create_exception_master_breakpoint): Use all_objfiles.
5556 * linux-thread-db.c (try_thread_db_load_from_pdir)
5557 (has_libpthread): Use all_objfiles.
5558 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
5559 * linespec.c (iterate_over_all_matching_symtabs)
5560 (search_minsyms_for_name): Use all_objfiles.
5561 * maint.c (maintenance_info_sections): Use all_objfiles.
5562 * main.c (captured_main_1): Use all_objfiles.
5563 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
5564 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
5565 * guile/scm-pretty-print.c
5566 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
5567 * solib-spu.c (append_ocl_sos): Use all_objfiles.
5568 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
5569 (maintenance_print_msymbols): Use all_objfiles.
5570 * source.c (select_source_symtab): Use all_objfiles.
5571 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
5572 * symfile.c (remove_symbol_file_command)
5573 (expand_symtabs_matching, map_symbol_filenames): Use
5575 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
5577 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
5578 * objc-lang.c (find_methods): Use all_objfiles.
5579 * objfiles.c (have_partial_symbols, have_full_symbols)
5580 (have_minimal_symbols, qsort_cmp)
5581 (default_iterate_over_objfiles_in_search_order): Use
5583 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
5584 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
5585 (maintenance_check_psymtabs): Use all_objfiles.
5586 (ALL_PSYMTABS): Remove.
5587 * compile/compile-object-run.c (do_module_cleanup): Use
5589 * blockframe.c (find_pc_partial_function): Use all_objfiles.
5590 * cp-support.c (add_symbol_overload_list_qualified): Use
5592 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
5594 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
5595 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
5597 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
5598 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
5599 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
5601 * solib.c (solib_read_symbols): Use all_objfiles
5603 2019-01-09 Tom Tromey <tom@tromey.com>
5605 * probe.c (parse_probes_in_pspace): Use all_objfiles.
5606 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
5608 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
5609 * symmisc.c (print_symbol_bcache_statistics)
5610 (print_objfile_statistics, maintenance_print_objfiles)
5611 (maintenance_info_symtabs, maintenance_check_symtabs)
5612 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
5614 * source.c (forget_cached_source_info): Use all_objfiles.
5615 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
5616 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
5617 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
5618 * objfiles.c (update_section_map): Use all_objfiles.
5619 (shared_objfile_contains_address_p): Likewise.
5620 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
5621 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
5623 2019-01-09 Tom Tromey <tom@tromey.com>
5625 * common/next-iterator.h: New file.
5626 * objfiles.h (class all_objfiles): New.
5627 (struct objfile_iterator): New.
5629 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5631 * NEWS: Move the description of the changed "frame", "select-frame",
5632 and "info frame" commands to the Changed commands section.
5634 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
5636 * gdbtypes.c (check_stub_method_group): Remove handling of old
5638 * linespec.c (find_methods): Likewise.
5639 * stabsread.c (read_member_functions): Likewise.
5640 * valops.c (search_struct_method): Likewise.
5641 (value_struct_elt_for_reference): Likewise.
5642 * NEWS: Mention this change.
5644 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
5646 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
5648 * source.c (print_source_lines_base): Update line number check.
5649 (print_source_lines): New function.
5650 (source_lines_range::source_lines_range): New function.
5651 * source.h (class source_lines_range): New class.
5652 (print_source_lines): New declaration.
5654 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5656 * linespec.c (linespec_state_destructor): Free self->canonical_names.
5658 2019-01-08 Tom Tromey <tom@tromey.com>
5659 Simon Marchi <simon.marchi@ericsson.com>
5662 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
5663 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
5664 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
5665 * f-exp.y (DOLLAR_VARIABLE): Likewise.
5666 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
5667 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
5669 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5671 * source.c (select_source_symtab): Move header comment to
5672 declaration in source.h.
5673 (forget_cached_source_info_for_objfile): Likewise.
5674 (forget_cached_source_info): Likewise.
5675 (identify_source_line): Likewise.
5676 * source.h (identify_source_line): Move declaration from symtab.h
5677 and add comment from source.c
5678 (print_source_lines): Likewise.
5679 (forget_cached_source_info_for_objfile): Likewise.
5680 (forget_cached_source_info): Likewise.
5681 (select_source_symtab): Likewise.
5682 (enum print_source_lines_flag): Move definition from symtab.h.
5683 * symtab.h (identify_source_line): Move declaration to source.h.
5684 (print_source_lines): Likewise.
5685 (forget_cached_source_info_for_objfile): Likewise.
5686 (forget_cached_source_info): Likewise.
5687 (select_source_symtab): Likewise.
5688 (enum print_source_lines_flag): Move definition to source.h.
5689 * tui/tui-hooks.c: Add 'source.h' include.
5691 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5693 * source.c (print_source_lines_base): Handle requests to print
5694 reverse line number sequences, and guard against empty lines
5697 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5699 * source.c (print_source_lines_base): Fix skip of '\r' if next
5702 2019-01-06 Tom Tromey <tom@tromey.com>
5704 * c-exp.y (struct c_parse_state) <macro_original_text,
5705 expansion_obstack>: New member.
5706 (macro_original_text, expansion_obstack): Remove globals.
5707 (scan_macro_expansion, scanning_macro_expansion)
5708 (finished_macro_expansion): Update.
5709 (scan_macro_cleanup): Remove.
5710 (yylex, c_parse): Update.
5712 2019-01-06 Tom Tromey <tom@tromey.com>
5714 * c-exp.y (struct c_parse_state) <strings>: New member.
5715 (operator_stoken): Update.
5717 2019-01-06 Tom Tromey <tom@tromey.com>
5719 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
5720 (union type_stack_elt) <typelist_val>: Now a pointer to
5722 (type_stack_cleanup): Don't declare.
5723 (push_typelist): Update.
5724 * parse.c (pop_typelist): Return a std::vector.
5725 (push_typelist): Take a std::vector.
5726 (follow_types): Update. Do not free args.
5727 (type_stack_cleanup): Remove.
5728 * c-exp.y (struct c_parse_state): New.
5729 (cpstate): New global.
5730 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
5731 (nonempty_typelist): Update.
5732 (func_mod): Create a new vector.
5733 (c_parse): Create a c_parse_state.
5734 (check_parameter_typelist): Do not delete params.
5735 (function_method): Update. Do not delete type_list.
5737 2019-01-06 Tom Tromey <tom@tromey.com>
5740 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
5742 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
5743 (print_return_value): Likewise.
5745 2019-01-05 Tom Tromey <tom@tromey.com>
5747 * contrib/cleanup_check.py: Remove.
5748 * contrib/gcc-with-excheck: Remove.
5749 * contrib/exsummary.py: Remove.
5750 * contrib/excheck.py: Remove.
5752 2019-01-05 Joel Brobecker <brobecker@adacore.com>
5754 * thread.c (delete_thread_1): Add gdb_assert that THR is not
5755 NULL. Initialize tpprev to NULL instead of assigning it
5756 to NULL on the next statement.
5757 * windows-nat.c (windows_delete_thread): Remove check for
5758 main_thread_id before printing thread exit notifications.
5759 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
5760 Remove thread ID check against main_thread_id.
5761 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
5762 windows_delete_thread.
5763 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
5765 2019-01-04 Tom Tromey <tom@tromey.com>
5767 * compile/compile.c (_initialize_compile): Use upper case for
5768 metasyntactic variables.
5769 * symmisc.c (_initialize_symmisc): Use upper case for
5770 metasyntactic variables.
5771 * psymtab.c (_initialize_psymtab): Use upper case for
5772 metasyntactic variables.
5773 * demangle.c (demangle_command): Use upper case for metasyntactic
5775 (_initialize_demangler): Likewise.
5776 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
5779 2019-01-03 Tom Tromey <tom@tromey.com>
5781 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
5783 2019-01-03 Tom Tromey <tom@tromey.com>
5785 * python/py-symtab.c (salpy_str): Update.
5786 (struct salpy_sal_object) <symtab>: Now a PyObject.
5787 (salpy_dealloc): Update.
5788 (del_objfile_sal): Use gdbpy_ref.
5790 2019-01-03 Tom Tromey <tom@tromey.com>
5792 * python/py-type.c (convert_field): Use new_reference. Return
5794 (make_fielditem): Return gdbpy_ref.
5795 (typy_fields): Update.
5796 (typy_getitem): Update.
5797 (field_name): Return gdbpy_ref. Use new_reference.
5798 (typy_iterator_iternext): Update.
5800 2019-01-03 Tom Tromey <tom@tromey.com>
5802 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
5804 2019-01-03 Tom Tromey <tom@tromey.com>
5806 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
5807 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
5808 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
5809 (pspy_set_frame_filters, pspy_set_frame_unwinders)
5810 (pspy_set_type_printers): Likewise.
5811 * python/py-function.c (fnpy_init): Use gdbpy_ref.
5812 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
5813 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
5814 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
5815 (objfpy_set_type_printers): Likewise.
5817 2019-01-03 Tom Tromey <tom@tromey.com>
5819 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
5820 (gdbpy_print_stack): Use gdbpy_err_fetch.
5821 * python/python-internal.h (class gdbpy_err_fetch): New class.
5822 (class gdbpy_enter) <m_error_type, m_error_value,
5823 m_error_traceback>: Remove.
5824 <m_error>: New member.
5825 (gdbpy_exception_to_string): Don't declare.
5826 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
5827 * python/py-value.c (convert_value_from_python): Use
5829 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
5830 gdbpy_exception_to_string.
5831 (gdbpy_handle_exception): Use gdbpy_err_fetch.
5832 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
5835 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5837 * linux-nat.c (delete_lwp_cleanup): Delete.
5838 (struct lwp_deleter): New struct.
5839 (lwp_info_up): New typedef.
5840 (linux_nat_target::follow_fork): Delete cleanup, and make use of
5843 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5845 * linux-fork.c (class scoped_switch_fork_info): New class.
5846 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
5848 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5850 * valops.c (find_overload_match): Remove use of null_cleanup, and
5851 calls to do_cleanups.
5853 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5855 * compile/compile-cplus-types.c
5856 (compile_cplus_instance::decl_name): Handle changes to
5858 * cp-support.c (cp_func_name): Update header comment, update
5860 * cp-support.h (cp_func_name): Update return type in declaration.
5861 * valops.c (find_overload_match): Move temp_func local to top
5862 level of function and change its type. Use temp_func to hold and
5863 delete temporary string obtained from cp_func_name.
5865 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5867 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
5868 gdb::char_vector, remove cleanup, and update uses of `msg`.
5870 2019-01-03 Jim Wilson <jimw@sifive.com>
5872 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
5874 2019-01-02 Tom Tromey <tom@tromey.com>
5876 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
5877 (tdesc_parse_xml): Remove cleanups.
5878 * target-descriptions.h (make_cleanup_free_target_description):
5880 (target_desc_deleter): New struct.
5881 (target_desc_up): New typedef.
5882 * target-descriptions.c (target_desc_deleter::operator()): Rename
5883 from free_target_description.
5884 (make_cleanup_free_target_description): Remove.
5886 2019-01-02 Tom Tromey <tom@tromey.com>
5888 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
5889 constructor, destructor.
5890 (linespec_parser): Remove typedef.
5891 (~linespec_parser): Rename from linespec_parser_delete.
5892 (linespec_lex_to_end, linespec_complete_label)
5893 (linespec_complete): Update.
5894 (decode_line_full): Remove cleanups.
5895 (decode_line_1): Update.
5897 2019-01-02 Tom Tromey <tom@tromey.com>
5899 * python/python-internal.h (inferior_to_inferior_object): Change
5901 * python/py-exitedevent.c (create_exited_event_object): Update.
5902 * python/py-inferior.c (inferior_to_inferior_object): Return
5904 (python_new_inferior, python_inferior_deleted)
5905 (thread_to_thread_object, delete_thread_object)
5906 (build_inferior_list, gdbpy_selected_inferior): Update.
5907 * python/py-infthread.c (create_thread_object): Update. Also fail
5908 if inferior_to_inferior_object fails.
5910 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
5912 * inferior.h (class inferior) <displaced_step_state>: New field.
5913 * infrun.h (struct displaced_step_state): Move here from
5914 infrun.c. Initialize fields, add constructor.
5915 <inf>: Remove field.
5916 <reset>: New method.
5917 * infrun.c (struct displaced_step_inferior_state): Move to
5919 (displaced_step_inferior_states): Remove.
5920 (get_displaced_stepping_state): Adust.
5921 (displaced_step_in_progress_any_inferior): Adjust.
5922 (displaced_step_in_progress_thread): Adjust.
5923 (displaced_step_in_progress): Adjust.
5924 (add_displaced_stepping_state): Remove.
5925 (get_displaced_step_closure_by_addr): Adjust.
5926 (remove_displaced_stepping_state): Remove.
5927 (infrun_inferior_exit): Call displaced_step_state.reset.
5928 (use_displaced_stepping): Don't check for NULL.
5929 (displaced_step_prepare_throw): Call
5930 get_displaced_stepping_state.
5931 (displaced_step_fixup): Don't check for NULL.
5932 (prepare_for_detach): Don't check for NULL.
5934 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5936 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
5937 in case of call that did not complete.
5939 2019-01-02 Andrey Utkin <autkin@undo.io>
5941 * symfile.c (find_separate_debug_file): Fix search of debug files for
5944 2019-01-02 Tom Tromey <tom@tromey.com>
5946 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
5948 * python/py-frame.c (frapy_older): Remove cast.
5949 (frapy_newer): Likewise.
5950 * python/py-breakpoint.c (local_setattro): Remove cast.
5951 * python/py-arch.c (archpy_name): Remove local variable.
5952 * python/py-type.c (gdbpy_lookup_type): Remove cast.
5954 2019-01-02 Joel Brobecker <brobecker@adacore.com>
5956 * unittests/basic_string_view/element_access/char/empty.cc:
5957 Fix year range in copyright header.
5959 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
5961 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
5963 <operator==>: Update with for removed field.
5965 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
5966 <isa_features>: ...this.
5967 <abi_features>: New field.
5968 (riscv_isa_flen): Update comment.
5969 (riscv_abi_xlen): New declaration.
5970 (riscv_abi_flen): New declaration.
5971 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
5973 (riscv_abi_xlen): New function.
5974 (riscv_isa_flen): Update to get answer from isa_features.
5975 (riscv_abi_flen): New function.
5976 (riscv_has_fp_abi): Update to get answer from abi_features.
5977 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
5979 (riscv_call_info) <xlen, flen>: Update comment.
5980 (riscv_call_arg_struct): Remove invalid assertions
5981 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
5983 (riscv_gdbarch_init): Gather isa features and abi features
5984 separately, ensure both match on the gdbarch when reusing an old
5985 gdbarch. Relax an error check to allow 32-bit abi float to run on
5986 a target with 64-bit float hardware.
5988 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5990 * source.c (search_command_helper): Stop reverse search
5991 when line 1 has been searched.
5993 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5995 * record-full.c (record_full_base_target::close): Rewrite
5996 record_full_core_buf_list free logic.
5998 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6000 * break-catch-syscall.c (print_one_catch_syscall): xfree
6003 2019-01-01 Joel Brobecker <brobecker@adacore.com>
6005 * top.c (print_gdb_version): Update Copyright year in version
6008 2019-01-01 Joel Brobecker <brobecker@adacore.com>
6010 Update copyright year range in all GDB files.
6012 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
6014 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
6016 For older changes see ChangeLog-2018.
6022 version-control: never