Make current_source_* per-program-space
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1dd58850
TT
12019-10-02 Tom Tromey <tromey@adacore.com>
2
3 * source.c (struct current_source_location): New.
4 (current_source_key): New global.
5 (current_source_symtab, current_source_line)
6 (current_source_pspace): Remove.
7 (get_source_location): New function.
8 (get_current_source_symtab_and_line)
9 (set_default_source_symtab_and_line)
10 (set_current_source_symtab_and_line)
11 (clear_current_source_symtab_and_line, select_source_symtab)
12 (info_source_command, print_source_lines_base)
13 (info_line_command, search_command_helper, _initialize_source):
14 Update.
15
5c281dbb
TT
162019-10-02 Tom Tromey <tromey@adacore.com>
17
18 * source.c (select_source_symtab): Don't call
19 decode_line_with_current_source.
20
d3d32391
AB
212019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
22
23 * symtab.c (lookup_global_symbol): Search global block.
24
38583298
TT
252019-10-02 Tom Tromey <tromey@adacore.com>
26
27 * coffread.c (process_coff_symbol): Update.
28 * dwarf2read.c (var_decode_location, new_symbol): Update.
29 * mdebugread.c (parse_symbol): Update.
30 * objfiles.c (relocate_one_symbol): Update.
31 * stabsread.c (define_symbol, fix_common_block)
32 (scan_file_globals): Update.
33 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
34 (SET_SYMBOL_VALUE_ADDRESS): New macro.
35 * xcoffread.c (process_xcoff_symbol): Update.
36
9344c18f
AA
372019-10-02 Andreas Arnez <arnez@linux.ibm.com>
38
39 * MAINTAINERS: Update my email address.
40
df07e2c7
AB
412019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
42
43 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
44 std::vector.
45 (build_type_psymtabs_reader): Update for std::vector.
46 (build_type_psymtab_dependencies): Likewise.
47 * dwarf2read.h: Remove use of DEF_VEC_P.
48 (typedef sig_type_ptr): Delete.
49
554ac434
AB
502019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
51
52 * btrace.c (btrace_maint_clear): Update to handle change from VEC
53 to std::vector.
54 (btrace_maint_decode_pt): Likewise, and move allocation of the
55 vector outside of the loop.
56 (btrace_maint_update_packets): Update to handle change from VEC to
57 std::vector.
58 (btrace_maint_print_packets): Likewise.
59 (maint_info_btrace_cmd): Likewise.
60 * btrace.h: Remove use of DEF_VEC_O.
61 (typedef btrace_pt_packet_s): Delete.
62 (struct btrace_maint_info) <packets>: Change fromm VEC to
63 std::vector.
64 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
65
46f29a9a
AB
662019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
67
68 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
69 make accesses into the vector constant references.
70 (btrace_add_pc): Update for std::vector.
71 (btrace_stitch_bts): Likewise.
72 (parse_xml_btrace_block): Likewise.
73 (btrace_maint_update_packets): Likewise.
74 (btrace_maint_print_packets): Likewise.
75 (maint_info_btrace_cmd): Likewise.
76 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
77 std::vector.
78 (btrace_data::empty): Likewise.
79 (btrace_data_append): Likewise.
80 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
81 (typedef btrace_block_s): Delete.
82 (struct btrace_block): Add constructor.
83 (struct btrace_data_bts) <blocks>: Change to std::vector.
84 * nat/linux-btrace.c (perf_event_read_bts): Update for
85 std::vector.
86 (linux_read_bts): Likewise.
87
d770d56f
TT
882019-10-01 Tom Tromey <tom@tromey.com>
89
90 * cli/cli-logging.c (show_logging_filename): Use styled_string.
91
9d636d67
TT
922019-10-01 Tom Tromey <tom@tromey.com>
93
94 * stack.c (print_frame, info_frame_command_core): Use
95 styled_string.
96 * linux-thread-db.c (try_thread_db_load_1)
97 (try_thread_db_load_from_pdir_1): Use styled_string.
98 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
99 (auto_load_section_scripts, info_auto_load_local_gdbinit)
100 (maybe_print_unsupported_script_warning)
101 (maybe_print_script_not_found_warning): Use styled_string.
102 * ada-lang.c (user_select_syms): Use styled_string.
103
7f6aba03
TT
1042019-10-01 Tom Tromey <tom@tromey.com>
105
106 * p-lang.c (pascal_printstr): Use metadata style.
107 * value.c (show_convenience): Use metadata style.
108 * valprint.c (valprint_check_validity, val_print_optimized_out)
109 (val_print_not_saved, val_print_unavailable)
110 (val_print_invalid_address, generic_val_print, val_print)
111 (value_check_printable, val_print_array_elements): Use metadata
112 style.
113 * ui-out.h (class ui_out) <field_fmt>: New overload.
114 <do_field_fmt>: Add style parameter.
115 * ui-out.c (ui_out::field_fmt): New overload.
116 * typeprint.c (type_print_unknown_return_type)
117 (val_print_not_allocated, val_print_not_associated): Use metadata
118 style.
119 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
120 parameter.
121 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
122 * tracepoint.c (tvariables_info_1): Use metadata style.
123 * stack.c (print_frame_arg, print_frame_info, print_frame)
124 (info_frame_command_core): Use metadata style.
125 * skip.c (info_skip_command): Use metadata style.
126 * rust-lang.c (rust_print_enum): Use metadata style.
127 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
128 metadata style.
129 * python/py-framefilter.c (py_print_single_arg): Use metadata
130 style.
131 * printcmd.c (do_one_display, print_variable_and_value): Use
132 metadata style.
133 * p-valprint.c (pascal_val_print)
134 (pascal_object_print_value_fields): Use metadata style.
135 * p-typeprint.c (pascal_type_print_base): Use metadata style.
136 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
137 parameter.
138 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
139 * m2-valprint.c (m2_print_long_set): Use metadata style.
140 * m2-typeprint.c (m2_print_type): Use metadata style.
141 * infcmd.c (print_return_value_1): Use metadata style.
142 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
143 * f-valprint.c (info_common_command_for_block): Use metadata
144 style.
145 * f-typeprint.c (f_type_print_base): Use metadata style.
146 * expprint.c (print_subexp_standard): Use metadata style.
147 * cp-valprint.c (cp_print_value_fields): Use metadata style.
148 * cli/cli-style.h (class cli_style_option): Add constructor.
149 (metadata_style): Declare.
150 * cli/cli-style.c (metadata_style): New global.
151 (_initialize_cli_style): Register metadata style.
152 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
153 parameter.
154 * cli-out.c (cli_ui_out::do_field_fmt): Update.
155 * c-typeprint.c (c_type_print_base_struct_union)
156 (c_type_print_base_1): Use metadata style.
157 * breakpoint.c (watchpoint_value_print)
158 (print_one_breakpoint_location): Use metadata style.
159 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
160 style.
161 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
162 style.
163 * ada-valprint.c (val_print_packed_array_elements, printstr)
164 (print_field_values, ada_val_print_ref, ada_val_print): Use
165 metadata style.
166 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
167 style.
168 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
169 style.
170 * ada-lang.c (user_select_syms): Use metadata style.
171
14309bb6
TT
1722019-10-01 Tom Tromey <tom@tromey.com>
173
174 * cli/cli-cmds.c (pwd_command): Style output.
175
6a831f06
PA
1762019-10-01 Pedro Alves <palves@redhat.com>
177 Tom Tromey <tom@tromey.com>
178
179 * symtab.c (print_symbol_info): Use %ps.
180 (print_msymbol_info): Use %ps.
181 * symfile.c (symbol_file_add_with_addrs): Use %ps.
182 * printcmd.c (print_variable_and_value): Use %ps.
183 * macrocmd.c (show_pp_source_pos): Use %ps.
184 * infrun.c (print_exited_reason): Use ui_out::message.
185 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
186 (describe_other_breakpoints): Use ui_out::message and new
187 formats.
188 (say_where): Use new formats.
189 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
190 and new formats.
191
2a3c1174
PA
1922019-10-01 Pedro Alves <palves@redhat.com>
193 Tom Tromey <tom@tromey.com>
194
195 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
196 (test_gdb_formats): New function.
197 (run_tests): Call it.
198 (test_format_specifier): Update.
199 * utils.h (fputs_filtered): Update comment.
200 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
201 (fputs_styled_unfiltered): Declare.
202 * utils.c (fputs_styled_unfiltered): New function.
203 (vfprintf_maybe_filtered): Add gdbfmt parameter.
204 (vfprintf_filtered): Update.
205 (vfprintf_unfiltered, vprintf_filtered): Update.
206 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
207 * ui-out.h (enum ui_out_flag) <unfiltered_output,
208 disallow_ui_out_field>: New constants.
209 (enum class field_kind): New.
210 (struct base_field_s, struct signed_field_s): New.
211 (signed_field): New function.
212 (struct string_field_s): New.
213 (string_field): New function.
214 (struct styled_string_s): New.
215 (styled_string): New function.
216 (class ui_out) <message>: Add comment.
217 <vmessage, call_do_message>: New methods.
218 <do_message>: Add style parameter.
219 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
220 methods.
221 (ui_out::message): Rewrite.
222 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
223 parameter.
224 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
225 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
226 gdb_extensions parameter.
227 (class format_piece): Add parameter to constructor.
228 (n_int_args): New field.
229 * gdbsupport/format.c (format_pieces::format_pieces): Add
230 gdb_extensions parameter. Handle '*'.
231 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
232 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
233 vfprintf_styled_no_gdbfmt.
234 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
235 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
236 unfiltered output.
237 * ui-style.h (struct ui_file_style) <ptr>: New method.
238
0dfe5bfb
TT
2392019-10-01 Tom Tromey <tom@tromey.com>
240
241 * unittests/format_pieces-selftests.c: Update. Add final format.
242 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
243 empty literal pieces.
244
e43b10e1
TT
2452019-10-01 Tom Tromey <tom@tromey.com>
246
247 * ui-out.h (enum class ui_out_style_kind): Remove.
248 (class ui_out) <field_string, field_stsream, do_field_string>:
249 Change type of "style".
250 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
251 (ui_out::field_string): Update.
252 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
253 of "style".
254 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
255 * tracepoint.c (print_one_static_tracepoint_marker): Update.
256 * stack.c (print_frame_arg, print_frame_info, print_frame):
257 Update.
258 * source.c (print_source_lines_base): Update.
259 * solib.c (info_sharedlibrary_command): Update.
260 * skip.c (info_skip_command): Update.
261 * record-btrace.c (btrace_call_history_src_line)
262 (btrace_call_history): Update.
263 * python/py-framefilter.c (py_print_frame): Update.
264 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
265 "style".
266 * mi/mi-out.c (mi_ui_out::do_table_header)
267 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
268 (mi_ui_out::do_field_string): Update.
269 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
270 Update.
271 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
272 "style".
273 * cli-out.c (cli_ui_out::do_table_header)
274 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
275 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
276 (cli_ui_out::do_field_fmt): Update.
277 * breakpoint.c (print_breakpoint_location): Update.
278 (update_static_tracepoint): Update.
279
cd7c32c3
PW
2802019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
281
282 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
283 conversion of gdb_datadir.
284 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
285 remove not needed c_str ().
286
8fe0f950
AT
2872019-09-30 Ali Tamur <tamur@google.com>
288
289 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
290 (dwarf2_string_attr): Likewise.
291
5f48f8f3
AT
2922019-09-30 Ali Tamur <tamur@google.com>
293
294 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
295 (process_full_type_unit): Likewise.
296 (dump_die_shallow): Likewise.
297 (cu_debug_loc_section): Likewise.
298
6fb08628
CB
2992019-09-28 Christian Biesinger <cbiesinger@google.com>
300
301 * minsyms.c (compare_minimal_symbols): Rename to...
302 (minimal_symbol_is_less_than): ...this, and adjust to STL
303 conventions (return bool, take arguments as references)
304 (minimal_symbol_reader::install): Call std::sort instead
305 of qsort.
306
c7ee338a
CB
3072019-09-29 Christian Biesinger <cbiesinger@google.com>
308
309 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
310 hash and why.
311 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
312 msymbol_hash, msymbol_demangled_hash>: Improve comments.
313
703a86c2
SM
3142019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
315
316 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
317 * psympriv.h (add_psymbol_to_list): Move comment here and update
318 it.
319
0df0352a
TV
3202019-09-29 Tom de Vries <tdevries@suse.de>
321
322 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
323 Use $tmpdir/$(basename "$output_file").dwz instead of
324 "${output_file}.dwz".
325
ad75efa6
SM
3262019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
327
328 PR gdb/25045
329 * hppa-linux-nat.c: Include gdbarch.h.
330
ececd218
CB
3312019-09-26 Christian Biesinger <cbiesinger@google.com>
332
333 * blockframe.c (find_pc_partial_function): Change return type to bool.
334 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
335 * minsyms.c (in_gnu_ifunc_stub): Likewise.
336 (stub_gnu_ifunc_resolve_name): Likewise.
337 * symtab.c (compare_filenames_for_search): Likewise.
338 (compare_glob_filenames_for_search): Likewise.
339 (matching_obj_sections): Likewise.
340 (symbol_matches_domain): Likewise.
341 (find_line_symtab): Change out param EXACT_MATCH to bool *.
342 (find_line_pc): Change return type to bool.
343 (find_line_pc_range): Likewise.
344 (producer_is_realview): Likewise.
345 * symtab.h (symbol_matches_domain): Likewise.
346 (find_pc_partial_function): Likewise.
347 (find_pc_line_pc_range): Likewise.
348 (in_gnu_ifunc_stub): Likewise.
349 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
350 (find_line_pc): Likewise.
351 (find_line_pc_range): Likewise.
352 (matching_obj_sections): Likewise.
353 (find_line_symtab): Change out parameter to bool.
354 (producer_is_realview): Change return type to bool.
355 (compare_filenames_for_search): Likewise.
356 (compare_glob_filenames_for_search): Likewise.
357
27a900b8
TT
3582019-09-26 Tom Tromey <tom@tromey.com>
359
360 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
361 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
362 * gdb_usleep.h: Remove.
363 * gdb_usleep.c: Remove.
364 * utils.c: Don't include gdb_usleep.h.
365
5d63b30a
TT
3662019-09-26 Tom Tromey <tromey@adacore.com>
367
368 * python/py-type.c (type_to_type_object): Call check_typedef
369 for stub types.
370
12904d37
TT
3712019-09-26 Tom Tromey <tom@tromey.com>
372
373 * utils.h (initialize_utils): Don't declare.
374 * top.c (gdb_init): Don't call initialize_utils.
375 * utils.c (initialize_utils): Remove. Move contents...
376 (_initialize_utils): ... here.
377
858f25f0
TT
3782019-09-25 Tom Tromey <tom@tromey.com>
379
380 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
381 * utils.h (make_hex_string): Don't declare.
382 * utils.c (make_hex_string): Remove.
383
3d435220
TV
3842019-09-24 Tom de Vries <tdevries@suse.de>
385
386 PR gdb/23815
387 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
388 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
389
ddd44b70
DD
3902019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
391
392 * NEWS: Mention new simulator port for PRU.
393
f945dedf
CB
3942019-09-23 Christian Biesinger <cbiesinger@google.com>
395
396 * ada-exp.y (write_object_remaining): Update.
397 * ada-lang.c (ada_decode): Return a std::string instead of a char*
398 and eliminate the static buffer.
399 (ada_decode_symbol): Update.
400 (ada_la_decode): Update.
401 (ada_sniff_from_mangled_name): Update.
402 (is_valid_name_for_wild_match): Update.
403 (ada_lookup_name_info::matches): Update and simplify.
404 (name_matches_regex): Update.
405 (ada_add_global_exceptions): Update.
406 * ada-lang.h (ada_decode): Update signature.
407 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
408 * dwarf-index-write.c (debug_names::insert): Update.
409
7ab78ccb
SM
4102019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
411
412 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
413 formatting.
414
9252448b
SM
4152019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
416
417 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
418 Change "nonzero" to "true" in documentation.
419
626ca2c0
CB
4202019-09-20 Christian Biesinger <cbiesinger@google.com>
421
422 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
423 (_initialize_darwin_solib): Don't set
424 darwin_so_ops.lookup_lib_global_symbol.
425 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
426 set_gdbarch_iterate_over_objfiles_in_search_order.
427 (elf_lookup_lib_symbol): Rename to...
428 (svr4_iterate_over_objfiles_in_search_order): this, and update
429 to iterate semantics.
430 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
431 * solib.c (solib_global_lookup): Remove.
432 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
433 (solib_global_lookup): Remove.
434 * symtab.c (lookup_global_or_static_symbol): Remove call to
435 solib_global_lookup.
436
5a3a0d63
JB
4372019-09-20 Joel Brobecker <brobecker@adacore.com>
438
439 * NEWS: Move entries about default MI version now being
440 version 3, and about the GDB/MI fix for multi-location
441 breakpoints to the "since GDB 8.3" section.
442
ffea1427
JB
4432019-09-20 Joel Brobecker <brobecker@adacore.com>
444
445 GDB 8.3.1 released.
446
abf516c6
UW
4472019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
448
449 * NEWS: Mention that Cell/B.E. debugging support was removed.
450 * MAINTAINERS: Remove spu target.
451
452 * config/djgpp/fnchange.lst: Remove entries for removed files.
453
454 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
455 spu-multiarch.o, and spu-tdep.o.
456 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
457 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
458 spu-multiarch.c, and spu-tdep.c.
459 * spu-linux-nat.c: Remove file.
460 * spu-multiarch.c: Remove file.
461 * spu-tdep.c: Remove file.
462 * spu-tdep.h: Remove file.
463 * solib-spu.c: Remove file.
464 * solib-spu.h: Remove file.
465
466 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
467 * configure.nat (spu-linux): Remove.
468 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
469 solib-multiarch.o from gdb_target_obs.
470 (spu*-*-*): Remove.
471
472 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
473 feature flag.
474 (ppc_linux_no_features): Update.
475 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
476 Cell/B.E. support.
477 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
478 (tdesc_powerpc_cell64l): Likewise.
479 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
480 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
481 Cell/B.E. support.
482 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
483 Do not include "features/rs6000/powerpc-cell32l.c" or
484 "features/rs6000/powerpc-cell64l.c".
485 (ppc_linux_spu_section): Remove.
486 (ppc_linux_core_read_description): Remove Cell/B.E. support.
487 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
488 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
489 (ppc_linux_spe_context_lookup): Remove.
490 (ppc_linux_spe_context_inferior_created): Remove.
491 (ppc_linux_spe_context_solib_loaded): Remove.
492 (ppc_linux_spe_context_solib_unloaded): Remove.
493 (ppc_linux_spe_context): Remove.
494 (struct ppu2spu_cache): Remove.
495 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
496 (struct ppu2spu_data): Remove.
497 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
498 ppu2spu_unwind): Remove.
499 (ppc_linux_init_abi): Remove Cell/B.E. support.
500 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
501
502 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
503 (rs6000/powerpc-cell64l-expedite): Likewise
504 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
505 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
506 rs6000/powerpc-cell64l.xml.
507 * features/rs6000/powerpc-cell32l.xml: Remove.
508 * features/rs6000/powerpc-cell64l.xml: Likewise.
509 * features/rs6000/powerpc-cell32l.c: Remove generated file.
510 * features/rs6000/powerpc-cell64l.c: Likewise.
511 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
512 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
513 * regformats/reg-spu.dat: Remove.
514
515 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
516 * corelow.c (struct spuid_list): Remove.
517 (add_to_spuid_list): Remove.
518 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
519 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
520 (remote_protocol_features): Remove associated entries.
521 (_initialize_remote): No longer initialize them.
522 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
523 * linux-nat.c (SPUFS_MAGIC): Remove.
524 (linux_proc_xfer_spu): Remove.
525 (spu_enumerate_spu_ids): Remove.
526 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
527 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
528 (linux_make_corefile_notes): No longer call it.
529
530 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
531 (cooked_write_test): Likewise.
532
78e8cb91
TT
5332019-09-20 Tom Tromey <tom@tromey.com>
534
535 * NEWS: Mention case-sensitivity of TUI commands.
536 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
537 (tui_set_win_height_command, parse_scrolling_args): Likewise.
538 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
539
f074b67e
TT
5402019-09-20 Tom Tromey <tom@tromey.com>
541
542 * tui/tui-source.c (tui_source_window::set_contents): Use
543 make_unique_xstrdup.
544 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
545 make_unique_xstrdup.
546
63c4bf19
TT
5472019-09-20 Tom Tromey <tom@tromey.com>
548
549 * tui/tui-data.c: Remove separator comments.
550 * tui/tui-layout.c: Remove separator comments.
551 * tui/tui-win.c: Remove separator comments.
552 * tui/tui-wingeneral.c: Remove separator comments.
553
43df9b2f
TT
5542019-09-20 Tom Tromey <tom@tromey.com>
555
556 * tui/tui.h (strcat_to_buf): Don't declare.
557 * tui/tui.c (strcat_to_buf): Remove.
558
7226433c
TT
5592019-09-20 Tom Tromey <tom@tromey.com>
560
561 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
562 from "fullname".
563 * tui/tui-source.c (tui_source_window::set_contents)
564 (tui_source_window::location_matches_p)
565 (tui_source_window::maybe_update): Update.
566
80df3337
TT
5672019-09-20 Tom Tromey <tom@tromey.com>
568
569 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
570 Update.
571 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
572 prefix.
573 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
574 (tui_data_window::line_from_reg_element_no)
575 (tui_data_window::first_reg_element_no_inline)
576 (tui_data_window::show_registers)
577 (tui_data_window::show_register_group)
578 (tui_data_window::display_registers_from)
579 (tui_data_window::display_registers_from_line)
580 (tui_data_window::first_data_item_displayed)
581 (tui_data_window::delete_data_content_windows)
582 (tui_data_window::erase_data_content)
583 (tui_data_window::do_scroll_vertical)
584 (tui_data_window::refresh_window)
585 (tui_data_window::check_register_values): Update.
586
9923f347
TT
5872019-09-20 Tom Tromey <tom@tromey.com>
588
589 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
590 (struct tui_locator_window) <full_name, proc_name>: Now
591 std::string.
592 * tui/tui-stack.c (tui_locator_window::make_status_line)
593 (tui_locator_window::set_locator_fullname)
594 (tui_locator_window::set_locator_info): Update.
595 * tui/tui-source.c (tui_source_window::set_contents)
596 (tui_source_window::showing_source_p): Update.
597
b76251ab
TT
5982019-09-20 Tom Tromey <tom@tromey.com>
599
600 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
601 Don't call tui_locator_win_info_ptr.
602
0891be08
TT
6032019-09-20 Tom Tromey <tom@tromey.com>
604
605 * tui/tui-win.c (tui_resize_all): Don't call refresh.
606
1b935acf
TT
6072019-09-20 Tom Tromey <tom@tromey.com>
608
609 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
610 height for locator.
611 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
612 * tui/tui-layout.c (show_source_disasm_command, show_data)
613 (show_source_or_disasm_and_command): Use 1 as height for locator.
614
9abd8a65
TT
6152019-09-20 Tom Tromey <tom@tromey.com>
616
617 * tui/tui.c (tui_enable): Update.
618 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
619 Update.
620 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
621 Update.
622 * tui/tui-data.c (win_resized): Now bool.
623 (tui_win_resized): Return bool.
624 (tui_set_win_resized_to): Accept a bool.
625
b5457826
TT
6262019-09-20 Tom Tromey <tom@tromey.com>
627
628 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
629 Change type of "refresh_values_only".
630 * tui/tui-regs.c (tui_data_window::show_register_group): Change
631 type of "refresh_values_only".
632
6b915f7d
TT
6332019-09-20 Tom Tromey <tom@tromey.com>
634
635 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
636 std::string.
637 (tui_disassemble): Add "pos" parameter.
638 (tui_disasm_window::set_contents): Simplify.
639
2ad52f6f
TT
6402019-09-20 Tom Tromey <tom@tromey.com>
641
642 * tui/tui-winsource.h (struct tui_source_window_base)
643 <show_source_content>: Now private.
644 * tui/tui-winsource.c
645 (tui_source_window_base::show_source_content): Don't handle empty
646 content case.
647
b3b1bde6
TT
6482019-09-20 Tom Tromey <tom@tromey.com>
649
650 * tui/tui-layout.c (show_source_disasm_command)
651 (show_source_or_disasm_and_command): Don't call
652 show_source_content.
653
71a25ed2
TT
6542019-09-20 Tom Tromey <tom@tromey.com>
655
656 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
657 Declare.
658 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
659 from tui_make_status_line.
660 (tui_locator_window::rerender): Update.
661
f8532154
TT
6622019-09-20 Tom Tromey <tom@tromey.com>
663
664 * tui/tui-stack.c (tui_make_status_line): Return std::string.
665 (tui_locator_window::rerender): Update.
666
2d81b349
TT
6672019-09-20 Tom Tromey <tom@tromey.com>
668
669 * tui/tui-winsource.h (struct tui_source_window_base)
670 <~tui_source_window_base>: Don't declare.
671 <fullname>: Remove.
672 * tui/tui-winsource.c (~tui_source_window_base): Remove.
673 * tui/tui-source.h (struct tui_source_window) <fullname>: New
674 member.
675 * tui/tui-source.c (tui_source_window::set_contents): Update.
676 (tui_source_window::location_matches_p)
677 (tui_source_window::maybe_update): Update.
678
f14bec58
TT
6792019-09-20 Tom Tromey <tom@tromey.com>
680
681 * tui/tui-winsource.h (~tui_source_element): Remove.
682 (tui_source_element): Update.
683 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
684 * tui/tui-winsource.c (tui_show_source_line): Update.
685 * tui/tui-source.c (tui_source_window::set_contents): Update.
686 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
687
78d5933a
TT
6882019-09-20 Tom Tromey <tom@tromey.com>
689
690 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
691 declare.
692 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
693 tui_clear_source_windows_detail.
694 * tui/tui-winsource.h (struct tui_source_window_base)
695 <clear_detail>: Don't declare.
696 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
697 Remove.
698 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
699
d4207696
TT
7002019-09-20 Tom Tromey <tromey@adacore.com>
701
702 PR ada/24919:
703 * block.c (contained_in): Fix final return value.
704
00f93c44
AM
7052019-09-20 Alan Modra <amodra@gmail.com>
706
707 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
708 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
709 (read_indirect_string_from_dwz): Use bfd accessor.
710 * dwarf2read.h (struct dwz_file <filename>): Likewise.
711 * machoread.c (macho_symfile_read_all_oso): Likewise.
712 * solib.c (solib_bfd_open): Likewise.
713
e4153ae6
CB
7142019-09-19 Christian Biesinger <cbiesinger@google.com>
715
716 * eval.c: Move declaration of overload_resolution to...
717 * value.h: ...here.
718
c7ae7675
CB
7192019-09-19 Christian Biesinger <cbiesinger@google.com>
720
721 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
722 * arm-linux-tdep.c: Likewise.
723 * arm-nbsd-nat.c: Likewise.
724 * arm-tdep.h: Declare arm_apcs_32.
725 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
726
e86f08d2
CB
7272019-09-19 Christian Biesinger <cbiesinger@google.com>
728
729 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
730 * dwarf2read.h: Declare dwarf_always_disassemble.
731
f64e2f40
TV
7322019-09-19 Tom de Vries <tdevries@suse.de>
733
734 PR gdb/25009
735 * source-cache.c (source_cache::ensure): Catch exception thrown during
736 construction of the highlighter.
737
fd361982
AM
7382019-09-18 Alan Modra <amodra@gmail.com>
739
740 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
741 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
742 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
743 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
744 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
745 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
746 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
747 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
748 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
749 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
750 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
751 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
752 * solib-spu.c, * solib-svr4.c, * solib-target.c,
753 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
754 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
755 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
756 * mi/mi-interp.c: Update throughout for bfd section macro and
757 function changes.
758 * gcore (gcore_create_callback): Use bfd_set_section_lma.
759 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
760
11061048
TT
7612019-09-18 Tom Tromey <tom@tromey.com>
762
763 * NEWS: Add entry.
764 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
765 call rl_initialize.
766 (tui_enable): Do not call rl_initialize.
767
7a27b85f
CG
7682019-09-18 Christian Groessler <chris@groessler.org>
769
770 * alpha-linux-nat.c: Include gdbarch.h.
771
f64eea3a
SM
7722019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
773
774 * ui-file.c: Include cli/cli-style.h.
775 (term_cli_styling): Remove cli_styling declaration.
776
e6f7f6d1
AM
7772019-09-18 Alan Modra <amodra@gmail.com>
778
779 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
780 to bfd_asymbol_section.
781
1d38e9d1
AM
7822019-09-18 Alan Modra <amodra@gmail.com>
783
784 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
785 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
786 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
787
90d92a63
AM
7882019-09-18 Alan Modra <amodra@gmail.com>
789
790 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
791 * spu-linux-nat.c (spu_bfd_open): Likewise.
792
a3d181d2
CB
7932019-09-18 Christian Biesinger <cbiesinger@google.com>
794
795 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
796 to bool to match definition in dwarf2read.c.
797
491144b5
CB
7982019-09-17 Christian Biesinger <cbiesinger@google.com>
799
800 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
801 (print_signatures): Likewise.
802 (trust_pad_over_xvs): Likewise.
803 * arch/aarch64-insn.c (aarch64_debug): Likewise.
804 * arch/aarch64-insn.h (aarch64_debug): Likewise.
805 * arm-linux-nat.c (arm_apcs_32): Likewise.
806 * arm-linux-tdep.c (arm_apcs_32): Likewise.
807 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
808 * arm-tdep.c (arm_debug): Likewise.
809 (arm_apcs_32): Likewise.
810 * auto-load.c (debug_auto_load): Likewise.
811 (auto_load_gdb_scripts): Likewise.
812 (global_auto_load): Likewise.
813 (auto_load_local_gdbinit): Likewise.
814 (auto_load_local_gdbinit_loaded): Likewise.
815 * auto-load.h (global_auto_load): Likewise.
816 (auto_load_local_gdbinit): Likewise.
817 (auto_load_local_gdbinit_loaded): Likewise.
818 * breakpoint.c (disconnected_dprintf): Likewise.
819 (breakpoint_proceeded): Likewise.
820 (automatic_hardware_breakpoints): Likewise.
821 (always_inserted_mode): Likewise.
822 (target_exact_watchpoints): Likewise.
823 (_initialize_breakpoint): Update.
824 * breakpoint.h (target_exact_watchpoints): Change to bool.
825 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
826 * cli/cli-cmds.c (trace_commands): Likewise.
827 * cli/cli-cmds.h (trace_commands): Likewise.
828 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
829 to bool*.
830 * cli/cli-logging.c (logging_overwrite): Change to bool.
831 (logging_redirect): Likewise.
832 (debug_redirect): Likewise.
833 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
834 (struct boolean_option_def) <get_var_address_cb_>: Change return type
835 to bool.
836 <boolean_option_def>: Update.
837 (struct flag_option_def): Change default type of Context to bool
838 from int.
839 <flag_option_def>: Change return type of var_address_cb_ to bool*.
840 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
841 (get_setshow_command_value_string): Likewise.
842 * cli/cli-style.c (cli_styling): Change to bool.
843 (source_styling): Likewise.
844 * cli/cli-style.h (source_styling): Likewise.
845 (cli_styling): Likewise.
846 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
847 to bool.
848 * command.h (var_types): Update comment.
849 (add_setshow_boolean_cmd): Change int* var argument to bool*.
850 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
851 bool.
852 (debug_compile_cplus_scopes): Likewise.
853 * compile/compile-internal.h (compile_debug): Likewise.
854 * compile/compile.c (compile_debug): Likewise.
855 (struct compile_options) <raw>: Likewise.
856 * cp-support.c (catch_demangler_crashes): Likewise.
857 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
858 (usr_cmd_cris_dwarf2_cfi): Likewise.
859 * csky-tdep.c (csky_debug): Likewise.
860 * darwin-nat.c (enable_mach_exceptions): Likewise.
861 * dcache.c (dcache_enabled_p): Likewise.
862 * defs.h (info_verbose): Likewise.
863 * demangle.c (demangle): Likewise.
864 (asm_demangle): Likewise.
865 * dwarf-index-cache.c (debug_index_cache): Likewise.
866 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
867 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
868 * dwarf2read.c (check_physname): Likewise.
869 (use_deprecated_index_sections): Likewise.
870 (dwarf_always_disassemble): Likewise.
871 * eval.c (overload_resolution): Likewise.
872 * event-top.c (set_editing_cmd_var): Likewise.
873 (exec_done_display_p): Likewise.
874 * event-top.h (set_editing_cmd_var): Likewise.
875 (exec_done_display_p): Likewise.
876 * exec.c (write_files): Likewise.
877 * fbsd-nat.c (debug_fbsd_lwp): Likewise
878 (debug_fbsd_nat): Likewise.
879 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
880 Likewise.
881 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
882 <backtrace_past_entry> Likewise.
883 * gdb-demangle.h (demangle): Likewise.
884 (asm_demangle): Likewise.
885 * gdb_bfd.c (bfd_sharing): Likewise.
886 * gdbcore.h (write_files): Likewise.
887 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
888 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
889 * gdbthread.h (print_thread_events): Likewise.
890 * gdbtypes.c (opaque_type_resolution): Likewise.
891 (strict_type_checking): Likewise.
892 * gnu-nat.c (gnu_debug_flag): Likewise.
893 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
894 * guile/scm-param.c (pascm_variable): Add boolval.
895 (add_setshow_generic): Update.
896 (pascm_param_value): Update.
897 (pascm_set_param_value_x): Update.
898 * hppa-tdep.c (hppa_debug): Change to bool..
899 * infcall.c (may_call_functions_p): Likewise.
900 (coerce_float_to_double_p): Likewise.
901 (unwind_on_signal_p): Likewise.
902 (unwind_on_terminating_exception_p): Likewise.
903 * infcmd.c (startup_with_shell): Likewise.
904 * inferior.c (print_inferior_events): Likewise.
905 * inferior.h (startup_with_shell): Likewise.
906 (print_inferior_events): Likewise.
907 * infrun.c (step_stop_if_no_debug): Likewise.
908 (detach_fork): Likewise.
909 (debug_displaced): Likewise.
910 (disable_randomization): Likewise.
911 (non_stop): Likewise.
912 (non_stop_1): Likewise.
913 (observer_mode): Likewise.
914 (observer_mode_1): Likewise.
915 (set_observer_mode): Update.
916 (sched_multi): Change to bool.
917 * infrun.h (debug_displaced): Likewise.
918 (sched_multi): Likewise.
919 (step_stop_if_no_debug): Likewise.
920 (non_stop): Likewise.
921 (disable_randomization): Likewise.
922 * linux-tdep.c (use_coredump_filter): Likewise.
923 (dump_excluded_mappings): Likewise.
924 * linux-thread-db.c (auto_load_thread_db): Likewise.
925 (check_thread_db_on_load): Likewise.
926 * main.c (captured_main_1): Update.
927 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
928 xx2_opt, boolean_opt>: Change to bool.
929 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
930 * maint.c (maintenance_profile_p): Likewise.
931 (per_command_time): Likewise.
932 (per_command_space): Likewise.
933 (per_command_symtab): Likewise.
934 * memattr.c (inaccessible_by_default): Likewise.
935 * mi/mi-main.c (mi_async): Likewise.
936 (mi_async_1): Likewise.
937 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
938 * nat/fork-inferior.h (startup_with_shell): Likewise.
939 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
940 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
941 * nios2-tdep.c (nios2_debug): Likewise.
942 * or1k-tdep.c (or1k_debug): Likewise.
943 * parse.c (parser_debug): Likewise.
944 * parser-defs.h (parser_debug): Likewise.
945 * printcmd.c (print_symbol_filename): Likewise.
946 * proc-api.c (procfs_trace): Likewise.
947 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
948 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
949 (set_parameter_value): Update.
950 (add_setshow_generic): Update.
951 * python/py-value.c (copy_py_bool_obj): Change argument from int*
952 to bool*.
953 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
954 int*.
955 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
956 * record-btrace.c (record_btrace_target::store_registers): Update.
957 * record-full.c (record_full_memory_query): Change to bool.
958 (record_full_stop_at_limit): Likewise.
959 * record-full.h (record_full_memory_query): Likewise.
960 * remote-notif.c (notif_debug): Likewise.
961 * remote-notif.h (notif_debug): Likewise.
962 * remote.c (use_range_stepping): Likewise.
963 (interrupt_on_connect): Likewise.
964 (remote_break): Likewise.
965 * ser-tcp.c (tcp_auto_retry): Likewise.
966 * ser-unix.c (serial_hwflow): Likewise.
967 * skip.c (debug_skip): Likewise.
968 * solib-aix.c (solib_aix_debug): Likewise.
969 * spu-tdep.c (spu_stop_on_load_p): Likewise.
970 (spu_auto_flush_cache_p): Likewise.
971 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
972 Likewise.
973 (struct info_print_options) <quiet>: Likewise.
974 * symfile-debug.c (debug_symfile): Likewise.
975 * symfile.c (auto_solib_add): Likewise.
976 (separate_debug_file_debug): Likewise.
977 * symfile.h (auto_solib_add): Likewise.
978 (separate_debug_file_debug): Likewise.
979 * symtab.c (basenames_may_differ): Likewise.
980 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
981 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
982 (struct info_types_options) <quiet>: Likewise.
983 * symtab.h (demangle): Likewise.
984 (basenames_may_differ): Likewise.
985 * target-dcache.c (stack_cache_enabled_1): Likewise.
986 (code_cache_enabled_1): Likewise.
987 * target.c (trust_readonly): Likewise.
988 (may_write_registers): Likewise.
989 (may_write_memory): Likewise.
990 (may_insert_breakpoints): Likewise.
991 (may_insert_tracepoints): Likewise.
992 (may_insert_fast_tracepoints): Likewise.
993 (may_stop): Likewise.
994 (auto_connect_native_target): Likewise.
995 (target_stop_and_wait): Update.
996 (target_async_permitted): Change to bool.
997 (target_async_permitted_1): Likewise.
998 (may_write_registers_1): Likewise.
999 (may_write_memory_1): Likewise.
1000 (may_insert_breakpoints_1): Likewise.
1001 (may_insert_tracepoints_1): Likewise.
1002 (may_insert_fast_tracepoints_1): Likewise.
1003 (may_stop_1): Likewise.
1004 * target.h (target_async_permitted): Likewise.
1005 (may_write_registers): Likewise.
1006 (may_write_memory): Likewise.
1007 (may_insert_breakpoints): Likewise.
1008 (may_insert_tracepoints): Likewise.
1009 (may_insert_fast_tracepoints): Likewise.
1010 (may_stop): Likewise.
1011 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1012 (make_thread_apply_all_options_def_group): Change argument from int*
1013 to bool*.
1014 (thread_apply_all_command): Update.
1015 (print_thread_events): Change to bool.
1016 * top.c (confirm): Likewise.
1017 (command_editing_p): Likewise.
1018 (history_expansion_p): Likewise.
1019 (write_history_p): Likewise.
1020 (info_verbose): Likewise.
1021 * top.h (confirm): Likewise.
1022 (history_expansion_p): Likewise.
1023 * tracepoint.c (disconnected_tracing): Likewise.
1024 (circular_trace_buffer): Likewise.
1025 * typeprint.c (print_methods): Likewise.
1026 (print_typedefs): Likewise.
1027 * utils.c (debug_timestamp): Likewise.
1028 (sevenbit_strings): Likewise.
1029 (pagination_enabled): Likewise.
1030 * utils.h (sevenbit_strings): Likewise.
1031 (pagination_enabled): Likewise.
1032 * valops.c (overload_resolution): Likewise.
1033 * valprint.h (struct value_print_options) <prettyformat_arrays,
1034 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1035 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1036 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1037 Likewise.
1038 * windows-nat.c (new_console): Likewise.
1039 (cygwin_exceptions): Likewise.
1040 (new_group): Likewise.
1041 (debug_exec): Likewise.
1042 (debug_events): Likewise.
1043 (debug_memory): Likewise.
1044 (debug_exceptions): Likewise.
1045 (useshell): Likewise.
1046 * windows-tdep.c (maint_display_all_tib): Likewise.
1047 * xml-support.c (debug_xml): Likewise.
1048
f1b620e9
MG
10492019-09-17 Mike Gulick <mgulick@mathworks.com>
1050
1051 * source.c (prepare_path_for_appending): New function.
1052 (openp): Make use of new function.
1053 (find_and_open_source): Search for the compilation directory and
1054 source file as a relative path beneath the directory search path.
1055
67f3ed6a
AB
10562019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1057
1058 * source-cache.c (source_cache::get_line_charpos): Catch
1059 exceptions and return false, this matches the behaviour documented
1060 in the header file.
1061
74332189
JB
10622019-09-17 Joel Brobecker <brobecker@adacore.com>
1063
1064 * ada-tasks.c (info_task): Remove quoting of the task's name.
1065
f2f24aa9
CB
10662019-09-16 Christian Biesinger <cbiesinger@google.com>
1067
1068 * symfile.c (auto_solib_add): Replace comment with a reference
1069 to the header file.
1070
6a062a93
CB
10712019-09-14 Christian Biesinger <cbiesinger@google.com>
1072
1073 * NEWS: Mention that gdb can now be compiled with Python 3
1074 on Windows.
1075
ec6c8338
AB
10762019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1077
1078 * maint.c (maint_print_section_data::maint_print_section_data):
1079 Force use of 'float log10 (float)' by casting the argument to
1080 float.
1081
aa17805f
AB
10822019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1083
1084 * maint.c: Add 'cmath' include.
1085 (struct maint_print_section_data): New structure.
1086 (print_section_index): New function.
1087 (print_bfd_section_info): Add header comment, small whitespace
1088 cleanup, and update to call new print_section_index function.
1089 (print_objfile_section_info): Likewise.
1090 (maint_obj_section_from_bfd_section): New function.
1091 (print_bfd_section_info_maybe_relocated): New function.
1092 (maintenance_info_sections): Add header comment, always use
1093 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1094
3dd9bb46
AB
10952019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1096
1097 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1098 inner scope, add check that the objfile has psymtabs before
1099 checking psymtabs_addrmap.
1100 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1101
4993045d
PW
11022019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1103
1104 * NEWS: Announce that Ada task names are now shown at more places,
1105 and between quotes (except in info task output).
1106 * gdb/ada-tasks.c (task_to_str): New function.
1107 (display_current_task_id): Call task_to_str.
1108 (task_command_1): Likewise.
1109 (print_ada_task_info): In non-mi mode, Properly align headers and data
1110 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1111
7a289707
RO
11122019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1113
1114 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1115 prstatus.pr_lwp.pr_info instead of making it up.
1116
f2aec7f6
CB
11172019-09-11 Christian Biesinger <cbiesinger@google.com>
1118
1119 * auto-load.c (auto_load_expand_dir_vars): Update.
1120 * defs.h (gdb_datadir): Change to std::string.
1121 (python_libdir): Likewise.
1122 (relocate_gdb_directory): Change return type to std::string.
1123 * guile/guile.c (gdbscm_data_directory): Update.
1124 (initialize_scheme_side): Update.
1125 * jit.c (jit_reader_dir): Change to std::string.
1126 (jit_reader_load_command): Update.
1127 * main.c (gdb_datadir): Change to std::string.
1128 (python_libdir): Likewise.
1129 (set_gdb_data_directory): Update.
1130 (relocate_path): Change to return std::string.
1131 (relocate_gdb_directory): Change to return std::string.
1132 (relocate_gdbinit_path_maybe_in_datadir): Update.
1133 (captured_main_1): Update.
1134 * python/python.c (do_start_initialization): Update.
1135 * top.c (show_gdb_datadir): Update.
1136 * xml-syscall.c (xml_init_syscalls_info): Update.
1137 (init_syscalls_info): Update.
1138
9224a013
CB
11392019-09-11 Christian Biesinger <cbiesinger@google.com>
1140
1141 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1142 out of get_init_files.
1143 (get_init_files): Update.
1144
f48cd836
CB
11452019-09-11 Christian Biesinger <cbiesinger@google.com>
1146
1147 * main.c (get_init_files): Change to use std::string.
1148 (captured_main_1): Update.
1149 (print_gdb_help): Update.
1150
9cab7ecd
AT
11512019-09-11 Ali Tamur <tamur@google.com>
1152
1153 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1154 implementation.
1155
67547d89
CB
11562019-09-11 Christian Biesinger <cbiesinger@google.com>
1157
1158 * dbxread.c (read_dbx_symtab): Update.
1159 * dwarf2read.c (load_partial_dies): Update.
1160 * mdebugread.c (parse_partial_symbols): Update.
1161 (handle_psymbol_enumerators): Update.
1162 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1163 * psymtab.c (add_psymbol_to_bcache): Likewise.
1164 (add_psymbol_to_list): Likewise.
1165 * symtab.c (symbol_set_names): Likewise.
1166 * symtab.h (symbol_set_names): Likewise.
1167 * xcoffread.c (scan_xcoff_symtab): Update.
1168
64b2d4a0
TT
11692019-09-11 Tom Tromey <tom@tromey.com>
1170
1171 * symfile-mem.c (symbol_file_add_from_memory): Use
1172 bfd_set_filename.
1173 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1174 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1175
3b00ef10
TT
11762019-09-10 Tom Tromey <tromey@adacore.com>
1177
1178 * dwarf-index-write.c (write_psymbols): Extend error message.
1179 (debug_names::insert): Add Ada code.
1180 (debug_names::write_psymbols): Remove Ada check.
1181 (debug_names) <m_string_obstack>: New member.
1182 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1183 (gdb_index_symbol_name_matcher::matches): Remove.
1184 (mapped_index_base::find_name_components_bounds): Add "lang"
1185 parameter.
1186 (mapped_index_base::build_name_components): Also split names
1187 according to Ada syntax.
1188 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1189 type of "match_callback".
1190 (check_match, check_find_bounds_finds)
1191 (dw2_expand_symtabs_matching): Update.
1192 (dw2_debug_names_iterator): Add new constructor.
1193 (dw2_debug_names_map_matching_symbols): New function.
1194 (dw2_debug_names_expand_symtabs_matching): Update.
1195 (dwarf2_debug_names_functions): Use
1196 dw2_debug_names_map_matching_symbols.
1197
aa391654
TT
11982019-09-10 Tom Tromey <tromey@adacore.com>
1199
1200 * dwarf2read.c (dw2_get_file_names_reader): Add the
1201 CU's file name to the results.
1202
b054970d
TT
12032019-09-10 Tom Tromey <tromey@adacore.com>
1204
1205 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1206 map_matching_symbols. Update.
1207 * dwarf2read.c (dw2_map_matching_symbols): Update.
1208 * psymtab.c (match_partial_symbol): Change type; update.
1209 (psym_map_matching_symbols): Likewise.
1210 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1211 type; update.
1212 * symfile.h (struct quick_symbol_functions)
1213 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1214 Remove "match".
1215
6a3dbf1b
TT
12162019-09-10 Tom Tromey <tromey@adacore.com>
1217
1218 * psymtab.c (map_block): Remove.
1219 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1220 * symtab.c (iterate_over_symbols_terminated): New function.
1221 * symtab.c (iterate_over_symbols_terminated): Declare.
1222
6969f124
TT
12232019-09-10 Tom Tromey <tromey@adacore.com>
1224
1225 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1226 * language.h (struct language_defn) <la_iterate_over_symbols>:
1227 Return bool.
1228 * symtab.c (iterate_over_symbols): Return bool.
1229 * symtab.h (iterate_over_symbols): Return bool.
1230
199b4314
TT
12312019-09-10 Tom Tromey <tromey@adacore.com>
1232
1233 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1234 (add_nonlocal_symbols): Update.
1235 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1236 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1237 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1238 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1239 Change type of "callback". Remove "data".
1240
a084a2a6
AT
1241
12422019-09-09 Ali Tamur <tamur@google.com>
1243
1244 * dwarf2read.c (comp_unit_head): Update comment.
1245 (dwarf2_dwo_name): New function declaration.
1246 (dwarf_unit_type_name): New function declaration.
1247 (read_comp_unit_head): Add support for new compilation units,
1248 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
1249 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
1250 (currently named as "signature") in their header. Also clarify error
1251 messages.
1252 (lookup_dwo_id): New function. Returns the dwo id of the given
1253 compile unit.
1254 (lookup_dwo_unit): Use the new lookup_dwo_id function.
1255 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
1256 functions.
1257 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
1258 (dwarf2_dwo_name): Get the dwo name if present.
1259 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
1260 purposes.
1261
25a2915e
TT
12622019-09-09 Tom Tromey <tom@tromey.com>
1263
1264 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1265
e4df0874
PW
12662019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1267
1268 * python/python.c (do_start_initialization): Make progname_copy static,
1269 to avoid a leak report.
1270
8634b462
TT
12712019-09-08 Tom Tromey <tom@tromey.com>
1272
1273 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1274
c7f839cb
SM
12752019-09-07 Simon Marchi <simon.marchi@efficios.com>
1276
1277 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1278 Change type to gdb::optional<block_enum>.
1279 (dw2_symtab_iter_init): Change block_index parameter type
1280 to gdb::optional<block_enum>.
1281 (dw2_lookup_symbol): Change block_index parameter
1282 type to block_enum.c
1283 (dw2_debug_names_lookup_symbol): Likewise.
1284 * psymtab.c (psym_lookup_symbol): Likewise.
1285 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1286 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1287 Likewise.
1288
ead0e69a
CB
12892019-09-06 Christian Biesinger <cbiesinger@google.com>
1290
1291 * defs.h (relocate_gdb_directory): Change int to bool in
1292 signature and rename flag to relocatable.
1293 * main.c (relocate_path): Likewise.
1294 (relocate_gdb_directory): Likewise.
1295
b16c44de
AM
12962019-09-06 Alan Modra <amodra@gmail.com>
1297
1298 * coffread.c (coff_symfile_read): Constify filename variable.
1299 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
1300 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
1301 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
1302 * solib.c (reload_shared_libraries_1): Likewise.
1303 * symfile.c (reread_symbols): Likewise.
1304 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
1305 * solib-darwin.c (darwin_bfd_open): Likewise.
1306 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1307
06ff036e
AB
13082019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1309
1310 * psymtab.c (print_partial_symbols): Handle missing domain_enum
1311 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
1312
4e962e74
TT
13132019-09-03 Tom Tromey <tromey@adacore.com>
1314
1315 * ada-valprint.c (ada_val_print_num): Don't recurse for range
1316 types.
1317 (has_negatives): Unbias a range type bound.
1318 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
1319 * gdbtypes.c (operator==): Handle new field.
1320 (create_range_type): Add "bias" parameter.
1321 (create_static_range_type, resolve_dynamic_range): Update.
1322 * gdbtypes.h (struct range_bounds) <bias>: New member.
1323 (create_range_type): Add bias parameter.
1324 * printcmd.c (print_scalar_formatted): Unbias range types.
1325 * value.c (unpack_long): Unbias range types.
1326 (pack_long): Bias range types.
1327
d90b8f26
AH
13282019-09-02 Alan Hayward <alan.hayward@arm.com>
1329
1330 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
1331 probe arguments.
1332
fe01123e
AH
13332019-09-02 Alan Hayward <alan.hayward@arm.com>
1334
1335 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
1336 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
1337 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
1338 (compile_probe_arg): Likewise.
1339 * probe.h (get_argument_count): Likewise.
1340 * solib-svr4.c (solib_event_probe_action): Likewise.
1341 * stap-probe.c (stap_probe::get_argument_count): Likewise.
1342
e661ef01
AH
13432019-09-02 Alan Hayward <alan.hayward@arm.com>
1344
1345 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
1346 code to here...
1347 (svr4_create_solib_event_breakpoints): ...from here.
1348
47a536d9
SDJ
13492019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
1350
1351 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
1352 suffix from warning message.
1353
d6a00eba
TT
13542019-08-30 Tom Tromey <tom@tromey.com>
1355
1356 * tui/tui-winsource.h (struct tui_source_window_base)
1357 <refresh_all>: Don't declare.
1358 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1359 Remove.
1360 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1361 tui_show_locator_content.
1362 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1363 declare.
1364 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1365 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1366 declare.
1367
55b2657b
TT
13682019-08-30 Tom Tromey <tom@tromey.com>
1369
1370 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1371
12a8555a
TT
13722019-08-30 Tom Tromey <tom@tromey.com>
1373
1374 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1375 Remove unnecessary forward declarations.
1376
900ac242
TT
13772019-08-30 Tom Tromey <tom@tromey.com>
1378
1379 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1380 rerender.
1381 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1382 tui_show_locator_content.
1383
99ab33fb
TT
13842019-08-30 Tom Tromey <tom@tromey.com>
1385
1386 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1387 (tui_locator_window::rerender): Rewrite using body of previous
1388 tui_show_locator_content.
1389
e594a5d1
TT
13902019-08-30 Tom Tromey <tom@tromey.com>
1391
1392 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1393 set_locator_fullname>: New methods.
1394 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1395 Rename from tui_set_locator_fullname.
1396 (tui_locator_window::set_locator_info): Rename from
1397 tui_set_locator_info. Return bool.
1398 (tui_update_locator_fullname, tui_show_frame_info): Update.
1399
715bb467
TT
14002019-08-30 Tom Tromey <tom@tromey.com>
1401
1402 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1403
772f3f03
TT
14042019-08-30 Tom Tromey <tom@tromey.com>
1405
1406 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1407 call touchwin.
1408
108e13ab
TT
14092019-08-30 Tom Tromey <tom@tromey.com>
1410
1411 * tui/tui-wingeneral.c (box_win): Assume win_info and
1412 win_info->handle cannot be NULL.
1413
cdaa6eb4
TT
14142019-08-30 Tom Tromey <tom@tromey.com>
1415
1416 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1417 refresh_window>: Declare.
1418 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1419 resize.
1420 (tui_data_item_window::rerender): Rename from
1421 tui_display_register.
1422 (tui_data_item_window::refresh_window): New method.
1423 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1424 no-op.
1425
89df7f90
TT
14262019-08-30 Tom Tromey <tom@tromey.com>
1427
1428 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1429 regs_column_count, current_group>: Move later. Now private.
1430 <get_current_group>: New method.
1431 * tui/tui-regs.c (tui_reg_command): Update.
1432 * tui/tui-layout.c (tui_set_layout): Update.
1433
1bf2866a
TT
14342019-08-30 Tom Tromey <tom@tromey.com>
1435
1436 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1437 (tui_data_window::rerender): Don't call
1438 check_and_display_highlight_if_needed.
1439 (tui_data_window::refresh_all): Remove call to
1440 erase_data_content.
1441
0670413d
TT
14422019-08-30 Tom Tromey <tom@tromey.com>
1443
1444 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1445 (tui_data_window::display_registers_from)
1446 (tui_data_window::display_reg_element_at_line)
1447 (tui_data_window::display_registers_from_line): Remove checks of
1448 "empty".
1449
18bb55c7
TT
14502019-08-30 Tom Tromey <tom@tromey.com>
1451
1452 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1453 Don't declare.
1454 * tui/tui-regs.c (tui_data_window::show_registers): Call
1455 rerender.
1456 (tui_data_window::rerender): Rename from display_all_data.
1457 (tui_data_window::rerender): Remove old implementation.
1458
1f6d2f10
TT
14592019-08-30 Tom Tromey <tom@tromey.com>
1460
1461 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1462 text.
1463 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1464
16d01f9c
BW
14652019-08-29 Bernhard Wodok <barto@gmx.net>
1466 Sergio Durigan Junior <sergiodj@redhat.com>
1467
1468 PR win32/24284
1469 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1470
d8f27c60
AB
14712019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1472
1473 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1474 when searching for types.
1475
1f20c35e
AB
14762019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1477
1478 * f-lang.c (f_language_defn): Use f_print_typedef.
1479 * f-lang.h (f_print_typedef): Declare.
1480 * f-typeprint.c (f_print_typedef): Define.
1481
550105b7
CB
14822019-08-27 Christian Biesinger <cbiesinger@google.com>
1483
1484 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1485
4acfdd20
AB
14862019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1487
1488 * cli/cli-utils.c (info_print_options_defs): Delete.
1489 (make_info_print_options_def_group): Delete.
1490 (extract_info_print_options): Delete.
1491 (info_print_command_completer): Delete.
1492 (info_print_args_help): Add extra parameter, and optionally
1493 include text about -n flag.
1494 * cli/cli-utils.h (struct info_print_options): Delete.
1495 (extract_info_print_options): Delete declaration.
1496 (info_print_command_completer): Delete declaration.
1497 (info_print_args_help): Add extra parameter, extend header
1498 comment.
1499 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1500 search_symbols.
1501 * stack.c (struct info_print_options): New type.
1502 (info_print_options_defs): New file scoped variable.
1503 (make_info_print_options_def_group): New static function.
1504 (info_print_command_completer): New static function.
1505 (info_locals_command): Update to use new local functions.
1506 (info_args_command): Likewise.
1507 (_initialize_stack): Add extra parameter to calls to
1508 info_print_args_help.
1509 * symtab.c (search_symbols): Add extra parameter, use this to
1510 possibly excluse non-debug symbols.
1511 (symtab_symbol_info): Add extra parameter, which is passed on to
1512 search_symbols.
1513 (struct info_print_options): New type.
1514 (info_print_options_defs): New file scoped variable.
1515 (make_info_print_options_def_group): New static function.
1516 (info_print_command_completer): New static function.
1517 (info_variables_command): Update to use local functions, and pass
1518 extra parameter through to symtab_symbol_info.
1519 (info_functions_command): Likewise.
1520 (info_types_command): Pass additional argument through to
1521 symtab_symbol_info.
1522 (rbreak_command): Pass extra argument to search_symbols.
1523 (_initialize_symtab): Add extra arguments for calls to
1524 info_print_args_help, and update help text for 'info variables',
1525 'whereis', and 'info functions' commands.
1526 * symtab.h (search_symbols): Add extra argument to declaration.
1527 * NEWS: Mention new flags.
1528
9aa55206
CB
15292019-08-26 Christian Biesinger <cbiesinger@google.com>
1530
1531 * symtab.c (lookup_static_symbol): Call the new function (and move
1532 it down to be next to lookup_global_symbol).
1533 (struct global_sym_lookup_data): Add block_enum member and rename to...
1534 (struct global_or_static_sym_lookup_data): ...this.
1535 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1536 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1537 (lookup_symbol_global_or_static_iterator_cb): ...this.
1538 (lookup_global_or_static_symbol): New function.
1539 (lookup_global_symbol): Call new function.
1540
5c31b358
TV
15412019-08-26 Tom de Vries <tdevries@suse.de>
1542
1543 PR c++/24852
1544 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1545 when pc_probe.prob == NULL.
1546
23c13d42
SM
15472019-08-25 Simon Marchi <simon.marchi@efficios.com>
1548
1549 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1550 variable symbol_linkage to symbol_linkage_.
1551
beadd3e8
SM
15522019-08-25 Simon Marchi <simon.marchi@efficios.com>
1553
1554 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1555 represent whether the symbol is static, dynamic, or we don't
1556 know.
1557
e3ec872f
YS
15582019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1559
1560 * gdb/rx-tdep.c (rx_register_names): New.
1561 (rx_register_name): Delete.
1562 (rx_psw_type): Delete.
1563 (rx_fpsw_type): Delete.
1564 (rx_register_type): Delete.
1565 (rx_gdbarch_init): Convert target-descriptions.
1566 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1567 * gdb/features/Makefile: Add rx.xml.
1568 * gdb/features/rx.xml: New.
1569 * gdb/features/rx.c: Generated.
1570 * gdb/NEWS: Mention target description support.
1571
d0509ba4
CB
15722019-08-22 Christian Biesinger <cbiesinger@google.com>
1573
1574 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1575 *slot_ptr.
1576
2d41fa11
SDJ
15772019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1578
1579 * configure.ac: Don't check for 'dlfcn.h' (moved to
1580 gdbsupport/common.m4).
1581 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1582 'gdbsupport/'.
1583 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1584 * compile/compile-c-support.c: Include
1585 'gdbsupport/gdb-dlfcn.h'.
1586 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1587 * gdb-dlfcn.c: Move to...
1588 * gdbsupport/gdb-dlfcn.c: ... here.
1589 * gdb-dlfcn.h: Move to...
1590 * gdbsupport/gdb-dlfcn.h: ... here.
1591
de8af808
SL
15922019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1593
1594 * nios2-tdep.c (struct reg_value): Improve comments. Make
1595 the offset field signed.
1596
27204489
CB
15972019-08-22 Christian Biesinger <cbiesinger@google.com>
1598
1599 * python/lib/gdb/__init__.py (_execute_file): New function.
1600 * python/python.c (python_run_simple_file): Call gdb._execute_file
1601 on Windows.
1602
43771869
AB
16032019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1604
1605 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1606 all uses as this was never set to anything but a zero value.
1607
26c957f1
PA
16082019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1609
1610 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1611
c07aae6e
CB
16122019-08-21 Christian Biesinger <cbiesinger@google.com>
1613
1614 * tui/tui-data.h (tui_gen_win_info): Add an =default
1615 move constructor, required by some GCC versions.
1616
3960cb7a
JF
16172019-08-21 Jinke Fan <fanjinke51@yeah.net>
1618
1619 * go32-nat.c (go32_sysinfo): Add hygon_p.
1620
04c72a68
TT
16212019-08-20 Tom Tromey <tom@tromey.com>
1622
1623 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1624 line_from_reg_element_no, first_reg_element_no_inline,
1625 display_all_data, delete_data_content_windows,
1626 erase_data_content>: Now private.
1627
072272ce
TT
16282019-08-20 Tom Tromey <tom@tromey.com>
1629
1630 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1631 (tui_unhighlight_win, tui_highlight_win)
1632 (tui_win_info::make_window): Update.
1633 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1634
973961bd
TT
16352019-08-20 Tom Tromey <tom@tromey.com>
1636
1637 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1638 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1639 (MAX_PID_WIDTH): Move to tui-stack.c.
1640 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1641 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1642 (MAX_PID_WIDTH): Move from tui-data.h.
1643
ab0e1f1a
TT
16442019-08-20 Tom Tromey <tom@tromey.com>
1645
1646 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1647 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1648 (box_win): Update.
1649 (tui_gen_win_info::make_window): Rename from tui_make_window.
1650 (tui_win_info::make_window): New method.
1651 (tui_gen_win_info::make_visible): Update.
1652 * tui/tui-source.c (tui_source_window::set_contents): Update.
1653 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1654 (tui_data_window::display_registers_from): Update.
1655 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1656 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1657 Declare.
1658 <can_box>: Remove.
1659 <title>: Remove.
1660 (struct tui_win_info) <make_window>: Declare.
1661 <can_box>: Now virtual.
1662 <title>: New member.
1663 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1664 * tui/tui-command.c (tui_cmd_window::resize): Update.
1665
100c2bf3
TT
16662019-08-20 Tom Tromey <tom@tromey.com>
1667
1668 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1669 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1670 (tui_data_window::check_register_values): Update.
1671
fa4dc567
TT
16722019-08-20 Tom Tromey <tom@tromey.com>
1673
1674 * tui/tui-regs.h (struct tui_data_window): Use
1675 DISABLE_COPY_AND_ASSIGN.
1676 <regs_content>: Change type, removing unique_ptr.
1677 <tui_data_window>: Add move constructor.
1678 * tui/tui-regs.c (tui_data_window::show_registers)
1679 (tui_data_window::show_register_group)
1680 (tui_data_window::display_registers_from)
1681 (tui_data_window::display_registers_from)
1682 (tui_data_window::first_data_item_displayed)
1683 (tui_data_window::delete_data_content_windows)
1684 (tui_data_window::rerender, tui_data_window::refresh_window)
1685 (tui_data_window::check_register_values): Update.
1686
ca02d7c8
TT
16872019-08-20 Tom Tromey <tom@tromey.com>
1688
1689 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1690 show_register_group>: Declare.
1691 (tui_show_register_group): Don't declare.
1692 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1693 tui_show_registers.
1694 (tui_data_window::show_register_group): Rename from
1695 tui_show_register_group.
1696 (tui_data_window::check_register_values, tui_reg_command):
1697 Update.
1698 * tui/tui-layout.c (tui_set_layout): Update.
1699
63356bfd
TT
17002019-08-20 Tom Tromey <tom@tromey.com>
1701
1702 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1703 Declare.
1704 (tui_check_register_values): Don't declare.
1705 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1706 from tui_check_register_values.
1707 * tui/tui-hooks.c (tui_register_changed): Update.
1708
42cc14a7
TT
17092019-08-20 Tom Tromey <tom@tromey.com>
1710
1711 * tui/tui-regs.c (tui_reg_layout): Move later.
1712 (tui_show_registers): Don't enable TUI mode or change layout.
1713
b9ad3686
TT
17142019-08-20 Tom Tromey <tom@tromey.com>
1715
1716 * tui/tui-regs.h (struct tui_data_item_window)
1717 <~tui_data_item_window>: Remove.
1718 <content>: Now a unique_xmalloc_ptr.
1719 * tui/tui-regs.c (tui_register_format): Return a
1720 unique_xmalloc_ptr.
1721 (tui_get_register): Update.
1722 (~tui_data_item_window): Remove.
1723 (tui_data_window::display_registers_from, tui_display_register):
1724 Update.
1725 * tui/tui-io.h (tui_expand_tabs): Update.
1726 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1727 Remove "col" parameter.
1728
8e114aab
TT
17292019-08-20 Tom Tromey <tom@tromey.com>
1730
1731 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1732 field.
1733 * tui/tui-regs.c (~tui_data_item_window): Update.
1734
1a4f81dd
TT
17352019-08-20 Tom Tromey <tom@tromey.com>
1736
1737 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1738 earlier.
1739
0f8d8876
TT
17402019-08-20 Tom Tromey <tom@tromey.com>
1741
1742 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1743
605dc2c2
TT
17442019-08-20 Tom Tromey <tom@tromey.com>
1745
1746 * tui/tui-source.h (struct tui_source_window): Update.
1747 * tui/tui-regs.c (tui_show_registers): Update.
1748 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1749 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1750 (NO_REGS_STRING): Remove defines.
1751
aedbe3bb
CM
17522019-08-20 Conrad Meyer <cem@FreeBSD.org>
1753
1754 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1755 unnecessary thread walk if remote doesn't support the packet.
1756
7ce8f214
TT
17572019-08-19 Tom Tromey <tromey@adacore.com>
1758
1759 * python/py-value.c (value_has_field): Fix indentation.
1760
f21c2bd7
TT
17612019-08-19 Tom Tromey <tromey@adacore.com>
1762
1763 * printcmd.c (do_one_display, info_display_command): Update.
1764 * block.h (contained_in): Return bool. Add allow_nested
1765 parameter.
1766 * block.c (contained_in): Return bool. Add allow_nested
1767 parameter.
1768
d806ea2d
TT
17692019-08-19 Tom Tromey <tom@tromey.com>
1770
1771 * configure: Rebuild.
1772 * configure.ac: Disallow the combination of -static-libstdc++ and
1773 source highlight.
1774 * source-cache.c (get_language_name): Handle rust.
1775 (source_cache::get_source_lines): Ignore highlighting exceptions.
1776
398fdd60
TT
17772019-08-16 Tom Tromey <tom@tromey.com>
1778
1779 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1780 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1781 (struct tui_source_window_base) <make_visible, refresh_window,
1782 resize>: Remove methods.
1783 <execution_info>: Remove field.
1784 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1785 (tui_show_source_line, tui_source_window_base)
1786 (~tui_source_window_base): Update.
1787 (tui_source_window_base::resize)
1788 (tui_source_window_base::make_visible)
1789 (tui_source_window_base::refresh_window): Remove.
1790 (tui_source_window_base::update_exec_info): Update.
1791 * tui/tui-source.c (tui_source_window::set_contents): Update.
1792 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1793
e699d331
TT
17942019-08-16 Tom Tromey <tom@tromey.com>
1795
1796 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1797 deprecated_query_hook.
1798
bb01dbfc
TT
17992019-08-16 Tom Tromey <tom@tromey.com>
1800
1801 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1802 (tui_update_source_windows_with_line): Update.
1803 * tui/tui-source.h (struct tui_source_window)
1804 <show_symtab_source>: Declare.
1805 (tui_show_symtab_source): Don't declare.
1806 * tui/tui-source.c (tui_show_symtab_source): Rename from
1807 tui_show_symtab_source.
1808
81c82c4b
TT
18092019-08-16 Tom Tromey <tom@tromey.com>
1810
1811 * tui/tui-winsource.h (struct tui_source_window_base)
1812 <set_contents>: Declare.
1813 * tui/tui-winsource.c
1814 (tui_source_window_base::update_source_window_as_is): Update.
1815 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1816 Declare.
1817 (tui_set_source_content): Don't declare.
1818 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1819 tui_set_source_content.
1820 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1821 Declare.
1822 (tui_set_disassem_content): Don't declare.
1823 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1824 tui_set_disassem_content.
1825
2ddaf614
TT
18262019-08-16 Tom Tromey <tom@tromey.com>
1827
1828 * tui/tui-winsource.h (struct tui_source_window_base)
1829 <update_breakpoint_info>: Declare.
1830 (tui_update_breakpoint_info): Don't declare.
1831 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1832 (tui_update_all_breakpoint_info): Update.
1833 (tui_source_window_base::update_breakpoint_info): Rename from
1834 tui_update_breakpoint_info.
1835 (tui_source_window_base::update_exec_info): Update.
1836
017f9828
TT
18372019-08-16 Tom Tromey <tom@tromey.com>
1838
1839 * tui/tui-winsource.h (struct tui_source_window_base)
1840 <update_source_window>: Declare.
1841 (tui_update_source_window): Don't declare.
1842 * tui/tui-winsource.c
1843 (tui_source_window_base::update_source_window): Rename from
1844 tui_update_source_window.
1845 (tui_source_window_base::rerender): Update.
1846 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1847 * tui/tui-disasm.c (tui_show_disassem)
1848 (tui_show_disassem_and_update_source)
1849 (tui_disasm_window::maybe_update): Update.
1850
ed8358e9
TT
18512019-08-16 Tom Tromey <tom@tromey.com>
1852
1853 * tui/tui-winsource.h (struct tui_source_window_base)
1854 <update_source_window_as_is>: Declare.
1855 (tui_update_source_window_as_is): Don't declare.
1856 * tui/tui-winsource.c (tui_update_source_window): Update
1857 (tui_source_window_base::update_source_window_as_is): Rename from
1858 tui_update_source_window_as_is.
1859 (tui_source_window_base::refill): Update.
1860 * tui/tui-source.c (tui_show_symtab_source): Update.
1861 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1862 Update.
1863
20149b6b
TT
18642019-08-16 Tom Tromey <tom@tromey.com>
1865
1866 * tui/tui-winsource.h (tui_update_source_window)
1867 (tui_update_source_window_as_is): Remove "noerror" parameter.
1868 * tui/tui-winsource.c (tui_update_source_window)
1869 (tui_update_source_window_as_is): Remove "noerror" parameter.
1870 (tui_update_source_windows_with_addr)
1871 (tui_update_source_windows_with_line)
1872 (tui_source_window_base::rerender)
1873 (tui_source_window_base::refill): Update.
1874 * tui/tui-source.h (tui_set_source_content)
1875 (tui_show_symtab_source): Remove "noerror" parameter.
1876 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1877 parameter.
1878 (tui_show_symtab_source): Likewise.
1879 (tui_source_window::maybe_update): Update.
1880 * tui/tui-disasm.c (tui_show_disassem)
1881 (tui_show_disassem_and_update_source)
1882 (tui_disasm_window::do_scroll_vertical)
1883 (tui_disasm_window::maybe_update): Update.
1884
2d83e710
TT
18852019-08-16 Tom Tromey <tom@tromey.com>
1886
1887 * tui/tui.c (tui_is_window_visible): Update.
1888 * tui/tui-wingeneral.c (tui_make_window)
1889 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1890 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1891 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1892 (tui_set_win_height_command, parse_scrolling_args): Update.
1893 * tui/tui-source.c (tui_source_window::style_changed): Update.
1894 * tui/tui-regs.c (tui_show_registers)
1895 (tui_data_window::first_data_item_displayed)
1896 (tui_data_window::delete_data_content_windows)
1897 (tui_check_register_values, tui_reg_command): Update.
1898 * tui/tui-disasm.c (tui_show_disassem): Update.
1899 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1900 method.
1901 <is_visible>: Remove field.
1902 * tui/tui-data.c (tui_next_win, tui_prev_win)
1903 (tui_delete_invisible_windows): Update.
1904
d4ab829a
TT
19052019-08-16 Tom Tromey <tom@tromey.com>
1906
1907 * tui/tui-winsource.h (struct tui_source_window_base)
1908 <m_has_locator>: Remove.
1909 * tui/tui-layout.c (show_source_disasm_command, show_data)
1910 (show_source_or_disasm_and_command): Update.
1911
aa7ca1bb
AH
19122019-08-16 Alan Hayward <alan.hayward@arm.com>
1913
1914 * NEWS (Other MI changes): New subsection.
1915 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1916 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1917 * arch-utils.c (default_get_pc_address_flags): New function.
1918 * arch-utils.h (default_get_pc_address_flags): New declaration.
1919 * gdbarch.sh: Add get_pc_address_flags.
1920 * gdbarch.c: Regenerate.
1921 * gdbarch.h: Likewise.
1922 * stack.c (print_pc): New function.
1923 (print_frame_info) (print_frame): Call print_pc.
1924
6eac171f
TV
19252019-08-16 Tom de Vries <tdevries@suse.de>
1926
1927 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1928 print_objfile_section_info.
1929
3df505f6
TT
19302019-08-15 Tom Tromey <tom@tromey.com>
1931
1932 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1933 calling update_cmdwin_start_line.
1934 * tui/tui-winsource.h (struct tui_source_window_base)
1935 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1936 <rerender>: Declare.
1937 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1938 Call rerender.
1939 (tui_source_window_base::set_new_height): Remove.
1940 (tui_source_window_base::rerender): Rename from
1941 do_make_visible_with_new_height.
1942 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1943 resize method.
1944 (tui_win_info::make_invisible_and_set_new_height)
1945 (tui_win_info::make_visible_with_new_height): Remove.
1946 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1947 Declare.
1948 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1949 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1950 do_make_visible_with_new_height>: Don't declare.
1951 <rerender>: Declare.
1952 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1953 set_new_height.
1954 (tui_data_window::do_make_visible_with_new_height): Remove.
1955 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1956 call tui_show_locator_content.
1957 (tui_gen_win_info::resize): Call rerender.
1958 (show_source_or_disasm_and_command): Don't call
1959 tui_show_locator_content.
1960 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1961 method.
1962 (struct tui_win_info) <rerender>: Declare.
1963 <set_new_height, make_invisible_and_set_new_height,
1964 make_visible_with_new_height>: Don't declare.
1965 * tui/tui-data.c (tui_win_list::rerender): New method.
1966 * tui/tui-command.h (struct tui_cmd_window)
1967 <do_make_visible_with_new_height>: Don't declare.
1968 * tui/tui-command.c
1969 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1970
272560b5
TT
19712019-08-15 Tom Tromey <tromey@adacore.com>
1972
1973 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1974 * ada-lang.c (ada_enum_name): Likewise.
1975
08235187
CB
19762019-08-15 Christian Biesinger <cbiesinger@google.com>
1977
1978 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1979 leading underscore.
1980 (GdbOutputErrorFile): Likewise.
1981 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1982 accordingly.
1983 (execute_unwinders): Rename to have a leading underscore.
1984 (auto_load_packages): Likewise.
1985 (global scope): Adjust call to auto_load_packages accordingly.
1986 (GdbSetPythonDirectory): Likewise.
1987 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1988 instead of execute_unwinders.
1989
db502012
TT
19902019-08-15 Tom Tromey <tom@tromey.com>
1991
1992 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1993 (show_data): Don't change window visibility.
1994 (tui_gen_win_info::resize): Remove special case for command
1995 window. Use wresize, when available.
1996 (show_source_or_disasm_and_command): Don't change window
1997 visibility.
1998 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1999 <make_visible>: New method.
2000 * tui/tui-command.c (tui_cmd_window::resize): New method.
2001
3891b65e
TT
20022019-08-15 Tom Tromey <tom@tromey.com>
2003
2004 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2005 (struct tui_source_windows): New.
2006 * tui/tui-winsource.c (tui_display_main): Update.
2007 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2008 (new_height_ok, parse_scrolling_args): Update.
2009 * tui/tui-layout.c (show_layout, show_data): Update.
2010 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2011 (tui_add_to_source_windows): Don't declare.
2012 * tui/tui-data.c (source_windows, tui_source_windows)
2013 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2014
ee556432
TT
20152019-08-15 Tom Tromey <tom@tromey.com>
2016
2017 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2018 Rename from reset.
2019 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2020 * tui/tui-layout.c (show_source_disasm_command, show_data):
2021 Update.
2022 (tui_gen_win_info::resize): Rename.
2023 (show_source_or_disasm_and_command): Update.
2024 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2025 reset.
2026
46f438e3
TT
20272019-08-15 Tom Tromey <tom@tromey.com>
2028
2029 * tui/tui-stack.c (tui_initialize_static_data): Remove.
2030 * tui/tui-interp.c (tui_interp::init): Don't call
2031 tui_initialize_static_data.
2032 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2033
f4ce562c
TT
20342019-08-15 Tom Tromey <tom@tromey.com>
2035
2036 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2037 examine tui_win_list.
2038
c398c3d0
TT
20392019-08-15 Tom Tromey <tom@tromey.com>
2040
2041 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2042 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2043 tui_clear_source_content.
2044 (tui_clear_source_content): Remove.
2045 (tui_source_window_base::do_erase_source_content): Hoist call to
2046 content.clear().
2047 * tui/tui-stack.c (tui_show_frame_info): Don't call
2048 tui_clear_source_content.
2049
e25d2004
TT
20502019-08-15 Tom Tromey <tom@tromey.com>
2051
2052 * tui/tui-winsource.h (struct tui_source_window_base)
2053 <do_erase_source_content>: New method.
2054 <erase_source_content>: New method.
2055 (tui_erase_source_content): Don't declare.
2056 * tui/tui-winsource.c (tui_clear_source_content): Update.
2057 (tui_source_window_base::do_erase_source_content): Rename from
2058 tui_erase_source_content.
2059 (tui_source_window_base::show_source_content): Update.
2060 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2061 * tui/tui-source.h (struct tui_source_window)
2062 <erase_source_content>: New method.
2063 * tui/tui-disasm.h (struct tui_disasm_window)
2064 <erase_source_content>: New method.
2065
002f15c2
TT
20662019-08-15 Tom Tromey <tom@tromey.com>
2067
2068 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2069 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2070 constructor.
2071 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2072 * tui/tui-source.c (tui_set_source_content): Update.
2073 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2074
c9033fe8
TT
20752019-08-15 Tom Tromey <tom@tromey.com>
2076
2077 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2078 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2079 tui-source.c.
2080 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2081 Declare.
2082 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2083 method.
2084 (tui_source_window::maybe_update): Update.
2085
088f37dd
TT
20862019-08-15 Tom Tromey <tom@tromey.com>
2087
2088 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2089 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2090 tui-disasm.c.
2091 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2092 Declare.
2093 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2094 method.
2095 (tui_disasm_window::maybe_update): Update.
2096
a54700c6
TT
20972019-08-15 Tom Tromey <tom@tromey.com>
2098
2099 * tui/tui-winsource.h (struct tui_source_window_base)
2100 <maybe_update>: Declare.
2101 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2102 method.
2103 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2104 Declare.
2105 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2106 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2107 Declare.
2108 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2109
e2a678a5
TT
21102019-08-15 Tom Tromey <tom@tromey.com>
2111
2112 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2113
f2dda477
TT
21142019-08-15 Tom Tromey <tom@tromey.com>
2115
2116 * tui/tui-wingeneral.c: Include tui-stack.h.
2117 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2118 (struct tui_locator_window): Move from tui-data.h.
2119 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2120 (tui_initialize_static_data): Move from tui-data.c.
2121 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2122 (struct tui_locator_window): Move to tui-stack.c.
2123 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2124 (tui_initialize_static_data): Move to tui-stack.c.
2125
ed4a1084
TT
21262019-08-15 Tom Tromey <tom@tromey.com>
2127
2128 * tui/tui-layout.c (show_source_disasm_command)
2129 (show_source_or_disasm_and_command): Use make_visible method, not
2130 tui_make_window.
2131 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2132 Remove.
2133
65962b20
TT
21342019-08-15 Tom Tromey <tom@tromey.com>
2135
2136 * tui/tui-wingeneral.h (tui_make_window): Update.
2137 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2138 parameter.
2139 (tui_gen_win_info::make_visible): Update.
2140 * tui/tui-regs.c (tui_data_window::display_registers_from):
2141 Update.
2142 * tui/tui-layout.c (show_source_disasm_command)
2143 (show_source_or_disasm_and_command): Update.
2144 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2145 (enum tui_box): Remove.
2146 (struct tui_win_info) <can_box>: New method.
2147 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2148 method.
2149
2208ee91
TV
21502019-08-15 Tom de Vries <tdevries@suse.de>
2151
2152 * linux-nat-trad.c: Include gdbarch.h.
2153
75faf5c4
AH
21542019-08-14 Alan Hayward <alan.hayward@arm.com>
2155
2156 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2157 register sizes.
2158
b1c896b3
TT
21592019-08-14 Tom Tromey <tromey@adacore.com>
2160
2161 * darwin-nat.c: Include gdbarch.h.
2162 * darwin-nat-info.c: Include gdbarch.h.
2163
6405cd73
TT
21642019-08-13 Tom Tromey <tom@tromey.com>
2165
2166 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2167 Remove.
2168 * tui/tui-data.c (tui_initialize_static_data): Update.
2169
5216580d
TT
21702019-08-13 Tom Tromey <tom@tromey.com>
2171
2172 * tui/tui-winsource.h (struct tui_exec_info_window)
2173 <~tui_exec_info_window, maybe_allocate_content, get_content,
2174 m_content>: Remove.
2175 (struct tui_source_window_base) <set_exec_info_content,
2176 show_exec_info_content>: Don't declare.
2177 * tui/tui-winsource.c
2178 (tui_exec_info_window::maybe_allocate_content): Remove.
2179 (tui_source_window_base::update_exec_info): Rename from
2180 set_exec_info_content.
2181 (tui_source_window_base::show_exec_info_content)
2182 (tui_source_window_base::update_exec_info): Remove.
2183
93858ad3
TT
21842019-08-13 Tom Tromey <tom@tromey.com>
2185
2186 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2187 declare.
2188 * tui/tui-winsource.c (tui_update_source_window_as_is)
2189 (tui_update_source_windows_with_addr, tui_erase_source_content):
2190 Update.
2191 (tui_clear_exec_info_content): Remove.
2192
e321e7ce
TT
21932019-08-13 Tom Tromey <tom@tromey.com>
2194
2195 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2196 declare.
2197 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2198 call tui_erase_exec_info_content.
2199 (tui_clear_exec_info_content): Rename from
2200 tui_erase_exec_info_content.
2201 (tui_clear_exec_info_content): Delete.
2202
8270ac62
TT
22032019-08-13 Tom Tromey <tom@tromey.com>
2204
2205 * tui/tui-winsource.h (struct tui_source_window_base)
2206 <show_exec_info_content>: Declare.
2207 (tui_show_exec_info_content): Don't declare.
2208 * tui/tui-winsource.c
2209 (tui_source_window_base::show_exec_info_content): Rename from
2210 tui_show_exec_info_content.
2211 (tui_source_window_base::update_exec_info): Update.
2212
7b56485d
TT
22132019-08-13 Tom Tromey <tom@tromey.com>
2214
2215 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2216 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2217 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2218 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2219 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2220 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2221 ... here.
2222
7ba913dc
TT
22232019-08-13 Tom Tromey <tom@tromey.com>
2224
2225 * tui/tui-winsource.h (struct tui_source_window_base)
2226 <update_exec_info>: Declare.
2227 (tui_update_exec_info): Don't declare.
2228 * tui/tui-winsource.c (tui_update_source_window_as_is)
2229 (tui_source_window_base::refresh_all)
2230 (tui_update_all_breakpoint_info): Update.
2231 (tui_source_window_base::update_exec_info): Rename from
2232 tui_update_exec_info.
2233 * tui/tui-stack.c (tui_show_frame_info): Update.
2234
37a4a131
TT
22352019-08-13 Tom Tromey <tom@tromey.com>
2236
2237 * tui/tui-winsource.h (struct tui_source_window_base)
2238 <set_exec_info_content>: Declare.
2239 (tui_set_exec_info_content): Don't declare.
2240 * tui/tui-winsource.c
2241 (tui_source_window_base::set_exec_info_content): Rename from
2242 tui_set_exec_info_content.
2243 (tui_update_exec_info): Update.
2244
0bd27e07
TT
22452019-08-13 Tom Tromey <tom@tromey.com>
2246
2247 * tui/tui-winsource.h (struct tui_source_window_base)
2248 <show_source_content>: Declare.
2249 (tui_show_source_content): Don't declare.
2250 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2251 (tui_source_window_base::show_source_content): Rename from
2252 tui_show_source_content.
2253 (tui_source_window_base::refresh_all): Update.
2254 * tui/tui-layout.c (show_source_disasm_command)
2255 (show_source_or_disasm_and_command): Update.
2256
b4ef5aeb
TT
22572019-08-13 Tom Tromey <tom@tromey.com>
2258
2259 * tui/tui-winsource.c (tui_erase_source_content)
2260 (tui_show_source_content, tui_source_window_base::refresh_all):
2261 Update.
2262 * tui/tui-wingeneral.h
2263 (tui_check_and_display_highlight_if_needed): Don't declare.
2264 * tui/tui-wingeneral.c
2265 (tui_win_info::check_and_display_highlight_if_needed): Rename from
2266 check_and_display_highlight_if_needed.
2267 * tui/tui-win.c (tui_rehighlight_all)
2268 (tui_win_info::make_visible_with_new_height): Update.
2269 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2270 (tui_data_window::erase_data_content)
2271 (tui_data_window::display_all_data): Update.
2272 * tui/tui-data.h (struct tui_win_info)
2273 <check_and_display_highlight_if_needed>: Declare.
2274
fede5273
TT
22752019-08-13 Tom Tromey <tom@tromey.com>
2276
2277 * tui/tui-win.c (tui_resize_all): Call
2278 tui_delete_invisible_windows.
2279 * tui/tui-layout.c (show_layout): Call
2280 tui_delete_invisible_windows.
2281 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2282 * tui/tui-data.c (tui_delete_invisible_windows): New function.
2283
22c3f490
TT
22842019-08-13 Tom Tromey <tom@tromey.com>
2285
2286 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
2287 tui_add_win_to_layout.
2288
16cb7910
TT
22892019-08-13 Tom Tromey <tom@tromey.com>
2290
2291 * tui/tui-layout.h (tui_default_win_height): Don't declare.
2292 * tui/tui-layout.c (tui_default_win_height): Now static.
2293
cc0c3ffb
TT
22942019-08-13 Tom Tromey <tom@tromey.com>
2295
2296 * tui/tui-layout.c (show_layout): Unify all layout cases into a
2297 single switch.
2298 (show_source_disasm_command, show_source_or_disasm_and_command):
2299 Don't check current layout.
2300
3f3ffe54
TT
23012019-08-13 Tom Tromey <tom@tromey.com>
2302
2303 * tui/tui-wingeneral.c (make_all_visible): Remove.
2304 (tui_make_all_invisible): Simplify.
2305 * tui/tui-layout.c (tui_make_all_invisible): Move from
2306 tui-wingeneral.c; simplify.
2307 (show_layout): Hoist call to tui_make_all_invisible.
2308 (show_data): Don't call tui_make_all_invisible.
2309
69258091
TT
23102019-08-13 Tom Tromey <tom@tromey.com>
2311
2312 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
2313 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
2314
62cf57fe
TT
23152019-08-13 Tom Tromey <tom@tromey.com>
2316
2317 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
2318 tui-data.c.
2319 (show_source_disasm_command, show_data)
2320 (show_source_or_disasm_and_command): Don't use
2321 tui_set_current_layout_to.
2322 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
2323 * tui/tui-data.c (current_layout, tui_current_layout): Move to
2324 tui-layout.c.
2325 (tui_set_current_layout_to): Remove.
2326
2afade5d
TT
23272019-08-13 Tom Tromey <tom@tromey.com>
2328
2329 * tui/tui-layout.c (tui_set_layout): Update.
2330 * tui/tui-data.h (struct tui_layout_def): Remove.
2331 (tui_layout_def): Don't declare.
2332 * tui/tui-data.c (layout_def): Remove.
2333 (tui_layout_def): Remove.
2334
a3504e96
TT
23352019-08-13 Tom Tromey <tom@tromey.com>
2336
2337 * tui/tui-winsource.h (struct tui_source_window_base)
2338 <clear_detail>: No longer "override".
2339 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
2340 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
2341 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
2342 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
2343 Remove.
2344 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
2345
29c92911
TT
23462019-08-13 Tom Tromey <tromey@adacore.com>
2347
2348 * tracepoint.c: Don't include readline.h or history.h.
2349
86c6b807
TT
23502019-08-12 Tom Tromey <tom@tromey.com>
2351
2352 * configure: Rebuild.
2353 * configure.ac: Check for readline 7.
2354 * NEWS: Mention readline 7 requirement.
2355 * README: Update.
2356
5db2718c
TT
23572019-08-12 Tom Tromey <tom@tromey.com>
2358
2359 * mingw-hdep.c (gdb_select): Remove readline hack.
2360
dac36daf
PFC
23612019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2362
2363 * blockframe.c (find_pc_partial_function): Set *block to nullptr
2364 when the function fails.
2365
1022c627
AA
23662019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2367
2368 * s390-tdep.c (s390_type_align): New function.
2369 (s390_gdbarch_init): Set it as type_align gdbarch method.
2370
eba4caf2
TV
23712019-08-09 Tom de Vries <tdevries@suse.de>
2372
2373 PR gdb/24591
2374 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2375 pc_low with relocation offset.
2376
123cd851
TT
23772019-08-07 Tom Tromey <tromey@adacore.com>
2378
2379 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2380 (print_frame_args): Update.
2381 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2382 Update.
2383 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2384 * frame.h (struct frame_arg): Add initializers.
2385 <error>: Now a unique_xmalloc_ptr.
2386
3d31bc39
AH
23872019-08-07 Alan Hayward <alan.hayward@arm.com>
2388
2389 * NEWS: Expand the Pointer Authentication entry.
2390 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2391 (aarch64_frame_unmask_lr): ... to this.
2392 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2393 Call aarch64_frame_unmask_lr.
2394 * frame.c (struct frame_info): Add "masked" variable.
2395 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2396 (fprint_frame): Check for masked pc.
2397 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2398 declarations.
2399 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2400 * stack.c (print_frame): Check for masked pc.
2401
0cf9feb9
TT
24022019-08-06 Tom Tromey <tom@tromey.com>
2403
2404 * stabsread.c (patch_block_stabs, read_one_struct_field)
2405 (read_enum_type): Use obstack_strndup.
2406 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2407 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2408 * dwarf2read.c (guess_full_die_structure_name)
2409 (anonymous_struct_prefix): Use obstack_strndup.
2410 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2411 * c-exp.y (yylex): Use obstack_strndup.
2412 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2413 (write_var_or_type): Use obstack_strndup.
2414
efba19b0
TT
24152019-08-06 Tom Tromey <tom@tromey.com>
2416
2417 * symfile.c (reread_symbols): Use obstack_strdup.
2418 * stabsread.c (read_type): Use obstack_strdup.
2419 * gdb_obstack.h (obstack_strdup): New overload.
2420 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2421 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2422 (dwarf2_canonicalize_name): Use obstack_strdup.
2423 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2424 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2425 Use obstack_strdup.
2426
f25102f7
TT
24272019-08-06 Tom Tromey <tom@tromey.com>
2428
2429 * gdb_obstack.h (obstack_strdup): Define.
2430 * gdb_obstack.c (obstack_strdup): Don't define.
2431
021887d8
TT
24322019-08-06 Tom Tromey <tom@tromey.com>
2433
2434 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2435 obstack_strdup.
2436 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2437 obstack_strdup.
2438 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2439 * stabsread.c (common_block_start): Use obstack_strdup.
2440 * objfiles.c (set_objfile_main_name, objfile): Use
2441 obstack_strdup.
2442 * namespace.c (add_using_directive): Use obstack_strdup.
2443 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2444 * jit.c (finalize_symtab): Use obstack_strdup.
2445 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2446 (guess_partial_die_structure_name, partial_die_info::fixup)
2447 (dwarf2_name): Use obstack_strdup.
2448 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2449 obstack_strdup.
2450 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2451 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2452 obstack_strdup.
2453 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2454
d2834edc
PW
24552019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2456
2457 * unittests/help-doc-selftests.c: New file.
2458 * Makefile.in: Add the new file.
2459
590042fc
PW
24602019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2461
2462 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2463 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2464 the full first line, except when FOR_VALUE_PREFIX. In this case,
2465 the trailing '.' is not output, and the first character is uppercased.
2466 (print_help_for_command): Update call to print_doc_line.
2467 (print_doc_of_command): Likewise.
2468 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2469 * cli/cli-option.c (append_indented_doc): Do not append newline.
2470 (build_help_option): Append newline after first appended_indented_doc
2471 only if a second call is done.
2472 (build_help): Append 2 new lines before each option, except the first
2473 one.
2474 * compile/compile.c (_initialize_compile): Add new lines after
2475 %OPTIONS%, when not at the end of the help.
2476 Change help doc or code
2477 producing the help doc to respect the invariants.
2478 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2479 Also removed the new line after 'Options:', as all other commands
2480 do not put an empty line between 'Options:' and the first option.
2481 * printcmd.c (_initialize_printcmd): Likewise.
2482 * stack.c (_initialize_stack): Likewise.
2483 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2484 incorrectly telling COMMAND is optional.
2485 * ada-lang.c (_initialize_ada_language): Change help doc or code
2486 producing the help doc to respect the invariants.
2487 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2488 * breakpoint.c (_initialize_breakpoint): Likewise.
2489 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2490 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2491 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2492 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2493 _initialize_cli_style): Likewise.
2494 * corelow.c (core_target_info): Likewise.
2495 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2496 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2497 * filesystem.c (_initialize_filesystem): Likewise.
2498 * frame.c (_initialize_frame): Likewise.
2499 * gnu-nat.c (add_task_commands): Likewise.
2500 * infcall.c (_initialize_infcall): Likewise.
2501 * infcmd.c (_initialize_infcmd): Likewise.
2502 * interps.c (_initialize_interpreter): Likewise.
2503 * language.c (_initialize_language): Likewise.
2504 * linux-fork.c (_initialize_linux_fork): Likewise.
2505 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2506 * maint.c (_initialize_maint_cmds): Likewise.
2507 * memattr.c (_initialize_mem): Likewise.
2508 * printcmd.c (_initialize_printcmd): Likewise.
2509 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2510 _RegEx): Likewise.
2511 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2512 * record-btrace.c (_initialize_record_btrace): Likewise.
2513 * record-full.c (_initialize_record_full): Likewise.
2514 * record.c (_initialize_record): Likewise.
2515 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2516 * regcache.c (_initialize_regcache): Likewise.
2517 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2518 _initialize_remote): Likewise.
2519 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2520 * serial.c (_initialize_serial): Likewise.
2521 * skip.c (_initialize_step_skip): Likewise.
2522 * source.c (_initialize_source): Likewise.
2523 * stack.c (_initialize_stack): Likewise.
2524 * symfile.c (_initialize_symfile): Likewise.
2525 * symtab.c (_initialize_symtab): Likewise.
2526 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2527 * top.c (init_main): Likewise.
2528 * tracefile-tfile.c (tfile_target_info): Likewise.
2529 * tracepoint.c (_initialize_tracepoint): Likewise.
2530 * tui/tui-win.c (_initialize_tui_win): Likewise.
2531 * utils.c (add_internal_problem_command): Likewise.
2532 * valprint.c (value_print_option_defs): Likewise.
2533
404f2902
FCE
25342019-08-06 Frank Ch. Eigler <fche@redhat.com>
2535
2536 PR build/24886
2537 * configure.ac: Drop enable-libmcheck support.
2538 * configure, config.in: Rebuild.
2539 * libmcheck.m4: Remove.
2540 * acinclude.m4: Don't include it.
2541 * Makefile.in: Don't distribute it.
2542 * top.c (print_gdb_configuration): Don't mention it.
2543
046bebe1
TT
25442019-08-06 Tom Tromey <tom@tromey.com>
2545
2546 * utils.c (set_output_style): Sometimes pass stream to
2547 emit_style_escape.
2548 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2549 * record-btrace.c (btrace_insn_history): Update.
2550 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2551 method.
2552 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2553 Update initializers.
2554 <m_uiout>: New field.
2555 <m_di>: Move lower.
2556 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2557 Remove "uiout" parameter.
2558 (dump_insns): Update.
2559 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2560 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2561
ddbcedf5
CB
25622019-08-06 Christian Biesinger <cbiesinger@google.com>
2563
2564 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2565 (error_in_psymtab_expansion): Likewise.
2566 (lookup_symbol_via_quick_fns): Likewise.
2567 (basic_lookup_transparent_type_quick): Likewise.
2568 (basic_lookup_transparent_type_1): Likewise.
2569
b08b16c8
TT
25702019-08-06 Tom Tromey <tromey@adacore.com>
2571
2572 * source.c (last_source_error): Now bool.
2573 (print_source_lines_base): Make "noprint" bool. Only open
2574 source file when last_source_visited changes.
2575
cb44333d
TT
25762019-08-06 Tom Tromey <tromey@adacore.com>
2577
2578 * annotate.c (annotate_source_line): Use g_source_cache.
2579 * source-cache.c (source_cache::get_plain_source_lines): Change
2580 parameters. Populate m_offset_cache.
2581 (source_cache::ensure): New method.
2582 (source_cache::get_line_charpos): New method.
2583 (extract_lines): Move lower. Change parameters.
2584 (source_cache::get_source_lines): Move lower.
2585 * source-cache.h (class source_cache): Update comment.
2586 <get_line_charpos>: New method.
2587 <get_source_lines>: Update comment.
2588 <clear>: Clear m_offset_cache.
2589 <get_plain_source_lines>: Change parameters.
2590 <ensure>: New method
2591 <m_offset_cache>: New member.
2592 * source.c (forget_cached_source_info_for_objfile): Update.
2593 (info_source_command): Use g_source_cache.
2594 (find_source_lines, open_source_file_with_line_charpos): Remove.
2595 (print_source_lines_base, search_command_helper): Use g_source_cache.
2596 * source.h (open_source_file_with_line_charpos): Don't declare.
2597 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2598 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2599 Use g_source_cache.
2600
872dceaa
TT
26012019-08-06 Tom Tromey <tromey@adacore.com>
2602
2603 * source-cache.c (source_cache::get_plain_source_lines):
2604 Remove "first_line" and "last_line" parameters.
2605 (source_cache::get_source_lines): Cache plain text.
2606 * source-cache.h (class source_cache)
2607 <get_plain_source_lines>: Update.
2608
269249d9
TT
26092019-08-06 Tom Tromey <tromey@adacore.com>
2610
2611 * source-cache.c (extract_lines): No longer a method.
2612 Changed type of parameter. Include final newline.
2613 (selftests::extract_lines_test): New function.
2614 (_initialize_source_cache): Likewise.
2615 * source-cache.h (class source_cache)
2616 <extract_lines>: Don't declare.
2617
c0e8dcd8
TT
26182019-08-06 Tom Tromey <tromey@adacore.com>
2619
2620 * breakpoint.c (init_breakpoint_sal): Update.
2621 (breakpoint): Update.
2622 * breakpoint.h (struct breakpoint) <filter>: Now a
2623 unique_xmalloc_ptr.
2624
0b27c27d
CB
26252019-08-05 Christian Biesinger <cbiesinger@google.com>
2626
2627 * NEWS: Mention dictionary access on blocks.
2628 * python/py-block.c (blpy_getitem): New function.
2629 (block_object_as_mapping): New struct.
2630 (block_object_type): Use new struct for tp_as_mapping field.
2631
4ee94178
CB
26322019-08-05 Christian Biesinger <cbiesinger@google.com>
2633
2634 * objfiles.h (objfile): Add a comment describing partial symbols.
2635
8abfcabc
TT
26362019-08-05 Tom Tromey <tromey@adacore.com>
2637
2638 * compile/compile.c (_initialize_compile): Use _(), not N_().
2639 * thread.c (_initialize_thread): Use _(), not N_().
2640 * stack.c (_initialize_stack): Use _(), not N_().
2641 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2642
2b79f376
SM
26432019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2644
2645 * dwarf2read.c (struct dw2_symtab_iterator):
2646 <want_specific_block>: Remove.
2647 <block_index>: Change type to gdb::optional.
2648 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2649 change type of BLOCK_INDEX parameter to gdb::optional.
2650 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2651 (dw2_lookup_symbol): Don't pass argument for
2652 WANT_SPECIFIC_BLOCK.
2653 (dw2_expand_symtabs_for_function): Don't pass argument for
2654 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2655 (class dw2_debug_names_iterator)
2656 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2657 parameter, change BLOCK_INDEX type to gdb::optional.
2658 <m_want_specific_block>: Remove.
2659 <m_block_index>: Change type to gdb::optional.
2660 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2661 gdb::optional. Re-write in function of gdb::optional.
2662 (dw2_debug_names_lookup_symbol): Don't pass argument for
2663 WANT_SPECIFIC_BLOCK.
2664 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2665 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2666 BLOCK_INDEX.
2667
ae60f04e
PW
26682019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2669
2670 * NEWS: Mention changes to "info sources" command.
2671
28cd9371
PW
26722019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2673
2674 * symtab.c (filename_partial_match_opts): New struct type.
2675 (struct output_source_filename_data): New members
2676 regexp, c_regexp, partial_match.
2677 (output_source_filename): Use new members to decide to print file.
2678 (info_sources_option_defs): New variable.
2679 (make_info_sources_options_def_group, print_info_sources_header,
2680 info_sources_command_completer):
2681 New functions.
2682 (info_sources_command): Read new optional arguments.
2683 (_initialize_symtab): Update info sources help.
2684
ca683e3a
AO
26852019-08-02 Alexandre Oliva <oliva@adacore.com>
2686
2687 * ada-lang.c (exception_support_info_v0): Renamed from...
2688 (default_exception_support_info): ... this. Create new
2689 definition for v1.
2690 (ada_has_this_exception_support): Look up catch_handlers_sym.
2691 (ada_exception_support_info_sniffer): Try v0 after default.
2692
f1264162
TT
26932019-08-01 Tom Tromey <tromey@adacore.com>
2694
2695 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2696 gdbarch.h.
2697
0a7b2485
CB
26982019-08-01 Christian Biesinger <cbiesinger@google.com>
2699
2700 * s12z-tdep.c: Fix include path for s12z-opc.h.
2701
c6bdbeb7
AH
27022019-08-01 Alan Hayward <alan.hayward@arm.com>
2703
2704 * NEWS: Require GNU make 3.82.
2705
a2bd7b82
TT
27062019-07-16 Tom Tromey <tom@tromey.com>
2707
2708 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2709 declare.
2710
aa3b6533
TT
27112019-07-30 Tom Tromey <tromey@adacore.com>
2712
2713 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2714
a1530dc7
KB
27152019-07-30 Kevin Buettner <kevinb@redhat.com>
2716
2717 * printcmd.c (print_address_symbolic): Print negative offsets.
2718 (build_address_symbolic): Force signed arithmetic when computing
2719 offset.
2720
2906593f
CB
27212019-07-30 Christian Biesinger <cbiesinger@google.com>
2722
2723 PR/24474: Add a function to lookup static variables.
2724 * NEWS: Mention this new function.
2725 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2726 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2727 * python/python.c (python_GdbMethods): Add new function.
2728
c620ed88
CB
27292019-07-29 Christian Biesinger <cbiesinger@google.com>
2730
2731 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2732 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2733 (objfpy_lookup_static_symbol): New function.
2734 (objfile_object_methods): Add new functions.
2735
bc4268a5
PW
27362019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2737
2738 * NEWS: Mention 'set|show print frame-info'. Mention new
2739 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2740 backtrace argument. Mention that python frame filtering code
2741 is now consistent with what 'backtrace' command prints.
2742
4b5e8d19
PW
27432019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2744
2745 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2746 comments.
2747 (print_frame_info_auto, print_frame_info_source_line,
2748 print_frame_info_location, print_frame_info_source_and_location,
2749 print_frame_info_location_and_address, print_frame_info_short_location):
2750 New declarations.
2751 (struct frame_print_options): New member print_frame_info.
2752 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2753 * stack.h (get_user_print_what_frame_info): New declaration.
2754 (frame_show_address): New declaration.
2755 * stack.c (print_frame_arguments_choices): New value 'presence'.
2756 (print_frame_info_auto, print_frame_info_source_line,
2757 print_frame_info_location, print_frame_info_source_and_location,
2758 print_frame_info_location_and_address, print_frame_info_short_location,
2759 print_frame_info_choices, print_frame_info_print_what): New definitions.
2760 (print_frame_args): Only print dots for args if print frame-arguments
2761 is 'presence'.
2762 (frame_print_option_defs): New element for "frame-info".
2763 (get_user_print_what_frame_info): New function.
2764 (frame_show_address): Make non static. Move comment to stack.h.
2765 (print_frame_info_to_print_what): New function.
2766 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2767 to decide what to print.
2768 (backtrace_command_1): Handle the new print_frame_arguments_presence
2769 value.
2770 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2771 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2772 (py_print_frame): In non-mi mode, use LOCATION as default for
2773 print_what, similarly to frame information printed directly by
2774 backtrace command. Handle frame-info user option in non MI mode.
2775
6bdfee81
KB
27762019-07-27 Kevin Buettner <kevinb@redhat.com>
2777
2778 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2779 Add case for debugging 32-bit target on 64-bit host. Revise
2780 comment.
2781
98a617f8
KB
27822019-07-27 Kevin Buettner <kevinb@redhat.com>
2783
2784 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2785 instead of find_function_entry_range_from_pc.
2786
567238c9
KB
27872019-07-27 Kevin Buettner <kevinb@redhat.com>
2788
2789 * stack.c (find_frame_funname): Remove code which preferred
2790 minsym over symtab sym in "certain pathological cases".
2791
2dc80cf8
KB
2792 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2793 parameter. Change type of "do_demangle" to bool.
2794 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2795 Pass suitable "prefer_sym_over_minsym" flag to
2796 build_address_symbolic(). Don't output "+" for negative offsets.
2797 * printcmd.c (print_address_symbolic): Update invocation of
2798 build_address_symbolic to include a "prefer_sym_over_minsym"
2799 flag.
2800 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2801 Restrict cases in which use of minimal symbol is preferred to that
2802 of a found symbol. Update comments.
2803
1aff7173
KB
2804 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2805 for entry pc when entry pc is out of range for that FDE.
2806
89b085ac
BC
28072019-07-26 Brian Callahan <bcallah@openbsd.org>
2808
2809 PR gdb/24839:
2810 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2811 type.
2812
f32feb4a
CB
28132019-07-25 Christian Biesinger <cbiesinger@google.com>
2814
2815 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2816 this function's Python signature.
2817
2818
28192019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
2820
2821 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2822 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2823 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2824 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2825 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2826
2827
c54e4253
YS
28282019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2829
2830 * h8300-tdep.c (h8300_register_name_common): New.
2831 h8300_register_name): Use h8300_register_name_common.
2832 (h8300s_register_name): Likewise.
2833 (h8300sx_register_name): Likewise.
2834 (h8300h_register_nam): New.
2835 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2836
2837
40eadf04
SP
28382019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2839
2840 * arm-tdep.c (arm_skip_cmse_entry): New function.
2841 (arm_is_sgstubs_section): New function.
2842 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2843
bfa2a36d
TT
28442019-07-22 Tom Tromey <tom@tromey.com>
2845
2846 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2847 Don't self-assign.
2848
a8e9d247
AB
28492019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2850
2851 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2852 type_print.
2853
eb86c5e2
AB
28542019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2855
2856 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2857 so that GDB doesn't match any msymbols when searching in the
2858 TYPES_DOMAIN.
2859 (print_symbol_info): Print using typedef_print or type_print based
2860 on the type of the symbol. Add updated FIXME comment moved from...
2861 (_initialize_symtab): ... move and update FIXME comment to above.
2862
a8eab7c6
AB
28632019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2864
2865 * NEWS: Mention adding -q option to "info types".
2866 * symtab.c (struct info_types_options): New struct.
2867 (info_types_options_defs): New variable.
2868 (make_info_types_options_def_group): New function.
2869 (info_types_command): Use gdb::option framework to parse options.
2870 (info_types_command_completer): New function.
2871 (_initialize_symtab): Extend the help text on "info types" and
2872 register command completer.
2873
b4603c34
CB
28742019-07-21 Christian Biesinger <cbiesinger@google.com>
2875
2876 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2877 (lookup_symbol_in_objfile): Change int to block_enum and add a
2878 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2879
c8cdc1e0
CB
28802019-07-20 Christian Biesinger <cbiesinger@google.com>
2881
2882 * MAINTAINERS (Write After Approval): Add self.
2883
01e175fe
AB
28842019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2885
2886 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2887 instruction to the dummy code region.
2888
56f79b63
TT
28892019-07-19 Tom Tromey <tromey@adacore.com>
2890
2891 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2892 (ARGSUSED, PARAMS, __func__): Remove rules.
2893
4c5aa8e0
AH
28942019-07-19 Alan Hayward <alan.hayward@arm.com>
2895
2896 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2897 * features/arm/arm-with-iwmmxt.c: Remove.
2898 * features/arm/arm-with-iwmmxt.xml: Remove.
2899 * features/arm/arm-with-m-fpa-layout.c: Remove.
2900 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2901 * features/arm/arm-with-m-vfp-d16.c: Remove.
2902 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2903 * features/arm/arm-with-m.c: Remove.
2904 * features/arm/arm-with-m.xml: Remove.
2905 * features/arm/arm-with-neon.c: Remove.
2906 * features/arm/arm-with-neon.xml: Remove.
2907 * features/arm/arm-with-vfpv2.c: Remove.
2908 * features/arm/arm-with-vfpv2.xml: Remove.
2909 * features/arm/arm-with-vfpv3.c: Remove.
2910 * features/arm/arm-with-vfpv3.xml: Remove.
2911
f42b2617
AH
29122019-07-19 Alan Hayward <alan.hayward@arm.com>
2913
2914 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2915
f29ec966
AH
29162019-07-19 Alan Hayward <alan.hayward@arm.com>
2917
2918 * arch/aarch32.c (aarch32_create_target_description): Create
2919 target descriptions using features.
2920 * arch/arm.c (arm_create_target_description)
2921 (arm_create_mprofile_target_description): Likewise.
2922 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2923
d105cce5
AH
29242019-07-19 Alan Hayward <alan.hayward@arm.com>
2925
2926 * Makefile.in: Add new files.
2927 * aarch32-tdep.c: New file.
2928 * aarch32-tdep.h: New file.
2929 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2930 Call aarch32_read_description.
2931 * arch/aarch32.c: New file.
2932 * arch/aarch32.h: New file.
2933 * arch/arm.c (arm_create_target_description)
2934 (arm_create_mprofile_target_description): New function.
2935 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2936 (arm_create_target_description)
2937 (arm_create_mprofile_target_description): New declaration.
2938 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2939 read_description functions.
2940 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2941 Likewise.
2942 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2943 * arm-tdep.c (tdesc_arm_list): New variable.
2944 (arm_register_g_packet_guesses): Call create description functions.
2945 (arm_read_description) (arm_read_mprofile_description): New
2946 function.
2947 * arm-tdep.h (arm_read_description)
2948 (arm_read_mprofile_description): Add declaration.
2949 * configure.tgt: Add new files.
2950
afe09f0b
GL
29512019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2952
2953 * top.c (new_ui_command): Open specified terminal just once.
2954
cd215b2e
TT
29552019-07-18 Tom Tromey <tromey@adacore.com>
2956
2957 * symtab.c (main_name): Constify return type.
2958 * symfile.c (set_initial_language): Update.
2959 * symtab.h (main_name): Constify return type.
2960
d8f68fcb
TT
29612019-07-17 Tom Tromey <tom@tromey.com>
2962
2963 * tui/tui-winsource.c (tui_update_source_window)
2964 (tui_update_source_window_as_is)
2965 (tui_update_source_windows_with_line): Remove return.
2966 * tui/tui-disasm.c (tui_show_disassem)
2967 (tui_show_disassem_and_update_source): Remove return.
2968 * tui/tui.c (tui_reset): Remove return.
2969 * tui/tui-wingeneral.c
2970 (tui_check_and_display_highlight_if_needed): Remove return.
2971
ca5af91e
TT
29722019-07-17 Tom Tromey <tom@tromey.com>
2973
2974 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2975
5104fe36
TT
29762019-07-17 Tom Tromey <tom@tromey.com>
2977
2978 * tui/tui-winsource.h (struct tui_exec_info_window)
2979 (struct tui_source_window_base): Move from tui-data.h.
2980 * tui/tui-winsource.c: Move many method definitions from
2981 elsewhere. Remove "structuring" comments.
2982 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2983 (tui_source_window_base::refresh_window): Move to
2984 tui-winsource.c.
2985 * tui/tui-win.c (tui_source_window_base::refresh_all)
2986 (tui_source_window_base::update_tab_width)
2987 (tui_source_window_base::set_new_height)
2988 (tui_source_window_base::do_make_visible_with_new_height): Move to
2989 tui-winsource.c.
2990 * tui/tui-source.h: Update.
2991 * tui/tui-source.c (tui_source_window_base::reset): Move to
2992 tui-winsource.c.
2993 * tui/tui-disasm.h: Update.
2994 * tui/tui-data.h (struct tui_exec_info_window): Move to
2995 tui-winsource.h.
2996 (struct tui_source_window_base): Likewise.
2997 * tui/tui-data.c (tui_source_window_base::clear_detail)
2998 (tui_source_window_base, ~tui_source_window_base): Move to
2999 tui-winsource.c.
3000
daa15dde
TT
30012019-07-17 Tom Tromey <tom@tromey.com>
3002
3003 * tui/tui-win.c (tui_resize_all)
3004 (tui_source_window_base::update_tab_width)
3005 (tui_adjust_win_heights): Update.
3006 (tui_win_info::make_invisible_and_set_new_height): Rename from
3007 make_invisible_and_set_new_height.
3008 * tui/tui-data.h (struct tui_win_info)
3009 <make_invisible_and_set_new_height>: New method.
3010
bfad4537
TT
30112019-07-17 Tom Tromey <tom@tromey.com>
3012
3013 * tui/tui.c: Update.
3014 * tui/tui-source.h (struct tui_source_window): Move from
3015 tui-data.h.
3016 * tui/tui-layout.c: Update.
3017 * tui/tui-disasm.c: Update.
3018 * tui/tui-data.h (struct tui_source_window): Move to
3019 tui-source.h.
3020
88f7e873
TT
30212019-07-17 Tom Tromey <tom@tromey.com>
3022
3023 * tui/tui-disasm.h (struct tui_disasm_window): Move from
3024 tui-data.h.
3025 * tui/tui-data.h (struct tui_disasm_window): Move to
3026 tui-disasm.h.
3027
96bd6233
TT
30282019-07-17 Tom Tromey <tom@tromey.com>
3029
3030 * tui/tui-regs.h (struct tui_data_item_window): Move from
3031 tui-data.h.
3032 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3033 * tui/tui-data.h (struct tui_data_item_window): Move to
3034 tui-regs.h.
3035 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3036
ce38393b
TT
30372019-07-17 Tom Tromey <tom@tromey.com>
3038
3039 * tui/tui.c: Update.
3040 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3041 (tui_cmd_window::max_height): Move to tui-command.c.
3042 * tui/tui-layout.c: Update.
3043 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3044 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3045 tui-command.c.
3046 * tui/tui-command.h (struct tui_cmd_window): Move from
3047 tui-data.h.
3048 * tui/tui-command.c: Remove "structuring" comments.
3049 (tui_cmd_window::clear_detail)
3050 (tui_cmd_window::do_make_visible_with_new_height)
3051 (tui_cmd_window::max_height): Move from elsewhere.
3052
2d8b51cb
TT
30532019-07-17 Tom Tromey <tom@tromey.com>
3054
3055 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3056 Now static.
3057 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3058 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3059
18ab23af
TT
30602019-07-17 Tom Tromey <tom@tromey.com>
3061
3062 * tui/tui.c: Update.
3063 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3064 tui-regs.c.
3065 * tui/tui-windata.h: Remove file.
3066 * tui/tui-windata.c: Remove file.
3067 * tui/tui-win.c (tui_data_window::set_new_height)
3068 (tui_data_window::do_make_visible_with_new_height): Move to
3069 tui-regs.c.
3070 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3071 * tui/tui-regs.c: Remove "structuring" comments.
3072 (tui_data_window::first_data_item_displayed)
3073 (tui_data_window::delete_data_content_windows)
3074 (tui_data_window::erase_data_content)
3075 (tui_data_window::display_all_data)
3076 (tui_data_window::refresh_all)
3077 (tui_data_window::do_scroll_vertical)
3078 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3079 (tui_data_window::do_make_visible_with_new_height)
3080 (tui_data_window::refresh_window): Move from elsewhere.
3081 (_initialize_tui_regs): Move to end of file.
3082 * tui/tui-layout.c: Update.
3083 * tui/tui-hooks.c: Update.
3084 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3085 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3086 tui-regs.c.
3087 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3088
88b7e7cc
TT
30892019-07-17 Tom Tromey <tom@tromey.com>
3090
3091 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3092 seen.
3093
0fcd3711
TT
30942019-07-17 Tom Tromey <tom@tromey.com>
3095
3096 * tui/tui-win.c (tui_source_window_base::set_new_height)
3097 (tui_source_window_base::do_make_visible_with_new_height): Use
3098 m_has_locator field directly.
3099 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3100 method.
3101 (struct tui_source_window_base) <has_locator>: Likewise.
3102
4a38112d
TT
31032019-07-17 Tom Tromey <tom@tromey.com>
3104
3105 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3106 Don't declare.
3107 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3108 Remove.
3109 * tui/tui-win.c (tui_source_window_base::set_new_height)
3110 (tui_source_window_base::set_new_height)
3111 (make_invisible_and_set_new_height)
3112 (tui_source_window_base::do_make_visible_with_new_height)
3113 (tui_source_window_base::do_make_visible_with_new_height):
3114 Update.
3115 * tui/tui-layout.c (show_source_disasm_command, show_data)
3116 (show_source_or_disasm_and_command): Update.
3117 * tui/tui-layout.c (show_layout): Update.
3118
09129226
TT
31192019-07-17 Tom Tromey <tom@tromey.com>
3120
3121 * tui/tui-layout.c (make_data_window): Remove.
3122 (show_data): Unify creation and re-initialization cases.
3123
4a8a5e84
TT
31242019-07-17 Tom Tromey <tom@tromey.com>
3125
3126 * tui/tui-layout.c (make_source_window, make_disasm_window):
3127 Remove.
3128 (show_data): Unify creation and re-initialization cases.
3129
76d2be8e
TT
31302019-07-17 Tom Tromey <tom@tromey.com>
3131
3132 * tui/tui-layout.c (make_command_window): Remove.
3133 (show_source_disasm_command, show_source_or_disasm_and_command):
3134 Unify creation and re-initialization cases.
3135
890b8bde
TT
31362019-07-17 Tom Tromey <tom@tromey.com>
3137
3138 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3139 creation and re-initialization cases.
3140
2cdfa113
TT
31412019-07-17 Tom Tromey <tom@tromey.com>
3142
3143 * tui/tui-regs.c (tui_get_register): Return void.
3144
8e3cfd09
TT
31452019-07-17 Tom Tromey <tom@tromey.com>
3146
3147 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3148 Simplify.
3149
f4e04977
TT
31502019-07-17 Tom Tromey <tom@tromey.com>
3151
3152 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3153 resetting.
3154
0379b883
TT
31552019-07-17 Tom Tromey <tom@tromey.com>
3156
3157 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3158 * tui/tui-regs.c (tui_reg_layout): New function.
3159 (tui_show_registers, tui_reg_command): Use it.
3160 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3161 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3162 parameters.
3163 (tui_layout_command): Remove.
3164
b7fbad91
TT
31652019-07-17 Tom Tromey <tom@tromey.com>
3166
3167 * tui/tui-layout.h (tui/tui-layout): Return void.
3168 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3169
4e1e56b9
TT
31702019-07-17 Tom Tromey <tom@tromey.com>
3171
3172 * tui/tui-layout.c (show_source_disasm_command, show_data):
3173 Update.
3174 (reset_locator): Remove.
3175 (show_source_or_disasm_and_command): Update.
3176
1e0c09ba
TT
31772019-07-17 Tom Tromey <tom@tromey.com>
3178
3179 * tui/tui-source.c (tui_source_window_base::reset): Remove
3180 win_type parameter.
3181 * tui/tui-layout.c (make_command_window, make_source_window)
3182 (make_disasm_window, make_data_window)
3183 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3184 (reset_locator, show_source_or_disasm_and_command): Update.
3185 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3186 win_type parameter.
3187 (struct tui_source_window_base) <reset>: Likewise.
3188
1bf605de
TT
31892019-07-17 Tom Tromey <tom@tromey.com>
3190
3191 * tui/tui-layout.c (show_source_disasm_command): Use
3192 reset_locator.
3193 (reset_locator): New function.
3194 (init_and_make_win): Remove.
3195 (show_source_or_disasm_and_command): Use reset_locator.
3196
098f9ed4
TT
31972019-07-17 Tom Tromey <tom@tromey.com>
3198
3199 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3200 condition.
3201 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3202 Remove condition.
3203 * tui/tui-source.c (tui_source_window_base::reset): New method.
3204 * tui/tui-layout.c (make_command_window): Don't call
3205 init_and_make_win.
3206 (make_source_window, make_disasm_window): Don't call
3207 make_source_or_disasm_window.
3208 (make_data_window): Don't call init_and_make_win. Change calling
3209 convention.
3210 (show_source_disasm_command, show_data): Simplify.
3211 (make_source_or_disasm_window): Remove.
3212 (show_source_or_disasm_and_command): Simplify.
3213 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3214 (struct tui_source_window_base) <reset>: Likewise.
3215 <execution_info>: Remove initializer.
3216 * tui/tui-data.c (tui_source_window_base): Initialize
3217 execution_info.
3218
80110957
TT
32192019-07-17 Tom Tromey <tom@tromey.com>
3220
3221 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3222 variable.
3223
cf82af05
TT
32242019-07-17 Tom Tromey <tom@tromey.com>
3225
3226 * tui/tui.c (tui_rl_other_window): Update.
3227 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3228 superclass method first. Always iterate over regs_content.
3229 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3230 method.
3231 * tui/tui-win.c (tui_set_focus_command): Update.
3232
01aeb396
TT
32332019-07-17 Tom Tromey <tom@tromey.com>
3234
3235 * tui/tui-win.c (tui_set_focus_command): Rename from
3236 tui_set_focus. Call tui_enable.
3237 (tui_set_focus_command): Remove.
3238
fd6c75ee
TT
32392019-07-17 Tom Tromey <tom@tromey.com>
3240
3241 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3242 refresh_window.
3243 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3244 touchwin.
3245 (tui_data_window::refresh_window): Call refresh_window on data
3246 items. Always call superclass refresh_window.
3247 (tui_win_info::refresh): Remove.
3248 (tui_source_window_base::refresh_window): Update.
3249 (tui_refresh_all): Update.
3250 * tui/tui-layout.c (show_source_disasm_command): Remove call to
3251 refresh_window.
3252 (show_source_or_disasm_and_command): Likewise.
3253 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3254 (struct tui_source_window_base) <refresh>: Likewise.
3255
f6cc34a9
TT
32562019-07-17 Tom Tromey <tom@tromey.com>
3257
3258 * tui/tui-winsource.c (tui_clear_source_content)
3259 (tui_show_source_content): Update.
3260 * tui/tui-source.c (tui_source_window::showing_source_p): Check
3261 whether content is empty.
3262 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3263 Remove.
3264
f31ec9af
TT
32652019-07-17 Tom Tromey <tom@tromey.com>
3266
3267 * tui/tui-winsource.c (tui_erase_source_content): Clear the
3268 window's contents.
3269 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3270 * tui/tui-source.c (tui_set_source_content_nil): Remove.
3271
d1b6f1e5
TT
32722019-07-17 Tom Tromey <tom@tromey.com>
3273
3274 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3275 (struct tui_data_item_window): Update.
3276
d9743a13
TT
32772019-07-17 Tom Tromey <tom@tromey.com>
3278
3279 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3280 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3281 defines.
3282
caf0bc4e
TT
32832019-07-17 Tom Tromey <tom@tromey.com>
3284
3285 * tui/tui-winsource.h (tui_erase_source_content)
3286 (tui_clear_source_content): Remove "display_prompt" parameter.
3287 * tui/tui-winsource.c (tui_update_source_window_as_is)
3288 (tui_update_source_windows_with_addr): Update.
3289 (tui_clear_source_content): Remove "display_prompt" parameter.
3290 (tui_erase_source_content): Likewise. Simplify.
3291 (tui_show_source_content): Update.
3292 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3293 * tui/tui-stack.c (tui_show_frame_info): Update.
3294 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3295 Remove defines.
3296
9d391078
TT
32972019-07-17 Tom Tromey <tom@tromey.com>
3298
3299 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3300 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
3301 parameter.
3302 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
3303 parameter.
3304
a38da35d
TT
33052019-07-17 Tom Tromey <tom@tromey.com>
3306
3307 * tui/tui-winsource.c (tui_clear_source_content)
3308 (tui_show_source_content, tui_show_exec_info_content)
3309 (tui_clear_exec_info_content): Update.
3310 * tui/tui-stack.c (tui_show_locator_content): Update.
3311 (tui_show_frame_info): Update.
3312 * tui/tui-source.h (tui_source_window): Don't declare.
3313 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
3314 from tui_source_is_displayed.
3315 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
3316 Remove field.
3317 (struct tui_source_window_base) <content_in_use>: New field. Now
3318 bool.
3319 (struct tui_source_window) <showing_source_p>: New method.
3320 (TUI_SRC_WIN): Change cast.
3321 * tui/tui-data.c (tui_initialize_static_data): Update.
3322
c2cd8994
TT
33232019-07-17 Tom Tromey <tom@tromey.com>
3324
3325 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
3326 location_matches_p.
3327 * tui/tui-source.c (tui_source_window::location_matches_p): New
3328 method.
3329 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
3330 method.
3331 * tui/tui-data.h (struct tui_source_window_base)
3332 <location_matches_p>: New method.
3333 (struct tui_source_window, struct tui_disasm_window)
3334 <location_matches_p>: Likewise.
3335
4dde7b34
TT
33362019-07-17 Tom Tromey <tom@tromey.com>
3337
3338 * tui/tui-win.c (tui_set_win_height_command): Rename from
3339 tui_set_win_height.
3340 (tui_set_win_height_command): Remove.
3341
b73dd877
TT
33422019-07-17 Tom Tromey <tom@tromey.com>
3343
3344 * tui/tui-source.c (tui_source_window): New constructor. Add
3345 observer.
3346 (~tui_source_window): New destructor.
3347 (tui_source_window::style_changed): New method.
3348 * tui/tui-hooks.c (tui_redisplay_source): Remove.
3349 (tui_attach_detach_observers): Update.
3350 * tui/tui-data.h (struct tui_source_window): Make constructor not
3351 inline. Add destructor.
3352 (struct tui_source_window) <style_changed>: New method.
3353 <m_observable>: New member.
3354
ae2b5380
TT
33552019-07-17 Tom Tromey <tom@tromey.com>
3356
3357 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3358 * tui/tui-win.c (tui_resize_all): Fix typo.
3359
1ce3e844
TT
33602019-07-17 Tom Tromey <tom@tromey.com>
3361
3362 * tui/tui-wingeneral.h (tui_refresh_all): Update.
3363 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3364 (tui_refresh_all): Remove "list" parameter. Use foreach.
3365 * tui/tui-win.c (window_name_completer): Use foreach.
3366 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3367 (update_tab_width): Likewise.
3368 * tui/tui-layout.c (show_layout): Update.
3369 * tui/tui-data.h (class tui_window_iterator): New.
3370 (struct all_tui_windows): New.
3371 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3372
fe3eaf1c
TT
33732019-07-17 Tom Tromey <tom@tromey.com>
3374
3375 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3376 parameter. Don't reference globals.
3377 (tui_reg_command): Update.
3378
368c1354
TT
33792019-07-17 Tom Tromey <tom@tromey.com>
3380
3381 * tui/tui-regs.c (tui_show_registers): Simplify.
3382
e80cd204
TT
33832019-07-17 Tom Tromey <tom@tromey.com>
3384
3385 * tui/tui-regs.c (tui_show_registers): Update.
3386 (tui_show_register_group): Add win_info parameter.
3387
aca2dd16
TT
33882019-07-17 Tom Tromey <tom@tromey.com>
3389
3390 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3391 Rename from tui_display_reg_element_at_line.
3392 (tui_data_window::display_registers_from_line): Update.
3393 * tui/tui-data.h (struct tui_data_window)
3394 <display_reg_element_at_line>: New method.
3395
517e9505
TT
33962019-07-17 Tom Tromey <tom@tromey.com>
3397
3398 * tui/tui-regs.h (tui_display_registers_from)
3399 (tui_display_registers_from_line): Don't declare.
3400 * tui/tui-windata.c (tui_data_window::display_all_data)
3401 (tui_data_window::refresh_all)
3402 (tui_data_window::do_scroll_vertical): Update.
3403 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3404 from tui_display_registers_from.
3405 (tui_display_reg_element_at_line): Update.
3406 (tui_data_window::display_registers_from_line): Rename from
3407 tui_display_registers_from_line.
3408 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3409 display_registers_from_line>: New methods.
3410
f76d8b19
TT
34112019-07-17 Tom Tromey <tom@tromey.com>
3412
3413 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3414 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3415 from tui_erase_data_content.
3416 (tui_data_window::display_all_data)
3417 (tui_data_window::refresh_all)
3418 (tui_data_window::do_scroll_vertical): Update.
3419 * tui/tui-regs.c (tui_show_registers): Update.
3420 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3421 New method.
3422
b4094625
TT
34232019-07-17 Tom Tromey <tom@tromey.com>
3424
3425 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3426 declare.
3427 * tui/tui-windata.c
3428 (tui_data_window::delete_data_content_windows): Rename from
3429 tui_delete_data_content_windows.
3430 (tui_data_window::display_all_data)
3431 (tui_data_window::do_scroll_vertical): Update.
3432 * tui/tui-data.h (struct tui_data_window)
3433 <delete_data_content_windows>: New method.
3434
c223a729
TT
34352019-07-17 Tom Tromey <tom@tromey.com>
3436
3437 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3438 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3439
50daf268
TT
34402019-07-17 Tom Tromey <tom@tromey.com>
3441
3442 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3443 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3444 from tui_display_all_data.
3445 * tui/tui-win.c
3446 (tui_data_window::do_make_visible_with_new_height): Update.
3447 * tui/tui-regs.c (tui_show_registers): Update.
3448 * tui/tui-layout.c (tui_set_layout): Update.
3449 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3450 method.
3451
df5f8cab
TT
34522019-07-17 Tom Tromey <tom@tromey.com>
3453
3454 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3455 * tui/tui-windata.c (tui_display_data_from): Remove.
3456 (tui_data_window::refresh_all): Update.
3457
80cb6c27
TT
34582019-07-17 Tom Tromey <tom@tromey.com>
3459
3460 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3461 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3462 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3463 tui_display_registers_from_line.
3464 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3465 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3466 "force_display" parameter.
3467
baff0c28
TT
34682019-07-17 Tom Tromey <tom@tromey.com>
3469
3470 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3471 declare.
3472 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3473 Rename from tui_first_reg_element_no_inline.
3474 (tui_display_reg_element_at_line)
3475 (tui_display_registers_from_line): Update.
3476 * tui/tui-data.h (struct tui_data_window)
3477 <first_reg_element_no_inline>: New method.
3478
3b23c5f2
TT
34792019-07-17 Tom Tromey <tom@tromey.com>
3480
3481 * tui/tui-windata.c (tui_display_data_from)
3482 (tui_data_window::do_scroll_vertical): Update.
3483 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3484 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3485 Rename from tui_line_from_reg_element_no.
3486 (tui_display_registers_from_line): Update.
3487 * tui/tui-data.h (struct tui_data_window)
3488 <line_from_reg_element_no>: New method.
3489
0b5ec218
TT
34902019-07-17 Tom Tromey <tom@tromey.com>
3491
3492 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3493 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3494 tui_last_regs_line_no.
3495 (tui_display_reg_element_at_line)
3496 (tui_display_registers_from_line): Update.
3497 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3498 method.
3499
0807ab7b
TT
35002019-07-17 Tom Tromey <tom@tromey.com>
3501
3502 PR tui/24722:
3503 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3504 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3505 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3506 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3507 (tui_update_breakpoint_info): Likewise.
3508 * tui/tui-hooks.c (tui_event_create_breakpoint)
3509 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3510 Update.
3511
9ad7fdef
TT
35122019-07-17 Tom Tromey <tom@tromey.com>
3513
3514 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3515
5813316f
TT
35162019-07-17 Tom Tromey <tom@tromey.com>
3517
3518 * tui/tui-winsource.c (tui_update_source_window_as_is)
3519 (tui_update_source_windows_with_addr): Update.
3520 * tui/tui-source.h (tui_set_source_content)
3521 (tui_show_symtab_source): Add "win_info" parameter.
3522 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3523 parameter.
3524 (tui_show_symtab_source): Likewise.
3525
00e264e7
TT
35262019-07-17 Tom Tromey <tom@tromey.com>
3527
3528 * tui/tui-wingeneral.c
3529 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3530
06210ce4
TT
35312019-07-17 Tom Tromey <tom@tromey.com>
3532
3533 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3534 (struct tui_cmd_window) <can_scroll>: New method.
3535 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3536 method.
3537
381befee
TT
35382019-07-17 Tom Tromey <tromey@adacore.com>
3539
3540 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3541 do_field_signed>: Rename. Change type of "value".
3542 * ui-out.c (ui_out::field_signed): Rename from field_int.
3543 Change type of "value".
3544 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3545 type of "value".
3546 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3547 do_field_int. Change type of "value".
3548 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3549 do_field_int. Change type of "value".
3550 * tracepoint.c (trace_status_mi, tfind_1)
3551 (print_one_static_tracepoint_marker): Update.
3552 * thread.c (print_thread_info_1, print_selected_thread_frame):
3553 Update.
3554 * stack.c (print_frame, print_frame_info): Update.
3555 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3556 Update.
3557 * source.c (print_source_lines_base): Update.
3558 * skip.c (info_skip_command): Update.
3559 * record-btrace.c (btrace_ui_out_decode_error)
3560 (btrace_call_history_src_line): Update.
3561 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3562 Update.
3563 * progspace.c (print_program_space): Update.
3564 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3565 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3566 do_field_int. Change type of "value".
3567 * mi/mi-out.c (mi_ui_out::do_table_begin)
3568 (mi_ui_out::do_table_header): Update.
3569 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3570 type of "value".
3571 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3572 (mi_cmd_data_list_changed_registers, output_register)
3573 (mi_cmd_data_read_memory, mi_load_progress)
3574 (mi_cmd_trace_frame_collected): Update.
3575 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3576 Update.
3577 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3578 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3579 (mi_cmd_var_list_children, varobj_update_one): Update.
3580 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3581 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3582 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3583 * inferior.c (print_inferior): Update.
3584 * gdb_bfd.c (print_one_bfd): Update.
3585 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3586 Update.
3587 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3588 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3589 do_field_int. Change type of "value".
3590 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3591 do_field_int. Change type of "value".
3592 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3593 (print_one_breakpoint_location, print_it_catch_fork)
3594 (print_one_catch_fork, print_it_catch_vfork)
3595 (print_one_catch_vfork, print_it_catch_solib)
3596 (print_it_catch_exec, print_it_ranged_breakpoint)
3597 (print_mention_watchpoint, print_mention_masked_watchpoint)
3598 (bkpt_print_it, update_static_tracepoint): Update.
3599 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3600 * break-catch-syscall.c (print_it_catch_syscall): Update.
3601 * ada-tasks.c (print_ada_task_info): Update.
3602 * ada-lang.c (print_it_exception, print_mention_exception):
3603 Update.
3604
6b78c3f8
AB
36052019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3606
3607 PR breakpoints/24541
3608 * gdbarch.c: Regenerate.
3609 * gdbarch.h: Regenerate.
3610 * gdbarch.sh: Adjust return type and parameter types for
3611 'stap_adjust_register'.
3612 (i386_stap_adjust_register): Adjust signature and return new
3613 register name.
3614 * stap-probe.c (stap_parse_register_operand): Adjust use of
3615 'gdbarch_stap_adjust_register'.
3616
d72a9b85
TT
36172019-07-17 Tom Tromey <tromey@adacore.com>
3618
3619 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3620 declare VEC.
3621 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3622 std::vector.
3623 (struct s390_process_info): Add initializers.
3624 (s390_add_process): Use new.
3625 (s390_linux_nat_target::low_forget_process): Use delete.
3626 (s390_linux_nat_target::low_new_fork)
3627 (s390_linux_nat_target::stopped_by_watchpoint)
3628 (s390_linux_nat_target::low_prepare_to_resume)
3629 (s390_linux_nat_target::insert_watchpoint)
3630 (s390_linux_nat_target::insert_hw_breakpoint)
3631 (s390_linux_nat_target::remove_watchpoint)
3632 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3633
206e6c58
JB
36342019-07-16 John Baldwin <jhb@FreeBSD.org>
3635
3636 * aarch64-fbsd-nat.c: Include regcache.h.
3637 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3638 argument.
3639 (aarch64_fbsd_nat_target::fetch_registers)
3640 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3641 variable.
3642 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3643
cbde90f2
JB
36442019-07-16 John Baldwin <jhb@FreeBSD.org>
3645
3646 * fbsd-nat.c: Include gdbarch.h.
3647
07128006
TT
36482019-07-15 Tom Tromey <tromey@adacore.com>
3649
3650 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3651
1f77b012
TT
36522019-07-15 Tom Tromey <tromey@adacore.com>
3653
3654 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3655 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3656 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3657 * cli-out.c (cli_ui_out::do_field_int): New method.
3658 * ui-out.c (ui_out::field_unsigned): New method.
3659 * symfile.c (generic_load): Use field_unsigned.
3660 (print_transfer_performance): Likewise.
3661 * record-btrace.c (ui_out_field_uint): Remove.
3662 (btrace_call_history_insn_range, btrace_call_history): Use
3663 field_unsigned.
3664 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3665 field_unsigned.
3666 * ui-out.h (class ui_out) <field_unsigned>: New method.
3667 <do_field_unsigned>: Likewise.
3668
33eca680
TT
36692019-07-15 Tom Tromey <tromey@adacore.com>
3670
3671 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3672 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3673 * target.c (flash_erase_command): Use field_string.
3674 * infrun.c (print_signal_received_reason): Use field_string.
3675 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3676 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3677 field_string.
3678 * ada-tasks.c (print_ada_task_info): Use field_string.
3679
ca8d69be
TT
36802019-07-15 Tom Tromey <tromey@adacore.com>
3681
3682 * target.c (flash_erase_command): Use field_core_addr.
3683 * symfile.c (generic_load): Use field_core_addr.
3684 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3685 Use field_core_addr.
3686 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3687 field_core_addr.
3688
0d4e84ed
AB
36892019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3690
3691 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3692 value if its desired type is smaller than a CORE_ADDR and signed.
3693
9a49df9d
AB
36942019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3695
3696 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3697 of changes to field names, and use new is_reference field to
3698 decide if a property is a reference or not.
3699 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3700 field.
3701 (struct dwarf2_property_baton): Update header comment, rename
3702 'referenced_type' to 'property_type' and update comments.
3703 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3704 default property type, store in property baton, update to take
3705 accound of renamed field.
3706 (read_func_scope): Update call to attr_to_dynamic_prop.
3707 (read_array_type): Likewise.
3708 (dwarf2_per_cu_addr_sized_int_type): New function.
3709 (read_subrange_index_type): Move type finding code to
3710 dwarf2_per_cu_addr_sized_int_type.
3711 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3712 (dwarf2_per_cu_addr_type): New function.
3713 (set_die_type): Update calls to attr_to_dynamic_prop.
3714
b86352cf
AB
37152019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3716
3717 * dwarf2read.c (read_subrange_index_type): New function.
3718 (read_subrange_type): Move code into new function and call it.
3719 * gdbtypes.c (create_range_type): Add some asserts.
3720
603490bf
AB
37212019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3722
3723 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3724 update return statements.
3725 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3726 declaration, and update comment to match.
3727 * gdbtypes.c (resolve_dynamic_array): Update call to
3728 dwarf2_evaluate_property to match new return type.
3729
592f9d27
AB
37302019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3731
3732 * valarith.c (value_subscripted_rvalue): Change lowerbound
3733 parameter type from int to LONGEST.
3734 * value.h (value_subscripted_rvalue): Likewise in declaration.
3735
60cfcb20
AB
37362019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3737
3738 * cli/cli-utils.c (info_print_command_completer): New function.
3739 * cli/cli-utils.h: Add 'completer.h' include, and forward
3740 declaration for 'struct cmd_list_element'.
3741 (info_print_command_completer): Declare.
3742 * stack.c (_initialize_stack): Add completer for 'info locals' and
3743 'info args'.
3744 * symtab.c (_initialize_symtab): Add completer for 'info
3745 variables' and 'info functions'.
3746 * NEWS: Mention completion for additional info commands.
3747
b16507e0
AB
37482019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3749
3750 * cli/cli-utils.c (extract_info_print_args): Delete.
3751 (extract_arg_maybe_quoted): Delete.
3752 (info_print_options_defs): New variable.
3753 (make_info_print_options_def_group): New function.
3754 (extract_info_print_options): Define new function.
3755 * cli/cli-utils.h (extract_info_print_args): Delete.
3756 (struct info_print_options): New structure.
3757 (extract_info_print_options): Declare new function.
3758 * stack.c (info_locals_command): Update to use new
3759 extract_info_print_options, also add a header comment.
3760 (info_args_command): Likewise.
3761 * symtab.c (info_variables_command): Likewise.
3762 (info_functions_command): Likewise.
3763
021d8588
AB
37642019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3765
3766 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3767 to extract string arguments.
3768 * common/common-utils.c (extract_string_maybe_quoted): New function.
3769 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3770
b777eb6d
TT
37712019-07-11 Tom Tromey <tromey@adacore.com>
3772
3773 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3774 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3775 * top.h (gdbinit): Don't declare.
3776 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3777 into...
3778 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3779 * top.c (gdb_init): Don't call init_cli_cmds.
3780 (gdbinit): Remove.
3781 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3782
72ee03ff
TT
37832019-07-11 Tom Tromey <tromey@adacore.com>
3784
3785 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3786 after it has been moved.
3787
00db9531
SM
37882019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3789
3790 * valops.c (value_must_coerce_to_target): Change return type to
3791 bool.
3792 * value.h (value_must_coerce_to_target): Likewise.
3793
f2478a7e
SM
37942019-07-10 Simon Marchi <simon.marchi@efficios.com>
3795
3796 * breakpoint.c (is_hardware_watchpoint): Remove
3797 forward-declaration.
3798 (is_masked_watchpoint): Change return type to bool.
3799 (is_tracepoint): Likewise.
3800 (is_breakpoint): Likewise.
3801 (is_hardware_watchpoint): Likewise.
3802 (is_watchpoint): Likewise.
3803 (is_no_memory_software_watchpoint): Likewise.
3804 (is_catchpoint): Likewise.
3805 (breakpoint_1): Make FILTER parameter's return type bool.
3806 is_masked_watchpoint): Change return type to bool.
3807 (save_breakpoints): Make FILTER parameter's return type bool.
3808 * breakpoint.h (is_breakpoint): Change return type to bool.
3809 (is_watchpoint): Likewise.
3810 (is_catchpoint): Likewise.
3811 (is_tracepoint): Likewise.
3812
0d12e84c
TT
38132019-07-10 Tom Tromey <tom@tromey.com>
3814
3815 * defs.h: Don't include gdbarch.h.
3816 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3817 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3818 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3819 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3820 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3821 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3822 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3823 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3824 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3825 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3826 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3827 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3828 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3829 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3830 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3831 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3832 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3833 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3834 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3835 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3836 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3837 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3838 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3839 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3840 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3841 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3842 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3843
f06f1252
TT
38442019-07-10 Tom Tromey <tromey@adacore.com>
3845
3846 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3847 * breakpoint.c (init_ada_exception_breakpoint): Register as
3848 bp_catchpoint.
3849 (print_one_breakpoint_location, print_one_breakpoint): Use
3850 is_ada_exception_catchpoint.
3851 * ada-lang.c (class ada_catchpoint_location): Pass
3852 bp_loc_software_breakpoint to bp_location constructor.
3853 (is_ada_exception_catchpoint): New function.
3854
7a5d944b
TT
38552019-07-10 Tom Tromey <tromey@adacore.com>
3856
3857 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3858 VEC.
3859 (struct arm_exidx_entry): New method operator<.
3860 (struct arm_exidx_data) <section_maps>: Change type.
3861 (arm_exidx_data_free): Remove.
3862 (arm_exidx_data_key): Change type. Move lower.
3863 (arm_exidx_new_objfile): Update.
3864 (arm_compare_exidx_entries): Remove.
3865 (arm_find_exidx_entry, _initialize_arm_tdep)
3866
48c66e1d
TT
38672019-07-10 Tom Tromey <tromey@adacore.com>
3868
3869 * solib-spu.c (ocl_program_data_key): Change type.
3870 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3871 Update.
3872
a269fbf1
TT
38732019-07-10 Tom Tromey <tromey@adacore.com>
3874
3875 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3876 (struct solib_aix_inferior_data) <library_list>: Change type.
3877 (solib_aix_inferior_data_handle): Change type.
3878 (get_solib_aix_inferior_data): Update.
3879 (solib_aix_free_library_list): Remove.
3880 (library_list_start_library): Update.
3881 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3882 return type.
3883 (solib_aix_get_library_list)
3884 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3885 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3886
c294730c
TT
38872019-07-10 Tom Tromey <tromey@adacore.com>
3888
3889 * solib-dsbt.c (struct dsbt_info): Add initializers.
3890 (solib_dsbt_pspace_data): Change type.
3891 (dsbt_pspace_data_cleanup): Remove.
3892 (get_dsbt_info, _initialize_dsbt_solib): Update.
3893
9d52077d
TT
38942019-07-10 Tom Tromey <tromey@adacore.com>
3895
3896 * spu-tdep.c (spu_overlay_data): Change type.
3897 (spu_get_overlay_table, spu_overlay_new_objfile)
3898 (_initialize_spu_tdep): Update.
3899
22a20dca
TT
39002019-07-10 Tom Tromey <tromey@adacore.com>
3901
3902 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3903 destructor.
3904 (dbx_objfile_data_key): Change type and declare later.
3905 (DBX_SYMFILE_INFO): Rewrite.
3906 * dbxread.c (dbx_objfile_data_key): Change type.
3907 (dbx_symfile_init): Update.
3908 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3909 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3910 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3911
cb60f420
TT
39122019-07-10 Tom Tromey <tromey@adacore.com>
3913
3914 * jit.c (jit_program_space_key): Change type. Move lower.
3915 (get_jit_program_space_data): Update.
3916 (jit_program_space_data_cleanup): Remove.
3917 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3918 Update.
3919 (struct jit_program_space_data): Add initializers.
3920
51df2ae3
TT
39212019-07-10 Tom Tromey <tromey@adacore.com>
3922
3923 * solib-darwin.c (struct darwin_info): Add initializers.
3924 (solib_darwin_pspace_data): Change type.
3925 (darwin_pspace_data_cleanup): Remove.
3926 (get_darwin_info, _initialize_darwin_solib): Update.
3927
18101a35
TT
39282019-07-10 Tom Tromey <tromey@adacore.com>
3929
3930 * remote-sim.c (struct sim_inferior_data): Add initializers,
3931 constructor, and destructor.
3932 (sim_inferior_data_key): Change type. Move lower.
3933 (check_for_duplicate_sim_descriptor): Update.
3934 (get_sim_inferior_data): Use new. Update.
3935 (~sim_inferior_data_cleanup): Rename from
3936 sim_inferior_data_cleanup. Simplify.
3937 (gdbsim_close_inferior, simulator_command)
3938 (sim_command_completer, _initialize_remote_sim): Update.
3939 (next_pid, INITIAL_PID): Move earlier.
3940
05b08ac1
TT
39412019-07-10 Tom Tromey <tromey@adacore.com>
3942
3943 * python/python-internal.h (create_thread_object): Return
3944 gdbpy_ref.
3945 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3946 * python/py-inferior.c (struct threadlist_entry): Add
3947 constructor.
3948 <thread_obj>: Now a gdbpy_ref.
3949 (thread_to_thread_object): Update.
3950 (add_thread_object): Use new.
3951 (delete_thread_object): Use delete.
3952 (infpy_threads): Update.
3953 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3954 GIL.
3955
32372d80
TT
39562019-07-10 Tom Tromey <tromey@adacore.com>
3957
3958 * valops.c (value_cast): Specialize error message for Ada.
3959
5c458ae8
SM
39602019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3961
3962 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3963
4c462cb0
SM
39642019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3965
3966 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3967 bpstat_should_step): Return bool, adjust comments.
3968 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3969 bpstat_should_step): Likewise.
3970
89abbcc2
AH
39712019-07-10 Alan Hayward <alan.hayward@arm.com>
3972
3973 * features/Makefile: Use feature target descriptions for Arm.
3974 * features/arm/arm-core.c: Generate new file.
3975 * features/arm/arm-fpa.c: Likewise.
3976 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3977 * features/arm/arm-m-profile.c: Likewise.
3978 * features/arm/arm-vfpv2.c: Likewise.
3979 * features/arm/arm-vfpv3.c: Likewise.
3980 * features/arm/xscale-iwmmxt.c: Likewise.
3981 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3982
166a82be
AH
39832019-07-10 Alan Hayward <alan.hayward@arm.com>
3984
3985 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3986 ptrace earlier.
3987
9fb4c7e9
AH
39882019-07-10 Alan Hayward <alan.hayward@arm.com>
3989
3990 * features/aarch64-pauth.c: Regenerate.
3991
e2d0f980
SM
39922019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3993
3994 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3995 bool.
3996 (bpstat_what): Use false instead of 0.
3997
a38118e5
PA
39982019-07-09 Pedro Alves <palves@redhat.com>
3999
4000 * break-catch-throw.c (is_exception_catchpoint): New.
4001 * breakpoint.c (print_one_breakpoint_location): New parameter
4002 'raw_loc'. Handle it. Use
4003 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4004 looking at the breakpoint's type.
4005 (print_one_breakpoint): If handling "maint info breakpoints", also
4006 print locations of exception catchpoints.
4007 * breakpoint.h (is_exception_catchpoint): Declare.
4008
cb1e4e32
PA
40092019-07-09 Pedro Alves <palves@redhat.com>
4010
4011 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4012 "addr" field.
4013 (allocate_location_exception_catchpoint): New.
4014 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4015 (initialize_throw_catchpoint_ops): Install
4016 allocate_location_exception_catchpoint as allocate_location
4017 method.
4018 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4019 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4020 bp_loc_other.
4021 (breakpoint_address_is_meaningful): Delete.
4022 (bl_address_is_meaningful): New.
4023 (breakpoint_locations_match): Adjust comment.
4024 (bp_location_from_bp_type): New, factored out of...
4025 (bp_location::bp_location(breakpoint *)): ... this.
4026 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4027 factored out of...
4028 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
4029 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4030 breakpoint_address_is_meaningful.
4031 (bp_locations_compare): Adjust comment.
4032 (update_global_location_list): Use bl_address_is_meaningful
4033 instead of breakpoint_address_is_meaningful.
4034 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4035 explicit.
4036 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4037 * python/py-breakpoint.c (bppy_get_location): No longer check
4038 whether location is null.
4039
b58a68fe
PA
40402019-07-09 Pedro Alves <palves@redhat.com>
4041
4042 PR c++/15468
4043 * breakpoint.c (print_one_breakpoint_location): Remove
4044 single-location assert.
4045
268a13a5
TT
40462019-07-09 Tom Tromey <tom@tromey.com>
4047
4048 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4049 * configure: Rebuild.
4050 * configure.ac: Change common to gdbsupport.
4051 * gdbsupport: Rename from common.
4052 * acinclude.m4: Change common to gdbsupport.
4053 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4054 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4055 gdbsupport.
4056 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4057 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4058 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4059 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4060 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4061 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4062 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4063 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4064 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4065 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4066 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4067 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4068 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4069 coff-pe-read.c, command.h, compile/compile-c-support.c,
4070 compile/compile-c.h, compile/compile-cplus-symbols.c,
4071 compile/compile-cplus-types.c, compile/compile-cplus.h,
4072 compile/compile-loc2c.c, compile/compile.c, completer.c,
4073 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4074 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4075 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4076 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4077 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4078 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4079 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4080 features/aarch64-core.c, features/aarch64-fpu.c,
4081 features/aarch64-pauth.c, features/aarch64-sve.c,
4082 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4083 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4084 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4085 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4086 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4087 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4088 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4089 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4090 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4091 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4092 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4093 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4094 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4095 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4096 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4097 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4098 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4099 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4100 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4101 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4102 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4103 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4104 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4105 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4106 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4107 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4108 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4109 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4110 minsyms.c, mips-linux-tdep.c, namespace.h,
4111 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4112 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4113 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4114 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4115 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4116 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4117 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4118 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4119 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4120 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4121 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4122 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4123 procfs.c, producer.c, progspace.h, psymtab.h,
4124 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4125 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4126 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4127 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4128 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4129 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4130 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4131 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4132 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4133 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4134 target-memory.c, target.c, target.h, target/waitstatus.c,
4135 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4136 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4137 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4138 unittests/array-view-selftests.c,
4139 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4140 unittests/common-utils-selftests.c,
4141 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4142 unittests/format_pieces-selftests.c,
4143 unittests/function-view-selftests.c,
4144 unittests/lookup_name_info-selftests.c,
4145 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4146 unittests/mkdir-recursive-selftests.c,
4147 unittests/observable-selftests.c,
4148 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4149 unittests/parse-connection-spec-selftests.c,
4150 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4151 unittests/scoped_fd-selftests.c,
4152 unittests/scoped_mmap-selftests.c,
4153 unittests/scoped_restore-selftests.c,
4154 unittests/string_view-selftests.c, unittests/style-selftests.c,
4155 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4156 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4157 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4158 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4159 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4160 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4161
5b0e2db4
AB
41622019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4163
4164 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4165 bool value.
4166 (decode_digits_ordinary): Set explicit_line field in sal.
4167 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4168 symtab_and_line that was set on an explicit line number in
4169 assembler code. Do always update the recorded symtab and line if
4170 we do skip the prologue.
4171
0ba852ab
AB
41722019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4173
4174 * breakpoint.c (set_breakpoint_location_function): Remove
4175 explicit_loc parameter.
4176 (momentary_breakpoint_from_master): Update call to
4177 set_breakpoint_location_function.
4178 (add_location_to_breakpoint): Likewise.
4179
b3a7d171
AB
41802019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4181
4182 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4183 required features based on default bfd type when no specific bfd
4184 is present.
4185
1f6f6e21
PW
41862019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4187
4188 * NEWS: Mention that GDB printf and eval commands can now print
4189 C-style and Ada-style convenience var strings without
4190 calling the inferior.
4191 * printcmd.c (printf_c_string): Locally print GDB internal var
4192 instead of transiting via the inferior.
4193 (printf_wide_c_string): Likewise.
4194
41952019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
4196
4197 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4198
0598af48
TT
41992019-07-04 Tom Tromey <tom@tromey.com>
4200
4201 PR tui/24724:
4202 * tui/tui-winsource.c (tui_clear_source_content): Update.
4203 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4204 (tui_update_breakpoint_info): Update.
4205 (tui_set_exec_info_content): Update.
4206 * tui/tui-source.c (tui_set_source_content_nil): Update.
4207 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4208 has_break.
4209 * tui/tui-data.h (enum tui_bp_flag): New.
4210 (tui_bp_flags): New enum flags type.
4211 (struct tui_source_element) <break_mode>: Change type. Rename
4212 from has_break.
4213 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4214 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4215 constants.
4216 * tui/tui-winsource.h: Fix comment.
4217
350fab54
AH
42182019-07-04 Alan Hayward <alan.hayward@arm.com>
4219
4220 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4221 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4222 (store_fpregs_to_thread)
4223 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4224 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4225 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4226 (IWMMXT_REGS_SIZE): Add define.
4227 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4228 (fetch_vfp_regs, store_vfp_regs)
4229 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4230 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4231
f0452268
AH
42322019-07-04 Alan Hayward <alan.hayward@arm.com>
4233
4234 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4235 defines.
4236 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4237 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4238 (ARM_INT_REGISTER_SIZE): ...to this.
4239 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4240 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4241 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4242 (arm_linux_collect_gregset, supply_nwfpe_register)
4243 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4244 defines.
4245 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4246 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4247 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4248 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4249 (arm_return_in_memory, arm_store_return_value)
4250 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4251 (arm_record_ld_st_multiple): Likewise.
4252 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4253 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4254
e935475c
AH
42552019-07-04 Alan Hayward <alan.hayward@arm.com>
4256
4257 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4258 AARCH64_DISPLACED_MODIFIED_INSNS.
4259 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4260 (aarch64_displaced_step_copy_insn): Likewise.
4261 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4262 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4263 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4264 ARM_DISPLACED_MODIFIED_INSNS.
4265 * arm-tdep.c (arm_gdbarch_init): Likewise.
4266 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4267 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4268 (struct arm_displaced_step_closure): Use
4269 ARM_DISPLACED_MODIFIED_INSNS.
4270
df0bb381
AH
42712019-07-04 Alan Hayward <alan.hayward@arm.com>
4272
4273 * features/Makefile: Remove unused xml files.
4274 * features/aarch64.xml: Remove.
4275 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4276 * features/i386/amd64-avx-avx512.xml: Remove.
4277 * features/i386/amd64-avx-linux.xml: Remove.
4278 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4279 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4280 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4281 * features/i386/amd64-avx-mpx.xml: Remove.
4282 * features/i386/amd64-avx.xml: Remove.
4283 * features/i386/amd64-linux.xml: Remove.
4284 * features/i386/amd64-mpx-linux.xml: Remove.
4285 * features/i386/amd64-mpx.xml: Remove.
4286 * features/i386/amd64.xml: Remove.
4287 * features/i386/i386-avx-avx512-linux.xml: Remove.
4288 * features/i386/i386-avx-avx512.xml: Remove.
4289 * features/i386/i386-avx-linux.xml: Remove.
4290 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4291 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4292 * features/i386/i386-avx-mpx-linux.xml: Remove.
4293 * features/i386/i386-avx-mpx.xml: Remove.
4294 * features/i386/i386-avx.xml: Remove.
4295 * features/i386/i386-linux.xml: Remove.
4296 * features/i386/i386-mmx-linux.xml: Remove.
4297 * features/i386/i386-mmx.xml: Remove.
4298 * features/i386/i386-mpx-linux.xml: Remove.
4299 * features/i386/i386-mpx.xml: Remove.
4300 * features/i386/i386.xml: Remove.
4301 * features/i386/x32-avx-avx512-linux.xml: Remove.
4302 * features/i386/x32-avx-linux.xml: Remove.
4303 * features/i386/x32-linux.xml: Remove.
4304
edd6266a
AH
43052019-07-04 Alan Hayward <alan.hayward@arm.com>
4306
4307 * regformats/aarch64.dat: Remove.
4308 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4309 * regformats/i386/amd64-avx-linux.dat: Remove.
4310 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4311 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4312 * regformats/i386/amd64-linux.dat: Remove.
4313 * regformats/i386/amd64-mpx-linux.dat: Remove.
4314 * regformats/i386/amd64.dat: Remove.
4315 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4316 * regformats/i386/i386-avx-linux.dat: Remove.
4317 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4318 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4319 * regformats/i386/i386-linux.dat: Remove.
4320 * regformats/i386/i386-mmx-linux.dat: Remove.
4321 * regformats/i386/i386-mpx-linux.dat: Remove.
4322 * regformats/i386/i386.dat: Remove.
4323 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4324 * regformats/i386/x32-avx-linux.dat: Remove.
4325 * regformats/i386/x32-linux.dat: Remove.
4326
2b40fda7
AH
43272019-07-04 Alan Hayward <alan.hayward@arm.com>
4328
4329 * aarch64-tdep.c: Remove xml self tests.
4330 * amd64-linux-tdep.c: Likewise.
4331 * amd64-tdep.c: Likewise.
4332 * i386-linux-tdep.c: Likewise.
4333 * i386-tdep.c: Likewise.
4334
5f4ba3e7
PA
43352019-07-03 Pedro Alves <palves@redhat.com>
4336
4337 PR cli/24732
4338 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4339 (pipe_cmd_option_defs): New.
4340 (make_pipe_cmd_options_def_group): New.
4341 (pipe_command): Use gdb::option::process_options.
4342 (pipe_command_completer): New function.
4343 (_initialize_cli_cmds): Install completer for "pipe" command.
4344
3d9be6f5
PA
43452019-07-03 Pedro Alves <palves@redhat.com>
4346
4347 * cli/cli-option.c (union option_value) <string>: New field.
4348 (struct option_def_and_value): Add ctor, move ctor, dtor and
4349 use DISABLE_COPY_AND_ASSIGN.
4350 (option_def_and_value::clear_value): New.
4351 (parse_option, save_option_value_in_ctx, get_val_type_str)
4352 (add_setshow_cmds_for_options): Handle var_string.
4353 * cli-option.h (union option_def::var_address) <string>: New
4354 field.
4355 (struct string_option_def): New.
4356 * maint-test-options.c (struct test_options_opts): Add default
4357 ctor and use DISABLE_COPY_AND_ASSIGN.
4358 <string_opt>: New field.
4359 (test_options_opts::~test_options_opts): New.
4360 (test_options_opts::dump): Also dump "-string".
4361 (test_options_option_defs): Install "string.
4362
41fc454c
PA
43632019-07-03 Pedro Alves <palves@redhat.com>
4364
4365 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4366 option_value with a null enumeration.
4367 (complete_options): Save the option values in the context.
4368 (save_option_value_in_ctx): New, factored out from ...
4369 (process_options): ... here.
4370 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4371 of the function.
4372 * maint-test-options.c (test_options_opts::dump): New, factored
4373 out from ...
4374 (maintenance_test_options_command_mode): ... here.
4375 (maintenance_test_options_command_completion_result): Delete.
4376 (maintenance_test_options_command_completion_text): Update
4377 comment.
4378 (maintenance_show_test_options_completion_result): Change
4379 prototype. Just print
4380 maintenance_test_options_command_completion_text.
4381 (save_completion_result): New.
4382 (maintenance_test_options_completer_mode): Pass options context to
4383 complete_options, and then save a dump.
4384 (_initialize_maint_test_options): Use add_cmd to install "maint
4385 show test-options-completion-result".
4386
fdbc9870
PA
43872019-07-03 Pedro Alves <palves@redhat.com>
4388
4389 * NEWS (New commands): Mention "with" and "maint with".
4390 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4391 (with_command, with_command_completer): New.
4392 (pipe_command): Adjust to new repeat_previous
4393 interface.
4394 (_initialize_cli_cmds): Install the "with" command and its "w"
4395 alias.
4396 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4397 declarations.
4398 * cli/cli-setshow.c (parse_cli_var_uinteger)
4399 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4400 argument strings for all var_types.
4401 (get_setshow_command_value_string): New, factored out from ...
4402 (do_show_command): ... this.
4403 * cli/cli-setshow.h: Include <string>.
4404 (get_setshow_command_value_string): Declare.
4405 * command.h (repeat_previous): Now returns const char *. Adjust
4406 comment.
4407 * maint.c: Include "cli/cli-cmds.h".
4408 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4409 (_initialize_maint_cmds): Register the "maintenance with" command.
4410 * top.c (repeat_previous): Move bits from pipe_command here:
4411 Return the saved command line, if any; error out if there's no
4412 command to relaunch.
4413
c6ac8931
PA
44142019-07-03 Pedro Alves <palves@redhat.com>
4415
4416 * NEWS (New commands): Mention "maint set/show test-settings"
4417 instead of "maint test-settings".
4418 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4419 (maintenance_test_settings_set_list): Rename to ...
4420 (maintenance_set_test_settings_list): ... this.
4421 (maintenance_test_settings_show_list): Rename to ...
4422 (maintenance_show_test_settings_list): ... this.
4423 (maintenance_test_settings_cmd): Delete.
4424 (maintenance_test_settings_set_cmd): ...
4425 (maintenance_set_test_settings_cmd): ... this.
4426 (maintenance_test_settings_show_cmd): ...
4427 (maintenance_show_test_settings_cmd): ... this.
4428 (maintenance_test_settings_show_value_cmd):
4429 (maintenance_show_test_settings_value_cmd): ... this.
4430 (_initialize_maint_test_settings): No longer install the "maint
4431 test-settings" prefix command. Rename "maint test-settings set"
4432 to "maint set test-settings", and "maint test-settings show" to
4433 "maint show test-settings". Adjust all subcommands.
4434
d1fcf2fd
PA
44352019-07-03 Pedro Alves <palves@redhat.com>
4436
4437 * maint-test-settings.c: Fix file's intro comment. Replace all
4438 references to "test-options" with references to "test-settings",
4439 in comments.
4440
970f9d09
PA
44412019-07-03 Pedro Alves <palves@redhat.com>
4442
4443 * maint-test-settings.c (maintenance_test_settings_xxx)
4444 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4445 New.
4446 (maintenance_test_settings_enums): Use them.
4447 (maintenance_test_settings_enum): Default to
4448 maintenance_test_settings_xxx.
4449 (_initialize_maint_test_settings): Initialize
4450 MAINTENANCE_TEST_SETTINGS_FILENAME.
4451
f3869b1a
SM
44522019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4453
4454 * breakpoint.h (remove_breakpoints_inf): Change return type to
4455 void, move function documentation here.
4456 * breakpoint.c (remove_breakpoints_inf): Change return type to
4457 void, move function documentation to header.
4458
54d66006
PA
44592019-07-02 Pedro Alves <palves@redhat.com>
4460
4461 * NEWS (Completion improvements): Mention "info threads".
4462 * thread.c (struct info_threads_opts, info_threads_option_defs)
4463 (make_info_threads_options_def_group): New.
4464 (info_threads_command): Use gdb::option::process_options.
4465 (info_threads_command_completer): New.
4466 (_initialize_thread): Use gdb::option::build_help to build the
4467 help text for "info threads".
4468
854f6088
SM
44692019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4470
4471 * defs.h (generic_load): Move from here...
4472 * symfile.h (generic_load): ... to here. Rename name parameter
4473 to args.
4474 * symfile.c (generic_load): Add comment.
4475
54ee4252
TT
44762019-07-01 Tom Tromey <tromey@adacore.com>
4477
4478 * dwarf2read.c
4479 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4480 declaration of without_params. Fix formatting.
4481
65392b3e
TT
44822019-07-01 Tom Tromey <tromey@adacore.com>
4483
4484 * ada-exp.y (find_primitive_type): Update.
4485 * ada-lang.h (ada_lookup_symbol): Update.
4486 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4487 parameter.
4488 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4489
7d7571f0
SDJ
44902019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4491
4492 PR breakpoints/24541
4493 * gdbarch.c: Regenerate.
4494 * gdbarch.h: Regenerate.
4495 * gdbarch.sh: Add 'stap_adjust_register'.
4496 * i386-tdep.c: Include '<unordered_set>'.
4497 (i386_stap_adjust_register): New function.
4498 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4499 * stap-probe.c (stap_parse_register_operand): Call
4500 'gdbarch_stap_adjust_register'.
4501
5af5392a
SDJ
45022019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4503
4504 PR python/24742
4505 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4506 * python/python.c (do_start_initialization): Use 'xmalloc'
4507 instead of 'PyMem_Malloc'.
4508
10d06d82
TT
45092019-06-28 Tom Tromey <tromey@adacore.com>
4510
4511 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4512 for Ada.
4513
1b7f24cd
TT
45142019-06-27 Tom Tromey <tromey@adacore.com>
4515
4516 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4517 objfile_key.
4518 (arm_find_mapping_symbol, arm_record_special_symbol)
4519 (_initialize_arm_tdep): Update.
4520 (arm_objfile_data_free): Remove.
4521
3d507ff2
TT
45222019-06-27 Tom Tromey <tromey@adacore.com>
4523
4524 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4525 to cp_print_static_field.
4526
762c164d
TT
45272019-06-26 Tom Tromey <tromey@adacore.com>
4528
4529 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4530 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4531 declare.
4532
aa2f9bcf
AH
45332019-06-26 Alan Hayward <alan.hayward@arm.com>
4534
4535 * features/aarch64-core.c (create_feature_aarch64_core):
4536 Regenerate.
4537 * features/aarch64-core.xml: Add cpsr flags.
4538
3426ae57
AH
45392019-06-26 Alan Hayward <alan.hayward@arm.com>
4540
4541 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4542 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4543
4838e44c
SM
45442019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4545
4546 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4547 field.
4548 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4549 use.
4550 (arm_record_special_symbol): Don't insert new symbol in sorted
4551 position, push it at the end.
4552
54cc7474
SM
45532019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4554
4555 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4556 (arm_mapping_symbol_s): Remove.
4557 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4558 (arm_mapping_symbol_vec): New typedef.
4559 (struct arm_per_objfile): Add constructor.
4560 <section_maps>: Change type to
4561 std::unique_ptr<arm_mapping_symbol_vec[]>.
4562 (arm_compare_mapping_symbols): Remove.
4563 (arm_find_mapping_symbol): Adjust to section_maps type change.
4564 (arm_objfile_data_free): Call delete on arm_per_objfile.
4565 (arm_record_special_symbol): Adjust to section_maps type change.
4566 Allocate arm_per_objfile with new.
4567
b65b566c
PW
45682019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4569
4570 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4571 with the command prefix.
4572
c2fc64f5
TT
45732019-06-25 Tom Tromey <tom@tromey.com>
4574
4575 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4576 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4577
fb54fa76
TT
45782019-06-25 Tom Tromey <tom@tromey.com>
4579
4580 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4581 type.
4582 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4583 protected.
4584
f7952c57
TT
45852019-06-25 Tom Tromey <tom@tromey.com>
4586
4587 * tui/tui-winsource.c
4588 (tui_source_window_base::set_is_exec_point_at): Add check against
4589 LOA_ADDRESS.
4590
17568d78
TT
45912019-06-25 Tom Tromey <tom@tromey.com>
4592
4593 * tui/tui-source.c (tui_set_source_content): Don't check before
4594 xfree.
4595 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4596
53e7cdba
TT
45972019-06-25 Tom Tromey <tom@tromey.com>
4598
4599 * tui/tui-winsource.h (tui_update_source_window_as_is)
4600 (tui_alloc_source_buffer, tui_line_is_displayed)
4601 (tui_addr_is_displayed): Change type of win_info.
4602 * tui/tui-winsource.c (tui_update_source_window_as_is)
4603 (tui_clear_source_content, tui_show_source_line)
4604 (tui_show_source_content, tui_source_window_base::refill)
4605 (tui_source_window_base::set_is_exec_point_at)
4606 (tui_source_window_base::set_is_exec_point_at)
4607 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4608 (tui_alloc_source_buffer, tui_line_is_displayed)
4609 (tui_addr_is_displayed): Change type of win_info. Update.
4610 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4611 (tui_source_window_base::do_make_visible_with_new_height):
4612 Update.
4613 * tui/tui-source.c (tui_set_source_content)
4614 (tui_set_source_content_nil)
4615 (tui_source_window::do_scroll_vertical): Update.
4616 * tui/tui-layout.c (show_layout): Update.
4617 * tui/tui-disasm.c (tui_set_disassem_content)
4618 (tui_disasm_window::do_scroll_vertical): Update.
4619 * tui/tui-data.h (tui_win_content): Remove.
4620 (struct tui_gen_win_info) <content, content_size>: Remove.
4621 (struct tui_source_element): Add initializers and destructor.
4622 (union tui_which_element, struct tui_win_element): Remove.
4623 (struct tui_source_window_base) <content>: New field.
4624 (struct tui_data_window): Remove destructor.
4625 (tui_alloc_content, tui_free_win_content)
4626 (tui_free_all_source_wins_content): Don't declare.
4627 * tui/tui-data.c (tui_initialize_static_data): Update.
4628 (init_content_element, tui_alloc_content): Remove.
4629 (~tui_gen_win_info): Update.
4630 (~tui_data_window, tui_free_all_source_wins_content)
4631 (tui_free_win_content, free_content, free_content_elements):
4632 Remove.
4633
7908abbf
TT
46342019-06-25 Tom Tromey <tom@tromey.com>
4635
4636 * tui/tui-winsource.h (tui_clear_source_content)
4637 (tui_erase_source_content, tui_show_source_content): Change type
4638 of win_info.
4639 * tui/tui-winsource.c (tui_clear_source_content)
4640 (tui_erase_source_content, tui_show_source_content): Change type
4641 of win_info.
4642 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4643 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4644 win_info.
4645 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4646 win_info.
4647 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4648
02c28df0
TT
46492019-06-25 Tom Tromey <tom@tromey.com>
4650
4651 * tui/tui-winsource.c (tui_clear_source_content)
4652 (tui_source_window_base::set_is_exec_point_at): Update.
4653 * tui/tui-source.c (tui_set_source_content_nil): Update.
4654 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4655 a bool.
4656 * tui/tui-data.c (init_content_element): Update.
4657
6658b1bf
TT
46582019-06-25 Tom Tromey <tom@tromey.com>
4659
4660 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4661 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4662 * tui/tui-layout.c (init_and_make_win): Update.
4663 * tui/tui.h (enum tui_win_type): Update.
4664 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4665 tui_win_is_auxillary.
4666 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4667 tui_win_is_auxillary.
4668
21e1c91e
TT
46692019-06-25 Tom Tromey <tom@tromey.com>
4670
4671 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4672 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4673 (tui_delete_data_content_windows, tui_display_all_data)
4674 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4675 Update.
4676 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4677 * tui/tui-regs.c (tui_last_regs_line_no)
4678 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4679 (tui_show_registers): Update.
4680 (tui_show_register_group): Return void. Update.
4681 (tui_display_registers_from, tui_display_reg_element_at_line)
4682 (tui_display_registers_from_line, tui_check_register_values):
4683 Update.
4684 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4685 member.
4686 (struct tui_data_window) <regs_content>: Now a std::vector.
4687 <regs_content_count>: Remove.
4688 (tui_add_content_elements, tui_free_data_content): Don't declare.
4689 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4690 (init_content_element): Remove DATA_WIN case. Add assert.
4691 (tui_add_content_elements): Remove.
4692 (tui_data_window): Update.
4693 (tui_free_data_content): Remove.
4694 (free_content_elements): Remove DATA_WIN case.
4695
115ac53b
TT
46962019-06-25 Tom Tromey <tom@tromey.com>
4697
4698 * tui/tui-data.c (tui_data_item_window): Update.
4699 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4700 * tui/tui-windata.c (tui_display_all_data)
4701 (tui_display_data_from_line): Update.
4702 (tui_check_data_values): Remove.
4703 * tui/tui-regs.c (tui_show_register_group)
4704 (tui_display_reg_element_at_line): Update.
4705 * tui/tui-hooks.c (tui_register_changed)
4706 (tui_refresh_frame_and_register_information): Call
4707 tui_check_register_values.
4708 * tui/tui-data.h (struct tui_data_window) <data_content,
4709 data_content_count, data_type>: Remove.
4710 (enum tui_data_type): Remove.
4711
4712 * tui/tui-data.c (tui_data_window::clear_detail)
4713 (~tui_data_window): Update.
4714
eaf9738b
TT
47152019-06-25 Tom Tromey <tom@tromey.com>
4716
4717 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4718 declare.
4719 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4720 Rename from tui_first_data_item_displayed. Update.
4721 (tui_data_window::refresh_all)
4722 (tui_data_window::do_scroll_vertical): Update.
4723 * tui/tui-data.h (struct tui_data_window)
4724 <first_data_item_displayed>: Declare new method.
4725
31ca4723
TT
47262019-06-25 Tom Tromey <tom@tromey.com>
4727
4728 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4729 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4730 contents...
4731 (tui_initialize_static_data): ...here.
4732
41bcff7f
TT
47332019-06-25 Tom Tromey <tom@tromey.com>
4734
4735 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4736 (tui_display_registers_from, tui_check_register_values): Update.
4737 (tui_display_register): Remove win_info parameter; update.
4738 (tui_get_register): Change type of parameters.
4739 * tui/tui-data.h (struct tui_data_element): Remove.
4740 (union tui_which_element) <data>: Remove.
4741 <data_window>: Change type.
4742 (struct tui_data_item_window): New.
4743 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4744 case. Add assert.
4745 (~tui_data_item_window): New destructor.
4746 (free_content_elements): Remove DATA_ITEM_WIN case.
4747
d2802c33
TT
47482019-06-25 Tom Tromey <tom@tromey.com>
4749
4750 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4751 Remove.
4752
dd835f8b
TT
47532019-06-25 Tom Tromey <tom@tromey.com>
4754
4755 * tui/tui-data.h (struct tui_command_element): Remove.
4756 (union tui_which_element) <command>: Remove.
4757 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4758 assert.
4759 (free_content_elements): Remove CMD_WIN case.
4760
bd7db367
TT
47612019-06-25 Tom Tromey <tom@tromey.com>
4762
4763 * tui/tui-layout.c (tui_set_layout): Update.
4764 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4765 * tui/tui-data.c (layout_def): Update.
4766
3add462f
TT
47672019-06-25 Tom Tromey <tom@tromey.com>
4768
4769 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4770 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4771 (tui_source_window_base::set_new_height): Update.
4772 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4773 Update.
4774 (tui_set_locator_fullname, tui_set_locator_info)
4775 (tui_show_frame_info): Update.
4776 * tui/tui-source.c (tui_set_source_content)
4777 (tui_source_is_displayed): Update.
4778 * tui/tui-layout.c (show_source_disasm_command, show_data)
4779 (show_source_or_disasm_and_command): Update.
4780 * tui/tui-disasm.c (tui_set_disassem_content)
4781 (tui_get_begin_asm_address): Update.
4782 * tui/tui-data.h (struct tui_locator_element): Remove.
4783 (union tui_which_element) <locator>: Remove.
4784 (struct tui_locator_window): New.
4785 (tui_locator_win_info_ptr): Change return type.
4786 * tui/tui-data.c (_locator): Change type.
4787 (tui_locator_win_info_ptr): Change return type.
4788 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4789 (tui_alloc_content): Add assert.
4790
489e9d8b
TT
47912019-06-25 Tom Tromey <tom@tromey.com>
4792
4793 * tui/tui-winsource.c
4794 (tui_exec_info_window::maybe_allocate_content): New method.
4795 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4796 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4797 (make_source_or_disasm_window): Add cast.
4798 * tui/tui-data.h (union tui_which_element) <simple_string>:
4799 Remove.
4800 (struct tui_source_info): New.
4801 (struct tui_source_window_base) <execution_info>: Change type.
4802 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4803 case, and add assert.
4804 (tui_alloc_content): Add assert.
4805
c3fabb7d
TT
48062019-06-25 Tom Tromey <tom@tromey.com>
4807
4808 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4809 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4810 * tui/tui-data.c (tui_alloc_win_info): Remove.
4811
bbc228ee
TT
48122019-06-25 Tom Tromey <tom@tromey.com>
4813
4814 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4815 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4816 can_highlight.
4817
5fcee43a
TT
48182019-06-25 Tom Tromey <tom@tromey.com>
4819
4820 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4821 make_visible_with_new_height method.
4822 (tui_win_info::make_visible_with_new_height): New method.
4823 (tui_source_window_base::do_make_visible_with_new_height)
4824 (tui_data_window::do_make_visible_with_new_height)
4825 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4826 (make_visible_with_new_height): Remove.
4827 (tui_resize_all, tui_adjust_win_heights): Use
4828 make_visible_with_new_height method.
4829 * tui/tui-data.h (struct tui_win_info)
4830 <do_make_visible_with_new_height, make_visible_with_new_height>:
4831 New methods.
4832 (struct tui_source_window_base, struct tui_data_window)
4833 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4834 methods.
4835
d83f1fe6
TT
48362019-06-25 Tom Tromey <tom@tromey.com>
4837
4838 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4839 method.
4840 (update_tab_width): Call update_tab_width method.
4841 * tui/tui-data.h (struct tui_win_info)
4842 (struct tui_source_window_base) <update_tab_width>: New methods.
4843
17374de4
TT
48442019-06-25 Tom Tromey <tom@tromey.com>
4845
4846 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4847 parameter.
4848 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4849 parameter.
4850 (tui_gen_win_info::make_visible): Update.
4851 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4852 parameter.
4853 * tui/tui-data.h (enum tui_box): New enum.
4854 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4855
f936bca2
TT
48562019-06-25 Tom Tromey <tom@tromey.com>
4857
4858 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4859 init_and_make_win for EXEC_INFO_WIN.
4860 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4861 longer inline.
4862 (struct tui_win_info) <~tui_win_info>: Inline.
4863 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4864 Don't declare.
4865 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4866 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4867 Remove.
4868 (tui_initialize_static_data): Update.
4869 (~tui_gen_win_info): Handle more cleanup here.
4870 (~tui_source_window_base): Delete "execution_info".
4871 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4872
d6ba6a11
TT
48732019-06-25 Tom Tromey <tom@tromey.com>
4874
4875 * tui/tui-layout.c (make_command_window): Don't set
4876 can_highlight.
4877 (show_source_disasm_command): Call the reset method.
4878 (show_data): Don't set can_highlight. Call the reset method.
4879 (tui_gen_win_info::reset): Rename from init_gen_win_info
4880 (init_and_make_win): Simplify. Return tui_gen_win_info.
4881 (show_source_or_disasm_and_command): Call the reset method.
4882 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4883 (struct tui_cmd_window): Set can_highlight.
4884
48a3bd16
TT
48852019-06-25 Tom Tromey <tom@tromey.com>
4886
4887 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4888 from make_visible.
4889 (tui_make_visible, tui_make_invisible): Rewrite.
4890 (tui_win_info::make_visible): Remove.
4891 (tui_source_window_base::make_visible): Update.
4892 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4893 method. Moved from...
4894 (struct tui_win_info) <make_visible>: ...here.
4895
c3bd716f
TT
48962019-06-25 Tom Tromey <tom@tromey.com>
4897
4898 * tui/tui-winsource.c
4899 (tui_source_window_base::do_scroll_horizontal): Remove direction
4900 parameter.
4901 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4902 direction parameter.
4903 * tui/tui-win.c (tui_win_info::forward_scroll)
4904 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4905 (tui_win_info::right_scroll): Update.
4906 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4907 direction parameter.
4908 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4909 direction parameter.
4910 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4911 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4912 Remove direction parameter.
4913 (struct tui_source_window_base, struct tui_source_window)
4914 (struct tui_disasm_window, struct tui_data_window)
4915 (struct tui_cmd_window): Update.
4916
21c32dca
TT
49172019-06-25 Tom Tromey <tom@tromey.com>
4918
4919 * tui/tui-winsource.h (tui_set_exec_info_content)
4920 (tui_show_exec_info_content, tui_erase_exec_info_content)
4921 (tui_clear_exec_info_content, tui_update_exec_info): Change
4922 argument to tui_source_window_base.
4923 * tui/tui-winsource.c (tui_set_exec_info_content)
4924 (tui_show_exec_info_content, tui_erase_exec_info_content)
4925 (tui_clear_exec_info_content, tui_update_exec_info): Change
4926 argument to tui_source_window_base.
4927
73fbdc65
TT
49282019-06-25 Tom Tromey <tom@tromey.com>
4929
4930 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4931 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4932
33325343
TT
49332019-06-25 Tom Tromey <tom@tromey.com>
4934
4935 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4936 check.
4937
29d2c474
TT
49382019-06-25 Tom Tromey <tom@tromey.com>
4939
4940 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4941 type to void.
4942 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4943 type to void.
4944 * tui/tui-source.c (tui_set_source_content): Update.
4945 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4946
152f3f4b
TT
49472019-06-25 Tom Tromey <tom@tromey.com>
4948
4949 * tui/tui-win.c (window_name_completer, tui_set_focus)
4950 (tui_all_windows_info): Use name method.
4951 * tui/tui-data.h (struct tui_gen_win_info)
4952 (struct tui_source_window, struct tui_disasm_window)
4953 (struct tui_data_window, struct tui_cmd_window) <name>: New
4954 method.
4955 (tui_win_name): Don't declare.
4956 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4957 (tui_win_name): Remove.
4958
be4da588
TT
49592019-06-25 Tom Tromey <tom@tromey.com>
4960
4961 * tui/tui-winsource.h (tui_update_source_window)
4962 (tui_update_source_window_as_is): Change parameter type.
4963 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4964 to be a tui_source_window_base.
4965 (tui_update_source_window_as_is): Likewise.
4966 * tui/tui-win.c (make_visible_with_new_height): Update.
4967
5b81daba
TT
49682019-06-25 Tom Tromey <tom@tromey.com>
4969
4970 * tui/tui-winsource.c (tui_erase_source_content)
4971 (tui_show_source_content, tui_show_exec_info_content)
4972 (tui_erase_exec_info_content): Use refresh_window method.
4973 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4974 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4975 from tui_refresh_win.
4976 (tui_data_window::refresh_window): New method.
4977 (tui_win_info::refresh, tui_source_window_base::refresh)
4978 (tui_refresh_all): Use refresh_window method.
4979 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4980 method.
4981 * tui/tui-regs.c (tui_display_register): Call refresh_window
4982 method.
4983 * tui/tui-layout.c (show_source_disasm_command)
4984 (show_source_or_disasm_and_command): Call refresh_window method.
4985 * tui/tui-data.h (struct tui_gen_win_info)
4986 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4987 New method.
4988
cb2ce893
TT
49892019-06-25 Tom Tromey <tom@tromey.com>
4990
4991 * tui/tui.c (tui_rl_other_window, tui_enable)
4992 (tui_is_window_visible, tui_get_command_dimension): Update.
4993 * tui/tui-winsource.c (tui_update_source_window_as_is)
4994 (tui_clear_source_content, tui_erase_source_content)
4995 (tui_show_source_line, tui_source_window_base::refill)
4996 (tui_source_window_base::do_scroll_horizontal)
4997 (tui_source_window_base::set_is_exec_point_at)
4998 (tui_update_breakpoint_info, tui_set_exec_info_content)
4999 (tui_alloc_source_buffer, tui_line_is_displayed)
5000 (tui_addr_is_displayed): Update.
5001 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5002 (tui_check_and_display_highlight_if_needed)
5003 (tui_win_info::make_visible, tui_win_info::refresh)
5004 (tui_refresh_all): Update.
5005 * tui/tui-windata.c (tui_first_data_item_displayed)
5006 (tui_delete_data_content_windows, tui_erase_data_content)
5007 (tui_display_all_data, tui_data_window::refresh_all)
5008 (tui_check_data_values): Update.
5009 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5010 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5011 (tui_win_info::backward_scroll, tui_refresh_all_win)
5012 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5013 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5014 (tui_source_window_base::set_new_height)
5015 (tui_data_window::set_new_height)
5016 (make_invisible_and_set_new_height)
5017 (make_visible_with_new_height, new_height_ok)
5018 (parse_scrolling_args): Update.
5019 * tui/tui-stack.c (tui_show_frame_info): Update.
5020 * tui/tui-source.c (tui_set_source_content)
5021 (tui_set_source_content_nil, tui_source_is_displayed)
5022 (tui_source_window::do_scroll_vertical): Update.
5023 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5024 (tui_display_registers_from, tui_display_reg_element_at_line)
5025 (tui_check_register_values, tui_reg_command): Update.
5026 * tui/tui-layout.c (tui_default_win_height)
5027 (show_source_disasm_command, show_data, init_and_make_win)
5028 (show_source_or_disasm_and_command): Update.
5029 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5030 (tui_redisplay_readline, tui_mld_flush)
5031 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5032 (tui_getc): Update.
5033 * tui/tui-disasm.c (tui_set_disassem_content)
5034 (tui_disasm_window::do_scroll_vertical): Update.
5035 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5036 Now virtual.
5037 (struct tui_win_info): Derive from tui_gen_win_info.
5038 <~tui_win_info>: Mark as override.
5039 <generic>: Remove member.
5040 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5041 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5042 (~tui_data_window, ~tui_win_info)
5043 (tui_free_all_source_wins_content): Update.
5044 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5045
ab313b35
TT
50462019-06-25 Tom Tromey <tom@tromey.com>
5047
5048 * tui/tui-layout.c (init_and_make_win): Use new.
5049 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5050 destructor, initializers.
5051 (tui_alloc_generic_win_info): Don't declare.
5052 * tui/tui-data.c (_locator): Add argument to constructor.
5053 (source_win, disasm_win): New globals.
5054 (exec_info): Remove.
5055 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5056 Update.
5057 (tui_alloc_generic_win_info): Remove.
5058 (init_content_element): Use new.
5059 (tui_win_info::tui_win_info): Update.
5060 (free_content_elements) <case DATA_WIN>: Use delete.
5061
dc2c33e4
TT
50622019-06-25 Tom Tromey <tom@tromey.com>
5063
5064 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5065 * tui/tui-windata.c (tui_first_data_item_displayed)
5066 (tui_delete_data_content_windows): Update.
5067 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5068 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5069 (tui_display_registers_from, tui_check_register_values): Update.
5070 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5071 pointer.
5072 * tui/tui-data.c (init_content_element): Update. Allocate the new
5073 window.
5074 (tui_free_data_content): Update.
5075 (free_content_elements) <case DATA_WIN>: Free the window.
5076
214a5cbe
TT
50772019-06-25 Tom Tromey <tom@tromey.com>
5078
5079 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5080 Update.
5081 * tui/tui-layout.c (make_command_window)
5082 (show_source_disasm_command, show_data, init_and_make_win)
5083 (show_source_or_disasm_and_command): Update.
5084 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5085 method.
5086 <can_highight, is_highlighted>: Now bool.
5087 (tui_set_win_highlight): Don't declare.
5088 * tui/tui-data.c (tui_set_win_highlight): Remove.
5089
8e2daf15
TT
50902019-06-25 Tom Tromey <tom@tromey.com>
5091
5092 * tui/tui-wingeneral.c (make_visible): Remove check of window
5093 type.
5094
8903bd8a
TT
50952019-06-25 Tom Tromey <tom@tromey.com>
5096
5097 * tui/tui-win.c (tui_win_info::max_height)
5098 (tui_cmd_window::max_height): New methods.
5099 (new_height_ok): Call max_height.
5100 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5101 <max_height>: New method.
5102
3f02ce1e
TT
51032019-06-25 Tom Tromey <tom@tromey.com>
5104
5105 * tui/tui-win.c (tui_source_window_base::set_new_height)
5106 (tui_data_window::set_new_height): New methods.
5107 (make_invisible_and_set_new_height): Call set_new_height method.
5108 * tui/tui-data.h (struct tui_win_info)
5109 (struct tui_source_window_base, struct tui_data_window)
5110 <set_new_height>: New method.
5111
1825f487
TT
51122019-06-25 Tom Tromey <tom@tromey.com>
5113
5114 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5115 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5116 tui_refresh_data_win.
5117 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5118 method.
5119 (tui_refresh_all_win): Call the refresh_all method.
5120 (tui_set_focus): Likewise.
5121 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5122 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5123 Likewise.
5124
ad54d15b
TT
51252019-06-25 Tom Tromey <tom@tromey.com>
5126
5127 * tui/tui-winsource.h (tui_refill_source_window)
5128 (tui_set_is_exec_point_at): Don't declare.
5129 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5130 (tui_source_window_base::refill): Rename from
5131 tui_refill_source_window.
5132 (tui_source_window_base::do_scroll_horizontal): Update.
5133 (tui_source_window_base::set_is_exec_point_at): Rename from
5134 tui_set_is_exec_point_at.
5135 (tui_update_all_breakpoint_info): Update.
5136 * tui/tui-stack.c (tui_show_frame_info): Update.
5137 * tui/tui-layout.c (show_data): Add cast.
5138 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5139 * tui/tui-data.h (struct tui_source_window_base) <refill,
5140 set_is_exec_point_at>: New methods.
5141 (tui_source_windows, tui_add_to_source_windows): Update types.
5142 (tui_add_to_source_windows): Remove redundant declaration.
5143 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5144 (tui_source_windows): Change return type.
5145 (tui_clear_source_windows_detail): Update.
5146 (tui_add_to_source_windows): Change type of parameter.
5147 (tui_free_all_source_wins_content): Update.
5148
2042b506
TT
51492019-06-25 Tom Tromey <tom@tromey.com>
5150
5151 * tui/tui-wingeneral.c (tui_win_info::refresh)
5152 (tui_source_window_base::refresh): New methods.
5153 (tui_refresh_all): Call the refresh method.
5154 * tui/tui-data.h (struct tui_win_info)
5155 (struct tui_source_window_base) <refresh>: New method.
5156
56122977
TT
51572019-06-25 Tom Tromey <tom@tromey.com>
5158
5159 * tui/tui.h (tui_is_window_visible): Return bool.
5160 * tui/tui.c (tui_is_window_visible): Return bool.
5161 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5162 (tui_make_visible, tui_make_invisible)
5163 (tui_win_info::make_visible)
5164 (tui_source_window_base::make_visible, make_all_visible)
5165 (tui_make_all_visible, tui_make_all_invisible): Update.
5166 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5167 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5168 bool.
5169 (struct tui_win_info, struct tui_source_window_base)
5170 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5171 * tui/tui-data.c (tui_init_generic_part): Update.
5172
cda37efb
TT
51732019-06-25 Tom Tromey <tom@tromey.com>
5174
5175 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5176 (tui_source_window_base::make_visible): New methods.
5177 (make_all_visible): Make method call.
5178 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5179 (struct tui_source_window_base, struct tui_cmd_window): Override
5180 make_visible.
5181 (tui_win_is_source_type): Don't declare.
5182 * tui/tui-data.c (tui_win_is_source_type): Remove.
5183
6a0ee02c
TT
51842019-06-25 Tom Tromey <tom@tromey.com>
5185
5186 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5187 NULL check.
5188
63901aec
TT
51892019-06-25 Tom Tromey <tom@tromey.com>
5190
5191 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5192 Inline constructor. Add initializers for members.
5193 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5194 constructors; now inline in class.
5195
ceb13a13
TT
51962019-06-25 Tom Tromey <tom@tromey.com>
5197
5198 * tui/tui-regs.c (tui_show_registers): Update.
5199 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5200 bool.
5201 * tui/tui-data.c (tui_data_window::clear_detail)
5202 (tui_data_window): Update.
5203
238eb706
TT
52042019-06-25 Tom Tromey <tom@tromey.com>
5205
5206 * tui/tui-windata.c (tui_display_all_data)
5207 (tui_display_data_from_line, tui_display_data_from)
5208 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5209 Update.
5210 * tui/tui-regs.c (tui_last_regs_line_no)
5211 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5212 (tui_show_registers, tui_show_register_group)
5213 (tui_display_registers_from, tui_display_reg_element_at_line)
5214 (tui_display_registers_from_line, tui_check_register_values)
5215 (tui_reg_next, tui_reg_prev): Update.
5216 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5217 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5218 tui_data_window.
5219 (struct tui_win_info) <detail>: Remove. Add new fields from
5220 tui_data_info.
5221 (TUI_DATA_WIN): Add cast.
5222 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5223 (~tui_data_window): Simplify.
5224
81491aa0
TT
52252019-06-25 Tom Tromey <tom@tromey.com>
5226
5227 * tui/tui-layout.c (show_source_disasm_command)
5228 (show_source_or_disasm_and_command): Update.
5229 * tui/tui-io.c (update_cmdwin_start_line)
5230 (tui_redisplay_readline): Update.
5231 * tui/tui-data.h (struct tui_command_info): Remove.
5232 (struct tui_win_info) <detail>: Remove command_info member.
5233 (struct tui_data_window) <start_line>: New member, from
5234 tui_command_info.
5235 (TUI_CMD_WIN): Add casts.
5236
e6e41501
TT
52372019-06-25 Tom Tromey <tom@tromey.com>
5238
5239 * tui/tui-winsource.c (tui_update_source_window)
5240 (tui_refill_source_window)
5241 (tui_source_window_base::do_scroll_horizontal)
5242 (tui_update_breakpoint_info, tui_set_exec_info_content)
5243 (tui_show_exec_info_content, tui_erase_exec_info_content)
5244 (tui_clear_exec_info_content): Update.
5245 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5246 Update.
5247 * tui/tui-win.c (make_invisible_and_set_new_height)
5248 (make_visible_with_new_height): Update.
5249 * tui/tui-source.c (tui_set_source_content)
5250 (tui_show_symtab_source): Update.
5251 * tui/tui-layout.c (extract_display_start_addr)
5252 (show_source_disasm_command, show_data)
5253 (make_source_or_disasm_window)
5254 (show_source_or_disasm_and_command): Update.
5255 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5256 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5257 "gdbarch".
5258 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5259 to tui_source_window_base.
5260 (struct tui_win_info) <detail>: Remove source_info member.
5261 (struct tui_source_window_base) <has_locator>: Inline.
5262 Move contents from tui_source_info; rename has_locator member to
5263 m_has_locator.
5264 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5265 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5266 header file.
5267 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5268 Simplify.
5269 (tui_free_all_source_wins_content): Cast to
5270 tui_source_window_base.
5271
44f0e208
TT
52722019-06-25 Tom Tromey <tom@tromey.com>
5273
5274 * tui/tui-win.c (make_invisible_and_set_new_height)
5275 (make_visible_with_new_height): Call has_locator method.
5276 * tui/tui-layout.c (show_source_disasm_command, show_data)
5277 (show_source_or_disasm_and_command): Update for bool change.
5278 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5279 (tui_win_info) <has_locator>: New method.
5280 (struct tui_source_window_base) <has_locator>: New method.
5281 (tui_win_has_locator): Don't declare.
5282 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5283 from tui_win_has_locator.
5284 (tui_source_window_base): Use false, not FALSE.
5285
7778b912
TT
52862019-06-25 Tom Tromey <tom@tromey.com>
5287
5288 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5289 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5290 clear_detail method directly.
5291 (tui_clear_win_detail): Remove.
5292
f83d391c
TT
52932019-06-25 Tom Tromey <tom@tromey.com>
5294
5295 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5296 "this", not TUI_DISASM_WIN.
5297
13446e05
TT
52982019-06-25 Tom Tromey <tom@tromey.com>
5299
5300 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
5301 declare.
5302 * tui/tui-winsource.c
5303 (tui_source_window_base::do_scroll_horizontal): Rename from
5304 tui_horizontal_source_scroll.
5305 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5306 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5307 from tui_vertical_data_scroll.
5308 * tui/tui-win.h (tui_scroll): Don't declare.
5309 * tui/tui-win.c (tui_win_info::forward_scroll)
5310 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5311 (tui_win_info::right_scroll): Rename and update.
5312 (tui_scroll_forward_command, tui_scroll_backward_command)
5313 (tui_scroll_left_command, tui_scroll_right_command): Update.
5314 (tui_scroll): Remove.
5315 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5316 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5317 from tui_vertical_source_scroll.
5318 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5319 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5320 from tui_vertical_disassem_scroll.
5321 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5322 do_scroll_horizontal>: New methods.
5323 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5324 Likewise.
5325 (struct tui_source_window_base): Add do_scroll_horizontal.
5326 (struct tui_source_window, struct tui_disasm_window): Add
5327 do_scroll_vertical.
5328 (struct tui_data_window, struct tui_cmd_window): Add
5329 do_scroll_horizontal and do_scroll_vertical.
5330 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5331
5cf82909
TT
53322019-06-25 Tom Tromey <tom@tromey.com>
5333
5334 * tui/tui-data.h (struct tui_source_window_base): New struct.
5335 (struct tui_source_window): Derive from tui_source_window_base.
5336 (struct tui_disasm_window): New struct.
5337 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5338 from tui_source_window::clear_detail.
5339 (tui_source_window_base): Rename from tui_source_window.
5340 (~tui_source_window_base): Rename from ~tui_source_window.
5341 (tui_alloc_win_info): Create a tui_disasm_window.
5342
ee1d42d6
TT
53432019-06-25 Tom Tromey <tom@tromey.com>
5344
5345 * tui/tui-data.h (struct tui_source_window)
5346 (struct tui_data_window): Declare destructors.
5347 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5348 destructors.
5349 (tui_win_info): Simplify.
5350
b4eb2452
TT
53512019-06-25 Tom Tromey <tom@tromey.com>
5352
5353 * tui/tui-winsource.c (tui_display_main)
5354 (tui_update_source_windows_with_addr)
5355 (tui_update_all_breakpoint_info): Update.
5356 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5357 (new_height_ok, parse_scrolling_args): Update.
5358 * tui/tui-stack.c (tui_show_frame_info): Update.
5359 * tui/tui-data.h (struct tui_list): Remove.
5360 (tui_source_windows): Return a reference to a std::vector.
5361 * tui/tui-data.c (source_windows): Now a std::vector.
5362 (tui_source_windows): Change return type.
5363 (tui_clear_source_windows): Rewrite.
5364 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5365 (tui_free_all_source_wins_content): Rewrite.
5366
8761a91b
TT
53672019-06-25 Tom Tromey <tom@tromey.com>
5368
5369 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5370 (struct tui_data_window, struct tui_cmd_window): Declare
5371 clear_detail method.
5372 * tui/tui-data.c (tui_source_window::clear_detail)
5373 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5374 methods.
5375 (tui_clear_win_detail): Simplify.
5376
0ed69eda
TT
53772019-06-25 Tom Tromey <tom@tromey.com>
5378
5379 * tui/tui-layout.c (make_source_window, make_disasm_window)
5380 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5381 Return the new window.
5382 (show_source_disasm_command, show_data)
5383 (show_source_or_disasm_and_command): Update.
5384
82432e10
TT
53852019-06-25 Tom Tromey <tom@tromey.com>
5386
5387 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5388 parameter. Return the new window.
5389 (show_source_disasm_command): Update and remove NULL check.
5390 (show_source_or_disasm_and_command): Update.
5391
ec328aa5
TT
53922019-06-25 Tom Tromey <tom@tromey.com>
5393
5394 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5395
33b906ab
TT
53962019-06-25 Tom Tromey <tom@tromey.com>
5397
5398 * tui/tui-data.h (struct tui_win_info): Make constructor
5399 protected. Make destructor virtual. Add initializers.
5400 (tui_source_window, tui_data_window, tui_cmd_window): New
5401 classes.
5402 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5403 constructor. Add "type" parameter.
5404 (tui_source_window, tui_data_window, tui_cmd_window): New
5405 constructors.
5406 (tui_alloc_win_info): Instantiate the appropriate subclass.
5407
e7e11af4
TT
54082019-06-25 Tom Tromey <tom@tromey.com>
5409
5410 * tui/tui-win.c (tui_resize_all): Use delete.
5411 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5412 destructor.
5413 (tui_free_window): Don't declare.
5414 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5415 Update.
5416
6792b55e
TT
54172019-06-25 Tom Tromey <tom@tromey.com>
5418
5419 * tui/tui-data.h (struct tui_win_info): Add constructor.
5420 * tui/tui-data.c (tui_alloc_win_info): Use new.
5421 (tui_free_window): Use delete.
5422
f95675e1
TT
54232019-06-22 Tom Tromey <tom@tromey.com>
5424
5425 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5426 declare.
5427 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5428
5bff081c
TT
54292019-06-22 Tom Tromey <tom@tromey.com>
5430
5431 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5432 declare.
5433 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5434
47e3f474
TV
54352019-06-22 Tom de Vries <tdevries@suse.de>
5436
5437 * dwarf2read.c (create_addrmap_from_aranges)
5438 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5439 instead of '%zu'.
5440
fd5866f6
SM
54412019-06-21 Simon Marchi <simon.marchi@efficios.com>
5442
5443 * dwarf2read.h (dwarf2_section_info_def): Remove.
5444 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5445 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5446 std::vector<dwarf2_section_info>.
5447 (struct dwo_file) <~dwo_file>: Remove.
5448 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5449 types field.
5450 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5451 (dwarf2_read_debug_names): Likewise.
5452 (create_debug_types_hash_table): Change parameter type to
5453 array_view, adjust code accordingly.
5454 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5455 (partial_die_info::fixup): Likewise.
5456 (determine_prefix): Likewise.
5457 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5458
fb1eb2f9
SM
54592019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5460
5461 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5462 gdb_bfd_ref_ptr.
5463 <~dwo_file>: Remove call to gdb_bfd_unref.
5464 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5465 gdb_bfd_ref_ptr::get.
5466
51ac9db5
SM
54672019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5468
5469 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5470 type to htab_up.
5471 * dwarf2read.c (struct dwo_file): Initialize fields.
5472 <~dwo_file>: New.
5473 (free_dwo_file): Remove, move content to ~dwo_file.
5474 (struct dwo_file_deleter): Remove.
5475 (dwo_file_up>: Remove custom deleter.
5476 (free_dwo_files): Remove.
5477 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5478 dwo_files.
5479 (process_skeletonless_type_units): Call unique_ptr::get.
5480 (allocate_dwo_file_hash_table): Add deleter to created hash
5481 table. Change return type to htab_up.
5482 (lookup_dwo_file_slot): Don't memset dwo_file, call
5483 unique_ptr::get.
5484 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5485 (create_dwo_unit_in_dwp_v2): Likewise.
5486 (open_and_init_dwo_file): Likewise.
5487 (free_dwo_file_from_slot): Remove.
5488
dc4ccb6f
SM
54892019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5490
5491 * dwarf2read.h (struct dwarf2_section_info) <readin,
5492 is_virtual>: Change type to bool.
5493 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5494 true instead of 1.
5495
e6a1c5cb
TT
54962019-06-19 Tom Tromey <tom@tromey.com>
5497
5498 * tui/tui-data.h (tui_init_content_element): Don't declare.
5499
6f6ffbeb
TT
55002019-06-19 Tom Tromey <tom@tromey.com>
5501
5502 * tui/tui-data.h (tui_init_win_info): Don't declare.
5503
f23f598e
TV
55042019-06-19 Tom de Vries <tdevries@suse.de>
5505
5506 * dwarf2read.h (abstract_to_concrete): Change type to
5507 std::unordered_map<sect_offset, std::vector<sect_offset>,
5508 gdb::hash_enum<sect_offset>>.
5509
680e1bee
TT
55102019-06-19 Tom Tromey <tromey@adacore.com>
5511
5512 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5513 EVAL_AVOID_SIDE_EFFECTS specially.
5514
dcf37923
TT
55152019-06-19 Tom Tromey <tromey@adacore.com>
5516
5517 * source-cache.c (highlighter): New global.
5518 (source_cache::get_source_lines): Create a highlighter on demand.
5519
494986d5
AB
55202019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5521
5522 * defs.h (deprecated_interactive_hook): Delete declaration.
5523 * interps.c (clear_interpreter_hooks): Remove use of
5524 deprecated_interactive_hook.
5525 * top.c (deprecated_interactive_hook): Delete definition.
5526 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5527
3360b6e7
TV
55282019-06-18 Tom de Vries <tdevries@suse.de>
5529
5530 PR gdb/24515
5531 * dwarf2read.h (abstract_to_concrete): Change type from
5532 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5533 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5534 * dwarf2read.c (read_variable): Update.
5535 (dwarf2_fetch_die_loc_sect_off): Update.
5536
310b3441
TV
55372019-06-17 Tom de Vries <tdevries@suse.de>
5538
5539 PR gdb/24617
5540 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5541 accessing parent[parent_len - 1].
5542
ba9777be
PP
55432019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5544
5545 PR gdb/24364
5546 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5547 call dtrace_process_dof with NULL dof.
5548
2b9f6e89
TV
55492019-06-16 Tom de Vries <tdevries@suse.de>
5550
5551 PR gdb/24445
5552 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5553
431b3ead
TT
55542019-06-16 Tom Tromey <tom@tromey.com>
5555
5556 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5557 (make_all_visible): Use address of member.
5558
d04b44a1
TT
55592019-06-16 Tom Tromey <tom@tromey.com>
5560
5561 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5562 (tui_free_window, free_content, free_content_elements): Remove
5563 unnecessary cast.
5564 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5565 cast.
5566 * tui/tui-regs.c (tui_show_register_group)
5567 (tui_display_registers_from, tui_display_reg_element_at_line):
5568 Remove unnecessary cast.
5569
bf5142e7
AB
55702019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5571
5572 * linux-nat.c (normal_mask): Delete.
5573 (_initialize_linux_nat): Don't initialise normal_mask.
5574
c4973306
SM
55752019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5576
5577 PR gdb/24445
5578 * dwarf-index-write.h (write_psymtabs_to_index): Add
5579 dwz_basename parameter.
5580 * dwarf-index-write.c (write_gdbindex): Move file writing to
5581 write_gdbindex_1. Change return type void.
5582 (assert_file_size): Move up, remove filename parameter.
5583 (write_gdbindex_1): New function.
5584 (write_debug_names): Change return type to void, call
5585 assert_file_size.
5586 (struct index_wip_file): New struct.
5587 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5588 file logic to index_wip_file. Write index for dwz file if
5589 needed.
5590 (save_gdb_index_command): Pass basename of dwz file, if present.
5591 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5592 build-id of dwz file, if present.
5593 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5594 (dwarf2_get_dwz_file): Likewise.
5595 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5596 (dwarf2_get_dwz_file): Likewise.
5597
395f9c91
TT
55982019-06-16 Tom Tromey <tom@tromey.com>
5599
5600 * coffread.c (process_coff_symbol): Use xstrdup.
5601 * value.c (create_internalvar): Use xstrdup.
5602
cafb3438
TT
56032019-06-16 Tom Tromey <tom@tromey.com>
5604
5605 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5606 * breakpoint.c (stopin_command, stopat_command)
5607 (until_break_command, decode_location_default): Remove unnecessary
5608 cast.
5609 * utils.c (subset_compare): Remove unnecessary cast.
5610 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5611 cast.
5612 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5613 cast.
5614 * infcmd.c (path_command): Remove unnecessary cast.
5615 * coffread.c (decode_type): Remove unnecessary cast.
5616 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5617 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5618 * tui/tui-stack.c (tui_show_locator_content)
5619 (tui_show_frame_info): Remove unnecessary cast.
5620 * tui/tui-win.c (tui_scroll_forward_command)
5621 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5622 (parse_scrolling_args): Remove unnecessary cast.
5623 * tui/tui-data.c (init_win_info, tui_del_window)
5624 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5625 (free_content_elements): Remove unnecessary cast.
5626 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5627 unnecessary cast.
5628 * tui/tui-source.c (tui_set_source_content)
5629 (tui_vertical_source_scroll): Remove unnecessary cast.
5630 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5631 cast.
5632 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5633 * tui/tui-regs.c (tui_display_registers_from)
5634 (tui_display_register): Remove unnecessary cast.
5635 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5636 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5637 (make_visible): Remove unnecessary cast.
5638 * tui/tui-winsource.c (tui_erase_source_content)
5639 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5640 unnecessary cast.
5641 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5642 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5643 * stabsread.c (read_type, read_array_type, read_range_type):
5644 Remove unnecessary cast.
5645 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5646 (parse_symbol, parse_type, upgrade_type, parse_external)
5647 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5648 unnecessary cast.
5649 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5650
730ead81
TT
56512019-06-16 Tom Tromey <tom@tromey.com>
5652
5653 * tui/tui-data.c (tui_alloc_generic_win_info)
5654 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5655 checks.
5656
584a927c
AB
56572019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5658 Andrew Burgess <andrew.burgess@embecosm.com>
5659
5660 * f-typeprint.c (f_print_type): Don't return early for not
5661 associated or not allocated types.
5662 (f_type_print_varspec_suffix): Add print_rank parameter and print
5663 ranks of array types in case they dangling.
5664 (f_type_print_base): Add print_rank parameter.
5665
30056ea0
AB
56662019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5667
5668 * NEWS: Mention new MI commands.
5669 * break-catch-throw.c (enum exception_event_kind): Move to
5670 breakpoint.h.
5671 (print_mention_exception_catchpoint): Output text as a single
5672 message.
5673 (catch_exception_command_1): Rename to...
5674 (catch_exception_event): ...this, make non-static, update header
5675 command, and change some parameter types.
5676 (catch_catch_command): Update for changes to
5677 catch_exception_command_1.
5678 (catch_throw_command): Likewise.
5679 (catch_rethrow_command): Likewise.
5680 * breakpoint.c (enum exception_event_kind): Delete.
5681 * breakpoint.h (enum exception_event_kind): Moved here from
5682 break-catch-throw.c.
5683 (catch_exception_event): Declare.
5684 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5685 (mi_cmd_catch_throw): New function.
5686 (mi_cmd_catch_rethrow): New function.
5687 (mi_cmd_catch_catch): New function.
5688 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5689 'catch-catch' entries.
5690 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5691 (mi_cmd_catch_rethrow): Declare.
5692 (mi_cmd_catch_catch): Declare.
5693
ec8e2b6d
AB
56942019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5695
5696 * annotate.c (annotate_source_line): Change return type to void,
5697 update implementation to match.
5698 * annotate.h (annotate_source_line): Change return type to void,
5699 update header comment.
5700 * stack.c (print_frame_info): Don't change what frame information
5701 is printed based on whether annotations are on or not.
5702
0d3abd8c
AB
57032019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5704
5705 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5706 (annotate_source): Make static.
5707 (annotate_source_line): Moved from source.c and renamed from
5708 identify_source_line. Update the return type.
5709 * annotate.h (annotate_source): Delete declaration.
5710 (annotate_source_line): Declaration moved from source.h, and
5711 renamed from identify_source_line. Return type updated.
5712 * source.c (identify_source_line): Moved to annotate.c and renamed
5713 to annotate_source_line.
5714 (info_line_command): Remove check of annotation_level.
5715 * source.h (identify_source_line): Move declaration to annotate.h
5716 and rename to annotate_source_line.
5717 * stack.c: Add 'annotate.h' include.
5718 (print_frame_info): Remove check of annotation_level before
5719 calling annotate_source_line.
5720
00df30ae
AB
57212019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5722
5723 * source-cache.c (source_cache::get_plain_source_lines): Use
5724 open_source_file_with_line_charpos instead of just
5725 open_source_file, remove call to find_source_lines.
5726 (source_cache::get_source_lines): Likewise.
5727 * source.c (find_source_lines): Make static.
5728 (get_filename_and_charpos): Renamed into...
5729 (open_source_file_with_line_charpos): ..this along with changes to
5730 return a scoped_fd, and some other minor clean ups.
5731 (identify_source_line): Use open_source_file_with_line_charpos.
5732 (search_command_helper): Use open_source_file_with_line_charpos
5733 instead of just open_source_file, remove call to
5734 find_source_lines.
5735 * source.h (open_source_file_with_line_charpos): Declare new
5736 function.
5737 (find_source_lines): Delete declaration.
5738
afda45a2
AB
57392019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5740
5741 * source.c (get_filename_and_charpos): Remove fullname
5742 parameter.
5743 (identify_source_line): Update call to get_filename_and_charpos.
5744
0735b091
TT
57452019-06-14 Tom Tromey <tromey@adacore.com>
5746
5747 PR gdb/24502:
5748 * ui-style.h (skip_ansi_escape): Update comment.
5749 * ui-file.h (class no_terminal_escape_file): New class.
5750 * ui-file.c (no_terminal_escape_file::write)
5751 (no_terminal_escape_file::puts): New methods.
5752 * cli/cli-logging.c (handle_redirections): Use
5753 no_terminal_escape_file.
5754
52ce35e2
TT
57552019-06-14 Tom Tromey <tromey@adacore.com>
5756
5757 * NEWS: Move convenience variable news above Python news.
5758
73cc7272
TT
57592019-06-14 Tom Tromey <tom@tromey.com>
5760
5761 * gnulib: Move directory to top-level.
5762 * configure.ac: Don't configure gnulib.
5763 * configure: Rebuild.
5764 * common/common-defs.h: Use new path to gnulib.
5765 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5766 (GNULIB_H): Remove.
5767 (INCGNU): Look in new gnulib location.
5768 (HFILES_NO_SRCDIR): Remove gnulib files.
5769 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5770 (generated_files): Remove GNULIB_H.
5771 ($(LIBGNU), all-lib): Remove targets.
5772 (distclean): Don't mention GNULIB_BUILDDIR.
5773 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5774
f5686554
TT
57752019-06-14 Tom Tromey <tromey@adacore.com>
5776
5777 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5778 Warn if symbol file does not provide any symbols.
5779
a0c1ffed
TT
57802019-06-14 Tom Tromey <tromey@adacore.com>
5781
5782 * source.c (find_and_open_source): Respect basenames_may_differ.
5783
7c39e397
AB
57842019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5785
5786 * annotate.c (annotate_breakpoints_invalid): Make use of
5787 scoped_restore_terminal_state.
5788 (annotate_frames_invalid): Likewise.
5789
f411722c
TT
57902019-06-14 Tom Tromey <tromey@adacore.com>
5791
5792 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5793 allow assignment to an internalvar.
5794
4268ec18
TT
57952019-06-14 Tom Tromey <tromey@adacore.com>
5796
5797 * ada-lex.l: Allow "_" in attribute names.
5798
abdb711e
TT
57992019-06-14 Tom Tromey <tromey@adacore.com>
5800
5801 PR gdb/24653:
5802 * regcache.c (registers_changed): Don't call alloca.
5803 * top.c (execute_command): Don't call alloca.
5804
4c048731
PA
58052019-06-13 Pedro Alves <palves@redhat.com>
5806
5807 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5808 'expression'. When parsing an expression, error out if there's
5809 junk after "unlimited".
5810 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5811 (do_set_command): Adjust calls to is_unlimited_literal.
5812
66eb1ed3
PA
58132019-06-13 Pedro Alves <palves@redhat.com>
5814
5815 * compile/compile.c (make_compile_options_def_group): Add braces
5816 around array_view initializer.
5817 * thread.c (make_thread_apply_all_options_def_group)
5818 (make_thread_apply_all_options_def_group): Likewise.
5819
3345721a
PA
58202019-06-13 Pedro Alves <palves@redhat.com>
5821
5822 * NEWS (New commands): Mention "maint test-options
5823 require-delimiter", "maint test-options unknown-is-error", "maint
5824 test-options unknown-is-operand" and "maint show
5825 test-options-completion-result".
5826 (New command options, command completion): New section.
5827 (Completion improvements): New section.
5828 Mention that you can abbreviate "unlimited".
5829
6206060d
PA
58302019-06-13 Pedro Alves <palves@redhat.com>
5831
5832 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5833 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5834 * unittests/cli-utils-selftests.c (test_parse_flags)
5835 (test_parse_flags_qcs): Delete.
5836 (test_cli_utils): Don't call deleted functions.
5837
6665660a
PA
58382019-06-13 Pedro Alves <palves@redhat.com>
5839
5840 * thread.c: Include "cli/cli-option.h".
5841 (tp_array_compar_ascending): Global.
5842 (tp_array_compar): Delete function.
5843 (tp_array_compar_ascending, tp_array_compar_descending): New
5844 functions.
5845 (ascending_option_def, qcs_flag_option_def)
5846 (thr_qcs_flags_option_defs)
5847 (make_thread_apply_all_options_def_group)
5848 (make_thread_apply_options_def_group): New.
5849 (thread_apply_all_command): Use gdb::option::process_options.
5850 (thread_apply_command_completer)
5851 (thread_apply_all_command_completer): New.
5852 (thread_apply_command): Use gdb::option::process_options.
5853 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5854 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5855 to generate help text of "thread apply". Adjust "taas"'s help.
5856 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5857 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5858
f7e13587
PA
58592019-06-13 Pedro Alves <palves@redhat.com>
5860
5861 * thread.c (thread_apply_command): Check for invalid TID with
5862 isdigit instead of !isalpha.
5863
5d707134
PA
58642019-06-13 Pedro Alves <palves@redhat.com>
5865
5866 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5867 (validate_flags_qcs): New.
5868 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5869 (validate_flags_qcs): Declare.
5870 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5871 (make_frame_apply_options_def_group): New.
5872 (frame_apply_command_count): Process options with
5873 gdb::option::process_options.
5874 (frame_apply_completer): New.
5875 (frame_apply_level_completer, frame_apply_all_completer)
5876 (frame_apply_completer): New.
5877 (_initialize_stack): Update help of "frame apply", "frame apply
5878 level", "frame apply all" and "faas" to mention supported options
5879 and install command completers.
5880 * stack.h (frame_apply_all_completer): Declare.
5881 * thread.c: Include "stack.h".
5882 (tfaas_command): Add "--".
5883 (_initialize_thread): Update help "tfaas" to mention supported
5884 options and install command completer.
5885
272d4594
PA
58862019-06-13 Pedro Alves <palves@redhat.com>
5887
5888 * completer.c (complete_nested_command_line): New.
5889 (gdb_completion_word_break_characters_throw): Add assertion.
5890 * completer.h (complete_nested_command_line): Declare.
5891
90a1ef87
PA
58922019-06-13 Pedro Alves <palves@redhat.com>
5893
5894 * stack.c (parse_backtrace_qualifiers): New.
5895 (backtrace_command): Use it.
5896 (backtrace_command_completer): Complete on qualifiers.
5897
d4c16835
PA
58982019-06-13 Pedro Alves <palves@redhat.com>
5899
5900 * frame.c: Include "cli/cli-option.h.
5901 (user_set_backtrace_options): New.
5902 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5903 Delete.
5904 (get_prev_frame): Adjust.
5905 (boolean_option_def, uinteger_option_def)
5906 (set_backtrace_option_defs): New.
5907 (_initialize_frame): Adjust and use
5908 gdb::option::add_setshow_cmds_for_options to install "set
5909 backtrace past-main" and "set backtrace past-entry".
5910 * frame.h: Include "cli/cli-option.h".
5911 (struct frame_print_options): Forward declare.
5912 (print_frame_arguments_all, print_frame_arguments_scalars)
5913 (print_frame_arguments_none): Declare.
5914 (print_entry_values): Delete declaration.
5915 (struct frame_print_options, user_frame_print_options): New.
5916 (struct set_backtrace_options): New.
5917 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5918 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5919 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5920 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5921 (list_args_or_locals): Add frame_print_options parameter.
5922 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5923 * python/py-framefilter.c (enumerate_args): Pass down
5924 USER_FRAME_PRINT_OPTIONS.
5925 * stack.c: Include "cli/cli-option.h".
5926 (print_frame_arguments_all, print_frame_arguments_scalars)
5927 (print_frame_arguments_none): Declare.
5928 (print_raw_frame_arguments, print_entry_values): Delete.
5929 (user_frame_print_options): New.
5930 (boolean_option_def, enum_option_def, frame_print_option_defs):
5931 New.
5932 (struct backtrace_cmd_options): New.
5933 (bt_flag_option_def): New.
5934 (backtrace_command_option_defs): New.
5935 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5936 (print_frame_arg, read_frame_arg, print_frame_args)
5937 (print_frame_info, print_frame): Add frame_print_options parameter
5938 and use it.
5939 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5940 (backtrace_command_1): Add frame_print_options and
5941 backtrace_cmd_options parameters and use them.
5942 (make_backtrace_options_def_group): New.
5943 (backtrace_command): Process command options with
5944 gdb::option::process_options.
5945 (backtrace_command_completer): New.
5946 (_initialize_stack): Extend "backtrace"'s help to mention
5947 supported options. Install completer for "backtrace".
5948 Install some settings commands with add_setshow_cmds_for_options.
5949
2daf894e
PA
59502019-06-13 Pedro Alves <palves@redhat.com>
5951
5952 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5953 and that "set/show print raw frame-arguments" are now deprecated.
5954
5955 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5956 command.
5957 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5958 * stack.c (_initialize_stack): Install "set/show print
5959 raw-frame-arguments", and deprecate "set/show print raw
5960 frame-arguments".
5961 * valprint.c (_initialize_valprint): Deprecate "set/show print
5962 raw".
5963
e6ed716c
PA
59642019-06-13 Pedro Alves <palves@redhat.com>
5965
5966 * compile/compile.c (struct compile_options): New.
5967 (compile_flag_option_def, compile_command_option_defs)
5968 (make_compile_options_def_group): New.
5969 (compile_file_command): Handle options with
5970 gdb::option::process_options.
5971 (compile_file_command_completer): New function.
5972 (compile_code_command): Handle options with
5973 gdb::option::process_options.
5974 (compile_code_command_completer): New function.
5975 (_initialize_compiler): Install completers for "compile code" and
5976 "compile file". Mention available options in "compile code" and
5977 "compile code"'s help.
5978 * completer.c (advance_to_completion_word): New, factored out from
5979 ...
5980 (advance_to_expression_complete_word_point): ... this.
5981 (advance_to_filename_complete_word_point): New.
5982 * completer.h (advance_to_filename_complete_word_point): New
5983 declaration.
5984
7d8062de
PA
59852019-06-13 Pedro Alves <palves@redhat.com>
5986
5987 * compile/compile.c: Include "cli/cli-option.h".
5988 (compile_print_value): Scope data pointer is now a
5989 value_print_options pointer; adjust.
5990 (compile_print_command): Process options. Scope data pointer is
5991 now a value_print_options pointer; adjust.
5992 (_initialize_compile): Update "compile print"'s help to include
5993 supported options. Install a completer for "compile print".
5994 * cp-valprint.c (show_vtblprint, show_objectprint)
5995 (show_static_field_print): Delete.
5996 (_initialize_cp_valprint): Don't install "set print
5997 static-members", "set print vtbl", "set print object" here.
5998 * printcmd.c: Include "cli/cli-option.h" and
5999 "common/gdb_optional.h".
6000 (print_command_parse_format): Rework to fill in a
6001 value_print_options instead of a format_data.
6002 (print_value): Change parameter type from format_data pointer to
6003 value_print_options reference. Adjust.
6004 (print_command_1): Process options. Adjust to pass down a
6005 value_print_options.
6006 (print_command_completer): New.
6007 (_initialize_printcmd): Install print_command_completer as
6008 handle_brkchars completer for the "print" command. Update
6009 "print"'s help to include supported options.
6010 * valprint.c: Include "cli/cli-option.h".
6011 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6012 here from cp-valprint.c.
6013 (boolean_option_def, uinteger_option_def)
6014 (value_print_option_defs, make_value_print_options_def_group):
6015 New. Use gdb::option::add_setshow_cmds_for_options to install
6016 "set print elements", "set print null-stop", "set print repeats",
6017 "set print pretty", "set print union", "set print array", "set
6018 print address", "set print symbol", "set print array-indexes".
6019 * valprint.h: Include <string> and "cli/cli-option.h".
6020 (make_value_print_options_def_group): Declare.
6021 (print_value): Change parameter type from format_data pointer to
6022 value_print_options reference.
6023 (print_command_completer): Declare.
6024
9d0faba9
PA
60252019-06-13 Pedro Alves <palves@redhat.com>
6026
6027 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6028 (COMMON_SFILES): Add maint-test-settings.c.
6029 * cli/cli-decode.c (boolean_enums): New global, factored out from
6030 ...
6031 (add_setshow_boolean_cmd): ... here.
6032 * cli/cli-decode.h (boolean_enums): Declare.
6033 * cli/cli-option.c: New file.
6034 * cli/cli-option.h: New file.
6035 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6036 factored out from ...
6037 (parse_cli_boolean_value(const char *)): ... this.
6038 (is_unlimited_literal): Change parameter type to pointer to
6039 pointer. Adjust and advance ARG pointer.
6040 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6041 (parse_cli_var_enum): New, factored out from ...
6042 (do_set_command): ... this. Adjust.
6043 * cli/cli-setshow.h (parse_cli_boolean_value)
6044 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6045 (parse_cli_var_enum): Declare.
6046 * cli/cli-utils.c: Include "cli/cli-option.h".
6047 (get_ulongest): New.
6048 * cli/cli-utils.h (get_ulongest): Declare.
6049 (check_for_argument): New overloads.
6050 * maint-test-options.c: New file.
6051
2c722807
PA
60522019-06-13 Pedro Alves <palves@redhat.com>
6053
6054 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6055 parse a range if "-" is at the end of the string.
6056
dee7b4c8
PA
60572019-06-13 Pedro Alves <palves@redhat.com>
6058
6059 * cli/cli-setshow.c (parse_auto_binary_operation)
6060 (parse_cli_boolean_value): Don't allow "o".
6061
dca0f6c0
PA
60622019-06-13 Pedro Alves <palves@redhat.com>
6063
6064 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6065 * NEWS: Mention maint test-settings KIND.
6066 * maint-test-settings.c: New file.
6067
597bf39d
PA
60682019-06-13 Pedro Alves <palves@redhat.com>
6069
6070 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6071 completer.
6072 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6073 "set" completers.
6074
48c410fb
PA
60752019-06-13 Pedro Alves <palves@redhat.com>
6076
6077 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6078 after item.
6079
93bcb043
PA
60802019-06-13 Pedro Alves <palves@redhat.com>
6081
6082 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6083
cbba3ecd
PA
60842019-06-13 Pedro Alves <palves@redhat.com>
6085
6086 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6087 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6088 call.
6089 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6090 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6091 calls.
6092 (check_for_argument): Skip spaces after argument.
6093
b9a3f842
PA
60942019-06-13 Pedro Alves <palves@redhat.com>
6095
6096 * thread.c (thread_apply_command): Adjust TID parsing.
6097 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6098 detected before end of string.
6099 (tid_is_in_list): Error out if LIST is invalid.
6100
3844e605
PA
61012019-06-13 Pedro Alves <palves@redhat.com>
6102
6103 * completer.c (complete_line_internal_1): Rewind completion word
6104 point.
6105 (completion_tracker::advance_custom_word_point_by): Change
6106 parameter type to int.
6107 * completer.h (completion_tracker::advance_custom_word_point_by):
6108 Likewise.
6109
00b56dbe
PA
61102019-06-13 Pedro Alves <palves@redhat.com>
6111
6112 * completer.c (advance_to_completion_word): Handle delimiters.
6113
d106773e
PA
61142019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6115
6116 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6117
08f10e02
TT
61182019-06-11 Tom Tromey <tom@tromey.com>
6119
6120 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6121 (xmalloc_failed): Move to alloc.c.
6122 * alloc.c: New file.
6123 * Makefile.in (COMMON_SFILES): Add alloc.c.
6124
1c7fe951
TT
61252019-06-11 Tom Tromey <tom@tromey.com>
6126
6127 * nat/linux-waitpid.c: Don't include server.h.
6128 (linux_debug): Remove.
6129 (my_waitpid): Update.
6130
89549d7f
TT
61312019-06-11 Tom Tromey <tromey@adacore.com>
6132
6133 * infcall.c (_initialize_infcall): Remove trailing newline from
6134 help.
6135 * user-regs.c (_initialize_user_regs): Remove trailing newline
6136 from help.
6137 * typeprint.c (_initialize_typeprint): Remove trailing newline
6138 from help.
6139 * reverse.c (_initialize_reverse): Remove trailing newlines from
6140 help.
6141 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6142 from help.
6143 * language.c (add_set_language_command): Remove trailing newline
6144 from help.
6145 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6146 help.
6147 * disasm.c (_initialize_disasm): Remove trailing newline from
6148 help.
6149 * top.c (init_main): Remove trailing newline from help.
6150 * interps.c (_initialize_interpreter): Remove trailing newline
6151 from help.
6152 * btrace.c (_initialize_btrace): Remove trailing newlines from
6153 help.
6154 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6155 from help.
6156 * python/python.c (_initialize_python): Remove trailing newline
6157 from help.
6158 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6159 help.
6160 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6161 from help. Reformat some text.
6162 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6163 from help.
6164 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6165 newline from help.
6166
86108c13
TT
61672019-06-11 Tom Tromey <tromey@adacore.com>
6168
6169 * darwin-nat.c (darwin_decode_exception_message)
6170 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6171
a7067863
AB
61722019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6173
6174 * valops.c (value_slice): Check for not allocated or not
6175 associated values.
6176
9ab08412
TV
61772019-06-10 Tom de Vries <tdevries@suse.de>
6178
6179 PR gdb/24618
6180 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6181 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6182 invalid.
6183
f19e22e9
TV
61842019-06-10 Tom de Vries <tdevries@suse.de>
6185
6186 PR gdb/24611
6187 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6188 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6189
e99f9db0
TV
61902019-06-10 Tom de Vries <tdevries@suse.de>
6191
6192 PR symtab/24545
6193 * symtab.c (struct demangled_name_entry): Add language field.
6194 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6195 static minimal symbol". Set and use language field.
6196
9bf7038b
TT
61972019-06-10 Tom Tromey <tromey@adacore.com>
6198
6199 * ada-lang.c (_initialize_ada_language): Update help text.
6200
422186a9
TT
62012019-06-10 Tom Tromey <tromey@adacore.com>
6202
6203 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6204 with a newline.
6205 * guile/guile.c (handle_boot_error): Don't end warning with a
6206 newline.
6207 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6208 warning with a newline.
6209 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6210 newline.
6211 (s12z_frame_cache): Likewise.
6212 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6213 a newline.
6214 * solib-svr4.c (disable_probes_interface): Don't end warning with
6215 a newline.
6216 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6217 newline.
6218 * python/python.c (do_finish_initialization): Don't end warning
6219 with a newline.
6220
25ce02ee
TT
62212019-06-10 Tom Tromey <tom@tromey.com>
6222
6223 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6224 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6225 gdbpy_enter.
6226
caa429d8
TT
62272019-06-10 Tom Tromey <tromey@adacore.com>
6228
6229 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6230 data.
6231 (elf_new_init): Don't call stabsread_new_init.
6232 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6233 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6234 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6235
81873cc8
TV
62362019-06-10 Tom de Vries <tdevries@suse.de>
6237
6238 PR symtab/16264
6239 PR symtab/24517
6240 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6241
4fa0265e
РИ
62422019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6243
6244 * source.c (find_and_open_source): Also rewrite relative file
6245 names.
6246
1a3da2cd
AB
62472019-04-26 Amos Bird <amosbird@gmail.com>
6248
6249 * annotate.c (annotate_thread_exited): Add "thread-exited"
6250 annotation.
6251
3847a7bf
TT
62522019-06-06 Tom Tromey <tromey@adacore.com>
6253
6254 * maint.h (class scoped_command_stats): Use
6255 DISABLE_COPY_AND_ASSIGN.
6256 <print_time>: New method.
6257 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6258 print_time.
6259 (scoped_command_stats::print_time): New method.
6260
312617a3
AB
62612019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6262
6263 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6264 instructions of lengths 6 or 8 bytes.
6265
b02f78f9
PA
62662019-06-04 Pedro Alves <palves@redhat.com>
6267
6268 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6269
6270 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6271 * breakpoint.c (condition_completer): Likewise.
6272 * cli/cli-dump.c (scan_expression): Likewise.
6273 * common/filestuff.c (mkdir_recursive): Likewise.
6274 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6275 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6276 (gdb_abspath): Likewise.
6277 * compile/compile-cplus-types.c
6278 (compile_cplus_instance::decl_name): Likewise.
6279 * completer.c (complete_explicit_location):
6280 (signal_completer, reg_or_group_completer_1): Likewise.
6281 * cp-support.c (cp_remove_params_if_any): Likewise.
6282 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6283 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6284 * infcmd.c (strip_bg_char): Likewise.
6285 * linespec.c (copy_token_string): Likewise.
6286 * mi/mi-main.c (output_cores): Likewise.
6287 * psymtab.c (psymtab_search_name):
6288 * symfile.c (test_set_ext_lang_command): Likewise.
6289 * target.c (target_fileio_read_stralloc): Likewise.
6290 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6291 * value.c (complete_internalvar): Likewise.
6292
e1f2e1a2
CB
62932019-06-04 Christian Biesinger <cbiesinger@google.com>
6294
6295 Add objfile property to gdb.Type.
d3238f7d
PA
6296 * NEWS: Mention Python API addition.
6297 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 6298
e664d728
PW
62992019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6300
6301 * NEWS: Mention the new set|show style [title|highlight].
6302 Mention changes to "show style", "help" and "apropos".
6303
66d8c862
PW
63042019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6305
6306 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6307 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
6308 instead of print_help_for_command.
6309 (print_doc_of_command): New function.
6310 (help_list): Add 'apropos -v word' suggestion.
6311 (print_help_for_command): Style the command name using title style.
6312 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6313 (_initialize_cli_cmds): Describe -v in apropos_command help.
6314
9303eb2f
PW
63152019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6316
6317 * cli/cli-style.h (cli_style_option): Add name in constructor,
6318 add m_name class member, add constructor with intensity,
6319 add name class function.
6320 (cli_style_option::add_setshow_commands): Remove name argument.
6321 (highlight_style, title_style): New styles.
6322 * cli/cli-style.c (do_show): New function that shows a style
6323 characteristic styling the style name with itself.
6324 (set_style_name): New function.
6325 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6326 Update all callers according to the changes in cli/cli-style.h.
6327 * utils.h (fputs_highlighted): New function.
6328 * utils.c (fputs_highlighted): Likewise.
6329
e2c52041
PW
63302019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6331
6332 * NEWS: Mention new pipe command and new convenience variables.
6333
947d3946
PW
63342019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6335
6336 * cli/cli-cmds.c (pipe_command): New function.
6337 (_initialize_cli_cmds): Call add_com for pipe_command.
6338 Define | as an alias for pipe.
6339 (exit_status_set_internal_vars): New function.
6340 (shell_escape): Call exit_status_set_internal_vars.
6341 cli/cli-decode.c (find_command_name_length): Recognize | as
6342 a single character command.
6343
b8fd0918
PW
63442019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6345
6346 * gdbcmd.h (execute_command_to_ui_file): New declaration.
6347 top.c (execute_command_to_ui_file): New function, mostly a copy
6348 of execute_command_to_string.
6349 (execute_command_to_string): Implement by calling
6350 execute_command_to_ui_file.
6351
68bb5386
PW
63522019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6353
6354 * top.h (saved_command_line): Remove declaration.
6355 * top.c (previous_saved_command_line, previous_repeat_arguments):
6356 New variables.
6357 (saved_command_line): Make static, define together with other
6358 'repeat variables'.
6359 (dont_repeat): Clear repeat_arguments.
6360 (repeat_previous, get_saved_command_line, save_command_line):
6361 New functions.
6362 (gdb_init): Initialize saved_command_line
6363 and previous_saved_command_line.
6364 * main.c (captured_main_1): Remove saved_command_line initialization.
6365 * event-top.c (handle_line_of_input): Update to use
6366 the new 'repeat' related functions instead of direct access to
6367 saved_command_line.
6368 * command.h (repeat_previous, get_saved_command_line,
6369 save_command_line): New declarations.
6370 (dont_repeat): Add comment.
6371
bfcdb852
TT
63722019-05-30 Tom Tromey <tromey@adacore.com>
6373
6374 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6375 Fix comment.
6376 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6377
0ef209f2
JV
63782019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6379
6380 PR cli/24587
6381 * completer.c (complete): Initialize variable word.
6382
955b06fa
SDJ
63832019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6384
6385 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6386 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6387 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6388 'body' is NULL to the outter 'if', protecting the '!is_define'
6389 situation as well.
6390
fa9c3fa0
TT
63912019-05-29 Tom Tromey <tromey@adacore.com>
6392
6393 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6394 (dwarf_unknown): New function.
6395 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6396 (dwarf_type_encoding_name): Use dwarf_unknown.
6397
4330d61d
TT
63982019-05-29 Tom Tromey <tromey@adacore.com>
6399
6400 PR c++/20020:
6401 * cp-valprint.c (cp_print_value_fields): Call
6402 cp_print_static_field inside "try".
6403
33a6bc35
TT
64042019-05-29 Tom Tromey <tromey@adacore.com>
6405
6406 * inflow.c (struct terminal_info): Add default operator=.
6407 * configure: Rebuild.
6408 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6409 -Wdeprecated-copy-dtor, -Wredundant-move.
6410
000439d5
TT
64112019-05-29 Tom Tromey <tromey@adacore.com>
6412
6413 * NEWS: Add entry.
6414 * infcmd.c (print_return_value_1): Handle finish_print
6415 option.
6416 (show_print_finish): New function.
6417 (_initialize_infcmd): Add "set/show print finish" commands.
6418 * valprint.c (user_print_options): Initialize new member.
6419 * valprint.h (struct value_print_options) <finish_print>: New
6420 member.
6421
c0e70c62
TT
64222019-05-28 Tom Tromey <tromey@adacore.com>
6423
6424 * ada-lang.c (ada_remove_Xbn_suffix)
6425 (find_old_style_renaming_symbol)
6426 (parse_old_style_renaming): Remove.
6427 (ada_find_renaming_symbol): Don't call
6428 find_old_style_renaming_symbol.
6429 (ada_is_renaming_symbol): Rename from
6430 ada_find_renaming_symbol. Remove "block" parameter. Return
6431 bool. Now static.
6432 (ada_read_var_value): Update and simplify.
6433 * ada-exp.y (write_var_or_type): Remove old code.
6434
766f8836
AH
64352019-05-28 Alan Hayward <alan.hayward@arm.com>
6436
6437 * event-top.c: Remove include comment.
6438 * inflow.c (class scoped_ignore_sigttou): Move from here...
6439 * inflow.h (class scoped_ignore_sigttou): ...to here.
6440 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6441 * top.c: Remove include comment.
6442
eb41253a
TT
64432019-05-27 Tom Tromey <tom@tromey.com>
6444
6445 * NEWS: Fix typo.
6446
4ca51187
TT
64472019-05-22 Tom Tromey <tromey@adacore.com>
6448
6449 * target.c (target_follow_exec): Constify parameter.
6450 * target-delegates.c: Rebuild.
6451 * remote.c (remote_target::follow_exec): Constify parameter.
6452 * infrun.c (follow_exec): Constify parameter.
6453 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6454 (target_follow_exec): Likewise.
6455
8fca4da0
AH
64562019-05-22 Alan Hayward <alan.hayward@arm.com>
6457
6458 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6459 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6460
b7060614
AH
64612019-05-22 Alan Hayward <alan.hayward@arm.com>
6462
6463 * NEWS: Add debugredirect and testsuite sections.
6464
0a5954bd
SC
64652019-05-22 Simon Cook <simon.cook@embecosm.com>
6466
6467 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6468 target descriptions using exclusively floating point register name
6469 aliases.
6470
dc42e902
AB
64712019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6472
6473 PR gdb/18644:
6474 * f-lang.c (build_fortran_types): Handle the case where
6475 gdbarch_floatformat_for_type returns a nullptr.
6476
fb7806c7
TV
64772019-05-21 Tom de Vries <tdevries@suse.de>
6478
6479 PR cli/24587
6480 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6481
34d11c68
AB
64822019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6483
6484 PR gdb/18644:
6485 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6486 16-byte floats.
6487 * i386-tdep.c (i386_floatformat_for_type): Use
6488 floatformats_ia64_quad for the 16-byte floating point component
6489 within a fortran 32-byte complex number.
6490
122cf0f2
AB
64912019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6492
6493 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6494 delete default constructor.
6495 (find_partial_die): Update to return const struct.
6496 (partial_die_parent_scope): Move variable declaration into scope
6497 of its use and change its type to auto.
6498 (guess_partial_die_structure_name): Likewise.
6499 (partial_die_info::fixup): Likewise.
6500
33d0e35a
TT
65012019-05-17 Tom Tromey <tromey@adacore.com>
6502
6503 * source.c (find_and_open_source): Remove cast.
6504
a45575b0
TT
65052019-05-17 Tom Tromey <tromey@adacore.com>
6506
6507 * annotate.c (annotate_source): Make "filename" const.
6508 * annotate.h (annotate_source): Use const.
6509
81f47ac2
AH
65102019-05-17 Alan Hayward <alan.hayward@arm.com>
6511
6512 * disasm.c (set_disassembler_options): Send errors to stderr.
6513
ca1285d1
AH
65142019-05-17 Alan Hayward <alan.hayward@arm.com>
6515
6516 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6517 (cli_interp_base::set_logging): Check debug_redirect.
6518 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6519 * cli/cli-logging.c (debug_redirect): Add static variable.
6520 (pop_output_files): Add default param.
6521 (handle_redirections): Print debug setting.
6522 (show_logging_command): Likewise.
6523 (_initialize_cli_logging): Add debugredirect command.
6524 * interps.c (current_interp_set_logging): Add debug_redirect
6525 parameter.
6526 * interps.h (set_logging): Add debug_redirect parameter.
6527 (current_interp_set_logging): Likewise.
6528 * mi/mi-common.h: Likewise.
6529 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6530
65312019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
6532 Tom Tromey <tromey@adacore.com>
6533
6534 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6535 directly.
6536 * cli/cli-interp.h (make_logging_output): Remove declaration.
6537 * cli/cli-logging.c (make_logging_output): Remove function.
6538 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6539 directly.
6540 * ui-file.c (tee_file::tee_file): Remove bools.
6541 (tee_file::~tee_file): Remove deletes.
6542 * ui-file.h (tee_file): Remove bools.
6543
26648588
JV
65442019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6545
6546 * mi/mi-cmds.h (mi_cmd_complete): New function.
6547 * mi/mi-main.c (mi_cmd_complete): Likewise.
6548 * mi/mi-cmds.c: Define new MI command -complete.
6549 * NEWS: Mention new -complete command.
6550
6e035501
JV
65512019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6552
6553 * completer.h (complete): New function.
6554 * completer.c (complete): Likewise.
6555 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6556 function defined in completer.h.
6557
7d0e2ece
JV
65582019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6559
e79be6e5 6560 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 6561
fb816e8b
TV
65622019-05-17 Tom de Vries <tdevries@suse.de>
6563
6564 PR gdb/24094
6565 * dwarf2read.c (struct cu_partial_die_info): New struct.
6566 (find_partial_die): Return cu_partial_die_info.
6567 (partial_die_parent_scope, guess_partial_die_structure_name)
6568 (partial_die_info::fixup): Handle new return type of find_partial_die.
6569
677052f2
SDJ
65702019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6571
a1726c38 6572 PR breakpoints/24541
677052f2
SDJ
6573 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6574 "std::string", simplifying the algorithm.
6575
f3da9116
SDJ
65762019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6577
6578 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6579 (stap_static_probe_ops::get_probes): Likewise.
6580
f1bb75ab
SDJ
65812019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6582
6583 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6584 '-')" and "else if".
6585 (stap_parse_single_operand): Join checks for
6586 "gdbarch_stap_parse_special_token_p" and
6587 "gdbarch_stap_parse_special_token" in the same "if" statement.
6588 Invert check when verifying for operation on register
6589 displacement.
6590
3ca58cde
SDJ
65912019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6592
6593 * stap-probe.c (stap_get_opcode): Update comment.
6594 (stap_get_expected_argument_type): Likewise.
6595 (handle_stap_probe): Likewise.
6596
af2d9bee
SDJ
65972019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6598
6599 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6600 return type to 'bool'. Adjust comment. Use 'bool' when
6601 appropriate.
6602 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6603 * stap-probe.c (stap_parse_argument_1): Likewise.
6604 (stap_is_operator): Likewise.
6605 (stap_is_generic_prefix): Likewise.
6606 (stap_is_register_prefix): Likewise.
6607 (stap_is_register_indirection_prefix): Likewise.
6608 (stap_is_integer_prefix): Likewise.
6609 (stap_generic_check_suffix): Likewise.
6610 (stap_check_integer_suffix): Likewise.
6611 (stap_check_register_suffix): Likewise.
6612 (stap_check_register_indirection_suffix): Likewise.
6613 (stap_parse_register_operand): Likewise.
6614 (stap_parse_single_operand): Likewise.
6615 (stap_parse_argument_1): Likewise.
6616 (stap_probe::get_argument_count): Likewise.
6617 (stap_is_operator): Likewise.
6618
61c9c421
TT
66192019-05-16 Tom Tromey <tromey@adacore.com>
6620
6621 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6622 keyword to foreach.
6623
9ddc1af1
SM
66242019-05-15 Simon Marchi <simon.marchi@efficios.com>
6625
6626 * linux-thread-db.c (try_thread_db_load_1): Change return type
6627 to bool.
6628 (try_thread_db_load): Likewise.
6629 (try_thread_db_load_from_pdir_1): Likewise.
6630 (try_thread_db_load_from_pdir): Likewise.
6631 (try_thread_db_load_from_sdir): Likewise.
6632 (try_thread_db_load_from_dir): Likewise.
6633 (thread_db_load_search): Likewise.
6634 (has_libpthread): Likewise.
6635 (thread_db_load): Likewise.
6636
7bede828
SDJ
66372019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6638
6639 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6640 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6641 NULL, and complain/return if that's the case.
6642
c5358db4
JD
66432019-05-15 John Darrington <john@darrington.wattle.id.au>
6644
6645 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6646 (advance, posn, abstract_read_memory): New functions.
6647 [struct mem_read_abstraction]: New struct.
6648 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6649
c408a94f
TT
66502019-05-14 Tom Tromey <tromey@adacore.com>
6651
6652 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6653 value is not lval_memory.
6654
e7bd7fba
TT
66552019-05-14 Tom Tromey <tromey@adacore.com>
6656
6657 * solib.c (info_sharedlibrary_command): Style the file name.
6658
a6d0f249
AH
66592019-05-14 Alan Hayward <alan.hayward@arm.com>
6660
6661 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6662 (aarch64_vnv_type): Likewise.
6663 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6664 * common/tdesc.c: Likewise.
6665 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6666 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6667 * features/aarch64-fpu.xml: Add ieee half view.
6668 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6669 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6670 * gdbtypes.h (struct builtin_type): Likewise.
6671 (struct objfile_type): Likewise.
6672
66b8bb74
SM
66732019-05-12 Paul Naert <paul.naert@polymtl.ca>
6674
6675 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6676 typo.
6677 * location.h (string_to_event_location): Likewise.
6678
21c219fd
JB
66792019-05-11 Joel Brobecker <brobecker@adacore.com>
6680
6681 GDB 8.3 released.
6682
13674803
SM
66832019-05-10 Simon Marchi <simon.marchi@efficios.com>
6684
6685 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6686 New variable declaration.
6687 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6688 New variable.
6689 (print_one_breakpoint): Use ui_out::test_flags and new global
6690 variable to compute use_fixed_output.
6691 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6692 Remove.
6693 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6694 (mi_multi_location_breakpoint_output_fixed): Remove.
6695 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6696 new variable.
6697 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6698 fix_multi_location_breakpoint_output flag if version >= 3.
6699 * ui-out.h (enum ui_out_flag)
6700 <fix_multi_location_breakpoint_output>: New enumerator.
6701
a9eac7f9
SM
67022019-05-10 Simon Marchi <simon.marchi@efficios.com>
6703
6704 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6705
71bed2db
TT
67062019-05-10 Tom Tromey <tromey@adacore.com>
6707
6708 * ada-lang.c (catch_ada_completer): New function.
6709 (_initialize_ada_language): Use it.
6710
24c54127
TT
67112019-05-10 Tom Tromey <tromey@adacore.com>
6712
6713 * thread.c (print_thread_info): Make "requested_threads" const.
6714 * gdbthread.h (print_thread_info): Make "requested_threads"
6715 const.
6716 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6717 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6718
7a102139
TT
67192019-05-08 Tom Tromey <tom@tromey.com>
6720
6721 * gdbtypes.c (objfile_type_data): Change type.
6722 (objfile_type, _initialize_gdbtypes): Update.
6723
924d79e2
TT
67242019-05-08 Tom Tromey <tom@tromey.com>
6725
6726 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6727 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6728 (_initialize_dwarf2_frame): Update.
6729
4c58e337
TT
67302019-05-08 Tom Tromey <tom@tromey.com>
6731
6732 * objc-lang.c (objc_objfile_data): Change type.
6733 (find_methods): Update.
6734 (_initialize_objc_lang): Remove.
6735
d772d2ab
TT
67362019-05-08 Tom Tromey <tom@tromey.com>
6737
6738 * stabsread.c (rs6000_builtin_type_data): Change type.
6739 (rs6000_builtin_type, _initialize_stabsread): Update.
6740
d11d83f4
TT
67412019-05-08 Tom Tromey <tom@tromey.com>
6742
6743 * mips-tdep.c (mips_pdr_data): Remove.
6744 (_initialize_mips_tdep): Update.
6745
9a73f0ad
TT
67462019-05-08 Tom Tromey <tom@tromey.com>
6747
6748 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6749 (hppa_init_objfile_priv_data, read_unwind_info)
6750 (find_unwind_entry, _initialize_hppa_tdep): Update.
6751
8127a2fa
TT
67522019-05-08 Tom Tromey <tom@tromey.com>
6753
6754 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6755 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6756 on obstack.
6757 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6758
91d3055d
TT
67592019-05-08 Tom Tromey <tom@tromey.com>
6760
6761 * mdebugread.c (basic_type_data): Change type.
6762 (basic_type, _initialize_mdebugread): Update.
6763
31930bd3
TT
67642019-05-08 Tom Tromey <tom@tromey.com>
6765
6766 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6767
bdb3ed9e
TT
67682019-05-08 Tom Tromey <tom@tromey.com>
6769
6770 * nto-tdep.c (nto_inferior_data_reg): Change type.
6771 (nto_inferior_data): Update.
6772 (nto_inferior_data_cleanup, nto_new_inferior_data)
6773 (_initialize_nto_tdep): Remove.
6774 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6775
f37b313d
TT
67762019-05-08 Tom Tromey <tom@tromey.com>
6777
6778 * ada-lang.c (struct ada_inferior_data): Add initializers.
6779 (ada_inferior_data): Change type.
6780 (ada_inferior_data_cleanup): Remove.
6781 (get_ada_inferior_data, ada_inferior_exit)
6782 (struct ada_pspace_data): Add initializers, destructor.
6783 (ada_pspace_data_handle): Change type.
6784 (get_ada_pspace_data): Update.
6785 (ada_pspace_data_cleanup): Remove.
6786
24699405
TT
67872019-05-08 Tom Tromey <tom@tromey.com>
6788
6789 * coffread.c (struct coff_symfile_info): Add initializers.
6790 (coff_objfile_data_key): Move lower. Change type.
6791 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6792 Update.
6793 (coff_free_info): Remove.
6794
d4e05d2f
TT
67952019-05-08 Tom Tromey <tom@tromey.com>
6796
6797 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6798 (fbsd_pspace_data_handle): Move lower. Change type.
6799 (get_fbsd_pspace_data): Update.
6800 (fbsd_pspace_data_cleanup): Remove.
6801 (_initialize_fbsd_tdep): Update.
6802
14ef6690
TT
68032019-05-08 Tom Tromey <tom@tromey.com>
6804
6805 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6806 (get_ada_tasks_pspace_data): Update.
6807 (ada_tasks_pspace_data_cleanup): Remove.
6808 (_initialize_tasks): Update.
6809 (ada_tasks_inferior_data_handle): Change type.
6810 (get_ada_tasks_inferior_data): Update.
6811 (ada_tasks_inferior_data_cleanup): Remove.
6812 (struct ada_tasks_pspace_data): Add initializers.
6813
814cf43a
TT
68142019-05-08 Tom Tromey <tom@tromey.com>
6815
6816 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6817 * symfile-debug.c (debug_sym_get_probes): Change type.
6818 * stap-probe.c (handle_stap_probe):
6819 (stap_static_probe_ops::get_probes): Change type.
6820 * probe.h (class static_probe_ops) <get_probes>: Change type.
6821 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6822 (parse_probes_in_pspace): Update.
6823 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6824 Update.
6825 (any_static_probe_ops::get_probes): Change type.
6826 * elfread.c (elfread_data): New typedef.
6827 (probe_key): Change type.
6828 (elf_get_probes): Likewise. Update.
6829 (probe_key_free): Remove.
6830 (_initialize_elfread): Update.
6831 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6832 Change type.
6833 (dtrace_process_dof_probe, dtrace_process_dof)
6834 (dtrace_static_probe_ops::get_probe): Change type.
6835
02dc647e
TT
68362019-05-08 Tom Tromey <tom@tromey.com>
6837
6838 * xcoffread.c (struct xcoff_symfile_info): Rename from
6839 coff_symfile_info. Add initializers.
6840 (xcoff_objfile_data_key): Move lower. Change type.
6841 (XCOFF_DATA): Rewrite.
6842 (xcoff_free_info): Remove.
6843 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6844 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6845 (xcoff_initial_scan): Update.
6846
09232438
TT
68472019-05-08 Tom Tromey <tom@tromey.com>
6848
6849 * solib-svr4.c (struct svr4_info): Add initializers and
6850 destructor.
6851 <probes_table>: Now an htab_up.
6852 (solib_svr4_pspace_data): Change type.
6853 (free_probes_table): Simplify.
6854 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6855 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6856 (probes_table_remove_objfile_probes, register_solib_event_probe)
6857 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6858 (_initialize_svr4_solib): Update.
6859
7b4a314f
TT
68602019-05-08 Tom Tromey <tom@tromey.com>
6861
6862 * remote.c (remote_pspace_data): Change type.
6863 (remote_pspace_data_cleanup): Remove.
6864 (get_remote_exec_file, set_pspace_remote_exec_file)
6865 (_initialize_remote): Update.
6866
51d3063a
TT
68672019-05-08 Tom Tromey <tom@tromey.com>
6868
6869 * breakpoint.c (breakpoint_objfile_key): Change type.
6870 (get_breakpoint_objfile_data): Update.
6871 (free_breakpoint_objfile_data): Remove.
6872 (_initialize_breakpoint): Update.
6873
89fb8848
TT
68742019-05-08 Tom Tromey <tom@tromey.com>
6875
6876 * linux-tdep.c (struct linux_info): Add initializers.
6877 (linux_inferior_data): Move. Change type.
6878 (invalidate_linux_cache_inf): Update.
6879 (linux_inferior_data_cleanup): Remove.
6880 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6881
e9b89e2d
TT
68822019-05-08 Tom Tromey <tom@tromey.com>
6883
6884 * auxv.c (auxv_inferior_data): Move. Change type.
6885 (auxv_inferior_data_cleanup): Remove.
6886 (invalidate_auxv_cache_inf): Rewrite.
6887 (get_auxv_inferior_data, _initialize_auxv): Update.
6888
8c42777c
TT
68892019-05-08 Tom Tromey <tom@tromey.com>
6890
6891 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6892 (symfile_debug_objfile_data_key): Change type.
6893 (symfile_debug_installed, debug_qf_has_symbols)
6894 (debug_qf_find_last_source_symtab)
6895 (debug_qf_forget_cached_source_info)
6896 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6897 (debug_qf_print_stats, debug_qf_dump)
6898 (debug_qf_expand_symtabs_for_function)
6899 (debug_qf_expand_all_symtabs)
6900 (debug_qf_expand_symtabs_with_fullname)
6901 (debug_qf_map_matching_symbols)
6902 (debug_qf_expand_symtabs_matching)
6903 (debug_qf_find_pc_sect_compunit_symtab)
6904 (debug_qf_map_symbol_filenames)
6905 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6906 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6907 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6908 (debug_sym_read_linetable, debug_sym_relocate): Update.
6909 (symfile_debug_free_objfile): Remove.
6910 (install_symfile_debug_logging, _initialize_symfile_debug):
6911 Update.
6912
5bfd760d
TT
69132019-05-08 Tom Tromey <tom@tromey.com>
6914
6915 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6916 allocate_on_obstack.
6917 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6918 (get_dwarf2_per_objfile): Update.
6919 (set_dwarf2_per_objfile): Remove.
6920 (dwarf2_has_info, dwarf2_get_section_info): Update.
6921 (dwarf2_free_objfile): Remove.
6922 (_initialize_dwarf2_read): Update.
6923
e85e19b4
TT
69242019-05-08 Tom Tromey <tom@tromey.com>
6925
6926 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6927 initializers.
6928 <unsupported_script_warning_printed,
6929 script_not_found_warning_printed>: Now bool.
6930 (auto_load_pspace_data): Change type.
6931 (~auto_load_pspace_info): Rename from
6932 auto_load_pspace_data_cleanup.
6933 (get_auto_load_pspace_data, init_loaded_scripts_info)
6934 (clear_section_scripts, maybe_print_unsupported_script_warning)
6935 (maybe_print_script_not_found_warning, _initialize_auto_load):
6936 Update.
6937
f6aa7436
TT
69382019-05-08 Tom Tromey <tom@tromey.com>
6939
6940 * objfiles.c (objfile_pspace_info): Add destructor and
6941 initializers.
6942 (objfiles_pspace_data): Change type.
6943 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6944 (get_objfile_pspace_data): Update.
6945 (objfiles_bfd_data): Change type.
6946 (get_objfile_bfd_data): Update.
6947 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6948
6ae614f6
TT
69492019-05-08 Tom Tromey <tom@tromey.com>
6950
6951 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6952 Change type.
6953 (get_catch_syscall_inferior_data): Update.
6954 (catch_syscall_inferior_data_cleanup): Remove.
6955 (_initialize_break_catch_syscall): Update.
6956
6509b8eb
TT
69572019-05-08 Tom Tromey <tom@tromey.com>
6958
6959 * inflow.c (struct terminal_info): Add destructor and
6960 initializers.
6961 (inflow_inferior_data): Change type.
6962 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6963 (get_inflow_inferior_data, inflow_inferior_exit)
6964 (swap_terminal_info, _initialize_inflow): Update.
6965
35632941
TT
69662019-05-08 Tom Tromey <tom@tromey.com>
6967
6968 * target-dcache.c (target_dcache_cleanup): Remove.
6969 (target_dcache_aspace_key): Change type.
6970 (target_dcache_init_p, target_dcache_invalidate)
6971 (target_dcache_get, target_dcache_get_or_init)
6972 (_initialize_target_dcache): Update.
6973 * dcache.h (struct dcache_deleter): New.
6974
3017b94d
TT
69752019-05-08 Tom Tromey <tom@tromey.com>
6976
6977 * symtab.c (struct symbol_cache): Add destructor and
6978 initializers.
6979 (symbol_cache_key): Move. Change type.
6980 (make_symbol_cache, free_symbol_cache): Remove.
6981 (get_symbol_cache): Update.
6982 (symbol_cache_cleanup): Remove.
6983 (ALL_PSPACES, symbol_cache_flush)
6984 (maintenance_print_symbol_cache)
6985 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6986 Update.
6987
a32ad8c5
TT
69882019-05-08 Tom Tromey <tom@tromey.com>
6989
6990 * symtab.c (struct main_info): Add destructor and initializers.
6991 (main_progspace_key): Move. Change type.
6992 (get_main_info): Update.
6993 (main_info_cleanup): Remove.
6994 (_initialize_symtab): Update.
6995
5f6e90a0
TT
69962019-05-08 Tom Tromey <tom@tromey.com>
6997
6998 * registry.h (DECLARE_REGISTRY): Define the _key class.
6999
1bd0c6e4
AB
70002019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7001
7002 * NEWS: Merge two 'New commands' sections.
7003
2228ef77
XR
70042019-05-08 Joel Brobecker <brobecker@adacore.com>
7005
7006 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7007 parameter and use Ada language definition instead.
7008 (ada_val_print_ptr): Remove unused language parameter.
7009 (ada_val_print_num): Remove language parameter and use Ada language
7010 definition instead.
7011 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7012 parameter.
7013 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7014 parameter and use Ada language definition instead.
7015 (ada_val_print_1): Update all ada_val_print_xxx calls.
7016 Remove language parameter.
7017 (ada_val_print): Update ada_val_print_1 call.
7018
60fcc1c3
TT
70192019-05-08 Tom Tromey <tromey@adacore.com>
7020
7021 * remote.c (remote_hw_watchpoint_limit)
7022 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7023 Now static.
7024
ed2b7c17
TT
70252019-05-08 Tom Tromey <tromey@adacore.com>
7026
7027 * maint.c (_initialize_maint_cmds): Move initialization code to
7028 remote.c.
7029 (watchdog, show_watchdog): Move to remote.c.
7030 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7031 "watchdog" static.
7032 (_initialize_remote): Move initialization code from maint.c.
7033 * defs.h (watchdog): Don't declare.
7034
b0be6c91
TT
70352019-05-08 Tom Tromey <tromey@adacore.com>
7036
7037 * tui/tui-interp.c: Include main.h.
7038 * interps.c: Include main.h.
7039 * main.h (interpreter_p): Declare.
7040 * defs.h (interpreter_p): Don't declare.
7041
587ee17b
TT
70422019-05-08 Tom Tromey <tromey@adacore.com>
7043
7044 * dwarf2loc.c: Include dwarf2read.h.
7045 * defs.h (read_unsigned_leb128): Don't declare.
7046 * dwarf2read.h (read_unsigned_leb128): Declare.
7047
ca1df239
TT
70482019-05-08 Tom Tromey <tromey@adacore.com>
7049
7050 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7051 method.
7052
99f20f08
TT
70532019-05-08 Tom Tromey <tromey@adacore.com>
7054
7055 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7056 when no wrap column is set.
7057
80e55b13
TT
70582019-05-08 Tom Tromey <tromey@adacore.com>
7059
7060 * c-lang.c (c_get_string): Handle non-C-style arrays.
7061
9d3421af
TT
70622019-05-08 Tom Tromey <tromey@adacore.com>
7063
7064 * typeprint.c (print_offset_data::update): Print the bit offset,
7065 not the number of bits remaining.
7066
844333e2
TT
70672019-05-08 Tom Tromey <tromey@adacore.com>
7068
7069 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7070 padding at end of comment.
7071
988915ee
TT
70722019-05-08 Tom Tromey <tromey@adacore.com>
7073
7074 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7075 Compare main types.
7076
26bfd823
TT
70772019-05-06 Tom Tromey <tom@tromey.com>
7078
7079 * common/scoped_mmap.c: Include common-defs.h.
7080 * common/scoped_mmap.h: Don't include config.h.
7081
89055eaa
TT
70822019-05-04 Tom Tromey <tom@tromey.com>
7083
7084 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7085 (struct aarch64_call_info): Add initializers.
7086 <si>: Now a std::vector.
7087 (pass_on_stack, aarch64_push_dummy_call): Update.
7088
5da01df5
TT
70892019-05-04 Simon Marchi <simon.marchi@efficios.com>
7090 Tom Tromey <tom@tromey.com>
7091
7092 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7093 (ppc_threads): Now a std::vector. Now static.
7094 (hwdebug_find_thread_points_by_tid)
7095 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7096 Update.
7097
fbdf05a1
TT
70982019-05-04 Tom Tromey <tom@tromey.com>
7099
7100 * arc-tdep.c (arc_tdesc_init): Return bool.
7101
06d16ec9
TT
71022019-05-04 Tom Tromey <tom@tromey.com>
7103
7104 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7105 Use gdb_assert_not_reached.
7106
9c056022
TT
71072019-05-04 Tom Tromey <tom@tromey.com>
7108
7109 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7110 "false".
7111
fa9c2a59
TT
71122019-05-04 Tom Tromey <tom@tromey.com>
7113
7114 * arc-tdep.c (arc_tdesc_init): Use bool.
7115
e2eb806a
TT
71162019-05-04 Tom Tromey <tom@tromey.com>
7117
7118 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7119
6fe87677
TT
71202019-05-04 Tom Tromey <tom@tromey.com>
7121
7122 * cli/cli-cmds.c (valid_command_p): Return bool.
7123
7f008c9e
TT
71242019-05-04 Tom Tromey <tom@tromey.com>
7125
7126 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7127 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7128
b6484282
RT
71292019-05-04 Raul Tambre <raul@tambre.ee>
7130
7131 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7132 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7133 operator for comparison.
7134
af97b416
TT
71352019-05-04 Tom Tromey <tom@tromey.com>
7136
7137 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7138 (lookup_partial_symbol, print_partial_symbols)
7139 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7140 (psymbol_compare): Update.
7141 (add_psymbol_to_bcache): Clear the entire psymbol.
7142 (maintenance_check_psymtabs): Update.
7143 * psympriv.h (struct partial_symbol): Don't derive from
7144 general_symbol_info.
7145 <obj_section, unrelocated_address, address,
7146 set_unrelocated_address>: Update.
7147 <ginfo>: New member.
7148 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7149 (debug_names::write_psymbols): Update.
7150
9d6d4be8
TV
71512019-05-04 Tom de Vries <tdevries@suse.de>
7152
7153 * contrib/cc-with-tweaks.sh: Support -n arg.
7154
66452beb
PW
71552019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7156
7157 * corelow.c (core_target::detach): Ensure frame cache and
7158 register caches are cleared.
7159 inferior.c (exit_inferior_1): Likewise.
7160
bde09ab7
TT
71612019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7162 Tom Tromey <tom@tromey.com>
7163
7164 * dictionary.c (collate_pending_symbols_by_language): Remove
7165 "struct" from foreach.
7166 * symtab.c (lookup_global_symbol_from_objfile)
7167 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7168 foreach.
7169 * ser-tcp.c (net_open): Remove "struct" from foreach.
7170 * objfiles.c (objfile_relocate, objfile_rebase)
7171 (objfile_has_symbols): Remove "struct" from foreach.
7172 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7173 from foreach.
7174 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7175 foreach.
7176 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7177 "struct" from foreach.
7178 * ada-lang.c (create_excep_cond_exprs)
7179 (ada_exception_catchpoint_cond_string): Remove "struct" from
7180 foreach.
7181
222a8d25
TT
71822019-05-03 Tom Tromey <tromey@adacore.com>
7183
7184 * ada-exp.y (convert_char_literal): Check suffix of each
7185 enumerator.
7186
fcd60b84
DP
71872019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7188
7189 PR ada/21406:
7190 * ada-exp.y (yywrap): Don't define.
7191 * ada-lex.l (%option): Add noyywrap
7192 (yywrap): Remove.
7193
5f2459c2
EZ
71942019-05-03 Eli Zaretskii <eliz@gnu.org>
7195
353ea2d1
EZ
7196 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7197 _WIN32_WINNT to the XP level, unless already defined to a higher
7198 level.
7199
7200 * unittests/parse-connection-spec-selftests.c:
7201 * ser-tcp.c:
7202 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7203 override.
7204
5f2459c2
EZ
7205 * symfile.c (find_separate_debug_file): Remove colon from the
7206 drive spec of DOS/Windows file names of the target, so that the
7207 file name produced from DEBUGDIR and the target's directory will
7208 be valid on DOS/Windows systems.
7209
80062eb9
AB
72102019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7211
7212 * rust-lang.c (val_print_struct): Handle printing structures
7213 containing strings.
7214
b8c05e85
TT
72152019-05-02 Tom Tromey <tromey@adacore.com>
7216
7217 * valarith.c (_initialize_valarith): Remove.
7218
4504bbde
TT
72192019-05-01 Tom Tromey <tromey@adacore.com>
7220
7221 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7222 bitfields.
7223
d48e62f4
TT
72242019-05-01 Tom Tromey <tromey@adacore.com>
7225
7226 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7227 for big-endian copies.
7228
15f18d14
AT
72292019-04-30 Ali Tamur <tamur@google.com>
7230 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7231 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7232 (read_3_bytes): New function.
7233
ab4ee614
JB
72342019-04-30 Joel Brobecker <brobecker@adacore.com>
7235
7236 * windows-nat.c (main_thread_id): Delete.
7237 (handle_output_debug_string): Replace main_thread_id by
7238 current_event.dwThreadId.
7239 (fake_create_process): Likewise.
7240 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7241 Do not set main_thread_id.
7242 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7243 current_event.dwThreadId.
7244 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7245
8ed5b76e
JB
72462019-04-30 Joel Brobecker <brobecker@adacore.com>
7247
7248 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7249 Use current_event.dwThreadId instead of main_thread_id.
7250
2ff0a947
TT
72512019-04-30 Tom Tromey <tromey@adacore.com>
7252
7253 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7254 (create_excep_cond_exprs): Iterate over program spaces.
7255 (ada_exception_catchpoint_cond_string): Examine all minimal
7256 symbols for exception types.
7257
a776957c
TT
72582019-04-30 Tom Tromey <tromey@adacore.com>
7259
7260 PR c++/24470:
7261 * dwarf2read.c (process_structure_scope): Handle case where type
7262 has template parameters but no symbol was created.
7263
bc68014d
AB
72642019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7265 Chris January <chris.january@arm.com>
7266
7267 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7268 qualifier.
7269 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7270
f1fdc960
AB
72712019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7272
7273 * f-typeprint.c (f_print_type): Update rules for printing
7274 whitespace.
7275 (f_type_print_varspec_suffix): Likewise.
7276
bf7a4de1
AB
72772019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7278 Chris January <chris.january@arm.com>
7279
7280 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7281 function arguments.
7282
bbe75b9d
AB
72832019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7284
7285 * f-lang.c (build_fortran_types): Change name of void type to
7286 lower case.
7287 * f-typeprint.c (f_type_print_base): Print the name of the void
7288 type, rather than a fixed string.
7289 * f-valprint.c (f_decorations): Use lower case void string.
7290
1db455a7
AB
72912019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7292 Chris January <chris.january@arm.com>
7293
7294 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7295 types for Fortran.
7296
b6d03bb2
AB
72972019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7298 Chris January <chris.january@arm.com>
7299 David Lecomber <david.lecomber@arm.com>
7300
7301 * f-exp.y (BINOP_INTRINSIC): New token.
7302 (exp): New parser rule handling BINOP_INTRINSIC.
7303 (f77_keywords): Add new builtin procedures.
7304 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7305 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7306 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7307 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7308 (print_unop_subexp_f): New function.
7309 (print_binop_subexp_f): New function.
7310 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7311 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7312 (dump_subexp_body_f): Likewise.
7313 (operator_check_f): Likewise.
7314 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7315 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7316
83228e93
AB
73172019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7318
7319 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7320 UNOP_KIND.
7321 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7322 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7323 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7324 (operator_length_f): New fuction.
7325 (print_subexp_f): New function.
7326 (op_name_f): New function.
7327 (dump_subexp_body_f): New function.
7328 (operator_check_f): New function.
7329 (exp_descriptor_f): Replace standard expression handling functions
7330 with new functions.
7331 * gdb/fortran-operator.def: New file.
7332 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7333 * gdb/std-operator.def: Remove UNOP_KIND.
7334
6fdcd7cc
AB
73352019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7336
7337 * std-operator.def: Remove unbalanced, stray double quote
7338 character.
7339
2e62ab40
AB
73402019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7341 Chris January <chris.january@arm.com>
7342 Daniel Everett <daniel.everett@arm.com>
7343 Nick Forrington <nick.forrington@arm.com>
7344 Richard Bunt <richard.bunt@arm.com>
7345
7346 * cp-valprint.c (cp_print_value_fields): Allow an additional level
7347 of depth when printing anonymous structs or unions.
7348 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7349 Don't print either the top-level value, or the children if the
7350 max-depth is exceeded.
7351 (ppscm_print_children): When printing the key of a map, allow one
7352 extra level of depth.
7353 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7354 print either the top-level value, or the children if the max-depth
7355 is exceeded.
7356 (print_children): When printing the key of a map, allow one extra
7357 level of depth.
7358 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7359 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7360 (user_print_options): Initialise max_depth field.
7361 (val_print_scalar_or_string_type_p): New function.
7362 (val_print): Check to see if the max depth has been reached.
7363 (val_print_check_max_depth): Define new function.
7364 (show_print_max_depth): New function.
7365 (_initialize_valprint): Add 'print max-depth' option.
7366 * valprint.h (struct value_print_options) <max_depth>: New field.
7367 (val_print_check_max_depth): Declare new function.
7368 * NEWS: Document new feature.
7369
4be290b2
AB
73702019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7371
7372 * ada-lang.c (ada_language_defn): Initialise new field.
7373 * c-lang.c (c_is_string_type_p): New function.
7374 (c_language_defn): Initialise new field.
7375 (cplus_language_defn): Initialise new field.
7376 (asm_language_defn): Initialise new field.
7377 (minimal_language_defn): Initialise new field.
7378 * c-lang.h (c_is_string_type_p): Declare new function.
7379 * d-lang.c (d_language_defn): Initialise new field.
7380 * f-lang.c (f_is_string_type_p): New function.
7381 (f_language_defn): Initialise new field.
7382 * go-lang.c (go_is_string_type_p): New function.
7383 (go_language_defn): Initialise new field.
7384 * language.c (default_is_string_type_p): New function.
7385 (unknown_language_defn): Initialise new field.
7386 (auto_language_defn): Initialise new field.
7387 * language.h (struct language_defn) <la_is_string_type_p>: New
7388 member variable.
7389 (default_is_string_type_p): Declare new function.
7390 * m2-lang.c (m2_language_defn): Initialise new field.
7391 * objc-lang.c (objc_language_defn): Initialise new field.
7392 * opencl-lang.c (opencl_language_defn): Initialise new field.
7393 * p-lang.c (pascal_is_string_type_p): New function.
7394 (pascal_language_defn): Initialise new field.
7395 * rust-lang.c (rust_is_string_type_p): New function.
7396 (rust_language_defn): Initialise new field.
7397
721b08c6
AB
73982019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7399
7400 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7401 New field.
7402 * ada-lang.c (ada_language_defn): Initialise new field.
7403 * c-lang.c (c_language_defn): Likewise.
7404 (cplus_language_defn): Likewise.
7405 (asm_language_defn): Likewise.
7406 (minimal_language_defn): Likewise.
7407 * d-lang.c (d_language_defn): Likewise.
7408 * f-lang.c (f_language_defn): Likewise.
7409 * go-lang.c (go_language_defn): Likewise.
7410 * language.c (unknown_language_defn): Likewise.
7411 (auto_language_defn): Likewise.
7412 * m2-lang.c (m2_language_defn): Likewise.
7413 * objc-lang.c (objc_language_defn): Likewise.
7414 * opencl-lang.c (opencl_language_defn): Likewise.
7415 * p-lang.c (pascal_language_defn): Likewise.
7416 * rust-lang.c (rust_language_defn): Likewise.
7417
fc913e53
AB
74182019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7419
7420 * ada-lang.c (ada_is_character_type): Change return type to bool.
7421 (ada_is_string_type): Likewise.
7422 * ada-lang.h (ada_is_character_type): Update declaration
7423 (ada_is_string_type): Likewise.
7424
fa731fa0
PW
74252019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7426
7427 Support style in 'frame|thread apply'
7428
7429 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7430 * record.c (record_start, record_stop): Update callers of
7431 execute_command_to_string with false.
7432 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7433 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7434 methods.
7435 (class string_file): New constructor with term_out parameter.
7436 Override methods term_out and can_emit_style_escape. New member
7437 term_out.
7438 (class stdio_file): Override can_emit_style_escape.
7439 (class tee_file): Override term_out and can_emit_style_escape.
7440 * utils.h (can_emit_style_escape): Remove.
7441 * utils.c (can_emit_style_escape): Likewise.
7442 Update all callers of can_emit_style_escape (SOMESTREAM) to
7443 SOMESTREAM->can_emit_style_escape.
7444 * source-cache.c (source_cache::get_source_lines): Likewise.
7445 * stack.c (frame_apply_command_count): Call execute_command_to_string
7446 passing the term_out characteristic of the current gdb_stdout.
7447 * thread.c (thr_try_catch_cmd): Likewise.
7448 * top.c (execute_command_to_string): pass term_out parameter
7449 to construct the string_file for the command output.
7450 * ui-file.c (term_cli_styling): New function (most code moved
7451 from utils.c can_emit_style_escape).
7452 (string_file::string_file, string_file::can_emit_style_escape,
7453 stdio_file::can_emit_style_escape, tee_file::term_out,
7454 tee_file::can_emit_style_escape): New functions.
7455
136afab8
PW
74562019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7457
7458 * NEWS: Mention the new set|show may-call-functions.
7459 * infcall.c (may_call_functions_p): New variable.
7460 (show_may_call_functions_p): New function.
7461 (call_function_by_hand_dummy): Throws an error if not
7462 may-call-functions.
7463 (_initialize_infcall): Call add_setshow_boolean_cmd for
7464 may-call-functions.
7465
725cbb63
KS
74662019-04-25 Keith Seitz <keiths@redhat.com>
7467
7468 PR c++/24367
7469 * cp-support.c (inspect_type): Don't attempt substitutions
7470 of symbol with the same name.
7471
3d1cbb78
TT
74722019-04-25 Tom Tromey <tromey@adacore.com>
7473
7474 PR gdb/24475:
7475 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7476 static.
7477
94aeb44b
TT
74782019-04-25 Tom Tromey <tromey@adacore.com>
7479
7480 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7481 rvalue reference.
7482 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7483 (gdb_xml_parser::parse): Use std::move.
7484 * python/python-internal.h (gdbpy_convert_exception): Take a const
7485 reference.
7486 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7487 std::move.
7488 * python/py-utils.c (gdbpy_convert_exception): Take a const
7489 reference.
7490 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7491 Use std::move.
7492 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7493 Use std::move.
7494 * mi/mi-main.c (mi_print_exception): Take a const reference.
7495 * main.c (handle_command_errors): Take a const reference.
7496 * linespec.c (parse_linespec): Use std::move.
7497 * infcall.c (run_inferior_call): Use std::move.
7498 (call_function_by_hand_dummy): Use std::move.
7499 * exec.c (try_open_exec_file): Use std::move.
7500 * exceptions.h (exception_print, exception_fprintf)
7501 (exception_print_same): Update.
7502 * exceptions.c (print_exception, exception_print)
7503 (exception_fprintf, exception_print_same): Change parameters to
7504 const reference.
7505 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7506 * common/new-op.c: Use std::move.
7507 * common/common-exceptions.h (struct gdb_exception): Add move
7508 constructor.
7509 (struct gdb_exception_error, struct gdb_exception_quit, struct
7510 gdb_quit_bad_alloc): Change constructor to move constructor.
7511 (throw_exception): Change parameter to rvalue reference.
7512 * common/common-exceptions.c (throw_exception): Take rvalue
7513 reference.
7514 * cli/cli-interp.c (safe_execute_command): Use std::move.
7515 * breakpoint.c (insert_bp_location, location_to_sals): Use
7516 std::move.
7517
680d7fd5
TT
75182019-04-25 Tom Tromey <tromey@adacore.com>
7519
7520 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7521 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7522 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7523 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7524 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7525 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7526 guile/scm-value.c: Use unpack.
7527 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7528 gdbscm_gdb_exception.
7529 (gdbscm_throw_gdb_exception): Likewise.
7530 (struct gdbscm_gdb_exception): New.
7531 (unpack): New function.
7532 (gdbscm_wrap): Use unpack.
7533
c6fdd8b2
TT
75342019-04-25 Tom Tromey <tromey@adacore.com>
7535
7536 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7537 (gdb_rl_callback_handler): Use std::move.
7538 * common/common-exceptions.h (struct gdb_exception): Add move
7539 assignment operator.
7540 (throw_exception_sjlj): Change "exception" to const reference.
7541 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7542 (throw_exception_sjlj): Change "exception" to const reference.
7543
cc06b668
TT
75442019-04-25 Tom Tromey <tromey@adacore.com>
7545
7546 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7547 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7548 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7549 Update.
7550 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7551 Update.
7552 * mi/mi-interp.c (mi_interp::exec): Update.
7553 * linespec.c (parse_linespec): Update.
7554 * infcall.c (run_inferior_call): Update.
7555 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7556 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7557 (gdbscm_lookup_global_symbol): Update.
7558 * guile/scm-param.c (gdbscm_parameter_value): Update.
7559 * guile/scm-frame.c (gdbscm_frame_read_register)
7560 (gdbscm_frame_read_var): Update.
7561 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7562 * exec.c (try_open_exec_file): Update.
7563 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7564 (gdb_rl_callback_handler): Update.
7565 * common/common-exceptions.h (exception_none): Don't declare.
7566 * common/common-exceptions.c (exception_none): Don't define.
7567 (struct catcher) <exception>: Update.
7568 * cli/cli-interp.c (safe_execute_command): Update.
7569 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7570
cf532bd1
AT
75712019-04-25 Ali Tamur <tamur@google.com>
7572
7573 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7574 (read_attribute_value): Likewise.
7575 (dwarf2_read_addr_index): Update comment.
7576 (read_str_index): Add DW_FORM_strx.
7577 (dwarf2_string_attr): Likewise.
7578 (dwarf2_const_value_attr): Likewise.
7579 (dump_die_shallow): Likewise.
7580 (dwarf2_fetch_constant_bytes): Likewise.
7581 (skip_form_bytes): Likewise.
7582 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7583
82433e3e
SDJ
75842019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7585
7586 PR corefiles/11608
7587 PR corefiles/18187
7588 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7589 OFFSET. Verify if current mapping contains an ELF header.
7590 (linux_find_memory_regions_full): Adjust call to
7591 dump_mapping_p.
7592
723adb65
SL
75932019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7594 Kang Li <kanglictf@gmail.com>
7595
7596 PR gdb/21600
7597
7598 * dwarf2-frame.c (read_initial_length): Be consistent about using
7599 unsigned representation of length.
7600 (decode_frame_entry_1): Likewise. Check for wraparound of
7601 end pointer as well as buffer overflow.
7602
596179f7
SDJ
76032019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7604
7605 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7606 "vq".
7607
a59240a4
TT
76082019-04-24 Tom Tromey <tromey@adacore.com>
7609
7610 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7611
f872fdbb
AB
76122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7613
7614 * s12z-tdep.c (s12z_unwind_pc): Delete.
7615 (s12z_unwind_sp): Delete.
7616 (s12z_gdbarch_init): Don't register deleted functions with
7617 gdbarch.
7618
b614e6f3
AB
76192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7620
7621 * rl78-tdep.c (rl78_unwind_sp): Delete.
7622 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7623
14faed38
AB
76242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7625
7626 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7627 (xstormy16_unwind_pc): Delete.
7628 (xstormy16_dummy_id): Delete.
7629 (xstormy16_gdbarch_init): Don't register deleted functions with
7630 gdbarch.
7631
541aad8a
AB
76322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7633
7634 * vax-tdep.c (vax_unwind_pc): Delete.
7635 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7636
29222070
AB
76372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7638
7639 * v850-tdep.c (v850_unwind_sp): Delete.
7640 (v850_unwind_pc): Delete.
7641 (v850_dummy_id): Delete.
7642 (v850_gdbarch_init): Don't register deleted functions with
7643 gdbarch.
7644
0f534d76
AB
76452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7646
7647 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7648 (tilegx_unwind_pc): Delete.
7649 (tilegx_unwind_dummy_id): Delete.
7650 (tilegx_gdbarch_init): Don't register deleted functions with
7651 gdbarch.
7652
1ba7b7f9
AB
76532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7654
7655 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7656 (tic6x_dummy_id): Delete.
7657 (tic6x_gdbarch_init): Don't register deleted functions with
7658 gdbarch.
7659
d31f262c
AB
76602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7661
7662 * sparc-tdep.c (sparc_unwind_pc): Delete.
7663 (sparc32_gdbarch_init): Don't register deleted function with
7664 gdbarch.
7665
6d14d64d
AB
76662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7667
7668 * sh-tdep.c (sh_unwind_sp): Delete.
7669 (sh_unwind_pc): Delete.
7670 (sh_dummy_id): Delete.
7671 (sh_gdbarch_init): Don't register deleted functions with
7672 gdbarch.
7673
a40dde9d
AB
76742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7675
7676 * score-tdep.c (score_unwind_sp): Delete.
7677 (score_unwind_pc): Delete.
7678 (score_dummy_id): Delete.
7679 (score_gdbarch_init): Don't register deleted functions with
7680 gdbarch.
7681
47c47d69
AB
76822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7683
7684 * rx-tdep.c (rx_unwind_pc): Delete.
7685 (rx_unwind_sp): Delete.
7686 (rx_dummy_id): Delete.
7687 (rx_gdbarch_init): Don't register deleted functions with
7688 gdbarch. Update comment.
7689
833a4480
AB
76902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7691
7692 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7693 (rs6000_dummy_id): Delete.
7694 (rs6000_gdbarch_init): Don't register deleted functions with
7695 gdbarch.
7696
3f2cef49
AB
76972019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7698
7699 * or1k-tdep.c (or1k_dummy_id): Delete.
7700 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7701
96acf884
AB
77022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7703
7704 * nios2-tdep.c (nios2_dummy_id): Delete.
7705 (nios2_unwind_sp): Delete.
7706 (nios2_gdbarch_init): Don't register deleted functions with
7707 gdbarch.
7708
ca0ab0aa
AB
77092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7710
7711 * nds32-tdep.c (nds32_dummy_id): Delete.
7712 (nds32_unwind_pc): Delete.
7713 (nds32_unwind_sp): Delete.
7714 (nds32_gdbarch_init): Don't register deleted functions with
7715 gdbarch.
7716
c8259044
AB
77172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7718
7719 * msp430-tdep.c (msp430_unwind_pc): Delete.
7720 (msp430_unwind_sp): Delete.
7721 (msp430_dummy_id): Delete.
7722 (msp430_gdbarch_init): Don't register deleted functions with
7723 gdbarch.
7724
27f113c8
AB
77252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7726
7727 * moxie-tdep.c (moxie_unwind_sp): Delete.
7728 (moxie_unwind_pc): Delete.
7729 (moxie_dummy_id): Delete.
7730 (moxie_gdbarch_init): Don't register deleted functions with
7731 gdbarch.
7732
aee6c3cd
AB
77332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7734
7735 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7736 (mn10300_unwind_pc): Delete.
7737 (mn10300_unwind_sp): Delete.
7738 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7739 mn10300_unwind_sp.
7740 (mn10300_frame_unwind_init): Don't register deleted functions with
7741 gdbarch.
7742
8e2b5aea
AB
77432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7744
7745 * mep-tdep.c (mep_unwind_pc): Delete.
7746 (mep_unwind_sp): Delete.
7747 (mep_dummy_id): Delete.
7748 (mep_gdbarch_init): Don't register deleted functions with
7749 gdbarch.
7750
43cf3ede
AB
77512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7752
7753 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7754 (m68hc11_unwind_sp): Delete.
7755 (m68hc11_gdbarch_init): Don't register deleted functions with
7756 gdbarch.
7757
5e79b7bb
AB
77582019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7759
7760 * m32r-tdep.c (m32r_unwind_sp): Delete.
7761 (m32r_unwind_pc): Delete.
7762 (m32r_dummy_id): Delete.
7763 (m32r_gdbarch_init): Don't register deleted functions with
7764 gdbarch.
7765
89b268d8
AB
77662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7767
7768 * m32c-tdep.c (m32c_unwind_pc): Delete.
7769 (m32c_unwind_sp): Delete.
7770 (m32c_dummy_id): Delete.
7771 (m32c_gdbarch_init): Don't register deleted functions with
7772 gdbarch.
7773
946c28d2
AB
77742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7775
7776 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7777 (lm32_unwind_pc): Delete.
7778 (lm32_dummy_id): Delete.
7779 (lm32_gdbarch_init): Don't register deleted functions with
7780 gdbarch.
7781
bf12844a
AB
77822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7783
7784 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7785 (iq2000_unwind_pc): Delete.
7786 (iq2000_dummy_id): Delete.
7787 (iq2000_gdbarch_init): Don't register deleted functions with
7788 gdbarch.
7789
ecbc06d2
AB
77902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7791
7792 * nds32-tdep.c (nds32_type_align): Delete.
7793 (nds32_push_dummy_call): Use type_align instead.
7794
030197b4
AB
77952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7796
7797 * arm-tdep.c (arm_type_align): Only handle vector override case.
7798 (arm_push_dummy_call): Use type_align.
7799 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7800
b907456c
AB
78012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7802
7803 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7804 case.
7805 (pass_on_stack): Use type_align.
7806 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7807 function.
7808
9e97ba43
TT
78092019-04-23 Tom Tromey <tromey@adacore.com>
7810
7811 * dwarf2read.c (line_header::file_name_at): Remove unused
7812 overload.
7813
6892f601
TV
78142019-04-23 Tom de Vries <tdevries@suse.de>
7815
7816 PR gdb/24438
7817 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7818 invocation.
7819
336d760d
AT
7820
78212019-03-27 Ali Tamur <tamur@google.com>
7822
7823 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7824 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7825 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7826 (dwarf_expr_context::get_addr_index): Likewise
7827 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7828 (symbol_needs_eval_context::get_addr_index): Likewise
7829 (disassemble_dwarf_expression): Add DW_OP_addrx
7830 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7831 (read_cutu_die_from_dwo): Update comment
7832 (skip_one_die): Add DW_FORM_addrx
7833 (read_attribute_value): Likewise
7834 (var_decode_location): Add DW_OP_addrx
7835 (dwarf2_const_value_attr): Add DW_FORM_addrx
7836 (dump_die_shallow): Likewise
7837 (dwarf2_fetch_constant_bytes): Likewise
7838 (decode_locdesc): Add DW_OP_addrx
7839 (skip_form_bytes): Add DW_FORM_addrx
7840
ad9d13f8
AT
78412019-04-22 Ali Tamur <tamur@google.com>
7842
7843 * MAINTAINERS (Write After Approval): Add self.
7844
d70cc3ba
SM
78452019-04-22 Simon Marchi <simon.marchi@efficios.com>
7846
7847 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7848 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7849 (open_symbol_file_object): Likewise.
7850 (svr4_default_sos): Add info parameter.
7851 (svr4_read_so_list): Likewise.
7852 (svr4_current_sos_direct): Adjust functions calls to pass down
7853 info.
7854 (svr4_current_sos_1): Add info parameter.
7855 (svr4_current_sos): Call get_svr4_info, pass info down to
7856 svr4_current_sos_1.
7857 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7858 get_svr4_info.
7859 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7860 get_svr4_info.
7861 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7862 to get_svr4_info.
7863 (probes_table_remove_objfile_probes): Likewise.
7864 (register_solib_event_probe): Add info parameter.
7865 (solist_update_incremental): Pass info parameter down to
7866 svr4_read_so_list.
7867 (disable_probes_interface): Add info parameter.
7868 (svr4_handle_solib_event): Pass current_program_space to
7869 get_svr4_info. Adjust disable_probes_interface cleanup.
7870 (svr4_create_probe_breakpoints): Add info parameter, pass it
7871 down to register_solib_event_probe.
7872 (svr4_create_solib_event_breakpoints): Add info parameter,
7873 pass it down to svr4_create_probe_breakpoints.
7874 (enable_break): Pass info down to
7875 svr4_create_solib_event_breakpoints.
7876 (svr4_solib_create_inferior_hook): Pass current_program_space to
7877 get_svr4_info.
7878 (svr4_clear_solib): Likewise.
7879
7905fc35
PA
78802019-04-22 Pedro Alves <palves@redhat.com>
7881
7882 * solib-svr4.c (svr4_free_objfile_observer): New.
7883 (probe_and_action::objfile): New field.
7884 (probes_table_htab_remove_objfile_probes)
7885 (probes_table_remove_objfile_probes): New functions.
7886 (register_solib_event_probe): Add 'objfile' parameter. Store it
7887 in the new probe_and_action. Don't store the probe in 'lookup'.
7888 (svr4_create_probe_breakpoints): Pass objfile to
7889 register_solib_event_probe.
7890 (_initialize_svr4_solib): Register a free_objfile observer.
7891
fb881986
TT
78922019-04-19 Tom Tromey <tom@tromey.com>
7893
7894 * common/queue.h: Remove.
7895
8732db6c
TT
78962019-04-19 Tom Tromey <tom@tromey.com>
7897
7898 * event-loop.c: Don't include "common/queue.h".
7899
97dfbadd
TT
79002019-04-19 Tom Tromey <tom@tromey.com>
7901
7902 * remote.c (remote_target): Use delete.
7903 * remote-notif.h: Include <list>, not "common/queue.h".
7904 (notif_client_p): Remove typedef.
7905 (remote_notif_state): Add constructor, destructor, initializer.
7906 <notif_queue>: Now a std::list.
7907 (remote_notif_state_xfree): Don't declare.
7908 * remote-notif.c (remote_notif_process, handle_notification)
7909 (remote_notif_state_allocate): Update.
7910 (~remote_notif_state): Rename from remote_notif_state_xfree.
7911
cf250e36
TT
79122019-04-19 Tom Tromey <tom@tromey.com>
7913
7914 * symfile.c (reread_symbols): Update.
7915 * objfiles.c (objfile_register_static_link)
7916 (objfile_lookup_static_link): Update
7917 (~objfile) Don't delete static_links.
7918 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7919
61f4b350
TT
79202019-04-19 Tom Tromey <tom@tromey.com>
7921
7922 * type-stack.h (struct type_stack) <insert>: Constify string.
7923 * type-stack.c (type_stack::insert): Constify string.
7924 * gdbtypes.h (lookup_template_type): Update.
7925 (address_space_name_to_int): Update.
7926 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7927 const.
7928 (lookup_template_type): Make name const.
7929 * c-exp.y: Update rules.
7930 (lex_one_token, classify_name, classify_inner_name)
7931 (c_print_token): Update.
7932 * p-exp.y: Update rules.
7933 (yylex): Update.
7934 * f-exp.y: Update rules.
7935 (yylex): Update.
7936 * d-exp.y: Update rules.
7937 (lex_one_token, classify_name, classify_inner_name): Update.
7938 * parse.c (write_dollar_variable, copy_name): Return std::string.
7939 * parser-defs.h (copy_name): Change return type.
7940 * m2-exp.y: Update rules.
7941 (yylex): Update.
7942 * go-exp.y (lex_one_token): Update.
7943 Update rules.
7944 (classify_unsafe_function, classify_packaged_name)
7945 (classify_name, yylex): Update.
7946
189b8c2e
ST
79472019-04-19 Sergei Trofimovich <siarheit@google.com>
7948
7949 * configure.ac: add --enable-source-highlight switch.
7950 * configure: Regenerate.
7951 * top.c (print_gdb_version): plumb --enable-source-highlight
7952 status to "show configuration".
7953
8ecb59f8
TT
79542019-04-19 Tom Tromey <tromey@adacore.com>
7955
7956 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7957 Check ADA_TYPE_P.
7958 (empty_record, ada_template_to_fixed_record_type_1)
7959 (template_to_static_fixed_type)
7960 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7961 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7962 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7963 macros.
7964
62160ec9
TT
79652019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7966
7967 PR symtab/24423:
7968 * source.c (print_source_lines_base): Advance "iter" when a
7969 control character is seen.
7970
f2ae8bc8
PW
79712019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7972
7973 * inferior.h (struct infcall_suspend_state_deleter):
7974 Catch exception in destructor to avoid crash.
7975
d563b953
PW
79762019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7977
7978 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7979 close to the add_com "shell".
7980
dc34c897
TT
79812019-04-18 Tom Tromey <tromey@adacore.com>
7982
7983 * process-stratum-target.h (class process_stratum_target)
7984 <stratum>: Add "final".
7985
a12e5744
TT
79862019-04-17 Tom Tromey <tromey@adacore.com>
7987
7988 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7989 against nullptr before use.
7990
a7e559cc
AH
79912019-04-17 Alan Hayward <alan.hayward@arm.com>
7992
7993 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7994
c01660c6
AB
79952019-04-17 Jim Wilson <jimw@sifive.com>
7996 Andrew Burgess <andrew.burgess@embecosm.com>
7997
7998 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7999 code read might fail, assume 4-byte breakpoint in that case.
8000
4aa866af
LS
80012019-04-15 Leszek Swirski <leszeks@google.com>
8002
8003 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8004 rather than a hand-rolled POD check when checking for forced MEMORY
8005 classification.
8006
48574d91
AH
80072019-04-15 Alan Hayward <alan.hayward@arm.com>
8008
8009 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8010 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8011 function.
8012 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8013 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8014 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8015 declaration.
8016
4da037ef
AH
80172019-04-15 Alan Hayward <alan.hayward@arm.com>
8018
8019 * aarch64-linux-nat.c
8020 (aarch64_linux_nat_target::thread_architecture): Add override.
8021 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8022 each VQ.
8023
ccb8d7e8
AH
80242019-04-15 Alan Hayward <alan.hayward@arm.com>
8025
8026 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8027
35add35e
AB
80282019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8029
8030 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8031 target types of size 96-bits, add some additional comments, and
8032 check that the builtin type we found was the correct size.
8033
51196bbc
EZ
80342019-04-12 Eli Zaretskii <eliz@gnu.org>
8035
8036 * utils.c (prompt_for_continue): Don't restore the styling at the
8037 end, as applied_style has the wrong value. This fixes styling in
8038 long lists of file names that are interrupted by the "Continue?"
8039 prompt.
8040
62253a61
AB
80412019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8042
8043 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8044 * c-lang.c (c_language_defn): Likewise.
8045 (cplus_language_defn): Likewise.
8046 (asm_language_defn): Likewise.
8047 (minimal_language_defn): Likewise.
8048 * d-lang.c (d_language_defn): Likewise.
8049 * f-lang.c (f_language_defn): Likewise.
8050 * go-lang.c (go_language_defn): Likewise.
8051 * language.c (unknown_language_defn): Likewise.
8052 (auto_language_defn): Likewise.
8053 * language.h (struct language_defn): Remove la_magic field.
8054 (LANG_MAGIC): Delete.
8055 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8056 * objc-lang.c (objc_language_defn): Likewise.
8057 * opencl-lang.c (opencl_language_defn): Likewise.
8058 * p-lang.c (pascal_language_defn): Likewise.
8059 * rust-lang.c (rust_language_defn): Likewise.
8060
a9158a86
AB
80612019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8062
8063 * riscv-tdep.c (riscv_type_align): New function.
8064 (riscv_type_alignment): Delete.
8065 (riscv_arg_location): Use 'type_align'.
8066 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8067
41077b66
AB
80682019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8069
8070 * gdbtypes.c (type_align): A struct with no non-static fields also
8071 has alignment of 1.
8072
9f0272f8
AB
80732019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8074
8075 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8076 component to 0.
8077 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8078 member.
8079 (riscv_struct_info::analyse): New implementation using new
8080 analyse_inner member function.
8081 (riscv_struct_info::field_offset): New member function.
8082 (riscv_struct_info::m_offsets): New member variable.
8083 (riscv_struct_info::analyse_inner): New private member function,
8084 takes the old implementation of riscv_struct_info::analyse but
8085 extended to track field offsets.
8086 (riscv_call_arg_struct): Update the struct folding special cases
8087 to handle cases where empty C++ structs, which are non-zero
8088 length, are found.
8089 (riscv_arg_location): Initialise the length of each location, a
8090 non-zero length now indicates the location is in use.
8091 (riscv_push_dummy_call): Allow for the first location having a
8092 non-zero offset when setting up arguments.
8093 (riscv_return_value): Likewise, but for return values.
8094
02cf60c7
TT
80952019-04-11 Tom Tromey <tromey@adacore.com>
8096
8097 * utils.c (internal_vproblem): Make "msg" const.
8098
68811f8f
AH
80992019-04-11 Alan Hayward <alan.hayward@arm.com>
8100
8101 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8102 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8103 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8104 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8105
3f52fdbc
KB
81062019-04-10 Kevin Buettner <kevinb@redhat.com>
8107
8108 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8109 function.
8110 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8111 of amd64_collect_native_gregset.
8112 (amd64_linux_nat_target::store_registers): Likewise.
8113
e9ad22ee
TT
81142019-04-10 Tom Tromey <tom@tromey.com>
8115
8116 * symtab.c (lookup_global_symbol_from_objfile)
8117 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8118 * objfiles.h (class separate_debug_iterator): New.
8119 (class separate_debug_range): New.
8120 (struct objfile) <separate_debug_objfiles>: New method.
8121 (objfile_separate_debug_iterate): Don't declare.
8122 * objfiles.c (separate_debug_iterator::operator++): Rename from
8123 objfile_separate_debug_iterate.
8124 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8125 iterator.
8126 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8127 iterator.
8128
ee371134
TT
81292019-04-10 Tom Tromey <tom@tromey.com>
8130
8131 * symfile.c (reread_symbols): Remove old comment.
8132 * objfiles.c (free_all_objfiles): Fix a typo.
8133
bf227d61
TT
81342019-04-10 Tom Tromey <tom@tromey.com>
8135
8136 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8137 * minsyms.c (lookup_minimal_symbol): Use foreach.
8138 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8139 (lookup_minimal_symbol_solib_trampoline): Likewise.
8140 * symfile.c (reread_symbols): Use foreach.
8141
8dc433a0
TT
81422019-04-09 Ivan Begert <ivanbegert@gmail.com>
8143 Tom Tromey <tromey@adacore.com>
8144
8145 PR rust/24414:
8146 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8147 (rust_lex_int_test): Change "value" to be LONGEST.
8148 (rust_lex_tests): Add test for long integer literal.
8149
9ab8741a
TT
81502019-04-09 Tom Tromey <tromey@adacore.com>
8151
8152 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8153 to bool.
8154 (extended_remote_target::attach): Update.
8155 (remote_target::remote_notice_new_inferior): Update.
8156 (remote_target::add_current_inferior_and_thread): Update.
8157 * inferior.c (exit_inferior_1): Use "false".
8158 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8159
e242fd12
SM
81602019-04-09 Simon Marchi <simon.marchi@efficios.com>
8161
9ca1957f 8162 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
8163 the "start" command.
8164
2b0c8b01
KB
81652019-04-08 Kevin Buettner <kevinb@redhat.com>
8166
8167 * python/py-inferior.c (infpy_thread_from_thread_handle):
8168 Adjust comments to reflect renaming of thread_from_thread_handle
8169 to thread_from_handle. Adjust keywords. Fix type error message.
8170 (inferior_object_methods): Add thread_from_handle. Retain
8171 thread_from_thread_handle, but mark it as deprecated.
8172
50a82723
KB
81732019-04-08 Kevin Buettner <kevinb@redhat.com>
8174
8175 * gdbthread.h (find_thread_by_handle): Revise declaration.
8176 * thread.c (find_thread_by_handle): Likewise. Adjust
8177 implementation too.
8178 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8179 support for buffer objects as handles.
8180
cf63b016
KB
81812019-04-08 Kevin Buettner <kevinb@redhat.com>
8182
8183 * python/py-infthread.c (thpy_thread_handle): New function.
8184 (thread_object_methods): Register thpy_thread_handle.
8185
3d6c6204
KB
81862019-04-08 Kevin Buettner <kevinb@redhat.com>
8187
8188 * gdbthread.h (thread_to_thread_handle): Declare.
8189 * thread.c (gdbtypes.h): Include.
8190 (thread_to_thread_handle): New function.
8191
8192 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8193 (target_thread_info_to_thread_handle): Declare.
8194 * target.c (target_thread_info_to_thread_handle): New function.
8195 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8196 * target-delegates.c: Regenerate.
8197
8198 * linux-thread-db.c (class thread_db_target): Add method
8199 thread_info_to_thread_handle.
8200 (thread_db_target::thread_info_to_thread_handle): Define.
8201 * remote.c (class remote_target): Add new method
8202 thread_info_to_thread_handle.
8203 (remote_target::thread_info_to_thread_handle): Define.
8204
56be6ea8
PA
82052019-04-08 Pedro Alves <palves@redhat.com>
8206
8207 * common/common-exceptions.c (throw_exception): Don't create
8208 named object to throw; throw directly.
8209 (throw_it): Likewise. Don't initialize gdb_exception::message
8210 here, with new; pass FMT and AP to the ctor instead.
8211 * common/common-exceptions.h: Include <string>.
8212 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8213 const char *, va_list)): New ctor. Use std::make_shared.
8214 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8215 errors)): Delete.
8216 (gdb_exception_error::gdb_exception_error(enum errors, const char
8217 *, va_list)): New.
8218 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8219 Add assertion.
8220 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8221 errors)): Delete.
8222 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8223 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8224 Add assertion.
8225
eedc3f4f
TT
82262019-04-08 Tom Tromey <tom@tromey.com>
8227
8228 * valops.c (value_rtti_indirect_type): Replace throw_exception
8229 with throw.
8230 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8231 with throw.
8232 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8233 throw.
8234 * target.c (target_translate_tls_address): Replace throw_exception
8235 with throw.
8236 * stack.c (frame_apply_command_count): Replace throw_exception
8237 with throw.
8238 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8239 throw.
8240 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8241 with throw.
8242 * rs6000-tdep.c (rs6000_frame_cache)
8243 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8244 * remote.c: Replace throw_exception with throw.
8245 * record-full.c (record_full_message, record_full_wait_1)
8246 (record_full_restore): Replace throw_exception with throw.
8247 * record-btrace.c:
8248 (get_thread_current_frame_id, record_btrace_start_replaying)
8249 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8250 (cmd_record_btrace_start): Replace throw_exception with throw.
8251 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8252 throw.
8253 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8254 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8255 * linespec.c:
8256 (find_linespec_symbols): Replace throw_exception with throw.
8257 * infrun.c (displaced_step_prepare, resume): Replace
8258 throw_exception with throw.
8259 * infcmd.c (post_create_inferior): Replace throw_exception with
8260 throw.
8261 * inf-loop.c (inferior_event_handler): Replace throw_exception
8262 with throw.
8263 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8264 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8265 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8266 (get_prev_frame_always, get_frame_pc_if_available)
8267 (get_frame_address_in_block_if_available, get_frame_language):
8268 Replace throw_exception with throw.
8269 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8270 throw_exception with throw.
8271 * eval.c (fetch_subexp_value, evaluate_var_value)
8272 (evaluate_funcall, evaluate_subexp_standard): Replace
8273 throw_exception with throw.
8274 * dwarf2loc.c (call_site_find_chain)
8275 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8276 Replace throw_exception with throw.
8277 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8278 with throw.
8279 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8280 throw.
8281 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8282 * completer.c (complete_line_internal): Replace throw_exception
8283 with throw.
8284 * compile/compile-object-run.c (compile_object_run): Replace
8285 throw_exception with throw.
8286 * cli/cli-script.c (process_next_line): Replace throw_exception
8287 with throw.
8288 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8289 (btrace_enable, btrace_maint_update_pt_packets): Replace
8290 throw_exception with throw.
8291 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8292 throw_exception with throw.
8293 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8294 throw_exception with throw.
8295 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8296 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8297 * aarch64-tdep.c (aarch64_make_prologue_cache)
8298 (aarch64_make_stub_cache): Replace throw_exception with throw.
8299
26003a20
TT
83002019-04-08 Tom Tromey <tom@tromey.com>
8301
8302 * common/common-exceptions.c (throw_exception): Rename from
8303 throw_exception_cxx. Remove old copy. Make argument const.
8304 (throw_it): Create and throw exception objects directly.
8305 * common/common-exceptions.h (throw_exception): Make argument
8306 const.
8307 (struct gdb_exception_error): Add constructor.
8308 (struct gdb_exception_quit): Add constructor.
8309
d272eb37
TT
83102019-04-08 Tom Tromey <tom@tromey.com>
8311
8312 * common/common-exceptions.h (exception_rethrow): Don't declare.
8313 (TRY_SJLJ): Update comment.
8314 (TRY, CATCH, END_CATCH): Remove.
8315 * common/common-exceptions.c (exception_rethrow): Remove.
8316
230d2906
TT
83172019-04-08 Tom Tromey <tom@tromey.com>
8318
8319 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8320 Remove.
8321 (gdb_exception_error): Rename from
8322 gdb_exception_RETURN_MASK_ERROR.
8323 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8324 (gdb_quit_bad_alloc): Update.
8325 * aarch64-tdep.c: Update.
8326 * ada-lang.c: Update.
8327 * ada-typeprint.c: Update.
8328 * ada-valprint.c: Update.
8329 * amd64-tdep.c: Update.
8330 * arch-utils.c: Update.
8331 * break-catch-throw.c: Update.
8332 * breakpoint.c: Update.
8333 * btrace.c: Update.
8334 * c-varobj.c: Update.
8335 * cli/cli-cmds.c: Update.
8336 * cli/cli-interp.c: Update.
8337 * cli/cli-script.c: Update.
8338 * common/common-exceptions.c: Update.
8339 * common/new-op.c: Update.
8340 * common/selftest.c: Update.
8341 * compile/compile-c-symbols.c: Update.
8342 * compile/compile-cplus-symbols.c: Update.
8343 * compile/compile-object-load.c: Update.
8344 * compile/compile-object-run.c: Update.
8345 * completer.c: Update.
8346 * corelow.c: Update.
8347 * cp-abi.c: Update.
8348 * cp-support.c: Update.
8349 * cp-valprint.c: Update.
8350 * darwin-nat.c: Update.
8351 * disasm-selftests.c: Update.
8352 * dtrace-probe.c: Update.
8353 * dwarf-index-cache.c: Update.
8354 * dwarf-index-write.c: Update.
8355 * dwarf2-frame-tailcall.c: Update.
8356 * dwarf2-frame.c: Update.
8357 * dwarf2loc.c: Update.
8358 * dwarf2read.c: Update.
8359 * eval.c: Update.
8360 * event-loop.c: Update.
8361 * event-top.c: Update.
8362 * exec.c: Update.
8363 * f-valprint.c: Update.
8364 * fbsd-tdep.c: Update.
8365 * frame-unwind.c: Update.
8366 * frame.c: Update.
8367 * gdbtypes.c: Update.
8368 * gnu-v3-abi.c: Update.
8369 * guile/guile-internal.h: Update.
8370 * guile/scm-block.c: Update.
8371 * guile/scm-breakpoint.c: Update.
8372 * guile/scm-cmd.c: Update.
8373 * guile/scm-disasm.c: Update.
8374 * guile/scm-frame.c: Update.
8375 * guile/scm-lazy-string.c: Update.
8376 * guile/scm-math.c: Update.
8377 * guile/scm-param.c: Update.
8378 * guile/scm-ports.c: Update.
8379 * guile/scm-pretty-print.c: Update.
8380 * guile/scm-symbol.c: Update.
8381 * guile/scm-symtab.c: Update.
8382 * guile/scm-type.c: Update.
8383 * guile/scm-value.c: Update.
8384 * i386-linux-tdep.c: Update.
8385 * i386-tdep.c: Update.
8386 * inf-loop.c: Update.
8387 * infcall.c: Update.
8388 * infcmd.c: Update.
8389 * infrun.c: Update.
8390 * jit.c: Update.
8391 * language.c: Update.
8392 * linespec.c: Update.
8393 * linux-fork.c: Update.
8394 * linux-nat.c: Update.
8395 * linux-tdep.c: Update.
8396 * linux-thread-db.c: Update.
8397 * main.c: Update.
8398 * mi/mi-cmd-break.c: Update.
8399 * mi/mi-cmd-stack.c: Update.
8400 * mi/mi-interp.c: Update.
8401 * mi/mi-main.c: Update.
8402 * objc-lang.c: Update.
8403 * p-valprint.c: Update.
8404 * parse.c: Update.
8405 * ppc-linux-tdep.c: Update.
8406 * printcmd.c: Update.
8407 * python/py-arch.c: Update.
8408 * python/py-breakpoint.c: Update.
8409 * python/py-cmd.c: Update.
8410 * python/py-finishbreakpoint.c: Update.
8411 * python/py-frame.c: Update.
8412 * python/py-framefilter.c: Update.
8413 * python/py-gdb-readline.c: Update.
8414 * python/py-inferior.c: Update.
8415 * python/py-infthread.c: Update.
8416 * python/py-lazy-string.c: Update.
8417 * python/py-linetable.c: Update.
8418 * python/py-objfile.c: Update.
8419 * python/py-param.c: Update.
8420 * python/py-prettyprint.c: Update.
8421 * python/py-progspace.c: Update.
8422 * python/py-record-btrace.c: Update.
8423 * python/py-record.c: Update.
8424 * python/py-symbol.c: Update.
8425 * python/py-type.c: Update.
8426 * python/py-unwind.c: Update.
8427 * python/py-utils.c: Update.
8428 * python/py-value.c: Update.
8429 * python/python.c: Update.
8430 * record-btrace.c: Update.
8431 * record-full.c: Update.
8432 * remote-fileio.c: Update.
8433 * remote.c: Update.
8434 * riscv-tdep.c: Update.
8435 * rs6000-aix-tdep.c: Update.
8436 * rs6000-tdep.c: Update.
8437 * rust-exp.y: Update.
8438 * rust-lang.c: Update.
8439 * s390-tdep.c: Update.
8440 * selftest-arch.c: Update.
8441 * solib-dsbt.c: Update.
8442 * solib-frv.c: Update.
8443 * solib-spu.c: Update.
8444 * solib-svr4.c: Update.
8445 * solib.c: Update.
8446 * sparc64-linux-tdep.c: Update.
8447 * stack.c: Update.
8448 * symfile-mem.c: Update.
8449 * symmisc.c: Update.
8450 * target.c: Update.
8451 * thread.c: Update.
8452 * top.c: Update.
8453 * tracefile-tfile.c: Update.
8454 * tui/tui.c: Update.
8455 * typeprint.c: Update.
8456 * unittests/cli-utils-selftests.c: Update.
8457 * unittests/parse-connection-spec-selftests.c: Update.
8458 * valops.c: Update.
8459 * valprint.c: Update.
8460 * value.c: Update.
8461 * varobj.c: Update.
8462 * windows-nat.c: Update.
8463 * x86-linux-nat.c: Update.
8464 * xml-support.c: Update.
8465
a70b8144
TT
84662019-04-08 Tom Tromey <tom@tromey.com>
8467
8468 * xml-support.c: Use C++ exception handling.
8469 * x86-linux-nat.c: Use C++ exception handling.
8470 * windows-nat.c: Use C++ exception handling.
8471 * varobj.c: Use C++ exception handling.
8472 * value.c: Use C++ exception handling.
8473 * valprint.c: Use C++ exception handling.
8474 * valops.c: Use C++ exception handling.
8475 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8476 handling.
8477 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8478 * typeprint.c: Use C++ exception handling.
8479 * tui/tui.c: Use C++ exception handling.
8480 * tracefile-tfile.c: Use C++ exception handling.
8481 * top.c: Use C++ exception handling.
8482 * thread.c: Use C++ exception handling.
8483 * target.c: Use C++ exception handling.
8484 * symmisc.c: Use C++ exception handling.
8485 * symfile-mem.c: Use C++ exception handling.
8486 * stack.c: Use C++ exception handling.
8487 * sparc64-linux-tdep.c: Use C++ exception handling.
8488 * solib.c: Use C++ exception handling.
8489 * solib-svr4.c: Use C++ exception handling.
8490 * solib-spu.c: Use C++ exception handling.
8491 * solib-frv.c: Use C++ exception handling.
8492 * solib-dsbt.c: Use C++ exception handling.
8493 * selftest-arch.c: Use C++ exception handling.
8494 * s390-tdep.c: Use C++ exception handling.
8495 * rust-lang.c: Use C++ exception handling.
8496 * rust-exp.y: Use C++ exception handling.
8497 * rs6000-tdep.c: Use C++ exception handling.
8498 * rs6000-aix-tdep.c: Use C++ exception handling.
8499 * riscv-tdep.c: Use C++ exception handling.
8500 * remote.c: Use C++ exception handling.
8501 * remote-fileio.c: Use C++ exception handling.
8502 * record-full.c: Use C++ exception handling.
8503 * record-btrace.c: Use C++ exception handling.
8504 * python/python.c: Use C++ exception handling.
8505 * python/py-value.c: Use C++ exception handling.
8506 * python/py-utils.c: Use C++ exception handling.
8507 * python/py-unwind.c: Use C++ exception handling.
8508 * python/py-type.c: Use C++ exception handling.
8509 * python/py-symbol.c: Use C++ exception handling.
8510 * python/py-record.c: Use C++ exception handling.
8511 * python/py-record-btrace.c: Use C++ exception handling.
8512 * python/py-progspace.c: Use C++ exception handling.
8513 * python/py-prettyprint.c: Use C++ exception handling.
8514 * python/py-param.c: Use C++ exception handling.
8515 * python/py-objfile.c: Use C++ exception handling.
8516 * python/py-linetable.c: Use C++ exception handling.
8517 * python/py-lazy-string.c: Use C++ exception handling.
8518 * python/py-infthread.c: Use C++ exception handling.
8519 * python/py-inferior.c: Use C++ exception handling.
8520 * python/py-gdb-readline.c: Use C++ exception handling.
8521 * python/py-framefilter.c: Use C++ exception handling.
8522 * python/py-frame.c: Use C++ exception handling.
8523 * python/py-finishbreakpoint.c: Use C++ exception handling.
8524 * python/py-cmd.c: Use C++ exception handling.
8525 * python/py-breakpoint.c: Use C++ exception handling.
8526 * python/py-arch.c: Use C++ exception handling.
8527 * printcmd.c: Use C++ exception handling.
8528 * ppc-linux-tdep.c: Use C++ exception handling.
8529 * parse.c: Use C++ exception handling.
8530 * p-valprint.c: Use C++ exception handling.
8531 * objc-lang.c: Use C++ exception handling.
8532 * mi/mi-main.c: Use C++ exception handling.
8533 * mi/mi-interp.c: Use C++ exception handling.
8534 * mi/mi-cmd-stack.c: Use C++ exception handling.
8535 * mi/mi-cmd-break.c: Use C++ exception handling.
8536 * main.c: Use C++ exception handling.
8537 * linux-thread-db.c: Use C++ exception handling.
8538 * linux-tdep.c: Use C++ exception handling.
8539 * linux-nat.c: Use C++ exception handling.
8540 * linux-fork.c: Use C++ exception handling.
8541 * linespec.c: Use C++ exception handling.
8542 * language.c: Use C++ exception handling.
8543 * jit.c: Use C++ exception handling.
8544 * infrun.c: Use C++ exception handling.
8545 * infcmd.c: Use C++ exception handling.
8546 * infcall.c: Use C++ exception handling.
8547 * inf-loop.c: Use C++ exception handling.
8548 * i386-tdep.c: Use C++ exception handling.
8549 * i386-linux-tdep.c: Use C++ exception handling.
8550 * guile/scm-value.c: Use C++ exception handling.
8551 * guile/scm-type.c: Use C++ exception handling.
8552 * guile/scm-symtab.c: Use C++ exception handling.
8553 * guile/scm-symbol.c: Use C++ exception handling.
8554 * guile/scm-pretty-print.c: Use C++ exception handling.
8555 * guile/scm-ports.c: Use C++ exception handling.
8556 * guile/scm-param.c: Use C++ exception handling.
8557 * guile/scm-math.c: Use C++ exception handling.
8558 * guile/scm-lazy-string.c: Use C++ exception handling.
8559 * guile/scm-frame.c: Use C++ exception handling.
8560 * guile/scm-disasm.c: Use C++ exception handling.
8561 * guile/scm-cmd.c: Use C++ exception handling.
8562 * guile/scm-breakpoint.c: Use C++ exception handling.
8563 * guile/scm-block.c: Use C++ exception handling.
8564 * guile/guile-internal.h: Use C++ exception handling.
8565 * gnu-v3-abi.c: Use C++ exception handling.
8566 * gdbtypes.c: Use C++ exception handling.
8567 * frame.c: Use C++ exception handling.
8568 * frame-unwind.c: Use C++ exception handling.
8569 * fbsd-tdep.c: Use C++ exception handling.
8570 * f-valprint.c: Use C++ exception handling.
8571 * exec.c: Use C++ exception handling.
8572 * event-top.c: Use C++ exception handling.
8573 * event-loop.c: Use C++ exception handling.
8574 * eval.c: Use C++ exception handling.
8575 * dwarf2read.c: Use C++ exception handling.
8576 * dwarf2loc.c: Use C++ exception handling.
8577 * dwarf2-frame.c: Use C++ exception handling.
8578 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8579 * dwarf-index-write.c: Use C++ exception handling.
8580 * dwarf-index-cache.c: Use C++ exception handling.
8581 * dtrace-probe.c: Use C++ exception handling.
8582 * disasm-selftests.c: Use C++ exception handling.
8583 * darwin-nat.c: Use C++ exception handling.
8584 * cp-valprint.c: Use C++ exception handling.
8585 * cp-support.c: Use C++ exception handling.
8586 * cp-abi.c: Use C++ exception handling.
8587 * corelow.c: Use C++ exception handling.
8588 * completer.c: Use C++ exception handling.
8589 * compile/compile-object-run.c: Use C++ exception handling.
8590 * compile/compile-object-load.c: Use C++ exception handling.
8591 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8592 * compile/compile-c-symbols.c: Use C++ exception handling.
8593 * common/selftest.c: Use C++ exception handling.
8594 * common/new-op.c: Use C++ exception handling.
8595 * cli/cli-script.c: Use C++ exception handling.
8596 * cli/cli-interp.c: Use C++ exception handling.
8597 * cli/cli-cmds.c: Use C++ exception handling.
8598 * c-varobj.c: Use C++ exception handling.
8599 * btrace.c: Use C++ exception handling.
8600 * breakpoint.c: Use C++ exception handling.
8601 * break-catch-throw.c: Use C++ exception handling.
8602 * arch-utils.c: Use C++ exception handling.
8603 * amd64-tdep.c: Use C++ exception handling.
8604 * ada-valprint.c: Use C++ exception handling.
8605 * ada-typeprint.c: Use C++ exception handling.
8606 * ada-lang.c: Use C++ exception handling.
8607 * aarch64-tdep.c: Use C++ exception handling.
8608
3d6e9d23
TT
86092019-04-08 Tom Tromey <tom@tromey.com>
8610
8611 * xml-support.c (gdb_xml_parser::parse): Update.
8612 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8613 * value.c (show_convenience): Update.
8614 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8615 (test_parse_flags_qcs): Update.
8616 * thread.c (thr_try_catch_cmd): Update.
8617 * target.c (target_translate_tls_address): Update.
8618 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8619 (info_frame_command_core, frame_apply_command_count): Update.
8620 * rust-exp.y (rust_lex_exception_test): Update.
8621 * riscv-tdep.c (riscv_print_one_register_info): Update.
8622 * remote.c (remote_target::enable_btrace): Update.
8623 * record-btrace.c (record_btrace_enable_warn): Update.
8624 * python/py-utils.c (gdbpy_convert_exception): Update.
8625 * printcmd.c (do_one_display, print_variable_and_value): Update.
8626 * mi/mi-main.c (mi_print_exception): Update.
8627 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8628 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8629 * linux-nat.c (linux_nat_target::attach): Update.
8630 * linux-fork.c (class scoped_switch_fork_info): Update.
8631 * infrun.c (displaced_step_prepare): Update.
8632 * infcall.c (call_function_by_hand_dummy): Update.
8633 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8634 * gnu-v3-abi.c (print_one_vtable): Update.
8635 * frame.c (get_prev_frame_always): Update.
8636 * f-valprint.c (info_common_command_for_block): Update.
8637 * exec.c (try_open_exec_file): Update.
8638 * exceptions.c (print_exception, exception_print)
8639 (exception_fprintf, exception_print_same): Update.
8640 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8641 * dwarf-index-cache.c (index_cache::store)
8642 (index_cache::lookup_gdb_index): Update.
8643 * darwin-nat.c (maybe_cache_shell): Update.
8644 * cp-valprint.c (cp_print_value_fields): Update.
8645 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8646 (gcc_cplus_symbol_address): Update.
8647 * compile/compile-c-symbols.c (gcc_convert_symbol)
8648 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8649 * common/selftest.c: Update.
8650 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8651 a std::string.
8652 (exception_try_scope_entry, exception_try_scope_exit): Don't
8653 declare.
8654 (struct exception_try_scope): Remove.
8655 (TRY): Don't use exception_try_scope.
8656 (struct gdb_exception): Add constructor, operator=.
8657 <what>: New method.
8658 (struct gdb_exception_RETURN_MASK_ALL)
8659 (struct gdb_exception_RETURN_MASK_ERROR)
8660 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8661 (struct gdb_quit_bad_alloc): Update.
8662 * common/common-exceptions.c (exception_none): Change
8663 initializer.
8664 (struct catcher) <state, exception>: Initialize inline.
8665 <prev>: Remove member.
8666 (current_catcher): Remove.
8667 (catchers): New global.
8668 (exceptions_state_mc_init): Simplify.
8669 (catcher_pop): Remove.
8670 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8671 (try_scope_depth, exception_try_scope_entry)
8672 (exception_try_scope_exit): Remove.
8673 (throw_exception_sjlj): Update.
8674 (exception_messages, exception_messages_size): Remove.
8675 (throw_it): Simplify.
8676 (gdb_exception_sliced_copy): Remove.
8677 (throw_exception_cxx): Update.
8678 * cli/cli-script.c (script_from_file): Update.
8679 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8680 Update.
8681 * ada-valprint.c (ada_val_print): Update.
8682 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8683 (create_excep_cond_exprs): Update.
8684
c5c10118
TT
86852019-04-08 Tom Tromey <tom@tromey.com>
8686
8687 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8688 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8689 (TRY, CATCH, END_CATCH): Remove some definitions.
8690 * common/common-exceptions.c: Don't use GDB_XCPT.
8691 (catcher_list_size): Remove.
8692 (throw_exception, throw_it): Simplify.
8693
4de283e4
TT
86942019-04-05 Tom Tromey <tom@tromey.com>
8695
8696 Revert the header-sorting patch.
8697 * ft32-tdep.c: Revert.
8698 * frv-tdep.c: Revert.
8699 * frv-linux-tdep.c: Revert.
8700 * frame.c: Revert.
8701 * frame-unwind.c: Revert.
8702 * frame-base.c: Revert.
8703 * fork-child.c: Revert.
8704 * findvar.c: Revert.
8705 * findcmd.c: Revert.
8706 * filesystem.c: Revert.
8707 * filename-seen-cache.h: Revert.
8708 * filename-seen-cache.c: Revert.
8709 * fbsd-tdep.c: Revert.
8710 * fbsd-nat.h: Revert.
8711 * fbsd-nat.c: Revert.
8712 * f-valprint.c: Revert.
8713 * f-typeprint.c: Revert.
8714 * f-lang.c: Revert.
8715 * extension.h: Revert.
8716 * extension.c: Revert.
8717 * extension-priv.h: Revert.
8718 * expprint.c: Revert.
8719 * exec.h: Revert.
8720 * exec.c: Revert.
8721 * exceptions.c: Revert.
8722 * event-top.c: Revert.
8723 * event-loop.c: Revert.
8724 * eval.c: Revert.
8725 * elfread.c: Revert.
8726 * dwarf2read.h: Revert.
8727 * dwarf2read.c: Revert.
8728 * dwarf2loc.c: Revert.
8729 * dwarf2expr.h: Revert.
8730 * dwarf2expr.c: Revert.
8731 * dwarf2-frame.c: Revert.
8732 * dwarf2-frame-tailcall.c: Revert.
8733 * dwarf-index-write.h: Revert.
8734 * dwarf-index-write.c: Revert.
8735 * dwarf-index-common.c: Revert.
8736 * dwarf-index-cache.h: Revert.
8737 * dwarf-index-cache.c: Revert.
8738 * dummy-frame.c: Revert.
8739 * dtrace-probe.c: Revert.
8740 * disasm.h: Revert.
8741 * disasm.c: Revert.
8742 * disasm-selftests.c: Revert.
8743 * dictionary.c: Revert.
8744 * dicos-tdep.c: Revert.
8745 * demangle.c: Revert.
8746 * dcache.h: Revert.
8747 * dcache.c: Revert.
8748 * darwin-nat.h: Revert.
8749 * darwin-nat.c: Revert.
8750 * darwin-nat-info.c: Revert.
8751 * d-valprint.c: Revert.
8752 * d-namespace.c: Revert.
8753 * d-lang.c: Revert.
8754 * ctf.c: Revert.
8755 * csky-tdep.c: Revert.
8756 * csky-linux-tdep.c: Revert.
8757 * cris-tdep.c: Revert.
8758 * cris-linux-tdep.c: Revert.
8759 * cp-valprint.c: Revert.
8760 * cp-support.c: Revert.
8761 * cp-namespace.c: Revert.
8762 * cp-abi.c: Revert.
8763 * corelow.c: Revert.
8764 * corefile.c: Revert.
8765 * continuations.c: Revert.
8766 * completer.h: Revert.
8767 * completer.c: Revert.
8768 * complaints.c: Revert.
8769 * coffread.c: Revert.
8770 * coff-pe-read.c: Revert.
8771 * cli-out.h: Revert.
8772 * cli-out.c: Revert.
8773 * charset.c: Revert.
8774 * c-varobj.c: Revert.
8775 * c-valprint.c: Revert.
8776 * c-typeprint.c: Revert.
8777 * c-lang.c: Revert.
8778 * buildsym.c: Revert.
8779 * buildsym-legacy.c: Revert.
8780 * build-id.h: Revert.
8781 * build-id.c: Revert.
8782 * btrace.c: Revert.
8783 * bsd-uthread.c: Revert.
8784 * breakpoint.h: Revert.
8785 * breakpoint.c: Revert.
8786 * break-catch-throw.c: Revert.
8787 * break-catch-syscall.c: Revert.
8788 * break-catch-sig.c: Revert.
8789 * blockframe.c: Revert.
8790 * block.c: Revert.
8791 * bfin-tdep.c: Revert.
8792 * bfin-linux-tdep.c: Revert.
8793 * bfd-target.c: Revert.
8794 * bcache.c: Revert.
8795 * ax-general.c: Revert.
8796 * ax-gdb.h: Revert.
8797 * ax-gdb.c: Revert.
8798 * avr-tdep.c: Revert.
8799 * auxv.c: Revert.
8800 * auto-load.c: Revert.
8801 * arm-wince-tdep.c: Revert.
8802 * arm-tdep.c: Revert.
8803 * arm-symbian-tdep.c: Revert.
8804 * arm-pikeos-tdep.c: Revert.
8805 * arm-obsd-tdep.c: Revert.
8806 * arm-nbsd-tdep.c: Revert.
8807 * arm-nbsd-nat.c: Revert.
8808 * arm-linux-tdep.c: Revert.
8809 * arm-linux-nat.c: Revert.
8810 * arm-fbsd-tdep.c: Revert.
8811 * arm-fbsd-nat.c: Revert.
8812 * arm-bsd-tdep.c: Revert.
8813 * arch-utils.c: Revert.
8814 * arc-tdep.c: Revert.
8815 * arc-newlib-tdep.c: Revert.
8816 * annotate.h: Revert.
8817 * annotate.c: Revert.
8818 * amd64-windows-tdep.c: Revert.
8819 * amd64-windows-nat.c: Revert.
8820 * amd64-tdep.c: Revert.
8821 * amd64-sol2-tdep.c: Revert.
8822 * amd64-obsd-tdep.c: Revert.
8823 * amd64-obsd-nat.c: Revert.
8824 * amd64-nbsd-tdep.c: Revert.
8825 * amd64-nbsd-nat.c: Revert.
8826 * amd64-nat.c: Revert.
8827 * amd64-linux-tdep.c: Revert.
8828 * amd64-linux-nat.c: Revert.
8829 * amd64-fbsd-tdep.c: Revert.
8830 * amd64-fbsd-nat.c: Revert.
8831 * amd64-dicos-tdep.c: Revert.
8832 * amd64-darwin-tdep.c: Revert.
8833 * amd64-bsd-nat.c: Revert.
8834 * alpha-tdep.c: Revert.
8835 * alpha-obsd-tdep.c: Revert.
8836 * alpha-nbsd-tdep.c: Revert.
8837 * alpha-mdebug-tdep.c: Revert.
8838 * alpha-linux-tdep.c: Revert.
8839 * alpha-linux-nat.c: Revert.
8840 * alpha-bsd-tdep.c: Revert.
8841 * alpha-bsd-nat.c: Revert.
8842 * aix-thread.c: Revert.
8843 * agent.c: Revert.
8844 * addrmap.c: Revert.
8845 * ada-varobj.c: Revert.
8846 * ada-valprint.c: Revert.
8847 * ada-typeprint.c: Revert.
8848 * ada-tasks.c: Revert.
8849 * ada-lang.c: Revert.
8850 * aarch64-tdep.c: Revert.
8851 * aarch64-ravenscar-thread.c: Revert.
8852 * aarch64-newlib-tdep.c: Revert.
8853 * aarch64-linux-tdep.c: Revert.
8854 * aarch64-linux-nat.c: Revert.
8855 * aarch64-fbsd-tdep.c: Revert.
8856 * aarch64-fbsd-nat.c: Revert.
8857 * aarch32-linux-nat.c: Revert.
8858
d55e5aa6
TT
88592019-04-05 Tom Tromey <tom@tromey.com>
8860
8861 * ft32-tdep.c: Sort headers.
8862 * frv-tdep.c: Sort headers.
8863 * frv-linux-tdep.c: Sort headers.
8864 * frame.c: Sort headers.
8865 * frame-unwind.c: Sort headers.
8866 * frame-base.c: Sort headers.
8867 * fork-child.c: Sort headers.
8868 * findvar.c: Sort headers.
8869 * findcmd.c: Sort headers.
8870 * filesystem.c: Sort headers.
8871 * filename-seen-cache.h: Sort headers.
8872 * filename-seen-cache.c: Sort headers.
8873 * fbsd-tdep.c: Sort headers.
8874 * fbsd-nat.h: Sort headers.
8875 * fbsd-nat.c: Sort headers.
8876 * f-valprint.c: Sort headers.
8877 * f-typeprint.c: Sort headers.
8878 * f-lang.c: Sort headers.
8879 * extension.h: Sort headers.
8880 * extension.c: Sort headers.
8881 * extension-priv.h: Sort headers.
8882 * expprint.c: Sort headers.
8883 * exec.h: Sort headers.
8884 * exec.c: Sort headers.
8885 * exceptions.c: Sort headers.
8886 * event-top.c: Sort headers.
8887 * event-loop.c: Sort headers.
8888 * eval.c: Sort headers.
8889 * elfread.c: Sort headers.
8890 * dwarf2read.h: Sort headers.
8891 * dwarf2read.c: Sort headers.
8892 * dwarf2loc.c: Sort headers.
8893 * dwarf2expr.h: Sort headers.
8894 * dwarf2expr.c: Sort headers.
8895 * dwarf2-frame.c: Sort headers.
8896 * dwarf2-frame-tailcall.c: Sort headers.
8897 * dwarf-index-write.h: Sort headers.
8898 * dwarf-index-write.c: Sort headers.
8899 * dwarf-index-common.c: Sort headers.
8900 * dwarf-index-cache.h: Sort headers.
8901 * dwarf-index-cache.c: Sort headers.
8902 * dummy-frame.c: Sort headers.
8903 * dtrace-probe.c: Sort headers.
8904 * disasm.h: Sort headers.
8905 * disasm.c: Sort headers.
8906 * disasm-selftests.c: Sort headers.
8907 * dictionary.c: Sort headers.
8908 * dicos-tdep.c: Sort headers.
8909 * demangle.c: Sort headers.
8910 * dcache.h: Sort headers.
8911 * dcache.c: Sort headers.
8912 * darwin-nat.h: Sort headers.
8913 * darwin-nat.c: Sort headers.
8914 * darwin-nat-info.c: Sort headers.
8915 * d-valprint.c: Sort headers.
8916 * d-namespace.c: Sort headers.
8917 * d-lang.c: Sort headers.
8918 * ctf.c: Sort headers.
8919 * csky-tdep.c: Sort headers.
8920 * csky-linux-tdep.c: Sort headers.
8921 * cris-tdep.c: Sort headers.
8922 * cris-linux-tdep.c: Sort headers.
8923 * cp-valprint.c: Sort headers.
8924 * cp-support.c: Sort headers.
8925 * cp-namespace.c: Sort headers.
8926 * cp-abi.c: Sort headers.
8927 * corelow.c: Sort headers.
8928 * corefile.c: Sort headers.
8929 * continuations.c: Sort headers.
8930 * completer.h: Sort headers.
8931 * completer.c: Sort headers.
8932 * complaints.c: Sort headers.
8933 * coffread.c: Sort headers.
8934 * coff-pe-read.c: Sort headers.
8935 * cli-out.h: Sort headers.
8936 * cli-out.c: Sort headers.
8937 * charset.c: Sort headers.
8938 * c-varobj.c: Sort headers.
8939 * c-valprint.c: Sort headers.
8940 * c-typeprint.c: Sort headers.
8941 * c-lang.c: Sort headers.
8942 * buildsym.c: Sort headers.
8943 * buildsym-legacy.c: Sort headers.
8944 * build-id.h: Sort headers.
8945 * build-id.c: Sort headers.
8946 * btrace.c: Sort headers.
8947 * bsd-uthread.c: Sort headers.
8948 * breakpoint.h: Sort headers.
8949 * breakpoint.c: Sort headers.
8950 * break-catch-throw.c: Sort headers.
8951 * break-catch-syscall.c: Sort headers.
8952 * break-catch-sig.c: Sort headers.
8953 * blockframe.c: Sort headers.
8954 * block.c: Sort headers.
8955 * bfin-tdep.c: Sort headers.
8956 * bfin-linux-tdep.c: Sort headers.
8957 * bfd-target.c: Sort headers.
8958 * bcache.c: Sort headers.
8959 * ax-general.c: Sort headers.
8960 * ax-gdb.h: Sort headers.
8961 * ax-gdb.c: Sort headers.
8962 * avr-tdep.c: Sort headers.
8963 * auxv.c: Sort headers.
8964 * auto-load.c: Sort headers.
8965 * arm-wince-tdep.c: Sort headers.
8966 * arm-tdep.c: Sort headers.
8967 * arm-symbian-tdep.c: Sort headers.
8968 * arm-pikeos-tdep.c: Sort headers.
8969 * arm-obsd-tdep.c: Sort headers.
8970 * arm-nbsd-tdep.c: Sort headers.
8971 * arm-nbsd-nat.c: Sort headers.
8972 * arm-linux-tdep.c: Sort headers.
8973 * arm-linux-nat.c: Sort headers.
8974 * arm-fbsd-tdep.c: Sort headers.
8975 * arm-fbsd-nat.c: Sort headers.
8976 * arm-bsd-tdep.c: Sort headers.
8977 * arch-utils.c: Sort headers.
8978 * arc-tdep.c: Sort headers.
8979 * arc-newlib-tdep.c: Sort headers.
8980 * annotate.h: Sort headers.
8981 * annotate.c: Sort headers.
8982 * amd64-windows-tdep.c: Sort headers.
8983 * amd64-windows-nat.c: Sort headers.
8984 * amd64-tdep.c: Sort headers.
8985 * amd64-sol2-tdep.c: Sort headers.
8986 * amd64-obsd-tdep.c: Sort headers.
8987 * amd64-obsd-nat.c: Sort headers.
8988 * amd64-nbsd-tdep.c: Sort headers.
8989 * amd64-nbsd-nat.c: Sort headers.
8990 * amd64-nat.c: Sort headers.
8991 * amd64-linux-tdep.c: Sort headers.
8992 * amd64-linux-nat.c: Sort headers.
8993 * amd64-fbsd-tdep.c: Sort headers.
8994 * amd64-fbsd-nat.c: Sort headers.
8995 * amd64-dicos-tdep.c: Sort headers.
8996 * amd64-darwin-tdep.c: Sort headers.
8997 * amd64-bsd-nat.c: Sort headers.
8998 * alpha-tdep.c: Sort headers.
8999 * alpha-obsd-tdep.c: Sort headers.
9000 * alpha-nbsd-tdep.c: Sort headers.
9001 * alpha-mdebug-tdep.c: Sort headers.
9002 * alpha-linux-tdep.c: Sort headers.
9003 * alpha-linux-nat.c: Sort headers.
9004 * alpha-bsd-tdep.c: Sort headers.
9005 * alpha-bsd-nat.c: Sort headers.
9006 * aix-thread.c: Sort headers.
9007 * agent.c: Sort headers.
9008 * addrmap.c: Sort headers.
9009 * ada-varobj.c: Sort headers.
9010 * ada-valprint.c: Sort headers.
9011 * ada-typeprint.c: Sort headers.
9012 * ada-tasks.c: Sort headers.
9013 * ada-lang.c: Sort headers.
9014 * aarch64-tdep.c: Sort headers.
9015 * aarch64-ravenscar-thread.c: Sort headers.
9016 * aarch64-newlib-tdep.c: Sort headers.
9017 * aarch64-linux-tdep.c: Sort headers.
9018 * aarch64-linux-nat.c: Sort headers.
9019 * aarch64-fbsd-tdep.c: Sort headers.
9020 * aarch64-fbsd-nat.c: Sort headers.
9021 * aarch32-linux-nat.c: Sort headers.
9022
699bd4cf
TT
90232019-04-04 Tom Tromey <tom@tromey.com>
9024
9025 * varobj.c (varobj_create): Update.
9026 * rust-exp.y (struct rust_parser) <update_innermost_block,
9027 lookup_symbol>: New methods.
9028 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9029 Rename.
9030 (rust_parser::rust_lookup_type)
9031 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9032 * printcmd.c (display_command, do_one_display): Update.
9033 * parser-defs.h (struct parser_state) <parser_state>: Add
9034 "tracker" parameter.
9035 (block_tracker): New member.
9036 (class innermost_block_tracker) <innermost_block_tracker>: Add
9037 "types" parameter.
9038 <reset>: Remove method.
9039 (innermost_block): Don't declare.
9040 (null_post_parser): Update.
9041 * parse.c (innermost_block): Remove global.
9042 (write_dollar_variable): Update.
9043 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9044 Remove "tracker_types" parameter.
9045 (parse_expression): Add "tracker" parameter.
9046 (parse_expression_for_completion): Update.
9047 (null_post_parser): Add "tracker" parameter.
9048 * p-exp.y: Update rules.
9049 * m2-exp.y: Update rules.
9050 * language.h (struct language_defn) <la_post_parser>: Add
9051 "tracker" parameter.
9052 * go-exp.y: Update rules.
9053 * f-exp.y: Update rules.
9054 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9055 parameter.
9056 * d-exp.y: Update rules.
9057 * c-exp.y: Update rules.
9058 * breakpoint.c (set_breakpoint_condition): Create an
9059 innermost_block_tracker.
9060 (watch_command_1): Likewise.
9061 * ada-lang.c (resolve): Add "tracker" parameter.
9062 (resolve_subexp): Likewise.
9063 * ada-exp.y (write_var_from_sym): Update.
9064
dac43e32
TT
90652019-04-04 Tom Tromey <tom@tromey.com>
9066
9067 * type-stack.h: New file.
9068 * type-stack.c: New file.
9069 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9070 type-stack.h.
9071 (insert_into_type_stack, insert_type, push_type, push_type_int)
9072 (insert_type_address_space, pop_type, pop_type_int)
9073 (pop_typelist, pop_type_stack, append_type_stack)
9074 (push_type_stack, get_type_stack, push_typelist)
9075 (follow_type_instance_flags, follow_types): Don't declare.
9076 * parse.c (type_stack): Remove global.
9077 (parse_exp_in_context): Update.
9078 (insert_into_type_stack, insert_type, push_type, push_type_int)
9079 (insert_type_address_space, pop_type, pop_type_int)
9080 (pop_typelist, pop_type_stack, append_type_stack)
9081 (push_type_stack, get_type_stack, push_typelist)
9082 (follow_type_instance_flags, follow_types): Remove (moved to
9083 type-stack.c).
9084 * f-exp.y (type_stack): New global.
9085 Update rules.
9086 (push_kind_type, f_parse): Update.
9087 * d-exp.y (type_stack): New global.
9088 Update rules.
9089 (d_parse): Update.
9090 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9091 Update rules.
9092 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9093 (HFILES_NO_SRCDIR): Add type-stack.h.
9094
2a612529
TT
90952019-04-04 Tom Tromey <tom@tromey.com>
9096
9097 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9098 (rust_parser::convert_ast_to_expression, rust_parse)
9099 (rust_lex_test_completion, rust_lex_tests): Update.
9100 * parser-defs.h (struct expr_completion_state): New.
9101 (struct parser_state) <parser_state>: Add completion parameter.
9102 <mark_struct_expression, mark_completion_tag>: New methods.
9103 <parse_completion, m_completion_state>: New members.
9104 (prefixify_expression, null_post_parser): Update.
9105 (mark_struct_expression, mark_completion_tag): Don't declare.
9106 * parse.c (parse_completion, expout_last_struct)
9107 (expout_tag_completion_type, expout_completion_name): Remove
9108 globals.
9109 (parser_state::mark_struct_expression)
9110 (parser_state::mark_completion_tag): Now methods.
9111 (prefixify_expression): Add last_struct parameter.
9112 (prefixify_subexp): Likewise.
9113 (parse_exp_1): Update.
9114 (parse_exp_in_context): Add cstate parameter. Update.
9115 (parse_expression_for_completion): Create an
9116 expr_completion_state.
9117 (null_post_parser): Add "completion" parameter.
9118 * p-exp.y: Update rules.
9119 (yylex): Update.
9120 * language.h (struct language_defn) <la_post_parser>: Add
9121 "completing" parameter.
9122 * go-exp.y: Update rules.
9123 (lex_one_token): Update.
9124 * expression.h (parse_completion): Don't declare.
9125 * d-exp.y: Update rules.
9126 (lex_one_token): Update rules.
9127 * c-exp.y: Update rules.
9128 (lex_one_token): Update.
9129 * ada-lang.c (resolve): Add "parse_completion" parameter.
9130 (resolve_subexp): Likewise.
9131 (ada_resolve_function): Likewise.
9132
43476f0b
TT
91332019-04-04 Tom Tromey <tom@tromey.com>
9134
9135 * parser-defs.h (struct parser_state) <start_arglist,
9136 end_arglist>: New methods.
9137 <arglist_len, m_funcall_chain>: New members.
9138 (arglist_len, start_arglist, end_arglist): Don't declare.
9139 * parse.c (arglist_len, funcall_chain): Remove global.
9140 (start_arglist, end_arglist): Remove functions.
9141 (parse_exp_in_context): Update.
9142 * p-exp.y: Update rules.
9143 * m2-exp.y: Update rules.
9144 * go-exp.y: Update rules.
9145 * f-exp.y: Update rules.
9146 * d-exp.y: Update rules.
9147 * c-exp.y: Update rules.
9148
5776fca3
TT
91492019-04-04 Tom Tromey <tom@tromey.com>
9150
9151 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9152 lex_operator, push_back>: New methods.
9153 Update all rules.
9154 (rust_parser::lex_hex, lex_escape): Rename and update.
9155 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9156 (rust_parser::lex_operator): Rename and update.
9157 (rust_parser::lex_number, rustyylex, rustyyerror)
9158 (rust_lex_test_init, rust_lex_test_sequence)
9159 (rust_lex_test_push_back, rust_lex_tests): Update.
9160 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9161 parameter.
9162 <lexptr, prev_lexptr>: New members.
9163 (lexptr, prev_lexptr): Don't declare.
9164 * parse.c (lexptr, prev_lexptr): Remove globals.
9165 (parse_exp_in_context): Update.
9166 * p-exp.y (yylex, yyerror): Update.
9167 * m2-exp.y (parse_number, yylex, yyerror): Update.
9168 * go-exp.y (lex_one_token, yyerror): Update.
9169 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9170 * d-exp.y (lex_one_token, yyerror): Update.
9171 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9172 (lex_one_token, yyerror): Update.
9173 * ada-lex.l (YY_INPUT): Update.
9174 (rewind_to_char): Update.
9175 * ada-exp.y (yyerror): Update.
9176
8621b685
TT
91772019-04-04 Tom Tromey <tom@tromey.com>
9178
9179 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9180 * parser-defs.h (struct parser_state) <parser_state>: Add new
9181 parameter.
9182 <comma_terminates>: New member.
9183 (comma_terminates): Don't declare global.
9184 * parse.c (comma_terminates): Remove global.
9185 (parse_exp_in_context): Update.
9186 * p-exp.y (yylex): Update.
9187 * m2-exp.y (yylex): Update.
9188 * go-exp.y (lex_one_token): Update.
9189 * f-exp.y (yylex): Update.
9190 * d-exp.y (lex_one_token): Update.
9191 * c-exp.y (lex_one_token): Update.
9192 * ada-lex.l: Update.
9193
28aaf3fd
TT
91942019-04-04 Tom Tromey <tom@tromey.com>
9195
9196 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9197 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9198 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9199 * parser-defs.h (paren_depth): Don't declare.
9200 * parse.c (paren_depth): Remove global.
9201 (parse_exp_in_context): Update.
9202 * p-exp.y (paren_depth): New global.
9203 (pascal_parse): Initialize it.
9204 * m2-exp.y (paren_depth): New global.
9205 (m2_parse): Initialize it.
9206 * go-exp.y (paren_depth): New global.
9207 (go_parse): Initialize it.
9208 * f-exp.y (paren_depth): New global.
9209 (f_parse): Initialize it.
9210 * d-exp.y (paren_depth): New global.
9211 (d_parse): Initialize it.
9212 * c-exp.y (paren_depth): New global.
9213 (c_parse): Initialize it.
9214 * ada-lex.l (paren_depth): New global.
9215 (lexer_init): Initialize it.
9216
1e58a4a4
TT
92172019-04-04 Tom Tromey <tom@tromey.com>
9218
9219 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9220 (rust_parser::convert_ast_to_type)
9221 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9222 * parser-defs.h (struct parser_state) <parser_state>: Add
9223 parameters. Initialize new members.
9224 <expression_context_block, expression_context_pc>: New members.
9225 * parse.c (expression_context_block, expression_context_pc):
9226 Remove globals.
9227 (parse_exp_in_context): Update.
9228 * p-exp.y: Update all rules.
9229 (yylex): Update.
9230 * m2-exp.y: Update all rules.
9231 (yylex): Update.
9232 * go-exp.y (yylex): Update.
9233 * f-exp.y (yylex): Update.
9234 * d-exp.y: Update all rules.
9235 (yylex): Update.
9236 * c-exp.y: Update all rules.
9237 (lex_one_token, classify_name, yylex, c_parse): Update.
9238 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9239
37eedb39
TT
92402019-04-04 Tom Tromey <tom@tromey.com>
9241
9242 * gdbarch.h, gdbarch.c: Rebuild.
9243 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9244 * stap-probe.h:
9245 (struct stap_parse_info): Replace "parser_state" with
9246 "expr_builder".
9247 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9248 (parser_state): New class.
9249 * parse.c (expr_builder): Rename.
9250 (expr_builder::release): Rename.
9251 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9252 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9253 (write_exp_elt_longcst, write_exp_elt_floatcst)
9254 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9255 (write_exp_string_vector, write_exp_bitstring)
9256 (write_exp_msymbol, mark_struct_expression)
9257 (write_dollar_variable)
9258 (insert_type_address_space, increase_expout_size): Replace
9259 "parser_state" with "expr_builder".
9260 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9261 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9262 "parser_state" with "expr_builder".
9263
73923d7e
TT
92642019-04-04 Tom Tromey <tom@tromey.com>
9265
9266 * rust-exp.y: Replace "parse_language" with method call.
9267 * p-exp.y:
9268 (yylex): Replace "parse_language" with method call.
9269 * m2-exp.y:
9270 (yylex): Replace "parse_language" with method call.
9271 * go-exp.y (classify_name): Replace "parse_language" with method
9272 call.
9273 * f-exp.y (yylex): Replace "parse_language" with method call.
9274 * d-exp.y (lex_one_token): Replace "parse_language" with method
9275 call.
9276 * c-exp.y:
9277 (lex_one_token, classify_name, yylex): Replace "parse_language"
9278 with method call.
9279 * ada-exp.y (find_primitive_type, type_char)
9280 (type_system_address): Replace "parse_language" with method call.
9281
fa9f5be6
TT
92822019-04-04 Tom Tromey <tom@tromey.com>
9283
9284 * rust-exp.y: Replace "parse_gdbarch" with method call.
9285 * parse.c (write_dollar_variable, insert_type_address_space):
9286 Replace "parse_gdbarch" with method call.
9287 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9288 call.
9289 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9290 call.
9291 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9292 "parse_gdbarch" with method call.
9293 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9294 with method call.
9295 * f-exp.y (parse_type, parse_f_type, yylex): Replace
9296 "parse_gdbarch" with method call.
9297 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9298 "parse_gdbarch" with method call.
9299 * c-exp.y (parse_type, parse_number, classify_name): Replace
9300 "parse_gdbarch" with method call.
9301 * ada-lex.l: Replace "parse_gdbarch" with method call.
9302 * ada-exp.y (parse_type, find_primitive_type, type_char)
9303 (type_system_address): Replace "parse_gdbarch" with method call.
9304
1201a264
TT
93052019-04-04 Tom Tromey <tom@tromey.com>
9306
9307 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9308 * stap-probe.c (stap_parse_argument): Update.
9309 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9310 initial_size parameter.
9311 * rust-exp.y (rust_lex_tests): Update.
9312 * parse.c (parser_state): Update.
9313 (parse_exp_in_context): Update.
9314 * parser-defs.h (struct parser_state) <parser_state>: Remove
9315 "initial_size" parameter.
9316
e3980ce2
TT
93172019-04-04 Tom Tromey <tom@tromey.com>
9318
9319 * parser-defs.h (increase_expout_size): Don't declare.
9320 * parse.c (increase_expout_size): Now static.
9321
e9f8e3f1
TS
93222019-04-04 Thomas Schwinge <thomas@codesourcery.com>
9323
9324 * gnu-nat.c (gnu_nat_target::wait): Fix
9325 target_waitstatus_to_string call.
9326
d7df6549
AB
93272019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9328
9329 * eval.c (evaluate_subexp_standard): Handle internal functions
9330 during Fortran function call handling.
9331
8bdc1658
AB
93322019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9333
9334 * NEWS: Mention new internal functions.
9335 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9336 (read_base_type): Use dwarf2_init_complex_target_type.
9337 * value.c (creal_internal_fn): New function.
9338 (cimag_internal_fn): New function.
9339 (_initialize_values): Register new internal functions.
9340
c29705b7
PW
93412019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9342
9343 * infrun.c (stop_all_threads): If debug_infrun, always
9344 trace the wait status after wait_one, using
9345 target_waitstatus_to_string and target_pid_to_str.
9346 (handle_inferior_event): Replace various trace of
9347 wait status kind by a single trace.
9348 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9349 wait status kind image by target_waitstatus_to_string.
9350 * target/waitstatus.c (target_waitstatus_to_string): Fix
9351 obsolete comment.
9352
05caa1d2
TT
93532019-04-01 Tom Tromey <tromey@adacore.com>
9354
9355 PR symtab/23331:
9356 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9357
9d1447e0
SDJ
93582019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9359 Pedro Alves <palves@redhat.com>
9360
9361 * top.c (quit_force): Call 'finalize_values'.
9362 * value.c (finalize_values): New function.
9363 * value.h (finalize_values): Declare.
9364
7734102d
EZ
93652019-03-30 Eli Zaretskii <eliz@gnu.org>
9366
9367 * NEWS: Announce $_gdb_major and $_gdb_minor.
9368
9369 * top.c (init_gdb_version_vars): New function.
9370 (gdb_init): Call init_gdb_version_vars.
9371
188e1fa9
TT
93722019-03-29 Tom Tromey <tromey@adacore.com>
9373
9374 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9375 help text. Remove dead code.
9376
2880242d
KS
93772019-03-29 Keith Seitz <keiths@redhat.com>
9378
9379 From Siddhesh Poyarekar:
9380 * f-lang.h (f77_get_upperbound): Return LONGEST.
9381 (f77_get_lowerbound): Likewise.
9382 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9383 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9384 print them.
9385 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9386 plongest to format print it.
9387 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9388 (f77_get_upperbound): Likewise.
9389 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9390 LOWER_BOUND to LONGEST.
9391 (f77_create_arrayprint_offset_tbl): Likewise.
9392
cc1defb1
KS
93932019-03-29 Keith Seitz <keiths@redhat.com>
9394
9395 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9396 %s/pulongest for TYPE_LENGTH instead of %d in format
9397 strings.
9398 * ada-typerint.c (ada_print_type): Likewise.
9399 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9400 * compile/compile-c-support.c (generate_register_struct): Likewise.
9401 * gdbtypes.c (recursive_dump_type): Likewise.
9402 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9403 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9404 instead of %d in format strings.
9405 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9406 to std::min to ULONGEST.
9407 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9408 instead of %d in format strings.
9409 * tracepoint.c (info_scope_command): Likewise.
9410 * typeprint.c (print_offset_data::update)
9411 (print_offset_data::finish): Likewise.
9412 * xtensa-tdep.c (xtensa_store_return_value)
9413 (xtensa_push_dummy_call): Likewise.
9414
e432ccf1
JT
94152019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9416
9417 * windows-nat.c (display_selector): Fixed format specifications
9418 for 64-bit Cygwin.
9419
65d2b333
PW
94202019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9421
9422 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9423
f489207e
SL
94242019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9425
9426 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9427 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9428 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9429 (nios2_linux_init_abi): Install it.
9430
bffa1015
AH
94312019-03-28 Alan Hayward <alan.hayward@arm.com>
9432
9433 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9434
fc96163a
AH
94352019-03-28 Alan Hayward <alan.hayward@arm.com>
9436
9437 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9438
20dc7e9b
PW
94392019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9440 Tom Tromey <tromey@adacore.com>
9441
9442 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9443
7f5331a8
JB
94442019-03-26 Joel Brobecker <brobecker@adacore.com>
9445
9446 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9447 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9448 method to compute the bounds of range types. Also print "[evaluated]"
9449 if the bounds' values come from a dynamic evaluation.
9450
18c77628
AB
94512019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9452
9453 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9454 whitespace when pretty printing is on.
9455
53c973f2
AH
94562019-03-26 Alan Hayward <alan.hayward@arm.com>
9457
e79be6e5 9458 * ppc-linux-nat.c: Add include.
53c973f2 9459
d851aa71
AH
94602019-03-26 Alan Hayward <alan.hayward@arm.com>
9461
e79be6e5 9462 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 9463
2fe7bab7
AH
94642019-03-26 Alan Hayward <alan.hayward@arm.com>
9465
e79be6e5 9466 * arm-linux-nat.c: Add include.
2fe7bab7 9467
068ef30e
SM
94682019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9469
9470 * source-cache.c (source_cache::get_source_lines): Re-read
9471 fullname after calling open_source_file.
9472
81a24d04
JB
94732019-03-25 John Baldwin <jhb@FreeBSD.org>
9474
9475 * NEWS: Mention TLS support for FreeBSD.
9476
79e7ae11
TT
94772019-03-25 Tom Tromey <tromey@adacore.com>
9478
9479 * minsyms.c (BUNCH_SIZE): Update comment.
9480 (~minimal_symbol_reader): Remove old comment.
9481 (compact_minimal_symbols): Update comment.
9482 (minimal_symbol_reader::install): Remove old comment. Update
9483 other comments.
9484
d45963c2
AH
94852019-03-25 Alan Hayward <alan.hayward@arm.com>
9486
9487 * s390-linux-nat.c: Add include.
9488
0f83012e
AH
94892019-03-25 Alan Hayward <alan.hayward@arm.com>
9490
9491 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9492 Call linux_get_hwcap.
9493 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9494 Likewise.
9495 (aarch64_linux_get_hwcap): Remove function.
9496 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9497 declaration.
9498 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9499 linux_get_hwcap.
9500 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9501 * linux-tdep.c (linux_get_hwcap): Add function.
9502 (linux_get_hwcap2): Likewise.
9503 * linux-tdep.h (linux_get_hwcap): Add declaration.
9504 (linux_get_hwcap2): Likewise.
9505 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9506 (ppc_linux_get_hwcap2): Likewise.
9507 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9508 linux_get_hwcap.
9509 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9510 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9511 (ppc_linux_nat_target::read_description): Likewise.
9512 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9513 * s390-linux-nat.c: Likewise.
9514 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9515
6640a367
TT
95162019-03-24 Tom Tromey <tom@tromey.com>
9517
9518 * ada-lang.c (standard_lookup): Simplify initialization.
9519 (ada_lookup_symbol_nonlocal): Simplify return.
9520 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9521 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9522 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9523 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9524 initialization.
9525 * solib.c (solib_global_lookup): Simplify.
9526 * symtab.c (null_block_symbol): Remove.
9527 (symbol_cache_lookup): Simplify returns.
9528 (lookup_language_this): Simplify returns.
9529 (lookup_symbol_aux): Simplify return.
9530 (lookup_local_symbol): Simplify returns.
9531 (lookup_global_symbol_from_objfile): Simplify return.
9532 (lookup_symbol_in_objfile_symtabs)
9533 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9534 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9535 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9536 * cp-namespace.c (cp_lookup_bare_symbol)
9537 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9538 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9539 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9540 (cp_lookup_symbol_via_imports): Simplify initialization.
9541 (find_symbol_in_baseclass): Likewise.
9542 * symtab.h (null_block_symbol): Remove.
9543 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9544 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9545 (d_lookup_symbol_module): Likewise.
9546 (find_symbol_in_baseclass): Simplify initialization.
9547
a930ebcd
TT
95482019-03-24 Tom Tromey <tom@tromey.com>
9549
9550 * expression.h: Don't include symtab.h.
9551 (struct block): Forward declare.
9552
582942f4
TT
95532019-03-24 Tom Tromey <tom@tromey.com>
9554
9555 * c-exp.y (typebase): Remove casts.
9556 * gdbtypes.c (lookup_unsigned_typename, )
9557 (lookup_signed_typename): Remove cast.
9558 * eval.c (parse_to_comma_and_eval): Remove cast.
9559 * parse.c (write_dollar_variable): Remove cast.
9560 * block.h (struct block) <superblock>: Now const.
9561 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9562 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9563 (map_block): Make "block" const.
9564 * symfile.h (struct quick_symbol_functions)
9565 <map_matching_symbols>: Constify block argument to "callback".
9566 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9567 const.
9568 (find_pc_sect_compunit_symtab): Make "b" const.
9569 (find_symbol_at_address): Likewise.
9570 (search_symbols): Likewise.
9571 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9572 (dw2_debug_names_lookup_symbol): Likewise.
9573 (dw2_map_matching_symbols): Update.
9574 * p-valprint.c (pascal_val_print): Remove "block".
9575 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9576 (aux_add_nonlocal_symbols): Make "block" const.
9577 (resolve_subexp): Remove cast.
9578 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9579 const.
9580 (iterate_over_file_blocks): Likewise.
9581 * f-exp.y (%union) <bval>: Remove.
9582 * coffread.c (patch_opaque_types): Make "b" const.
9583 * spu-tdep.c (spu_catch_start): Make "block" const.
9584 * c-valprint.c (print_unpacked_pointer): Remove "block".
9585 * symmisc.c (dump_symtab_1): Make "b" const.
9586 (block_depth): Make "block" const.
9587 * d-exp.y (%union) <bval>: Remove.
9588 * cp-support.h (cp_lookup_rtti_type): Update.
9589 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9590 * psymtab.c (psym_lookup_symbol): Make "block" const.
9591 (maintenance_check_psymtabs): Make "b" const.
9592 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9593 (enumerate_locals, enumerate_args): Update.
9594 * python/py-symtab.c (stpy_global_block): Make "block" const.
9595 (stpy_static_block): Likewise.
9596 * inline-frame.c (block_starting_point_at): Make "new_block"
9597 const.
9598 * block.c (find_block_in_blockvector): Make return type const.
9599 (blockvector_for_pc_sect): Make "b" const.
9600 (find_block_in_blockvector): Make "b" const.
9601
7ad417dd
TT
96022019-03-23 Tom Tromey <tom@tromey.com>
9603
9604 * varobj.c (varobj_create): Update.
9605 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9606 * printcmd.c (display_command, do_one_display): Don't reset
9607 innermost_block.
9608 * parser-defs.h (enum innermost_block_tracker_type): Move to
9609 expression.h.
9610 (innermost_block): Update comment.
9611 * parse.c (parse_exp_1): Add tracker_types parameter.
9612 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9613 tracker_types parameter. Reset innermost_block.
9614 (parse_exp_in_context): Remove.
9615 (parse_expression_for_completion): Update.
9616 * objfiles.c (~objfile): Don't reset expression_context_block or
9617 innermost_block.
9618 * expression.h (enum innermost_block_tracker_type): Move from
9619 parser-defs.h.
9620 (parse_exp_1): Add tracker_types parameter.
9621 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9622 reset innermost_block.
9623
b366c208
TT
96242019-03-23 Tom Tromey <tom@tromey.com>
9625
9626 * objfiles.h: Include bcache.h.
9627
9bb9b2f9
TT
96282019-03-23 Tom Tromey <tom@tromey.com>
9629
9630 * linespec.c (get_current_search_block): Use
9631 scoped_restore_current_language.
9632 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9633
59c28372
AH
96342019-03-22 Alan Hayward <alan.hayward@arm.com>
9635 Jiong Wang <jiong.wang@arm.com>
9636
9637 * aarch64-linux-tdep.c
9638 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9639 section.
9640 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9641
17e116a7
AH
96422019-03-22 Alan Hayward <alan.hayward@arm.com>
9643 Jiong Wang <jiong.wang@arm.com>
9644
9645 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9646 instructions.
9647 (aarch64_analyze_prologue_test): Add PACIASP test.
9648 (aarch64_prologue_prev_register): Unmask PC value.
9649
11e1b75f
AH
96502019-03-22 Alan Hayward <alan.hayward@arm.com>
9651 Jiong Wang <jiong.wang@arm.com>
9652
9653 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9654 (aarch64_dwarf2_prev_register): Unmask PC value.
9655 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9656 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9657 DW_CFA_AARCH64_negate_ra_state.
9658 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9659
34dcc7cf
AH
96602019-03-22 Alan Hayward <alan.hayward@arm.com>
9661 Jiong Wang <jiong.wang@arm.com>
9662
9663 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9664 registers.
9665 (aarch64_pseudo_register_name): Likewise.
9666 (aarch64_pseudo_register_type): Likewise.
9667 (aarch64_pseudo_register_reggroup_p): Likewise.
9668 (aarch64_gdbarch_init): Add pauth registers.
9669 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9670 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9671 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9672 (struct gdbarch_tdep): Add regnum for ra_state.
9673
1ef53e6b
AH
96742019-03-22 Alan Hayward <alan.hayward@arm.com>
9675 Jiong Wang <jiong.wang@arm.com>
9676
9677 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9678
76bed0fd
AH
96792019-03-22 Alan Hayward <alan.hayward@arm.com>
9680 Jiong Wang <jiong.wang@arm.com>
9681
9682 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9683 function.
9684 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9685 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9686 (aarch64_gdbarch_init): Add puth registers.
9687 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9688 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9689 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9690
ee4fbcfa
AH
96912019-03-22 Alan Hayward <alan.hayward@arm.com>
9692 Jiong Wang <jiong.wang@arm.com>
9693
9694 * aarch64-linux-nat.c
9695 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9696 * aarch64-linux-tdep.c
9697 (aarch64_linux_core_read_description): Likewise.
9698 (aarch64_linux_get_hwcap): New function.
9699 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9700 (aarch64_linux_get_hwcap): New declaration.
9701
6dc0ebde
AH
97022019-03-22 Alan Hayward <alan.hayward@arm.com>
9703 Jiong Wang <jiong.wang@arm.com>
9704
9705 * aarch64-linux-nat.c
9706 (aarch64_linux_nat_target::read_description): Add pauth param.
9707 * aarch64-linux-tdep.c
9708 (aarch64_linux_core_read_description): Likewise.
9709 * aarch64-tdep.c (struct target_desc): Add in pauth.
9710 (aarch64_read_description): Add pauth param.
9711 (aarch64_gdbarch_init): Likewise.
9712 * aarch64-tdep.h (aarch64_read_description): Likewise.
9713 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9714 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9715 * features/Makefile: Add new files.
9716 * features/aarch64-pauth.c: New file.
9717 * features/aarch64-pauth.xml: New file.
9718
595915c1
TT
97192019-03-20 Tom Tromey <tromey@adacore.com>
9720
9721 * infrun.c (handle_inferior_event): Rename from
9722 handle_inferior_event_1. Create a scoped_value_mark.
9723 (handle_inferior_event): Remove.
9724
4c7d57e7
TT
97252019-03-19 Tom Tromey <tromey@adacore.com>
9726
9727 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9728 * infrun.h (print_stop_event): Add "displays" parameter.
9729 * infrun.c (print_stop_event): Add "displays" parameter.
9730
cb246234
PA
97312019-03-19 Pedro Alves <palves@redhat.com>
9732
9733 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9734 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9735 to -1. Fix TABs vs spaces.
9736 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9737 * tui/tui-out.h (tui_ui_out) Add intro comments.
9738 <m_line, m_start_of_line>: In-class initialize, and add describing
9739 comment.
9740
3a0e45b2
AH
97412019-03-18 Alan Hayward <alan.hayward@arm.com>
9742
9743 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9744 variable names.
9745 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9746
5371b850
PA
97472019-03-18 Pedro Alves <palves@redhat.com>
9748 Eli Zaretskii <eliz@gnu.org>
9749
9750 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9751 m_line and m_start_of_line.
9752
b17c4cd0
EZ
97532019-03-18 Eli Zaretskii <eliz@gnu.org>
9754
9755 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9756 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9757 it returns a newline. This fixes a regression in TU mode, whereby
9758 the next line is output on the same screen line as the user input.
9759
4bd56d18
TT
97602019-03-18 Tom Tromey <tromey@adacore.com>
9761
9762 * minsyms.c (minimal_symbol_reader::install): Remove call to
9763 obstack_blank.
9764
55c10aca
PA
97652019-03-18 Pedro Alves <palves@redhat.com>
9766
9767 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9768 New globals.
9769 (apply_style): New, factored out from ...
9770 (apply_ansi_escape): ... this. Handle reverse video mode.
9771 (tui_set_reverse_mode): New function.
9772 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9773 * tui/tui-winsource.c (tui_show_source_line): Use
9774 tui_set_reverse_mode instead of setting A_STANDOUT.
9775 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9776 New setter methods.
9777
647bb750
HD
97782019-03-18 Hannes Domani <ssbssa@yahoo.de>
9779
9780 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9781 Handle tabs.
9782
bff8c71f
TT
97832019-03-18 Tom Tromey <tromey@adacore.com>
9784
9785 * ada-lang.c (empty_array): Add "high" parameter.
9786 (ada_evaluate_subexp): Update.
9787
58785d98
ST
97882019-03-17 Sergei Trofimovich <siarheit@google.com>
9789
9790 * unittests/string_view-selftests.c: Define
9791 _initialize_string_view_selftests unconditionally.
9792
d4cbef22
ВМ
97932019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9794
9795 PR gdb/24350
9796 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9797
fce4c071
ВМ
97982019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9799
9800 PR gdb/24351
9801 * windows-nat.c (display_selector): Fix format specifiers.
9802
f7f0a123
EZ
98032019-03-17 Eli Zaretskii <eliz@gnu.org>
9804
9805 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9806 tui_refill_source_window instead of tui_refresh_win, to update the
9807 current execution line. This fixes redisplay of the current line
9808 when stepping through the code with "next" or "step".
9809
ab42892f
EZ
98102019-03-16 Eli Zaretskii <eliz@gnu.org>
9811
9812 * source-cache.c (source_cache::get_source_lines): Call
9813 find_source_lines to initialize s->nlines. This fixes vertical
9814 scrolling of TUI source window when the DOWN arrow is pressed.
9815
8d8c087f
PW
98162019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9817
9818 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9819 linux-thread-db.c (_initialize_thread_db): Likewise.
9820
798e1c30
EZ
98212019-03-16 Eli Zaretskii <eliz@gnu.org>
9822
9823 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9824 wclrtoeol in tui_show_source_line". This reverts changes made in
9825 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9826
eefba3da
TT
98272019-03-15 Tom Tromey <tom@tromey.com>
9828
9829 * symtab.h (struct minimal_symbol): Derive from
9830 general_symbol_info.
9831 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9832 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9833 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9834 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9835 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9836 (MSYMBOL_SEARCH_NAME): Update.
9837 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9838 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9839 * minsyms.c (minimal_symbol_reader::record_full): Update.
9840
0de2420c
TT
98412019-03-15 Tom Tromey <tom@tromey.com>
9842
9843 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9844
042d75e4
TT
98452019-03-15 Tom Tromey <tom@tromey.com>
9846
9847 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9848 unique_xmalloc_ptr.
9849 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9850 Update.
9851 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9852 (build_minimal_symbol_hash_tables)
9853 (minimal_symbol_reader::install): Update.
9854
db92718b
TT
98552019-03-15 Tom Tromey <tom@tromey.com>
9856
9857 * symtab.c (create_demangled_names_hash): Update.
9858 (symbol_set_names): Update.
9859 * objfiles.h (struct objfile_per_bfd_storage)
9860 <demangled_names_hash>: Now an htab_up.
9861 * objfiles.c (objfile_per_bfd_storage): Simplify.
9862
d6797f46
TT
98632019-03-15 Tom Tromey <tom@tromey.com>
9864
9865 * objfiles.h (struct objfile_per_bfd_storage): Declare
9866 destructor.
9867 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9868 New.
9869 (get_objfile_bfd_data): Use new. Don't initialize
9870 language_of_main.
9871 (free_objfile_per_bfd_storage): Remove.
9872 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9873
741d7538
TT
98742019-03-15 Tom Tromey <tom@tromey.com>
9875
9876 * symfile.c (reread_symbols): Update.
9877 * objfiles.c (objfile::objfile): Update.
9878 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9879 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9880 comment.
9881 (minimal_symbol_reader::install): Update.
9882 (terminate_minimal_symbol_table): Remove.
9883 * jit.c (jit_object_close_impl): Update.
9884
788c80d1
TT
98852019-03-15 Tom Tromey <tom@tromey.com>
9886
9887 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9888 initializations.
9889
1b7a07cb
TT
98902019-03-15 Tom Tromey <tom@tromey.com>
9891
9892 * objfiles.h (struct objfile_per_bfd_storage)
9893 <demangled_hash_languages>: Now a bitset.
9894 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9895 (lookup_minimal_symbol): Update.
9896
3db066bc
TT
98972019-03-15 Tom Tromey <tom@tromey.com>
9898
9899 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9900 Don't return the symbol.
9901 * coffread.c (record_minimal_symbol): Use record_full.
9902
3fff2c37
EZ
99032019-03-14 Eli Zaretskii <eliz@gnu.org>
9904
9905 The MS-Windows port of ncurses fails to switch to a color pair if
9906 one or both of the colors are the implicit default colors. This
9907 change records the default colors when TUI is initialized, and
9908 then specifies them explicitly when a color pair uses the default
9909 colors. This allows color styling in TUI mode on MS-Windows.
9910
9911 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9912 ncurses_norm_attr.
9913 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9914 colors in ncurses_norm_attr.
9915 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9916 "none", replace it with the default color recorded in
9917 ncurses_norm_attr.
9918
3b336828
TT
99192019-03-14 Tom Tromey <tromey@adacore.com>
9920
9921 * source-cache.h (class source_cache) <get_source_lines>: Return
9922 std::string.
9923 * source-cache.c (source_cache::extract_lines): Handle case where
9924 first_pos==npos. Return std::string.
9925 (source_cache::get_source_lines): Update.
9926
d085f989
TT
99272019-03-14 Tom Tromey <tromey@adacore.com>
9928
9929 * NEWS: Add item for "style sources" commands.
9930 * source-cache.c (source_cache::get_source_lines): Check
9931 source_styling.
9932 * cli/cli-style.c (source_styling): New global.
9933 (_initialize_cli_style): Add "style sources" commands.
9934 (show_style_sources): New function.
9935 * cli/cli-style.h (source_styling): Declare.
9936
6f11e682
TT
99372019-03-14 Pedro Alves <palves@redhat.com>
9938 Tom Tromey <tromey@adacore.com>
9939
9940 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9941 * tui/tui-winsource.c (tui_refill_source_window): New function,
9942 from...
9943 (tui_horizontal_source_scroll): ... here. Move some logic.
9944 * cli/cli-style.c (set_style_enabled): Notify new observable.
9945 * tui/tui-hooks.c (tui_redisplay_source): New function.
9946 (tui_attach_detach_observers): Attach or detach
9947 tui_redisplay_source.
9948 * observable.h (source_styling_changed): New observable.
9949 * observable.c: Define source_styling_changed observable.
9950
a068643d
TT
99512019-03-13 Tom Tromey <tromey@adacore.com>
9952
9953 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9954 (i386_gnu_nat_target::store_registers): Update.
9955 * target-debug.h (target_debug_print_std_string): New macro.
9956 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9957 * windows-tdep.c (display_one_tib): Update.
9958 * tui/tui-stack.c (tui_make_status_line): Update.
9959 * top.c (print_inferior_quit_action): Update.
9960 * thread.c (thr_try_catch_cmd): Update.
9961 (add_thread_with_info): Update.
9962 (thread_target_id_str): Update.
9963 (thr_try_catch_cmd): Update.
9964 (thread_command): Update.
9965 (thread_find_command): Update.
9966 * record-btrace.c (record_btrace_target::info_record)
9967 (record_btrace_resume_thread, record_btrace_target::resume)
9968 (record_btrace_cancel_resume, record_btrace_step_thread)
9969 (record_btrace_target::wait, record_btrace_target::wait)
9970 (record_btrace_target::wait, record_btrace_target::stop): Update.
9971 * progspace.c (print_program_space): Update.
9972 * process-stratum-target.c
9973 (process_stratum_target::thread_address_space): Update.
9974 * linux-fork.c (linux_fork_mourn_inferior)
9975 (detach_checkpoint_command, info_checkpoints_command)
9976 (linux_fork_context): Update.
9977 (linux_fork_detach): Update.
9978 (class scoped_switch_fork_info): Update.
9979 (delete_checkpoint_command): Update.
9980 * infrun.c (follow_fork_inferior): Update.
9981 (follow_fork_inferior): Update.
9982 (proceed_after_vfork_done): Update.
9983 (handle_vfork_child_exec_or_exit): Update.
9984 (follow_exec): Update.
9985 (displaced_step_prepare_throw): Update.
9986 (displaced_step_restore): Update.
9987 (start_step_over): Update.
9988 (resume_1): Update.
9989 (clear_proceed_status_thread): Update.
9990 (proceed): Update.
9991 (print_target_wait_results): Update.
9992 (do_target_wait): Update.
9993 (context_switch): Update.
9994 (stop_all_threads): Update.
9995 (restart_threads): Update.
9996 (finish_step_over): Update.
9997 (handle_signal_stop): Update.
9998 (switch_back_to_stepped_thread): Update.
9999 (keep_going_pass_signal): Update.
10000 (print_exited_reason): Update.
10001 (normal_stop): Update.
10002 * inferior.c (inferior_pid_to_str): Change return type.
10003 (print_selected_inferior): Update.
10004 (add_inferior): Update.
10005 (detach_inferior): Update.
10006 * dummy-frame.c (fprint_dummy_frames): Update.
10007 * dcache.c (dcache_info_1): Update.
10008 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10009 (btrace_fetch, btrace_clear): Update.
10010 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10011 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10012 type.
10013 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10014 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10015 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10016 * gdbarch.c, gdbarch.h: Rebuild.
10017 * gdbarch.sh (core_pid_to_str): Change return type.
10018 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10019 return type.
10020 (windows_nat_target::pid_to_str): Change return type.
10021 (windows_delete_thread): Update.
10022 (windows_nat_target::attach): Update.
10023 (windows_nat_target::files_info): Update.
10024 * target-delegates.c: Rebuild.
10025 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10026 return type.
10027 (sol_thread_target::pid_to_str): Change return type.
10028 * remote.c (class remote_target) <pid_to_str>: Change return
10029 type.
10030 (remote_target::pid_to_str): Change return type.
10031 (extended_remote_target::attach, remote_target::remote_stop_ns)
10032 (remote_target::remote_notif_remove_queued_reply)
10033 (remote_target::push_stop_reply, remote_target::disable_btrace):
10034 Update.
10035 (extended_remote_target::attach): Update.
10036 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10037 type.
10038 (gdbsim_target::pid_to_str): Change return type.
10039 * ravenscar-thread.c (struct ravenscar_thread_target)
10040 <pid_to_str>: Change return type.
10041 (ravenscar_thread_target::pid_to_str): Change return type.
10042 * procfs.c (class procfs_target) <pid_to_str>: Change return
10043 type.
10044 (procfs_target::pid_to_str): Change return type.
10045 (procfs_target::attach): Update.
10046 (procfs_target::detach): Update.
10047 (procfs_target::fetch_registers): Update.
10048 (procfs_target::store_registers): Update.
10049 (procfs_target::wait): Update.
10050 (procfs_target::files_info): Update.
10051 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10052 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10053 return type.
10054 (nto_procfs_target::pid_to_str): Change return type.
10055 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10056 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10057 return type.
10058 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10059 (exit_lwp): Update.
10060 (attach_proc_task_lwp_callback, get_detach_signal)
10061 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10062 (linux_nat_target::resume, wait_lwp, stop_callback)
10063 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10064 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10065 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10066 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10067 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10068 type.
10069 (inf_ptrace_target::attach): Update.
10070 (inf_ptrace_target::files_info): Update.
10071 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10072 type.
10073 (go32_nat_target::pid_to_str): Change return type.
10074 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10075 (gnu_nat_target::wait): Update.
10076 (gnu_nat_target::wait): Update.
10077 (gnu_nat_target::resume): Update.
10078 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10079 (fbsd_nat_target::wait): Update.
10080 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10081 type.
10082 (darwin_nat_target::attach): Update.
10083 * corelow.c (class core_target) <pid_to_str>: Change return type.
10084 (core_target::pid_to_str): Change return type.
10085 * target.c (normal_pid_to_str): Change return type.
10086 (default_pid_to_str): Likewise.
10087 (target_pid_to_str): Change return type.
10088 (target_translate_tls_address): Update.
10089 (target_announce_detach): Update.
10090 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10091 return type.
10092 (bsd_uthread_target::pid_to_str): Change return type.
10093 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10094 type.
10095 (bsd_kvm_target::pid_to_str): Change return type.
10096 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10097 return type.
10098 (aix_thread_target::pid_to_str): Change return type.
10099 * target.h (struct target_ops) <pid_to_str>: Change return type.
10100 (target_pid_to_str, normal_pid_to_str): Likewise.
10101 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10102 type.
10103 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10104 type.
10105 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10106 return type.
10107 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10108 type.
10109 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10110 type.
10111 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10112 return type.
10113
b4be1b06
SM
101142019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10115
10116 * NEWS: Mention that the new default MI version is 3. Mention
10117 changes to the output of commands and events that deal with
10118 multi-location breakpoints.
10119 * breakpoint.c: Include "mi/mi-out.h".
10120 (print_one_breakpoint): Change output syntax if using MI version
10121 >= 3.
10122 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10123 New.
10124 (mi_multi_location_breakpoint_output_fixed): New.
10125 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10126 (mi_cmd_fix_multi_location_breakpoint_output): New.
10127 (mi_multi_location_breakpoint_output_fixed): New.
10128 * mi/mi-cmds.c (mi_cmds): Register command
10129 -fix-multi-location-breakpoint-output.
10130 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10131 interpreter "mi".
10132
8e5e5494
SM
101332019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10134
10135 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10136 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10137 instantiate mi_ui_out based on interpreter name.
10138 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10139 * mi/mi-main.c (mi_load_progress): Likewise.
10140
197df35e
JB
101412019-03-12 John Baldwin <jhb@FreeBSD.org>
10142
10143 * NEWS: Combine separate "New targets" sections for 8.3.
10144
8399425f
JB
101452019-03-12 John Baldwin <jhb@FreeBSD.org>
10146
10147 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10148 (ppcfbsd_init_abi): Install gdbarch
10149 "fetch_tls_load_module_address" and "get_thread_local_address"
10150 methods.
10151
b0f87ed0
JB
101522019-03-12 John Baldwin <jhb@FreeBSD.org>
10153
10154 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10155 (riscv_fbsd_init_abi): Install gdbarch
10156 "fetch_tls_load_module_address" and "get_thread_local_address"
10157 methods.
10158
ce25aa57
JB
101592019-03-12 John Baldwin <jhb@FreeBSD.org>
10160
10161 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10162 (i386fbsd_init_abi): Install gdbarch
10163 "fetch_tls_load_module_address" and "get_thread_local_address"
10164 methods.
10165
f5424cfa
JB
101662019-03-12 John Baldwin <jhb@FreeBSD.org>
10167
10168 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10169 (amd64fbsd_init_abi): Install gdbarch
10170 "fetch_tls_load_module_address" and "get_thread_local_address"
10171 methods.
10172
945f3901
JB
101732019-03-12 John Baldwin <jhb@FreeBSD.org>
10174
10175 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10176 (struct fbsd_pspace_data): New type.
10177 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10178 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10179 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10180 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10181 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10182
ef0bd204
JB
101832019-03-12 John Baldwin <jhb@FreeBSD.org>
10184
10185 * gdbtypes.c (lookup_struct_elt): New function.
10186 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10187 * gdbtypes.h (struct struct_elt): New type.
10188 (lookup_struct_elt): New prototype.
10189
36c53a02
JB
101902019-03-12 John Baldwin <jhb@FreeBSD.org>
10191
10192 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10193 remove disabled code block.
10194
6e056c81
JB
101952019-03-12 John Baldwin <jhb@FreeBSD.org>
10196
10197 * gdbarch.sh (get_thread_local_address): New method.
10198 * gdbarch.h, gdbarch.c: Regenerate.
10199 * target.c (target_translate_tls_address): Use
10200 gdbarch_get_thread_local_address if present instead of
10201 target::get_thread_local_address.
10202
cd250a18
JB
102032019-03-12 John Baldwin <jhb@FreeBSD.org>
10204
10205 * target.h (target::get_thread_local_address): Update comment.
10206
df22c1e5
JB
102072019-03-12 John Baldwin <jhb@FreeBSD.org>
10208
10209 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10210 objfile->separate_debug_objfile_backlink if not NULL.
10211
dd6876c9
JB
102122019-03-12 John Baldwin <jhb@FreeBSD.org>
10213
10214 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10215 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10216 (amd64bsd_store_inferior_registers): Likewise.
10217 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10218 Enable segment base registers.
10219 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10220 PT_GETFSBASE and PT_GETGSBASE.
10221 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10222 PT_SETGSBASE.
10223 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10224 segment base registers.
10225 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10226
1163a4b7
JB
102272019-03-12 John Baldwin <jhb@FreeBSD.org>
10228
10229 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10230 Update calls to i386_target_description to add 'segments'
10231 parameter.
10232 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10233 add segment base registers.
10234 * arch/i386.c (i386_create_target_description): Add 'segments'
10235 parameter to enable segment base registers.
10236 * arch/i386.h (i386_create_target_description): Likewise.
10237 * features/i386/32bit-segments.xml: New file.
10238 * features/i386/32bit-segments.c: Generate.
10239 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10240 call to i386_target_description to add 'segments' parameter.
10241 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10242 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10243 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10244 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10245 if feature is present.
10246 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10247 Add 'segments' parameter to call to i386_target_description.
10248 (i386_target_description): Add 'segments' parameter to enable
10249 segment base registers.
10250 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10251 to call to i386_target_description.
10252 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10253 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10254 Define I386_NUM_REGS.
10255 (i386_target_description): Add 'segments' parameter to enable
10256 segment base registers.
10257
3a350822
EZ
102582019-03-12 Eli Zaretskii <eliz@gnu.org>
10259
10260 PR/24325
10261 * source-cache.c: #undef open and close, to avoid unresolved
10262 externals during linking.
10263
ffdd69cf
TT
102642019-03-12 Tom Tromey <tromey@adacore.com>
10265
10266 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10267 const. Add initializers.
10268 (_initialize_remote): Don't initialize ptid globals.
10269
ec148c57
PA
102702019-03-12 Pedro Alves <palves@redhat.com>
10271
10272 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10273
32764270
PA
102742019-03-12 Pedro Alves <palves@redhat.com>
10275
10276 * cp-name-parser.y (main): Remove unused 'len' variable.
10277
17547186
TT
102782019-03-12 Tom Tromey <tromey@adacore.com>
10279
10280 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10281 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10282
d3a70e03
TT
102832019-03-12 Tom Tromey <tromey@adacore.com>
10284
10285 * linux-nat.c (iterate_over_lwps): Update.
10286 (stop_callback): Remove parameter.
10287 (stop_wait_callback, detach_callback, resume_set_callback)
10288 (select_singlestep_lwp_callback, set_ignore_sigint)
10289 (status_callback, resumed_callback, resume_clear_callback)
10290 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10291 data parameter.
10292 (linux_nat_target::detach, linux_nat_target::resume)
10293 (linux_stop_and_wait_all_lwps, select_event_lwp)
10294 (linux_nat_filter_event, linux_nat_wait_1)
10295 (linux_nat_target::kill, linux_nat_target::stop)
10296 (linux_nat_target::stop): Update.
10297 (linux_nat_resume_callback): Change type.
10298 (resume_stopped_resumed_lwps, count_events_callback)
10299 (select_event_lwp_callback): Likewise.
10300 (linux_stop_lwp, linux_nat_stop_lwp): Update.
10301 * arm-linux-nat.c (struct update_registers_data): Remove.
10302 (update_registers_callback): Change type.
10303 (arm_linux_insert_hw_breakpoint1): Update.
10304 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10305 parameter.
10306 (x86_linux_dr_set_addr): Update.
10307 (x86_linux_dr_set_control): Update.
10308 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10309 (iterate_over_lwps): Use gdb::function_view.
10310 * nat/aarch64-linux-hw-point.c (struct
10311 aarch64_dr_update_callback_param): Remove.
10312 (debug_reg_change_callback): Change type.
10313 (aarch64_notify_debug_reg_change): Update.
10314 * s390-linux-nat.c (s390_refresh_per_info): Update.
10315
82cb27ff
TT
103162019-03-11 Tom Tromey <tromey@adacore.com>
10317
10318 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10319 redundant assignment to "this_cu".
10320
568c0683
SM
103212019-03-08 Simon Marchi <simon.marchi@efficios.com>
10322
10323 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10324
f09ce22d
SM
103252019-03-08 Simon Marchi <simon.marchi@efficios.com>
10326
10327 * gdbtypes.c (rank_one_type_parm_set): New function extracted
10328 from...
10329 (rank_one_type): ... this.
10330
595f96a9
SM
103312019-03-08 Simon Marchi <simon.marchi@efficios.com>
10332
10333 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10334 from...
10335 (rank_one_type): ... this.
10336
2598a94b
SM
103372019-03-08 Simon Marchi <simon.marchi@efficios.com>
10338
10339 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10340 from...
10341 (rank_one_type): ... this.
10342
7f17b20d
SM
103432019-03-08 Simon Marchi <simon.marchi@efficios.com>
10344
10345 * gdbtypes.c (rank_one_type_parm_float): New function extracted
10346 from...
10347 (rank_one_type): ... this.
10348
2c509035
SM
103492019-03-08 Simon Marchi <simon.marchi@efficios.com>
10350
10351 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10352 from...
10353 (rank_one_type): ... this.
10354
0dd322dc
SM
103552019-03-08 Simon Marchi <simon.marchi@efficios.com>
10356
10357 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10358 from...
10359 (rank_one_type): ... this.
10360
41ea4728
SM
103612019-03-08 Simon Marchi <simon.marchi@efficios.com>
10362
10363 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10364 from...
10365 (rank_one_type): ... this.
10366
793cd1d2
SM
103672019-03-08 Simon Marchi <simon.marchi@efficios.com>
10368
10369 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10370 from...
10371 (rank_one_type): ... this.
10372
34910087
SM
103732019-03-08 Simon Marchi <simon.marchi@efficios.com>
10374
10375 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10376 from...
10377 (rank_one_type): ... this.
10378
f1f832d6
SM
103792019-03-08 Simon Marchi <simon.marchi@efficios.com>
10380
10381 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10382 from...
10383 (rank_one_type): ... this.
10384
b9f4512f
SM
103852019-03-08 Simon Marchi <simon.marchi@efficios.com>
10386
10387 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10388 from...
10389 (rank_one_type): ... this.
10390
9293fc63
SM
103912019-03-08 Simon Marchi <simon.marchi@efficios.com>
10392
10393 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10394 from...
10395 (rank_one_type): ... this.
10396
e3abbe7e
PW
103972019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10398
10399 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10400 inferior-events' shows the example events.
10401
e4adb939
EZ
104022019-03-08 Eli Zaretskii <eliz@gnu.org>
10403
10404 Support styling on native MS-Windows console
10405
10406 PR/24315
10407 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10408 on MS-Windows if $TERM is not defined.
10409
10410 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10411
10412 * posix-hdep.c (gdb_console_fputs):
10413 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10414 functions.
10415 * ui-file.h (gdb_console_fputs): Add prototype.
10416
10417 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10418 back to fputs only if the former returns zero.
10419
25629dfd
TT
104202019-03-07 Tom Tromey <tom@tromey.com>
10421
10422 * symmisc.c (print_symbol_bcache_statistics): Update.
10423 (print_objfile_statistics): Update.
10424 * symfile.c (allocate_symtab): Update.
10425 * stabsread.c: Don't include bcache.h.
10426 * psymtab.h (struct psymbol_bcache): Don't declare.
10427 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10428 (psymbol_bcache_init, psymbol_bcache_free)
10429 (psymbol_bcache_get_bcache): Don't declare.
10430 * psymtab.c (struct psymbol_bcache): Remove.
10431 (psymtab_storage::psymtab_storage): Update.
10432 (psymtab_storage::~psymtab_storage): Update.
10433 (psymbol_bcache_init, psymbol_bcache_free)
10434 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10435 (add_psymbol_to_bcache): Update.
10436 (allocate_psymtab): Update.
10437 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10438 macro_cache>: No longer pointers.
10439 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10440 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10441 * macrotab.c (macro_bcache): Update.
10442 * macroexp.c: Don't include bcache.h.
10443 * gdbtypes.c (check_types_worklist): Update.
10444 (types_deeply_equal): Remove TRY/CATCH. Update.
10445 * elfread.c (elf_symtab_read): Update.
10446 * dwarf2read.c: Don't include bcache.h.
10447 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10448 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10449 (print_bcache_statistics, bcache_memory_used): Don't declare.
10450 (struct bcache): Move from bcache.c. Add constructor, destructor,
10451 methods. Rename all data members.
10452 * bcache.c (struct bcache): Move to bcache.h.
10453 (bcache::expand_hash_table): Rename from expand_hash_table.
10454 (bcache): Remove.
10455 (bcache::insert): Rename from bcache_full.
10456 (bcache::compare): Rename from bcache_compare.
10457 (bcache_xmalloc): Remove.
10458 (bcache::~bcache): Rename from bcache_xfree.
10459 (bcache::print_statistics): Rename from print_bcache_statistics.
10460 (bcache::memory_used): Rename from bcache_memory_used.
10461
fe726667
PA
104622019-03-07 Pedro Alves <palves@redhat.com>
10463
10464 * infrun.c (normal_stop): Also check for
10465 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10466
7584bb30
AB
104672019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10468
10469 * f-lang.c (value_from_host_double): Moved to...
10470 * value.c (value_from_host_double): ...here.
10471 * value.h (value_from_host_double): Declare.
10472 * guile/scm-math.c (vlscm_convert_typed_number): Use
10473 value_from_host_double.
10474 (vlscm_convert_number): Likewise.
10475 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10476 * python/py-value.c (convert_value_from_python): Likewise.
10477
a7b1986e
TT
104782019-03-06 Tom Tromey <tom@tromey.com>
10479
10480 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10481
0ccf4211
TT
104822019-03-06 Tom Tromey <tom@tromey.com>
10483
10484 * utils.h (free_current_contents): Don't declare.
10485 * utils.c (free_current_contents): Remove.
10486
fe7b42e5
TT
104872019-03-06 Tom Tromey <tom@tromey.com>
10488
10489 * top.c (quit_force): Update.
10490 * main.c (captured_command_loop): Update.
10491 * common/new-op.c (operator new): Update.
10492 * common/common-exceptions.c (struct catcher)
10493 <save_cleanup_chain>: Remove member.
10494 (exceptions_state_mc_init): Update.
10495 (exception_try_scope_entry): Return nullptr.
10496 (exception_try_scope_exit, exception_rethrow)
10497 (throw_exception_sjlj, throw_exception_cxx): Update.
10498 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10499 (all_cleanups, do_cleanups, discard_cleanups)
10500 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10501 (restore_cleanups, restore_final_cleanups): Don't declare.
10502 (do_final_cleanups): Remove parameter.
10503 * common/cleanups.c (cleanup_chain, make_cleanup)
10504 (make_cleanup_dtor, all_cleanups, do_cleanups)
10505 (discard_my_cleanups, discard_cleanups)
10506 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10507 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10508 (null_cleanup): Remove.
10509 (do_final_cleanups): Remove parameter.
10510
c6321f19
TT
105112019-03-06 Tom Tromey <tom@tromey.com>
10512
10513 * remote.c (remote_target::remote_parse_stop_reply): Use
10514 unique_xmalloc_ptr.
10515
61b30099
TT
105162019-03-06 Tom Tromey <tom@tromey.com>
10517
10518 * stabsread.c (struct stabs_field_info): Rename from field_info.
10519 <list, fnlist>: Add initializers.
10520 <obstack>: New member.
10521 (read_member_functions, read_struct_fields, read_baseclasses):
10522 Allocate on obstack. Don't use cleanups.
10523 (read_one_struct_field, read_member_functions, read_struct_fields)
10524 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10525 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10526 (read_struct_type): Update.
10527
6cceac94
TT
105282019-03-06 Tom Tromey <tom@tromey.com>
10529
10530 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10531 * common/filestuff.h (make_cleanup_close): Don't declare.
10532 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10533 Remove.
10534
72412762
TT
105352019-03-06 Tom Tromey <tom@tromey.com>
10536
10537 * solib-aix.c: Use make_scope_exit.
10538
2b6ff1c0
TT
105392019-03-06 Tom Tromey <tom@tromey.com>
10540
10541 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10542 Use make_scope_exit.
10543
d01c5877
TT
105442019-03-06 Tom Tromey <tom@tromey.com>
10545
10546 * solib-svr4.c (disable_probes_interface): Remove parameter.
10547 (svr4_handle_solib_event): Use make_scope_exit.
10548
32603266
TT
105492019-03-06 Tom Tromey <tom@tromey.com>
10550
10551 * remote.c (struct stop_reply_deleter): Remove.
10552 (stop_reply_up): Update.
10553 (struct stop_reply): Derive from notif_event. Don't typedef.
10554 <regcache>: Now a std::vector.
10555 (stop_reply_xfree): Remove.
10556 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10557 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10558 (remote_target::discard_pending_stop_replies): Use delete.
10559 (remote_target::remote_parse_stop_reply): Update.
10560 (remote_target::process_stop_reply): Update.
10561 * remote-notif.h (struct notif_event): Add virtual destructor.
10562 Remove "dtr" member.
10563 (struct notif_client) <alloc_event>: Return a unique_ptr.
10564 (notif_event_xfree): Don't declare.
10565 (notif_event_up): New typedef.
10566 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10567 (notif_event_xfree, do_notif_event_xfree): Remove.
10568 (remote_notif_state_xfree): Update.
10569
9799571e
TT
105702019-03-06 Tom Tromey <tom@tromey.com>
10571
10572 * infrun.c (displaced_step_clear_cleanup): Now a
10573 forward_scope_exit type.
10574 (displaced_step_prepare_throw): Update.
10575 (displaced_step_fixup): Update.
10576
09e3c4ca
TT
105772019-03-06 Tom Tromey <tom@tromey.com>
10578
10579 * inferior.h (class inferior): Update comment.
10580 * gdbthread.h (class thread_info): Update comment.
10581
e2a03548
TT
105822019-03-06 Joel Brobecker <brobecker@adacore.com>
10583 Tom Tromey <tom@tromey.com>
10584
10585 * stabsread.h (struct stab_section_list): Remove.
10586 (coffstab_build_psymtabs): Update.
10587 * dbxread.c (symbuf_sections): Now a std::vector.
10588 (sect_idx): New global.
10589 (fill_symbuf): Update.
10590 (coffstab_build_psymtabs): Change type of stabsects parameter.
10591 Update.
10592 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10593 std::vector.
10594 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10595 (coff_locate_sections): Update.
10596 (coff_symfile_read): Remove cleanups. Update.
10597 (init_stringtab): Add storage parameter.
10598 (free_stringtab, free_stringtab_cleanup): Remove.
10599 (init_lineno): Add storage parameter.
10600 (free_linetab, free_linetab_cleanup): Remove.
10601
b7e60d85
PA
106022019-03-06 Pedro Alves <palves@redhat.com>
10603
10604 * linux-fork.c (fork_info::clobber_regs): Delete.
10605 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10606 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10607 comment. Adjust.
10608 (scoped_switch_fork_info::scoped_switch_fork_info)
10609 (checkpoint_command, linux_fork_context): Adjust
10610 fork_save_infrun_state calls.
10611
e52c971f
PA
106122019-03-06 Pedro Alves <palves@redhat.com>
10613
10614 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10615 (inf_has_multiple_threads): Return 'bool' and rewrite using
10616 inferior_info::threads().
10617
06974e6c
PA
106182019-03-06 Pedro Alves <palves@redhat.com>
10619
10620 * linux-fork.c: Include <list>.
10621 (fork_list): Now a std::list instance.
10622 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10623 (forks_exist_p, find_last_fork): Adjust.
10624 (new_fork): Delete.
10625 (one_fork_p): New.
10626 (add_fork): Adjust.
10627 (free_fork): Delete, folded into fork_info::~fork_info().
10628 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10629 Adjust.
10630 (init_fork_list): Delete.
10631 (linux_fork_killall, linux_fork_mourn_inferior)
10632 (linux_fork_detach, info_checkpoints_command): Adjust.
10633 (_initialize_linux_fork): No longer call init_fork_list.
10634
72f31aea
PA
106352019-03-06 Pedro Alves <palves@redhat.com>
10636
10637 * linux-fork.c (new_fork): New, split out of ...
10638 (add_fork): ... this. Return void. Move "first fork" special
10639 case from here, to ...
10640 (checkpoint_command): ... here.
10641 * linux-linux.h (add_fork): Return void.
10642
efbecbc1
AB
106432019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10644
10645 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10646
0841c79a
AB
106472019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10648 Chris January <chris.january@arm.com>
10649 David Lecomber <david.lecomber@arm.com>
10650
10651 * f-exp.y: New token, UNOP_INTRINSIC.
10652 (exp): New pattern using UNOP_INTRINSIC token.
10653 (f77_keywords): Add 'abs' keyword.
10654 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10655 (value_from_host_double): New function.
10656 (evaluate_subexp_f): Support UNOP_ABS.
10657
4a270568
AB
106582019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10659
10660 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10661 types.
10662
067630bd
AB
106632019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10664
10665 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10666 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10667 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10668
3be47f7a
AB
106692019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10670
10671 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10672
4d00f5d8
AB
106732019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10674 Chris January <chris.january@arm.com>
10675
10676 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10677 * f-exp.y: Define 'KIND' token.
10678 (exp): New pattern for KIND expressions.
10679 (ptype): Handle types with a kind extension.
10680 (direct_abs_decl): Extend to spot kind extensions.
10681 (f77_keywords): Add 'kind' to the list.
10682 (push_kind_type): New function.
10683 (convert_to_kind_type): New function.
10684 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10685 * parse.c (operator_length_standard): Likewise.
10686 * parser-defs.h (enum type_pieces): Add tp_kind.
10687 * std-operator.def: Add UNOP_KIND.
10688
e454224f
AB
106892019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10690
10691 * f-exp.y (f_parse): Set yydebug.
10692
9dad4a58
AB
106932019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10694
10695 * f-lang.c (evaluate_subexp_f): New function.
10696 (exp_descriptor_f): New global.
10697 (f_language_defn): Use exp_descriptor_f instead of
10698 exp_descriptor_standard.
10699
c8f91604
AB
107002019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10701
10702 * f-exp.y (struct token): Add comments.
10703 (dot_ops): Remove uppercase versions and the end marker.
10704 (f77_keywords): Likewise.
10705 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10706 entries in the dot_ops array are case insensitive, and use
10707 strncasecmp to compare strings. Also some whitespace cleanup in
10708 this area. Similar for the f77_keywords array, except entries in
10709 this list might be case sensitive.
10710
dd9f2c76
AB
107112019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10712
10713 * f-exp.y (struct f77_boolean_val): Add comments.
10714 (boolean_values): Remove uppercase versions, and end marker.
10715 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10716 and use strncasecmp to achieve case insensitivity. Additionally,
10717 perform whitespace cleanup around this code.
10718
67a3048c
TT
107192019-03-06 Tom Tromey <tromey@adacore.com>
10720
10721 * remote-sim.c (gdbsim_target_open): Use result of
10722 gdb_argv::release.
10723
aa3cfbda
RB
107242019-03-06 Richard Bunt <richard.bunt@arm.com>
10725 Dirk Schubert <dirk.schubert@arm.com>
10726 Chris January <chris.january@arm.com>
10727
10728 * eval.c (evaluate_subexp_standard): Call Fortran argument
10729 wrapping logic.
10730 * f-lang.c (struct value): A value which can be passed into a
10731 Fortran function call.
10732 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10733 where appropriate.
10734 (struct type): Value ready for a Fortran function call.
10735 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10736 is needed.
10737 * f-lang.h (fortran_argument_convert): Declaration.
10738 (fortran_preserve_arg_pointer): Declaration.
10739 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10740
ea38e5df
TT
107412019-03-05 Tom Tromey <tromey@adacore.com>
10742
10743 * python/py-prettyprint.c (print_string_repr): Remove #if.
10744 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10745
06b5b831
TT
107462019-03-05 Tom Tromey <tromey@adacore.com>
10747
10748 * target.c (the_dummy_target): Move later. Change type to
10749 "dummy_target".
10750 (initialize_targets): Don't initialize the_dummy_target.
10751
edbd9e45
TT
107522019-03-05 Tom Tromey <tromey@adacore.com>
10753
10754 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10755 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10756
c119e040
TT
107572019-03-05 Tom Tromey <tromey@adacore.com>
10758
10759 * windows-nat.c (windows_nat_target::attach)
10760 (windows_nat_target::detach): Don't call gdb_flush.
10761 * valprint.c (generic_val_print, val_print, val_print_string):
10762 Don't call gdb_flush.
10763 * utils.c (defaulted_query): Don't call gdb_flush.
10764 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10765 * target.c (target_announce_detach): Don't call gdb_flush.
10766 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10767 * remote.c (extended_remote_target::attach): Don't call
10768 gdb_flush.
10769 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10770 * printcmd.c (do_examine): Don't call gdb_flush.
10771 (info_display_command): Don't call gdb_flush.
10772 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10773 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10774 * memattr.c (info_mem_command): Don't call gdb_flush.
10775 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10776 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10777 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10778 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10779 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10780 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10781 (gnu_nat_target::detach): Don't call gdb_flush.
10782 * f-valprint.c (f_val_print): Don't call gdb_flush.
10783 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10784 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10785 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10786 gdb_flush.
10787 * c-valprint.c (c_val_print): Don't call gdb_flush.
10788 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10789
895dafa6
TT
107902019-03-05 Tom Tromey <tromey@adacore.com>
10791
10792 * varobj.c (update_dynamic_varobj_children): Update.
10793 (install_default_visualizer): Use reset, not release.
10794 * value.c (set_internalvar): Update.
10795 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10796 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10797 ATTRIBUTE_UNUSED_RESULT.
10798
88a774b9
TT
107992019-03-05 Tom Tromey <tromey@adacore.com>
10800
10801 * remote.c (class scoped_remote_fd) <release>: Add
10802 ATTRIBUTE_UNUSED_RESULT.
10803
4e4a8b93
TT
108042019-03-05 Tom Tromey <tromey@adacore.com>
10805
10806 * macroexp.c (struct macro_buffer) <release>: Add
10807 ATTRIBUTE_UNUSED_RESULT.
10808
083eef1f
TT
108092019-03-05 Tom Tromey <tromey@adacore.com>
10810
10811 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10812 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10813 ATTRIBUTE_UNUSED_RESULT.
10814
3cabd438
TT
108152019-03-05 Tom Tromey <tromey@adacore.com>
10816
10817 * common/scoped_fd.h (class scoped_fd) <release>: Add
10818 ATTRIBUTE_UNUSED_RESULT.
10819
41e3300a
TT
108202019-03-05 Tom Tromey <tromey@adacore.com>
10821
10822 * parser-defs.h (struct parser_state) <release>: Add
10823 ATTRIBUTE_UNUSED_RESULT.
10824
18cb7c9f
TT
108252019-03-05 Tom Tromey <tromey@adacore.com>
10826
10827 * utils.h (class gdb_argv) <release>: Add
10828 ATTRIBUTE_UNUSED_RESULT.
10829 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10830
41fa577f
EZ
108312019-03-02 Eli Zaretskii <eliz@gnu.org>
10832
a6a4b2c6
EZ
10833 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10834 for-loop range, to avoid compiler warnings.
10835
10836 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10837 avoid compiler warnings about unused variables.
10838
742a7df5
EZ
10839 * NEWS: Mention end of support for native debugging on MS-Windows
10840 before XP.
10841
41fa577f
EZ
10842 PR gdb/24292
10843 * common/netstuff.c:
10844 * gdbserver/gdbreplay.c
10845 * gdbserver/remote-utils.c:
10846 * ser-tcp.c:
10847 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10848 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10849 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10850 'getaddrinfo' and 'freeaddrinfo' were not available before
10851 Windows XP, and mingw.org's MinGW headers by default define
10852 _WIN32_WINNT to 0x500.
10853
827f438f
GB
108542019-03-01 Gary Benson <gbenson@redhat.com>
10855
10856 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10857
92137da0
RO
108582019-02-28 Brian Vandenberg <phantall@gmail.com>
10859 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10860
10861 PR gdb/8527
10862 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10863 set_sigint_trap, clear_sigint_trap.
10864
799efbe8
PW
108652019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10866
10867 * target.c (target_detach): Clear the regcache and the
10868 frame cache.
10869
8ed25214
PA
108702019-02-27 Pedro Alves <palves@redhat.com>
10871
10872 * utils.c (set_screen_size): When we cap the height/width sizes,
10873 tweak the corresponding command variable to show "unlimited":
10874
23031e31
SJ
108752019-02-27 Saagar Jha <saagar@saagarjha.com>
10876 Pedro Alves <palves@redhat.com>
10877
10878 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10879 before calling rl_set_screen_size.
10880
6c28e44a
TT
108812019-02-27 Tom Tromey <tromey@adacore.com>
10882
10883 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10884 define.
10885 * python/py-value.c: Remove Python 2.4 workaround.
10886 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10887 workaround.
10888 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10889 Python 2.4 workaround.
10890 * python/python-internal.h: Remove Python 2.4 comment.
10891 (Py_ssize_t): Don't define.
10892 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10893 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10894 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10895 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10896 * python/python.c (do_start_initialization): Remove Python 2.4
10897 workaround.
10898 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10899 (print_children): Remove Python 2.4 workaround.
10900 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10901 workaround.
10902 (CHARBUFFERPROC_NAME): Remove.
10903 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10904 Python 2.4 workaround.
10905
2c3fc25d 109062019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 10907
2c3fc25d
KB
10908 * NEWS: Note minimum Python version.
10909
6ca62222
KB
109102019-02-27 Kevin Buettner <kevinb@redhat.com>
10911
10912 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10913 code from these functions. Remove corresponding ifdefs. Use
10914 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10915 Remove gotos and target of gotos.
10916 (infpy_search_memory): Likewise.
10917
f4bc7d2c
AB
109182019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10919
10920 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10921 (hppa_gdbarch_init): Don't register deleted functions with
10922 gdbarch.
10923
9734a586
AB
109242019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10925
10926 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10927 (h8300_unwind_sp): Delete.
10928 (h8300_dummy_id): Delete.
10929 (h8300_gdbarch_init): Don't register deleted functions with
10930 gdbarch.
10931
68b867f3
AB
109322019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10933
10934 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10935 (ft32_unwind_pc): Delete.
10936 (ft32_unwind_sp): Delete.
10937 (ft32_gdbarch_init): Don't register deleted functions with
10938 gdbarch.
10939
2fbe7ad0
AB
109402019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10941
10942 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10943 (frv_unwind_pc): Delete.
10944 (frv_unwind_sp): Delete.
10945 (frv_gdbarch_init): Don't register deleted functions with
10946 gdbarch.
10947
76055cbe
AB
109482019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10949
10950 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10951 (riscv_unwind_pc): Delete.
10952 (riscv_unwind_sp): Delete.
10953 (riscv_gdbarch_init): Don't register deleted functions with
10954 gdbarch.
10955
4133e5a1
AB
109562019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10957
10958 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10959 (csky_unwind_pc): Delete.
10960 (csky_unwind_sp): Delete.
10961 (csky_gdbarch_init): Don't register deleted functions with
10962 gdbarch.
10963
8010f576
AB
109642019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10965
10966 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10967 (cris_unwind_pc): Delete.
10968 (cris_unwind_sp): Delete.
10969 (cris_gdbarch_init): Don't register deleted functions with
10970 gdbarch.
10971
b56bf084
AB
109722019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10973
10974 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10975 (bfin_unwind_pc): Delete.
10976 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10977
a19a650f
AB
109782019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10979
10980 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10981 (arm_unwind_pc): Delete.
10982 (arm_unwind_sp): Delete.
10983 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10984
f8278c3c
AB
109852019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10986
10987 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10988 (arc_unwind_pc): Delete.
10989 (arc_unwind_sp): Delete.
10990 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10991
480e46cf
AB
109922019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10993
10994 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10995 (alpha_unwind_pc): Delete.
10996 (alpha_gdbarch_init): Don't register deleted functions with
10997 gdbarch.
10998
7a995095
AB
109992019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11000
11001 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11002 (aarch64_unwind_pc): Delete.
11003 (aarch64_unwind_sp): Delete.
11004 (aarch64_gdbarch_init): Don't register deleted functions with
11005 gdbarch.
11006
bf9a735e
AB
110072019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11008
11009 * gdbtypes.c (type_align): Don't consider static members when
11010 computing structure alignment.
11011
5561fc30
AB
110122019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11013
11014 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11015 return 0 for other types.
11016 * arch-utils.c (default_type_align): Always return 0.
11017 * gdbarch.h: Regenerate.
11018 * gdbarch.sh (type_align): Extend comment.
11019 * gdbtypes.c (type_align): Add additional comments, always call
11020 gdbarch_type_align before applying the default rules.
11021 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11022 generic code will then apply a suitable default.
11023 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11024 types, return 0 for other types.
11025
9335e75a
JB
110262019-02-27 Joel Brobecker <brobecker@adacore.com>
11027
11028 * NEWS: Create a new section for the next release branch.
11029 Rename the section of the current branch, now that it has
11030 been cut.
11031
3d34d8de
JB
110322019-02-27 Joel Brobecker <brobecker@adacore.com>
11033
11034 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11035 * version.in: Bump version to 8.3.50.DATE-git.
11036
143420fb
SM
110372019-02-26 Simon Marchi <simon.marchi@efficios.com>
11038
11039 * aix-thread.c (ptid_cmp): Remove unused variable.
11040 (get_signaled_thread): Likewise.
11041 (store_regs_user_thread): Likewise.
11042 (store_regs_kernel_thread): Likewise.
11043 (fetch_regs_kernel_thread): Remove shadowed variable.
11044
172fb711
AB
110452019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11046
11047 * features/riscv/32bit-cpu.xml: Add register numbers.
11048 * features/riscv/32bit-fpu.c: Regenerate.
11049 * features/riscv/32bit-fpu.xml: Add register numbers.
11050 * features/riscv/64bit-cpu.xml: Add register numbers.
11051 * features/riscv/64bit-fpu.c: Regenerate.
11052 * features/riscv/64bit-fpu.xml: Add register numbers.
11053
26c89782
KB
110542019-02-26 Kevin Buettner <kevinb@redhat.com>
11055
af54ade9 11056 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
11057 * python/py-value.c (convert_buffer_and_type_to_value): New
11058 function.
11059 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11060 Add support for handling an optional second argument. Call
11061 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
11062 * python/python-internal.h (Py_buffer_deleter): New struct.
11063 (Py_buffer_up): New typedef.
11064
0f58c9e8
JB
110652019-02-25 John Baldwin <jhb@FreeBSD.org>
11066
11067 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11068 instead of releasing ownership.
11069
0a0f4c01
JR
110702019-02-25 Jordan Rupprecht <rupprecht@google.com>
11071
11072 * dwarf2read.c (open_and_init_dwp_file): Call
11073 elf_numsections instead of bfd_count_sections to initialize
11074 dwp_file->num_sections.
11075
cd5a152c
TT
110762019-02-25 Tom Tromey <tromey@adacore.com>
11077
11078 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11079
8a6a8513
SDJ
110802019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11081
11082 * gcore.in: Add '--readnever' option when invoking GDB.
11083
04dcda9c
SM
110842019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11085
11086 * MAINTAINERS: Update my email address.
11087
07bc701d
SM
110882019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11089
11090 * build-id.c (build_id_to_debug_bfd_1): New function.
11091 (build_id_to_debug_bfd): Look for separate debug file in
11092 sysroot.
11093
c6f4a5d0
AB
110942019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11095
11096 * gdbarch.sh: Update the copyright year range that is placed into
11097 generated files.
11098
9600246d
KS
110992019-02-22 Keith Seitz <keiths@redhat.com>
11100
11101 PR symtab/23853
11102 * linespec.c (create_sals_line_offset): Search for the default
11103 symtab's filename instead of its fullname.
11104
7557a514
AH
111052019-02-21 Alan Hayward <alan.hayward@arm.com>
11106
11107 * NEWS: Update style defaults.
11108
ee2bcb0c
AH
111092019-02-21 Alan Hayward <alan.hayward@arm.com>
11110
11111 * main.c (captured_main_1): Disable styling in batch mode.
11112
0c95f9ed
TT
111132019-02-20 Tom Tromey <tom@tromey.com>
11114
11115 * symtab.c (symtab_symbol_info): Fix typos.
11116
c763b894
TT
111172019-02-20 Tom Tromey <tromey@adacore.com>
11118
11119 * findcmd.c (_initialize_mem_search): Use upper case for
11120 metasyntactic variables.
11121
0ef8a082
AH
111222019-02-20 Alan Hayward <alan.hayward@arm.com>
11123
11124 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11125 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11126
6caa91b6
SM
111272019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11128
11129 * top.h (source_file_name): Change to std::string.
11130 * top.c (source_file_name): Likewise.
11131 (command_line_input): Adjust.
11132 * cli/cli-script.c (script_from_file): Adjust.
11133
98814c6c
TT
111342019-02-19 Tom Tromey <tromey@adacore.com>
11135
11136 * ravenscar-thread.c
11137 (ravenscar_thread_target::update_thread_list): Don't call
11138 ada_build_task_list.
11139 * ada-lang.h (ada_build_task_list): Don't declare.
11140 * ada-tasks.c (struct ada_tasks_inferior_data)
11141 <task_list_valid_p>: Now bool.
11142 (read_known_tasks, ada_task_list_changed)
11143 (ada_tasks_invalidate_inferior_data): Update.
11144 (read_known_tasks_array): Return bool.
11145 (read_known_tasks_list): Likewise.
11146 (read_known_tasks): Return void.
11147 (ada_build_task_list): Now static.
11148
70cd633e
AB
111492019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11150
11151 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11152 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11153
040b3e95
PW
111542019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11155
11156 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11157 variant for ada_tasks_pspace_data_handle and
11158 ada_tasks_inferior_data_handle.
11159 (ada_tasks_pspace_data_cleanup): New function.
11160 (ada_tasks_inferior_data_cleanup): New function.
11161
9409233b
TT
111622019-02-17 Tom Tromey <tom@tromey.com>
11163
11164 * macrotab.h (macro_source_fullname): Return a std::string.
11165 * macrotab.c (macro_include, check_for_redefinition)
11166 (macro_undef, macro_lookup_definition, foreach_macro)
11167 (foreach_macro_in_scope): Update.
11168 (macro_source_fullname): Return a std::string.
11169 * macrocmd.c (show_pp_source_pos): Update.
11170
6506371f
TT
111712019-02-17 Tom Tromey <tom@tromey.com>
11172
11173 * macrocmd.c (show_pp_source_pos): Style the file names.
11174
0c820d67
TT
111752019-02-17 Tom Tromey <tom@tromey.com>
11176
11177 PR tui/24197:
11178 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11179
a0087920
TT
111802019-02-17 Tom Tromey <tom@tromey.com>
11181
11182 * ada-lang.c (user_select_syms): Use filtered printing.
11183 * utils.c (wrap_style): New global.
11184 (desired_style): Remove.
11185 (emit_style_escape): Add stream parameter.
11186 (set_output_style, reset_terminal_style, prompt_for_continue):
11187 Update.
11188 (flush_wrap_buffer): Only flush gdb_stdout.
11189 (wrap_here): Set wrap_style.
11190 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11191 treat escape sequences as a character. Change when wrap buffer is
11192 flushed.
11193 (fputs_styled): Do not set the output style when the default is
11194 requested.
11195 * ui-style.h (struct ui_file_style) <is_default>: New method.
11196 * source.c (print_source_lines_base): Emit escape sequences in one
11197 piece.
11198
75ba10dc
JB
111992019-02-17 Joel Brobecker <brobecker@adacore.com>
11200
11201 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11202 integers and enumeration types.
11203
a2cd4f14
JB
112042019-02-17 Joel Brobecker <brobecker@adacore.com>
11205
11206 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11207 instead of lookup_symbol_in_language
11208 (do_exact_match): New function.
11209 (ada_get_symbol_name_matcher): Return do_exact_match when
11210 doing a verbatim match.
11211
485b851b
TT
112122019-02-15 Tom Tromey <tromey@adacore.com>
11213
11214 * ravenscar-thread.c (ravenscar_thread_target::resume)
11215 (ravenscar_thread_target::wait): Special case wildcard requests.
11216
0b790b1e
TT
112172019-02-15 Tom Tromey <tromey@adacore.com>
11218
11219 * ravenscar-thread.c (base_ptid): Remove.
11220 (struct ravenscar_thread_target) <close>: New method.
11221 <m_base_ptid>: New member.
11222 <update_inferior_ptid, active_task, task_is_currently_active,
11223 runtime_initialized>: Declare methods.
11224 <ravenscar_thread_target>: Add constructor.
11225 (ravenscar_thread_target::task_is_currently_active)
11226 (ravenscar_thread_target::update_inferior_ptid)
11227 (ravenscar_runtime_initialized): Rename. Now methods.
11228 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11229 (ravenscar_thread_target::update_thread_list): Update.
11230 (ravenscar_thread_target::active_task): Now method.
11231 (ravenscar_thread_target::store_registers)
11232 (ravenscar_thread_target::prepare_to_store)
11233 (ravenscar_thread_target::prepare_to_store)
11234 (ravenscar_thread_target::mourn_inferior): Update.
11235 (ravenscar_inferior_created): Use "new" to create target.
11236 (ravenscar_thread_target::get_ada_task_ptid): Update.
11237 (_initialize_ravenscar): Don't initialize base_ptid.
11238 (ravenscar_ops): Remove global.
11239
dea57a62
TT
112402019-02-15 Tom Tromey <tromey@adacore.com>
11241
11242 * target.h (push_target): Declare new overload.
11243 * target.c (push_target): New overload, taking an rvalue reference.
11244 * remote.c (remote_target::open_1): Use push_target overload.
11245 * corelow.c (core_target_open): Use push_target overload.
11246
989f3c58
TT
112472019-02-15 Tom Tromey <tromey@adacore.com>
11248
11249 * ravenscar-thread.c (is_ravenscar_task)
11250 (ravenscar_task_is_currently_active): Return bool.
11251 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11252 (_initialize_ravenscar): Remove "(void)".
11253 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11254 Return bool.
11255
6cbcc006
TT
112562019-02-15 Tom Tromey <tromey@adacore.com>
11257
11258 * ravenscar-thread.c (ravenscar_runtime_initializer)
11259 (has_ravenscar_runtime, get_running_thread_id)
11260 (ravenscar_thread_target::resume): Fix indentation.
11261
7657f14d
TT
112622019-02-15 Tom Tromey <tromey@adacore.com>
11263
11264 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11265 from ravenscar_arch_ops.
11266 (sparc_ravenscar_ops::fetch_registers)
11267 (sparc_ravenscar_ops::store_registers): Now methods.
11268 (sparc_ravenscar_prepare_to_store): Remove.
11269 (sparc_ravenscar_ops): Redefine.
11270 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11271 methods and destructor. Remove members.
11272 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11273 (ravenscar_thread_target::store_registers)
11274 (ravenscar_thread_target::prepare_to_store): Update.
11275 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11276 Remove.
11277 (struct ppc_ravenscar_powerpc_ops): Derive from
11278 ravenscar_arch_ops.
11279 (ppc_ravenscar_powerpc_ops::fetch_registers)
11280 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11281 (ppc_ravenscar_powerpc_ops): Redefine.
11282 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11283 (ppc_ravenscar_e500_ops::fetch_registers)
11284 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11285 (ppc_ravenscar_e500_ops): Redefine.
11286 * aarch64-ravenscar-thread.c
11287 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11288 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11289 (aarch64_ravenscar_fetch_registers)
11290 (aarch64_ravenscar_store_registers): Now methods.
11291 (aarch64_ravenscar_ops): Redefine.
11292
5b6ea500
TT
112932019-02-15 Tom Tromey <tromey@adacore.com>
11294
11295 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11296 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11297 (ravenscar_thread_target::stopped_by_watchpoint)
11298 (ravenscar_thread_target::stopped_data_address)
11299 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11300
e397fd39
TT
113012019-02-15 Tom Tromey <tromey@adacore.com>
11302
11303 * ravenscar-thread.c: Fix some typos.
11304
cc12f4a8
TT
113052019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11306 Tom Tromey <tromey@adacore.com>
11307
11308 * ada-lang.c (ada_exception_sal): Change addr_string to a
11309 std::string.
11310 (create_ada_exception_catchpoint): Update.
11311
5f486660
TT
113122019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11313 Tom Tromey <tromey@adacore.com>
11314
11315 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11316 (bp_location_ops): Remove.
11317 (base_breakpoint_allocate_location): Update.
11318 (free_bp_location): Update.
11319 * ada-lang.c (class ada_catchpoint_location)
11320 <ada_catchpoint_location>: Remove ops parameter.
11321 (ada_catchpoint_location_dtor): Remove.
11322 (ada_catchpoint_location_ops): Remove.
11323 (allocate_location_exception): Update.
11324 * breakpoint.h (struct bp_location_ops): Remove.
11325 (class bp_location) <bp_location>: Remove bp_location_ops
11326 parameter.
11327 <~bp_location>: Add destructor.
11328 <ops>: Remove.
11329
b671c7fb
TS
113302019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11331 Pedro Alves <palves@redhat.com>
11332
11333 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11334 'PATH_MAX'.
11335
8071c5ce
DM
113362019-02-14 David Michael <fedora.dm0@gmail.com>
11337 Samuel Thibault <samuel.thibault@gnu.org>
11338 Thomas Schwinge <thomas@codesourcery.com>
11339
11340 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11341 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11342
b1041ae0
TS
113432019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11344
924514e1
TS
11345 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11346 (check_empty): Use "const char *".
11347
c29ee8d4
TS
11348 * gnu-nat.c (gnu_nat_target::detach): Instead of
11349 'detach_inferior (pid)' call
11350 'detach_inferior (find_inferior_pid (pid))'.
11351
6c6ef69f
TS
11352 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11353 'nat/fork-inferior.o'.
11354 * gnu-nat.c: #include "nat/fork-inferior.h".
11355
2d0a338c
TS
11356 * gnu-nat.c (gnu_nat_target::detach): Instead of
11357 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11358 * gnu-nat.h: #include "inf-child.h".
11359 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11360 'i386_gnu_nat_target::fetch_registers'.
11361 (gnu_store_registers): Rename/move to
11362 'i386_gnu_nat_target::store_registers'.
11363
cabb5f06
TS
11364 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11365 * gnu-nat.h (mach_thread_info): New function.
11366 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11367
b1041ae0
TS
11368 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11369
2988d01e
KF
113702019-02-14 Frederic Konrad <konrad@adacore.com>
11371
11372 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11373
c559d709
JB
113742019-02-14 Joel Brobecker <brobecker@adacore.com>
11375
11376 * windows-nat.c (windows_add_thread): Add new parameter
11377 "main_thread_p" with default value set to false. Update
11378 function documentation as well as all callers.
11379 (windows_delete_thread): Likewise.
11380 (fake_create_process): Update call to windows_add_thread.
11381 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11382 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11383 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11384 call to windows_delete_thread.
11385
007024cc
SM
113862019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11387
11388 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11389
f62318e9
JB
113902019-02-12 John Baldwin <jhb@FreeBSD.org>
11391
11392 * symfile.c (find_separate_debug_file): Use canonical path of
11393 sysroot with child_path instead of gdb_sysroot if it is valid.
11394
cd4b7848
JB
113952019-02-12 John Baldwin <jhb@FreeBSD.org>
11396
11397 * symfile.c (find_separate_debug_file): Use child_path to
11398 determine if an object file is under a sysroot.
11399
efac4bfe
JB
114002019-02-12 John Baldwin <jhb@FreeBSD.org>
11401
11402 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11403 unittests/child-path-selftests.c.
11404 * common/pathstuff.c (child_path): New function.
11405 * common/pathstuff.h (child_path): New prototype.
11406 * unittests/child-path-selftests.c: New file.
11407
402d2bfe
JB
114082019-02-12 John Baldwin <jhb@FreeBSD.org>
11409
11410 * symfile.c (find_separate_debug_file): Look for separate debug
11411 files in debug directories under the sysroot.
11412
1ed9f74e
PW
114132019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11414
11415 * symtab.h (struct minimal_symbol data_p): New const method.
11416 (struct minimal_symbol text_p): Likewise.
11417 * symtab.c (output_source_filename): Use file name style
11418 to print file name.
11419 (print_symbol_info): Likewise.
11420 (print_msymbol_info): Use address style to print addresses.
11421 Use function name style to print executable text symbols.
11422 (expand_symtab_containing_pc): Use data_p.
11423 (find_pc_sect_compunit_symtab): Likewise.
11424
2636d81d
PW
114252019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11426
11427 * breakpoint.c (describe_other_breakpoints): Use address style
11428 to print addresses.
11429 (say_where): Likewise.
11430
ac8c53cc
PW
114312019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11432
11433 * ada-typeprint.c (print_func_type): Print function name
11434 style to print function name.
11435 * c-typeprint.c (c_print_type_1): Likewise.
11436
ea638c43
AH
114372019-02-11 Alan Hayward <alan.hayward@arm.com>
11438
11439 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11440 for execve.
11441
ab759ca8
PW
114422019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11443
11444 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11445 type_stack.
11446
aff29d1c
JB
114472019-02-10 Joel Brobecker <brobecker@adacore.com>
11448
11449 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11450 TYPE_CODE_REF types.
11451
617126bc
JW
114522019-02-08 Jim Wilson <jimw@sifive.com>
11453
11454 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11455 (riscv_linux_fregset): New.
11456 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11457
46e3ed7f
TT
114582019-02-07 Tom Tromey <tom@tromey.com>
11459
11460 * thread.c (thread_cancel_execution_command): Update.
11461 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11462 methods.
11463 (struct thread_fsm_ops): Remove.
11464 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11465 (thread_fsm_should_stop, thread_fsm_return_value)
11466 (thread_fsm_set_finished, thread_fsm_finished_p)
11467 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11468 Don't declare.
11469 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11470 * infrun.c (clear_proceed_status_thread)
11471 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11472 (print_stop_event): Update.
11473 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11474 Add constructor.
11475 (step_command_fsm_ops): Remove.
11476 (new_step_command_fsm): Remove.
11477 (step_1): Update.
11478 (step_command_fsm::should_stop): Rename from
11479 step_command_fsm_should_stop.
11480 (step_command_fsm::clean_up): Rename from
11481 step_command_fsm_clean_up.
11482 (step_command_fsm::do_async_reply_reason): Rename from
11483 step_command_fsm_async_reply_reason.
11484 (struct until_next_fsm): Inherit from thread_fsm. Add
11485 constructor.
11486 (until_next_fsm_ops): Remove.
11487 (new_until_next_fsm): Remove.
11488 (until_next_fsm::should_stop): Rename from
11489 until_next_fsm_should_stop.
11490 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11491 (until_next_fsm::do_async_reply_reason): Rename from
11492 until_next_fsm_async_reply_reason.
11493 (struct finish_command_fsm): Inherit from thread_fsm. Add
11494 constructor. Change type of breakpoint.
11495 (finish_command_fsm_ops): Remove.
11496 (new_finish_command_fsm): Remove.
11497 (finish_command_fsm::should_stop): Rename from
11498 finish_command_fsm_should_stop.
11499 (finish_command_fsm::clean_up): Rename from
11500 finish_command_fsm_clean_up.
11501 (finish_command_fsm::return_value): Rename from
11502 finish_command_fsm_return_value.
11503 (finish_command_fsm::do_async_reply_reason): Rename from
11504 finish_command_fsm_async_reply_reason.
11505 (finish_command): Update.
11506 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11507 Add constructor.
11508 (call_thread_fsm_ops): Remove.
11509 (call_thread_fsm::call_thread_fsm): Rename from
11510 new_call_thread_fsm.
11511 (call_thread_fsm::should_stop): Rename from
11512 call_thread_fsm_should_stop.
11513 (call_thread_fsm::should_notify_stop): Rename from
11514 call_thread_fsm_should_notify_stop.
11515 (run_inferior_call, call_function_by_hand_dummy): Update.
11516 * cli/cli-interp.c (should_print_stop_to_console): Update.
11517 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11518 Add constructor. Change type of location_breakpoint,
11519 caller_breakpoint.
11520 (until_break_fsm_ops): Remove.
11521 (new_until_break_fsm): Remove.
11522 (until_break_fsm::should_stop): Rename from
11523 until_break_fsm_should_stop.
11524 (until_break_fsm::clean_up): Rename from
11525 until_break_fsm_clean_up.
11526 (until_break_fsm::do_async_reply_reason): Rename from
11527 until_break_fsm_async_reply_reason.
11528 (until_break_command): Update.
11529 * thread-fsm.c: Remove.
11530 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11531
1a5c2598
TT
115322019-02-07 Tom Tromey <tom@tromey.com>
11533
11534 * yy-remap.h: Add include guard.
11535 * xtensa-tdep.h: Add include guard.
11536 * xcoffread.h: Rename include guard.
11537 * varobj-iter.h: Add include guard.
11538 * tui/tui.h: Rename include guard.
11539 * tui/tui-winsource.h: Rename include guard.
11540 * tui/tui-wingeneral.h: Rename include guard.
11541 * tui/tui-windata.h: Rename include guard.
11542 * tui/tui-win.h: Rename include guard.
11543 * tui/tui-stack.h: Rename include guard.
11544 * tui/tui-source.h: Rename include guard.
11545 * tui/tui-regs.h: Rename include guard.
11546 * tui/tui-out.h: Rename include guard.
11547 * tui/tui-layout.h: Rename include guard.
11548 * tui/tui-io.h: Rename include guard.
11549 * tui/tui-hooks.h: Rename include guard.
11550 * tui/tui-file.h: Rename include guard.
11551 * tui/tui-disasm.h: Rename include guard.
11552 * tui/tui-data.h: Rename include guard.
11553 * tui/tui-command.h: Rename include guard.
11554 * tic6x-tdep.h: Add include guard.
11555 * target/waitstatus.h: Rename include guard.
11556 * target/wait.h: Rename include guard.
11557 * target/target.h: Rename include guard.
11558 * target/resume.h: Rename include guard.
11559 * target-float.h: Rename include guard.
11560 * stabsread.h: Add include guard.
11561 * rs6000-tdep.h: Add include guard.
11562 * riscv-fbsd-tdep.h: Add include guard.
11563 * regformats/regdef.h: Rename include guard.
11564 * record.h: Rename include guard.
11565 * python/python.h: Rename include guard.
11566 * python/python-internal.h: Rename include guard.
11567 * python/py-stopevent.h: Rename include guard.
11568 * python/py-ref.h: Rename include guard.
11569 * python/py-record.h: Rename include guard.
11570 * python/py-record-full.h: Rename include guard.
11571 * python/py-record-btrace.h: Rename include guard.
11572 * python/py-instruction.h: Rename include guard.
11573 * python/py-events.h: Rename include guard.
11574 * python/py-event.h: Rename include guard.
11575 * procfs.h: Add include guard.
11576 * proc-utils.h: Add include guard.
11577 * p-lang.h: Add include guard.
11578 * or1k-tdep.h: Rename include guard.
11579 * observable.h: Rename include guard.
11580 * nto-tdep.h: Rename include guard.
11581 * nat/x86-linux.h: Rename include guard.
11582 * nat/x86-linux-dregs.h: Rename include guard.
11583 * nat/x86-gcc-cpuid.h: Add include guard.
11584 * nat/x86-dregs.h: Rename include guard.
11585 * nat/x86-cpuid.h: Rename include guard.
11586 * nat/ppc-linux.h: Rename include guard.
11587 * nat/mips-linux-watch.h: Rename include guard.
11588 * nat/linux-waitpid.h: Rename include guard.
11589 * nat/linux-ptrace.h: Rename include guard.
11590 * nat/linux-procfs.h: Rename include guard.
11591 * nat/linux-osdata.h: Rename include guard.
11592 * nat/linux-nat.h: Rename include guard.
11593 * nat/linux-namespaces.h: Rename include guard.
11594 * nat/linux-btrace.h: Rename include guard.
11595 * nat/glibc_thread_db.h: Rename include guard.
11596 * nat/gdb_thread_db.h: Rename include guard.
11597 * nat/gdb_ptrace.h: Rename include guard.
11598 * nat/fork-inferior.h: Rename include guard.
11599 * nat/amd64-linux-siginfo.h: Rename include guard.
11600 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11601 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11602 * nat/aarch64-linux.h: Rename include guard.
11603 * nat/aarch64-linux-hw-point.h: Rename include guard.
11604 * mn10300-tdep.h: Add include guard.
11605 * mips-linux-tdep.h: Add include guard.
11606 * mi/mi-parse.h: Rename include guard.
11607 * mi/mi-out.h: Rename include guard.
11608 * mi/mi-main.h: Rename include guard.
11609 * mi/mi-interp.h: Rename include guard.
11610 * mi/mi-getopt.h: Rename include guard.
11611 * mi/mi-console.h: Rename include guard.
11612 * mi/mi-common.h: Rename include guard.
11613 * mi/mi-cmds.h: Rename include guard.
11614 * mi/mi-cmd-break.h: Rename include guard.
11615 * m2-lang.h: Add include guard.
11616 * location.h: Rename include guard.
11617 * linux-record.h: Rename include guard.
11618 * linux-nat.h: Add include guard.
11619 * linux-fork.h: Add include guard.
11620 * i386-darwin-tdep.h: Rename include guard.
11621 * hppa-linux-offsets.h: Add include guard.
11622 * guile/guile.h: Rename include guard.
11623 * guile/guile-internal.h: Rename include guard.
11624 * gnu-nat.h: Rename include guard.
11625 * gdb-stabs.h: Rename include guard.
11626 * frv-tdep.h: Add include guard.
11627 * f-lang.h: Add include guard.
11628 * event-loop.h: Add include guard.
11629 * darwin-nat.h: Rename include guard.
11630 * cp-abi.h: Rename include guard.
11631 * config/sparc/nm-sol2.h: Rename include guard.
11632 * config/nm-nto.h: Rename include guard.
11633 * config/nm-linux.h: Add include guard.
11634 * config/i386/nm-i386gnu.h: Rename include guard.
11635 * config/djgpp/nl_types.h: Rename include guard.
11636 * config/djgpp/langinfo.h: Rename include guard.
11637 * compile/gcc-cp-plugin.h: Add include guard.
11638 * compile/gcc-c-plugin.h: Add include guard.
11639 * compile/compile.h: Rename include guard.
11640 * compile/compile-object-run.h: Rename include guard.
11641 * compile/compile-object-load.h: Rename include guard.
11642 * compile/compile-internal.h: Rename include guard.
11643 * compile/compile-cplus.h: Rename include guard.
11644 * compile/compile-c.h: Rename include guard.
11645 * common/xml-utils.h: Rename include guard.
11646 * common/x86-xstate.h: Rename include guard.
11647 * common/version.h: Rename include guard.
11648 * common/vec.h: Rename include guard.
11649 * common/tdesc.h: Rename include guard.
11650 * common/selftest.h: Rename include guard.
11651 * common/scoped_restore.h: Rename include guard.
11652 * common/scoped_mmap.h: Rename include guard.
11653 * common/scoped_fd.h: Rename include guard.
11654 * common/safe-iterator.h: Rename include guard.
11655 * common/run-time-clock.h: Rename include guard.
11656 * common/refcounted-object.h: Rename include guard.
11657 * common/queue.h: Rename include guard.
11658 * common/ptid.h: Rename include guard.
11659 * common/print-utils.h: Rename include guard.
11660 * common/preprocessor.h: Rename include guard.
11661 * common/pathstuff.h: Rename include guard.
11662 * common/observable.h: Rename include guard.
11663 * common/netstuff.h: Rename include guard.
11664 * common/job-control.h: Rename include guard.
11665 * common/host-defs.h: Rename include guard.
11666 * common/gdb_wait.h: Rename include guard.
11667 * common/gdb_vecs.h: Rename include guard.
11668 * common/gdb_unlinker.h: Rename include guard.
11669 * common/gdb_unique_ptr.h: Rename include guard.
11670 * common/gdb_tilde_expand.h: Rename include guard.
11671 * common/gdb_sys_time.h: Rename include guard.
11672 * common/gdb_string_view.h: Rename include guard.
11673 * common/gdb_splay_tree.h: Rename include guard.
11674 * common/gdb_setjmp.h: Rename include guard.
11675 * common/gdb_ref_ptr.h: Rename include guard.
11676 * common/gdb_optional.h: Rename include guard.
11677 * common/gdb_locale.h: Rename include guard.
11678 * common/gdb_assert.h: Rename include guard.
11679 * common/filtered-iterator.h: Rename include guard.
11680 * common/filestuff.h: Rename include guard.
11681 * common/fileio.h: Rename include guard.
11682 * common/environ.h: Rename include guard.
11683 * common/common-utils.h: Rename include guard.
11684 * common/common-types.h: Rename include guard.
11685 * common/common-regcache.h: Rename include guard.
11686 * common/common-inferior.h: Rename include guard.
11687 * common/common-gdbthread.h: Rename include guard.
11688 * common/common-exceptions.h: Rename include guard.
11689 * common/common-defs.h: Rename include guard.
11690 * common/common-debug.h: Rename include guard.
11691 * common/cleanups.h: Rename include guard.
11692 * common/buffer.h: Rename include guard.
11693 * common/btrace-common.h: Rename include guard.
11694 * common/break-common.h: Rename include guard.
11695 * cli/cli-utils.h: Rename include guard.
11696 * cli/cli-style.h: Rename include guard.
11697 * cli/cli-setshow.h: Rename include guard.
11698 * cli/cli-script.h: Rename include guard.
11699 * cli/cli-interp.h: Rename include guard.
11700 * cli/cli-decode.h: Rename include guard.
11701 * cli/cli-cmds.h: Rename include guard.
11702 * charset-list.h: Add include guard.
11703 * buildsym-legacy.h: Rename include guard.
11704 * bfin-tdep.h: Add include guard.
11705 * ax.h: Rename include guard.
11706 * arm-linux-tdep.h: Add include guard.
11707 * arm-fbsd-tdep.h: Add include guard.
11708 * arch/xtensa.h: Rename include guard.
11709 * arch/tic6x.h: Add include guard.
11710 * arch/i386.h: Add include guard.
11711 * arch/arm.h: Rename include guard.
11712 * arch/arm-linux.h: Rename include guard.
11713 * arch/arm-get-next-pcs.h: Rename include guard.
11714 * arch/amd64.h: Add include guard.
11715 * arch/aarch64-insn.h: Rename include guard.
11716 * arch-utils.h: Rename include guard.
11717 * annotate.h: Add include guard.
11718 * amd64-darwin-tdep.h: Rename include guard.
11719 * aarch64-linux-tdep.h: Add include guard.
11720 * aarch64-fbsd-tdep.h: Add include guard.
11721 * aarch32-linux-nat.h: Add include guard.
11722
ab9268d2
PW
117232019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11724
11725 * macrotab.c (macro_define_internal): New function that
11726 factorizes macro_define_object_internal and macro_define_function
11727 code.
11728 (macro_define_object_internal): Use macro_define_internal.
11729 (macro_define_function): Likewise.
11730
bb0da2b4
PW
117312019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11732
11733 * macrocmd.c (extract_identifier): Return
11734 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11735 callers.
11736
424eb552
JB
117372019-02-06 John Baldwin <jhb@FreeBSD.org>
11738
11739 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11740
1688cb29
TT
117412019-02-05 Tom Tromey <tom@tromey.com>
11742
11743 * target.c (target_stack::unpush): Move assertion earlier.
11744
b5eba2d8
TT
117452019-01-30 Tom Tromey <tom@tromey.com>
11746
11747 PR python/23615:
11748 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11749 (gdbpy_parse_and_eval): Likewise.
11750 * python/python-internal.h (gdbpy_allow_threads): New class.
11751
7054e2ff
JB
117522019-01-28 John Baldwin <jhb@FreeBSD.org>
11753
11754 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11755 (aarch64_fbsd_fpregmap): Move earlier.
11756 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11757 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11758 instead of individual calls to trad_frame_set_reg_addr.
11759 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11760 earlier.
11761 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11762 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11763 instead of individual calls to trad_frame_set_reg_addr.
11764
36c25ffa
AH
117652019-01-28 Alan Hayward <alan.hayward@arm.com>
11766
11767 * CONTRIBUTE: Replace contribution list with wiki link.
11768
a0707f3c
TT
117692019-01-25 Tom Tromey <tom@tromey.com>
11770
11771 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11772
0747795c
TT
117732019-01-25 Tom Tromey <tom@tromey.com>
11774
11775 * xtensa-linux-nat.c: Fix common/ includes.
11776 * xml-support.h: Fix common/ includes.
11777 * xml-support.c: Fix common/ includes.
11778 * x86-linux-nat.c: Fix common/ includes.
11779 * windows-nat.c: Fix common/ includes.
11780 * varobj.h: Fix common/ includes.
11781 * varobj.c: Fix common/ includes.
11782 * value.c: Fix common/ includes.
11783 * valops.c: Fix common/ includes.
11784 * utils.c: Fix common/ includes.
11785 * unittests/xml-utils-selftests.c: Fix common/ includes.
11786 * unittests/utils-selftests.c: Fix common/ includes.
11787 * unittests/unpack-selftests.c: Fix common/ includes.
11788 * unittests/tracepoint-selftests.c: Fix common/ includes.
11789 * unittests/style-selftests.c: Fix common/ includes.
11790 * unittests/string_view-selftests.c: Fix common/ includes.
11791 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11792 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11793 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11794 * unittests/rsp-low-selftests.c: Fix common/ includes.
11795 * unittests/parse-connection-spec-selftests.c: Fix common/
11796 includes.
11797 * unittests/optional-selftests.c: Fix common/ includes.
11798 * unittests/offset-type-selftests.c: Fix common/ includes.
11799 * unittests/observable-selftests.c: Fix common/ includes.
11800 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11801 * unittests/memrange-selftests.c: Fix common/ includes.
11802 * unittests/memory-map-selftests.c: Fix common/ includes.
11803 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11804 * unittests/function-view-selftests.c: Fix common/ includes.
11805 * unittests/environ-selftests.c: Fix common/ includes.
11806 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11807 * unittests/common-utils-selftests.c: Fix common/ includes.
11808 * unittests/cli-utils-selftests.c: Fix common/ includes.
11809 * unittests/array-view-selftests.c: Fix common/ includes.
11810 * ui-file.c: Fix common/ includes.
11811 * tui/tui-io.c: Fix common/ includes.
11812 * tracepoint.h: Fix common/ includes.
11813 * tracepoint.c: Fix common/ includes.
11814 * tracefile-tfile.c: Fix common/ includes.
11815 * top.h: Fix common/ includes.
11816 * top.c: Fix common/ includes.
11817 * thread.c: Fix common/ includes.
11818 * target/waitstatus.h: Fix common/ includes.
11819 * target/waitstatus.c: Fix common/ includes.
11820 * target.h: Fix common/ includes.
11821 * target.c: Fix common/ includes.
11822 * target-memory.c: Fix common/ includes.
11823 * target-descriptions.c: Fix common/ includes.
11824 * symtab.h: Fix common/ includes.
11825 * symfile.c: Fix common/ includes.
11826 * stap-probe.c: Fix common/ includes.
11827 * spu-linux-nat.c: Fix common/ includes.
11828 * sparc-nat.c: Fix common/ includes.
11829 * source.c: Fix common/ includes.
11830 * solib.c: Fix common/ includes.
11831 * solib-target.c: Fix common/ includes.
11832 * ser-unix.c: Fix common/ includes.
11833 * ser-tcp.c: Fix common/ includes.
11834 * ser-pipe.c: Fix common/ includes.
11835 * ser-base.c: Fix common/ includes.
11836 * selftest-arch.c: Fix common/ includes.
11837 * s12z-tdep.c: Fix common/ includes.
11838 * rust-exp.y: Fix common/ includes.
11839 * rs6000-aix-tdep.c: Fix common/ includes.
11840 * riscv-tdep.c: Fix common/ includes.
11841 * remote.c: Fix common/ includes.
11842 * remote-notif.h: Fix common/ includes.
11843 * remote-fileio.h: Fix common/ includes.
11844 * remote-fileio.c: Fix common/ includes.
11845 * regcache.h: Fix common/ includes.
11846 * regcache.c: Fix common/ includes.
11847 * record-btrace.c: Fix common/ includes.
11848 * python/python.c: Fix common/ includes.
11849 * python/py-type.c: Fix common/ includes.
11850 * python/py-inferior.c: Fix common/ includes.
11851 * progspace.h: Fix common/ includes.
11852 * producer.c: Fix common/ includes.
11853 * procfs.c: Fix common/ includes.
11854 * proc-api.c: Fix common/ includes.
11855 * printcmd.c: Fix common/ includes.
11856 * ppc-linux-nat.c: Fix common/ includes.
11857 * parser-defs.h: Fix common/ includes.
11858 * osdata.c: Fix common/ includes.
11859 * obsd-nat.c: Fix common/ includes.
11860 * nat/x86-linux.c: Fix common/ includes.
11861 * nat/x86-linux-dregs.c: Fix common/ includes.
11862 * nat/x86-dregs.h: Fix common/ includes.
11863 * nat/x86-dregs.c: Fix common/ includes.
11864 * nat/ppc-linux.c: Fix common/ includes.
11865 * nat/mips-linux-watch.h: Fix common/ includes.
11866 * nat/mips-linux-watch.c: Fix common/ includes.
11867 * nat/linux-waitpid.c: Fix common/ includes.
11868 * nat/linux-ptrace.h: Fix common/ includes.
11869 * nat/linux-ptrace.c: Fix common/ includes.
11870 * nat/linux-procfs.c: Fix common/ includes.
11871 * nat/linux-personality.c: Fix common/ includes.
11872 * nat/linux-osdata.c: Fix common/ includes.
11873 * nat/linux-namespaces.c: Fix common/ includes.
11874 * nat/linux-btrace.h: Fix common/ includes.
11875 * nat/linux-btrace.c: Fix common/ includes.
11876 * nat/fork-inferior.c: Fix common/ includes.
11877 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11878 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11879 * nat/aarch64-linux.c: Fix common/ includes.
11880 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11881 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11882 * namespace.h: Fix common/ includes.
11883 * mips-linux-tdep.c: Fix common/ includes.
11884 * minsyms.c: Fix common/ includes.
11885 * mi/mi-parse.h: Fix common/ includes.
11886 * mi/mi-main.c: Fix common/ includes.
11887 * mi/mi-cmd-env.c: Fix common/ includes.
11888 * memrange.h: Fix common/ includes.
11889 * memattr.c: Fix common/ includes.
11890 * maint.h: Fix common/ includes.
11891 * maint.c: Fix common/ includes.
11892 * main.c: Fix common/ includes.
11893 * machoread.c: Fix common/ includes.
11894 * location.c: Fix common/ includes.
11895 * linux-thread-db.c: Fix common/ includes.
11896 * linux-nat.c: Fix common/ includes.
11897 * linux-fork.c: Fix common/ includes.
11898 * inline-frame.c: Fix common/ includes.
11899 * infrun.c: Fix common/ includes.
11900 * inflow.c: Fix common/ includes.
11901 * inferior.h: Fix common/ includes.
11902 * inferior.c: Fix common/ includes.
11903 * infcmd.c: Fix common/ includes.
11904 * inf-ptrace.c: Fix common/ includes.
11905 * inf-child.c: Fix common/ includes.
11906 * ia64-linux-nat.c: Fix common/ includes.
11907 * i387-tdep.c: Fix common/ includes.
11908 * i386-tdep.c: Fix common/ includes.
11909 * i386-linux-tdep.c: Fix common/ includes.
11910 * i386-linux-nat.c: Fix common/ includes.
11911 * i386-go32-tdep.c: Fix common/ includes.
11912 * i386-fbsd-tdep.c: Fix common/ includes.
11913 * i386-fbsd-nat.c: Fix common/ includes.
11914 * guile/scm-type.c: Fix common/ includes.
11915 * guile/guile.c: Fix common/ includes.
11916 * go32-nat.c: Fix common/ includes.
11917 * gnu-nat.c: Fix common/ includes.
11918 * gdbthread.h: Fix common/ includes.
11919 * gdbarch-selftests.c: Fix common/ includes.
11920 * gdb_usleep.c: Fix common/ includes.
11921 * gdb_select.h: Fix common/ includes.
11922 * gdb_bfd.c: Fix common/ includes.
11923 * gcore.c: Fix common/ includes.
11924 * fork-child.c: Fix common/ includes.
11925 * findvar.c: Fix common/ includes.
11926 * fbsd-nat.c: Fix common/ includes.
11927 * event-top.c: Fix common/ includes.
11928 * event-loop.c: Fix common/ includes.
11929 * dwarf2read.c: Fix common/ includes.
11930 * dwarf2loc.c: Fix common/ includes.
11931 * dwarf2-frame.c: Fix common/ includes.
11932 * dwarf-index-cache.c: Fix common/ includes.
11933 * dtrace-probe.c: Fix common/ includes.
11934 * disasm-selftests.c: Fix common/ includes.
11935 * defs.h: Fix common/ includes.
11936 * csky-tdep.c: Fix common/ includes.
11937 * cp-valprint.c: Fix common/ includes.
11938 * cp-support.h: Fix common/ includes.
11939 * cp-support.c: Fix common/ includes.
11940 * corelow.c: Fix common/ includes.
11941 * completer.h: Fix common/ includes.
11942 * completer.c: Fix common/ includes.
11943 * compile/compile.c: Fix common/ includes.
11944 * compile/compile-loc2c.c: Fix common/ includes.
11945 * compile/compile-cplus-types.c: Fix common/ includes.
11946 * compile/compile-cplus-symbols.c: Fix common/ includes.
11947 * command.h: Fix common/ includes.
11948 * cli/cli-dump.c: Fix common/ includes.
11949 * cli/cli-cmds.c: Fix common/ includes.
11950 * charset.c: Fix common/ includes.
11951 * build-id.c: Fix common/ includes.
11952 * btrace.h: Fix common/ includes.
11953 * btrace.c: Fix common/ includes.
11954 * breakpoint.h: Fix common/ includes.
11955 * breakpoint.c: Fix common/ includes.
11956 * ax.h:
11957 (enum agent_op): Fix common/ includes.
11958 * ax-general.c (struct aop_map): Fix common/ includes.
11959 * ax-gdb.c: Fix common/ includes.
11960 * auxv.c: Fix common/ includes.
11961 * auto-load.c: Fix common/ includes.
11962 * arm-tdep.c: Fix common/ includes.
11963 * arch/riscv.c: Fix common/ includes.
11964 * arch/ppc-linux-common.c: Fix common/ includes.
11965 * arch/i386.c: Fix common/ includes.
11966 * arch/arm.c: Fix common/ includes.
11967 * arch/arm-linux.c: Fix common/ includes.
11968 * arch/arm-get-next-pcs.c: Fix common/ includes.
11969 * arch/amd64.c: Fix common/ includes.
11970 * arch/aarch64.c: Fix common/ includes.
11971 * arch/aarch64-insn.c: Fix common/ includes.
11972 * arch-utils.c: Fix common/ includes.
11973 * amd64-windows-tdep.c: Fix common/ includes.
11974 * amd64-tdep.c: Fix common/ includes.
11975 * amd64-sol2-tdep.c: Fix common/ includes.
11976 * amd64-obsd-tdep.c: Fix common/ includes.
11977 * amd64-nbsd-tdep.c: Fix common/ includes.
11978 * amd64-linux-tdep.c: Fix common/ includes.
11979 * amd64-linux-nat.c: Fix common/ includes.
11980 * amd64-fbsd-tdep.c: Fix common/ includes.
11981 * amd64-fbsd-nat.c: Fix common/ includes.
11982 * amd64-dicos-tdep.c: Fix common/ includes.
11983 * amd64-darwin-tdep.c: Fix common/ includes.
11984 * agent.c: Fix common/ includes.
11985 * ada-lang.h: Fix common/ includes.
11986 * ada-lang.c: Fix common/ includes.
11987 * aarch64-tdep.c: Fix common/ includes.
11988
2f5c153e
TT
119892019-01-25 Tom Tromey <tom@tromey.com>
11990
11991 * common/create-version.sh: Use common/version.h.
11992
adc6a863
PA
119932019-01-24 Pedro Alves <palves@redhat.com>
11994
11995 * infrun.c (signal_stop, signal_print, signal_program)
11996 (signal_catch, signal_pass): Now arrays instead of pointers.
11997 (update_signals_program_target, do_target_resume)
11998 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11999 * linux-nat.c (linux_nat_target::pass_signals)
12000 (linux_nat_target::create_inferior, linux_nat_target::attach):
12001 Adjust.
12002 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12003 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12004 * procfs.c (procfs_target::pass_signals): Adjust.
12005 * record-full.c (record_full_target::resume): Adjust.
12006 * remote.c (remote_target::pass_signals)
12007 (remote_target::program_signals): Adjust.
12008 * target-debug.h (target_debug_print_signals): Now takes a
12009 gdb::array_view as parameter. Adjust.
12010 * target.h (target_ops) <pass_signals, program_signals>: Replace
12011 pointer and length parameters with gdb::array_view.
12012 (target_pass_signals, target_program_signals): Likewise.
12013 * target-delegates.c: Regenerate.
12014
3046d67a
PA
120152019-01-24 Pedro Alves <palves@redhat.com>
12016
12017 * common/forward-scope-exit.h
12018 (forward_scope_exit::forward_scope_exit): Pass arguments to
12019 m_bind_function directly, instead of creating a std::bind and
12020 copying that.
12021
353229bf
AH
120222019-01-24 Alan Hayward <alan.hayward@arm.com>
12023
12024 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12025 for static members.
12026 (pass_in_v_vfp_candidate): Likewise.
12027
311dc83a
TT
120282019-01-23 Tom Tromey <tom@tromey.com>
12029 Pedro Alves <palves@redhat.com>
12030
12031 * regcache.c (class regcache_invalidator): Remove.
12032 (regcache::raw_write): Use make_scope_exit.
12033
296bd123
TT
120342019-01-23 Tom Tromey <tom@tromey.com>
12035
12036 * ui-out.h (class ui_out_emit_type): Update comment.
12037
979a0d13
TT
120382019-01-23 Tom Tromey <tom@tromey.com>
12039
12040 * infrun.c (fetch_inferior_event): Update comment.
12041
d238133d
TT
120422019-01-23 Tom Tromey <tom@tromey.com>
12043 Pedro Alves <palves@redhat.com>
12044
12045 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12046 parameter.
12047 (fetch_inferior_event): Use SCOPE_EXIT.
12048
12049
9885e6bb
TT
120502019-01-23 Tom Tromey <tom@tromey.com>
12051 Pedro Alves <palves@redhat.com>
12052
12053 * infrun.c (disable_thread_events): Delete.
12054 (stop_all_threads): Use SCOPE_EXIT.
12055
286526c1
TT
120562019-01-23 Tom Tromey <tom@tromey.com>
12057 Pedro Alves <palves@redhat.com>
12058
12059 * symfile.c: Include forward-scope-exit.h.
12060 (clear_symtab_users_cleanup): Replace forward declaration with
12061 a FORWARD_SCOPE_EXIT.
12062 (syms_from_objfile_1): Use the forward_scope_exit and
12063 gdb::optional instead of cleanup_function.
12064 (reread_symbols): Use the forward_scope_exit instead of
12065 cleanup_function.
12066 (clear_symtab_users_cleanup): Remove function.
12067
1db93f14
TT
120682019-01-23 Tom Tromey <tom@tromey.com>
12069 Pedro Alves <palves@redhat.com>
12070
12071 * linux-nat.c: Include scope-exit.h.
12072 (cleanup_target_stop): Remove.
12073 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12074 SCOPE_EXIT.
12075
2cc83d1e
TT
120762019-01-23 Tom Tromey <tom@tromey.com>
12077 Pedro Alves <palves@redhat.com>
12078
12079 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12080 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12081
694c6bf5
TT
120822019-01-23 Tom Tromey <tom@tromey.com>
12083 Andrew Burgess <andrew.burgess@embecosm.com>
12084 Pedro Alves <palves@redhat.com>
12085
12086 * infrun.c (fetch_inferior_event): Use scope_exit.
12087 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12088 * top.c (execute_command): Use scope_exit.
12089 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12090 * utils.c (do_bpstat_clear_actions_cleanup)
12091 (make_bpstat_clear_actions_cleanup): Remove.
12092
4c41382a
TT
120932019-01-23 Tom Tromey <tom@tromey.com>
12094 Pedro Alves <palves@redhat.com>
12095
12096 * infrun.c: Include "common/scope-exit.h"
12097 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12098 (wait_for_inferior): Use SCOPE_EXIT.
12099 (fetch_inferior_event): Use scope_exit.
12100
89f8fb50
TT
121012019-01-23 Tom Tromey <tom@tromey.com>
12102 Pedro Alves <palves@redhat.com>
12103
12104 * breakpoint.c (create_breakpoint): Remove cleanup.
12105
5419bdae
TT
121062019-01-23 Tom Tromey <tom@tromey.com>
12107 Andrew Burgess <andrew.burgess@embecosm.com>
12108 Pedro Alves <palves@redhat.com>
12109
e587ef42
PA
121102019-01-23 Pedro Alves <palves@redhat.com>
12111
12112 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12113
77f0e74c
PA
121142019-01-23 Pedro Alves <palves@redhat.com>
12115 Andrew Burgess <andrew.burgess@embecosm.com>
12116
12117 * gdbthread.h: Include "common/forward-scope-exit.h".
12118 (scoped_finish_thread_state): Redefine custom class in terms of
12119 forward_scope_exit.
12120
5b9b3e53
PA
121212019-01-23 Pedro Alves <palves@redhat.com>
12122 Andrew Burgess <andrew.burgess@embecosm.com>
12123
12124 * common/forward-scope-exit.h: New file.
12125
54b65c9b
PA
121262019-01-23 Pedro Alves <palves@redhat.com>
12127 Andrew Burgess <andrew.burgess@embecosm.com>
12128 Tom Tromey <tom@tromey.com>
12129
12130 * common/scope-exit.h: New file.
12131
cf08fb29
PA
121322019-01-23 Pedro Alves <palves@redhat.com>
12133
12134 * common/preprocessor.h (ESC): Rename to ...
12135 (ESC_PARENS): ... this.
12136 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12137 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12138
ae73e2e2
TT
121392019-01-23 Tom Tromey <tom@tromey.com>
12140
12141 * language.h (class scoped_switch_to_sym_language_if_auto):
12142 Initialize m_lang in both cases.
12143
6594e122
AH
121442019-01-23 Alan Hayward <alan.hayward@arm.com>
12145
12146 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12147 with XCNEW.
12148
a7c9855d
TT
121492019-01-22 Tom Tromey <tom@tromey.com>
12150
12151 * corelow.c: Do not include sys/file.h.
12152
93cc1d53
TT
121532019-01-22 Tom Tromey <tom@tromey.com>
12154
12155 * tui/tui-wingeneral.h: Include gdb_curses.h.
12156
38561778
TT
121572019-01-22 Tom Tromey <tom@tromey.com>
12158
12159 * source-cache.h (class source_cache) <get_source_lines,
12160 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12161
37b3ab5b
TT
121622019-01-22 Tom Tromey <tom@tromey.com>
12163
12164 * remote-fileio.h (struct remote_target): Declare.
12165
3fabc016
TT
121662019-01-22 Tom Tromey <tom@tromey.com>
12167
12168 * python/py-arch.c: Do not include py-ref.h.
12169 * python/py-bpevent.c: Do not include py-ref.h.
12170 * python/py-cmd.c: Do not include py-ref.h.
12171 * python/py-continueevent.c: Do not include py-ref.h.
12172 * python/py-event.h: Do not include py-ref.h.
12173 * python/py-evtregistry.c: Do not include py-ref.h.
12174 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12175 * python/py-frame.c: Do not include py-ref.h.
12176 * python/py-framefilter.c: Do not include py-ref.h.
12177 * python/py-function.c: Do not include py-ref.h.
12178 * python/py-infevents.c: Do not include py-ref.h.
12179 * python/py-linetable.c: Do not include py-ref.h.
12180 * python/py-objfile.c: Do not include py-ref.h.
12181 * python/py-param.c: Do not include py-ref.h.
12182 * python/py-prettyprint.c: Do not include py-ref.h.
12183 * python/py-progspace.c: Do not include py-ref.h.
12184 * python/py-symbol.c: Do not include py-ref.h.
12185 * python/py-symtab.c: Do not include py-ref.h.
12186 * python/py-type.c: Do not include py-ref.h.
12187 * python/py-unwind.c: Do not include py-ref.h.
12188 * python/py-utils.c: Do not include py-ref.h.
12189 * python/py-value.c: Do not include py-ref.h.
12190 * python/py-varobj.c: Do not include py-ref.h.
12191 * python/py-xmethods.c: Do not include py-ref.h.
12192 * python/python.c: Do not include py-ref.h.
12193 * varobj.c: Do not include py-ref.h.
12194
6b4d7774
TT
121952019-01-22 Tom Tromey <tom@tromey.com>
12196
12197 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12198 keyword for bcache.
12199
7af7e9b5
TT
122002019-01-22 Tom Tromey <tom@tromey.com>
12201
12202 * compile/compile-cplus-types.c: Remove a comment by #include.
12203
951d1049
TT
122042019-01-22 Tom Tromey <tom@tromey.com>
12205
12206 * compile/gcc-c-plugin.h: Include compile-internal.h.
12207
d65d5705
TT
122082019-01-22 Tom Tromey <tom@tromey.com>
12209
12210 * stabsread.c (EXTERN): Do not define.
12211 (symnum, next_symbol_text_func, processing_gcc_compilation)
12212 (within_function, global_sym_chain, global_stabs)
12213 (previous_stab_code, this_object_header_files)
12214 (n_this_object_header_files)
12215 (n_allocated_this_object_header_files): Define.
12216 * stabsread.h (EXTERN): Never define. Use "extern".
12217
b6fb1ee5
PW
122182019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12219
12220 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12221 history_value.
12222
be6d4f74
TT
122232019-01-21 Tom Tromey <tom@tromey.com>
12224
12225 * ui-out.c: Fix includes.
12226 * tui/tui-source.c: Fix includes.
12227 * target.c: Fix includes.
12228 * remote.c: Fix includes.
12229 * regcache.c: Fix includes.
12230 * python/py-block.c: Fix includes.
12231 * printcmd.c: Fix includes.
12232 * or1k-tdep.c: Fix includes.
12233 * mi/mi-main.c: Fix includes.
12234 * m32r-tdep.c: Fix includes.
12235 * csky-tdep.c: Fix includes.
12236 * compile/compile-cplus-types.c: Fix includes.
12237 * cli/cli-interp.c: Fix includes.
12238
73021deb
AH
122392019-01-21 Alan Hayward <alan.hayward@arm.com>
12240
12241 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12242 for padding.
12243
7932255d
TT
122442019-01-16 Tom Tromey <tom@tromey.com>
12245
12246 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12247 earlier.
12248 (struct objfile) <msymbols_range>: Move from top level.
12249 <msymbols>: New method.
12250 (class objfile_msymbols): Remove.
12251 * symtab.c (default_collect_symbol_completion_matches_break_on):
12252 Update.
12253 * symmisc.c (dump_msymbols): Update.
12254 * stabsread.c (scan_file_globals): Update.
12255 * objc-lang.c (info_selectors_command, info_classes_command)
12256 (find_methods): Update.
12257 * minsyms.c (find_solib_trampoline_target): Update.
12258 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12259 * coffread.c (coff_symfile_read): Update.
12260 * ada-lang.c (ada_lookup_simple_minsym)
12261 (ada_collect_symbol_completion_matches): Update.
12262
604b1bfb
TT
122632019-01-16 Tom Tromey <tom@tromey.com>
12264
12265 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12266 type. Remove no-argument constructor.
12267 <iterator::operator++>: Simplify.
12268 <begin>: Update.
12269 <end>: Use minimal_symbol_count.
12270
f252c6d5
TT
122712019-01-16 Tom Tromey <tom@tromey.com>
12272
12273 * objfiles.h (struct objfile) <psymtabs>: New method.
12274 (class objfile_psymtabs): Remove.
12275 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12276 typedef.
12277 <range>: New method.
12278 (require_partial_symbols): Change return type.
12279 * psymtab.c (require_partial_symbols)
12280 (psym_expand_symtabs_matching): Update.
12281 * mdebugread.c (parse_partial_symbols): Update.
12282 * dbxread.c (dbx_end_psymtab): Update.
12283
b669c953
TT
122842019-01-15 Tom Tromey <tom@tromey.com>
12285
12286 * symtab.c (lookup_objfile_from_block)
12287 (lookup_symbol_in_objfile_symtabs)
12288 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12289 (find_line_symtab, info_sources_command)
12290 (default_collect_symbol_completion_matches_break_on)
12291 (make_source_files_completion_list): Update.
12292 * symmisc.c (print_objfile_statistics, dump_objfile)
12293 (maintenance_print_symbols, maintenance_info_symtabs)
12294 (maintenance_check_symtabs, maintenance_info_line_tables):
12295 Update.
12296 * source.c (select_source_symtab)
12297 (forget_cached_source_info_for_objfile): Update.
12298 * objfiles.h (class objfile_compunits): Remove.
12299 (struct objfile) <compunits_range>: New typedef.
12300 (compunits): New method.
12301 * objfiles.c (objfile_relocate1): Update.
12302 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12303 * maint.c (count_symtabs_and_blocks): Update.
12304 * linespec.c (iterate_over_all_matching_symtabs): Update.
12305 * cp-support.c (add_symbol_overload_list_qualified): Update.
12306 * coffread.c (coff_symtab_read): Update.
12307 * ada-lang.c (add_nonlocal_symbols)
12308 (ada_collect_symbol_completion_matches)
12309 (ada_add_global_exceptions): Update.
12310
7e955d83
TT
123112019-01-15 Tom Tromey <tom@tromey.com>
12312
12313 * progspace.h (program_space) <objfiles_safe_range>: New
12314 typedef.
12315 <objfiles_safe>: New method.
12316 * objfiles.h (class all_objfiles_safe): Remove.
12317 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12318 * jit.c (jit_inferior_exit_hook): Update.
12319
2030c079
TT
123202019-01-17 Tom Tromey <tom@tromey.com>
12321
12322 * progspace.h (program_space) <objfiles_range>: New typedef.
12323 <objfiles>: New method.
12324 <objfiles_head>: Rename from objfiles.
12325 (object_files): Update.
12326 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12327 * guile/scm-pretty-print.c
12328 (ppscm_find_pretty_printer_from_objfiles): Update.
12329 * guile/scm-objfile.c (gdbscm_objfiles): Update.
12330 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12331 Update.
12332 * python/py-progspace.c (pspy_get_objfiles): Update.
12333 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12334 Update.
12335 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12336 (objfpy_lookup_objfile_by_build_id): Update.
12337 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12338 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12339 Update.
12340 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12341 (expand_symtab_containing_pc, lookup_objfile_from_block)
12342 (lookup_static_symbol, basic_lookup_transparent_type)
12343 (find_pc_sect_compunit_symtab, find_symbol_at_address)
12344 (find_line_symtab, info_sources_command)
12345 (default_collect_symbol_completion_matches_break_on)
12346 (make_source_files_completion_list, find_main_name): Update.
12347 * symmisc.c (print_symbol_bcache_statistics)
12348 (print_objfile_statistics, maintenance_print_symbols)
12349 (maintenance_print_msymbols, maintenance_print_objfiles)
12350 (maintenance_info_symtabs, maintenance_check_symtabs)
12351 (maintenance_expand_symtabs, maintenance_info_line_tables):
12352 Update.
12353 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12354 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12355 (map_overlay_command, unmap_overlay_command)
12356 (simple_overlay_update, expand_symtabs_matching)
12357 (map_symbol_filenames): Update.
12358 * symfile-debug.c (set_debug_symfile): Update.
12359 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12360 Update.
12361 * source.c (select_source_symtab, forget_cached_source_info):
12362 Update.
12363 * solib.c (solib_read_symbols): Update.
12364 * solib-spu.c (append_ocl_sos): Update.
12365 * psymtab.c (maintenance_print_psymbols)
12366 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12367 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12368 * printcmd.c (info_symbol_command): Update.
12369 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12370 Update.
12371 * objfiles.h (class all_objfiles): Remove.
12372 * objfiles.c (have_partial_symbols, have_full_symbols)
12373 (have_minimal_symbols, qsort_cmp, update_section_map)
12374 (shared_objfile_contains_address_p)
12375 (default_iterate_over_objfiles_in_search_order): Update.
12376 * objc-lang.c (info_selectors_command, info_classes_command)
12377 (find_methods): Update.
12378 * minsyms.c (find_solib_trampoline_target): Update.
12379 * maint.c (maintenance_info_sections)
12380 (maintenance_translate_address, count_symtabs_and_blocks):
12381 Update.
12382 * main.c (captured_main_1): Update.
12383 * linux-thread-db.c (try_thread_db_load_from_pdir)
12384 (has_libpthread): Update.
12385 * linespec.c (iterate_over_all_matching_symtabs)
12386 (search_minsyms_for_name): Update.
12387 * jit.c (jit_find_objf_with_entry_addr): Update.
12388 * hppa-tdep.c (find_unwind_entry)
12389 (hppa_lookup_stub_minimal_symbol): Update.
12390 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12391 Update.
12392 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12393 (elf_gnu_ifunc_resolve_by_got): Update.
12394 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12395 * dwarf-index-write.c (save_gdb_index_command): Update.
12396 * cp-support.c (add_symbol_overload_list_qualified): Update.
12397 * breakpoint.c (create_overlay_event_breakpoint)
12398 (create_longjmp_master_breakpoint)
12399 (create_std_terminate_master_breakpoint)
12400 (create_exception_master_breakpoint): Update.
12401 * blockframe.c (find_pc_partial_function): Update.
12402 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12403 (ada_collect_symbol_completion_matches)
12404 (ada_add_global_exceptions): Update.
12405
776489e0
TT
124062019-01-17 Tom Tromey <tom@tromey.com>
12407
12408 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12409 declare VEC.
12410 (solib_target_parse_libraries): Change return type.
12411 (library_list_start_segment, library_list_start_section)
12412 (library_list_end_library, library_list_start_library); Update.
12413 (solib_target_free_library_list): Remove.
12414 (solib_target_parse_libraries): Remove cleanup. Change return
12415 type.
12416 (solib_target_current_sos): Update.
12417
6471e7d2
TT
124182019-01-17 Tom Tromey <tromey@bapiya>
12419
12420 * valprint.c: Replace "the the" with "the".
12421 * symtab.c: Replace "the the" with "the".
12422 * solib.c: Replace "the the" with "the".
12423 * solib-dsbt.c: Replace "the the" with "the".
12424 * linespec.c: Replace "the the" with "the".
12425 * dwarf2loc.h: Replace "the the" with "the".
12426 * amd64-windows-tdep.c: Replace "the the" with "the".
12427 * aarch64-tdep.c: Replace "the the" with "the".
12428
c24bdb02
KS
124292019-01-16 Keith Seitz <keiths@redhat.com>
12430
12431 PR gdb/23773
12432 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12433 <builder>: Rename to ..
12434 <m_builder>: ... this and make private.
12435 (dwarf2_cu::get_builder): New method. Change all users of
12436 `builder' to use this method.
12437 (dwarf2_start_symtab): Move to ...
12438 (dwarf2_cu::start_symtab): ... here. Update all callers
12439 (setup_type_unit_groups): Move to ...
12440 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12441 callers.
12442 (dwarf2_cu::reset_builder): New method.
12443 (process_full_compunit, process_full_type_unit): Use
12444 dwarf2_cu::reset_builder.
12445 (follow_die_offset): Record the ancestor CU if it is different
12446 from the followed DIE's CU.
12447 (follow_die_sig_1): Likewise.
12448
8d64371b
TT
124492019-01-15 Tom Tromey <tom@tromey.com>
12450
12451 * remote.c (class remote_state) <buf>: Now a char_vector.
12452 <buf_size>: Remove.
12453 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12454 parameter.
12455 (remote_target::getpkt_or_notif_sane_1)
12456 (remote_target::getpkt_sane)
12457 (remote_target::getpkt_or_notif_sane): Likewise.
12458 (class remote_target) <putpkt>: New overload.
12459 (remote_target::read_frame): Change type of "buf_p". Remove
12460 sizeof_p parameter.
12461 (packet_ok): New overload.
12462 (packet_check_result): New overload.
12463 Update all uses.
12464
bb277751
TT
124652019-01-14 Tom Tromey <tom@tromey.com>
12466
12467 * remote-notif.c (handle_notification, remote_notif_ack)
12468 (remote_notif_parse): Make "buf" const.
12469 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12470 const.
12471 (remote_notif_parse, remote_notif_ack, handle_notification):
12472 Likewise.
12473 * remote.c (remote_notif_stop_parse): Make "buf" const.
12474 (remote_target::remote_parse_stop_reply): Make "buf" const.
12475 (remote_notif_stop_ack): Make "buf" const.
12476
05be00a8
TT
124772019-01-14 Tom Tromey <tom@tromey.com>
12478
12479 * remote.c (remote_console_output): Make parameter const.
12480
491adeca
TT
124812019-01-14 Tom Tromey <tom@tromey.com>
12482
12483 * target-debug.h (target_debug_print_signals): Constify.
12484 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12485 * procfs.c (procfs_target::pass_signals): Update.
12486 * linux-nat.c (linux_nat_target::pass_signals): Update.
12487 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12488 * target-delegates.c: Rebuild.
12489 * remote.c (remote_target::program_signals): Update.
12490 (remote_target::pass_signals): Update.
12491 * target.c (target_pass_signals): Constify argument.
12492 (target_program_signals): Likewise.
12493 * target.h (struct target_ops) <pass_signals, program_signals>:
12494 Constify argument.
12495 (target_pass_signals, target_program_signals): Constify argument.
12496
bbd94648
TT
124972019-01-14 Tom Tromey <tom@tromey.com>
12498
12499 PR tui/28819:
12500 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12501
6f072a10
PFC
125022019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12503
12504 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12505 field.
12506 * rs6000-tdep.c: Include reggroups.h.
12507 (IS_V_ALIAS_PSEUDOREG): Define.
12508 (rs6000_register_name): Return names for the "vX" aliases.
12509 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12510 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12511 aliases. Call default_register_reggroup_p for all other
12512 pseudo-registers.
12513 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12514 New functions.
12515 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12516 Handle "vX" aliases.
12517 (v_alias_pseudo_register_collect): New function.
12518 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12519 (rs6000_gdbarch_init): Initialize "vX" aliases as
12520 pseudo-registers. Restore registration of
12521 rs6000_pseudo_register_reggroup_p with
12522 set_tdesc_pseudo_register_reggroup_p.
12523
1a782351
MF
125242019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12525
12526 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12527 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12528 set_gdbarch_num_pseudo_regs.
12529
d73cff18
PW
125302019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12531
12532 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12533 Remove arg prefixname, add do_set and do_show.
12534 Add member functions set_list and show_list.
12535 * cli/cli-style.c (class cli_style_option): Update accordingly.
12536 (style_set_list): Move to file scope.
12537 (style_show_list): Likewise.
12538 (set_style): Call help_list.
12539 (show_style): Call cmd_show_list.
12540 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12541 Update to use the new macro.
12542
60a90376
JB
125432019-10-12 Joel Brobecker <brobecker@adacore.com>
12544
12545 * ada-lang.c (_initialize_ada_language): Expand the help text
12546 for the "catch exception" command.
12547
9d7c67bf
PW
125482019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12549
12550 * symtab.c (matching_obj_sections): Initialize obj,
12551 declare it closer to its usage.
12552
7cf47dc4
TT
125532019-01-10 Tom Tromey <tom@tromey.com>
12554
12555 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12556 (basic_inf_threads_range): Remove.
12557 (inf_threads_range, inf_non_exited_threads_range)
12558 (safe_inf_threads_range): Use next_adapter.
12559
d3cb6808
KS
125602019-01-10 Keith Seitz <keiths@redhat.com>
12561
12562 PR gdb/23712
12563 PR symtab/23010
12564 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12565 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12566
63a20375
KS
125672019-01-10 Keith Seitz <keiths@redhat.com>
12568
12569 PR gdb/23712
12570 PR symtab/23010
12571 * dictionary.c (pending_to_vector): Remove.
12572 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12573 Remove _1 suffix, replacing functions of the same name. Update
12574 all callers.
12575 (dict_create_hashed, dict_create_hashed_expandable)
12576 (dict_create_linear, dict_create_linear_expandable, dict_free)
12577 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12578 Make functions static.
12579
b026f593
KS
125802019-01-10 Keith Seitz <keiths@redhat.com>
12581
12582 PR gdb/23712
12583 PR symtab/23010
12584 * dictionary.h (struct dictionary): Replace declaration with
12585 multidictionary.
12586 (dict_create_hashed, dict_create_hashed_expandable)
12587 (dict_create_linear, dict_create_linear_expandable)
12588 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12589 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12590 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12591 taking multidictionary argument.
12592 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12593 * block.h (struct block) <dict>: Change to multidictionary
12594 and rename `multidict'.
12595 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12596 symmisc.c: Update all dictionary references to multidictionary.
12597
c7748ee9
KS
125982019-01-10 Keith Seitz <keiths@redhat.com>
12599
12600 PR gdb/23712
12601 PR symtab/23010
12602 * dictionary.c: Include unordered_map.
12603 (pending_to_vector): New function.
12604 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12605 Rewrite the non-"_1" functions to take vector instead
12606 of linked list.
12607 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12608 "new" _1 versions of the same name.
12609 (multidictionary): Define.
12610 (std::hash<enum language): New definition.
12611 (collate_pending_symbols_by_language, mdict_create_hashed)
12612 (mdict_create_hashed_expandable, mdict_create_linear)
12613 (mdict_create_linear_expandable, mdict_free)
12614 (find_language_dictionary, create_new_language_dictionary)
12615 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12616 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12617 (mdict_size, mdict_empty): New functions.
12618 * dictionary.h (mdict_iterator): Define.
12619
67aa1f3c
PA
126202019-01-10 Pedro Alves <palves@redhat.com>
12621
12622 * breakpoint.c (read_uploaded_action)
12623 (create_tracepoint_from_upload): Adjust to use
12624 gdb::unique_xmalloc_ptr.
12625 * ctf.c (ctf_write_uploaded_tp):
12626 (SET_ARRAY_FIELD): Use emplace_back.
12627 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12628 * tracefile-tfile.c (tfile_write_uploaded_tp):
12629 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12630 gdb::unique_xmalloc_ptr.
12631 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12632 at_string, cond_string, cmd_strings>: Replace char pointers
12633 with gdb::unique_xmalloc_ptr.
12634
2f667667
PA
126352019-01-10 Pedro Alves <palves@redhat.com>
12636
12637 * solib-target.c (library_list_start_library): Don't xstrdup name.
12638
36cb7237
PA
126392019-01-10 Pedro Alves <palves@redhat.com>
12640
12641 * mdebugread.c (parse_partial_symbols): Use
12642 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12643
da584958
AB
126442019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12645
12646 * linux-fork.c (scoped_switch_fork_info)
12647 <~scoped_switch_fork_info>: Fix incorrect variable name.
12648
1ef8573c
AB
126492019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12650
12651 * linux-fork.c (scoped_switch_fork_info)
12652 <scoped_switch_fork_info>: Make explicit.
12653 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12654
8d7bcccb
TT
126552019-01-10 Tom Tromey <tom@tromey.com>
12656
12657 * objfiles.h (objfile::reset_psymtabs): Update.
12658 * objfiles.c (objfile::objfile): Update.
12659 * psymtab.h (psymtab_storage::obstack): Update.
12660 (psymtab_storage::m_obstack): Use gdb::optional.
12661 (class psymtab_storage): Update comment. Remove objfile
12662 parameter.
12663 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12664
b596a3c7
TT
126652019-01-10 Tom Tromey <tom@tromey.com>
12666
12667 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12668 <free_psymtabs>: Now private.
12669 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12670 (allocate_psymtab): Use new method.
12671
a9342b62
TT
126722019-01-10 Tom Tromey <tom@tromey.com>
12673
12674 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12675 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12676 * mdebugread.c (parse_partial_symbols): Use
12677 allocate_dependencies.
12678 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12679 allocate_dependencies.
12680 (process_psymtab_comp_unit_reader)
12681 (build_type_psymtab_dependencies): Likewise.
12682 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12683
5af70966
TT
126842019-01-10 Tom Tromey <tom@tromey.com>
12685
12686 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12687 PSYMBOL_SET_LANGUAGE.
12688 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12689
5923a04c
TT
126902019-01-10 Tom Tromey <tom@tromey.com>
12691
12692 * psymtab.h (psymtab_storage::obstack): New method.
12693 <m_obstack>: Rename from obstack; now private.
12694 * psymtab.c (psymtab_storage): Update.
12695 * dwarf2read.c (create_addrmap_from_index)
12696 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12697 Update.
12698
6d6a12bf
TT
126992019-01-10 Tom Tromey <tom@tromey.com>
12700
12701 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12702 * objfiles.h (objfile::reset_psymtabs): New method.
12703
d320c2b5
TT
127042019-01-10 Tom Tromey <tom@tromey.com>
12705
12706 * symmisc.c (print_symbol_bcache_statistics): Update.
12707 (print_objfile_statistics): Update.
12708 * symfile.c (reread_symbols): Update.
12709 * psymtab.h (class psymtab_storage): New.
12710 * psymtab.c (psymtab_storage): New constructor.
12711 (~psymtab_storage): New destructor.
12712 (require_partial_symbols): Update.
12713 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12714 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12715 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12716 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12717 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12718 (start_psymtab_common, end_psymtab_common)
12719 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12720 (allocate_psymtab): Update.
12721 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12722 Update.
12723 (dump_psymtab_addrmap, maintenance_print_psymbols)
12724 (maintenance_check_psymtabs): Update.
12725 (class objfile_psymtabs): Move to objfiles.h.
12726 * psympriv.h (discard_psymtab): Now inline.
12727 (psymtab_discarder::psymtab_discarder): Update.
12728 (psymtab_discarder::~psymtab_discarder): Update.
12729 (ALL_OBJFILE_PSYMTABS): Rewrite.
12730 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12731 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12732 Remove fields.
12733 <partial_symtabs>: New field.
12734 (class objfile_psymtabs): Move from psymtab.h. Update.
12735 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12736 psymbol_cache.
12737 (objfile::~objfile): Don't destroy psymbol_cache.
12738 * mdebugread.c (parse_partial_symbols): Update.
12739 * dwarf2read.c (create_addrmap_from_index)
12740 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12741 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12742 (add_partial_subprogram, dwarf2_ranges_read): Update.
12743 * dwarf-index-write.c (write_address_map)
12744 (write_one_signatured_type, recursively_write_psymbols)
12745 (class debug_names, class debug_names, write_psymtabs_to_index):
12746 Update.
12747
1d94a5a3
TT
127482019-01-10 Tom Tromey <tom@tromey.com>
12749
12750 * symtab.h (SYMBOL_SET_NAMES): Update.
12751 (symbol_set_names): Update.
12752 (MSYMBOL_SET_NAMES): Update.
12753 * symtab.c (symbol_set_names): Change argument to be an
12754 objfile_per_bfd_storage.
12755 * psymtab.c (add_psymbol_to_bcache): Update.
12756 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12757
0f14768a
TT
127582019-01-10 Tom Tromey <tom@tromey.com>
12759
12760 * symtab.c (create_demangled_names_hash): Change argument to be an
12761 objfile_per_bfd_storage.
12762 (symbol_set_names): Update.
12763
6eee24ce
TT
127642019-01-10 Tom Tromey <tom@tromey.com>
12765
12766 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12767 init_psymbol_list.
12768 * psymtab.c (init_psymbol_list): Do nothing if already called.
12769 * psympriv.h (init_psymbol_list): Add comment.
12770 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12771 init_psymbol_list.
12772 * dbxread.c (dbx_symfile_read): Unconditionally call
12773 init_psymbol_list.
12774
75aedd27
TT
127752019-01-10 Tom Tromey <tom@tromey.com>
12776
12777 * xcoffread.c (scan_xcoff_symtab): Update.
12778 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12779 "where".
12780 * mdebugread.c (parse_partial_symbols)
12781 (handle_psymbol_enumerators): Update.
12782 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12783 * dbxread.c (read_dbx_symtab): Update.
12784 * psympriv.h (psymbol_placement): New enum.
12785 (add_psymbol_to_list): Update.
12786
939652a5
TT
127872019-01-10 Tom Tromey <tom@tromey.com>
12788
12789 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12790 static_psymbols parameters.
12791 (scan_xcoff_symtab): Update.
12792 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12793 static_psymbols parameters.
12794 * psympriv.h (start_psymtab_common): Update.
12795 * mdebugread.c (parse_partial_symbols): Update.
12796 * dwarf2read.c (create_partial_symtab): Update.
12797 * dbxread.c (read_dbx_symtab): Update.
12798 (start_psymtab): Remove global_psymbols and static_psymbols
12799 parameters.
12800
baa62830
TT
128012019-01-10 Tom Tromey <tom@tromey.com>
12802
12803 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12804 * psymtab.c (allocate_psymtab): Add comment.
12805 * psympriv.h (allocate_psymtab): Add comment.
12806 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12807 initializations.
12808 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12809
0e8f53ba
TT
128102019-01-10 Tom Tromey <tom@tromey.com>
12811
12812 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12813 Don't declare.
12814 * mipsread.c: Include mdebugread.h.
12815 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12816 Declare.
12817 * elfread.c: Include mdebugread.h.
12818
b22a7c6a
TT
128192019-01-09 Tom Tromey <tom@tromey.com>
12820
12821 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12822 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12823 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12824 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12825 (psym_lookup_symbol, psym_find_last_source_symtab)
12826 (psym_forget_cached_source_info, psym_print_stats)
12827 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12828 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12829 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12830 (psym_find_compunit_symtab_by_address)
12831 (maintenance_print_psymbols, maintenance_info_psymtabs)
12832 (maintenance_check_psymtabs): Use ranged for.
12833 * psymtab.h (class objfile_psymtabs): New.
12834 (require_partial_symbols): Return objfile_psymtabs.
12835 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12836
3b9d3ac2
TT
128372019-01-09 Tom Tromey <tom@tromey.com>
12838
12839 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12840 (find_pc_mapped_section, list_overlays_command)
12841 (map_overlay_command, unmap_overlay_command)
12842 (simple_overlay_update): Use all_objfiles.
12843 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12844 * printcmd.c (info_symbol_command): Use all_objfiles.
12845 * objfiles.h (ALL_OBJSECTIONS): Remove.
12846 * maint.c (maintenance_translate_address): Use all_objfiles.
12847 * gcore.c (gcore_create_callback): Use all_objfiles.
12848 (objfile_find_memory_regions): Likewise.
12849
8b31193a
TT
128502019-01-09 Tom Tromey <tom@tromey.com>
12851
12852 * symtab.c (find_line_symtab, info_sources_command)
12853 (make_source_files_completion_list): Use objfile_compunits.
12854 * source.c (select_source_symtab): Use objfile_compunits.
12855 * objfiles.h (struct objfile): Update comment.
12856 (ALL_OBJFILES): Remove.
12857 (ALL_FILETABS): Remove.
12858 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12859 objfile_compunits.
12860
d5da8b3c
TT
128612019-01-09 Tom Tromey <tom@tromey.com>
12862
12863 * symmisc.c (print_objfile_statistics, dump_objfile)
12864 (maintenance_print_symbols): Use compunit_filetabs.
12865 * source.c (forget_cached_source_info_for_objfile): Use
12866 compunit_filetabs.
12867 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12868 (ALL_FILETABS): Use compunit_filetabs.
12869 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12870 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12871
5accd1a0
TT
128722019-01-09 Tom Tromey <tom@tromey.com>
12873
12874 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12875 (compunit_filetabs): New.
12876 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12877 compunit_filetabs.
12878 (info_sources_command, make_source_files_completion_list): Remove
12879 declaration.
12880 * symmisc.c (print_objfile_statistics, dump_objfile)
12881 (maintenance_print_symbols): Remove declaration.
12882 (maintenance_info_symtabs): Use compunit_filetabs.
12883 (maintenance_info_line_tables): Likewise.
12884 * source.c (select_source_symtab): Change local variable name.
12885 (forget_cached_source_info_for_objfile): Remove declaration.
12886 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12887 * objfiles.c (objfile_relocate1): Remove declaration.
12888 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12889 declaration.
12890 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12891 * coffread.c (coff_symtab_read): Remove declaration.
12892 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12893 compunit_filetabs.
12894
d8aeb77f
TT
128952019-01-09 Tom Tromey <tom@tromey.com>
12896
12897 * symtab.c (lookup_objfile_from_block)
12898 (find_pc_sect_compunit_symtab, search_symbols)
12899 (default_collect_symbol_completion_matches_break_on): Use
12900 objfile_compunits.
12901 * objfiles.h (ALL_COMPUNITS): Remove.
12902 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12903 * cp-support.c (add_symbol_overload_list_qualified): Use
12904 objfile_compunits.
12905 * ada-lang.c (ada_collect_symbol_completion_matches)
12906 (ada_add_global_exceptions): Use objfile_compunits.
12907
592553c4
TT
129082019-01-09 Tom Tromey <tom@tromey.com>
12909
12910 * source.c (select_source_symtab)
12911 (forget_cached_source_info_for_objfile): Remove declaration.
12912 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12913 declaration.
12914 * maint.c (count_symtabs_and_blocks): Remove declaration.
12915 * cp-support.c (add_symbol_overload_list_qualified): Remove
12916 declaration.
12917 * coffread.c (coff_symtab_read): Remove declaration.
12918 * symtab.c (lookup_symbol_in_objfile_symtabs)
12919 (basic_lookup_transparent_type_1): Use objfile_compunits.
12920 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12921 (info_sources_command, search_symbols)
12922 (default_collect_symbol_completion_matches_break_on)
12923 (make_source_files_completion_list): Remove declaration.
12924 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12925 (ada_collect_symbol_completion_matches)
12926 (ada_add_global_exceptions): Remove declaration.
12927 * linespec.c (iterate_over_all_matching_symtabs): Use
12928 objfile_compunits.
12929 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12930 (class objfile_compunits): New.
12931 (ALL_COMPUNITS): Use objfile_compunits.
12932 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12933 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12934 objfile_compunits.
12935 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12936
5325b9bf
TT
129372019-01-09 Tom Tromey <tom@tromey.com>
12938
12939 * symtab.c (search_symbols)
12940 (default_collect_symbol_completion_matches_break_on): Use
12941 objfile_msymbols.
12942 * ada-lang.c (ada_lookup_simple_minsym)
12943 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12944 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12945 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12946 objfile_msymbols.
12947 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12948 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12949 * objc-lang.c (find_methods): Use objfile_msymbols.
12950 (info_selectors_command, info_classes_command): Likewise.
12951 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12952 * objfiles.h (class objfile_msymbols): New.
12953 (ALL_OBJFILE_MSYMBOLS): Remove.
12954 (ALL_MSYMBOLS): Remove.
12955
cac85af2
TT
129562019-01-09 Tom Tromey <tom@tromey.com>
12957
12958 * common/next-iterator.h (next_adapter): Add Iterator template
12959 parameter.
12960 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12961 (class all_objfiles_safe): New.
12962 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12963 * objfiles.c (put_objfile_before): Update comment.
12964 (add_separate_debug_objfile): Likewise.
12965 (free_all_objfiles): Use all_objfiles_safe.
12966 (objfile_purge_solibs): Likewise.
12967
aed57c53
TT
129682019-01-09 Tom Tromey <tom@tromey.com>
12969
12970 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12971 (expand_symtab_containing_pc, lookup_static_symbol)
12972 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12973 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12974 all_objfiles.
12975 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12976 * breakpoint.c (create_overlay_event_breakpoint)
12977 (create_longjmp_master_breakpoint)
12978 (create_std_terminate_master_breakpoint)
12979 (create_exception_master_breakpoint): Use all_objfiles.
12980 * linux-thread-db.c (try_thread_db_load_from_pdir)
12981 (has_libpthread): Use all_objfiles.
12982 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12983 * linespec.c (iterate_over_all_matching_symtabs)
12984 (search_minsyms_for_name): Use all_objfiles.
12985 * maint.c (maintenance_info_sections): Use all_objfiles.
12986 * main.c (captured_main_1): Use all_objfiles.
12987 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12988 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12989 * guile/scm-pretty-print.c
12990 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12991 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12992 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12993 (maintenance_print_msymbols): Use all_objfiles.
12994 * source.c (select_source_symtab): Use all_objfiles.
12995 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12996 * symfile.c (remove_symbol_file_command)
12997 (expand_symtabs_matching, map_symbol_filenames): Use
12998 all_objfiles.
12999 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13000 all_objfiles.
13001 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13002 * objc-lang.c (find_methods): Use all_objfiles.
13003 * objfiles.c (have_partial_symbols, have_full_symbols)
13004 (have_minimal_symbols, qsort_cmp)
13005 (default_iterate_over_objfiles_in_search_order): Use
13006 all_objfiles.
13007 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13008 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13009 (maintenance_check_psymtabs): Use all_objfiles.
13010 (ALL_PSYMTABS): Remove.
13011 * compile/compile-object-run.c (do_module_cleanup): Use
13012 all_objfiles.
13013 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13014 * cp-support.c (add_symbol_overload_list_qualified): Use
13015 all_objfiles.
13016 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13017 Use all_objfiles.
13018 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13019 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13020 all_objfiles.
13021 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13022 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13023 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13024 Uses all_objfiles.
13025 * solib.c (solib_read_symbols): Use all_objfiles
13026
99d89cde
TT
130272019-01-09 Tom Tromey <tom@tromey.com>
13028
13029 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13030 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13031 all_objfiles.
13032 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13033 * symmisc.c (print_symbol_bcache_statistics)
13034 (print_objfile_statistics, maintenance_print_objfiles)
13035 (maintenance_info_symtabs, maintenance_check_symtabs)
13036 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13037 all_objfiles.
13038 * source.c (forget_cached_source_info): Use all_objfiles.
13039 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13040 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13041 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13042 * objfiles.c (update_section_map): Use all_objfiles.
13043 (shared_objfile_contains_address_p): Likewise.
13044 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13045 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13046
21708325
TT
130472019-01-09 Tom Tromey <tom@tromey.com>
13048
13049 * common/next-iterator.h: New file.
13050 * objfiles.h (class all_objfiles): New.
13051 (struct objfile_iterator): New.
13052
669e09f6
PW
130532019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13054
13055 * NEWS: Move the description of the changed "frame", "select-frame",
13056 and "info frame" commands to the Changed commands section.
13057
041be526
SM
130582019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13059
13060 * gdbtypes.c (check_stub_method_group): Remove handling of old
13061 mangling schemes.
13062 * linespec.c (find_methods): Likewise.
13063 * stabsread.c (read_member_functions): Likewise.
13064 * valops.c (search_struct_method): Likewise.
13065 (value_struct_elt_for_reference): Likewise.
13066 * NEWS: Mention this change.
13067
0e2a2133
AB
130682019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13069
13070 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13071 print_source_lines.
13072 * source.c (print_source_lines_base): Update line number check.
13073 (print_source_lines): New function.
13074 (source_lines_range::source_lines_range): New function.
13075 * source.h (class source_lines_range): New class.
13076 (print_source_lines): New declaration.
13077
1055a3b4
PW
130782019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13079
13080 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13081
cfeadda5
TT
130822019-01-08 Tom Tromey <tom@tromey.com>
13083 Simon Marchi <simon.marchi@ericsson.com>
13084
13085 PR gdb/24060
13086 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13087 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13088 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13089 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13090 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13091 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13092
583068ca
AB
130932019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13094
13095 * source.c (select_source_symtab): Move header comment to
13096 declaration in source.h.
13097 (forget_cached_source_info_for_objfile): Likewise.
13098 (forget_cached_source_info): Likewise.
13099 (identify_source_line): Likewise.
13100 * source.h (identify_source_line): Move declaration from symtab.h
13101 and add comment from source.c
13102 (print_source_lines): Likewise.
13103 (forget_cached_source_info_for_objfile): Likewise.
13104 (forget_cached_source_info): Likewise.
13105 (select_source_symtab): Likewise.
13106 (enum print_source_lines_flag): Move definition from symtab.h.
13107 * symtab.h (identify_source_line): Move declaration to source.h.
13108 (print_source_lines): Likewise.
13109 (forget_cached_source_info_for_objfile): Likewise.
13110 (forget_cached_source_info): Likewise.
13111 (select_source_symtab): Likewise.
13112 (enum print_source_lines_flag): Move definition to source.h.
13113 * tui/tui-hooks.c: Add 'source.h' include.
13114
ec98a4ad
AB
131152019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13116
13117 * source.c (print_source_lines_base): Handle requests to print
13118 reverse line number sequences, and guard against empty lines
13119 string.
13120
62ea19c1
AB
131212019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13122
13123 * source.c (print_source_lines_base): Fix skip of '\r' if next
13124 character is '\n'.
13125
9d30e1fd
TT
131262019-01-06 Tom Tromey <tom@tromey.com>
13127
13128 * c-exp.y (struct c_parse_state) <macro_original_text,
13129 expansion_obstack>: New member.
13130 (macro_original_text, expansion_obstack): Remove globals.
13131 (scan_macro_expansion, scanning_macro_expansion)
13132 (finished_macro_expansion): Update.
13133 (scan_macro_cleanup): Remove.
13134 (yylex, c_parse): Update.
13135
c65bac38
TT
131362019-01-06 Tom Tromey <tom@tromey.com>
13137
13138 * c-exp.y (struct c_parse_state) <strings>: New member.
13139 (operator_stoken): Update.
13140
02e12e38
TT
131412019-01-06 Tom Tromey <tom@tromey.com>
13142
13143 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13144 (union type_stack_elt) <typelist_val>: Now a pointer to
13145 std::vector.
13146 (type_stack_cleanup): Don't declare.
13147 (push_typelist): Update.
13148 * parse.c (pop_typelist): Return a std::vector.
13149 (push_typelist): Take a std::vector.
13150 (follow_types): Update. Do not free args.
13151 (type_stack_cleanup): Remove.
13152 * c-exp.y (struct c_parse_state): New.
13153 (cpstate): New global.
13154 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13155 (nonempty_typelist): Update.
13156 (func_mod): Create a new vector.
13157 (c_parse): Create a c_parse_state.
13158 (check_parameter_typelist): Do not delete params.
13159 (function_method): Update. Do not delete type_list.
13160
f097f5ad
TT
131612019-01-06 Tom Tromey <tom@tromey.com>
13162
13163 PR gdb/28155:
13164 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13165 check_typedef.
13166 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13167 (print_return_value): Likewise.
13168
d2adf9f1
TT
131692019-01-05 Tom Tromey <tom@tromey.com>
13170
13171 * contrib/cleanup_check.py: Remove.
13172 * contrib/gcc-with-excheck: Remove.
13173 * contrib/exsummary.py: Remove.
13174 * contrib/excheck.py: Remove.
13175
2eab46b1
JB
131762019-01-05 Joel Brobecker <brobecker@adacore.com>
13177
13178 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13179 NULL. Initialize tpprev to NULL instead of assigning it
13180 to NULL on the next statement.
13181 * windows-nat.c (windows_delete_thread): Remove check for
13182 main_thread_id before printing thread exit notifications.
13183 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13184 Remove thread ID check against main_thread_id.
13185 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13186 windows_delete_thread.
13187 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13188
48c5e7e2
TT
131892019-01-04 Tom Tromey <tom@tromey.com>
13190
13191 * compile/compile.c (_initialize_compile): Use upper case for
13192 metasyntactic variables.
13193 * symmisc.c (_initialize_symmisc): Use upper case for
13194 metasyntactic variables.
13195 * psymtab.c (_initialize_psymtab): Use upper case for
13196 metasyntactic variables.
13197 * demangle.c (demangle_command): Use upper case for metasyntactic
13198 variables.
13199 (_initialize_demangler): Likewise.
13200 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13201 variables.
13202
986041cd
TT
132032019-01-03 Tom Tromey <tom@tromey.com>
13204
13205 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13206
7c711119
TT
132072019-01-03 Tom Tromey <tom@tromey.com>
13208
13209 * python/py-symtab.c (salpy_str): Update.
13210 (struct salpy_sal_object) <symtab>: Now a PyObject.
13211 (salpy_dealloc): Update.
13212 (del_objfile_sal): Use gdbpy_ref.
13213
1b20edf0
TT
132142019-01-03 Tom Tromey <tom@tromey.com>
13215
13216 * python/py-type.c (convert_field): Use new_reference. Return
13217 gdbpy_ref.
13218 (make_fielditem): Return gdbpy_ref.
13219 (typy_fields): Update.
13220 (typy_getitem): Update.
13221 (field_name): Return gdbpy_ref. Use new_reference.
13222 (typy_iterator_iternext): Update.
13223
ea41325b
TT
132242019-01-03 Tom Tromey <tom@tromey.com>
13225
13226 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13227
2a3c71d6
TT
132282019-01-03 Tom Tromey <tom@tromey.com>
13229
13230 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13231 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13232 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13233 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13234 (pspy_set_type_printers): Likewise.
13235 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13236 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13237 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13238 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13239 (objfpy_set_type_printers): Likewise.
13240
5c329e6a
TT
132412019-01-03 Tom Tromey <tom@tromey.com>
13242
13243 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13244 (gdbpy_print_stack): Use gdbpy_err_fetch.
13245 * python/python-internal.h (class gdbpy_err_fetch): New class.
13246 (class gdbpy_enter) <m_error_type, m_error_value,
13247 m_error_traceback>: Remove.
13248 <m_error>: New member.
13249 (gdbpy_exception_to_string): Don't declare.
13250 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13251 * python/py-value.c (convert_value_from_python): Use
13252 gdbpy_err_fetch.
13253 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13254 gdbpy_exception_to_string.
13255 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13256 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13257 gdbpy_err_fetch.
13258
169bb27b
AB
132592019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13260
13261 * linux-nat.c (delete_lwp_cleanup): Delete.
13262 (struct lwp_deleter): New struct.
13263 (lwp_info_up): New typedef.
13264 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13265 lwp_info_up.
13266
a07c8880
AB
132672019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13268
13269 * linux-fork.c (class scoped_switch_fork_info): New class.
13270 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13271
26089c49
AB
132722019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13273
13274 * valops.c (find_overload_match): Remove use of null_cleanup, and
13275 calls to do_cleanups.
13276
06d3e5b0
AB
132772019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13278
13279 * compile/compile-cplus-types.c
13280 (compile_cplus_instance::decl_name): Handle changes to
13281 cp_func_name.
13282 * cp-support.c (cp_func_name): Update header comment, update
13283 return type.
13284 * cp-support.h (cp_func_name): Update return type in declaration.
13285 * valops.c (find_overload_match): Move temp_func local to top
13286 level of function and change its type. Use temp_func to hold and
13287 delete temporary string obtained from cp_func_name.
13288
66644cd3
AB
132892019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13290
13291 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13292 gdb::char_vector, remove cleanup, and update uses of `msg`.
13293
592d8c0a
JW
132942019-01-03 Jim Wilson <jimw@sifive.com>
13295
13296 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13297
c55d06ec
TT
132982019-01-02 Tom Tromey <tom@tromey.com>
13299
13300 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13301 (tdesc_parse_xml): Remove cleanups.
13302 * target-descriptions.h (make_cleanup_free_target_description):
13303 Don't declare.
13304 (target_desc_deleter): New struct.
13305 (target_desc_up): New typedef.
13306 * target-descriptions.c (target_desc_deleter::operator()): Rename
13307 from free_target_description.
13308 (make_cleanup_free_target_description): Remove.
13309
3a6ae42d
TT
133102019-01-02 Tom Tromey <tom@tromey.com>
13311
13312 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
13313 constructor, destructor.
13314 (linespec_parser): Remove typedef.
13315 (~linespec_parser): Rename from linespec_parser_delete.
13316 (linespec_lex_to_end, linespec_complete_label)
13317 (linespec_complete): Update.
13318 (decode_line_full): Remove cleanups.
13319 (decode_line_1): Update.
13320
61fd3e73
TT
133212019-01-02 Tom Tromey <tom@tromey.com>
13322
13323 * python/python-internal.h (inferior_to_inferior_object): Change
13324 return type.
13325 * python/py-exitedevent.c (create_exited_event_object): Update.
13326 * python/py-inferior.c (inferior_to_inferior_object): Return
13327 gdbpy_ref.
13328 (python_new_inferior, python_inferior_deleted)
13329 (thread_to_thread_object, delete_thread_object)
13330 (build_inferior_list, gdbpy_selected_inferior): Update.
13331 * python/py-infthread.c (create_thread_object): Update. Also fail
13332 if inferior_to_inferior_object fails.
13333
d20172fc
SM
133342019-01-02 Simon Marchi <simon.marchi@ericsson.com>
13335
13336 * inferior.h (class inferior) <displaced_step_state>: New field.
13337 * infrun.h (struct displaced_step_state): Move here from
13338 infrun.c. Initialize fields, add constructor.
13339 <inf>: Remove field.
13340 <reset>: New method.
13341 * infrun.c (struct displaced_step_inferior_state): Move to
13342 infrun.h.
13343 (displaced_step_inferior_states): Remove.
13344 (get_displaced_stepping_state): Adust.
13345 (displaced_step_in_progress_any_inferior): Adjust.
13346 (displaced_step_in_progress_thread): Adjust.
13347 (displaced_step_in_progress): Adjust.
13348 (add_displaced_stepping_state): Remove.
13349 (get_displaced_step_closure_by_addr): Adjust.
13350 (remove_displaced_stepping_state): Remove.
13351 (infrun_inferior_exit): Call displaced_step_state.reset.
13352 (use_displaced_stepping): Don't check for NULL.
13353 (displaced_step_prepare_throw): Call
13354 get_displaced_stepping_state.
13355 (displaced_step_fixup): Don't check for NULL.
13356 (prepare_for_detach): Don't check for NULL.
13357
e3319240
PW
133582019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13359
13360 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13361 in case of call that did not complete.
13362
5d36dfb9
AU
133632019-01-02 Andrey Utkin <autkin@undo.io>
13364
13365 * symfile.c (find_separate_debug_file): Fix search of debug files for
13366 remote debuggee.
13367
8833fbf0
TT
133682019-01-02 Tom Tromey <tom@tromey.com>
13369
13370 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13371 indentation.
13372 * python/py-frame.c (frapy_older): Remove cast.
13373 (frapy_newer): Likewise.
13374 * python/py-breakpoint.c (local_setattro): Remove cast.
13375 * python/py-arch.c (archpy_name): Remove local variable.
13376 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13377
4ada3dfd
JB
133782019-01-02 Joel Brobecker <brobecker@adacore.com>
13379
13380 * unittests/basic_string_view/element_access/char/empty.cc:
13381 Fix year range in copyright header.
13382
113b7b81
AB
133832019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13384
13385 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13386 Delete.
13387 <operator==>: Update with for removed field.
13388 <hash>: Likewise.
13389 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13390 <isa_features>: ...this.
13391 <abi_features>: New field.
13392 (riscv_isa_flen): Update comment.
13393 (riscv_abi_xlen): New declaration.
13394 (riscv_abi_flen): New declaration.
13395 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13396 isa_features.
13397 (riscv_abi_xlen): New function.
13398 (riscv_isa_flen): Update to get answer from isa_features.
13399 (riscv_abi_flen): New function.
13400 (riscv_has_fp_abi): Update to get answer from abi_features.
13401 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13402 xlen and flen.
13403 (riscv_call_info) <xlen, flen>: Update comment.
13404 (riscv_call_arg_struct): Remove invalid assertions
13405 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13406 is removed.
13407 (riscv_gdbarch_init): Gather isa features and abi features
13408 separately, ensure both match on the gdbarch when reusing an old
13409 gdbarch. Relax an error check to allow 32-bit abi float to run on
13410 a target with 64-bit float hardware.
13411
b18ca514
PW
134122019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13413
13414 * source.c (search_command_helper): Stop reverse search
13415 when line 1 has been searched.
13416
ec70d8db
PW
134172019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13418
13419 * record-full.c (record_full_base_target::close): Rewrite
13420 record_full_core_buf_list free logic.
13421
5b38f9c1
PW
134222019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13423
13424 * break-catch-syscall.c (print_one_catch_syscall): xfree
13425 the last text.
13426
66d91b39
JB
134272019-01-01 Joel Brobecker <brobecker@adacore.com>
13428
13429 * top.c (print_gdb_version): Update Copyright year in version
13430 message.
13431
42a4f53d
JB
134322019-01-01 Joel Brobecker <brobecker@adacore.com>
13433
13434 Update copyright year range in all GDB files.
13435
7e955d83 134362019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 13437
5bbd631d 13438 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 13439
5bbd631d 13440For older changes see ChangeLog-2018.
c906108c
SS
13441\f
13442Local Variables:
13443mode: change-log
13444left-margin: 8
13445fill-column: 74
13446version-control: never
57da7796 13447coding: utf-8
c906108c 13448End:
5bbd631d 13449
This page took 5.401278 seconds and 4 git commands to generate.