Update my email address in gdb/MAINTAINERS
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9344c18f
AA
12019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2
3 * MAINTAINERS: Update my email address.
4
df07e2c7
AB
52019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
6
7 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
8 std::vector.
9 (build_type_psymtabs_reader): Update for std::vector.
10 (build_type_psymtab_dependencies): Likewise.
11 * dwarf2read.h: Remove use of DEF_VEC_P.
12 (typedef sig_type_ptr): Delete.
13
554ac434
AB
142019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
15
16 * btrace.c (btrace_maint_clear): Update to handle change from VEC
17 to std::vector.
18 (btrace_maint_decode_pt): Likewise, and move allocation of the
19 vector outside of the loop.
20 (btrace_maint_update_packets): Update to handle change from VEC to
21 std::vector.
22 (btrace_maint_print_packets): Likewise.
23 (maint_info_btrace_cmd): Likewise.
24 * btrace.h: Remove use of DEF_VEC_O.
25 (typedef btrace_pt_packet_s): Delete.
26 (struct btrace_maint_info) <packets>: Change fromm VEC to
27 std::vector.
28 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
29
46f29a9a
AB
302019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
31
32 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
33 make accesses into the vector constant references.
34 (btrace_add_pc): Update for std::vector.
35 (btrace_stitch_bts): Likewise.
36 (parse_xml_btrace_block): Likewise.
37 (btrace_maint_update_packets): Likewise.
38 (btrace_maint_print_packets): Likewise.
39 (maint_info_btrace_cmd): Likewise.
40 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
41 std::vector.
42 (btrace_data::empty): Likewise.
43 (btrace_data_append): Likewise.
44 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
45 (typedef btrace_block_s): Delete.
46 (struct btrace_block): Add constructor.
47 (struct btrace_data_bts) <blocks>: Change to std::vector.
48 * nat/linux-btrace.c (perf_event_read_bts): Update for
49 std::vector.
50 (linux_read_bts): Likewise.
51
d770d56f
TT
522019-10-01 Tom Tromey <tom@tromey.com>
53
54 * cli/cli-logging.c (show_logging_filename): Use styled_string.
55
9d636d67
TT
562019-10-01 Tom Tromey <tom@tromey.com>
57
58 * stack.c (print_frame, info_frame_command_core): Use
59 styled_string.
60 * linux-thread-db.c (try_thread_db_load_1)
61 (try_thread_db_load_from_pdir_1): Use styled_string.
62 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
63 (auto_load_section_scripts, info_auto_load_local_gdbinit)
64 (maybe_print_unsupported_script_warning)
65 (maybe_print_script_not_found_warning): Use styled_string.
66 * ada-lang.c (user_select_syms): Use styled_string.
67
7f6aba03
TT
682019-10-01 Tom Tromey <tom@tromey.com>
69
70 * p-lang.c (pascal_printstr): Use metadata style.
71 * value.c (show_convenience): Use metadata style.
72 * valprint.c (valprint_check_validity, val_print_optimized_out)
73 (val_print_not_saved, val_print_unavailable)
74 (val_print_invalid_address, generic_val_print, val_print)
75 (value_check_printable, val_print_array_elements): Use metadata
76 style.
77 * ui-out.h (class ui_out) <field_fmt>: New overload.
78 <do_field_fmt>: Add style parameter.
79 * ui-out.c (ui_out::field_fmt): New overload.
80 * typeprint.c (type_print_unknown_return_type)
81 (val_print_not_allocated, val_print_not_associated): Use metadata
82 style.
83 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
84 parameter.
85 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
86 * tracepoint.c (tvariables_info_1): Use metadata style.
87 * stack.c (print_frame_arg, print_frame_info, print_frame)
88 (info_frame_command_core): Use metadata style.
89 * skip.c (info_skip_command): Use metadata style.
90 * rust-lang.c (rust_print_enum): Use metadata style.
91 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
92 metadata style.
93 * python/py-framefilter.c (py_print_single_arg): Use metadata
94 style.
95 * printcmd.c (do_one_display, print_variable_and_value): Use
96 metadata style.
97 * p-valprint.c (pascal_val_print)
98 (pascal_object_print_value_fields): Use metadata style.
99 * p-typeprint.c (pascal_type_print_base): Use metadata style.
100 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
101 parameter.
102 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
103 * m2-valprint.c (m2_print_long_set): Use metadata style.
104 * m2-typeprint.c (m2_print_type): Use metadata style.
105 * infcmd.c (print_return_value_1): Use metadata style.
106 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
107 * f-valprint.c (info_common_command_for_block): Use metadata
108 style.
109 * f-typeprint.c (f_type_print_base): Use metadata style.
110 * expprint.c (print_subexp_standard): Use metadata style.
111 * cp-valprint.c (cp_print_value_fields): Use metadata style.
112 * cli/cli-style.h (class cli_style_option): Add constructor.
113 (metadata_style): Declare.
114 * cli/cli-style.c (metadata_style): New global.
115 (_initialize_cli_style): Register metadata style.
116 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
117 parameter.
118 * cli-out.c (cli_ui_out::do_field_fmt): Update.
119 * c-typeprint.c (c_type_print_base_struct_union)
120 (c_type_print_base_1): Use metadata style.
121 * breakpoint.c (watchpoint_value_print)
122 (print_one_breakpoint_location): Use metadata style.
123 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
124 style.
125 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
126 style.
127 * ada-valprint.c (val_print_packed_array_elements, printstr)
128 (print_field_values, ada_val_print_ref, ada_val_print): Use
129 metadata style.
130 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
131 style.
132 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
133 style.
134 * ada-lang.c (user_select_syms): Use metadata style.
135
14309bb6
TT
1362019-10-01 Tom Tromey <tom@tromey.com>
137
138 * cli/cli-cmds.c (pwd_command): Style output.
139
6a831f06
PA
1402019-10-01 Pedro Alves <palves@redhat.com>
141 Tom Tromey <tom@tromey.com>
142
143 * symtab.c (print_symbol_info): Use %ps.
144 (print_msymbol_info): Use %ps.
145 * symfile.c (symbol_file_add_with_addrs): Use %ps.
146 * printcmd.c (print_variable_and_value): Use %ps.
147 * macrocmd.c (show_pp_source_pos): Use %ps.
148 * infrun.c (print_exited_reason): Use ui_out::message.
149 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
150 (describe_other_breakpoints): Use ui_out::message and new
151 formats.
152 (say_where): Use new formats.
153 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
154 and new formats.
155
2a3c1174
PA
1562019-10-01 Pedro Alves <palves@redhat.com>
157 Tom Tromey <tom@tromey.com>
158
159 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
160 (test_gdb_formats): New function.
161 (run_tests): Call it.
162 (test_format_specifier): Update.
163 * utils.h (fputs_filtered): Update comment.
164 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
165 (fputs_styled_unfiltered): Declare.
166 * utils.c (fputs_styled_unfiltered): New function.
167 (vfprintf_maybe_filtered): Add gdbfmt parameter.
168 (vfprintf_filtered): Update.
169 (vfprintf_unfiltered, vprintf_filtered): Update.
170 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
171 * ui-out.h (enum ui_out_flag) <unfiltered_output,
172 disallow_ui_out_field>: New constants.
173 (enum class field_kind): New.
174 (struct base_field_s, struct signed_field_s): New.
175 (signed_field): New function.
176 (struct string_field_s): New.
177 (string_field): New function.
178 (struct styled_string_s): New.
179 (styled_string): New function.
180 (class ui_out) <message>: Add comment.
181 <vmessage, call_do_message>: New methods.
182 <do_message>: Add style parameter.
183 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
184 methods.
185 (ui_out::message): Rewrite.
186 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
187 parameter.
188 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
189 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
190 gdb_extensions parameter.
191 (class format_piece): Add parameter to constructor.
192 (n_int_args): New field.
193 * gdbsupport/format.c (format_pieces::format_pieces): Add
194 gdb_extensions parameter. Handle '*'.
195 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
196 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
197 vfprintf_styled_no_gdbfmt.
198 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
199 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
200 unfiltered output.
201 * ui-style.h (struct ui_file_style) <ptr>: New method.
202
0dfe5bfb
TT
2032019-10-01 Tom Tromey <tom@tromey.com>
204
205 * unittests/format_pieces-selftests.c: Update. Add final format.
206 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
207 empty literal pieces.
208
e43b10e1
TT
2092019-10-01 Tom Tromey <tom@tromey.com>
210
211 * ui-out.h (enum class ui_out_style_kind): Remove.
212 (class ui_out) <field_string, field_stsream, do_field_string>:
213 Change type of "style".
214 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
215 (ui_out::field_string): Update.
216 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
217 of "style".
218 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
219 * tracepoint.c (print_one_static_tracepoint_marker): Update.
220 * stack.c (print_frame_arg, print_frame_info, print_frame):
221 Update.
222 * source.c (print_source_lines_base): Update.
223 * solib.c (info_sharedlibrary_command): Update.
224 * skip.c (info_skip_command): Update.
225 * record-btrace.c (btrace_call_history_src_line)
226 (btrace_call_history): Update.
227 * python/py-framefilter.c (py_print_frame): Update.
228 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
229 "style".
230 * mi/mi-out.c (mi_ui_out::do_table_header)
231 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
232 (mi_ui_out::do_field_string): Update.
233 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
234 Update.
235 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
236 "style".
237 * cli-out.c (cli_ui_out::do_table_header)
238 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
239 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
240 (cli_ui_out::do_field_fmt): Update.
241 * breakpoint.c (print_breakpoint_location): Update.
242 (update_static_tracepoint): Update.
243
cd7c32c3
PW
2442019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
245
246 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
247 conversion of gdb_datadir.
248 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
249 remove not needed c_str ().
250
8fe0f950
AT
2512019-09-30 Ali Tamur <tamur@google.com>
252
253 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
254 (dwarf2_string_attr): Likewise.
255
5f48f8f3
AT
2562019-09-30 Ali Tamur <tamur@google.com>
257
258 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
259 (process_full_type_unit): Likewise.
260 (dump_die_shallow): Likewise.
261 (cu_debug_loc_section): Likewise.
262
6fb08628
CB
2632019-09-28 Christian Biesinger <cbiesinger@google.com>
264
265 * minsyms.c (compare_minimal_symbols): Rename to...
266 (minimal_symbol_is_less_than): ...this, and adjust to STL
267 conventions (return bool, take arguments as references)
268 (minimal_symbol_reader::install): Call std::sort instead
269 of qsort.
270
c7ee338a
CB
2712019-09-29 Christian Biesinger <cbiesinger@google.com>
272
273 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
274 hash and why.
275 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
276 msymbol_hash, msymbol_demangled_hash>: Improve comments.
277
703a86c2
SM
2782019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
279
280 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
281 * psympriv.h (add_psymbol_to_list): Move comment here and update
282 it.
283
0df0352a
TV
2842019-09-29 Tom de Vries <tdevries@suse.de>
285
286 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
287 Use $tmpdir/$(basename "$output_file").dwz instead of
288 "${output_file}.dwz".
289
ad75efa6
SM
2902019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
291
292 PR gdb/25045
293 * hppa-linux-nat.c: Include gdbarch.h.
294
ececd218
CB
2952019-09-26 Christian Biesinger <cbiesinger@google.com>
296
297 * blockframe.c (find_pc_partial_function): Change return type to bool.
298 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
299 * minsyms.c (in_gnu_ifunc_stub): Likewise.
300 (stub_gnu_ifunc_resolve_name): Likewise.
301 * symtab.c (compare_filenames_for_search): Likewise.
302 (compare_glob_filenames_for_search): Likewise.
303 (matching_obj_sections): Likewise.
304 (symbol_matches_domain): Likewise.
305 (find_line_symtab): Change out param EXACT_MATCH to bool *.
306 (find_line_pc): Change return type to bool.
307 (find_line_pc_range): Likewise.
308 (producer_is_realview): Likewise.
309 * symtab.h (symbol_matches_domain): Likewise.
310 (find_pc_partial_function): Likewise.
311 (find_pc_line_pc_range): Likewise.
312 (in_gnu_ifunc_stub): Likewise.
313 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
314 (find_line_pc): Likewise.
315 (find_line_pc_range): Likewise.
316 (matching_obj_sections): Likewise.
317 (find_line_symtab): Change out parameter to bool.
318 (producer_is_realview): Change return type to bool.
319 (compare_filenames_for_search): Likewise.
320 (compare_glob_filenames_for_search): Likewise.
321
27a900b8
TT
3222019-09-26 Tom Tromey <tom@tromey.com>
323
324 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
325 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
326 * gdb_usleep.h: Remove.
327 * gdb_usleep.c: Remove.
328 * utils.c: Don't include gdb_usleep.h.
329
5d63b30a
TT
3302019-09-26 Tom Tromey <tromey@adacore.com>
331
332 * python/py-type.c (type_to_type_object): Call check_typedef
333 for stub types.
334
12904d37
TT
3352019-09-26 Tom Tromey <tom@tromey.com>
336
337 * utils.h (initialize_utils): Don't declare.
338 * top.c (gdb_init): Don't call initialize_utils.
339 * utils.c (initialize_utils): Remove. Move contents...
340 (_initialize_utils): ... here.
341
858f25f0
TT
3422019-09-25 Tom Tromey <tom@tromey.com>
343
344 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
345 * utils.h (make_hex_string): Don't declare.
346 * utils.c (make_hex_string): Remove.
347
3d435220
TV
3482019-09-24 Tom de Vries <tdevries@suse.de>
349
350 PR gdb/23815
351 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
352 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
353
ddd44b70
DD
3542019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
355
356 * NEWS: Mention new simulator port for PRU.
357
f945dedf
CB
3582019-09-23 Christian Biesinger <cbiesinger@google.com>
359
360 * ada-exp.y (write_object_remaining): Update.
361 * ada-lang.c (ada_decode): Return a std::string instead of a char*
362 and eliminate the static buffer.
363 (ada_decode_symbol): Update.
364 (ada_la_decode): Update.
365 (ada_sniff_from_mangled_name): Update.
366 (is_valid_name_for_wild_match): Update.
367 (ada_lookup_name_info::matches): Update and simplify.
368 (name_matches_regex): Update.
369 (ada_add_global_exceptions): Update.
370 * ada-lang.h (ada_decode): Update signature.
371 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
372 * dwarf-index-write.c (debug_names::insert): Update.
373
7ab78ccb
SM
3742019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
375
376 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
377 formatting.
378
9252448b
SM
3792019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
380
381 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
382 Change "nonzero" to "true" in documentation.
383
626ca2c0
CB
3842019-09-20 Christian Biesinger <cbiesinger@google.com>
385
386 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
387 (_initialize_darwin_solib): Don't set
388 darwin_so_ops.lookup_lib_global_symbol.
389 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
390 set_gdbarch_iterate_over_objfiles_in_search_order.
391 (elf_lookup_lib_symbol): Rename to...
392 (svr4_iterate_over_objfiles_in_search_order): this, and update
393 to iterate semantics.
394 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
395 * solib.c (solib_global_lookup): Remove.
396 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
397 (solib_global_lookup): Remove.
398 * symtab.c (lookup_global_or_static_symbol): Remove call to
399 solib_global_lookup.
400
5a3a0d63
JB
4012019-09-20 Joel Brobecker <brobecker@adacore.com>
402
403 * NEWS: Move entries about default MI version now being
404 version 3, and about the GDB/MI fix for multi-location
405 breakpoints to the "since GDB 8.3" section.
406
ffea1427
JB
4072019-09-20 Joel Brobecker <brobecker@adacore.com>
408
409 GDB 8.3.1 released.
410
abf516c6
UW
4112019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
412
413 * NEWS: Mention that Cell/B.E. debugging support was removed.
414 * MAINTAINERS: Remove spu target.
415
416 * config/djgpp/fnchange.lst: Remove entries for removed files.
417
418 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
419 spu-multiarch.o, and spu-tdep.o.
420 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
421 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
422 spu-multiarch.c, and spu-tdep.c.
423 * spu-linux-nat.c: Remove file.
424 * spu-multiarch.c: Remove file.
425 * spu-tdep.c: Remove file.
426 * spu-tdep.h: Remove file.
427 * solib-spu.c: Remove file.
428 * solib-spu.h: Remove file.
429
430 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
431 * configure.nat (spu-linux): Remove.
432 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
433 solib-multiarch.o from gdb_target_obs.
434 (spu*-*-*): Remove.
435
436 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
437 feature flag.
438 (ppc_linux_no_features): Update.
439 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
440 Cell/B.E. support.
441 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
442 (tdesc_powerpc_cell64l): Likewise.
443 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
444 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
445 Cell/B.E. support.
446 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
447 Do not include "features/rs6000/powerpc-cell32l.c" or
448 "features/rs6000/powerpc-cell64l.c".
449 (ppc_linux_spu_section): Remove.
450 (ppc_linux_core_read_description): Remove Cell/B.E. support.
451 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
452 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
453 (ppc_linux_spe_context_lookup): Remove.
454 (ppc_linux_spe_context_inferior_created): Remove.
455 (ppc_linux_spe_context_solib_loaded): Remove.
456 (ppc_linux_spe_context_solib_unloaded): Remove.
457 (ppc_linux_spe_context): Remove.
458 (struct ppu2spu_cache): Remove.
459 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
460 (struct ppu2spu_data): Remove.
461 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
462 ppu2spu_unwind): Remove.
463 (ppc_linux_init_abi): Remove Cell/B.E. support.
464 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
465
466 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
467 (rs6000/powerpc-cell64l-expedite): Likewise
468 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
469 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
470 rs6000/powerpc-cell64l.xml.
471 * features/rs6000/powerpc-cell32l.xml: Remove.
472 * features/rs6000/powerpc-cell64l.xml: Likewise.
473 * features/rs6000/powerpc-cell32l.c: Remove generated file.
474 * features/rs6000/powerpc-cell64l.c: Likewise.
475 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
476 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
477 * regformats/reg-spu.dat: Remove.
478
479 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
480 * corelow.c (struct spuid_list): Remove.
481 (add_to_spuid_list): Remove.
482 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
483 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
484 (remote_protocol_features): Remove associated entries.
485 (_initialize_remote): No longer initialize them.
486 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
487 * linux-nat.c (SPUFS_MAGIC): Remove.
488 (linux_proc_xfer_spu): Remove.
489 (spu_enumerate_spu_ids): Remove.
490 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
491 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
492 (linux_make_corefile_notes): No longer call it.
493
494 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
495 (cooked_write_test): Likewise.
496
78e8cb91
TT
4972019-09-20 Tom Tromey <tom@tromey.com>
498
499 * NEWS: Mention case-sensitivity of TUI commands.
500 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
501 (tui_set_win_height_command, parse_scrolling_args): Likewise.
502 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
503
f074b67e
TT
5042019-09-20 Tom Tromey <tom@tromey.com>
505
506 * tui/tui-source.c (tui_source_window::set_contents): Use
507 make_unique_xstrdup.
508 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
509 make_unique_xstrdup.
510
63c4bf19
TT
5112019-09-20 Tom Tromey <tom@tromey.com>
512
513 * tui/tui-data.c: Remove separator comments.
514 * tui/tui-layout.c: Remove separator comments.
515 * tui/tui-win.c: Remove separator comments.
516 * tui/tui-wingeneral.c: Remove separator comments.
517
43df9b2f
TT
5182019-09-20 Tom Tromey <tom@tromey.com>
519
520 * tui/tui.h (strcat_to_buf): Don't declare.
521 * tui/tui.c (strcat_to_buf): Remove.
522
7226433c
TT
5232019-09-20 Tom Tromey <tom@tromey.com>
524
525 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
526 from "fullname".
527 * tui/tui-source.c (tui_source_window::set_contents)
528 (tui_source_window::location_matches_p)
529 (tui_source_window::maybe_update): Update.
530
80df3337
TT
5312019-09-20 Tom Tromey <tom@tromey.com>
532
533 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
534 Update.
535 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
536 prefix.
537 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
538 (tui_data_window::line_from_reg_element_no)
539 (tui_data_window::first_reg_element_no_inline)
540 (tui_data_window::show_registers)
541 (tui_data_window::show_register_group)
542 (tui_data_window::display_registers_from)
543 (tui_data_window::display_registers_from_line)
544 (tui_data_window::first_data_item_displayed)
545 (tui_data_window::delete_data_content_windows)
546 (tui_data_window::erase_data_content)
547 (tui_data_window::do_scroll_vertical)
548 (tui_data_window::refresh_window)
549 (tui_data_window::check_register_values): Update.
550
9923f347
TT
5512019-09-20 Tom Tromey <tom@tromey.com>
552
553 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
554 (struct tui_locator_window) <full_name, proc_name>: Now
555 std::string.
556 * tui/tui-stack.c (tui_locator_window::make_status_line)
557 (tui_locator_window::set_locator_fullname)
558 (tui_locator_window::set_locator_info): Update.
559 * tui/tui-source.c (tui_source_window::set_contents)
560 (tui_source_window::showing_source_p): Update.
561
b76251ab
TT
5622019-09-20 Tom Tromey <tom@tromey.com>
563
564 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
565 Don't call tui_locator_win_info_ptr.
566
0891be08
TT
5672019-09-20 Tom Tromey <tom@tromey.com>
568
569 * tui/tui-win.c (tui_resize_all): Don't call refresh.
570
1b935acf
TT
5712019-09-20 Tom Tromey <tom@tromey.com>
572
573 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
574 height for locator.
575 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
576 * tui/tui-layout.c (show_source_disasm_command, show_data)
577 (show_source_or_disasm_and_command): Use 1 as height for locator.
578
9abd8a65
TT
5792019-09-20 Tom Tromey <tom@tromey.com>
580
581 * tui/tui.c (tui_enable): Update.
582 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
583 Update.
584 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
585 Update.
586 * tui/tui-data.c (win_resized): Now bool.
587 (tui_win_resized): Return bool.
588 (tui_set_win_resized_to): Accept a bool.
589
b5457826
TT
5902019-09-20 Tom Tromey <tom@tromey.com>
591
592 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
593 Change type of "refresh_values_only".
594 * tui/tui-regs.c (tui_data_window::show_register_group): Change
595 type of "refresh_values_only".
596
6b915f7d
TT
5972019-09-20 Tom Tromey <tom@tromey.com>
598
599 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
600 std::string.
601 (tui_disassemble): Add "pos" parameter.
602 (tui_disasm_window::set_contents): Simplify.
603
2ad52f6f
TT
6042019-09-20 Tom Tromey <tom@tromey.com>
605
606 * tui/tui-winsource.h (struct tui_source_window_base)
607 <show_source_content>: Now private.
608 * tui/tui-winsource.c
609 (tui_source_window_base::show_source_content): Don't handle empty
610 content case.
611
b3b1bde6
TT
6122019-09-20 Tom Tromey <tom@tromey.com>
613
614 * tui/tui-layout.c (show_source_disasm_command)
615 (show_source_or_disasm_and_command): Don't call
616 show_source_content.
617
71a25ed2
TT
6182019-09-20 Tom Tromey <tom@tromey.com>
619
620 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
621 Declare.
622 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
623 from tui_make_status_line.
624 (tui_locator_window::rerender): Update.
625
f8532154
TT
6262019-09-20 Tom Tromey <tom@tromey.com>
627
628 * tui/tui-stack.c (tui_make_status_line): Return std::string.
629 (tui_locator_window::rerender): Update.
630
2d81b349
TT
6312019-09-20 Tom Tromey <tom@tromey.com>
632
633 * tui/tui-winsource.h (struct tui_source_window_base)
634 <~tui_source_window_base>: Don't declare.
635 <fullname>: Remove.
636 * tui/tui-winsource.c (~tui_source_window_base): Remove.
637 * tui/tui-source.h (struct tui_source_window) <fullname>: New
638 member.
639 * tui/tui-source.c (tui_source_window::set_contents): Update.
640 (tui_source_window::location_matches_p)
641 (tui_source_window::maybe_update): Update.
642
f14bec58
TT
6432019-09-20 Tom Tromey <tom@tromey.com>
644
645 * tui/tui-winsource.h (~tui_source_element): Remove.
646 (tui_source_element): Update.
647 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
648 * tui/tui-winsource.c (tui_show_source_line): Update.
649 * tui/tui-source.c (tui_source_window::set_contents): Update.
650 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
651
78d5933a
TT
6522019-09-20 Tom Tromey <tom@tromey.com>
653
654 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
655 declare.
656 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
657 tui_clear_source_windows_detail.
658 * tui/tui-winsource.h (struct tui_source_window_base)
659 <clear_detail>: Don't declare.
660 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
661 Remove.
662 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
663
d4207696
TT
6642019-09-20 Tom Tromey <tromey@adacore.com>
665
666 PR ada/24919:
667 * block.c (contained_in): Fix final return value.
668
00f93c44
AM
6692019-09-20 Alan Modra <amodra@gmail.com>
670
671 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
672 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
673 (read_indirect_string_from_dwz): Use bfd accessor.
674 * dwarf2read.h (struct dwz_file <filename>): Likewise.
675 * machoread.c (macho_symfile_read_all_oso): Likewise.
676 * solib.c (solib_bfd_open): Likewise.
677
e4153ae6
CB
6782019-09-19 Christian Biesinger <cbiesinger@google.com>
679
680 * eval.c: Move declaration of overload_resolution to...
681 * value.h: ...here.
682
c7ae7675
CB
6832019-09-19 Christian Biesinger <cbiesinger@google.com>
684
685 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
686 * arm-linux-tdep.c: Likewise.
687 * arm-nbsd-nat.c: Likewise.
688 * arm-tdep.h: Declare arm_apcs_32.
689 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
690
e86f08d2
CB
6912019-09-19 Christian Biesinger <cbiesinger@google.com>
692
693 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
694 * dwarf2read.h: Declare dwarf_always_disassemble.
695
f64e2f40
TV
6962019-09-19 Tom de Vries <tdevries@suse.de>
697
698 PR gdb/25009
699 * source-cache.c (source_cache::ensure): Catch exception thrown during
700 construction of the highlighter.
701
fd361982
AM
7022019-09-18 Alan Modra <amodra@gmail.com>
703
704 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
705 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
706 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
707 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
708 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
709 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
710 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
711 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
712 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
713 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
714 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
715 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
716 * solib-spu.c, * solib-svr4.c, * solib-target.c,
717 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
718 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
719 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
720 * mi/mi-interp.c: Update throughout for bfd section macro and
721 function changes.
722 * gcore (gcore_create_callback): Use bfd_set_section_lma.
723 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
724
11061048
TT
7252019-09-18 Tom Tromey <tom@tromey.com>
726
727 * NEWS: Add entry.
728 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
729 call rl_initialize.
730 (tui_enable): Do not call rl_initialize.
731
7a27b85f
CG
7322019-09-18 Christian Groessler <chris@groessler.org>
733
734 * alpha-linux-nat.c: Include gdbarch.h.
735
f64eea3a
SM
7362019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
737
738 * ui-file.c: Include cli/cli-style.h.
739 (term_cli_styling): Remove cli_styling declaration.
740
e6f7f6d1
AM
7412019-09-18 Alan Modra <amodra@gmail.com>
742
743 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
744 to bfd_asymbol_section.
745
1d38e9d1
AM
7462019-09-18 Alan Modra <amodra@gmail.com>
747
748 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
749 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
750 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
751
90d92a63
AM
7522019-09-18 Alan Modra <amodra@gmail.com>
753
754 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
755 * spu-linux-nat.c (spu_bfd_open): Likewise.
756
a3d181d2
CB
7572019-09-18 Christian Biesinger <cbiesinger@google.com>
758
759 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
760 to bool to match definition in dwarf2read.c.
761
491144b5
CB
7622019-09-17 Christian Biesinger <cbiesinger@google.com>
763
764 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
765 (print_signatures): Likewise.
766 (trust_pad_over_xvs): Likewise.
767 * arch/aarch64-insn.c (aarch64_debug): Likewise.
768 * arch/aarch64-insn.h (aarch64_debug): Likewise.
769 * arm-linux-nat.c (arm_apcs_32): Likewise.
770 * arm-linux-tdep.c (arm_apcs_32): Likewise.
771 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
772 * arm-tdep.c (arm_debug): Likewise.
773 (arm_apcs_32): Likewise.
774 * auto-load.c (debug_auto_load): Likewise.
775 (auto_load_gdb_scripts): Likewise.
776 (global_auto_load): Likewise.
777 (auto_load_local_gdbinit): Likewise.
778 (auto_load_local_gdbinit_loaded): Likewise.
779 * auto-load.h (global_auto_load): Likewise.
780 (auto_load_local_gdbinit): Likewise.
781 (auto_load_local_gdbinit_loaded): Likewise.
782 * breakpoint.c (disconnected_dprintf): Likewise.
783 (breakpoint_proceeded): Likewise.
784 (automatic_hardware_breakpoints): Likewise.
785 (always_inserted_mode): Likewise.
786 (target_exact_watchpoints): Likewise.
787 (_initialize_breakpoint): Update.
788 * breakpoint.h (target_exact_watchpoints): Change to bool.
789 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
790 * cli/cli-cmds.c (trace_commands): Likewise.
791 * cli/cli-cmds.h (trace_commands): Likewise.
792 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
793 to bool*.
794 * cli/cli-logging.c (logging_overwrite): Change to bool.
795 (logging_redirect): Likewise.
796 (debug_redirect): Likewise.
797 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
798 (struct boolean_option_def) <get_var_address_cb_>: Change return type
799 to bool.
800 <boolean_option_def>: Update.
801 (struct flag_option_def): Change default type of Context to bool
802 from int.
803 <flag_option_def>: Change return type of var_address_cb_ to bool*.
804 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
805 (get_setshow_command_value_string): Likewise.
806 * cli/cli-style.c (cli_styling): Change to bool.
807 (source_styling): Likewise.
808 * cli/cli-style.h (source_styling): Likewise.
809 (cli_styling): Likewise.
810 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
811 to bool.
812 * command.h (var_types): Update comment.
813 (add_setshow_boolean_cmd): Change int* var argument to bool*.
814 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
815 bool.
816 (debug_compile_cplus_scopes): Likewise.
817 * compile/compile-internal.h (compile_debug): Likewise.
818 * compile/compile.c (compile_debug): Likewise.
819 (struct compile_options) <raw>: Likewise.
820 * cp-support.c (catch_demangler_crashes): Likewise.
821 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
822 (usr_cmd_cris_dwarf2_cfi): Likewise.
823 * csky-tdep.c (csky_debug): Likewise.
824 * darwin-nat.c (enable_mach_exceptions): Likewise.
825 * dcache.c (dcache_enabled_p): Likewise.
826 * defs.h (info_verbose): Likewise.
827 * demangle.c (demangle): Likewise.
828 (asm_demangle): Likewise.
829 * dwarf-index-cache.c (debug_index_cache): Likewise.
830 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
831 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
832 * dwarf2read.c (check_physname): Likewise.
833 (use_deprecated_index_sections): Likewise.
834 (dwarf_always_disassemble): Likewise.
835 * eval.c (overload_resolution): Likewise.
836 * event-top.c (set_editing_cmd_var): Likewise.
837 (exec_done_display_p): Likewise.
838 * event-top.h (set_editing_cmd_var): Likewise.
839 (exec_done_display_p): Likewise.
840 * exec.c (write_files): Likewise.
841 * fbsd-nat.c (debug_fbsd_lwp): Likewise
842 (debug_fbsd_nat): Likewise.
843 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
844 Likewise.
845 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
846 <backtrace_past_entry> Likewise.
847 * gdb-demangle.h (demangle): Likewise.
848 (asm_demangle): Likewise.
849 * gdb_bfd.c (bfd_sharing): Likewise.
850 * gdbcore.h (write_files): Likewise.
851 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
852 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
853 * gdbthread.h (print_thread_events): Likewise.
854 * gdbtypes.c (opaque_type_resolution): Likewise.
855 (strict_type_checking): Likewise.
856 * gnu-nat.c (gnu_debug_flag): Likewise.
857 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
858 * guile/scm-param.c (pascm_variable): Add boolval.
859 (add_setshow_generic): Update.
860 (pascm_param_value): Update.
861 (pascm_set_param_value_x): Update.
862 * hppa-tdep.c (hppa_debug): Change to bool..
863 * infcall.c (may_call_functions_p): Likewise.
864 (coerce_float_to_double_p): Likewise.
865 (unwind_on_signal_p): Likewise.
866 (unwind_on_terminating_exception_p): Likewise.
867 * infcmd.c (startup_with_shell): Likewise.
868 * inferior.c (print_inferior_events): Likewise.
869 * inferior.h (startup_with_shell): Likewise.
870 (print_inferior_events): Likewise.
871 * infrun.c (step_stop_if_no_debug): Likewise.
872 (detach_fork): Likewise.
873 (debug_displaced): Likewise.
874 (disable_randomization): Likewise.
875 (non_stop): Likewise.
876 (non_stop_1): Likewise.
877 (observer_mode): Likewise.
878 (observer_mode_1): Likewise.
879 (set_observer_mode): Update.
880 (sched_multi): Change to bool.
881 * infrun.h (debug_displaced): Likewise.
882 (sched_multi): Likewise.
883 (step_stop_if_no_debug): Likewise.
884 (non_stop): Likewise.
885 (disable_randomization): Likewise.
886 * linux-tdep.c (use_coredump_filter): Likewise.
887 (dump_excluded_mappings): Likewise.
888 * linux-thread-db.c (auto_load_thread_db): Likewise.
889 (check_thread_db_on_load): Likewise.
890 * main.c (captured_main_1): Update.
891 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
892 xx2_opt, boolean_opt>: Change to bool.
893 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
894 * maint.c (maintenance_profile_p): Likewise.
895 (per_command_time): Likewise.
896 (per_command_space): Likewise.
897 (per_command_symtab): Likewise.
898 * memattr.c (inaccessible_by_default): Likewise.
899 * mi/mi-main.c (mi_async): Likewise.
900 (mi_async_1): Likewise.
901 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
902 * nat/fork-inferior.h (startup_with_shell): Likewise.
903 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
904 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
905 * nios2-tdep.c (nios2_debug): Likewise.
906 * or1k-tdep.c (or1k_debug): Likewise.
907 * parse.c (parser_debug): Likewise.
908 * parser-defs.h (parser_debug): Likewise.
909 * printcmd.c (print_symbol_filename): Likewise.
910 * proc-api.c (procfs_trace): Likewise.
911 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
912 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
913 (set_parameter_value): Update.
914 (add_setshow_generic): Update.
915 * python/py-value.c (copy_py_bool_obj): Change argument from int*
916 to bool*.
917 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
918 int*.
919 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
920 * record-btrace.c (record_btrace_target::store_registers): Update.
921 * record-full.c (record_full_memory_query): Change to bool.
922 (record_full_stop_at_limit): Likewise.
923 * record-full.h (record_full_memory_query): Likewise.
924 * remote-notif.c (notif_debug): Likewise.
925 * remote-notif.h (notif_debug): Likewise.
926 * remote.c (use_range_stepping): Likewise.
927 (interrupt_on_connect): Likewise.
928 (remote_break): Likewise.
929 * ser-tcp.c (tcp_auto_retry): Likewise.
930 * ser-unix.c (serial_hwflow): Likewise.
931 * skip.c (debug_skip): Likewise.
932 * solib-aix.c (solib_aix_debug): Likewise.
933 * spu-tdep.c (spu_stop_on_load_p): Likewise.
934 (spu_auto_flush_cache_p): Likewise.
935 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
936 Likewise.
937 (struct info_print_options) <quiet>: Likewise.
938 * symfile-debug.c (debug_symfile): Likewise.
939 * symfile.c (auto_solib_add): Likewise.
940 (separate_debug_file_debug): Likewise.
941 * symfile.h (auto_solib_add): Likewise.
942 (separate_debug_file_debug): Likewise.
943 * symtab.c (basenames_may_differ): Likewise.
944 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
945 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
946 (struct info_types_options) <quiet>: Likewise.
947 * symtab.h (demangle): Likewise.
948 (basenames_may_differ): Likewise.
949 * target-dcache.c (stack_cache_enabled_1): Likewise.
950 (code_cache_enabled_1): Likewise.
951 * target.c (trust_readonly): Likewise.
952 (may_write_registers): Likewise.
953 (may_write_memory): Likewise.
954 (may_insert_breakpoints): Likewise.
955 (may_insert_tracepoints): Likewise.
956 (may_insert_fast_tracepoints): Likewise.
957 (may_stop): Likewise.
958 (auto_connect_native_target): Likewise.
959 (target_stop_and_wait): Update.
960 (target_async_permitted): Change to bool.
961 (target_async_permitted_1): Likewise.
962 (may_write_registers_1): Likewise.
963 (may_write_memory_1): Likewise.
964 (may_insert_breakpoints_1): Likewise.
965 (may_insert_tracepoints_1): Likewise.
966 (may_insert_fast_tracepoints_1): Likewise.
967 (may_stop_1): Likewise.
968 * target.h (target_async_permitted): Likewise.
969 (may_write_registers): Likewise.
970 (may_write_memory): Likewise.
971 (may_insert_breakpoints): Likewise.
972 (may_insert_tracepoints): Likewise.
973 (may_insert_fast_tracepoints): Likewise.
974 (may_stop): Likewise.
975 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
976 (make_thread_apply_all_options_def_group): Change argument from int*
977 to bool*.
978 (thread_apply_all_command): Update.
979 (print_thread_events): Change to bool.
980 * top.c (confirm): Likewise.
981 (command_editing_p): Likewise.
982 (history_expansion_p): Likewise.
983 (write_history_p): Likewise.
984 (info_verbose): Likewise.
985 * top.h (confirm): Likewise.
986 (history_expansion_p): Likewise.
987 * tracepoint.c (disconnected_tracing): Likewise.
988 (circular_trace_buffer): Likewise.
989 * typeprint.c (print_methods): Likewise.
990 (print_typedefs): Likewise.
991 * utils.c (debug_timestamp): Likewise.
992 (sevenbit_strings): Likewise.
993 (pagination_enabled): Likewise.
994 * utils.h (sevenbit_strings): Likewise.
995 (pagination_enabled): Likewise.
996 * valops.c (overload_resolution): Likewise.
997 * valprint.h (struct value_print_options) <prettyformat_arrays,
998 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
999 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1000 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1001 Likewise.
1002 * windows-nat.c (new_console): Likewise.
1003 (cygwin_exceptions): Likewise.
1004 (new_group): Likewise.
1005 (debug_exec): Likewise.
1006 (debug_events): Likewise.
1007 (debug_memory): Likewise.
1008 (debug_exceptions): Likewise.
1009 (useshell): Likewise.
1010 * windows-tdep.c (maint_display_all_tib): Likewise.
1011 * xml-support.c (debug_xml): Likewise.
1012
f1b620e9
MG
10132019-09-17 Mike Gulick <mgulick@mathworks.com>
1014
1015 * source.c (prepare_path_for_appending): New function.
1016 (openp): Make use of new function.
1017 (find_and_open_source): Search for the compilation directory and
1018 source file as a relative path beneath the directory search path.
1019
67f3ed6a
AB
10202019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1021
1022 * source-cache.c (source_cache::get_line_charpos): Catch
1023 exceptions and return false, this matches the behaviour documented
1024 in the header file.
1025
74332189
JB
10262019-09-17 Joel Brobecker <brobecker@adacore.com>
1027
1028 * ada-tasks.c (info_task): Remove quoting of the task's name.
1029
f2f24aa9
CB
10302019-09-16 Christian Biesinger <cbiesinger@google.com>
1031
1032 * symfile.c (auto_solib_add): Replace comment with a reference
1033 to the header file.
1034
6a062a93
CB
10352019-09-14 Christian Biesinger <cbiesinger@google.com>
1036
1037 * NEWS: Mention that gdb can now be compiled with Python 3
1038 on Windows.
1039
ec6c8338
AB
10402019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1041
1042 * maint.c (maint_print_section_data::maint_print_section_data):
1043 Force use of 'float log10 (float)' by casting the argument to
1044 float.
1045
aa17805f
AB
10462019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1047
1048 * maint.c: Add 'cmath' include.
1049 (struct maint_print_section_data): New structure.
1050 (print_section_index): New function.
1051 (print_bfd_section_info): Add header comment, small whitespace
1052 cleanup, and update to call new print_section_index function.
1053 (print_objfile_section_info): Likewise.
1054 (maint_obj_section_from_bfd_section): New function.
1055 (print_bfd_section_info_maybe_relocated): New function.
1056 (maintenance_info_sections): Add header comment, always use
1057 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1058
3dd9bb46
AB
10592019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1060
1061 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1062 inner scope, add check that the objfile has psymtabs before
1063 checking psymtabs_addrmap.
1064 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1065
4993045d
PW
10662019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1067
1068 * NEWS: Announce that Ada task names are now shown at more places,
1069 and between quotes (except in info task output).
1070 * gdb/ada-tasks.c (task_to_str): New function.
1071 (display_current_task_id): Call task_to_str.
1072 (task_command_1): Likewise.
1073 (print_ada_task_info): In non-mi mode, Properly align headers and data
1074 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1075
7a289707
RO
10762019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1077
1078 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1079 prstatus.pr_lwp.pr_info instead of making it up.
1080
f2aec7f6
CB
10812019-09-11 Christian Biesinger <cbiesinger@google.com>
1082
1083 * auto-load.c (auto_load_expand_dir_vars): Update.
1084 * defs.h (gdb_datadir): Change to std::string.
1085 (python_libdir): Likewise.
1086 (relocate_gdb_directory): Change return type to std::string.
1087 * guile/guile.c (gdbscm_data_directory): Update.
1088 (initialize_scheme_side): Update.
1089 * jit.c (jit_reader_dir): Change to std::string.
1090 (jit_reader_load_command): Update.
1091 * main.c (gdb_datadir): Change to std::string.
1092 (python_libdir): Likewise.
1093 (set_gdb_data_directory): Update.
1094 (relocate_path): Change to return std::string.
1095 (relocate_gdb_directory): Change to return std::string.
1096 (relocate_gdbinit_path_maybe_in_datadir): Update.
1097 (captured_main_1): Update.
1098 * python/python.c (do_start_initialization): Update.
1099 * top.c (show_gdb_datadir): Update.
1100 * xml-syscall.c (xml_init_syscalls_info): Update.
1101 (init_syscalls_info): Update.
1102
9224a013
CB
11032019-09-11 Christian Biesinger <cbiesinger@google.com>
1104
1105 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1106 out of get_init_files.
1107 (get_init_files): Update.
1108
f48cd836
CB
11092019-09-11 Christian Biesinger <cbiesinger@google.com>
1110
1111 * main.c (get_init_files): Change to use std::string.
1112 (captured_main_1): Update.
1113 (print_gdb_help): Update.
1114
9cab7ecd
AT
11152019-09-11 Ali Tamur <tamur@google.com>
1116
1117 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1118 implementation.
1119
67547d89
CB
11202019-09-11 Christian Biesinger <cbiesinger@google.com>
1121
1122 * dbxread.c (read_dbx_symtab): Update.
1123 * dwarf2read.c (load_partial_dies): Update.
1124 * mdebugread.c (parse_partial_symbols): Update.
1125 (handle_psymbol_enumerators): Update.
1126 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1127 * psymtab.c (add_psymbol_to_bcache): Likewise.
1128 (add_psymbol_to_list): Likewise.
1129 * symtab.c (symbol_set_names): Likewise.
1130 * symtab.h (symbol_set_names): Likewise.
1131 * xcoffread.c (scan_xcoff_symtab): Update.
1132
64b2d4a0
TT
11332019-09-11 Tom Tromey <tom@tromey.com>
1134
1135 * symfile-mem.c (symbol_file_add_from_memory): Use
1136 bfd_set_filename.
1137 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1138 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1139
3b00ef10
TT
11402019-09-10 Tom Tromey <tromey@adacore.com>
1141
1142 * dwarf-index-write.c (write_psymbols): Extend error message.
1143 (debug_names::insert): Add Ada code.
1144 (debug_names::write_psymbols): Remove Ada check.
1145 (debug_names) <m_string_obstack>: New member.
1146 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1147 (gdb_index_symbol_name_matcher::matches): Remove.
1148 (mapped_index_base::find_name_components_bounds): Add "lang"
1149 parameter.
1150 (mapped_index_base::build_name_components): Also split names
1151 according to Ada syntax.
1152 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1153 type of "match_callback".
1154 (check_match, check_find_bounds_finds)
1155 (dw2_expand_symtabs_matching): Update.
1156 (dw2_debug_names_iterator): Add new constructor.
1157 (dw2_debug_names_map_matching_symbols): New function.
1158 (dw2_debug_names_expand_symtabs_matching): Update.
1159 (dwarf2_debug_names_functions): Use
1160 dw2_debug_names_map_matching_symbols.
1161
aa391654
TT
11622019-09-10 Tom Tromey <tromey@adacore.com>
1163
1164 * dwarf2read.c (dw2_get_file_names_reader): Add the
1165 CU's file name to the results.
1166
b054970d
TT
11672019-09-10 Tom Tromey <tromey@adacore.com>
1168
1169 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1170 map_matching_symbols. Update.
1171 * dwarf2read.c (dw2_map_matching_symbols): Update.
1172 * psymtab.c (match_partial_symbol): Change type; update.
1173 (psym_map_matching_symbols): Likewise.
1174 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1175 type; update.
1176 * symfile.h (struct quick_symbol_functions)
1177 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1178 Remove "match".
1179
6a3dbf1b
TT
11802019-09-10 Tom Tromey <tromey@adacore.com>
1181
1182 * psymtab.c (map_block): Remove.
1183 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1184 * symtab.c (iterate_over_symbols_terminated): New function.
1185 * symtab.c (iterate_over_symbols_terminated): Declare.
1186
6969f124
TT
11872019-09-10 Tom Tromey <tromey@adacore.com>
1188
1189 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1190 * language.h (struct language_defn) <la_iterate_over_symbols>:
1191 Return bool.
1192 * symtab.c (iterate_over_symbols): Return bool.
1193 * symtab.h (iterate_over_symbols): Return bool.
1194
199b4314
TT
11952019-09-10 Tom Tromey <tromey@adacore.com>
1196
1197 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1198 (add_nonlocal_symbols): Update.
1199 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1200 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1201 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1202 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1203 Change type of "callback". Remove "data".
1204
a084a2a6
AT
1205
12062019-09-09 Ali Tamur <tamur@google.com>
1207
1208 * dwarf2read.c (comp_unit_head): Update comment.
1209 (dwarf2_dwo_name): New function declaration.
1210 (dwarf_unit_type_name): New function declaration.
1211 (read_comp_unit_head): Add support for new compilation units,
1212 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
1213 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
1214 (currently named as "signature") in their header. Also clarify error
1215 messages.
1216 (lookup_dwo_id): New function. Returns the dwo id of the given
1217 compile unit.
1218 (lookup_dwo_unit): Use the new lookup_dwo_id function.
1219 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
1220 functions.
1221 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
1222 (dwarf2_dwo_name): Get the dwo name if present.
1223 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
1224 purposes.
1225
25a2915e
TT
12262019-09-09 Tom Tromey <tom@tromey.com>
1227
1228 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1229
e4df0874
PW
12302019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1231
1232 * python/python.c (do_start_initialization): Make progname_copy static,
1233 to avoid a leak report.
1234
8634b462
TT
12352019-09-08 Tom Tromey <tom@tromey.com>
1236
1237 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1238
c7f839cb
SM
12392019-09-07 Simon Marchi <simon.marchi@efficios.com>
1240
1241 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1242 Change type to gdb::optional<block_enum>.
1243 (dw2_symtab_iter_init): Change block_index parameter type
1244 to gdb::optional<block_enum>.
1245 (dw2_lookup_symbol): Change block_index parameter
1246 type to block_enum.c
1247 (dw2_debug_names_lookup_symbol): Likewise.
1248 * psymtab.c (psym_lookup_symbol): Likewise.
1249 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1250 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1251 Likewise.
1252
ead0e69a
CB
12532019-09-06 Christian Biesinger <cbiesinger@google.com>
1254
1255 * defs.h (relocate_gdb_directory): Change int to bool in
1256 signature and rename flag to relocatable.
1257 * main.c (relocate_path): Likewise.
1258 (relocate_gdb_directory): Likewise.
1259
b16c44de
AM
12602019-09-06 Alan Modra <amodra@gmail.com>
1261
1262 * coffread.c (coff_symfile_read): Constify filename variable.
1263 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
1264 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
1265 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
1266 * solib.c (reload_shared_libraries_1): Likewise.
1267 * symfile.c (reread_symbols): Likewise.
1268 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
1269 * solib-darwin.c (darwin_bfd_open): Likewise.
1270 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1271
06ff036e
AB
12722019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1273
1274 * psymtab.c (print_partial_symbols): Handle missing domain_enum
1275 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
1276
4e962e74
TT
12772019-09-03 Tom Tromey <tromey@adacore.com>
1278
1279 * ada-valprint.c (ada_val_print_num): Don't recurse for range
1280 types.
1281 (has_negatives): Unbias a range type bound.
1282 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
1283 * gdbtypes.c (operator==): Handle new field.
1284 (create_range_type): Add "bias" parameter.
1285 (create_static_range_type, resolve_dynamic_range): Update.
1286 * gdbtypes.h (struct range_bounds) <bias>: New member.
1287 (create_range_type): Add bias parameter.
1288 * printcmd.c (print_scalar_formatted): Unbias range types.
1289 * value.c (unpack_long): Unbias range types.
1290 (pack_long): Bias range types.
1291
d90b8f26
AH
12922019-09-02 Alan Hayward <alan.hayward@arm.com>
1293
1294 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
1295 probe arguments.
1296
fe01123e
AH
12972019-09-02 Alan Hayward <alan.hayward@arm.com>
1298
1299 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
1300 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
1301 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
1302 (compile_probe_arg): Likewise.
1303 * probe.h (get_argument_count): Likewise.
1304 * solib-svr4.c (solib_event_probe_action): Likewise.
1305 * stap-probe.c (stap_probe::get_argument_count): Likewise.
1306
e661ef01
AH
13072019-09-02 Alan Hayward <alan.hayward@arm.com>
1308
1309 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
1310 code to here...
1311 (svr4_create_solib_event_breakpoints): ...from here.
1312
47a536d9
SDJ
13132019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
1314
1315 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
1316 suffix from warning message.
1317
d6a00eba
TT
13182019-08-30 Tom Tromey <tom@tromey.com>
1319
1320 * tui/tui-winsource.h (struct tui_source_window_base)
1321 <refresh_all>: Don't declare.
1322 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1323 Remove.
1324 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1325 tui_show_locator_content.
1326 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1327 declare.
1328 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1329 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1330 declare.
1331
55b2657b
TT
13322019-08-30 Tom Tromey <tom@tromey.com>
1333
1334 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1335
12a8555a
TT
13362019-08-30 Tom Tromey <tom@tromey.com>
1337
1338 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1339 Remove unnecessary forward declarations.
1340
900ac242
TT
13412019-08-30 Tom Tromey <tom@tromey.com>
1342
1343 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1344 rerender.
1345 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1346 tui_show_locator_content.
1347
99ab33fb
TT
13482019-08-30 Tom Tromey <tom@tromey.com>
1349
1350 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1351 (tui_locator_window::rerender): Rewrite using body of previous
1352 tui_show_locator_content.
1353
e594a5d1
TT
13542019-08-30 Tom Tromey <tom@tromey.com>
1355
1356 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1357 set_locator_fullname>: New methods.
1358 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1359 Rename from tui_set_locator_fullname.
1360 (tui_locator_window::set_locator_info): Rename from
1361 tui_set_locator_info. Return bool.
1362 (tui_update_locator_fullname, tui_show_frame_info): Update.
1363
715bb467
TT
13642019-08-30 Tom Tromey <tom@tromey.com>
1365
1366 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1367
772f3f03
TT
13682019-08-30 Tom Tromey <tom@tromey.com>
1369
1370 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1371 call touchwin.
1372
108e13ab
TT
13732019-08-30 Tom Tromey <tom@tromey.com>
1374
1375 * tui/tui-wingeneral.c (box_win): Assume win_info and
1376 win_info->handle cannot be NULL.
1377
cdaa6eb4
TT
13782019-08-30 Tom Tromey <tom@tromey.com>
1379
1380 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1381 refresh_window>: Declare.
1382 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1383 resize.
1384 (tui_data_item_window::rerender): Rename from
1385 tui_display_register.
1386 (tui_data_item_window::refresh_window): New method.
1387 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1388 no-op.
1389
89df7f90
TT
13902019-08-30 Tom Tromey <tom@tromey.com>
1391
1392 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1393 regs_column_count, current_group>: Move later. Now private.
1394 <get_current_group>: New method.
1395 * tui/tui-regs.c (tui_reg_command): Update.
1396 * tui/tui-layout.c (tui_set_layout): Update.
1397
1bf2866a
TT
13982019-08-30 Tom Tromey <tom@tromey.com>
1399
1400 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1401 (tui_data_window::rerender): Don't call
1402 check_and_display_highlight_if_needed.
1403 (tui_data_window::refresh_all): Remove call to
1404 erase_data_content.
1405
0670413d
TT
14062019-08-30 Tom Tromey <tom@tromey.com>
1407
1408 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1409 (tui_data_window::display_registers_from)
1410 (tui_data_window::display_reg_element_at_line)
1411 (tui_data_window::display_registers_from_line): Remove checks of
1412 "empty".
1413
18bb55c7
TT
14142019-08-30 Tom Tromey <tom@tromey.com>
1415
1416 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1417 Don't declare.
1418 * tui/tui-regs.c (tui_data_window::show_registers): Call
1419 rerender.
1420 (tui_data_window::rerender): Rename from display_all_data.
1421 (tui_data_window::rerender): Remove old implementation.
1422
1f6d2f10
TT
14232019-08-30 Tom Tromey <tom@tromey.com>
1424
1425 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1426 text.
1427 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1428
16d01f9c
BW
14292019-08-29 Bernhard Wodok <barto@gmx.net>
1430 Sergio Durigan Junior <sergiodj@redhat.com>
1431
1432 PR win32/24284
1433 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1434
d8f27c60
AB
14352019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1436
1437 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1438 when searching for types.
1439
1f20c35e
AB
14402019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1441
1442 * f-lang.c (f_language_defn): Use f_print_typedef.
1443 * f-lang.h (f_print_typedef): Declare.
1444 * f-typeprint.c (f_print_typedef): Define.
1445
550105b7
CB
14462019-08-27 Christian Biesinger <cbiesinger@google.com>
1447
1448 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1449
4acfdd20
AB
14502019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1451
1452 * cli/cli-utils.c (info_print_options_defs): Delete.
1453 (make_info_print_options_def_group): Delete.
1454 (extract_info_print_options): Delete.
1455 (info_print_command_completer): Delete.
1456 (info_print_args_help): Add extra parameter, and optionally
1457 include text about -n flag.
1458 * cli/cli-utils.h (struct info_print_options): Delete.
1459 (extract_info_print_options): Delete declaration.
1460 (info_print_command_completer): Delete declaration.
1461 (info_print_args_help): Add extra parameter, extend header
1462 comment.
1463 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1464 search_symbols.
1465 * stack.c (struct info_print_options): New type.
1466 (info_print_options_defs): New file scoped variable.
1467 (make_info_print_options_def_group): New static function.
1468 (info_print_command_completer): New static function.
1469 (info_locals_command): Update to use new local functions.
1470 (info_args_command): Likewise.
1471 (_initialize_stack): Add extra parameter to calls to
1472 info_print_args_help.
1473 * symtab.c (search_symbols): Add extra parameter, use this to
1474 possibly excluse non-debug symbols.
1475 (symtab_symbol_info): Add extra parameter, which is passed on to
1476 search_symbols.
1477 (struct info_print_options): New type.
1478 (info_print_options_defs): New file scoped variable.
1479 (make_info_print_options_def_group): New static function.
1480 (info_print_command_completer): New static function.
1481 (info_variables_command): Update to use local functions, and pass
1482 extra parameter through to symtab_symbol_info.
1483 (info_functions_command): Likewise.
1484 (info_types_command): Pass additional argument through to
1485 symtab_symbol_info.
1486 (rbreak_command): Pass extra argument to search_symbols.
1487 (_initialize_symtab): Add extra arguments for calls to
1488 info_print_args_help, and update help text for 'info variables',
1489 'whereis', and 'info functions' commands.
1490 * symtab.h (search_symbols): Add extra argument to declaration.
1491 * NEWS: Mention new flags.
1492
9aa55206
CB
14932019-08-26 Christian Biesinger <cbiesinger@google.com>
1494
1495 * symtab.c (lookup_static_symbol): Call the new function (and move
1496 it down to be next to lookup_global_symbol).
1497 (struct global_sym_lookup_data): Add block_enum member and rename to...
1498 (struct global_or_static_sym_lookup_data): ...this.
1499 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1500 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1501 (lookup_symbol_global_or_static_iterator_cb): ...this.
1502 (lookup_global_or_static_symbol): New function.
1503 (lookup_global_symbol): Call new function.
1504
5c31b358
TV
15052019-08-26 Tom de Vries <tdevries@suse.de>
1506
1507 PR c++/24852
1508 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1509 when pc_probe.prob == NULL.
1510
23c13d42
SM
15112019-08-25 Simon Marchi <simon.marchi@efficios.com>
1512
1513 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1514 variable symbol_linkage to symbol_linkage_.
1515
beadd3e8
SM
15162019-08-25 Simon Marchi <simon.marchi@efficios.com>
1517
1518 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1519 represent whether the symbol is static, dynamic, or we don't
1520 know.
1521
e3ec872f
YS
15222019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1523
1524 * gdb/rx-tdep.c (rx_register_names): New.
1525 (rx_register_name): Delete.
1526 (rx_psw_type): Delete.
1527 (rx_fpsw_type): Delete.
1528 (rx_register_type): Delete.
1529 (rx_gdbarch_init): Convert target-descriptions.
1530 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1531 * gdb/features/Makefile: Add rx.xml.
1532 * gdb/features/rx.xml: New.
1533 * gdb/features/rx.c: Generated.
1534 * gdb/NEWS: Mention target description support.
1535
d0509ba4
CB
15362019-08-22 Christian Biesinger <cbiesinger@google.com>
1537
1538 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1539 *slot_ptr.
1540
2d41fa11
SDJ
15412019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1542
1543 * configure.ac: Don't check for 'dlfcn.h' (moved to
1544 gdbsupport/common.m4).
1545 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1546 'gdbsupport/'.
1547 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1548 * compile/compile-c-support.c: Include
1549 'gdbsupport/gdb-dlfcn.h'.
1550 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1551 * gdb-dlfcn.c: Move to...
1552 * gdbsupport/gdb-dlfcn.c: ... here.
1553 * gdb-dlfcn.h: Move to...
1554 * gdbsupport/gdb-dlfcn.h: ... here.
1555
de8af808
SL
15562019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1557
1558 * nios2-tdep.c (struct reg_value): Improve comments. Make
1559 the offset field signed.
1560
27204489
CB
15612019-08-22 Christian Biesinger <cbiesinger@google.com>
1562
1563 * python/lib/gdb/__init__.py (_execute_file): New function.
1564 * python/python.c (python_run_simple_file): Call gdb._execute_file
1565 on Windows.
1566
43771869
AB
15672019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1568
1569 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1570 all uses as this was never set to anything but a zero value.
1571
26c957f1
PA
15722019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1573
1574 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1575
c07aae6e
CB
15762019-08-21 Christian Biesinger <cbiesinger@google.com>
1577
1578 * tui/tui-data.h (tui_gen_win_info): Add an =default
1579 move constructor, required by some GCC versions.
1580
3960cb7a
JF
15812019-08-21 Jinke Fan <fanjinke51@yeah.net>
1582
1583 * go32-nat.c (go32_sysinfo): Add hygon_p.
1584
04c72a68
TT
15852019-08-20 Tom Tromey <tom@tromey.com>
1586
1587 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1588 line_from_reg_element_no, first_reg_element_no_inline,
1589 display_all_data, delete_data_content_windows,
1590 erase_data_content>: Now private.
1591
072272ce
TT
15922019-08-20 Tom Tromey <tom@tromey.com>
1593
1594 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1595 (tui_unhighlight_win, tui_highlight_win)
1596 (tui_win_info::make_window): Update.
1597 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1598
973961bd
TT
15992019-08-20 Tom Tromey <tom@tromey.com>
1600
1601 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1602 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1603 (MAX_PID_WIDTH): Move to tui-stack.c.
1604 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1605 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1606 (MAX_PID_WIDTH): Move from tui-data.h.
1607
ab0e1f1a
TT
16082019-08-20 Tom Tromey <tom@tromey.com>
1609
1610 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1611 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1612 (box_win): Update.
1613 (tui_gen_win_info::make_window): Rename from tui_make_window.
1614 (tui_win_info::make_window): New method.
1615 (tui_gen_win_info::make_visible): Update.
1616 * tui/tui-source.c (tui_source_window::set_contents): Update.
1617 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1618 (tui_data_window::display_registers_from): Update.
1619 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1620 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1621 Declare.
1622 <can_box>: Remove.
1623 <title>: Remove.
1624 (struct tui_win_info) <make_window>: Declare.
1625 <can_box>: Now virtual.
1626 <title>: New member.
1627 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1628 * tui/tui-command.c (tui_cmd_window::resize): Update.
1629
100c2bf3
TT
16302019-08-20 Tom Tromey <tom@tromey.com>
1631
1632 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1633 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1634 (tui_data_window::check_register_values): Update.
1635
fa4dc567
TT
16362019-08-20 Tom Tromey <tom@tromey.com>
1637
1638 * tui/tui-regs.h (struct tui_data_window): Use
1639 DISABLE_COPY_AND_ASSIGN.
1640 <regs_content>: Change type, removing unique_ptr.
1641 <tui_data_window>: Add move constructor.
1642 * tui/tui-regs.c (tui_data_window::show_registers)
1643 (tui_data_window::show_register_group)
1644 (tui_data_window::display_registers_from)
1645 (tui_data_window::display_registers_from)
1646 (tui_data_window::first_data_item_displayed)
1647 (tui_data_window::delete_data_content_windows)
1648 (tui_data_window::rerender, tui_data_window::refresh_window)
1649 (tui_data_window::check_register_values): Update.
1650
ca02d7c8
TT
16512019-08-20 Tom Tromey <tom@tromey.com>
1652
1653 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1654 show_register_group>: Declare.
1655 (tui_show_register_group): Don't declare.
1656 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1657 tui_show_registers.
1658 (tui_data_window::show_register_group): Rename from
1659 tui_show_register_group.
1660 (tui_data_window::check_register_values, tui_reg_command):
1661 Update.
1662 * tui/tui-layout.c (tui_set_layout): Update.
1663
63356bfd
TT
16642019-08-20 Tom Tromey <tom@tromey.com>
1665
1666 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1667 Declare.
1668 (tui_check_register_values): Don't declare.
1669 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1670 from tui_check_register_values.
1671 * tui/tui-hooks.c (tui_register_changed): Update.
1672
42cc14a7
TT
16732019-08-20 Tom Tromey <tom@tromey.com>
1674
1675 * tui/tui-regs.c (tui_reg_layout): Move later.
1676 (tui_show_registers): Don't enable TUI mode or change layout.
1677
b9ad3686
TT
16782019-08-20 Tom Tromey <tom@tromey.com>
1679
1680 * tui/tui-regs.h (struct tui_data_item_window)
1681 <~tui_data_item_window>: Remove.
1682 <content>: Now a unique_xmalloc_ptr.
1683 * tui/tui-regs.c (tui_register_format): Return a
1684 unique_xmalloc_ptr.
1685 (tui_get_register): Update.
1686 (~tui_data_item_window): Remove.
1687 (tui_data_window::display_registers_from, tui_display_register):
1688 Update.
1689 * tui/tui-io.h (tui_expand_tabs): Update.
1690 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1691 Remove "col" parameter.
1692
8e114aab
TT
16932019-08-20 Tom Tromey <tom@tromey.com>
1694
1695 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1696 field.
1697 * tui/tui-regs.c (~tui_data_item_window): Update.
1698
1a4f81dd
TT
16992019-08-20 Tom Tromey <tom@tromey.com>
1700
1701 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1702 earlier.
1703
0f8d8876
TT
17042019-08-20 Tom Tromey <tom@tromey.com>
1705
1706 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1707
605dc2c2
TT
17082019-08-20 Tom Tromey <tom@tromey.com>
1709
1710 * tui/tui-source.h (struct tui_source_window): Update.
1711 * tui/tui-regs.c (tui_show_registers): Update.
1712 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1713 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1714 (NO_REGS_STRING): Remove defines.
1715
aedbe3bb
CM
17162019-08-20 Conrad Meyer <cem@FreeBSD.org>
1717
1718 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1719 unnecessary thread walk if remote doesn't support the packet.
1720
7ce8f214
TT
17212019-08-19 Tom Tromey <tromey@adacore.com>
1722
1723 * python/py-value.c (value_has_field): Fix indentation.
1724
f21c2bd7
TT
17252019-08-19 Tom Tromey <tromey@adacore.com>
1726
1727 * printcmd.c (do_one_display, info_display_command): Update.
1728 * block.h (contained_in): Return bool. Add allow_nested
1729 parameter.
1730 * block.c (contained_in): Return bool. Add allow_nested
1731 parameter.
1732
d806ea2d
TT
17332019-08-19 Tom Tromey <tom@tromey.com>
1734
1735 * configure: Rebuild.
1736 * configure.ac: Disallow the combination of -static-libstdc++ and
1737 source highlight.
1738 * source-cache.c (get_language_name): Handle rust.
1739 (source_cache::get_source_lines): Ignore highlighting exceptions.
1740
398fdd60
TT
17412019-08-16 Tom Tromey <tom@tromey.com>
1742
1743 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1744 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1745 (struct tui_source_window_base) <make_visible, refresh_window,
1746 resize>: Remove methods.
1747 <execution_info>: Remove field.
1748 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1749 (tui_show_source_line, tui_source_window_base)
1750 (~tui_source_window_base): Update.
1751 (tui_source_window_base::resize)
1752 (tui_source_window_base::make_visible)
1753 (tui_source_window_base::refresh_window): Remove.
1754 (tui_source_window_base::update_exec_info): Update.
1755 * tui/tui-source.c (tui_source_window::set_contents): Update.
1756 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1757
e699d331
TT
17582019-08-16 Tom Tromey <tom@tromey.com>
1759
1760 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1761 deprecated_query_hook.
1762
bb01dbfc
TT
17632019-08-16 Tom Tromey <tom@tromey.com>
1764
1765 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1766 (tui_update_source_windows_with_line): Update.
1767 * tui/tui-source.h (struct tui_source_window)
1768 <show_symtab_source>: Declare.
1769 (tui_show_symtab_source): Don't declare.
1770 * tui/tui-source.c (tui_show_symtab_source): Rename from
1771 tui_show_symtab_source.
1772
81c82c4b
TT
17732019-08-16 Tom Tromey <tom@tromey.com>
1774
1775 * tui/tui-winsource.h (struct tui_source_window_base)
1776 <set_contents>: Declare.
1777 * tui/tui-winsource.c
1778 (tui_source_window_base::update_source_window_as_is): Update.
1779 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1780 Declare.
1781 (tui_set_source_content): Don't declare.
1782 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1783 tui_set_source_content.
1784 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1785 Declare.
1786 (tui_set_disassem_content): Don't declare.
1787 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1788 tui_set_disassem_content.
1789
2ddaf614
TT
17902019-08-16 Tom Tromey <tom@tromey.com>
1791
1792 * tui/tui-winsource.h (struct tui_source_window_base)
1793 <update_breakpoint_info>: Declare.
1794 (tui_update_breakpoint_info): Don't declare.
1795 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1796 (tui_update_all_breakpoint_info): Update.
1797 (tui_source_window_base::update_breakpoint_info): Rename from
1798 tui_update_breakpoint_info.
1799 (tui_source_window_base::update_exec_info): Update.
1800
017f9828
TT
18012019-08-16 Tom Tromey <tom@tromey.com>
1802
1803 * tui/tui-winsource.h (struct tui_source_window_base)
1804 <update_source_window>: Declare.
1805 (tui_update_source_window): Don't declare.
1806 * tui/tui-winsource.c
1807 (tui_source_window_base::update_source_window): Rename from
1808 tui_update_source_window.
1809 (tui_source_window_base::rerender): Update.
1810 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1811 * tui/tui-disasm.c (tui_show_disassem)
1812 (tui_show_disassem_and_update_source)
1813 (tui_disasm_window::maybe_update): Update.
1814
ed8358e9
TT
18152019-08-16 Tom Tromey <tom@tromey.com>
1816
1817 * tui/tui-winsource.h (struct tui_source_window_base)
1818 <update_source_window_as_is>: Declare.
1819 (tui_update_source_window_as_is): Don't declare.
1820 * tui/tui-winsource.c (tui_update_source_window): Update
1821 (tui_source_window_base::update_source_window_as_is): Rename from
1822 tui_update_source_window_as_is.
1823 (tui_source_window_base::refill): Update.
1824 * tui/tui-source.c (tui_show_symtab_source): Update.
1825 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1826 Update.
1827
20149b6b
TT
18282019-08-16 Tom Tromey <tom@tromey.com>
1829
1830 * tui/tui-winsource.h (tui_update_source_window)
1831 (tui_update_source_window_as_is): Remove "noerror" parameter.
1832 * tui/tui-winsource.c (tui_update_source_window)
1833 (tui_update_source_window_as_is): Remove "noerror" parameter.
1834 (tui_update_source_windows_with_addr)
1835 (tui_update_source_windows_with_line)
1836 (tui_source_window_base::rerender)
1837 (tui_source_window_base::refill): Update.
1838 * tui/tui-source.h (tui_set_source_content)
1839 (tui_show_symtab_source): Remove "noerror" parameter.
1840 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1841 parameter.
1842 (tui_show_symtab_source): Likewise.
1843 (tui_source_window::maybe_update): Update.
1844 * tui/tui-disasm.c (tui_show_disassem)
1845 (tui_show_disassem_and_update_source)
1846 (tui_disasm_window::do_scroll_vertical)
1847 (tui_disasm_window::maybe_update): Update.
1848
2d83e710
TT
18492019-08-16 Tom Tromey <tom@tromey.com>
1850
1851 * tui/tui.c (tui_is_window_visible): Update.
1852 * tui/tui-wingeneral.c (tui_make_window)
1853 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1854 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1855 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1856 (tui_set_win_height_command, parse_scrolling_args): Update.
1857 * tui/tui-source.c (tui_source_window::style_changed): Update.
1858 * tui/tui-regs.c (tui_show_registers)
1859 (tui_data_window::first_data_item_displayed)
1860 (tui_data_window::delete_data_content_windows)
1861 (tui_check_register_values, tui_reg_command): Update.
1862 * tui/tui-disasm.c (tui_show_disassem): Update.
1863 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1864 method.
1865 <is_visible>: Remove field.
1866 * tui/tui-data.c (tui_next_win, tui_prev_win)
1867 (tui_delete_invisible_windows): Update.
1868
d4ab829a
TT
18692019-08-16 Tom Tromey <tom@tromey.com>
1870
1871 * tui/tui-winsource.h (struct tui_source_window_base)
1872 <m_has_locator>: Remove.
1873 * tui/tui-layout.c (show_source_disasm_command, show_data)
1874 (show_source_or_disasm_and_command): Update.
1875
aa7ca1bb
AH
18762019-08-16 Alan Hayward <alan.hayward@arm.com>
1877
1878 * NEWS (Other MI changes): New subsection.
1879 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1880 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1881 * arch-utils.c (default_get_pc_address_flags): New function.
1882 * arch-utils.h (default_get_pc_address_flags): New declaration.
1883 * gdbarch.sh: Add get_pc_address_flags.
1884 * gdbarch.c: Regenerate.
1885 * gdbarch.h: Likewise.
1886 * stack.c (print_pc): New function.
1887 (print_frame_info) (print_frame): Call print_pc.
1888
6eac171f
TV
18892019-08-16 Tom de Vries <tdevries@suse.de>
1890
1891 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1892 print_objfile_section_info.
1893
3df505f6
TT
18942019-08-15 Tom Tromey <tom@tromey.com>
1895
1896 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1897 calling update_cmdwin_start_line.
1898 * tui/tui-winsource.h (struct tui_source_window_base)
1899 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1900 <rerender>: Declare.
1901 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1902 Call rerender.
1903 (tui_source_window_base::set_new_height): Remove.
1904 (tui_source_window_base::rerender): Rename from
1905 do_make_visible_with_new_height.
1906 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1907 resize method.
1908 (tui_win_info::make_invisible_and_set_new_height)
1909 (tui_win_info::make_visible_with_new_height): Remove.
1910 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1911 Declare.
1912 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1913 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1914 do_make_visible_with_new_height>: Don't declare.
1915 <rerender>: Declare.
1916 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1917 set_new_height.
1918 (tui_data_window::do_make_visible_with_new_height): Remove.
1919 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1920 call tui_show_locator_content.
1921 (tui_gen_win_info::resize): Call rerender.
1922 (show_source_or_disasm_and_command): Don't call
1923 tui_show_locator_content.
1924 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1925 method.
1926 (struct tui_win_info) <rerender>: Declare.
1927 <set_new_height, make_invisible_and_set_new_height,
1928 make_visible_with_new_height>: Don't declare.
1929 * tui/tui-data.c (tui_win_list::rerender): New method.
1930 * tui/tui-command.h (struct tui_cmd_window)
1931 <do_make_visible_with_new_height>: Don't declare.
1932 * tui/tui-command.c
1933 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1934
272560b5
TT
19352019-08-15 Tom Tromey <tromey@adacore.com>
1936
1937 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1938 * ada-lang.c (ada_enum_name): Likewise.
1939
08235187
CB
19402019-08-15 Christian Biesinger <cbiesinger@google.com>
1941
1942 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1943 leading underscore.
1944 (GdbOutputErrorFile): Likewise.
1945 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1946 accordingly.
1947 (execute_unwinders): Rename to have a leading underscore.
1948 (auto_load_packages): Likewise.
1949 (global scope): Adjust call to auto_load_packages accordingly.
1950 (GdbSetPythonDirectory): Likewise.
1951 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1952 instead of execute_unwinders.
1953
db502012
TT
19542019-08-15 Tom Tromey <tom@tromey.com>
1955
1956 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1957 (show_data): Don't change window visibility.
1958 (tui_gen_win_info::resize): Remove special case for command
1959 window. Use wresize, when available.
1960 (show_source_or_disasm_and_command): Don't change window
1961 visibility.
1962 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1963 <make_visible>: New method.
1964 * tui/tui-command.c (tui_cmd_window::resize): New method.
1965
3891b65e
TT
19662019-08-15 Tom Tromey <tom@tromey.com>
1967
1968 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1969 (struct tui_source_windows): New.
1970 * tui/tui-winsource.c (tui_display_main): Update.
1971 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1972 (new_height_ok, parse_scrolling_args): Update.
1973 * tui/tui-layout.c (show_layout, show_data): Update.
1974 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1975 (tui_add_to_source_windows): Don't declare.
1976 * tui/tui-data.c (source_windows, tui_source_windows)
1977 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1978
ee556432
TT
19792019-08-15 Tom Tromey <tom@tromey.com>
1980
1981 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1982 Rename from reset.
1983 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1984 * tui/tui-layout.c (show_source_disasm_command, show_data):
1985 Update.
1986 (tui_gen_win_info::resize): Rename.
1987 (show_source_or_disasm_and_command): Update.
1988 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1989 reset.
1990
46f438e3
TT
19912019-08-15 Tom Tromey <tom@tromey.com>
1992
1993 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1994 * tui/tui-interp.c (tui_interp::init): Don't call
1995 tui_initialize_static_data.
1996 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1997
f4ce562c
TT
19982019-08-15 Tom Tromey <tom@tromey.com>
1999
2000 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2001 examine tui_win_list.
2002
c398c3d0
TT
20032019-08-15 Tom Tromey <tom@tromey.com>
2004
2005 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2006 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2007 tui_clear_source_content.
2008 (tui_clear_source_content): Remove.
2009 (tui_source_window_base::do_erase_source_content): Hoist call to
2010 content.clear().
2011 * tui/tui-stack.c (tui_show_frame_info): Don't call
2012 tui_clear_source_content.
2013
e25d2004
TT
20142019-08-15 Tom Tromey <tom@tromey.com>
2015
2016 * tui/tui-winsource.h (struct tui_source_window_base)
2017 <do_erase_source_content>: New method.
2018 <erase_source_content>: New method.
2019 (tui_erase_source_content): Don't declare.
2020 * tui/tui-winsource.c (tui_clear_source_content): Update.
2021 (tui_source_window_base::do_erase_source_content): Rename from
2022 tui_erase_source_content.
2023 (tui_source_window_base::show_source_content): Update.
2024 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2025 * tui/tui-source.h (struct tui_source_window)
2026 <erase_source_content>: New method.
2027 * tui/tui-disasm.h (struct tui_disasm_window)
2028 <erase_source_content>: New method.
2029
002f15c2
TT
20302019-08-15 Tom Tromey <tom@tromey.com>
2031
2032 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2033 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2034 constructor.
2035 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2036 * tui/tui-source.c (tui_set_source_content): Update.
2037 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2038
c9033fe8
TT
20392019-08-15 Tom Tromey <tom@tromey.com>
2040
2041 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2042 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2043 tui-source.c.
2044 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2045 Declare.
2046 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2047 method.
2048 (tui_source_window::maybe_update): Update.
2049
088f37dd
TT
20502019-08-15 Tom Tromey <tom@tromey.com>
2051
2052 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2053 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2054 tui-disasm.c.
2055 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2056 Declare.
2057 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2058 method.
2059 (tui_disasm_window::maybe_update): Update.
2060
a54700c6
TT
20612019-08-15 Tom Tromey <tom@tromey.com>
2062
2063 * tui/tui-winsource.h (struct tui_source_window_base)
2064 <maybe_update>: Declare.
2065 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2066 method.
2067 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2068 Declare.
2069 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2070 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2071 Declare.
2072 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2073
e2a678a5
TT
20742019-08-15 Tom Tromey <tom@tromey.com>
2075
2076 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2077
f2dda477
TT
20782019-08-15 Tom Tromey <tom@tromey.com>
2079
2080 * tui/tui-wingeneral.c: Include tui-stack.h.
2081 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2082 (struct tui_locator_window): Move from tui-data.h.
2083 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2084 (tui_initialize_static_data): Move from tui-data.c.
2085 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2086 (struct tui_locator_window): Move to tui-stack.c.
2087 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2088 (tui_initialize_static_data): Move to tui-stack.c.
2089
ed4a1084
TT
20902019-08-15 Tom Tromey <tom@tromey.com>
2091
2092 * tui/tui-layout.c (show_source_disasm_command)
2093 (show_source_or_disasm_and_command): Use make_visible method, not
2094 tui_make_window.
2095 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2096 Remove.
2097
65962b20
TT
20982019-08-15 Tom Tromey <tom@tromey.com>
2099
2100 * tui/tui-wingeneral.h (tui_make_window): Update.
2101 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2102 parameter.
2103 (tui_gen_win_info::make_visible): Update.
2104 * tui/tui-regs.c (tui_data_window::display_registers_from):
2105 Update.
2106 * tui/tui-layout.c (show_source_disasm_command)
2107 (show_source_or_disasm_and_command): Update.
2108 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2109 (enum tui_box): Remove.
2110 (struct tui_win_info) <can_box>: New method.
2111 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2112 method.
2113
2208ee91
TV
21142019-08-15 Tom de Vries <tdevries@suse.de>
2115
2116 * linux-nat-trad.c: Include gdbarch.h.
2117
75faf5c4
AH
21182019-08-14 Alan Hayward <alan.hayward@arm.com>
2119
2120 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2121 register sizes.
2122
b1c896b3
TT
21232019-08-14 Tom Tromey <tromey@adacore.com>
2124
2125 * darwin-nat.c: Include gdbarch.h.
2126 * darwin-nat-info.c: Include gdbarch.h.
2127
6405cd73
TT
21282019-08-13 Tom Tromey <tom@tromey.com>
2129
2130 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2131 Remove.
2132 * tui/tui-data.c (tui_initialize_static_data): Update.
2133
5216580d
TT
21342019-08-13 Tom Tromey <tom@tromey.com>
2135
2136 * tui/tui-winsource.h (struct tui_exec_info_window)
2137 <~tui_exec_info_window, maybe_allocate_content, get_content,
2138 m_content>: Remove.
2139 (struct tui_source_window_base) <set_exec_info_content,
2140 show_exec_info_content>: Don't declare.
2141 * tui/tui-winsource.c
2142 (tui_exec_info_window::maybe_allocate_content): Remove.
2143 (tui_source_window_base::update_exec_info): Rename from
2144 set_exec_info_content.
2145 (tui_source_window_base::show_exec_info_content)
2146 (tui_source_window_base::update_exec_info): Remove.
2147
93858ad3
TT
21482019-08-13 Tom Tromey <tom@tromey.com>
2149
2150 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2151 declare.
2152 * tui/tui-winsource.c (tui_update_source_window_as_is)
2153 (tui_update_source_windows_with_addr, tui_erase_source_content):
2154 Update.
2155 (tui_clear_exec_info_content): Remove.
2156
e321e7ce
TT
21572019-08-13 Tom Tromey <tom@tromey.com>
2158
2159 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2160 declare.
2161 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2162 call tui_erase_exec_info_content.
2163 (tui_clear_exec_info_content): Rename from
2164 tui_erase_exec_info_content.
2165 (tui_clear_exec_info_content): Delete.
2166
8270ac62
TT
21672019-08-13 Tom Tromey <tom@tromey.com>
2168
2169 * tui/tui-winsource.h (struct tui_source_window_base)
2170 <show_exec_info_content>: Declare.
2171 (tui_show_exec_info_content): Don't declare.
2172 * tui/tui-winsource.c
2173 (tui_source_window_base::show_exec_info_content): Rename from
2174 tui_show_exec_info_content.
2175 (tui_source_window_base::update_exec_info): Update.
2176
7b56485d
TT
21772019-08-13 Tom Tromey <tom@tromey.com>
2178
2179 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2180 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2181 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2182 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2183 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2184 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2185 ... here.
2186
7ba913dc
TT
21872019-08-13 Tom Tromey <tom@tromey.com>
2188
2189 * tui/tui-winsource.h (struct tui_source_window_base)
2190 <update_exec_info>: Declare.
2191 (tui_update_exec_info): Don't declare.
2192 * tui/tui-winsource.c (tui_update_source_window_as_is)
2193 (tui_source_window_base::refresh_all)
2194 (tui_update_all_breakpoint_info): Update.
2195 (tui_source_window_base::update_exec_info): Rename from
2196 tui_update_exec_info.
2197 * tui/tui-stack.c (tui_show_frame_info): Update.
2198
37a4a131
TT
21992019-08-13 Tom Tromey <tom@tromey.com>
2200
2201 * tui/tui-winsource.h (struct tui_source_window_base)
2202 <set_exec_info_content>: Declare.
2203 (tui_set_exec_info_content): Don't declare.
2204 * tui/tui-winsource.c
2205 (tui_source_window_base::set_exec_info_content): Rename from
2206 tui_set_exec_info_content.
2207 (tui_update_exec_info): Update.
2208
0bd27e07
TT
22092019-08-13 Tom Tromey <tom@tromey.com>
2210
2211 * tui/tui-winsource.h (struct tui_source_window_base)
2212 <show_source_content>: Declare.
2213 (tui_show_source_content): Don't declare.
2214 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2215 (tui_source_window_base::show_source_content): Rename from
2216 tui_show_source_content.
2217 (tui_source_window_base::refresh_all): Update.
2218 * tui/tui-layout.c (show_source_disasm_command)
2219 (show_source_or_disasm_and_command): Update.
2220
b4ef5aeb
TT
22212019-08-13 Tom Tromey <tom@tromey.com>
2222
2223 * tui/tui-winsource.c (tui_erase_source_content)
2224 (tui_show_source_content, tui_source_window_base::refresh_all):
2225 Update.
2226 * tui/tui-wingeneral.h
2227 (tui_check_and_display_highlight_if_needed): Don't declare.
2228 * tui/tui-wingeneral.c
2229 (tui_win_info::check_and_display_highlight_if_needed): Rename from
2230 check_and_display_highlight_if_needed.
2231 * tui/tui-win.c (tui_rehighlight_all)
2232 (tui_win_info::make_visible_with_new_height): Update.
2233 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2234 (tui_data_window::erase_data_content)
2235 (tui_data_window::display_all_data): Update.
2236 * tui/tui-data.h (struct tui_win_info)
2237 <check_and_display_highlight_if_needed>: Declare.
2238
fede5273
TT
22392019-08-13 Tom Tromey <tom@tromey.com>
2240
2241 * tui/tui-win.c (tui_resize_all): Call
2242 tui_delete_invisible_windows.
2243 * tui/tui-layout.c (show_layout): Call
2244 tui_delete_invisible_windows.
2245 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2246 * tui/tui-data.c (tui_delete_invisible_windows): New function.
2247
22c3f490
TT
22482019-08-13 Tom Tromey <tom@tromey.com>
2249
2250 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
2251 tui_add_win_to_layout.
2252
16cb7910
TT
22532019-08-13 Tom Tromey <tom@tromey.com>
2254
2255 * tui/tui-layout.h (tui_default_win_height): Don't declare.
2256 * tui/tui-layout.c (tui_default_win_height): Now static.
2257
cc0c3ffb
TT
22582019-08-13 Tom Tromey <tom@tromey.com>
2259
2260 * tui/tui-layout.c (show_layout): Unify all layout cases into a
2261 single switch.
2262 (show_source_disasm_command, show_source_or_disasm_and_command):
2263 Don't check current layout.
2264
3f3ffe54
TT
22652019-08-13 Tom Tromey <tom@tromey.com>
2266
2267 * tui/tui-wingeneral.c (make_all_visible): Remove.
2268 (tui_make_all_invisible): Simplify.
2269 * tui/tui-layout.c (tui_make_all_invisible): Move from
2270 tui-wingeneral.c; simplify.
2271 (show_layout): Hoist call to tui_make_all_invisible.
2272 (show_data): Don't call tui_make_all_invisible.
2273
69258091
TT
22742019-08-13 Tom Tromey <tom@tromey.com>
2275
2276 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
2277 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
2278
62cf57fe
TT
22792019-08-13 Tom Tromey <tom@tromey.com>
2280
2281 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
2282 tui-data.c.
2283 (show_source_disasm_command, show_data)
2284 (show_source_or_disasm_and_command): Don't use
2285 tui_set_current_layout_to.
2286 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
2287 * tui/tui-data.c (current_layout, tui_current_layout): Move to
2288 tui-layout.c.
2289 (tui_set_current_layout_to): Remove.
2290
2afade5d
TT
22912019-08-13 Tom Tromey <tom@tromey.com>
2292
2293 * tui/tui-layout.c (tui_set_layout): Update.
2294 * tui/tui-data.h (struct tui_layout_def): Remove.
2295 (tui_layout_def): Don't declare.
2296 * tui/tui-data.c (layout_def): Remove.
2297 (tui_layout_def): Remove.
2298
a3504e96
TT
22992019-08-13 Tom Tromey <tom@tromey.com>
2300
2301 * tui/tui-winsource.h (struct tui_source_window_base)
2302 <clear_detail>: No longer "override".
2303 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
2304 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
2305 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
2306 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
2307 Remove.
2308 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
2309
29c92911
TT
23102019-08-13 Tom Tromey <tromey@adacore.com>
2311
2312 * tracepoint.c: Don't include readline.h or history.h.
2313
86c6b807
TT
23142019-08-12 Tom Tromey <tom@tromey.com>
2315
2316 * configure: Rebuild.
2317 * configure.ac: Check for readline 7.
2318 * NEWS: Mention readline 7 requirement.
2319 * README: Update.
2320
5db2718c
TT
23212019-08-12 Tom Tromey <tom@tromey.com>
2322
2323 * mingw-hdep.c (gdb_select): Remove readline hack.
2324
dac36daf
PFC
23252019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2326
2327 * blockframe.c (find_pc_partial_function): Set *block to nullptr
2328 when the function fails.
2329
1022c627
AA
23302019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2331
2332 * s390-tdep.c (s390_type_align): New function.
2333 (s390_gdbarch_init): Set it as type_align gdbarch method.
2334
eba4caf2
TV
23352019-08-09 Tom de Vries <tdevries@suse.de>
2336
2337 PR gdb/24591
2338 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2339 pc_low with relocation offset.
2340
123cd851
TT
23412019-08-07 Tom Tromey <tromey@adacore.com>
2342
2343 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2344 (print_frame_args): Update.
2345 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2346 Update.
2347 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2348 * frame.h (struct frame_arg): Add initializers.
2349 <error>: Now a unique_xmalloc_ptr.
2350
3d31bc39
AH
23512019-08-07 Alan Hayward <alan.hayward@arm.com>
2352
2353 * NEWS: Expand the Pointer Authentication entry.
2354 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2355 (aarch64_frame_unmask_lr): ... to this.
2356 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2357 Call aarch64_frame_unmask_lr.
2358 * frame.c (struct frame_info): Add "masked" variable.
2359 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2360 (fprint_frame): Check for masked pc.
2361 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2362 declarations.
2363 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2364 * stack.c (print_frame): Check for masked pc.
2365
0cf9feb9
TT
23662019-08-06 Tom Tromey <tom@tromey.com>
2367
2368 * stabsread.c (patch_block_stabs, read_one_struct_field)
2369 (read_enum_type): Use obstack_strndup.
2370 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2371 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2372 * dwarf2read.c (guess_full_die_structure_name)
2373 (anonymous_struct_prefix): Use obstack_strndup.
2374 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2375 * c-exp.y (yylex): Use obstack_strndup.
2376 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2377 (write_var_or_type): Use obstack_strndup.
2378
efba19b0
TT
23792019-08-06 Tom Tromey <tom@tromey.com>
2380
2381 * symfile.c (reread_symbols): Use obstack_strdup.
2382 * stabsread.c (read_type): Use obstack_strdup.
2383 * gdb_obstack.h (obstack_strdup): New overload.
2384 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2385 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2386 (dwarf2_canonicalize_name): Use obstack_strdup.
2387 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2388 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2389 Use obstack_strdup.
2390
f25102f7
TT
23912019-08-06 Tom Tromey <tom@tromey.com>
2392
2393 * gdb_obstack.h (obstack_strdup): Define.
2394 * gdb_obstack.c (obstack_strdup): Don't define.
2395
021887d8
TT
23962019-08-06 Tom Tromey <tom@tromey.com>
2397
2398 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2399 obstack_strdup.
2400 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2401 obstack_strdup.
2402 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2403 * stabsread.c (common_block_start): Use obstack_strdup.
2404 * objfiles.c (set_objfile_main_name, objfile): Use
2405 obstack_strdup.
2406 * namespace.c (add_using_directive): Use obstack_strdup.
2407 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2408 * jit.c (finalize_symtab): Use obstack_strdup.
2409 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2410 (guess_partial_die_structure_name, partial_die_info::fixup)
2411 (dwarf2_name): Use obstack_strdup.
2412 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2413 obstack_strdup.
2414 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2415 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2416 obstack_strdup.
2417 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2418
d2834edc
PW
24192019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2420
2421 * unittests/help-doc-selftests.c: New file.
2422 * Makefile.in: Add the new file.
2423
590042fc
PW
24242019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2425
2426 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2427 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2428 the full first line, except when FOR_VALUE_PREFIX. In this case,
2429 the trailing '.' is not output, and the first character is uppercased.
2430 (print_help_for_command): Update call to print_doc_line.
2431 (print_doc_of_command): Likewise.
2432 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2433 * cli/cli-option.c (append_indented_doc): Do not append newline.
2434 (build_help_option): Append newline after first appended_indented_doc
2435 only if a second call is done.
2436 (build_help): Append 2 new lines before each option, except the first
2437 one.
2438 * compile/compile.c (_initialize_compile): Add new lines after
2439 %OPTIONS%, when not at the end of the help.
2440 Change help doc or code
2441 producing the help doc to respect the invariants.
2442 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2443 Also removed the new line after 'Options:', as all other commands
2444 do not put an empty line between 'Options:' and the first option.
2445 * printcmd.c (_initialize_printcmd): Likewise.
2446 * stack.c (_initialize_stack): Likewise.
2447 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2448 incorrectly telling COMMAND is optional.
2449 * ada-lang.c (_initialize_ada_language): Change help doc or code
2450 producing the help doc to respect the invariants.
2451 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2452 * breakpoint.c (_initialize_breakpoint): Likewise.
2453 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2454 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2455 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2456 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2457 _initialize_cli_style): Likewise.
2458 * corelow.c (core_target_info): Likewise.
2459 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2460 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2461 * filesystem.c (_initialize_filesystem): Likewise.
2462 * frame.c (_initialize_frame): Likewise.
2463 * gnu-nat.c (add_task_commands): Likewise.
2464 * infcall.c (_initialize_infcall): Likewise.
2465 * infcmd.c (_initialize_infcmd): Likewise.
2466 * interps.c (_initialize_interpreter): Likewise.
2467 * language.c (_initialize_language): Likewise.
2468 * linux-fork.c (_initialize_linux_fork): Likewise.
2469 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2470 * maint.c (_initialize_maint_cmds): Likewise.
2471 * memattr.c (_initialize_mem): Likewise.
2472 * printcmd.c (_initialize_printcmd): Likewise.
2473 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2474 _RegEx): Likewise.
2475 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2476 * record-btrace.c (_initialize_record_btrace): Likewise.
2477 * record-full.c (_initialize_record_full): Likewise.
2478 * record.c (_initialize_record): Likewise.
2479 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2480 * regcache.c (_initialize_regcache): Likewise.
2481 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2482 _initialize_remote): Likewise.
2483 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2484 * serial.c (_initialize_serial): Likewise.
2485 * skip.c (_initialize_step_skip): Likewise.
2486 * source.c (_initialize_source): Likewise.
2487 * stack.c (_initialize_stack): Likewise.
2488 * symfile.c (_initialize_symfile): Likewise.
2489 * symtab.c (_initialize_symtab): Likewise.
2490 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2491 * top.c (init_main): Likewise.
2492 * tracefile-tfile.c (tfile_target_info): Likewise.
2493 * tracepoint.c (_initialize_tracepoint): Likewise.
2494 * tui/tui-win.c (_initialize_tui_win): Likewise.
2495 * utils.c (add_internal_problem_command): Likewise.
2496 * valprint.c (value_print_option_defs): Likewise.
2497
404f2902
FCE
24982019-08-06 Frank Ch. Eigler <fche@redhat.com>
2499
2500 PR build/24886
2501 * configure.ac: Drop enable-libmcheck support.
2502 * configure, config.in: Rebuild.
2503 * libmcheck.m4: Remove.
2504 * acinclude.m4: Don't include it.
2505 * Makefile.in: Don't distribute it.
2506 * top.c (print_gdb_configuration): Don't mention it.
2507
046bebe1
TT
25082019-08-06 Tom Tromey <tom@tromey.com>
2509
2510 * utils.c (set_output_style): Sometimes pass stream to
2511 emit_style_escape.
2512 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2513 * record-btrace.c (btrace_insn_history): Update.
2514 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2515 method.
2516 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2517 Update initializers.
2518 <m_uiout>: New field.
2519 <m_di>: Move lower.
2520 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2521 Remove "uiout" parameter.
2522 (dump_insns): Update.
2523 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2524 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2525
ddbcedf5
CB
25262019-08-06 Christian Biesinger <cbiesinger@google.com>
2527
2528 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2529 (error_in_psymtab_expansion): Likewise.
2530 (lookup_symbol_via_quick_fns): Likewise.
2531 (basic_lookup_transparent_type_quick): Likewise.
2532 (basic_lookup_transparent_type_1): Likewise.
2533
b08b16c8
TT
25342019-08-06 Tom Tromey <tromey@adacore.com>
2535
2536 * source.c (last_source_error): Now bool.
2537 (print_source_lines_base): Make "noprint" bool. Only open
2538 source file when last_source_visited changes.
2539
cb44333d
TT
25402019-08-06 Tom Tromey <tromey@adacore.com>
2541
2542 * annotate.c (annotate_source_line): Use g_source_cache.
2543 * source-cache.c (source_cache::get_plain_source_lines): Change
2544 parameters. Populate m_offset_cache.
2545 (source_cache::ensure): New method.
2546 (source_cache::get_line_charpos): New method.
2547 (extract_lines): Move lower. Change parameters.
2548 (source_cache::get_source_lines): Move lower.
2549 * source-cache.h (class source_cache): Update comment.
2550 <get_line_charpos>: New method.
2551 <get_source_lines>: Update comment.
2552 <clear>: Clear m_offset_cache.
2553 <get_plain_source_lines>: Change parameters.
2554 <ensure>: New method
2555 <m_offset_cache>: New member.
2556 * source.c (forget_cached_source_info_for_objfile): Update.
2557 (info_source_command): Use g_source_cache.
2558 (find_source_lines, open_source_file_with_line_charpos): Remove.
2559 (print_source_lines_base, search_command_helper): Use g_source_cache.
2560 * source.h (open_source_file_with_line_charpos): Don't declare.
2561 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2562 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2563 Use g_source_cache.
2564
872dceaa
TT
25652019-08-06 Tom Tromey <tromey@adacore.com>
2566
2567 * source-cache.c (source_cache::get_plain_source_lines):
2568 Remove "first_line" and "last_line" parameters.
2569 (source_cache::get_source_lines): Cache plain text.
2570 * source-cache.h (class source_cache)
2571 <get_plain_source_lines>: Update.
2572
269249d9
TT
25732019-08-06 Tom Tromey <tromey@adacore.com>
2574
2575 * source-cache.c (extract_lines): No longer a method.
2576 Changed type of parameter. Include final newline.
2577 (selftests::extract_lines_test): New function.
2578 (_initialize_source_cache): Likewise.
2579 * source-cache.h (class source_cache)
2580 <extract_lines>: Don't declare.
2581
c0e8dcd8
TT
25822019-08-06 Tom Tromey <tromey@adacore.com>
2583
2584 * breakpoint.c (init_breakpoint_sal): Update.
2585 (breakpoint): Update.
2586 * breakpoint.h (struct breakpoint) <filter>: Now a
2587 unique_xmalloc_ptr.
2588
0b27c27d
CB
25892019-08-05 Christian Biesinger <cbiesinger@google.com>
2590
2591 * NEWS: Mention dictionary access on blocks.
2592 * python/py-block.c (blpy_getitem): New function.
2593 (block_object_as_mapping): New struct.
2594 (block_object_type): Use new struct for tp_as_mapping field.
2595
4ee94178
CB
25962019-08-05 Christian Biesinger <cbiesinger@google.com>
2597
2598 * objfiles.h (objfile): Add a comment describing partial symbols.
2599
8abfcabc
TT
26002019-08-05 Tom Tromey <tromey@adacore.com>
2601
2602 * compile/compile.c (_initialize_compile): Use _(), not N_().
2603 * thread.c (_initialize_thread): Use _(), not N_().
2604 * stack.c (_initialize_stack): Use _(), not N_().
2605 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2606
2b79f376
SM
26072019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2608
2609 * dwarf2read.c (struct dw2_symtab_iterator):
2610 <want_specific_block>: Remove.
2611 <block_index>: Change type to gdb::optional.
2612 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2613 change type of BLOCK_INDEX parameter to gdb::optional.
2614 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2615 (dw2_lookup_symbol): Don't pass argument for
2616 WANT_SPECIFIC_BLOCK.
2617 (dw2_expand_symtabs_for_function): Don't pass argument for
2618 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2619 (class dw2_debug_names_iterator)
2620 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2621 parameter, change BLOCK_INDEX type to gdb::optional.
2622 <m_want_specific_block>: Remove.
2623 <m_block_index>: Change type to gdb::optional.
2624 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2625 gdb::optional. Re-write in function of gdb::optional.
2626 (dw2_debug_names_lookup_symbol): Don't pass argument for
2627 WANT_SPECIFIC_BLOCK.
2628 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2629 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2630 BLOCK_INDEX.
2631
ae60f04e
PW
26322019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2633
2634 * NEWS: Mention changes to "info sources" command.
2635
28cd9371
PW
26362019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2637
2638 * symtab.c (filename_partial_match_opts): New struct type.
2639 (struct output_source_filename_data): New members
2640 regexp, c_regexp, partial_match.
2641 (output_source_filename): Use new members to decide to print file.
2642 (info_sources_option_defs): New variable.
2643 (make_info_sources_options_def_group, print_info_sources_header,
2644 info_sources_command_completer):
2645 New functions.
2646 (info_sources_command): Read new optional arguments.
2647 (_initialize_symtab): Update info sources help.
2648
ca683e3a
AO
26492019-08-02 Alexandre Oliva <oliva@adacore.com>
2650
2651 * ada-lang.c (exception_support_info_v0): Renamed from...
2652 (default_exception_support_info): ... this. Create new
2653 definition for v1.
2654 (ada_has_this_exception_support): Look up catch_handlers_sym.
2655 (ada_exception_support_info_sniffer): Try v0 after default.
2656
f1264162
TT
26572019-08-01 Tom Tromey <tromey@adacore.com>
2658
2659 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2660 gdbarch.h.
2661
0a7b2485
CB
26622019-08-01 Christian Biesinger <cbiesinger@google.com>
2663
2664 * s12z-tdep.c: Fix include path for s12z-opc.h.
2665
c6bdbeb7
AH
26662019-08-01 Alan Hayward <alan.hayward@arm.com>
2667
2668 * NEWS: Require GNU make 3.82.
2669
a2bd7b82
TT
26702019-07-16 Tom Tromey <tom@tromey.com>
2671
2672 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2673 declare.
2674
aa3b6533
TT
26752019-07-30 Tom Tromey <tromey@adacore.com>
2676
2677 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2678
a1530dc7
KB
26792019-07-30 Kevin Buettner <kevinb@redhat.com>
2680
2681 * printcmd.c (print_address_symbolic): Print negative offsets.
2682 (build_address_symbolic): Force signed arithmetic when computing
2683 offset.
2684
2906593f
CB
26852019-07-30 Christian Biesinger <cbiesinger@google.com>
2686
2687 PR/24474: Add a function to lookup static variables.
2688 * NEWS: Mention this new function.
2689 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2690 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2691 * python/python.c (python_GdbMethods): Add new function.
2692
c620ed88
CB
26932019-07-29 Christian Biesinger <cbiesinger@google.com>
2694
2695 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2696 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2697 (objfpy_lookup_static_symbol): New function.
2698 (objfile_object_methods): Add new functions.
2699
bc4268a5
PW
27002019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2701
2702 * NEWS: Mention 'set|show print frame-info'. Mention new
2703 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2704 backtrace argument. Mention that python frame filtering code
2705 is now consistent with what 'backtrace' command prints.
2706
4b5e8d19
PW
27072019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2708
2709 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2710 comments.
2711 (print_frame_info_auto, print_frame_info_source_line,
2712 print_frame_info_location, print_frame_info_source_and_location,
2713 print_frame_info_location_and_address, print_frame_info_short_location):
2714 New declarations.
2715 (struct frame_print_options): New member print_frame_info.
2716 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2717 * stack.h (get_user_print_what_frame_info): New declaration.
2718 (frame_show_address): New declaration.
2719 * stack.c (print_frame_arguments_choices): New value 'presence'.
2720 (print_frame_info_auto, print_frame_info_source_line,
2721 print_frame_info_location, print_frame_info_source_and_location,
2722 print_frame_info_location_and_address, print_frame_info_short_location,
2723 print_frame_info_choices, print_frame_info_print_what): New definitions.
2724 (print_frame_args): Only print dots for args if print frame-arguments
2725 is 'presence'.
2726 (frame_print_option_defs): New element for "frame-info".
2727 (get_user_print_what_frame_info): New function.
2728 (frame_show_address): Make non static. Move comment to stack.h.
2729 (print_frame_info_to_print_what): New function.
2730 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2731 to decide what to print.
2732 (backtrace_command_1): Handle the new print_frame_arguments_presence
2733 value.
2734 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2735 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2736 (py_print_frame): In non-mi mode, use LOCATION as default for
2737 print_what, similarly to frame information printed directly by
2738 backtrace command. Handle frame-info user option in non MI mode.
2739
6bdfee81
KB
27402019-07-27 Kevin Buettner <kevinb@redhat.com>
2741
2742 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2743 Add case for debugging 32-bit target on 64-bit host. Revise
2744 comment.
2745
98a617f8
KB
27462019-07-27 Kevin Buettner <kevinb@redhat.com>
2747
2748 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2749 instead of find_function_entry_range_from_pc.
2750
567238c9
KB
27512019-07-27 Kevin Buettner <kevinb@redhat.com>
2752
2753 * stack.c (find_frame_funname): Remove code which preferred
2754 minsym over symtab sym in "certain pathological cases".
2755
2dc80cf8
KB
2756 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2757 parameter. Change type of "do_demangle" to bool.
2758 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2759 Pass suitable "prefer_sym_over_minsym" flag to
2760 build_address_symbolic(). Don't output "+" for negative offsets.
2761 * printcmd.c (print_address_symbolic): Update invocation of
2762 build_address_symbolic to include a "prefer_sym_over_minsym"
2763 flag.
2764 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2765 Restrict cases in which use of minimal symbol is preferred to that
2766 of a found symbol. Update comments.
2767
1aff7173
KB
2768 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2769 for entry pc when entry pc is out of range for that FDE.
2770
89b085ac
BC
27712019-07-26 Brian Callahan <bcallah@openbsd.org>
2772
2773 PR gdb/24839:
2774 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2775 type.
2776
f32feb4a
CB
27772019-07-25 Christian Biesinger <cbiesinger@google.com>
2778
2779 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2780 this function's Python signature.
2781
2782
27832019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
2784
2785 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2786 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2787 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2788 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2789 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2790
2791
c54e4253
YS
27922019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2793
2794 * h8300-tdep.c (h8300_register_name_common): New.
2795 h8300_register_name): Use h8300_register_name_common.
2796 (h8300s_register_name): Likewise.
2797 (h8300sx_register_name): Likewise.
2798 (h8300h_register_nam): New.
2799 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2800
2801
40eadf04
SP
28022019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2803
2804 * arm-tdep.c (arm_skip_cmse_entry): New function.
2805 (arm_is_sgstubs_section): New function.
2806 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2807
bfa2a36d
TT
28082019-07-22 Tom Tromey <tom@tromey.com>
2809
2810 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2811 Don't self-assign.
2812
a8e9d247
AB
28132019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2814
2815 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2816 type_print.
2817
eb86c5e2
AB
28182019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2819
2820 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2821 so that GDB doesn't match any msymbols when searching in the
2822 TYPES_DOMAIN.
2823 (print_symbol_info): Print using typedef_print or type_print based
2824 on the type of the symbol. Add updated FIXME comment moved from...
2825 (_initialize_symtab): ... move and update FIXME comment to above.
2826
a8eab7c6
AB
28272019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2828
2829 * NEWS: Mention adding -q option to "info types".
2830 * symtab.c (struct info_types_options): New struct.
2831 (info_types_options_defs): New variable.
2832 (make_info_types_options_def_group): New function.
2833 (info_types_command): Use gdb::option framework to parse options.
2834 (info_types_command_completer): New function.
2835 (_initialize_symtab): Extend the help text on "info types" and
2836 register command completer.
2837
b4603c34
CB
28382019-07-21 Christian Biesinger <cbiesinger@google.com>
2839
2840 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2841 (lookup_symbol_in_objfile): Change int to block_enum and add a
2842 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2843
c8cdc1e0
CB
28442019-07-20 Christian Biesinger <cbiesinger@google.com>
2845
2846 * MAINTAINERS (Write After Approval): Add self.
2847
01e175fe
AB
28482019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2849
2850 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2851 instruction to the dummy code region.
2852
56f79b63
TT
28532019-07-19 Tom Tromey <tromey@adacore.com>
2854
2855 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2856 (ARGSUSED, PARAMS, __func__): Remove rules.
2857
4c5aa8e0
AH
28582019-07-19 Alan Hayward <alan.hayward@arm.com>
2859
2860 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2861 * features/arm/arm-with-iwmmxt.c: Remove.
2862 * features/arm/arm-with-iwmmxt.xml: Remove.
2863 * features/arm/arm-with-m-fpa-layout.c: Remove.
2864 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2865 * features/arm/arm-with-m-vfp-d16.c: Remove.
2866 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2867 * features/arm/arm-with-m.c: Remove.
2868 * features/arm/arm-with-m.xml: Remove.
2869 * features/arm/arm-with-neon.c: Remove.
2870 * features/arm/arm-with-neon.xml: Remove.
2871 * features/arm/arm-with-vfpv2.c: Remove.
2872 * features/arm/arm-with-vfpv2.xml: Remove.
2873 * features/arm/arm-with-vfpv3.c: Remove.
2874 * features/arm/arm-with-vfpv3.xml: Remove.
2875
f42b2617
AH
28762019-07-19 Alan Hayward <alan.hayward@arm.com>
2877
2878 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2879
f29ec966
AH
28802019-07-19 Alan Hayward <alan.hayward@arm.com>
2881
2882 * arch/aarch32.c (aarch32_create_target_description): Create
2883 target descriptions using features.
2884 * arch/arm.c (arm_create_target_description)
2885 (arm_create_mprofile_target_description): Likewise.
2886 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2887
d105cce5
AH
28882019-07-19 Alan Hayward <alan.hayward@arm.com>
2889
2890 * Makefile.in: Add new files.
2891 * aarch32-tdep.c: New file.
2892 * aarch32-tdep.h: New file.
2893 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2894 Call aarch32_read_description.
2895 * arch/aarch32.c: New file.
2896 * arch/aarch32.h: New file.
2897 * arch/arm.c (arm_create_target_description)
2898 (arm_create_mprofile_target_description): New function.
2899 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2900 (arm_create_target_description)
2901 (arm_create_mprofile_target_description): New declaration.
2902 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2903 read_description functions.
2904 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2905 Likewise.
2906 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2907 * arm-tdep.c (tdesc_arm_list): New variable.
2908 (arm_register_g_packet_guesses): Call create description functions.
2909 (arm_read_description) (arm_read_mprofile_description): New
2910 function.
2911 * arm-tdep.h (arm_read_description)
2912 (arm_read_mprofile_description): Add declaration.
2913 * configure.tgt: Add new files.
2914
afe09f0b
GL
29152019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2916
2917 * top.c (new_ui_command): Open specified terminal just once.
2918
cd215b2e
TT
29192019-07-18 Tom Tromey <tromey@adacore.com>
2920
2921 * symtab.c (main_name): Constify return type.
2922 * symfile.c (set_initial_language): Update.
2923 * symtab.h (main_name): Constify return type.
2924
d8f68fcb
TT
29252019-07-17 Tom Tromey <tom@tromey.com>
2926
2927 * tui/tui-winsource.c (tui_update_source_window)
2928 (tui_update_source_window_as_is)
2929 (tui_update_source_windows_with_line): Remove return.
2930 * tui/tui-disasm.c (tui_show_disassem)
2931 (tui_show_disassem_and_update_source): Remove return.
2932 * tui/tui.c (tui_reset): Remove return.
2933 * tui/tui-wingeneral.c
2934 (tui_check_and_display_highlight_if_needed): Remove return.
2935
ca5af91e
TT
29362019-07-17 Tom Tromey <tom@tromey.com>
2937
2938 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2939
5104fe36
TT
29402019-07-17 Tom Tromey <tom@tromey.com>
2941
2942 * tui/tui-winsource.h (struct tui_exec_info_window)
2943 (struct tui_source_window_base): Move from tui-data.h.
2944 * tui/tui-winsource.c: Move many method definitions from
2945 elsewhere. Remove "structuring" comments.
2946 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2947 (tui_source_window_base::refresh_window): Move to
2948 tui-winsource.c.
2949 * tui/tui-win.c (tui_source_window_base::refresh_all)
2950 (tui_source_window_base::update_tab_width)
2951 (tui_source_window_base::set_new_height)
2952 (tui_source_window_base::do_make_visible_with_new_height): Move to
2953 tui-winsource.c.
2954 * tui/tui-source.h: Update.
2955 * tui/tui-source.c (tui_source_window_base::reset): Move to
2956 tui-winsource.c.
2957 * tui/tui-disasm.h: Update.
2958 * tui/tui-data.h (struct tui_exec_info_window): Move to
2959 tui-winsource.h.
2960 (struct tui_source_window_base): Likewise.
2961 * tui/tui-data.c (tui_source_window_base::clear_detail)
2962 (tui_source_window_base, ~tui_source_window_base): Move to
2963 tui-winsource.c.
2964
daa15dde
TT
29652019-07-17 Tom Tromey <tom@tromey.com>
2966
2967 * tui/tui-win.c (tui_resize_all)
2968 (tui_source_window_base::update_tab_width)
2969 (tui_adjust_win_heights): Update.
2970 (tui_win_info::make_invisible_and_set_new_height): Rename from
2971 make_invisible_and_set_new_height.
2972 * tui/tui-data.h (struct tui_win_info)
2973 <make_invisible_and_set_new_height>: New method.
2974
bfad4537
TT
29752019-07-17 Tom Tromey <tom@tromey.com>
2976
2977 * tui/tui.c: Update.
2978 * tui/tui-source.h (struct tui_source_window): Move from
2979 tui-data.h.
2980 * tui/tui-layout.c: Update.
2981 * tui/tui-disasm.c: Update.
2982 * tui/tui-data.h (struct tui_source_window): Move to
2983 tui-source.h.
2984
88f7e873
TT
29852019-07-17 Tom Tromey <tom@tromey.com>
2986
2987 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2988 tui-data.h.
2989 * tui/tui-data.h (struct tui_disasm_window): Move to
2990 tui-disasm.h.
2991
96bd6233
TT
29922019-07-17 Tom Tromey <tom@tromey.com>
2993
2994 * tui/tui-regs.h (struct tui_data_item_window): Move from
2995 tui-data.h.
2996 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2997 * tui/tui-data.h (struct tui_data_item_window): Move to
2998 tui-regs.h.
2999 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3000
ce38393b
TT
30012019-07-17 Tom Tromey <tom@tromey.com>
3002
3003 * tui/tui.c: Update.
3004 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3005 (tui_cmd_window::max_height): Move to tui-command.c.
3006 * tui/tui-layout.c: Update.
3007 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3008 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3009 tui-command.c.
3010 * tui/tui-command.h (struct tui_cmd_window): Move from
3011 tui-data.h.
3012 * tui/tui-command.c: Remove "structuring" comments.
3013 (tui_cmd_window::clear_detail)
3014 (tui_cmd_window::do_make_visible_with_new_height)
3015 (tui_cmd_window::max_height): Move from elsewhere.
3016
2d8b51cb
TT
30172019-07-17 Tom Tromey <tom@tromey.com>
3018
3019 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3020 Now static.
3021 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3022 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3023
18ab23af
TT
30242019-07-17 Tom Tromey <tom@tromey.com>
3025
3026 * tui/tui.c: Update.
3027 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3028 tui-regs.c.
3029 * tui/tui-windata.h: Remove file.
3030 * tui/tui-windata.c: Remove file.
3031 * tui/tui-win.c (tui_data_window::set_new_height)
3032 (tui_data_window::do_make_visible_with_new_height): Move to
3033 tui-regs.c.
3034 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3035 * tui/tui-regs.c: Remove "structuring" comments.
3036 (tui_data_window::first_data_item_displayed)
3037 (tui_data_window::delete_data_content_windows)
3038 (tui_data_window::erase_data_content)
3039 (tui_data_window::display_all_data)
3040 (tui_data_window::refresh_all)
3041 (tui_data_window::do_scroll_vertical)
3042 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3043 (tui_data_window::do_make_visible_with_new_height)
3044 (tui_data_window::refresh_window): Move from elsewhere.
3045 (_initialize_tui_regs): Move to end of file.
3046 * tui/tui-layout.c: Update.
3047 * tui/tui-hooks.c: Update.
3048 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3049 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3050 tui-regs.c.
3051 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3052
88b7e7cc
TT
30532019-07-17 Tom Tromey <tom@tromey.com>
3054
3055 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3056 seen.
3057
0fcd3711
TT
30582019-07-17 Tom Tromey <tom@tromey.com>
3059
3060 * tui/tui-win.c (tui_source_window_base::set_new_height)
3061 (tui_source_window_base::do_make_visible_with_new_height): Use
3062 m_has_locator field directly.
3063 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3064 method.
3065 (struct tui_source_window_base) <has_locator>: Likewise.
3066
4a38112d
TT
30672019-07-17 Tom Tromey <tom@tromey.com>
3068
3069 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3070 Don't declare.
3071 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3072 Remove.
3073 * tui/tui-win.c (tui_source_window_base::set_new_height)
3074 (tui_source_window_base::set_new_height)
3075 (make_invisible_and_set_new_height)
3076 (tui_source_window_base::do_make_visible_with_new_height)
3077 (tui_source_window_base::do_make_visible_with_new_height):
3078 Update.
3079 * tui/tui-layout.c (show_source_disasm_command, show_data)
3080 (show_source_or_disasm_and_command): Update.
3081 * tui/tui-layout.c (show_layout): Update.
3082
09129226
TT
30832019-07-17 Tom Tromey <tom@tromey.com>
3084
3085 * tui/tui-layout.c (make_data_window): Remove.
3086 (show_data): Unify creation and re-initialization cases.
3087
4a8a5e84
TT
30882019-07-17 Tom Tromey <tom@tromey.com>
3089
3090 * tui/tui-layout.c (make_source_window, make_disasm_window):
3091 Remove.
3092 (show_data): Unify creation and re-initialization cases.
3093
76d2be8e
TT
30942019-07-17 Tom Tromey <tom@tromey.com>
3095
3096 * tui/tui-layout.c (make_command_window): Remove.
3097 (show_source_disasm_command, show_source_or_disasm_and_command):
3098 Unify creation and re-initialization cases.
3099
890b8bde
TT
31002019-07-17 Tom Tromey <tom@tromey.com>
3101
3102 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3103 creation and re-initialization cases.
3104
2cdfa113
TT
31052019-07-17 Tom Tromey <tom@tromey.com>
3106
3107 * tui/tui-regs.c (tui_get_register): Return void.
3108
8e3cfd09
TT
31092019-07-17 Tom Tromey <tom@tromey.com>
3110
3111 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3112 Simplify.
3113
f4e04977
TT
31142019-07-17 Tom Tromey <tom@tromey.com>
3115
3116 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3117 resetting.
3118
0379b883
TT
31192019-07-17 Tom Tromey <tom@tromey.com>
3120
3121 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3122 * tui/tui-regs.c (tui_reg_layout): New function.
3123 (tui_show_registers, tui_reg_command): Use it.
3124 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3125 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3126 parameters.
3127 (tui_layout_command): Remove.
3128
b7fbad91
TT
31292019-07-17 Tom Tromey <tom@tromey.com>
3130
3131 * tui/tui-layout.h (tui/tui-layout): Return void.
3132 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3133
4e1e56b9
TT
31342019-07-17 Tom Tromey <tom@tromey.com>
3135
3136 * tui/tui-layout.c (show_source_disasm_command, show_data):
3137 Update.
3138 (reset_locator): Remove.
3139 (show_source_or_disasm_and_command): Update.
3140
1e0c09ba
TT
31412019-07-17 Tom Tromey <tom@tromey.com>
3142
3143 * tui/tui-source.c (tui_source_window_base::reset): Remove
3144 win_type parameter.
3145 * tui/tui-layout.c (make_command_window, make_source_window)
3146 (make_disasm_window, make_data_window)
3147 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3148 (reset_locator, show_source_or_disasm_and_command): Update.
3149 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3150 win_type parameter.
3151 (struct tui_source_window_base) <reset>: Likewise.
3152
1bf605de
TT
31532019-07-17 Tom Tromey <tom@tromey.com>
3154
3155 * tui/tui-layout.c (show_source_disasm_command): Use
3156 reset_locator.
3157 (reset_locator): New function.
3158 (init_and_make_win): Remove.
3159 (show_source_or_disasm_and_command): Use reset_locator.
3160
098f9ed4
TT
31612019-07-17 Tom Tromey <tom@tromey.com>
3162
3163 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3164 condition.
3165 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3166 Remove condition.
3167 * tui/tui-source.c (tui_source_window_base::reset): New method.
3168 * tui/tui-layout.c (make_command_window): Don't call
3169 init_and_make_win.
3170 (make_source_window, make_disasm_window): Don't call
3171 make_source_or_disasm_window.
3172 (make_data_window): Don't call init_and_make_win. Change calling
3173 convention.
3174 (show_source_disasm_command, show_data): Simplify.
3175 (make_source_or_disasm_window): Remove.
3176 (show_source_or_disasm_and_command): Simplify.
3177 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3178 (struct tui_source_window_base) <reset>: Likewise.
3179 <execution_info>: Remove initializer.
3180 * tui/tui-data.c (tui_source_window_base): Initialize
3181 execution_info.
3182
80110957
TT
31832019-07-17 Tom Tromey <tom@tromey.com>
3184
3185 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3186 variable.
3187
cf82af05
TT
31882019-07-17 Tom Tromey <tom@tromey.com>
3189
3190 * tui/tui.c (tui_rl_other_window): Update.
3191 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3192 superclass method first. Always iterate over regs_content.
3193 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3194 method.
3195 * tui/tui-win.c (tui_set_focus_command): Update.
3196
01aeb396
TT
31972019-07-17 Tom Tromey <tom@tromey.com>
3198
3199 * tui/tui-win.c (tui_set_focus_command): Rename from
3200 tui_set_focus. Call tui_enable.
3201 (tui_set_focus_command): Remove.
3202
fd6c75ee
TT
32032019-07-17 Tom Tromey <tom@tromey.com>
3204
3205 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3206 refresh_window.
3207 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3208 touchwin.
3209 (tui_data_window::refresh_window): Call refresh_window on data
3210 items. Always call superclass refresh_window.
3211 (tui_win_info::refresh): Remove.
3212 (tui_source_window_base::refresh_window): Update.
3213 (tui_refresh_all): Update.
3214 * tui/tui-layout.c (show_source_disasm_command): Remove call to
3215 refresh_window.
3216 (show_source_or_disasm_and_command): Likewise.
3217 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3218 (struct tui_source_window_base) <refresh>: Likewise.
3219
f6cc34a9
TT
32202019-07-17 Tom Tromey <tom@tromey.com>
3221
3222 * tui/tui-winsource.c (tui_clear_source_content)
3223 (tui_show_source_content): Update.
3224 * tui/tui-source.c (tui_source_window::showing_source_p): Check
3225 whether content is empty.
3226 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3227 Remove.
3228
f31ec9af
TT
32292019-07-17 Tom Tromey <tom@tromey.com>
3230
3231 * tui/tui-winsource.c (tui_erase_source_content): Clear the
3232 window's contents.
3233 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3234 * tui/tui-source.c (tui_set_source_content_nil): Remove.
3235
d1b6f1e5
TT
32362019-07-17 Tom Tromey <tom@tromey.com>
3237
3238 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3239 (struct tui_data_item_window): Update.
3240
d9743a13
TT
32412019-07-17 Tom Tromey <tom@tromey.com>
3242
3243 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3244 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3245 defines.
3246
caf0bc4e
TT
32472019-07-17 Tom Tromey <tom@tromey.com>
3248
3249 * tui/tui-winsource.h (tui_erase_source_content)
3250 (tui_clear_source_content): Remove "display_prompt" parameter.
3251 * tui/tui-winsource.c (tui_update_source_window_as_is)
3252 (tui_update_source_windows_with_addr): Update.
3253 (tui_clear_source_content): Remove "display_prompt" parameter.
3254 (tui_erase_source_content): Likewise. Simplify.
3255 (tui_show_source_content): Update.
3256 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3257 * tui/tui-stack.c (tui_show_frame_info): Update.
3258 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3259 Remove defines.
3260
9d391078
TT
32612019-07-17 Tom Tromey <tom@tromey.com>
3262
3263 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3264 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
3265 parameter.
3266 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
3267 parameter.
3268
a38da35d
TT
32692019-07-17 Tom Tromey <tom@tromey.com>
3270
3271 * tui/tui-winsource.c (tui_clear_source_content)
3272 (tui_show_source_content, tui_show_exec_info_content)
3273 (tui_clear_exec_info_content): Update.
3274 * tui/tui-stack.c (tui_show_locator_content): Update.
3275 (tui_show_frame_info): Update.
3276 * tui/tui-source.h (tui_source_window): Don't declare.
3277 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
3278 from tui_source_is_displayed.
3279 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
3280 Remove field.
3281 (struct tui_source_window_base) <content_in_use>: New field. Now
3282 bool.
3283 (struct tui_source_window) <showing_source_p>: New method.
3284 (TUI_SRC_WIN): Change cast.
3285 * tui/tui-data.c (tui_initialize_static_data): Update.
3286
c2cd8994
TT
32872019-07-17 Tom Tromey <tom@tromey.com>
3288
3289 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
3290 location_matches_p.
3291 * tui/tui-source.c (tui_source_window::location_matches_p): New
3292 method.
3293 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
3294 method.
3295 * tui/tui-data.h (struct tui_source_window_base)
3296 <location_matches_p>: New method.
3297 (struct tui_source_window, struct tui_disasm_window)
3298 <location_matches_p>: Likewise.
3299
4dde7b34
TT
33002019-07-17 Tom Tromey <tom@tromey.com>
3301
3302 * tui/tui-win.c (tui_set_win_height_command): Rename from
3303 tui_set_win_height.
3304 (tui_set_win_height_command): Remove.
3305
b73dd877
TT
33062019-07-17 Tom Tromey <tom@tromey.com>
3307
3308 * tui/tui-source.c (tui_source_window): New constructor. Add
3309 observer.
3310 (~tui_source_window): New destructor.
3311 (tui_source_window::style_changed): New method.
3312 * tui/tui-hooks.c (tui_redisplay_source): Remove.
3313 (tui_attach_detach_observers): Update.
3314 * tui/tui-data.h (struct tui_source_window): Make constructor not
3315 inline. Add destructor.
3316 (struct tui_source_window) <style_changed>: New method.
3317 <m_observable>: New member.
3318
ae2b5380
TT
33192019-07-17 Tom Tromey <tom@tromey.com>
3320
3321 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3322 * tui/tui-win.c (tui_resize_all): Fix typo.
3323
1ce3e844
TT
33242019-07-17 Tom Tromey <tom@tromey.com>
3325
3326 * tui/tui-wingeneral.h (tui_refresh_all): Update.
3327 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3328 (tui_refresh_all): Remove "list" parameter. Use foreach.
3329 * tui/tui-win.c (window_name_completer): Use foreach.
3330 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3331 (update_tab_width): Likewise.
3332 * tui/tui-layout.c (show_layout): Update.
3333 * tui/tui-data.h (class tui_window_iterator): New.
3334 (struct all_tui_windows): New.
3335 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3336
fe3eaf1c
TT
33372019-07-17 Tom Tromey <tom@tromey.com>
3338
3339 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3340 parameter. Don't reference globals.
3341 (tui_reg_command): Update.
3342
368c1354
TT
33432019-07-17 Tom Tromey <tom@tromey.com>
3344
3345 * tui/tui-regs.c (tui_show_registers): Simplify.
3346
e80cd204
TT
33472019-07-17 Tom Tromey <tom@tromey.com>
3348
3349 * tui/tui-regs.c (tui_show_registers): Update.
3350 (tui_show_register_group): Add win_info parameter.
3351
aca2dd16
TT
33522019-07-17 Tom Tromey <tom@tromey.com>
3353
3354 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3355 Rename from tui_display_reg_element_at_line.
3356 (tui_data_window::display_registers_from_line): Update.
3357 * tui/tui-data.h (struct tui_data_window)
3358 <display_reg_element_at_line>: New method.
3359
517e9505
TT
33602019-07-17 Tom Tromey <tom@tromey.com>
3361
3362 * tui/tui-regs.h (tui_display_registers_from)
3363 (tui_display_registers_from_line): Don't declare.
3364 * tui/tui-windata.c (tui_data_window::display_all_data)
3365 (tui_data_window::refresh_all)
3366 (tui_data_window::do_scroll_vertical): Update.
3367 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3368 from tui_display_registers_from.
3369 (tui_display_reg_element_at_line): Update.
3370 (tui_data_window::display_registers_from_line): Rename from
3371 tui_display_registers_from_line.
3372 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3373 display_registers_from_line>: New methods.
3374
f76d8b19
TT
33752019-07-17 Tom Tromey <tom@tromey.com>
3376
3377 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3378 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3379 from tui_erase_data_content.
3380 (tui_data_window::display_all_data)
3381 (tui_data_window::refresh_all)
3382 (tui_data_window::do_scroll_vertical): Update.
3383 * tui/tui-regs.c (tui_show_registers): Update.
3384 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3385 New method.
3386
b4094625
TT
33872019-07-17 Tom Tromey <tom@tromey.com>
3388
3389 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3390 declare.
3391 * tui/tui-windata.c
3392 (tui_data_window::delete_data_content_windows): Rename from
3393 tui_delete_data_content_windows.
3394 (tui_data_window::display_all_data)
3395 (tui_data_window::do_scroll_vertical): Update.
3396 * tui/tui-data.h (struct tui_data_window)
3397 <delete_data_content_windows>: New method.
3398
c223a729
TT
33992019-07-17 Tom Tromey <tom@tromey.com>
3400
3401 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3402 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3403
50daf268
TT
34042019-07-17 Tom Tromey <tom@tromey.com>
3405
3406 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3407 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3408 from tui_display_all_data.
3409 * tui/tui-win.c
3410 (tui_data_window::do_make_visible_with_new_height): Update.
3411 * tui/tui-regs.c (tui_show_registers): Update.
3412 * tui/tui-layout.c (tui_set_layout): Update.
3413 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3414 method.
3415
df5f8cab
TT
34162019-07-17 Tom Tromey <tom@tromey.com>
3417
3418 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3419 * tui/tui-windata.c (tui_display_data_from): Remove.
3420 (tui_data_window::refresh_all): Update.
3421
80cb6c27
TT
34222019-07-17 Tom Tromey <tom@tromey.com>
3423
3424 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3425 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3426 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3427 tui_display_registers_from_line.
3428 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3429 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3430 "force_display" parameter.
3431
baff0c28
TT
34322019-07-17 Tom Tromey <tom@tromey.com>
3433
3434 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3435 declare.
3436 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3437 Rename from tui_first_reg_element_no_inline.
3438 (tui_display_reg_element_at_line)
3439 (tui_display_registers_from_line): Update.
3440 * tui/tui-data.h (struct tui_data_window)
3441 <first_reg_element_no_inline>: New method.
3442
3b23c5f2
TT
34432019-07-17 Tom Tromey <tom@tromey.com>
3444
3445 * tui/tui-windata.c (tui_display_data_from)
3446 (tui_data_window::do_scroll_vertical): Update.
3447 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3448 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3449 Rename from tui_line_from_reg_element_no.
3450 (tui_display_registers_from_line): Update.
3451 * tui/tui-data.h (struct tui_data_window)
3452 <line_from_reg_element_no>: New method.
3453
0b5ec218
TT
34542019-07-17 Tom Tromey <tom@tromey.com>
3455
3456 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3457 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3458 tui_last_regs_line_no.
3459 (tui_display_reg_element_at_line)
3460 (tui_display_registers_from_line): Update.
3461 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3462 method.
3463
0807ab7b
TT
34642019-07-17 Tom Tromey <tom@tromey.com>
3465
3466 PR tui/24722:
3467 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3468 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3469 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3470 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3471 (tui_update_breakpoint_info): Likewise.
3472 * tui/tui-hooks.c (tui_event_create_breakpoint)
3473 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3474 Update.
3475
9ad7fdef
TT
34762019-07-17 Tom Tromey <tom@tromey.com>
3477
3478 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3479
5813316f
TT
34802019-07-17 Tom Tromey <tom@tromey.com>
3481
3482 * tui/tui-winsource.c (tui_update_source_window_as_is)
3483 (tui_update_source_windows_with_addr): Update.
3484 * tui/tui-source.h (tui_set_source_content)
3485 (tui_show_symtab_source): Add "win_info" parameter.
3486 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3487 parameter.
3488 (tui_show_symtab_source): Likewise.
3489
00e264e7
TT
34902019-07-17 Tom Tromey <tom@tromey.com>
3491
3492 * tui/tui-wingeneral.c
3493 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3494
06210ce4
TT
34952019-07-17 Tom Tromey <tom@tromey.com>
3496
3497 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3498 (struct tui_cmd_window) <can_scroll>: New method.
3499 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3500 method.
3501
381befee
TT
35022019-07-17 Tom Tromey <tromey@adacore.com>
3503
3504 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3505 do_field_signed>: Rename. Change type of "value".
3506 * ui-out.c (ui_out::field_signed): Rename from field_int.
3507 Change type of "value".
3508 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3509 type of "value".
3510 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3511 do_field_int. Change type of "value".
3512 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3513 do_field_int. Change type of "value".
3514 * tracepoint.c (trace_status_mi, tfind_1)
3515 (print_one_static_tracepoint_marker): Update.
3516 * thread.c (print_thread_info_1, print_selected_thread_frame):
3517 Update.
3518 * stack.c (print_frame, print_frame_info): Update.
3519 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3520 Update.
3521 * source.c (print_source_lines_base): Update.
3522 * skip.c (info_skip_command): Update.
3523 * record-btrace.c (btrace_ui_out_decode_error)
3524 (btrace_call_history_src_line): Update.
3525 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3526 Update.
3527 * progspace.c (print_program_space): Update.
3528 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3529 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3530 do_field_int. Change type of "value".
3531 * mi/mi-out.c (mi_ui_out::do_table_begin)
3532 (mi_ui_out::do_table_header): Update.
3533 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3534 type of "value".
3535 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3536 (mi_cmd_data_list_changed_registers, output_register)
3537 (mi_cmd_data_read_memory, mi_load_progress)
3538 (mi_cmd_trace_frame_collected): Update.
3539 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3540 Update.
3541 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3542 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3543 (mi_cmd_var_list_children, varobj_update_one): Update.
3544 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3545 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3546 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3547 * inferior.c (print_inferior): Update.
3548 * gdb_bfd.c (print_one_bfd): Update.
3549 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3550 Update.
3551 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3552 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3553 do_field_int. Change type of "value".
3554 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3555 do_field_int. Change type of "value".
3556 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3557 (print_one_breakpoint_location, print_it_catch_fork)
3558 (print_one_catch_fork, print_it_catch_vfork)
3559 (print_one_catch_vfork, print_it_catch_solib)
3560 (print_it_catch_exec, print_it_ranged_breakpoint)
3561 (print_mention_watchpoint, print_mention_masked_watchpoint)
3562 (bkpt_print_it, update_static_tracepoint): Update.
3563 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3564 * break-catch-syscall.c (print_it_catch_syscall): Update.
3565 * ada-tasks.c (print_ada_task_info): Update.
3566 * ada-lang.c (print_it_exception, print_mention_exception):
3567 Update.
3568
6b78c3f8
AB
35692019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3570
3571 PR breakpoints/24541
3572 * gdbarch.c: Regenerate.
3573 * gdbarch.h: Regenerate.
3574 * gdbarch.sh: Adjust return type and parameter types for
3575 'stap_adjust_register'.
3576 (i386_stap_adjust_register): Adjust signature and return new
3577 register name.
3578 * stap-probe.c (stap_parse_register_operand): Adjust use of
3579 'gdbarch_stap_adjust_register'.
3580
d72a9b85
TT
35812019-07-17 Tom Tromey <tromey@adacore.com>
3582
3583 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3584 declare VEC.
3585 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3586 std::vector.
3587 (struct s390_process_info): Add initializers.
3588 (s390_add_process): Use new.
3589 (s390_linux_nat_target::low_forget_process): Use delete.
3590 (s390_linux_nat_target::low_new_fork)
3591 (s390_linux_nat_target::stopped_by_watchpoint)
3592 (s390_linux_nat_target::low_prepare_to_resume)
3593 (s390_linux_nat_target::insert_watchpoint)
3594 (s390_linux_nat_target::insert_hw_breakpoint)
3595 (s390_linux_nat_target::remove_watchpoint)
3596 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3597
206e6c58
JB
35982019-07-16 John Baldwin <jhb@FreeBSD.org>
3599
3600 * aarch64-fbsd-nat.c: Include regcache.h.
3601 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3602 argument.
3603 (aarch64_fbsd_nat_target::fetch_registers)
3604 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3605 variable.
3606 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3607
cbde90f2
JB
36082019-07-16 John Baldwin <jhb@FreeBSD.org>
3609
3610 * fbsd-nat.c: Include gdbarch.h.
3611
07128006
TT
36122019-07-15 Tom Tromey <tromey@adacore.com>
3613
3614 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3615
1f77b012
TT
36162019-07-15 Tom Tromey <tromey@adacore.com>
3617
3618 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3619 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3620 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3621 * cli-out.c (cli_ui_out::do_field_int): New method.
3622 * ui-out.c (ui_out::field_unsigned): New method.
3623 * symfile.c (generic_load): Use field_unsigned.
3624 (print_transfer_performance): Likewise.
3625 * record-btrace.c (ui_out_field_uint): Remove.
3626 (btrace_call_history_insn_range, btrace_call_history): Use
3627 field_unsigned.
3628 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3629 field_unsigned.
3630 * ui-out.h (class ui_out) <field_unsigned>: New method.
3631 <do_field_unsigned>: Likewise.
3632
33eca680
TT
36332019-07-15 Tom Tromey <tromey@adacore.com>
3634
3635 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3636 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3637 * target.c (flash_erase_command): Use field_string.
3638 * infrun.c (print_signal_received_reason): Use field_string.
3639 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3640 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3641 field_string.
3642 * ada-tasks.c (print_ada_task_info): Use field_string.
3643
ca8d69be
TT
36442019-07-15 Tom Tromey <tromey@adacore.com>
3645
3646 * target.c (flash_erase_command): Use field_core_addr.
3647 * symfile.c (generic_load): Use field_core_addr.
3648 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3649 Use field_core_addr.
3650 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3651 field_core_addr.
3652
0d4e84ed
AB
36532019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3654
3655 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3656 value if its desired type is smaller than a CORE_ADDR and signed.
3657
9a49df9d
AB
36582019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3659
3660 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3661 of changes to field names, and use new is_reference field to
3662 decide if a property is a reference or not.
3663 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3664 field.
3665 (struct dwarf2_property_baton): Update header comment, rename
3666 'referenced_type' to 'property_type' and update comments.
3667 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3668 default property type, store in property baton, update to take
3669 accound of renamed field.
3670 (read_func_scope): Update call to attr_to_dynamic_prop.
3671 (read_array_type): Likewise.
3672 (dwarf2_per_cu_addr_sized_int_type): New function.
3673 (read_subrange_index_type): Move type finding code to
3674 dwarf2_per_cu_addr_sized_int_type.
3675 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3676 (dwarf2_per_cu_addr_type): New function.
3677 (set_die_type): Update calls to attr_to_dynamic_prop.
3678
b86352cf
AB
36792019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3680
3681 * dwarf2read.c (read_subrange_index_type): New function.
3682 (read_subrange_type): Move code into new function and call it.
3683 * gdbtypes.c (create_range_type): Add some asserts.
3684
603490bf
AB
36852019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3686
3687 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3688 update return statements.
3689 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3690 declaration, and update comment to match.
3691 * gdbtypes.c (resolve_dynamic_array): Update call to
3692 dwarf2_evaluate_property to match new return type.
3693
592f9d27
AB
36942019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3695
3696 * valarith.c (value_subscripted_rvalue): Change lowerbound
3697 parameter type from int to LONGEST.
3698 * value.h (value_subscripted_rvalue): Likewise in declaration.
3699
60cfcb20
AB
37002019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3701
3702 * cli/cli-utils.c (info_print_command_completer): New function.
3703 * cli/cli-utils.h: Add 'completer.h' include, and forward
3704 declaration for 'struct cmd_list_element'.
3705 (info_print_command_completer): Declare.
3706 * stack.c (_initialize_stack): Add completer for 'info locals' and
3707 'info args'.
3708 * symtab.c (_initialize_symtab): Add completer for 'info
3709 variables' and 'info functions'.
3710 * NEWS: Mention completion for additional info commands.
3711
b16507e0
AB
37122019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3713
3714 * cli/cli-utils.c (extract_info_print_args): Delete.
3715 (extract_arg_maybe_quoted): Delete.
3716 (info_print_options_defs): New variable.
3717 (make_info_print_options_def_group): New function.
3718 (extract_info_print_options): Define new function.
3719 * cli/cli-utils.h (extract_info_print_args): Delete.
3720 (struct info_print_options): New structure.
3721 (extract_info_print_options): Declare new function.
3722 * stack.c (info_locals_command): Update to use new
3723 extract_info_print_options, also add a header comment.
3724 (info_args_command): Likewise.
3725 * symtab.c (info_variables_command): Likewise.
3726 (info_functions_command): Likewise.
3727
021d8588
AB
37282019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3729
3730 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3731 to extract string arguments.
3732 * common/common-utils.c (extract_string_maybe_quoted): New function.
3733 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3734
b777eb6d
TT
37352019-07-11 Tom Tromey <tromey@adacore.com>
3736
3737 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3738 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3739 * top.h (gdbinit): Don't declare.
3740 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3741 into...
3742 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3743 * top.c (gdb_init): Don't call init_cli_cmds.
3744 (gdbinit): Remove.
3745 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3746
72ee03ff
TT
37472019-07-11 Tom Tromey <tromey@adacore.com>
3748
3749 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3750 after it has been moved.
3751
00db9531
SM
37522019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3753
3754 * valops.c (value_must_coerce_to_target): Change return type to
3755 bool.
3756 * value.h (value_must_coerce_to_target): Likewise.
3757
f2478a7e
SM
37582019-07-10 Simon Marchi <simon.marchi@efficios.com>
3759
3760 * breakpoint.c (is_hardware_watchpoint): Remove
3761 forward-declaration.
3762 (is_masked_watchpoint): Change return type to bool.
3763 (is_tracepoint): Likewise.
3764 (is_breakpoint): Likewise.
3765 (is_hardware_watchpoint): Likewise.
3766 (is_watchpoint): Likewise.
3767 (is_no_memory_software_watchpoint): Likewise.
3768 (is_catchpoint): Likewise.
3769 (breakpoint_1): Make FILTER parameter's return type bool.
3770 is_masked_watchpoint): Change return type to bool.
3771 (save_breakpoints): Make FILTER parameter's return type bool.
3772 * breakpoint.h (is_breakpoint): Change return type to bool.
3773 (is_watchpoint): Likewise.
3774 (is_catchpoint): Likewise.
3775 (is_tracepoint): Likewise.
3776
0d12e84c
TT
37772019-07-10 Tom Tromey <tom@tromey.com>
3778
3779 * defs.h: Don't include gdbarch.h.
3780 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3781 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3782 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3783 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3784 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3785 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3786 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3787 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3788 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3789 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3790 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3791 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3792 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3793 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3794 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3795 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3796 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3797 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3798 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3799 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3800 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3801 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3802 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3803 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3804 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3805 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3806 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3807
f06f1252
TT
38082019-07-10 Tom Tromey <tromey@adacore.com>
3809
3810 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3811 * breakpoint.c (init_ada_exception_breakpoint): Register as
3812 bp_catchpoint.
3813 (print_one_breakpoint_location, print_one_breakpoint): Use
3814 is_ada_exception_catchpoint.
3815 * ada-lang.c (class ada_catchpoint_location): Pass
3816 bp_loc_software_breakpoint to bp_location constructor.
3817 (is_ada_exception_catchpoint): New function.
3818
7a5d944b
TT
38192019-07-10 Tom Tromey <tromey@adacore.com>
3820
3821 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3822 VEC.
3823 (struct arm_exidx_entry): New method operator<.
3824 (struct arm_exidx_data) <section_maps>: Change type.
3825 (arm_exidx_data_free): Remove.
3826 (arm_exidx_data_key): Change type. Move lower.
3827 (arm_exidx_new_objfile): Update.
3828 (arm_compare_exidx_entries): Remove.
3829 (arm_find_exidx_entry, _initialize_arm_tdep)
3830
48c66e1d
TT
38312019-07-10 Tom Tromey <tromey@adacore.com>
3832
3833 * solib-spu.c (ocl_program_data_key): Change type.
3834 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3835 Update.
3836
a269fbf1
TT
38372019-07-10 Tom Tromey <tromey@adacore.com>
3838
3839 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3840 (struct solib_aix_inferior_data) <library_list>: Change type.
3841 (solib_aix_inferior_data_handle): Change type.
3842 (get_solib_aix_inferior_data): Update.
3843 (solib_aix_free_library_list): Remove.
3844 (library_list_start_library): Update.
3845 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3846 return type.
3847 (solib_aix_get_library_list)
3848 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3849 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3850
c294730c
TT
38512019-07-10 Tom Tromey <tromey@adacore.com>
3852
3853 * solib-dsbt.c (struct dsbt_info): Add initializers.
3854 (solib_dsbt_pspace_data): Change type.
3855 (dsbt_pspace_data_cleanup): Remove.
3856 (get_dsbt_info, _initialize_dsbt_solib): Update.
3857
9d52077d
TT
38582019-07-10 Tom Tromey <tromey@adacore.com>
3859
3860 * spu-tdep.c (spu_overlay_data): Change type.
3861 (spu_get_overlay_table, spu_overlay_new_objfile)
3862 (_initialize_spu_tdep): Update.
3863
22a20dca
TT
38642019-07-10 Tom Tromey <tromey@adacore.com>
3865
3866 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3867 destructor.
3868 (dbx_objfile_data_key): Change type and declare later.
3869 (DBX_SYMFILE_INFO): Rewrite.
3870 * dbxread.c (dbx_objfile_data_key): Change type.
3871 (dbx_symfile_init): Update.
3872 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3873 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3874 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3875
cb60f420
TT
38762019-07-10 Tom Tromey <tromey@adacore.com>
3877
3878 * jit.c (jit_program_space_key): Change type. Move lower.
3879 (get_jit_program_space_data): Update.
3880 (jit_program_space_data_cleanup): Remove.
3881 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3882 Update.
3883 (struct jit_program_space_data): Add initializers.
3884
51df2ae3
TT
38852019-07-10 Tom Tromey <tromey@adacore.com>
3886
3887 * solib-darwin.c (struct darwin_info): Add initializers.
3888 (solib_darwin_pspace_data): Change type.
3889 (darwin_pspace_data_cleanup): Remove.
3890 (get_darwin_info, _initialize_darwin_solib): Update.
3891
18101a35
TT
38922019-07-10 Tom Tromey <tromey@adacore.com>
3893
3894 * remote-sim.c (struct sim_inferior_data): Add initializers,
3895 constructor, and destructor.
3896 (sim_inferior_data_key): Change type. Move lower.
3897 (check_for_duplicate_sim_descriptor): Update.
3898 (get_sim_inferior_data): Use new. Update.
3899 (~sim_inferior_data_cleanup): Rename from
3900 sim_inferior_data_cleanup. Simplify.
3901 (gdbsim_close_inferior, simulator_command)
3902 (sim_command_completer, _initialize_remote_sim): Update.
3903 (next_pid, INITIAL_PID): Move earlier.
3904
05b08ac1
TT
39052019-07-10 Tom Tromey <tromey@adacore.com>
3906
3907 * python/python-internal.h (create_thread_object): Return
3908 gdbpy_ref.
3909 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3910 * python/py-inferior.c (struct threadlist_entry): Add
3911 constructor.
3912 <thread_obj>: Now a gdbpy_ref.
3913 (thread_to_thread_object): Update.
3914 (add_thread_object): Use new.
3915 (delete_thread_object): Use delete.
3916 (infpy_threads): Update.
3917 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3918 GIL.
3919
32372d80
TT
39202019-07-10 Tom Tromey <tromey@adacore.com>
3921
3922 * valops.c (value_cast): Specialize error message for Ada.
3923
5c458ae8
SM
39242019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3925
3926 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3927
4c462cb0
SM
39282019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3929
3930 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3931 bpstat_should_step): Return bool, adjust comments.
3932 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3933 bpstat_should_step): Likewise.
3934
89abbcc2
AH
39352019-07-10 Alan Hayward <alan.hayward@arm.com>
3936
3937 * features/Makefile: Use feature target descriptions for Arm.
3938 * features/arm/arm-core.c: Generate new file.
3939 * features/arm/arm-fpa.c: Likewise.
3940 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3941 * features/arm/arm-m-profile.c: Likewise.
3942 * features/arm/arm-vfpv2.c: Likewise.
3943 * features/arm/arm-vfpv3.c: Likewise.
3944 * features/arm/xscale-iwmmxt.c: Likewise.
3945 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3946
166a82be
AH
39472019-07-10 Alan Hayward <alan.hayward@arm.com>
3948
3949 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3950 ptrace earlier.
3951
9fb4c7e9
AH
39522019-07-10 Alan Hayward <alan.hayward@arm.com>
3953
3954 * features/aarch64-pauth.c: Regenerate.
3955
e2d0f980
SM
39562019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3957
3958 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3959 bool.
3960 (bpstat_what): Use false instead of 0.
3961
a38118e5
PA
39622019-07-09 Pedro Alves <palves@redhat.com>
3963
3964 * break-catch-throw.c (is_exception_catchpoint): New.
3965 * breakpoint.c (print_one_breakpoint_location): New parameter
3966 'raw_loc'. Handle it. Use
3967 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3968 looking at the breakpoint's type.
3969 (print_one_breakpoint): If handling "maint info breakpoints", also
3970 print locations of exception catchpoints.
3971 * breakpoint.h (is_exception_catchpoint): Declare.
3972
cb1e4e32
PA
39732019-07-09 Pedro Alves <palves@redhat.com>
3974
3975 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3976 "addr" field.
3977 (allocate_location_exception_catchpoint): New.
3978 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3979 (initialize_throw_catchpoint_ops): Install
3980 allocate_location_exception_catchpoint as allocate_location
3981 method.
3982 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3983 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3984 bp_loc_other.
3985 (breakpoint_address_is_meaningful): Delete.
3986 (bl_address_is_meaningful): New.
3987 (breakpoint_locations_match): Adjust comment.
3988 (bp_location_from_bp_type): New, factored out of...
3989 (bp_location::bp_location(breakpoint *)): ... this.
3990 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3991 factored out of...
3992 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3993 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3994 breakpoint_address_is_meaningful.
3995 (bp_locations_compare): Adjust comment.
3996 (update_global_location_list): Use bl_address_is_meaningful
3997 instead of breakpoint_address_is_meaningful.
3998 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3999 explicit.
4000 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4001 * python/py-breakpoint.c (bppy_get_location): No longer check
4002 whether location is null.
4003
b58a68fe
PA
40042019-07-09 Pedro Alves <palves@redhat.com>
4005
4006 PR c++/15468
4007 * breakpoint.c (print_one_breakpoint_location): Remove
4008 single-location assert.
4009
268a13a5
TT
40102019-07-09 Tom Tromey <tom@tromey.com>
4011
4012 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4013 * configure: Rebuild.
4014 * configure.ac: Change common to gdbsupport.
4015 * gdbsupport: Rename from common.
4016 * acinclude.m4: Change common to gdbsupport.
4017 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4018 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4019 gdbsupport.
4020 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4021 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4022 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4023 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4024 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4025 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4026 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4027 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4028 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4029 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4030 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4031 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4032 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4033 coff-pe-read.c, command.h, compile/compile-c-support.c,
4034 compile/compile-c.h, compile/compile-cplus-symbols.c,
4035 compile/compile-cplus-types.c, compile/compile-cplus.h,
4036 compile/compile-loc2c.c, compile/compile.c, completer.c,
4037 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4038 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4039 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4040 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4041 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4042 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4043 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4044 features/aarch64-core.c, features/aarch64-fpu.c,
4045 features/aarch64-pauth.c, features/aarch64-sve.c,
4046 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4047 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4048 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4049 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4050 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4051 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4052 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4053 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4054 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4055 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4056 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4057 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4058 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4059 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4060 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4061 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4062 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4063 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4064 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4065 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4066 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4067 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4068 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4069 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4070 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4071 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4072 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4073 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4074 minsyms.c, mips-linux-tdep.c, namespace.h,
4075 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4076 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4077 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4078 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4079 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4080 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4081 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4082 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4083 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4084 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4085 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4086 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4087 procfs.c, producer.c, progspace.h, psymtab.h,
4088 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4089 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4090 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4091 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4092 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4093 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4094 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4095 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4096 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4097 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4098 target-memory.c, target.c, target.h, target/waitstatus.c,
4099 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4100 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4101 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4102 unittests/array-view-selftests.c,
4103 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4104 unittests/common-utils-selftests.c,
4105 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4106 unittests/format_pieces-selftests.c,
4107 unittests/function-view-selftests.c,
4108 unittests/lookup_name_info-selftests.c,
4109 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4110 unittests/mkdir-recursive-selftests.c,
4111 unittests/observable-selftests.c,
4112 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4113 unittests/parse-connection-spec-selftests.c,
4114 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4115 unittests/scoped_fd-selftests.c,
4116 unittests/scoped_mmap-selftests.c,
4117 unittests/scoped_restore-selftests.c,
4118 unittests/string_view-selftests.c, unittests/style-selftests.c,
4119 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4120 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4121 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4122 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4123 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4124 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4125
5b0e2db4
AB
41262019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4127
4128 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4129 bool value.
4130 (decode_digits_ordinary): Set explicit_line field in sal.
4131 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4132 symtab_and_line that was set on an explicit line number in
4133 assembler code. Do always update the recorded symtab and line if
4134 we do skip the prologue.
4135
0ba852ab
AB
41362019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4137
4138 * breakpoint.c (set_breakpoint_location_function): Remove
4139 explicit_loc parameter.
4140 (momentary_breakpoint_from_master): Update call to
4141 set_breakpoint_location_function.
4142 (add_location_to_breakpoint): Likewise.
4143
b3a7d171
AB
41442019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4145
4146 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4147 required features based on default bfd type when no specific bfd
4148 is present.
4149
1f6f6e21
PW
41502019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4151
4152 * NEWS: Mention that GDB printf and eval commands can now print
4153 C-style and Ada-style convenience var strings without
4154 calling the inferior.
4155 * printcmd.c (printf_c_string): Locally print GDB internal var
4156 instead of transiting via the inferior.
4157 (printf_wide_c_string): Likewise.
4158
41592019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
4160
4161 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4162
0598af48
TT
41632019-07-04 Tom Tromey <tom@tromey.com>
4164
4165 PR tui/24724:
4166 * tui/tui-winsource.c (tui_clear_source_content): Update.
4167 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4168 (tui_update_breakpoint_info): Update.
4169 (tui_set_exec_info_content): Update.
4170 * tui/tui-source.c (tui_set_source_content_nil): Update.
4171 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4172 has_break.
4173 * tui/tui-data.h (enum tui_bp_flag): New.
4174 (tui_bp_flags): New enum flags type.
4175 (struct tui_source_element) <break_mode>: Change type. Rename
4176 from has_break.
4177 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4178 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4179 constants.
4180 * tui/tui-winsource.h: Fix comment.
4181
350fab54
AH
41822019-07-04 Alan Hayward <alan.hayward@arm.com>
4183
4184 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4185 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4186 (store_fpregs_to_thread)
4187 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4188 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4189 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4190 (IWMMXT_REGS_SIZE): Add define.
4191 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4192 (fetch_vfp_regs, store_vfp_regs)
4193 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4194 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4195
f0452268
AH
41962019-07-04 Alan Hayward <alan.hayward@arm.com>
4197
4198 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4199 defines.
4200 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4201 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4202 (ARM_INT_REGISTER_SIZE): ...to this.
4203 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4204 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4205 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4206 (arm_linux_collect_gregset, supply_nwfpe_register)
4207 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4208 defines.
4209 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4210 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4211 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4212 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4213 (arm_return_in_memory, arm_store_return_value)
4214 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4215 (arm_record_ld_st_multiple): Likewise.
4216 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4217 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4218
e935475c
AH
42192019-07-04 Alan Hayward <alan.hayward@arm.com>
4220
4221 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4222 AARCH64_DISPLACED_MODIFIED_INSNS.
4223 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4224 (aarch64_displaced_step_copy_insn): Likewise.
4225 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4226 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4227 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4228 ARM_DISPLACED_MODIFIED_INSNS.
4229 * arm-tdep.c (arm_gdbarch_init): Likewise.
4230 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4231 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4232 (struct arm_displaced_step_closure): Use
4233 ARM_DISPLACED_MODIFIED_INSNS.
4234
df0bb381
AH
42352019-07-04 Alan Hayward <alan.hayward@arm.com>
4236
4237 * features/Makefile: Remove unused xml files.
4238 * features/aarch64.xml: Remove.
4239 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4240 * features/i386/amd64-avx-avx512.xml: Remove.
4241 * features/i386/amd64-avx-linux.xml: Remove.
4242 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4243 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4244 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4245 * features/i386/amd64-avx-mpx.xml: Remove.
4246 * features/i386/amd64-avx.xml: Remove.
4247 * features/i386/amd64-linux.xml: Remove.
4248 * features/i386/amd64-mpx-linux.xml: Remove.
4249 * features/i386/amd64-mpx.xml: Remove.
4250 * features/i386/amd64.xml: Remove.
4251 * features/i386/i386-avx-avx512-linux.xml: Remove.
4252 * features/i386/i386-avx-avx512.xml: Remove.
4253 * features/i386/i386-avx-linux.xml: Remove.
4254 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4255 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4256 * features/i386/i386-avx-mpx-linux.xml: Remove.
4257 * features/i386/i386-avx-mpx.xml: Remove.
4258 * features/i386/i386-avx.xml: Remove.
4259 * features/i386/i386-linux.xml: Remove.
4260 * features/i386/i386-mmx-linux.xml: Remove.
4261 * features/i386/i386-mmx.xml: Remove.
4262 * features/i386/i386-mpx-linux.xml: Remove.
4263 * features/i386/i386-mpx.xml: Remove.
4264 * features/i386/i386.xml: Remove.
4265 * features/i386/x32-avx-avx512-linux.xml: Remove.
4266 * features/i386/x32-avx-linux.xml: Remove.
4267 * features/i386/x32-linux.xml: Remove.
4268
edd6266a
AH
42692019-07-04 Alan Hayward <alan.hayward@arm.com>
4270
4271 * regformats/aarch64.dat: Remove.
4272 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4273 * regformats/i386/amd64-avx-linux.dat: Remove.
4274 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4275 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4276 * regformats/i386/amd64-linux.dat: Remove.
4277 * regformats/i386/amd64-mpx-linux.dat: Remove.
4278 * regformats/i386/amd64.dat: Remove.
4279 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4280 * regformats/i386/i386-avx-linux.dat: Remove.
4281 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4282 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4283 * regformats/i386/i386-linux.dat: Remove.
4284 * regformats/i386/i386-mmx-linux.dat: Remove.
4285 * regformats/i386/i386-mpx-linux.dat: Remove.
4286 * regformats/i386/i386.dat: Remove.
4287 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4288 * regformats/i386/x32-avx-linux.dat: Remove.
4289 * regformats/i386/x32-linux.dat: Remove.
4290
2b40fda7
AH
42912019-07-04 Alan Hayward <alan.hayward@arm.com>
4292
4293 * aarch64-tdep.c: Remove xml self tests.
4294 * amd64-linux-tdep.c: Likewise.
4295 * amd64-tdep.c: Likewise.
4296 * i386-linux-tdep.c: Likewise.
4297 * i386-tdep.c: Likewise.
4298
5f4ba3e7
PA
42992019-07-03 Pedro Alves <palves@redhat.com>
4300
4301 PR cli/24732
4302 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4303 (pipe_cmd_option_defs): New.
4304 (make_pipe_cmd_options_def_group): New.
4305 (pipe_command): Use gdb::option::process_options.
4306 (pipe_command_completer): New function.
4307 (_initialize_cli_cmds): Install completer for "pipe" command.
4308
3d9be6f5
PA
43092019-07-03 Pedro Alves <palves@redhat.com>
4310
4311 * cli/cli-option.c (union option_value) <string>: New field.
4312 (struct option_def_and_value): Add ctor, move ctor, dtor and
4313 use DISABLE_COPY_AND_ASSIGN.
4314 (option_def_and_value::clear_value): New.
4315 (parse_option, save_option_value_in_ctx, get_val_type_str)
4316 (add_setshow_cmds_for_options): Handle var_string.
4317 * cli-option.h (union option_def::var_address) <string>: New
4318 field.
4319 (struct string_option_def): New.
4320 * maint-test-options.c (struct test_options_opts): Add default
4321 ctor and use DISABLE_COPY_AND_ASSIGN.
4322 <string_opt>: New field.
4323 (test_options_opts::~test_options_opts): New.
4324 (test_options_opts::dump): Also dump "-string".
4325 (test_options_option_defs): Install "string.
4326
41fc454c
PA
43272019-07-03 Pedro Alves <palves@redhat.com>
4328
4329 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4330 option_value with a null enumeration.
4331 (complete_options): Save the option values in the context.
4332 (save_option_value_in_ctx): New, factored out from ...
4333 (process_options): ... here.
4334 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4335 of the function.
4336 * maint-test-options.c (test_options_opts::dump): New, factored
4337 out from ...
4338 (maintenance_test_options_command_mode): ... here.
4339 (maintenance_test_options_command_completion_result): Delete.
4340 (maintenance_test_options_command_completion_text): Update
4341 comment.
4342 (maintenance_show_test_options_completion_result): Change
4343 prototype. Just print
4344 maintenance_test_options_command_completion_text.
4345 (save_completion_result): New.
4346 (maintenance_test_options_completer_mode): Pass options context to
4347 complete_options, and then save a dump.
4348 (_initialize_maint_test_options): Use add_cmd to install "maint
4349 show test-options-completion-result".
4350
fdbc9870
PA
43512019-07-03 Pedro Alves <palves@redhat.com>
4352
4353 * NEWS (New commands): Mention "with" and "maint with".
4354 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4355 (with_command, with_command_completer): New.
4356 (pipe_command): Adjust to new repeat_previous
4357 interface.
4358 (_initialize_cli_cmds): Install the "with" command and its "w"
4359 alias.
4360 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4361 declarations.
4362 * cli/cli-setshow.c (parse_cli_var_uinteger)
4363 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4364 argument strings for all var_types.
4365 (get_setshow_command_value_string): New, factored out from ...
4366 (do_show_command): ... this.
4367 * cli/cli-setshow.h: Include <string>.
4368 (get_setshow_command_value_string): Declare.
4369 * command.h (repeat_previous): Now returns const char *. Adjust
4370 comment.
4371 * maint.c: Include "cli/cli-cmds.h".
4372 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4373 (_initialize_maint_cmds): Register the "maintenance with" command.
4374 * top.c (repeat_previous): Move bits from pipe_command here:
4375 Return the saved command line, if any; error out if there's no
4376 command to relaunch.
4377
c6ac8931
PA
43782019-07-03 Pedro Alves <palves@redhat.com>
4379
4380 * NEWS (New commands): Mention "maint set/show test-settings"
4381 instead of "maint test-settings".
4382 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4383 (maintenance_test_settings_set_list): Rename to ...
4384 (maintenance_set_test_settings_list): ... this.
4385 (maintenance_test_settings_show_list): Rename to ...
4386 (maintenance_show_test_settings_list): ... this.
4387 (maintenance_test_settings_cmd): Delete.
4388 (maintenance_test_settings_set_cmd): ...
4389 (maintenance_set_test_settings_cmd): ... this.
4390 (maintenance_test_settings_show_cmd): ...
4391 (maintenance_show_test_settings_cmd): ... this.
4392 (maintenance_test_settings_show_value_cmd):
4393 (maintenance_show_test_settings_value_cmd): ... this.
4394 (_initialize_maint_test_settings): No longer install the "maint
4395 test-settings" prefix command. Rename "maint test-settings set"
4396 to "maint set test-settings", and "maint test-settings show" to
4397 "maint show test-settings". Adjust all subcommands.
4398
d1fcf2fd
PA
43992019-07-03 Pedro Alves <palves@redhat.com>
4400
4401 * maint-test-settings.c: Fix file's intro comment. Replace all
4402 references to "test-options" with references to "test-settings",
4403 in comments.
4404
970f9d09
PA
44052019-07-03 Pedro Alves <palves@redhat.com>
4406
4407 * maint-test-settings.c (maintenance_test_settings_xxx)
4408 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4409 New.
4410 (maintenance_test_settings_enums): Use them.
4411 (maintenance_test_settings_enum): Default to
4412 maintenance_test_settings_xxx.
4413 (_initialize_maint_test_settings): Initialize
4414 MAINTENANCE_TEST_SETTINGS_FILENAME.
4415
f3869b1a
SM
44162019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4417
4418 * breakpoint.h (remove_breakpoints_inf): Change return type to
4419 void, move function documentation here.
4420 * breakpoint.c (remove_breakpoints_inf): Change return type to
4421 void, move function documentation to header.
4422
54d66006
PA
44232019-07-02 Pedro Alves <palves@redhat.com>
4424
4425 * NEWS (Completion improvements): Mention "info threads".
4426 * thread.c (struct info_threads_opts, info_threads_option_defs)
4427 (make_info_threads_options_def_group): New.
4428 (info_threads_command): Use gdb::option::process_options.
4429 (info_threads_command_completer): New.
4430 (_initialize_thread): Use gdb::option::build_help to build the
4431 help text for "info threads".
4432
854f6088
SM
44332019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4434
4435 * defs.h (generic_load): Move from here...
4436 * symfile.h (generic_load): ... to here. Rename name parameter
4437 to args.
4438 * symfile.c (generic_load): Add comment.
4439
54ee4252
TT
44402019-07-01 Tom Tromey <tromey@adacore.com>
4441
4442 * dwarf2read.c
4443 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4444 declaration of without_params. Fix formatting.
4445
65392b3e
TT
44462019-07-01 Tom Tromey <tromey@adacore.com>
4447
4448 * ada-exp.y (find_primitive_type): Update.
4449 * ada-lang.h (ada_lookup_symbol): Update.
4450 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4451 parameter.
4452 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4453
7d7571f0
SDJ
44542019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4455
4456 PR breakpoints/24541
4457 * gdbarch.c: Regenerate.
4458 * gdbarch.h: Regenerate.
4459 * gdbarch.sh: Add 'stap_adjust_register'.
4460 * i386-tdep.c: Include '<unordered_set>'.
4461 (i386_stap_adjust_register): New function.
4462 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4463 * stap-probe.c (stap_parse_register_operand): Call
4464 'gdbarch_stap_adjust_register'.
4465
5af5392a
SDJ
44662019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4467
4468 PR python/24742
4469 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4470 * python/python.c (do_start_initialization): Use 'xmalloc'
4471 instead of 'PyMem_Malloc'.
4472
10d06d82
TT
44732019-06-28 Tom Tromey <tromey@adacore.com>
4474
4475 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4476 for Ada.
4477
1b7f24cd
TT
44782019-06-27 Tom Tromey <tromey@adacore.com>
4479
4480 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4481 objfile_key.
4482 (arm_find_mapping_symbol, arm_record_special_symbol)
4483 (_initialize_arm_tdep): Update.
4484 (arm_objfile_data_free): Remove.
4485
3d507ff2
TT
44862019-06-27 Tom Tromey <tromey@adacore.com>
4487
4488 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4489 to cp_print_static_field.
4490
762c164d
TT
44912019-06-26 Tom Tromey <tromey@adacore.com>
4492
4493 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4494 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4495 declare.
4496
aa2f9bcf
AH
44972019-06-26 Alan Hayward <alan.hayward@arm.com>
4498
4499 * features/aarch64-core.c (create_feature_aarch64_core):
4500 Regenerate.
4501 * features/aarch64-core.xml: Add cpsr flags.
4502
3426ae57
AH
45032019-06-26 Alan Hayward <alan.hayward@arm.com>
4504
4505 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4506 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4507
4838e44c
SM
45082019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4509
4510 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4511 field.
4512 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4513 use.
4514 (arm_record_special_symbol): Don't insert new symbol in sorted
4515 position, push it at the end.
4516
54cc7474
SM
45172019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4518
4519 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4520 (arm_mapping_symbol_s): Remove.
4521 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4522 (arm_mapping_symbol_vec): New typedef.
4523 (struct arm_per_objfile): Add constructor.
4524 <section_maps>: Change type to
4525 std::unique_ptr<arm_mapping_symbol_vec[]>.
4526 (arm_compare_mapping_symbols): Remove.
4527 (arm_find_mapping_symbol): Adjust to section_maps type change.
4528 (arm_objfile_data_free): Call delete on arm_per_objfile.
4529 (arm_record_special_symbol): Adjust to section_maps type change.
4530 Allocate arm_per_objfile with new.
4531
b65b566c
PW
45322019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4533
4534 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4535 with the command prefix.
4536
c2fc64f5
TT
45372019-06-25 Tom Tromey <tom@tromey.com>
4538
4539 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4540 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4541
fb54fa76
TT
45422019-06-25 Tom Tromey <tom@tromey.com>
4543
4544 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4545 type.
4546 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4547 protected.
4548
f7952c57
TT
45492019-06-25 Tom Tromey <tom@tromey.com>
4550
4551 * tui/tui-winsource.c
4552 (tui_source_window_base::set_is_exec_point_at): Add check against
4553 LOA_ADDRESS.
4554
17568d78
TT
45552019-06-25 Tom Tromey <tom@tromey.com>
4556
4557 * tui/tui-source.c (tui_set_source_content): Don't check before
4558 xfree.
4559 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4560
53e7cdba
TT
45612019-06-25 Tom Tromey <tom@tromey.com>
4562
4563 * tui/tui-winsource.h (tui_update_source_window_as_is)
4564 (tui_alloc_source_buffer, tui_line_is_displayed)
4565 (tui_addr_is_displayed): Change type of win_info.
4566 * tui/tui-winsource.c (tui_update_source_window_as_is)
4567 (tui_clear_source_content, tui_show_source_line)
4568 (tui_show_source_content, tui_source_window_base::refill)
4569 (tui_source_window_base::set_is_exec_point_at)
4570 (tui_source_window_base::set_is_exec_point_at)
4571 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4572 (tui_alloc_source_buffer, tui_line_is_displayed)
4573 (tui_addr_is_displayed): Change type of win_info. Update.
4574 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4575 (tui_source_window_base::do_make_visible_with_new_height):
4576 Update.
4577 * tui/tui-source.c (tui_set_source_content)
4578 (tui_set_source_content_nil)
4579 (tui_source_window::do_scroll_vertical): Update.
4580 * tui/tui-layout.c (show_layout): Update.
4581 * tui/tui-disasm.c (tui_set_disassem_content)
4582 (tui_disasm_window::do_scroll_vertical): Update.
4583 * tui/tui-data.h (tui_win_content): Remove.
4584 (struct tui_gen_win_info) <content, content_size>: Remove.
4585 (struct tui_source_element): Add initializers and destructor.
4586 (union tui_which_element, struct tui_win_element): Remove.
4587 (struct tui_source_window_base) <content>: New field.
4588 (struct tui_data_window): Remove destructor.
4589 (tui_alloc_content, tui_free_win_content)
4590 (tui_free_all_source_wins_content): Don't declare.
4591 * tui/tui-data.c (tui_initialize_static_data): Update.
4592 (init_content_element, tui_alloc_content): Remove.
4593 (~tui_gen_win_info): Update.
4594 (~tui_data_window, tui_free_all_source_wins_content)
4595 (tui_free_win_content, free_content, free_content_elements):
4596 Remove.
4597
7908abbf
TT
45982019-06-25 Tom Tromey <tom@tromey.com>
4599
4600 * tui/tui-winsource.h (tui_clear_source_content)
4601 (tui_erase_source_content, tui_show_source_content): Change type
4602 of win_info.
4603 * tui/tui-winsource.c (tui_clear_source_content)
4604 (tui_erase_source_content, tui_show_source_content): Change type
4605 of win_info.
4606 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4607 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4608 win_info.
4609 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4610 win_info.
4611 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4612
02c28df0
TT
46132019-06-25 Tom Tromey <tom@tromey.com>
4614
4615 * tui/tui-winsource.c (tui_clear_source_content)
4616 (tui_source_window_base::set_is_exec_point_at): Update.
4617 * tui/tui-source.c (tui_set_source_content_nil): Update.
4618 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4619 a bool.
4620 * tui/tui-data.c (init_content_element): Update.
4621
6658b1bf
TT
46222019-06-25 Tom Tromey <tom@tromey.com>
4623
4624 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4625 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4626 * tui/tui-layout.c (init_and_make_win): Update.
4627 * tui/tui.h (enum tui_win_type): Update.
4628 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4629 tui_win_is_auxillary.
4630 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4631 tui_win_is_auxillary.
4632
21e1c91e
TT
46332019-06-25 Tom Tromey <tom@tromey.com>
4634
4635 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4636 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4637 (tui_delete_data_content_windows, tui_display_all_data)
4638 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4639 Update.
4640 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4641 * tui/tui-regs.c (tui_last_regs_line_no)
4642 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4643 (tui_show_registers): Update.
4644 (tui_show_register_group): Return void. Update.
4645 (tui_display_registers_from, tui_display_reg_element_at_line)
4646 (tui_display_registers_from_line, tui_check_register_values):
4647 Update.
4648 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4649 member.
4650 (struct tui_data_window) <regs_content>: Now a std::vector.
4651 <regs_content_count>: Remove.
4652 (tui_add_content_elements, tui_free_data_content): Don't declare.
4653 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4654 (init_content_element): Remove DATA_WIN case. Add assert.
4655 (tui_add_content_elements): Remove.
4656 (tui_data_window): Update.
4657 (tui_free_data_content): Remove.
4658 (free_content_elements): Remove DATA_WIN case.
4659
115ac53b
TT
46602019-06-25 Tom Tromey <tom@tromey.com>
4661
4662 * tui/tui-data.c (tui_data_item_window): Update.
4663 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4664 * tui/tui-windata.c (tui_display_all_data)
4665 (tui_display_data_from_line): Update.
4666 (tui_check_data_values): Remove.
4667 * tui/tui-regs.c (tui_show_register_group)
4668 (tui_display_reg_element_at_line): Update.
4669 * tui/tui-hooks.c (tui_register_changed)
4670 (tui_refresh_frame_and_register_information): Call
4671 tui_check_register_values.
4672 * tui/tui-data.h (struct tui_data_window) <data_content,
4673 data_content_count, data_type>: Remove.
4674 (enum tui_data_type): Remove.
4675
4676 * tui/tui-data.c (tui_data_window::clear_detail)
4677 (~tui_data_window): Update.
4678
eaf9738b
TT
46792019-06-25 Tom Tromey <tom@tromey.com>
4680
4681 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4682 declare.
4683 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4684 Rename from tui_first_data_item_displayed. Update.
4685 (tui_data_window::refresh_all)
4686 (tui_data_window::do_scroll_vertical): Update.
4687 * tui/tui-data.h (struct tui_data_window)
4688 <first_data_item_displayed>: Declare new method.
4689
31ca4723
TT
46902019-06-25 Tom Tromey <tom@tromey.com>
4691
4692 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4693 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4694 contents...
4695 (tui_initialize_static_data): ...here.
4696
41bcff7f
TT
46972019-06-25 Tom Tromey <tom@tromey.com>
4698
4699 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4700 (tui_display_registers_from, tui_check_register_values): Update.
4701 (tui_display_register): Remove win_info parameter; update.
4702 (tui_get_register): Change type of parameters.
4703 * tui/tui-data.h (struct tui_data_element): Remove.
4704 (union tui_which_element) <data>: Remove.
4705 <data_window>: Change type.
4706 (struct tui_data_item_window): New.
4707 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4708 case. Add assert.
4709 (~tui_data_item_window): New destructor.
4710 (free_content_elements): Remove DATA_ITEM_WIN case.
4711
d2802c33
TT
47122019-06-25 Tom Tromey <tom@tromey.com>
4713
4714 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4715 Remove.
4716
dd835f8b
TT
47172019-06-25 Tom Tromey <tom@tromey.com>
4718
4719 * tui/tui-data.h (struct tui_command_element): Remove.
4720 (union tui_which_element) <command>: Remove.
4721 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4722 assert.
4723 (free_content_elements): Remove CMD_WIN case.
4724
bd7db367
TT
47252019-06-25 Tom Tromey <tom@tromey.com>
4726
4727 * tui/tui-layout.c (tui_set_layout): Update.
4728 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4729 * tui/tui-data.c (layout_def): Update.
4730
3add462f
TT
47312019-06-25 Tom Tromey <tom@tromey.com>
4732
4733 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4734 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4735 (tui_source_window_base::set_new_height): Update.
4736 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4737 Update.
4738 (tui_set_locator_fullname, tui_set_locator_info)
4739 (tui_show_frame_info): Update.
4740 * tui/tui-source.c (tui_set_source_content)
4741 (tui_source_is_displayed): Update.
4742 * tui/tui-layout.c (show_source_disasm_command, show_data)
4743 (show_source_or_disasm_and_command): Update.
4744 * tui/tui-disasm.c (tui_set_disassem_content)
4745 (tui_get_begin_asm_address): Update.
4746 * tui/tui-data.h (struct tui_locator_element): Remove.
4747 (union tui_which_element) <locator>: Remove.
4748 (struct tui_locator_window): New.
4749 (tui_locator_win_info_ptr): Change return type.
4750 * tui/tui-data.c (_locator): Change type.
4751 (tui_locator_win_info_ptr): Change return type.
4752 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4753 (tui_alloc_content): Add assert.
4754
489e9d8b
TT
47552019-06-25 Tom Tromey <tom@tromey.com>
4756
4757 * tui/tui-winsource.c
4758 (tui_exec_info_window::maybe_allocate_content): New method.
4759 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4760 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4761 (make_source_or_disasm_window): Add cast.
4762 * tui/tui-data.h (union tui_which_element) <simple_string>:
4763 Remove.
4764 (struct tui_source_info): New.
4765 (struct tui_source_window_base) <execution_info>: Change type.
4766 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4767 case, and add assert.
4768 (tui_alloc_content): Add assert.
4769
c3fabb7d
TT
47702019-06-25 Tom Tromey <tom@tromey.com>
4771
4772 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4773 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4774 * tui/tui-data.c (tui_alloc_win_info): Remove.
4775
bbc228ee
TT
47762019-06-25 Tom Tromey <tom@tromey.com>
4777
4778 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4779 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4780 can_highlight.
4781
5fcee43a
TT
47822019-06-25 Tom Tromey <tom@tromey.com>
4783
4784 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4785 make_visible_with_new_height method.
4786 (tui_win_info::make_visible_with_new_height): New method.
4787 (tui_source_window_base::do_make_visible_with_new_height)
4788 (tui_data_window::do_make_visible_with_new_height)
4789 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4790 (make_visible_with_new_height): Remove.
4791 (tui_resize_all, tui_adjust_win_heights): Use
4792 make_visible_with_new_height method.
4793 * tui/tui-data.h (struct tui_win_info)
4794 <do_make_visible_with_new_height, make_visible_with_new_height>:
4795 New methods.
4796 (struct tui_source_window_base, struct tui_data_window)
4797 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4798 methods.
4799
d83f1fe6
TT
48002019-06-25 Tom Tromey <tom@tromey.com>
4801
4802 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4803 method.
4804 (update_tab_width): Call update_tab_width method.
4805 * tui/tui-data.h (struct tui_win_info)
4806 (struct tui_source_window_base) <update_tab_width>: New methods.
4807
17374de4
TT
48082019-06-25 Tom Tromey <tom@tromey.com>
4809
4810 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4811 parameter.
4812 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4813 parameter.
4814 (tui_gen_win_info::make_visible): Update.
4815 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4816 parameter.
4817 * tui/tui-data.h (enum tui_box): New enum.
4818 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4819
f936bca2
TT
48202019-06-25 Tom Tromey <tom@tromey.com>
4821
4822 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4823 init_and_make_win for EXEC_INFO_WIN.
4824 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4825 longer inline.
4826 (struct tui_win_info) <~tui_win_info>: Inline.
4827 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4828 Don't declare.
4829 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4830 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4831 Remove.
4832 (tui_initialize_static_data): Update.
4833 (~tui_gen_win_info): Handle more cleanup here.
4834 (~tui_source_window_base): Delete "execution_info".
4835 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4836
d6ba6a11
TT
48372019-06-25 Tom Tromey <tom@tromey.com>
4838
4839 * tui/tui-layout.c (make_command_window): Don't set
4840 can_highlight.
4841 (show_source_disasm_command): Call the reset method.
4842 (show_data): Don't set can_highlight. Call the reset method.
4843 (tui_gen_win_info::reset): Rename from init_gen_win_info
4844 (init_and_make_win): Simplify. Return tui_gen_win_info.
4845 (show_source_or_disasm_and_command): Call the reset method.
4846 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4847 (struct tui_cmd_window): Set can_highlight.
4848
48a3bd16
TT
48492019-06-25 Tom Tromey <tom@tromey.com>
4850
4851 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4852 from make_visible.
4853 (tui_make_visible, tui_make_invisible): Rewrite.
4854 (tui_win_info::make_visible): Remove.
4855 (tui_source_window_base::make_visible): Update.
4856 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4857 method. Moved from...
4858 (struct tui_win_info) <make_visible>: ...here.
4859
c3bd716f
TT
48602019-06-25 Tom Tromey <tom@tromey.com>
4861
4862 * tui/tui-winsource.c
4863 (tui_source_window_base::do_scroll_horizontal): Remove direction
4864 parameter.
4865 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4866 direction parameter.
4867 * tui/tui-win.c (tui_win_info::forward_scroll)
4868 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4869 (tui_win_info::right_scroll): Update.
4870 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4871 direction parameter.
4872 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4873 direction parameter.
4874 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4875 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4876 Remove direction parameter.
4877 (struct tui_source_window_base, struct tui_source_window)
4878 (struct tui_disasm_window, struct tui_data_window)
4879 (struct tui_cmd_window): Update.
4880
21c32dca
TT
48812019-06-25 Tom Tromey <tom@tromey.com>
4882
4883 * tui/tui-winsource.h (tui_set_exec_info_content)
4884 (tui_show_exec_info_content, tui_erase_exec_info_content)
4885 (tui_clear_exec_info_content, tui_update_exec_info): Change
4886 argument to tui_source_window_base.
4887 * tui/tui-winsource.c (tui_set_exec_info_content)
4888 (tui_show_exec_info_content, tui_erase_exec_info_content)
4889 (tui_clear_exec_info_content, tui_update_exec_info): Change
4890 argument to tui_source_window_base.
4891
73fbdc65
TT
48922019-06-25 Tom Tromey <tom@tromey.com>
4893
4894 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4895 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4896
33325343
TT
48972019-06-25 Tom Tromey <tom@tromey.com>
4898
4899 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4900 check.
4901
29d2c474
TT
49022019-06-25 Tom Tromey <tom@tromey.com>
4903
4904 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4905 type to void.
4906 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4907 type to void.
4908 * tui/tui-source.c (tui_set_source_content): Update.
4909 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4910
152f3f4b
TT
49112019-06-25 Tom Tromey <tom@tromey.com>
4912
4913 * tui/tui-win.c (window_name_completer, tui_set_focus)
4914 (tui_all_windows_info): Use name method.
4915 * tui/tui-data.h (struct tui_gen_win_info)
4916 (struct tui_source_window, struct tui_disasm_window)
4917 (struct tui_data_window, struct tui_cmd_window) <name>: New
4918 method.
4919 (tui_win_name): Don't declare.
4920 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4921 (tui_win_name): Remove.
4922
be4da588
TT
49232019-06-25 Tom Tromey <tom@tromey.com>
4924
4925 * tui/tui-winsource.h (tui_update_source_window)
4926 (tui_update_source_window_as_is): Change parameter type.
4927 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4928 to be a tui_source_window_base.
4929 (tui_update_source_window_as_is): Likewise.
4930 * tui/tui-win.c (make_visible_with_new_height): Update.
4931
5b81daba
TT
49322019-06-25 Tom Tromey <tom@tromey.com>
4933
4934 * tui/tui-winsource.c (tui_erase_source_content)
4935 (tui_show_source_content, tui_show_exec_info_content)
4936 (tui_erase_exec_info_content): Use refresh_window method.
4937 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4938 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4939 from tui_refresh_win.
4940 (tui_data_window::refresh_window): New method.
4941 (tui_win_info::refresh, tui_source_window_base::refresh)
4942 (tui_refresh_all): Use refresh_window method.
4943 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4944 method.
4945 * tui/tui-regs.c (tui_display_register): Call refresh_window
4946 method.
4947 * tui/tui-layout.c (show_source_disasm_command)
4948 (show_source_or_disasm_and_command): Call refresh_window method.
4949 * tui/tui-data.h (struct tui_gen_win_info)
4950 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4951 New method.
4952
cb2ce893
TT
49532019-06-25 Tom Tromey <tom@tromey.com>
4954
4955 * tui/tui.c (tui_rl_other_window, tui_enable)
4956 (tui_is_window_visible, tui_get_command_dimension): Update.
4957 * tui/tui-winsource.c (tui_update_source_window_as_is)
4958 (tui_clear_source_content, tui_erase_source_content)
4959 (tui_show_source_line, tui_source_window_base::refill)
4960 (tui_source_window_base::do_scroll_horizontal)
4961 (tui_source_window_base::set_is_exec_point_at)
4962 (tui_update_breakpoint_info, tui_set_exec_info_content)
4963 (tui_alloc_source_buffer, tui_line_is_displayed)
4964 (tui_addr_is_displayed): Update.
4965 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4966 (tui_check_and_display_highlight_if_needed)
4967 (tui_win_info::make_visible, tui_win_info::refresh)
4968 (tui_refresh_all): Update.
4969 * tui/tui-windata.c (tui_first_data_item_displayed)
4970 (tui_delete_data_content_windows, tui_erase_data_content)
4971 (tui_display_all_data, tui_data_window::refresh_all)
4972 (tui_check_data_values): Update.
4973 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4974 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4975 (tui_win_info::backward_scroll, tui_refresh_all_win)
4976 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4977 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4978 (tui_source_window_base::set_new_height)
4979 (tui_data_window::set_new_height)
4980 (make_invisible_and_set_new_height)
4981 (make_visible_with_new_height, new_height_ok)
4982 (parse_scrolling_args): Update.
4983 * tui/tui-stack.c (tui_show_frame_info): Update.
4984 * tui/tui-source.c (tui_set_source_content)
4985 (tui_set_source_content_nil, tui_source_is_displayed)
4986 (tui_source_window::do_scroll_vertical): Update.
4987 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4988 (tui_display_registers_from, tui_display_reg_element_at_line)
4989 (tui_check_register_values, tui_reg_command): Update.
4990 * tui/tui-layout.c (tui_default_win_height)
4991 (show_source_disasm_command, show_data, init_and_make_win)
4992 (show_source_or_disasm_and_command): Update.
4993 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4994 (tui_redisplay_readline, tui_mld_flush)
4995 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4996 (tui_getc): Update.
4997 * tui/tui-disasm.c (tui_set_disassem_content)
4998 (tui_disasm_window::do_scroll_vertical): Update.
4999 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5000 Now virtual.
5001 (struct tui_win_info): Derive from tui_gen_win_info.
5002 <~tui_win_info>: Mark as override.
5003 <generic>: Remove member.
5004 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5005 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5006 (~tui_data_window, ~tui_win_info)
5007 (tui_free_all_source_wins_content): Update.
5008 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5009
ab313b35
TT
50102019-06-25 Tom Tromey <tom@tromey.com>
5011
5012 * tui/tui-layout.c (init_and_make_win): Use new.
5013 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5014 destructor, initializers.
5015 (tui_alloc_generic_win_info): Don't declare.
5016 * tui/tui-data.c (_locator): Add argument to constructor.
5017 (source_win, disasm_win): New globals.
5018 (exec_info): Remove.
5019 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5020 Update.
5021 (tui_alloc_generic_win_info): Remove.
5022 (init_content_element): Use new.
5023 (tui_win_info::tui_win_info): Update.
5024 (free_content_elements) <case DATA_WIN>: Use delete.
5025
dc2c33e4
TT
50262019-06-25 Tom Tromey <tom@tromey.com>
5027
5028 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5029 * tui/tui-windata.c (tui_first_data_item_displayed)
5030 (tui_delete_data_content_windows): Update.
5031 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5032 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5033 (tui_display_registers_from, tui_check_register_values): Update.
5034 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5035 pointer.
5036 * tui/tui-data.c (init_content_element): Update. Allocate the new
5037 window.
5038 (tui_free_data_content): Update.
5039 (free_content_elements) <case DATA_WIN>: Free the window.
5040
214a5cbe
TT
50412019-06-25 Tom Tromey <tom@tromey.com>
5042
5043 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5044 Update.
5045 * tui/tui-layout.c (make_command_window)
5046 (show_source_disasm_command, show_data, init_and_make_win)
5047 (show_source_or_disasm_and_command): Update.
5048 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5049 method.
5050 <can_highight, is_highlighted>: Now bool.
5051 (tui_set_win_highlight): Don't declare.
5052 * tui/tui-data.c (tui_set_win_highlight): Remove.
5053
8e2daf15
TT
50542019-06-25 Tom Tromey <tom@tromey.com>
5055
5056 * tui/tui-wingeneral.c (make_visible): Remove check of window
5057 type.
5058
8903bd8a
TT
50592019-06-25 Tom Tromey <tom@tromey.com>
5060
5061 * tui/tui-win.c (tui_win_info::max_height)
5062 (tui_cmd_window::max_height): New methods.
5063 (new_height_ok): Call max_height.
5064 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5065 <max_height>: New method.
5066
3f02ce1e
TT
50672019-06-25 Tom Tromey <tom@tromey.com>
5068
5069 * tui/tui-win.c (tui_source_window_base::set_new_height)
5070 (tui_data_window::set_new_height): New methods.
5071 (make_invisible_and_set_new_height): Call set_new_height method.
5072 * tui/tui-data.h (struct tui_win_info)
5073 (struct tui_source_window_base, struct tui_data_window)
5074 <set_new_height>: New method.
5075
1825f487
TT
50762019-06-25 Tom Tromey <tom@tromey.com>
5077
5078 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5079 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5080 tui_refresh_data_win.
5081 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5082 method.
5083 (tui_refresh_all_win): Call the refresh_all method.
5084 (tui_set_focus): Likewise.
5085 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5086 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5087 Likewise.
5088
ad54d15b
TT
50892019-06-25 Tom Tromey <tom@tromey.com>
5090
5091 * tui/tui-winsource.h (tui_refill_source_window)
5092 (tui_set_is_exec_point_at): Don't declare.
5093 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5094 (tui_source_window_base::refill): Rename from
5095 tui_refill_source_window.
5096 (tui_source_window_base::do_scroll_horizontal): Update.
5097 (tui_source_window_base::set_is_exec_point_at): Rename from
5098 tui_set_is_exec_point_at.
5099 (tui_update_all_breakpoint_info): Update.
5100 * tui/tui-stack.c (tui_show_frame_info): Update.
5101 * tui/tui-layout.c (show_data): Add cast.
5102 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5103 * tui/tui-data.h (struct tui_source_window_base) <refill,
5104 set_is_exec_point_at>: New methods.
5105 (tui_source_windows, tui_add_to_source_windows): Update types.
5106 (tui_add_to_source_windows): Remove redundant declaration.
5107 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5108 (tui_source_windows): Change return type.
5109 (tui_clear_source_windows_detail): Update.
5110 (tui_add_to_source_windows): Change type of parameter.
5111 (tui_free_all_source_wins_content): Update.
5112
2042b506
TT
51132019-06-25 Tom Tromey <tom@tromey.com>
5114
5115 * tui/tui-wingeneral.c (tui_win_info::refresh)
5116 (tui_source_window_base::refresh): New methods.
5117 (tui_refresh_all): Call the refresh method.
5118 * tui/tui-data.h (struct tui_win_info)
5119 (struct tui_source_window_base) <refresh>: New method.
5120
56122977
TT
51212019-06-25 Tom Tromey <tom@tromey.com>
5122
5123 * tui/tui.h (tui_is_window_visible): Return bool.
5124 * tui/tui.c (tui_is_window_visible): Return bool.
5125 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5126 (tui_make_visible, tui_make_invisible)
5127 (tui_win_info::make_visible)
5128 (tui_source_window_base::make_visible, make_all_visible)
5129 (tui_make_all_visible, tui_make_all_invisible): Update.
5130 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5131 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5132 bool.
5133 (struct tui_win_info, struct tui_source_window_base)
5134 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5135 * tui/tui-data.c (tui_init_generic_part): Update.
5136
cda37efb
TT
51372019-06-25 Tom Tromey <tom@tromey.com>
5138
5139 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5140 (tui_source_window_base::make_visible): New methods.
5141 (make_all_visible): Make method call.
5142 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5143 (struct tui_source_window_base, struct tui_cmd_window): Override
5144 make_visible.
5145 (tui_win_is_source_type): Don't declare.
5146 * tui/tui-data.c (tui_win_is_source_type): Remove.
5147
6a0ee02c
TT
51482019-06-25 Tom Tromey <tom@tromey.com>
5149
5150 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5151 NULL check.
5152
63901aec
TT
51532019-06-25 Tom Tromey <tom@tromey.com>
5154
5155 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5156 Inline constructor. Add initializers for members.
5157 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5158 constructors; now inline in class.
5159
ceb13a13
TT
51602019-06-25 Tom Tromey <tom@tromey.com>
5161
5162 * tui/tui-regs.c (tui_show_registers): Update.
5163 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5164 bool.
5165 * tui/tui-data.c (tui_data_window::clear_detail)
5166 (tui_data_window): Update.
5167
238eb706
TT
51682019-06-25 Tom Tromey <tom@tromey.com>
5169
5170 * tui/tui-windata.c (tui_display_all_data)
5171 (tui_display_data_from_line, tui_display_data_from)
5172 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5173 Update.
5174 * tui/tui-regs.c (tui_last_regs_line_no)
5175 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5176 (tui_show_registers, tui_show_register_group)
5177 (tui_display_registers_from, tui_display_reg_element_at_line)
5178 (tui_display_registers_from_line, tui_check_register_values)
5179 (tui_reg_next, tui_reg_prev): Update.
5180 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5181 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5182 tui_data_window.
5183 (struct tui_win_info) <detail>: Remove. Add new fields from
5184 tui_data_info.
5185 (TUI_DATA_WIN): Add cast.
5186 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5187 (~tui_data_window): Simplify.
5188
81491aa0
TT
51892019-06-25 Tom Tromey <tom@tromey.com>
5190
5191 * tui/tui-layout.c (show_source_disasm_command)
5192 (show_source_or_disasm_and_command): Update.
5193 * tui/tui-io.c (update_cmdwin_start_line)
5194 (tui_redisplay_readline): Update.
5195 * tui/tui-data.h (struct tui_command_info): Remove.
5196 (struct tui_win_info) <detail>: Remove command_info member.
5197 (struct tui_data_window) <start_line>: New member, from
5198 tui_command_info.
5199 (TUI_CMD_WIN): Add casts.
5200
e6e41501
TT
52012019-06-25 Tom Tromey <tom@tromey.com>
5202
5203 * tui/tui-winsource.c (tui_update_source_window)
5204 (tui_refill_source_window)
5205 (tui_source_window_base::do_scroll_horizontal)
5206 (tui_update_breakpoint_info, tui_set_exec_info_content)
5207 (tui_show_exec_info_content, tui_erase_exec_info_content)
5208 (tui_clear_exec_info_content): Update.
5209 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5210 Update.
5211 * tui/tui-win.c (make_invisible_and_set_new_height)
5212 (make_visible_with_new_height): Update.
5213 * tui/tui-source.c (tui_set_source_content)
5214 (tui_show_symtab_source): Update.
5215 * tui/tui-layout.c (extract_display_start_addr)
5216 (show_source_disasm_command, show_data)
5217 (make_source_or_disasm_window)
5218 (show_source_or_disasm_and_command): Update.
5219 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5220 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5221 "gdbarch".
5222 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5223 to tui_source_window_base.
5224 (struct tui_win_info) <detail>: Remove source_info member.
5225 (struct tui_source_window_base) <has_locator>: Inline.
5226 Move contents from tui_source_info; rename has_locator member to
5227 m_has_locator.
5228 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5229 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5230 header file.
5231 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5232 Simplify.
5233 (tui_free_all_source_wins_content): Cast to
5234 tui_source_window_base.
5235
44f0e208
TT
52362019-06-25 Tom Tromey <tom@tromey.com>
5237
5238 * tui/tui-win.c (make_invisible_and_set_new_height)
5239 (make_visible_with_new_height): Call has_locator method.
5240 * tui/tui-layout.c (show_source_disasm_command, show_data)
5241 (show_source_or_disasm_and_command): Update for bool change.
5242 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5243 (tui_win_info) <has_locator>: New method.
5244 (struct tui_source_window_base) <has_locator>: New method.
5245 (tui_win_has_locator): Don't declare.
5246 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5247 from tui_win_has_locator.
5248 (tui_source_window_base): Use false, not FALSE.
5249
7778b912
TT
52502019-06-25 Tom Tromey <tom@tromey.com>
5251
5252 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5253 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5254 clear_detail method directly.
5255 (tui_clear_win_detail): Remove.
5256
f83d391c
TT
52572019-06-25 Tom Tromey <tom@tromey.com>
5258
5259 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5260 "this", not TUI_DISASM_WIN.
5261
13446e05
TT
52622019-06-25 Tom Tromey <tom@tromey.com>
5263
5264 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
5265 declare.
5266 * tui/tui-winsource.c
5267 (tui_source_window_base::do_scroll_horizontal): Rename from
5268 tui_horizontal_source_scroll.
5269 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5270 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5271 from tui_vertical_data_scroll.
5272 * tui/tui-win.h (tui_scroll): Don't declare.
5273 * tui/tui-win.c (tui_win_info::forward_scroll)
5274 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5275 (tui_win_info::right_scroll): Rename and update.
5276 (tui_scroll_forward_command, tui_scroll_backward_command)
5277 (tui_scroll_left_command, tui_scroll_right_command): Update.
5278 (tui_scroll): Remove.
5279 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5280 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5281 from tui_vertical_source_scroll.
5282 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5283 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5284 from tui_vertical_disassem_scroll.
5285 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5286 do_scroll_horizontal>: New methods.
5287 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5288 Likewise.
5289 (struct tui_source_window_base): Add do_scroll_horizontal.
5290 (struct tui_source_window, struct tui_disasm_window): Add
5291 do_scroll_vertical.
5292 (struct tui_data_window, struct tui_cmd_window): Add
5293 do_scroll_horizontal and do_scroll_vertical.
5294 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5295
5cf82909
TT
52962019-06-25 Tom Tromey <tom@tromey.com>
5297
5298 * tui/tui-data.h (struct tui_source_window_base): New struct.
5299 (struct tui_source_window): Derive from tui_source_window_base.
5300 (struct tui_disasm_window): New struct.
5301 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5302 from tui_source_window::clear_detail.
5303 (tui_source_window_base): Rename from tui_source_window.
5304 (~tui_source_window_base): Rename from ~tui_source_window.
5305 (tui_alloc_win_info): Create a tui_disasm_window.
5306
ee1d42d6
TT
53072019-06-25 Tom Tromey <tom@tromey.com>
5308
5309 * tui/tui-data.h (struct tui_source_window)
5310 (struct tui_data_window): Declare destructors.
5311 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5312 destructors.
5313 (tui_win_info): Simplify.
5314
b4eb2452
TT
53152019-06-25 Tom Tromey <tom@tromey.com>
5316
5317 * tui/tui-winsource.c (tui_display_main)
5318 (tui_update_source_windows_with_addr)
5319 (tui_update_all_breakpoint_info): Update.
5320 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5321 (new_height_ok, parse_scrolling_args): Update.
5322 * tui/tui-stack.c (tui_show_frame_info): Update.
5323 * tui/tui-data.h (struct tui_list): Remove.
5324 (tui_source_windows): Return a reference to a std::vector.
5325 * tui/tui-data.c (source_windows): Now a std::vector.
5326 (tui_source_windows): Change return type.
5327 (tui_clear_source_windows): Rewrite.
5328 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5329 (tui_free_all_source_wins_content): Rewrite.
5330
8761a91b
TT
53312019-06-25 Tom Tromey <tom@tromey.com>
5332
5333 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5334 (struct tui_data_window, struct tui_cmd_window): Declare
5335 clear_detail method.
5336 * tui/tui-data.c (tui_source_window::clear_detail)
5337 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5338 methods.
5339 (tui_clear_win_detail): Simplify.
5340
0ed69eda
TT
53412019-06-25 Tom Tromey <tom@tromey.com>
5342
5343 * tui/tui-layout.c (make_source_window, make_disasm_window)
5344 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5345 Return the new window.
5346 (show_source_disasm_command, show_data)
5347 (show_source_or_disasm_and_command): Update.
5348
82432e10
TT
53492019-06-25 Tom Tromey <tom@tromey.com>
5350
5351 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5352 parameter. Return the new window.
5353 (show_source_disasm_command): Update and remove NULL check.
5354 (show_source_or_disasm_and_command): Update.
5355
ec328aa5
TT
53562019-06-25 Tom Tromey <tom@tromey.com>
5357
5358 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5359
33b906ab
TT
53602019-06-25 Tom Tromey <tom@tromey.com>
5361
5362 * tui/tui-data.h (struct tui_win_info): Make constructor
5363 protected. Make destructor virtual. Add initializers.
5364 (tui_source_window, tui_data_window, tui_cmd_window): New
5365 classes.
5366 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5367 constructor. Add "type" parameter.
5368 (tui_source_window, tui_data_window, tui_cmd_window): New
5369 constructors.
5370 (tui_alloc_win_info): Instantiate the appropriate subclass.
5371
e7e11af4
TT
53722019-06-25 Tom Tromey <tom@tromey.com>
5373
5374 * tui/tui-win.c (tui_resize_all): Use delete.
5375 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5376 destructor.
5377 (tui_free_window): Don't declare.
5378 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5379 Update.
5380
6792b55e
TT
53812019-06-25 Tom Tromey <tom@tromey.com>
5382
5383 * tui/tui-data.h (struct tui_win_info): Add constructor.
5384 * tui/tui-data.c (tui_alloc_win_info): Use new.
5385 (tui_free_window): Use delete.
5386
f95675e1
TT
53872019-06-22 Tom Tromey <tom@tromey.com>
5388
5389 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5390 declare.
5391 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5392
5bff081c
TT
53932019-06-22 Tom Tromey <tom@tromey.com>
5394
5395 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5396 declare.
5397 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5398
47e3f474
TV
53992019-06-22 Tom de Vries <tdevries@suse.de>
5400
5401 * dwarf2read.c (create_addrmap_from_aranges)
5402 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5403 instead of '%zu'.
5404
fd5866f6
SM
54052019-06-21 Simon Marchi <simon.marchi@efficios.com>
5406
5407 * dwarf2read.h (dwarf2_section_info_def): Remove.
5408 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5409 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5410 std::vector<dwarf2_section_info>.
5411 (struct dwo_file) <~dwo_file>: Remove.
5412 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5413 types field.
5414 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5415 (dwarf2_read_debug_names): Likewise.
5416 (create_debug_types_hash_table): Change parameter type to
5417 array_view, adjust code accordingly.
5418 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5419 (partial_die_info::fixup): Likewise.
5420 (determine_prefix): Likewise.
5421 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5422
fb1eb2f9
SM
54232019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5424
5425 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5426 gdb_bfd_ref_ptr.
5427 <~dwo_file>: Remove call to gdb_bfd_unref.
5428 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5429 gdb_bfd_ref_ptr::get.
5430
51ac9db5
SM
54312019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5432
5433 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5434 type to htab_up.
5435 * dwarf2read.c (struct dwo_file): Initialize fields.
5436 <~dwo_file>: New.
5437 (free_dwo_file): Remove, move content to ~dwo_file.
5438 (struct dwo_file_deleter): Remove.
5439 (dwo_file_up>: Remove custom deleter.
5440 (free_dwo_files): Remove.
5441 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5442 dwo_files.
5443 (process_skeletonless_type_units): Call unique_ptr::get.
5444 (allocate_dwo_file_hash_table): Add deleter to created hash
5445 table. Change return type to htab_up.
5446 (lookup_dwo_file_slot): Don't memset dwo_file, call
5447 unique_ptr::get.
5448 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5449 (create_dwo_unit_in_dwp_v2): Likewise.
5450 (open_and_init_dwo_file): Likewise.
5451 (free_dwo_file_from_slot): Remove.
5452
dc4ccb6f
SM
54532019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5454
5455 * dwarf2read.h (struct dwarf2_section_info) <readin,
5456 is_virtual>: Change type to bool.
5457 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5458 true instead of 1.
5459
e6a1c5cb
TT
54602019-06-19 Tom Tromey <tom@tromey.com>
5461
5462 * tui/tui-data.h (tui_init_content_element): Don't declare.
5463
6f6ffbeb
TT
54642019-06-19 Tom Tromey <tom@tromey.com>
5465
5466 * tui/tui-data.h (tui_init_win_info): Don't declare.
5467
f23f598e
TV
54682019-06-19 Tom de Vries <tdevries@suse.de>
5469
5470 * dwarf2read.h (abstract_to_concrete): Change type to
5471 std::unordered_map<sect_offset, std::vector<sect_offset>,
5472 gdb::hash_enum<sect_offset>>.
5473
680e1bee
TT
54742019-06-19 Tom Tromey <tromey@adacore.com>
5475
5476 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5477 EVAL_AVOID_SIDE_EFFECTS specially.
5478
dcf37923
TT
54792019-06-19 Tom Tromey <tromey@adacore.com>
5480
5481 * source-cache.c (highlighter): New global.
5482 (source_cache::get_source_lines): Create a highlighter on demand.
5483
494986d5
AB
54842019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5485
5486 * defs.h (deprecated_interactive_hook): Delete declaration.
5487 * interps.c (clear_interpreter_hooks): Remove use of
5488 deprecated_interactive_hook.
5489 * top.c (deprecated_interactive_hook): Delete definition.
5490 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5491
3360b6e7
TV
54922019-06-18 Tom de Vries <tdevries@suse.de>
5493
5494 PR gdb/24515
5495 * dwarf2read.h (abstract_to_concrete): Change type from
5496 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5497 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5498 * dwarf2read.c (read_variable): Update.
5499 (dwarf2_fetch_die_loc_sect_off): Update.
5500
310b3441
TV
55012019-06-17 Tom de Vries <tdevries@suse.de>
5502
5503 PR gdb/24617
5504 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5505 accessing parent[parent_len - 1].
5506
ba9777be
PP
55072019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5508
5509 PR gdb/24364
5510 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5511 call dtrace_process_dof with NULL dof.
5512
2b9f6e89
TV
55132019-06-16 Tom de Vries <tdevries@suse.de>
5514
5515 PR gdb/24445
5516 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5517
431b3ead
TT
55182019-06-16 Tom Tromey <tom@tromey.com>
5519
5520 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5521 (make_all_visible): Use address of member.
5522
d04b44a1
TT
55232019-06-16 Tom Tromey <tom@tromey.com>
5524
5525 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5526 (tui_free_window, free_content, free_content_elements): Remove
5527 unnecessary cast.
5528 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5529 cast.
5530 * tui/tui-regs.c (tui_show_register_group)
5531 (tui_display_registers_from, tui_display_reg_element_at_line):
5532 Remove unnecessary cast.
5533
bf5142e7
AB
55342019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5535
5536 * linux-nat.c (normal_mask): Delete.
5537 (_initialize_linux_nat): Don't initialise normal_mask.
5538
c4973306
SM
55392019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5540
5541 PR gdb/24445
5542 * dwarf-index-write.h (write_psymtabs_to_index): Add
5543 dwz_basename parameter.
5544 * dwarf-index-write.c (write_gdbindex): Move file writing to
5545 write_gdbindex_1. Change return type void.
5546 (assert_file_size): Move up, remove filename parameter.
5547 (write_gdbindex_1): New function.
5548 (write_debug_names): Change return type to void, call
5549 assert_file_size.
5550 (struct index_wip_file): New struct.
5551 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5552 file logic to index_wip_file. Write index for dwz file if
5553 needed.
5554 (save_gdb_index_command): Pass basename of dwz file, if present.
5555 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5556 build-id of dwz file, if present.
5557 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5558 (dwarf2_get_dwz_file): Likewise.
5559 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5560 (dwarf2_get_dwz_file): Likewise.
5561
395f9c91
TT
55622019-06-16 Tom Tromey <tom@tromey.com>
5563
5564 * coffread.c (process_coff_symbol): Use xstrdup.
5565 * value.c (create_internalvar): Use xstrdup.
5566
cafb3438
TT
55672019-06-16 Tom Tromey <tom@tromey.com>
5568
5569 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5570 * breakpoint.c (stopin_command, stopat_command)
5571 (until_break_command, decode_location_default): Remove unnecessary
5572 cast.
5573 * utils.c (subset_compare): Remove unnecessary cast.
5574 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5575 cast.
5576 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5577 cast.
5578 * infcmd.c (path_command): Remove unnecessary cast.
5579 * coffread.c (decode_type): Remove unnecessary cast.
5580 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5581 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5582 * tui/tui-stack.c (tui_show_locator_content)
5583 (tui_show_frame_info): Remove unnecessary cast.
5584 * tui/tui-win.c (tui_scroll_forward_command)
5585 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5586 (parse_scrolling_args): Remove unnecessary cast.
5587 * tui/tui-data.c (init_win_info, tui_del_window)
5588 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5589 (free_content_elements): Remove unnecessary cast.
5590 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5591 unnecessary cast.
5592 * tui/tui-source.c (tui_set_source_content)
5593 (tui_vertical_source_scroll): Remove unnecessary cast.
5594 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5595 cast.
5596 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5597 * tui/tui-regs.c (tui_display_registers_from)
5598 (tui_display_register): Remove unnecessary cast.
5599 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5600 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5601 (make_visible): Remove unnecessary cast.
5602 * tui/tui-winsource.c (tui_erase_source_content)
5603 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5604 unnecessary cast.
5605 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5606 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5607 * stabsread.c (read_type, read_array_type, read_range_type):
5608 Remove unnecessary cast.
5609 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5610 (parse_symbol, parse_type, upgrade_type, parse_external)
5611 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5612 unnecessary cast.
5613 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5614
730ead81
TT
56152019-06-16 Tom Tromey <tom@tromey.com>
5616
5617 * tui/tui-data.c (tui_alloc_generic_win_info)
5618 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5619 checks.
5620
584a927c
AB
56212019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5622 Andrew Burgess <andrew.burgess@embecosm.com>
5623
5624 * f-typeprint.c (f_print_type): Don't return early for not
5625 associated or not allocated types.
5626 (f_type_print_varspec_suffix): Add print_rank parameter and print
5627 ranks of array types in case they dangling.
5628 (f_type_print_base): Add print_rank parameter.
5629
30056ea0
AB
56302019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5631
5632 * NEWS: Mention new MI commands.
5633 * break-catch-throw.c (enum exception_event_kind): Move to
5634 breakpoint.h.
5635 (print_mention_exception_catchpoint): Output text as a single
5636 message.
5637 (catch_exception_command_1): Rename to...
5638 (catch_exception_event): ...this, make non-static, update header
5639 command, and change some parameter types.
5640 (catch_catch_command): Update for changes to
5641 catch_exception_command_1.
5642 (catch_throw_command): Likewise.
5643 (catch_rethrow_command): Likewise.
5644 * breakpoint.c (enum exception_event_kind): Delete.
5645 * breakpoint.h (enum exception_event_kind): Moved here from
5646 break-catch-throw.c.
5647 (catch_exception_event): Declare.
5648 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5649 (mi_cmd_catch_throw): New function.
5650 (mi_cmd_catch_rethrow): New function.
5651 (mi_cmd_catch_catch): New function.
5652 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5653 'catch-catch' entries.
5654 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5655 (mi_cmd_catch_rethrow): Declare.
5656 (mi_cmd_catch_catch): Declare.
5657
ec8e2b6d
AB
56582019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5659
5660 * annotate.c (annotate_source_line): Change return type to void,
5661 update implementation to match.
5662 * annotate.h (annotate_source_line): Change return type to void,
5663 update header comment.
5664 * stack.c (print_frame_info): Don't change what frame information
5665 is printed based on whether annotations are on or not.
5666
0d3abd8c
AB
56672019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5668
5669 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5670 (annotate_source): Make static.
5671 (annotate_source_line): Moved from source.c and renamed from
5672 identify_source_line. Update the return type.
5673 * annotate.h (annotate_source): Delete declaration.
5674 (annotate_source_line): Declaration moved from source.h, and
5675 renamed from identify_source_line. Return type updated.
5676 * source.c (identify_source_line): Moved to annotate.c and renamed
5677 to annotate_source_line.
5678 (info_line_command): Remove check of annotation_level.
5679 * source.h (identify_source_line): Move declaration to annotate.h
5680 and rename to annotate_source_line.
5681 * stack.c: Add 'annotate.h' include.
5682 (print_frame_info): Remove check of annotation_level before
5683 calling annotate_source_line.
5684
00df30ae
AB
56852019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5686
5687 * source-cache.c (source_cache::get_plain_source_lines): Use
5688 open_source_file_with_line_charpos instead of just
5689 open_source_file, remove call to find_source_lines.
5690 (source_cache::get_source_lines): Likewise.
5691 * source.c (find_source_lines): Make static.
5692 (get_filename_and_charpos): Renamed into...
5693 (open_source_file_with_line_charpos): ..this along with changes to
5694 return a scoped_fd, and some other minor clean ups.
5695 (identify_source_line): Use open_source_file_with_line_charpos.
5696 (search_command_helper): Use open_source_file_with_line_charpos
5697 instead of just open_source_file, remove call to
5698 find_source_lines.
5699 * source.h (open_source_file_with_line_charpos): Declare new
5700 function.
5701 (find_source_lines): Delete declaration.
5702
afda45a2
AB
57032019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5704
5705 * source.c (get_filename_and_charpos): Remove fullname
5706 parameter.
5707 (identify_source_line): Update call to get_filename_and_charpos.
5708
0735b091
TT
57092019-06-14 Tom Tromey <tromey@adacore.com>
5710
5711 PR gdb/24502:
5712 * ui-style.h (skip_ansi_escape): Update comment.
5713 * ui-file.h (class no_terminal_escape_file): New class.
5714 * ui-file.c (no_terminal_escape_file::write)
5715 (no_terminal_escape_file::puts): New methods.
5716 * cli/cli-logging.c (handle_redirections): Use
5717 no_terminal_escape_file.
5718
52ce35e2
TT
57192019-06-14 Tom Tromey <tromey@adacore.com>
5720
5721 * NEWS: Move convenience variable news above Python news.
5722
73cc7272
TT
57232019-06-14 Tom Tromey <tom@tromey.com>
5724
5725 * gnulib: Move directory to top-level.
5726 * configure.ac: Don't configure gnulib.
5727 * configure: Rebuild.
5728 * common/common-defs.h: Use new path to gnulib.
5729 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5730 (GNULIB_H): Remove.
5731 (INCGNU): Look in new gnulib location.
5732 (HFILES_NO_SRCDIR): Remove gnulib files.
5733 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5734 (generated_files): Remove GNULIB_H.
5735 ($(LIBGNU), all-lib): Remove targets.
5736 (distclean): Don't mention GNULIB_BUILDDIR.
5737 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5738
f5686554
TT
57392019-06-14 Tom Tromey <tromey@adacore.com>
5740
5741 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5742 Warn if symbol file does not provide any symbols.
5743
a0c1ffed
TT
57442019-06-14 Tom Tromey <tromey@adacore.com>
5745
5746 * source.c (find_and_open_source): Respect basenames_may_differ.
5747
7c39e397
AB
57482019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5749
5750 * annotate.c (annotate_breakpoints_invalid): Make use of
5751 scoped_restore_terminal_state.
5752 (annotate_frames_invalid): Likewise.
5753
f411722c
TT
57542019-06-14 Tom Tromey <tromey@adacore.com>
5755
5756 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5757 allow assignment to an internalvar.
5758
4268ec18
TT
57592019-06-14 Tom Tromey <tromey@adacore.com>
5760
5761 * ada-lex.l: Allow "_" in attribute names.
5762
abdb711e
TT
57632019-06-14 Tom Tromey <tromey@adacore.com>
5764
5765 PR gdb/24653:
5766 * regcache.c (registers_changed): Don't call alloca.
5767 * top.c (execute_command): Don't call alloca.
5768
4c048731
PA
57692019-06-13 Pedro Alves <palves@redhat.com>
5770
5771 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5772 'expression'. When parsing an expression, error out if there's
5773 junk after "unlimited".
5774 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5775 (do_set_command): Adjust calls to is_unlimited_literal.
5776
66eb1ed3
PA
57772019-06-13 Pedro Alves <palves@redhat.com>
5778
5779 * compile/compile.c (make_compile_options_def_group): Add braces
5780 around array_view initializer.
5781 * thread.c (make_thread_apply_all_options_def_group)
5782 (make_thread_apply_all_options_def_group): Likewise.
5783
3345721a
PA
57842019-06-13 Pedro Alves <palves@redhat.com>
5785
5786 * NEWS (New commands): Mention "maint test-options
5787 require-delimiter", "maint test-options unknown-is-error", "maint
5788 test-options unknown-is-operand" and "maint show
5789 test-options-completion-result".
5790 (New command options, command completion): New section.
5791 (Completion improvements): New section.
5792 Mention that you can abbreviate "unlimited".
5793
6206060d
PA
57942019-06-13 Pedro Alves <palves@redhat.com>
5795
5796 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5797 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5798 * unittests/cli-utils-selftests.c (test_parse_flags)
5799 (test_parse_flags_qcs): Delete.
5800 (test_cli_utils): Don't call deleted functions.
5801
6665660a
PA
58022019-06-13 Pedro Alves <palves@redhat.com>
5803
5804 * thread.c: Include "cli/cli-option.h".
5805 (tp_array_compar_ascending): Global.
5806 (tp_array_compar): Delete function.
5807 (tp_array_compar_ascending, tp_array_compar_descending): New
5808 functions.
5809 (ascending_option_def, qcs_flag_option_def)
5810 (thr_qcs_flags_option_defs)
5811 (make_thread_apply_all_options_def_group)
5812 (make_thread_apply_options_def_group): New.
5813 (thread_apply_all_command): Use gdb::option::process_options.
5814 (thread_apply_command_completer)
5815 (thread_apply_all_command_completer): New.
5816 (thread_apply_command): Use gdb::option::process_options.
5817 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5818 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5819 to generate help text of "thread apply". Adjust "taas"'s help.
5820 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5821 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5822
f7e13587
PA
58232019-06-13 Pedro Alves <palves@redhat.com>
5824
5825 * thread.c (thread_apply_command): Check for invalid TID with
5826 isdigit instead of !isalpha.
5827
5d707134
PA
58282019-06-13 Pedro Alves <palves@redhat.com>
5829
5830 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5831 (validate_flags_qcs): New.
5832 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5833 (validate_flags_qcs): Declare.
5834 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5835 (make_frame_apply_options_def_group): New.
5836 (frame_apply_command_count): Process options with
5837 gdb::option::process_options.
5838 (frame_apply_completer): New.
5839 (frame_apply_level_completer, frame_apply_all_completer)
5840 (frame_apply_completer): New.
5841 (_initialize_stack): Update help of "frame apply", "frame apply
5842 level", "frame apply all" and "faas" to mention supported options
5843 and install command completers.
5844 * stack.h (frame_apply_all_completer): Declare.
5845 * thread.c: Include "stack.h".
5846 (tfaas_command): Add "--".
5847 (_initialize_thread): Update help "tfaas" to mention supported
5848 options and install command completer.
5849
272d4594
PA
58502019-06-13 Pedro Alves <palves@redhat.com>
5851
5852 * completer.c (complete_nested_command_line): New.
5853 (gdb_completion_word_break_characters_throw): Add assertion.
5854 * completer.h (complete_nested_command_line): Declare.
5855
90a1ef87
PA
58562019-06-13 Pedro Alves <palves@redhat.com>
5857
5858 * stack.c (parse_backtrace_qualifiers): New.
5859 (backtrace_command): Use it.
5860 (backtrace_command_completer): Complete on qualifiers.
5861
d4c16835
PA
58622019-06-13 Pedro Alves <palves@redhat.com>
5863
5864 * frame.c: Include "cli/cli-option.h.
5865 (user_set_backtrace_options): New.
5866 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5867 Delete.
5868 (get_prev_frame): Adjust.
5869 (boolean_option_def, uinteger_option_def)
5870 (set_backtrace_option_defs): New.
5871 (_initialize_frame): Adjust and use
5872 gdb::option::add_setshow_cmds_for_options to install "set
5873 backtrace past-main" and "set backtrace past-entry".
5874 * frame.h: Include "cli/cli-option.h".
5875 (struct frame_print_options): Forward declare.
5876 (print_frame_arguments_all, print_frame_arguments_scalars)
5877 (print_frame_arguments_none): Declare.
5878 (print_entry_values): Delete declaration.
5879 (struct frame_print_options, user_frame_print_options): New.
5880 (struct set_backtrace_options): New.
5881 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5882 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5883 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5884 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5885 (list_args_or_locals): Add frame_print_options parameter.
5886 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5887 * python/py-framefilter.c (enumerate_args): Pass down
5888 USER_FRAME_PRINT_OPTIONS.
5889 * stack.c: Include "cli/cli-option.h".
5890 (print_frame_arguments_all, print_frame_arguments_scalars)
5891 (print_frame_arguments_none): Declare.
5892 (print_raw_frame_arguments, print_entry_values): Delete.
5893 (user_frame_print_options): New.
5894 (boolean_option_def, enum_option_def, frame_print_option_defs):
5895 New.
5896 (struct backtrace_cmd_options): New.
5897 (bt_flag_option_def): New.
5898 (backtrace_command_option_defs): New.
5899 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5900 (print_frame_arg, read_frame_arg, print_frame_args)
5901 (print_frame_info, print_frame): Add frame_print_options parameter
5902 and use it.
5903 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5904 (backtrace_command_1): Add frame_print_options and
5905 backtrace_cmd_options parameters and use them.
5906 (make_backtrace_options_def_group): New.
5907 (backtrace_command): Process command options with
5908 gdb::option::process_options.
5909 (backtrace_command_completer): New.
5910 (_initialize_stack): Extend "backtrace"'s help to mention
5911 supported options. Install completer for "backtrace".
5912 Install some settings commands with add_setshow_cmds_for_options.
5913
2daf894e
PA
59142019-06-13 Pedro Alves <palves@redhat.com>
5915
5916 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5917 and that "set/show print raw frame-arguments" are now deprecated.
5918
5919 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5920 command.
5921 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5922 * stack.c (_initialize_stack): Install "set/show print
5923 raw-frame-arguments", and deprecate "set/show print raw
5924 frame-arguments".
5925 * valprint.c (_initialize_valprint): Deprecate "set/show print
5926 raw".
5927
e6ed716c
PA
59282019-06-13 Pedro Alves <palves@redhat.com>
5929
5930 * compile/compile.c (struct compile_options): New.
5931 (compile_flag_option_def, compile_command_option_defs)
5932 (make_compile_options_def_group): New.
5933 (compile_file_command): Handle options with
5934 gdb::option::process_options.
5935 (compile_file_command_completer): New function.
5936 (compile_code_command): Handle options with
5937 gdb::option::process_options.
5938 (compile_code_command_completer): New function.
5939 (_initialize_compiler): Install completers for "compile code" and
5940 "compile file". Mention available options in "compile code" and
5941 "compile code"'s help.
5942 * completer.c (advance_to_completion_word): New, factored out from
5943 ...
5944 (advance_to_expression_complete_word_point): ... this.
5945 (advance_to_filename_complete_word_point): New.
5946 * completer.h (advance_to_filename_complete_word_point): New
5947 declaration.
5948
7d8062de
PA
59492019-06-13 Pedro Alves <palves@redhat.com>
5950
5951 * compile/compile.c: Include "cli/cli-option.h".
5952 (compile_print_value): Scope data pointer is now a
5953 value_print_options pointer; adjust.
5954 (compile_print_command): Process options. Scope data pointer is
5955 now a value_print_options pointer; adjust.
5956 (_initialize_compile): Update "compile print"'s help to include
5957 supported options. Install a completer for "compile print".
5958 * cp-valprint.c (show_vtblprint, show_objectprint)
5959 (show_static_field_print): Delete.
5960 (_initialize_cp_valprint): Don't install "set print
5961 static-members", "set print vtbl", "set print object" here.
5962 * printcmd.c: Include "cli/cli-option.h" and
5963 "common/gdb_optional.h".
5964 (print_command_parse_format): Rework to fill in a
5965 value_print_options instead of a format_data.
5966 (print_value): Change parameter type from format_data pointer to
5967 value_print_options reference. Adjust.
5968 (print_command_1): Process options. Adjust to pass down a
5969 value_print_options.
5970 (print_command_completer): New.
5971 (_initialize_printcmd): Install print_command_completer as
5972 handle_brkchars completer for the "print" command. Update
5973 "print"'s help to include supported options.
5974 * valprint.c: Include "cli/cli-option.h".
5975 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5976 here from cp-valprint.c.
5977 (boolean_option_def, uinteger_option_def)
5978 (value_print_option_defs, make_value_print_options_def_group):
5979 New. Use gdb::option::add_setshow_cmds_for_options to install
5980 "set print elements", "set print null-stop", "set print repeats",
5981 "set print pretty", "set print union", "set print array", "set
5982 print address", "set print symbol", "set print array-indexes".
5983 * valprint.h: Include <string> and "cli/cli-option.h".
5984 (make_value_print_options_def_group): Declare.
5985 (print_value): Change parameter type from format_data pointer to
5986 value_print_options reference.
5987 (print_command_completer): Declare.
5988
9d0faba9
PA
59892019-06-13 Pedro Alves <palves@redhat.com>
5990
5991 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5992 (COMMON_SFILES): Add maint-test-settings.c.
5993 * cli/cli-decode.c (boolean_enums): New global, factored out from
5994 ...
5995 (add_setshow_boolean_cmd): ... here.
5996 * cli/cli-decode.h (boolean_enums): Declare.
5997 * cli/cli-option.c: New file.
5998 * cli/cli-option.h: New file.
5999 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6000 factored out from ...
6001 (parse_cli_boolean_value(const char *)): ... this.
6002 (is_unlimited_literal): Change parameter type to pointer to
6003 pointer. Adjust and advance ARG pointer.
6004 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6005 (parse_cli_var_enum): New, factored out from ...
6006 (do_set_command): ... this. Adjust.
6007 * cli/cli-setshow.h (parse_cli_boolean_value)
6008 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6009 (parse_cli_var_enum): Declare.
6010 * cli/cli-utils.c: Include "cli/cli-option.h".
6011 (get_ulongest): New.
6012 * cli/cli-utils.h (get_ulongest): Declare.
6013 (check_for_argument): New overloads.
6014 * maint-test-options.c: New file.
6015
2c722807
PA
60162019-06-13 Pedro Alves <palves@redhat.com>
6017
6018 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6019 parse a range if "-" is at the end of the string.
6020
dee7b4c8
PA
60212019-06-13 Pedro Alves <palves@redhat.com>
6022
6023 * cli/cli-setshow.c (parse_auto_binary_operation)
6024 (parse_cli_boolean_value): Don't allow "o".
6025
dca0f6c0
PA
60262019-06-13 Pedro Alves <palves@redhat.com>
6027
6028 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6029 * NEWS: Mention maint test-settings KIND.
6030 * maint-test-settings.c: New file.
6031
597bf39d
PA
60322019-06-13 Pedro Alves <palves@redhat.com>
6033
6034 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6035 completer.
6036 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6037 "set" completers.
6038
48c410fb
PA
60392019-06-13 Pedro Alves <palves@redhat.com>
6040
6041 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6042 after item.
6043
93bcb043
PA
60442019-06-13 Pedro Alves <palves@redhat.com>
6045
6046 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6047
cbba3ecd
PA
60482019-06-13 Pedro Alves <palves@redhat.com>
6049
6050 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6051 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6052 call.
6053 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6054 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6055 calls.
6056 (check_for_argument): Skip spaces after argument.
6057
b9a3f842
PA
60582019-06-13 Pedro Alves <palves@redhat.com>
6059
6060 * thread.c (thread_apply_command): Adjust TID parsing.
6061 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6062 detected before end of string.
6063 (tid_is_in_list): Error out if LIST is invalid.
6064
3844e605
PA
60652019-06-13 Pedro Alves <palves@redhat.com>
6066
6067 * completer.c (complete_line_internal_1): Rewind completion word
6068 point.
6069 (completion_tracker::advance_custom_word_point_by): Change
6070 parameter type to int.
6071 * completer.h (completion_tracker::advance_custom_word_point_by):
6072 Likewise.
6073
00b56dbe
PA
60742019-06-13 Pedro Alves <palves@redhat.com>
6075
6076 * completer.c (advance_to_completion_word): Handle delimiters.
6077
d106773e
PA
60782019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6079
6080 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6081
08f10e02
TT
60822019-06-11 Tom Tromey <tom@tromey.com>
6083
6084 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6085 (xmalloc_failed): Move to alloc.c.
6086 * alloc.c: New file.
6087 * Makefile.in (COMMON_SFILES): Add alloc.c.
6088
1c7fe951
TT
60892019-06-11 Tom Tromey <tom@tromey.com>
6090
6091 * nat/linux-waitpid.c: Don't include server.h.
6092 (linux_debug): Remove.
6093 (my_waitpid): Update.
6094
89549d7f
TT
60952019-06-11 Tom Tromey <tromey@adacore.com>
6096
6097 * infcall.c (_initialize_infcall): Remove trailing newline from
6098 help.
6099 * user-regs.c (_initialize_user_regs): Remove trailing newline
6100 from help.
6101 * typeprint.c (_initialize_typeprint): Remove trailing newline
6102 from help.
6103 * reverse.c (_initialize_reverse): Remove trailing newlines from
6104 help.
6105 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6106 from help.
6107 * language.c (add_set_language_command): Remove trailing newline
6108 from help.
6109 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6110 help.
6111 * disasm.c (_initialize_disasm): Remove trailing newline from
6112 help.
6113 * top.c (init_main): Remove trailing newline from help.
6114 * interps.c (_initialize_interpreter): Remove trailing newline
6115 from help.
6116 * btrace.c (_initialize_btrace): Remove trailing newlines from
6117 help.
6118 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6119 from help.
6120 * python/python.c (_initialize_python): Remove trailing newline
6121 from help.
6122 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6123 help.
6124 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6125 from help. Reformat some text.
6126 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6127 from help.
6128 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6129 newline from help.
6130
86108c13
TT
61312019-06-11 Tom Tromey <tromey@adacore.com>
6132
6133 * darwin-nat.c (darwin_decode_exception_message)
6134 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6135
a7067863
AB
61362019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6137
6138 * valops.c (value_slice): Check for not allocated or not
6139 associated values.
6140
9ab08412
TV
61412019-06-10 Tom de Vries <tdevries@suse.de>
6142
6143 PR gdb/24618
6144 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6145 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6146 invalid.
6147
f19e22e9
TV
61482019-06-10 Tom de Vries <tdevries@suse.de>
6149
6150 PR gdb/24611
6151 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6152 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6153
e99f9db0
TV
61542019-06-10 Tom de Vries <tdevries@suse.de>
6155
6156 PR symtab/24545
6157 * symtab.c (struct demangled_name_entry): Add language field.
6158 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6159 static minimal symbol". Set and use language field.
6160
9bf7038b
TT
61612019-06-10 Tom Tromey <tromey@adacore.com>
6162
6163 * ada-lang.c (_initialize_ada_language): Update help text.
6164
422186a9
TT
61652019-06-10 Tom Tromey <tromey@adacore.com>
6166
6167 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6168 with a newline.
6169 * guile/guile.c (handle_boot_error): Don't end warning with a
6170 newline.
6171 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6172 warning with a newline.
6173 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6174 newline.
6175 (s12z_frame_cache): Likewise.
6176 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6177 a newline.
6178 * solib-svr4.c (disable_probes_interface): Don't end warning with
6179 a newline.
6180 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6181 newline.
6182 * python/python.c (do_finish_initialization): Don't end warning
6183 with a newline.
6184
25ce02ee
TT
61852019-06-10 Tom Tromey <tom@tromey.com>
6186
6187 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6188 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6189 gdbpy_enter.
6190
caa429d8
TT
61912019-06-10 Tom Tromey <tromey@adacore.com>
6192
6193 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6194 data.
6195 (elf_new_init): Don't call stabsread_new_init.
6196 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6197 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6198 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6199
81873cc8
TV
62002019-06-10 Tom de Vries <tdevries@suse.de>
6201
6202 PR symtab/16264
6203 PR symtab/24517
6204 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6205
4fa0265e
РИ
62062019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6207
6208 * source.c (find_and_open_source): Also rewrite relative file
6209 names.
6210
1a3da2cd
AB
62112019-04-26 Amos Bird <amosbird@gmail.com>
6212
6213 * annotate.c (annotate_thread_exited): Add "thread-exited"
6214 annotation.
6215
3847a7bf
TT
62162019-06-06 Tom Tromey <tromey@adacore.com>
6217
6218 * maint.h (class scoped_command_stats): Use
6219 DISABLE_COPY_AND_ASSIGN.
6220 <print_time>: New method.
6221 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6222 print_time.
6223 (scoped_command_stats::print_time): New method.
6224
312617a3
AB
62252019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6226
6227 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6228 instructions of lengths 6 or 8 bytes.
6229
b02f78f9
PA
62302019-06-04 Pedro Alves <palves@redhat.com>
6231
6232 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6233
6234 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6235 * breakpoint.c (condition_completer): Likewise.
6236 * cli/cli-dump.c (scan_expression): Likewise.
6237 * common/filestuff.c (mkdir_recursive): Likewise.
6238 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6239 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6240 (gdb_abspath): Likewise.
6241 * compile/compile-cplus-types.c
6242 (compile_cplus_instance::decl_name): Likewise.
6243 * completer.c (complete_explicit_location):
6244 (signal_completer, reg_or_group_completer_1): Likewise.
6245 * cp-support.c (cp_remove_params_if_any): Likewise.
6246 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6247 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6248 * infcmd.c (strip_bg_char): Likewise.
6249 * linespec.c (copy_token_string): Likewise.
6250 * mi/mi-main.c (output_cores): Likewise.
6251 * psymtab.c (psymtab_search_name):
6252 * symfile.c (test_set_ext_lang_command): Likewise.
6253 * target.c (target_fileio_read_stralloc): Likewise.
6254 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6255 * value.c (complete_internalvar): Likewise.
6256
e1f2e1a2
CB
62572019-06-04 Christian Biesinger <cbiesinger@google.com>
6258
6259 Add objfile property to gdb.Type.
d3238f7d
PA
6260 * NEWS: Mention Python API addition.
6261 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 6262
e664d728
PW
62632019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6264
6265 * NEWS: Mention the new set|show style [title|highlight].
6266 Mention changes to "show style", "help" and "apropos".
6267
66d8c862
PW
62682019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6269
6270 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6271 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
6272 instead of print_help_for_command.
6273 (print_doc_of_command): New function.
6274 (help_list): Add 'apropos -v word' suggestion.
6275 (print_help_for_command): Style the command name using title style.
6276 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6277 (_initialize_cli_cmds): Describe -v in apropos_command help.
6278
9303eb2f
PW
62792019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6280
6281 * cli/cli-style.h (cli_style_option): Add name in constructor,
6282 add m_name class member, add constructor with intensity,
6283 add name class function.
6284 (cli_style_option::add_setshow_commands): Remove name argument.
6285 (highlight_style, title_style): New styles.
6286 * cli/cli-style.c (do_show): New function that shows a style
6287 characteristic styling the style name with itself.
6288 (set_style_name): New function.
6289 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6290 Update all callers according to the changes in cli/cli-style.h.
6291 * utils.h (fputs_highlighted): New function.
6292 * utils.c (fputs_highlighted): Likewise.
6293
e2c52041
PW
62942019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6295
6296 * NEWS: Mention new pipe command and new convenience variables.
6297
947d3946
PW
62982019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6299
6300 * cli/cli-cmds.c (pipe_command): New function.
6301 (_initialize_cli_cmds): Call add_com for pipe_command.
6302 Define | as an alias for pipe.
6303 (exit_status_set_internal_vars): New function.
6304 (shell_escape): Call exit_status_set_internal_vars.
6305 cli/cli-decode.c (find_command_name_length): Recognize | as
6306 a single character command.
6307
b8fd0918
PW
63082019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6309
6310 * gdbcmd.h (execute_command_to_ui_file): New declaration.
6311 top.c (execute_command_to_ui_file): New function, mostly a copy
6312 of execute_command_to_string.
6313 (execute_command_to_string): Implement by calling
6314 execute_command_to_ui_file.
6315
68bb5386
PW
63162019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6317
6318 * top.h (saved_command_line): Remove declaration.
6319 * top.c (previous_saved_command_line, previous_repeat_arguments):
6320 New variables.
6321 (saved_command_line): Make static, define together with other
6322 'repeat variables'.
6323 (dont_repeat): Clear repeat_arguments.
6324 (repeat_previous, get_saved_command_line, save_command_line):
6325 New functions.
6326 (gdb_init): Initialize saved_command_line
6327 and previous_saved_command_line.
6328 * main.c (captured_main_1): Remove saved_command_line initialization.
6329 * event-top.c (handle_line_of_input): Update to use
6330 the new 'repeat' related functions instead of direct access to
6331 saved_command_line.
6332 * command.h (repeat_previous, get_saved_command_line,
6333 save_command_line): New declarations.
6334 (dont_repeat): Add comment.
6335
bfcdb852
TT
63362019-05-30 Tom Tromey <tromey@adacore.com>
6337
6338 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6339 Fix comment.
6340 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6341
0ef209f2
JV
63422019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6343
6344 PR cli/24587
6345 * completer.c (complete): Initialize variable word.
6346
955b06fa
SDJ
63472019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6348
6349 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6350 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6351 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6352 'body' is NULL to the outter 'if', protecting the '!is_define'
6353 situation as well.
6354
fa9c3fa0
TT
63552019-05-29 Tom Tromey <tromey@adacore.com>
6356
6357 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6358 (dwarf_unknown): New function.
6359 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6360 (dwarf_type_encoding_name): Use dwarf_unknown.
6361
4330d61d
TT
63622019-05-29 Tom Tromey <tromey@adacore.com>
6363
6364 PR c++/20020:
6365 * cp-valprint.c (cp_print_value_fields): Call
6366 cp_print_static_field inside "try".
6367
33a6bc35
TT
63682019-05-29 Tom Tromey <tromey@adacore.com>
6369
6370 * inflow.c (struct terminal_info): Add default operator=.
6371 * configure: Rebuild.
6372 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6373 -Wdeprecated-copy-dtor, -Wredundant-move.
6374
000439d5
TT
63752019-05-29 Tom Tromey <tromey@adacore.com>
6376
6377 * NEWS: Add entry.
6378 * infcmd.c (print_return_value_1): Handle finish_print
6379 option.
6380 (show_print_finish): New function.
6381 (_initialize_infcmd): Add "set/show print finish" commands.
6382 * valprint.c (user_print_options): Initialize new member.
6383 * valprint.h (struct value_print_options) <finish_print>: New
6384 member.
6385
c0e70c62
TT
63862019-05-28 Tom Tromey <tromey@adacore.com>
6387
6388 * ada-lang.c (ada_remove_Xbn_suffix)
6389 (find_old_style_renaming_symbol)
6390 (parse_old_style_renaming): Remove.
6391 (ada_find_renaming_symbol): Don't call
6392 find_old_style_renaming_symbol.
6393 (ada_is_renaming_symbol): Rename from
6394 ada_find_renaming_symbol. Remove "block" parameter. Return
6395 bool. Now static.
6396 (ada_read_var_value): Update and simplify.
6397 * ada-exp.y (write_var_or_type): Remove old code.
6398
766f8836
AH
63992019-05-28 Alan Hayward <alan.hayward@arm.com>
6400
6401 * event-top.c: Remove include comment.
6402 * inflow.c (class scoped_ignore_sigttou): Move from here...
6403 * inflow.h (class scoped_ignore_sigttou): ...to here.
6404 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6405 * top.c: Remove include comment.
6406
eb41253a
TT
64072019-05-27 Tom Tromey <tom@tromey.com>
6408
6409 * NEWS: Fix typo.
6410
4ca51187
TT
64112019-05-22 Tom Tromey <tromey@adacore.com>
6412
6413 * target.c (target_follow_exec): Constify parameter.
6414 * target-delegates.c: Rebuild.
6415 * remote.c (remote_target::follow_exec): Constify parameter.
6416 * infrun.c (follow_exec): Constify parameter.
6417 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6418 (target_follow_exec): Likewise.
6419
8fca4da0
AH
64202019-05-22 Alan Hayward <alan.hayward@arm.com>
6421
6422 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6423 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6424
b7060614
AH
64252019-05-22 Alan Hayward <alan.hayward@arm.com>
6426
6427 * NEWS: Add debugredirect and testsuite sections.
6428
0a5954bd
SC
64292019-05-22 Simon Cook <simon.cook@embecosm.com>
6430
6431 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6432 target descriptions using exclusively floating point register name
6433 aliases.
6434
dc42e902
AB
64352019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6436
6437 PR gdb/18644:
6438 * f-lang.c (build_fortran_types): Handle the case where
6439 gdbarch_floatformat_for_type returns a nullptr.
6440
fb7806c7
TV
64412019-05-21 Tom de Vries <tdevries@suse.de>
6442
6443 PR cli/24587
6444 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6445
34d11c68
AB
64462019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6447
6448 PR gdb/18644:
6449 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6450 16-byte floats.
6451 * i386-tdep.c (i386_floatformat_for_type): Use
6452 floatformats_ia64_quad for the 16-byte floating point component
6453 within a fortran 32-byte complex number.
6454
122cf0f2
AB
64552019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6456
6457 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6458 delete default constructor.
6459 (find_partial_die): Update to return const struct.
6460 (partial_die_parent_scope): Move variable declaration into scope
6461 of its use and change its type to auto.
6462 (guess_partial_die_structure_name): Likewise.
6463 (partial_die_info::fixup): Likewise.
6464
33d0e35a
TT
64652019-05-17 Tom Tromey <tromey@adacore.com>
6466
6467 * source.c (find_and_open_source): Remove cast.
6468
a45575b0
TT
64692019-05-17 Tom Tromey <tromey@adacore.com>
6470
6471 * annotate.c (annotate_source): Make "filename" const.
6472 * annotate.h (annotate_source): Use const.
6473
81f47ac2
AH
64742019-05-17 Alan Hayward <alan.hayward@arm.com>
6475
6476 * disasm.c (set_disassembler_options): Send errors to stderr.
6477
ca1285d1
AH
64782019-05-17 Alan Hayward <alan.hayward@arm.com>
6479
6480 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6481 (cli_interp_base::set_logging): Check debug_redirect.
6482 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6483 * cli/cli-logging.c (debug_redirect): Add static variable.
6484 (pop_output_files): Add default param.
6485 (handle_redirections): Print debug setting.
6486 (show_logging_command): Likewise.
6487 (_initialize_cli_logging): Add debugredirect command.
6488 * interps.c (current_interp_set_logging): Add debug_redirect
6489 parameter.
6490 * interps.h (set_logging): Add debug_redirect parameter.
6491 (current_interp_set_logging): Likewise.
6492 * mi/mi-common.h: Likewise.
6493 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6494
64952019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
6496 Tom Tromey <tromey@adacore.com>
6497
6498 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6499 directly.
6500 * cli/cli-interp.h (make_logging_output): Remove declaration.
6501 * cli/cli-logging.c (make_logging_output): Remove function.
6502 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6503 directly.
6504 * ui-file.c (tee_file::tee_file): Remove bools.
6505 (tee_file::~tee_file): Remove deletes.
6506 * ui-file.h (tee_file): Remove bools.
6507
26648588
JV
65082019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6509
6510 * mi/mi-cmds.h (mi_cmd_complete): New function.
6511 * mi/mi-main.c (mi_cmd_complete): Likewise.
6512 * mi/mi-cmds.c: Define new MI command -complete.
6513 * NEWS: Mention new -complete command.
6514
6e035501
JV
65152019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6516
6517 * completer.h (complete): New function.
6518 * completer.c (complete): Likewise.
6519 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6520 function defined in completer.h.
6521
7d0e2ece
JV
65222019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6523
e79be6e5 6524 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 6525
fb816e8b
TV
65262019-05-17 Tom de Vries <tdevries@suse.de>
6527
6528 PR gdb/24094
6529 * dwarf2read.c (struct cu_partial_die_info): New struct.
6530 (find_partial_die): Return cu_partial_die_info.
6531 (partial_die_parent_scope, guess_partial_die_structure_name)
6532 (partial_die_info::fixup): Handle new return type of find_partial_die.
6533
677052f2
SDJ
65342019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6535
a1726c38 6536 PR breakpoints/24541
677052f2
SDJ
6537 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6538 "std::string", simplifying the algorithm.
6539
f3da9116
SDJ
65402019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6541
6542 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6543 (stap_static_probe_ops::get_probes): Likewise.
6544
f1bb75ab
SDJ
65452019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6546
6547 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6548 '-')" and "else if".
6549 (stap_parse_single_operand): Join checks for
6550 "gdbarch_stap_parse_special_token_p" and
6551 "gdbarch_stap_parse_special_token" in the same "if" statement.
6552 Invert check when verifying for operation on register
6553 displacement.
6554
3ca58cde
SDJ
65552019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6556
6557 * stap-probe.c (stap_get_opcode): Update comment.
6558 (stap_get_expected_argument_type): Likewise.
6559 (handle_stap_probe): Likewise.
6560
af2d9bee
SDJ
65612019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6562
6563 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6564 return type to 'bool'. Adjust comment. Use 'bool' when
6565 appropriate.
6566 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6567 * stap-probe.c (stap_parse_argument_1): Likewise.
6568 (stap_is_operator): Likewise.
6569 (stap_is_generic_prefix): Likewise.
6570 (stap_is_register_prefix): Likewise.
6571 (stap_is_register_indirection_prefix): Likewise.
6572 (stap_is_integer_prefix): Likewise.
6573 (stap_generic_check_suffix): Likewise.
6574 (stap_check_integer_suffix): Likewise.
6575 (stap_check_register_suffix): Likewise.
6576 (stap_check_register_indirection_suffix): Likewise.
6577 (stap_parse_register_operand): Likewise.
6578 (stap_parse_single_operand): Likewise.
6579 (stap_parse_argument_1): Likewise.
6580 (stap_probe::get_argument_count): Likewise.
6581 (stap_is_operator): Likewise.
6582
61c9c421
TT
65832019-05-16 Tom Tromey <tromey@adacore.com>
6584
6585 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6586 keyword to foreach.
6587
9ddc1af1
SM
65882019-05-15 Simon Marchi <simon.marchi@efficios.com>
6589
6590 * linux-thread-db.c (try_thread_db_load_1): Change return type
6591 to bool.
6592 (try_thread_db_load): Likewise.
6593 (try_thread_db_load_from_pdir_1): Likewise.
6594 (try_thread_db_load_from_pdir): Likewise.
6595 (try_thread_db_load_from_sdir): Likewise.
6596 (try_thread_db_load_from_dir): Likewise.
6597 (thread_db_load_search): Likewise.
6598 (has_libpthread): Likewise.
6599 (thread_db_load): Likewise.
6600
7bede828
SDJ
66012019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6602
6603 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6604 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6605 NULL, and complain/return if that's the case.
6606
c5358db4
JD
66072019-05-15 John Darrington <john@darrington.wattle.id.au>
6608
6609 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6610 (advance, posn, abstract_read_memory): New functions.
6611 [struct mem_read_abstraction]: New struct.
6612 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6613
c408a94f
TT
66142019-05-14 Tom Tromey <tromey@adacore.com>
6615
6616 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6617 value is not lval_memory.
6618
e7bd7fba
TT
66192019-05-14 Tom Tromey <tromey@adacore.com>
6620
6621 * solib.c (info_sharedlibrary_command): Style the file name.
6622
a6d0f249
AH
66232019-05-14 Alan Hayward <alan.hayward@arm.com>
6624
6625 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6626 (aarch64_vnv_type): Likewise.
6627 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6628 * common/tdesc.c: Likewise.
6629 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6630 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6631 * features/aarch64-fpu.xml: Add ieee half view.
6632 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6633 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6634 * gdbtypes.h (struct builtin_type): Likewise.
6635 (struct objfile_type): Likewise.
6636
66b8bb74
SM
66372019-05-12 Paul Naert <paul.naert@polymtl.ca>
6638
6639 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6640 typo.
6641 * location.h (string_to_event_location): Likewise.
6642
21c219fd
JB
66432019-05-11 Joel Brobecker <brobecker@adacore.com>
6644
6645 GDB 8.3 released.
6646
13674803
SM
66472019-05-10 Simon Marchi <simon.marchi@efficios.com>
6648
6649 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6650 New variable declaration.
6651 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6652 New variable.
6653 (print_one_breakpoint): Use ui_out::test_flags and new global
6654 variable to compute use_fixed_output.
6655 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6656 Remove.
6657 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6658 (mi_multi_location_breakpoint_output_fixed): Remove.
6659 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6660 new variable.
6661 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6662 fix_multi_location_breakpoint_output flag if version >= 3.
6663 * ui-out.h (enum ui_out_flag)
6664 <fix_multi_location_breakpoint_output>: New enumerator.
6665
a9eac7f9
SM
66662019-05-10 Simon Marchi <simon.marchi@efficios.com>
6667
6668 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6669
71bed2db
TT
66702019-05-10 Tom Tromey <tromey@adacore.com>
6671
6672 * ada-lang.c (catch_ada_completer): New function.
6673 (_initialize_ada_language): Use it.
6674
24c54127
TT
66752019-05-10 Tom Tromey <tromey@adacore.com>
6676
6677 * thread.c (print_thread_info): Make "requested_threads" const.
6678 * gdbthread.h (print_thread_info): Make "requested_threads"
6679 const.
6680 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6681 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6682
7a102139
TT
66832019-05-08 Tom Tromey <tom@tromey.com>
6684
6685 * gdbtypes.c (objfile_type_data): Change type.
6686 (objfile_type, _initialize_gdbtypes): Update.
6687
924d79e2
TT
66882019-05-08 Tom Tromey <tom@tromey.com>
6689
6690 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6691 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6692 (_initialize_dwarf2_frame): Update.
6693
4c58e337
TT
66942019-05-08 Tom Tromey <tom@tromey.com>
6695
6696 * objc-lang.c (objc_objfile_data): Change type.
6697 (find_methods): Update.
6698 (_initialize_objc_lang): Remove.
6699
d772d2ab
TT
67002019-05-08 Tom Tromey <tom@tromey.com>
6701
6702 * stabsread.c (rs6000_builtin_type_data): Change type.
6703 (rs6000_builtin_type, _initialize_stabsread): Update.
6704
d11d83f4
TT
67052019-05-08 Tom Tromey <tom@tromey.com>
6706
6707 * mips-tdep.c (mips_pdr_data): Remove.
6708 (_initialize_mips_tdep): Update.
6709
9a73f0ad
TT
67102019-05-08 Tom Tromey <tom@tromey.com>
6711
6712 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6713 (hppa_init_objfile_priv_data, read_unwind_info)
6714 (find_unwind_entry, _initialize_hppa_tdep): Update.
6715
8127a2fa
TT
67162019-05-08 Tom Tromey <tom@tromey.com>
6717
6718 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6719 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6720 on obstack.
6721 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6722
91d3055d
TT
67232019-05-08 Tom Tromey <tom@tromey.com>
6724
6725 * mdebugread.c (basic_type_data): Change type.
6726 (basic_type, _initialize_mdebugread): Update.
6727
31930bd3
TT
67282019-05-08 Tom Tromey <tom@tromey.com>
6729
6730 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6731
bdb3ed9e
TT
67322019-05-08 Tom Tromey <tom@tromey.com>
6733
6734 * nto-tdep.c (nto_inferior_data_reg): Change type.
6735 (nto_inferior_data): Update.
6736 (nto_inferior_data_cleanup, nto_new_inferior_data)
6737 (_initialize_nto_tdep): Remove.
6738 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6739
f37b313d
TT
67402019-05-08 Tom Tromey <tom@tromey.com>
6741
6742 * ada-lang.c (struct ada_inferior_data): Add initializers.
6743 (ada_inferior_data): Change type.
6744 (ada_inferior_data_cleanup): Remove.
6745 (get_ada_inferior_data, ada_inferior_exit)
6746 (struct ada_pspace_data): Add initializers, destructor.
6747 (ada_pspace_data_handle): Change type.
6748 (get_ada_pspace_data): Update.
6749 (ada_pspace_data_cleanup): Remove.
6750
24699405
TT
67512019-05-08 Tom Tromey <tom@tromey.com>
6752
6753 * coffread.c (struct coff_symfile_info): Add initializers.
6754 (coff_objfile_data_key): Move lower. Change type.
6755 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6756 Update.
6757 (coff_free_info): Remove.
6758
d4e05d2f
TT
67592019-05-08 Tom Tromey <tom@tromey.com>
6760
6761 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6762 (fbsd_pspace_data_handle): Move lower. Change type.
6763 (get_fbsd_pspace_data): Update.
6764 (fbsd_pspace_data_cleanup): Remove.
6765 (_initialize_fbsd_tdep): Update.
6766
14ef6690
TT
67672019-05-08 Tom Tromey <tom@tromey.com>
6768
6769 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6770 (get_ada_tasks_pspace_data): Update.
6771 (ada_tasks_pspace_data_cleanup): Remove.
6772 (_initialize_tasks): Update.
6773 (ada_tasks_inferior_data_handle): Change type.
6774 (get_ada_tasks_inferior_data): Update.
6775 (ada_tasks_inferior_data_cleanup): Remove.
6776 (struct ada_tasks_pspace_data): Add initializers.
6777
814cf43a
TT
67782019-05-08 Tom Tromey <tom@tromey.com>
6779
6780 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6781 * symfile-debug.c (debug_sym_get_probes): Change type.
6782 * stap-probe.c (handle_stap_probe):
6783 (stap_static_probe_ops::get_probes): Change type.
6784 * probe.h (class static_probe_ops) <get_probes>: Change type.
6785 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6786 (parse_probes_in_pspace): Update.
6787 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6788 Update.
6789 (any_static_probe_ops::get_probes): Change type.
6790 * elfread.c (elfread_data): New typedef.
6791 (probe_key): Change type.
6792 (elf_get_probes): Likewise. Update.
6793 (probe_key_free): Remove.
6794 (_initialize_elfread): Update.
6795 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6796 Change type.
6797 (dtrace_process_dof_probe, dtrace_process_dof)
6798 (dtrace_static_probe_ops::get_probe): Change type.
6799
02dc647e
TT
68002019-05-08 Tom Tromey <tom@tromey.com>
6801
6802 * xcoffread.c (struct xcoff_symfile_info): Rename from
6803 coff_symfile_info. Add initializers.
6804 (xcoff_objfile_data_key): Move lower. Change type.
6805 (XCOFF_DATA): Rewrite.
6806 (xcoff_free_info): Remove.
6807 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6808 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6809 (xcoff_initial_scan): Update.
6810
09232438
TT
68112019-05-08 Tom Tromey <tom@tromey.com>
6812
6813 * solib-svr4.c (struct svr4_info): Add initializers and
6814 destructor.
6815 <probes_table>: Now an htab_up.
6816 (solib_svr4_pspace_data): Change type.
6817 (free_probes_table): Simplify.
6818 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6819 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6820 (probes_table_remove_objfile_probes, register_solib_event_probe)
6821 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6822 (_initialize_svr4_solib): Update.
6823
7b4a314f
TT
68242019-05-08 Tom Tromey <tom@tromey.com>
6825
6826 * remote.c (remote_pspace_data): Change type.
6827 (remote_pspace_data_cleanup): Remove.
6828 (get_remote_exec_file, set_pspace_remote_exec_file)
6829 (_initialize_remote): Update.
6830
51d3063a
TT
68312019-05-08 Tom Tromey <tom@tromey.com>
6832
6833 * breakpoint.c (breakpoint_objfile_key): Change type.
6834 (get_breakpoint_objfile_data): Update.
6835 (free_breakpoint_objfile_data): Remove.
6836 (_initialize_breakpoint): Update.
6837
89fb8848
TT
68382019-05-08 Tom Tromey <tom@tromey.com>
6839
6840 * linux-tdep.c (struct linux_info): Add initializers.
6841 (linux_inferior_data): Move. Change type.
6842 (invalidate_linux_cache_inf): Update.
6843 (linux_inferior_data_cleanup): Remove.
6844 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6845
e9b89e2d
TT
68462019-05-08 Tom Tromey <tom@tromey.com>
6847
6848 * auxv.c (auxv_inferior_data): Move. Change type.
6849 (auxv_inferior_data_cleanup): Remove.
6850 (invalidate_auxv_cache_inf): Rewrite.
6851 (get_auxv_inferior_data, _initialize_auxv): Update.
6852
8c42777c
TT
68532019-05-08 Tom Tromey <tom@tromey.com>
6854
6855 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6856 (symfile_debug_objfile_data_key): Change type.
6857 (symfile_debug_installed, debug_qf_has_symbols)
6858 (debug_qf_find_last_source_symtab)
6859 (debug_qf_forget_cached_source_info)
6860 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6861 (debug_qf_print_stats, debug_qf_dump)
6862 (debug_qf_expand_symtabs_for_function)
6863 (debug_qf_expand_all_symtabs)
6864 (debug_qf_expand_symtabs_with_fullname)
6865 (debug_qf_map_matching_symbols)
6866 (debug_qf_expand_symtabs_matching)
6867 (debug_qf_find_pc_sect_compunit_symtab)
6868 (debug_qf_map_symbol_filenames)
6869 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6870 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6871 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6872 (debug_sym_read_linetable, debug_sym_relocate): Update.
6873 (symfile_debug_free_objfile): Remove.
6874 (install_symfile_debug_logging, _initialize_symfile_debug):
6875 Update.
6876
5bfd760d
TT
68772019-05-08 Tom Tromey <tom@tromey.com>
6878
6879 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6880 allocate_on_obstack.
6881 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6882 (get_dwarf2_per_objfile): Update.
6883 (set_dwarf2_per_objfile): Remove.
6884 (dwarf2_has_info, dwarf2_get_section_info): Update.
6885 (dwarf2_free_objfile): Remove.
6886 (_initialize_dwarf2_read): Update.
6887
e85e19b4
TT
68882019-05-08 Tom Tromey <tom@tromey.com>
6889
6890 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6891 initializers.
6892 <unsupported_script_warning_printed,
6893 script_not_found_warning_printed>: Now bool.
6894 (auto_load_pspace_data): Change type.
6895 (~auto_load_pspace_info): Rename from
6896 auto_load_pspace_data_cleanup.
6897 (get_auto_load_pspace_data, init_loaded_scripts_info)
6898 (clear_section_scripts, maybe_print_unsupported_script_warning)
6899 (maybe_print_script_not_found_warning, _initialize_auto_load):
6900 Update.
6901
f6aa7436
TT
69022019-05-08 Tom Tromey <tom@tromey.com>
6903
6904 * objfiles.c (objfile_pspace_info): Add destructor and
6905 initializers.
6906 (objfiles_pspace_data): Change type.
6907 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6908 (get_objfile_pspace_data): Update.
6909 (objfiles_bfd_data): Change type.
6910 (get_objfile_bfd_data): Update.
6911 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6912
6ae614f6
TT
69132019-05-08 Tom Tromey <tom@tromey.com>
6914
6915 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6916 Change type.
6917 (get_catch_syscall_inferior_data): Update.
6918 (catch_syscall_inferior_data_cleanup): Remove.
6919 (_initialize_break_catch_syscall): Update.
6920
6509b8eb
TT
69212019-05-08 Tom Tromey <tom@tromey.com>
6922
6923 * inflow.c (struct terminal_info): Add destructor and
6924 initializers.
6925 (inflow_inferior_data): Change type.
6926 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6927 (get_inflow_inferior_data, inflow_inferior_exit)
6928 (swap_terminal_info, _initialize_inflow): Update.
6929
35632941
TT
69302019-05-08 Tom Tromey <tom@tromey.com>
6931
6932 * target-dcache.c (target_dcache_cleanup): Remove.
6933 (target_dcache_aspace_key): Change type.
6934 (target_dcache_init_p, target_dcache_invalidate)
6935 (target_dcache_get, target_dcache_get_or_init)
6936 (_initialize_target_dcache): Update.
6937 * dcache.h (struct dcache_deleter): New.
6938
3017b94d
TT
69392019-05-08 Tom Tromey <tom@tromey.com>
6940
6941 * symtab.c (struct symbol_cache): Add destructor and
6942 initializers.
6943 (symbol_cache_key): Move. Change type.
6944 (make_symbol_cache, free_symbol_cache): Remove.
6945 (get_symbol_cache): Update.
6946 (symbol_cache_cleanup): Remove.
6947 (ALL_PSPACES, symbol_cache_flush)
6948 (maintenance_print_symbol_cache)
6949 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6950 Update.
6951
a32ad8c5
TT
69522019-05-08 Tom Tromey <tom@tromey.com>
6953
6954 * symtab.c (struct main_info): Add destructor and initializers.
6955 (main_progspace_key): Move. Change type.
6956 (get_main_info): Update.
6957 (main_info_cleanup): Remove.
6958 (_initialize_symtab): Update.
6959
5f6e90a0
TT
69602019-05-08 Tom Tromey <tom@tromey.com>
6961
6962 * registry.h (DECLARE_REGISTRY): Define the _key class.
6963
1bd0c6e4
AB
69642019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6965
6966 * NEWS: Merge two 'New commands' sections.
6967
2228ef77
XR
69682019-05-08 Joel Brobecker <brobecker@adacore.com>
6969
6970 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6971 parameter and use Ada language definition instead.
6972 (ada_val_print_ptr): Remove unused language parameter.
6973 (ada_val_print_num): Remove language parameter and use Ada language
6974 definition instead.
6975 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6976 parameter.
6977 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6978 parameter and use Ada language definition instead.
6979 (ada_val_print_1): Update all ada_val_print_xxx calls.
6980 Remove language parameter.
6981 (ada_val_print): Update ada_val_print_1 call.
6982
60fcc1c3
TT
69832019-05-08 Tom Tromey <tromey@adacore.com>
6984
6985 * remote.c (remote_hw_watchpoint_limit)
6986 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6987 Now static.
6988
ed2b7c17
TT
69892019-05-08 Tom Tromey <tromey@adacore.com>
6990
6991 * maint.c (_initialize_maint_cmds): Move initialization code to
6992 remote.c.
6993 (watchdog, show_watchdog): Move to remote.c.
6994 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6995 "watchdog" static.
6996 (_initialize_remote): Move initialization code from maint.c.
6997 * defs.h (watchdog): Don't declare.
6998
b0be6c91
TT
69992019-05-08 Tom Tromey <tromey@adacore.com>
7000
7001 * tui/tui-interp.c: Include main.h.
7002 * interps.c: Include main.h.
7003 * main.h (interpreter_p): Declare.
7004 * defs.h (interpreter_p): Don't declare.
7005
587ee17b
TT
70062019-05-08 Tom Tromey <tromey@adacore.com>
7007
7008 * dwarf2loc.c: Include dwarf2read.h.
7009 * defs.h (read_unsigned_leb128): Don't declare.
7010 * dwarf2read.h (read_unsigned_leb128): Declare.
7011
ca1df239
TT
70122019-05-08 Tom Tromey <tromey@adacore.com>
7013
7014 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7015 method.
7016
99f20f08
TT
70172019-05-08 Tom Tromey <tromey@adacore.com>
7018
7019 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7020 when no wrap column is set.
7021
80e55b13
TT
70222019-05-08 Tom Tromey <tromey@adacore.com>
7023
7024 * c-lang.c (c_get_string): Handle non-C-style arrays.
7025
9d3421af
TT
70262019-05-08 Tom Tromey <tromey@adacore.com>
7027
7028 * typeprint.c (print_offset_data::update): Print the bit offset,
7029 not the number of bits remaining.
7030
844333e2
TT
70312019-05-08 Tom Tromey <tromey@adacore.com>
7032
7033 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7034 padding at end of comment.
7035
988915ee
TT
70362019-05-08 Tom Tromey <tromey@adacore.com>
7037
7038 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7039 Compare main types.
7040
26bfd823
TT
70412019-05-06 Tom Tromey <tom@tromey.com>
7042
7043 * common/scoped_mmap.c: Include common-defs.h.
7044 * common/scoped_mmap.h: Don't include config.h.
7045
89055eaa
TT
70462019-05-04 Tom Tromey <tom@tromey.com>
7047
7048 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7049 (struct aarch64_call_info): Add initializers.
7050 <si>: Now a std::vector.
7051 (pass_on_stack, aarch64_push_dummy_call): Update.
7052
5da01df5
TT
70532019-05-04 Simon Marchi <simon.marchi@efficios.com>
7054 Tom Tromey <tom@tromey.com>
7055
7056 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7057 (ppc_threads): Now a std::vector. Now static.
7058 (hwdebug_find_thread_points_by_tid)
7059 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7060 Update.
7061
fbdf05a1
TT
70622019-05-04 Tom Tromey <tom@tromey.com>
7063
7064 * arc-tdep.c (arc_tdesc_init): Return bool.
7065
06d16ec9
TT
70662019-05-04 Tom Tromey <tom@tromey.com>
7067
7068 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7069 Use gdb_assert_not_reached.
7070
9c056022
TT
70712019-05-04 Tom Tromey <tom@tromey.com>
7072
7073 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7074 "false".
7075
fa9c2a59
TT
70762019-05-04 Tom Tromey <tom@tromey.com>
7077
7078 * arc-tdep.c (arc_tdesc_init): Use bool.
7079
e2eb806a
TT
70802019-05-04 Tom Tromey <tom@tromey.com>
7081
7082 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7083
6fe87677
TT
70842019-05-04 Tom Tromey <tom@tromey.com>
7085
7086 * cli/cli-cmds.c (valid_command_p): Return bool.
7087
7f008c9e
TT
70882019-05-04 Tom Tromey <tom@tromey.com>
7089
7090 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7091 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7092
b6484282
RT
70932019-05-04 Raul Tambre <raul@tambre.ee>
7094
7095 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7096 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7097 operator for comparison.
7098
af97b416
TT
70992019-05-04 Tom Tromey <tom@tromey.com>
7100
7101 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7102 (lookup_partial_symbol, print_partial_symbols)
7103 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7104 (psymbol_compare): Update.
7105 (add_psymbol_to_bcache): Clear the entire psymbol.
7106 (maintenance_check_psymtabs): Update.
7107 * psympriv.h (struct partial_symbol): Don't derive from
7108 general_symbol_info.
7109 <obj_section, unrelocated_address, address,
7110 set_unrelocated_address>: Update.
7111 <ginfo>: New member.
7112 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7113 (debug_names::write_psymbols): Update.
7114
9d6d4be8
TV
71152019-05-04 Tom de Vries <tdevries@suse.de>
7116
7117 * contrib/cc-with-tweaks.sh: Support -n arg.
7118
66452beb
PW
71192019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7120
7121 * corelow.c (core_target::detach): Ensure frame cache and
7122 register caches are cleared.
7123 inferior.c (exit_inferior_1): Likewise.
7124
bde09ab7
TT
71252019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7126 Tom Tromey <tom@tromey.com>
7127
7128 * dictionary.c (collate_pending_symbols_by_language): Remove
7129 "struct" from foreach.
7130 * symtab.c (lookup_global_symbol_from_objfile)
7131 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7132 foreach.
7133 * ser-tcp.c (net_open): Remove "struct" from foreach.
7134 * objfiles.c (objfile_relocate, objfile_rebase)
7135 (objfile_has_symbols): Remove "struct" from foreach.
7136 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7137 from foreach.
7138 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7139 foreach.
7140 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7141 "struct" from foreach.
7142 * ada-lang.c (create_excep_cond_exprs)
7143 (ada_exception_catchpoint_cond_string): Remove "struct" from
7144 foreach.
7145
222a8d25
TT
71462019-05-03 Tom Tromey <tromey@adacore.com>
7147
7148 * ada-exp.y (convert_char_literal): Check suffix of each
7149 enumerator.
7150
fcd60b84
DP
71512019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7152
7153 PR ada/21406:
7154 * ada-exp.y (yywrap): Don't define.
7155 * ada-lex.l (%option): Add noyywrap
7156 (yywrap): Remove.
7157
5f2459c2
EZ
71582019-05-03 Eli Zaretskii <eliz@gnu.org>
7159
353ea2d1
EZ
7160 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7161 _WIN32_WINNT to the XP level, unless already defined to a higher
7162 level.
7163
7164 * unittests/parse-connection-spec-selftests.c:
7165 * ser-tcp.c:
7166 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7167 override.
7168
5f2459c2
EZ
7169 * symfile.c (find_separate_debug_file): Remove colon from the
7170 drive spec of DOS/Windows file names of the target, so that the
7171 file name produced from DEBUGDIR and the target's directory will
7172 be valid on DOS/Windows systems.
7173
80062eb9
AB
71742019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7175
7176 * rust-lang.c (val_print_struct): Handle printing structures
7177 containing strings.
7178
b8c05e85
TT
71792019-05-02 Tom Tromey <tromey@adacore.com>
7180
7181 * valarith.c (_initialize_valarith): Remove.
7182
4504bbde
TT
71832019-05-01 Tom Tromey <tromey@adacore.com>
7184
7185 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7186 bitfields.
7187
d48e62f4
TT
71882019-05-01 Tom Tromey <tromey@adacore.com>
7189
7190 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7191 for big-endian copies.
7192
15f18d14
AT
71932019-04-30 Ali Tamur <tamur@google.com>
7194 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7195 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7196 (read_3_bytes): New function.
7197
ab4ee614
JB
71982019-04-30 Joel Brobecker <brobecker@adacore.com>
7199
7200 * windows-nat.c (main_thread_id): Delete.
7201 (handle_output_debug_string): Replace main_thread_id by
7202 current_event.dwThreadId.
7203 (fake_create_process): Likewise.
7204 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7205 Do not set main_thread_id.
7206 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7207 current_event.dwThreadId.
7208 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7209
8ed5b76e
JB
72102019-04-30 Joel Brobecker <brobecker@adacore.com>
7211
7212 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7213 Use current_event.dwThreadId instead of main_thread_id.
7214
2ff0a947
TT
72152019-04-30 Tom Tromey <tromey@adacore.com>
7216
7217 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7218 (create_excep_cond_exprs): Iterate over program spaces.
7219 (ada_exception_catchpoint_cond_string): Examine all minimal
7220 symbols for exception types.
7221
a776957c
TT
72222019-04-30 Tom Tromey <tromey@adacore.com>
7223
7224 PR c++/24470:
7225 * dwarf2read.c (process_structure_scope): Handle case where type
7226 has template parameters but no symbol was created.
7227
bc68014d
AB
72282019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7229 Chris January <chris.january@arm.com>
7230
7231 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7232 qualifier.
7233 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7234
f1fdc960
AB
72352019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7236
7237 * f-typeprint.c (f_print_type): Update rules for printing
7238 whitespace.
7239 (f_type_print_varspec_suffix): Likewise.
7240
bf7a4de1
AB
72412019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7242 Chris January <chris.january@arm.com>
7243
7244 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7245 function arguments.
7246
bbe75b9d
AB
72472019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7248
7249 * f-lang.c (build_fortran_types): Change name of void type to
7250 lower case.
7251 * f-typeprint.c (f_type_print_base): Print the name of the void
7252 type, rather than a fixed string.
7253 * f-valprint.c (f_decorations): Use lower case void string.
7254
1db455a7
AB
72552019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7256 Chris January <chris.january@arm.com>
7257
7258 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7259 types for Fortran.
7260
b6d03bb2
AB
72612019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7262 Chris January <chris.january@arm.com>
7263 David Lecomber <david.lecomber@arm.com>
7264
7265 * f-exp.y (BINOP_INTRINSIC): New token.
7266 (exp): New parser rule handling BINOP_INTRINSIC.
7267 (f77_keywords): Add new builtin procedures.
7268 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7269 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7270 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7271 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7272 (print_unop_subexp_f): New function.
7273 (print_binop_subexp_f): New function.
7274 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7275 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7276 (dump_subexp_body_f): Likewise.
7277 (operator_check_f): Likewise.
7278 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7279 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7280
83228e93
AB
72812019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7282
7283 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7284 UNOP_KIND.
7285 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7286 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7287 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7288 (operator_length_f): New fuction.
7289 (print_subexp_f): New function.
7290 (op_name_f): New function.
7291 (dump_subexp_body_f): New function.
7292 (operator_check_f): New function.
7293 (exp_descriptor_f): Replace standard expression handling functions
7294 with new functions.
7295 * gdb/fortran-operator.def: New file.
7296 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7297 * gdb/std-operator.def: Remove UNOP_KIND.
7298
6fdcd7cc
AB
72992019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7300
7301 * std-operator.def: Remove unbalanced, stray double quote
7302 character.
7303
2e62ab40
AB
73042019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7305 Chris January <chris.january@arm.com>
7306 Daniel Everett <daniel.everett@arm.com>
7307 Nick Forrington <nick.forrington@arm.com>
7308 Richard Bunt <richard.bunt@arm.com>
7309
7310 * cp-valprint.c (cp_print_value_fields): Allow an additional level
7311 of depth when printing anonymous structs or unions.
7312 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7313 Don't print either the top-level value, or the children if the
7314 max-depth is exceeded.
7315 (ppscm_print_children): When printing the key of a map, allow one
7316 extra level of depth.
7317 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7318 print either the top-level value, or the children if the max-depth
7319 is exceeded.
7320 (print_children): When printing the key of a map, allow one extra
7321 level of depth.
7322 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7323 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7324 (user_print_options): Initialise max_depth field.
7325 (val_print_scalar_or_string_type_p): New function.
7326 (val_print): Check to see if the max depth has been reached.
7327 (val_print_check_max_depth): Define new function.
7328 (show_print_max_depth): New function.
7329 (_initialize_valprint): Add 'print max-depth' option.
7330 * valprint.h (struct value_print_options) <max_depth>: New field.
7331 (val_print_check_max_depth): Declare new function.
7332 * NEWS: Document new feature.
7333
4be290b2
AB
73342019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7335
7336 * ada-lang.c (ada_language_defn): Initialise new field.
7337 * c-lang.c (c_is_string_type_p): New function.
7338 (c_language_defn): Initialise new field.
7339 (cplus_language_defn): Initialise new field.
7340 (asm_language_defn): Initialise new field.
7341 (minimal_language_defn): Initialise new field.
7342 * c-lang.h (c_is_string_type_p): Declare new function.
7343 * d-lang.c (d_language_defn): Initialise new field.
7344 * f-lang.c (f_is_string_type_p): New function.
7345 (f_language_defn): Initialise new field.
7346 * go-lang.c (go_is_string_type_p): New function.
7347 (go_language_defn): Initialise new field.
7348 * language.c (default_is_string_type_p): New function.
7349 (unknown_language_defn): Initialise new field.
7350 (auto_language_defn): Initialise new field.
7351 * language.h (struct language_defn) <la_is_string_type_p>: New
7352 member variable.
7353 (default_is_string_type_p): Declare new function.
7354 * m2-lang.c (m2_language_defn): Initialise new field.
7355 * objc-lang.c (objc_language_defn): Initialise new field.
7356 * opencl-lang.c (opencl_language_defn): Initialise new field.
7357 * p-lang.c (pascal_is_string_type_p): New function.
7358 (pascal_language_defn): Initialise new field.
7359 * rust-lang.c (rust_is_string_type_p): New function.
7360 (rust_language_defn): Initialise new field.
7361
721b08c6
AB
73622019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7363
7364 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7365 New field.
7366 * ada-lang.c (ada_language_defn): Initialise new field.
7367 * c-lang.c (c_language_defn): Likewise.
7368 (cplus_language_defn): Likewise.
7369 (asm_language_defn): Likewise.
7370 (minimal_language_defn): Likewise.
7371 * d-lang.c (d_language_defn): Likewise.
7372 * f-lang.c (f_language_defn): Likewise.
7373 * go-lang.c (go_language_defn): Likewise.
7374 * language.c (unknown_language_defn): Likewise.
7375 (auto_language_defn): Likewise.
7376 * m2-lang.c (m2_language_defn): Likewise.
7377 * objc-lang.c (objc_language_defn): Likewise.
7378 * opencl-lang.c (opencl_language_defn): Likewise.
7379 * p-lang.c (pascal_language_defn): Likewise.
7380 * rust-lang.c (rust_language_defn): Likewise.
7381
fc913e53
AB
73822019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7383
7384 * ada-lang.c (ada_is_character_type): Change return type to bool.
7385 (ada_is_string_type): Likewise.
7386 * ada-lang.h (ada_is_character_type): Update declaration
7387 (ada_is_string_type): Likewise.
7388
fa731fa0
PW
73892019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7390
7391 Support style in 'frame|thread apply'
7392
7393 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7394 * record.c (record_start, record_stop): Update callers of
7395 execute_command_to_string with false.
7396 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7397 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7398 methods.
7399 (class string_file): New constructor with term_out parameter.
7400 Override methods term_out and can_emit_style_escape. New member
7401 term_out.
7402 (class stdio_file): Override can_emit_style_escape.
7403 (class tee_file): Override term_out and can_emit_style_escape.
7404 * utils.h (can_emit_style_escape): Remove.
7405 * utils.c (can_emit_style_escape): Likewise.
7406 Update all callers of can_emit_style_escape (SOMESTREAM) to
7407 SOMESTREAM->can_emit_style_escape.
7408 * source-cache.c (source_cache::get_source_lines): Likewise.
7409 * stack.c (frame_apply_command_count): Call execute_command_to_string
7410 passing the term_out characteristic of the current gdb_stdout.
7411 * thread.c (thr_try_catch_cmd): Likewise.
7412 * top.c (execute_command_to_string): pass term_out parameter
7413 to construct the string_file for the command output.
7414 * ui-file.c (term_cli_styling): New function (most code moved
7415 from utils.c can_emit_style_escape).
7416 (string_file::string_file, string_file::can_emit_style_escape,
7417 stdio_file::can_emit_style_escape, tee_file::term_out,
7418 tee_file::can_emit_style_escape): New functions.
7419
136afab8
PW
74202019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7421
7422 * NEWS: Mention the new set|show may-call-functions.
7423 * infcall.c (may_call_functions_p): New variable.
7424 (show_may_call_functions_p): New function.
7425 (call_function_by_hand_dummy): Throws an error if not
7426 may-call-functions.
7427 (_initialize_infcall): Call add_setshow_boolean_cmd for
7428 may-call-functions.
7429
725cbb63
KS
74302019-04-25 Keith Seitz <keiths@redhat.com>
7431
7432 PR c++/24367
7433 * cp-support.c (inspect_type): Don't attempt substitutions
7434 of symbol with the same name.
7435
3d1cbb78
TT
74362019-04-25 Tom Tromey <tromey@adacore.com>
7437
7438 PR gdb/24475:
7439 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7440 static.
7441
94aeb44b
TT
74422019-04-25 Tom Tromey <tromey@adacore.com>
7443
7444 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7445 rvalue reference.
7446 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7447 (gdb_xml_parser::parse): Use std::move.
7448 * python/python-internal.h (gdbpy_convert_exception): Take a const
7449 reference.
7450 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7451 std::move.
7452 * python/py-utils.c (gdbpy_convert_exception): Take a const
7453 reference.
7454 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7455 Use std::move.
7456 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7457 Use std::move.
7458 * mi/mi-main.c (mi_print_exception): Take a const reference.
7459 * main.c (handle_command_errors): Take a const reference.
7460 * linespec.c (parse_linespec): Use std::move.
7461 * infcall.c (run_inferior_call): Use std::move.
7462 (call_function_by_hand_dummy): Use std::move.
7463 * exec.c (try_open_exec_file): Use std::move.
7464 * exceptions.h (exception_print, exception_fprintf)
7465 (exception_print_same): Update.
7466 * exceptions.c (print_exception, exception_print)
7467 (exception_fprintf, exception_print_same): Change parameters to
7468 const reference.
7469 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7470 * common/new-op.c: Use std::move.
7471 * common/common-exceptions.h (struct gdb_exception): Add move
7472 constructor.
7473 (struct gdb_exception_error, struct gdb_exception_quit, struct
7474 gdb_quit_bad_alloc): Change constructor to move constructor.
7475 (throw_exception): Change parameter to rvalue reference.
7476 * common/common-exceptions.c (throw_exception): Take rvalue
7477 reference.
7478 * cli/cli-interp.c (safe_execute_command): Use std::move.
7479 * breakpoint.c (insert_bp_location, location_to_sals): Use
7480 std::move.
7481
680d7fd5
TT
74822019-04-25 Tom Tromey <tromey@adacore.com>
7483
7484 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7485 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7486 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7487 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7488 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7489 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7490 guile/scm-value.c: Use unpack.
7491 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7492 gdbscm_gdb_exception.
7493 (gdbscm_throw_gdb_exception): Likewise.
7494 (struct gdbscm_gdb_exception): New.
7495 (unpack): New function.
7496 (gdbscm_wrap): Use unpack.
7497
c6fdd8b2
TT
74982019-04-25 Tom Tromey <tromey@adacore.com>
7499
7500 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7501 (gdb_rl_callback_handler): Use std::move.
7502 * common/common-exceptions.h (struct gdb_exception): Add move
7503 assignment operator.
7504 (throw_exception_sjlj): Change "exception" to const reference.
7505 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7506 (throw_exception_sjlj): Change "exception" to const reference.
7507
cc06b668
TT
75082019-04-25 Tom Tromey <tromey@adacore.com>
7509
7510 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7511 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7512 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7513 Update.
7514 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7515 Update.
7516 * mi/mi-interp.c (mi_interp::exec): Update.
7517 * linespec.c (parse_linespec): Update.
7518 * infcall.c (run_inferior_call): Update.
7519 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7520 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7521 (gdbscm_lookup_global_symbol): Update.
7522 * guile/scm-param.c (gdbscm_parameter_value): Update.
7523 * guile/scm-frame.c (gdbscm_frame_read_register)
7524 (gdbscm_frame_read_var): Update.
7525 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7526 * exec.c (try_open_exec_file): Update.
7527 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7528 (gdb_rl_callback_handler): Update.
7529 * common/common-exceptions.h (exception_none): Don't declare.
7530 * common/common-exceptions.c (exception_none): Don't define.
7531 (struct catcher) <exception>: Update.
7532 * cli/cli-interp.c (safe_execute_command): Update.
7533 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7534
cf532bd1
AT
75352019-04-25 Ali Tamur <tamur@google.com>
7536
7537 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7538 (read_attribute_value): Likewise.
7539 (dwarf2_read_addr_index): Update comment.
7540 (read_str_index): Add DW_FORM_strx.
7541 (dwarf2_string_attr): Likewise.
7542 (dwarf2_const_value_attr): Likewise.
7543 (dump_die_shallow): Likewise.
7544 (dwarf2_fetch_constant_bytes): Likewise.
7545 (skip_form_bytes): Likewise.
7546 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7547
82433e3e
SDJ
75482019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7549
7550 PR corefiles/11608
7551 PR corefiles/18187
7552 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7553 OFFSET. Verify if current mapping contains an ELF header.
7554 (linux_find_memory_regions_full): Adjust call to
7555 dump_mapping_p.
7556
723adb65
SL
75572019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7558 Kang Li <kanglictf@gmail.com>
7559
7560 PR gdb/21600
7561
7562 * dwarf2-frame.c (read_initial_length): Be consistent about using
7563 unsigned representation of length.
7564 (decode_frame_entry_1): Likewise. Check for wraparound of
7565 end pointer as well as buffer overflow.
7566
596179f7
SDJ
75672019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7568
7569 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7570 "vq".
7571
a59240a4
TT
75722019-04-24 Tom Tromey <tromey@adacore.com>
7573
7574 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7575
f872fdbb
AB
75762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7577
7578 * s12z-tdep.c (s12z_unwind_pc): Delete.
7579 (s12z_unwind_sp): Delete.
7580 (s12z_gdbarch_init): Don't register deleted functions with
7581 gdbarch.
7582
b614e6f3
AB
75832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7584
7585 * rl78-tdep.c (rl78_unwind_sp): Delete.
7586 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7587
14faed38
AB
75882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7589
7590 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7591 (xstormy16_unwind_pc): Delete.
7592 (xstormy16_dummy_id): Delete.
7593 (xstormy16_gdbarch_init): Don't register deleted functions with
7594 gdbarch.
7595
541aad8a
AB
75962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7597
7598 * vax-tdep.c (vax_unwind_pc): Delete.
7599 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7600
29222070
AB
76012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7602
7603 * v850-tdep.c (v850_unwind_sp): Delete.
7604 (v850_unwind_pc): Delete.
7605 (v850_dummy_id): Delete.
7606 (v850_gdbarch_init): Don't register deleted functions with
7607 gdbarch.
7608
0f534d76
AB
76092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7610
7611 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7612 (tilegx_unwind_pc): Delete.
7613 (tilegx_unwind_dummy_id): Delete.
7614 (tilegx_gdbarch_init): Don't register deleted functions with
7615 gdbarch.
7616
1ba7b7f9
AB
76172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7618
7619 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7620 (tic6x_dummy_id): Delete.
7621 (tic6x_gdbarch_init): Don't register deleted functions with
7622 gdbarch.
7623
d31f262c
AB
76242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7625
7626 * sparc-tdep.c (sparc_unwind_pc): Delete.
7627 (sparc32_gdbarch_init): Don't register deleted function with
7628 gdbarch.
7629
6d14d64d
AB
76302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7631
7632 * sh-tdep.c (sh_unwind_sp): Delete.
7633 (sh_unwind_pc): Delete.
7634 (sh_dummy_id): Delete.
7635 (sh_gdbarch_init): Don't register deleted functions with
7636 gdbarch.
7637
a40dde9d
AB
76382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7639
7640 * score-tdep.c (score_unwind_sp): Delete.
7641 (score_unwind_pc): Delete.
7642 (score_dummy_id): Delete.
7643 (score_gdbarch_init): Don't register deleted functions with
7644 gdbarch.
7645
47c47d69
AB
76462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7647
7648 * rx-tdep.c (rx_unwind_pc): Delete.
7649 (rx_unwind_sp): Delete.
7650 (rx_dummy_id): Delete.
7651 (rx_gdbarch_init): Don't register deleted functions with
7652 gdbarch. Update comment.
7653
833a4480
AB
76542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7655
7656 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7657 (rs6000_dummy_id): Delete.
7658 (rs6000_gdbarch_init): Don't register deleted functions with
7659 gdbarch.
7660
3f2cef49
AB
76612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7662
7663 * or1k-tdep.c (or1k_dummy_id): Delete.
7664 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7665
96acf884
AB
76662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7667
7668 * nios2-tdep.c (nios2_dummy_id): Delete.
7669 (nios2_unwind_sp): Delete.
7670 (nios2_gdbarch_init): Don't register deleted functions with
7671 gdbarch.
7672
ca0ab0aa
AB
76732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7674
7675 * nds32-tdep.c (nds32_dummy_id): Delete.
7676 (nds32_unwind_pc): Delete.
7677 (nds32_unwind_sp): Delete.
7678 (nds32_gdbarch_init): Don't register deleted functions with
7679 gdbarch.
7680
c8259044
AB
76812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7682
7683 * msp430-tdep.c (msp430_unwind_pc): Delete.
7684 (msp430_unwind_sp): Delete.
7685 (msp430_dummy_id): Delete.
7686 (msp430_gdbarch_init): Don't register deleted functions with
7687 gdbarch.
7688
27f113c8
AB
76892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7690
7691 * moxie-tdep.c (moxie_unwind_sp): Delete.
7692 (moxie_unwind_pc): Delete.
7693 (moxie_dummy_id): Delete.
7694 (moxie_gdbarch_init): Don't register deleted functions with
7695 gdbarch.
7696
aee6c3cd
AB
76972019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7698
7699 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7700 (mn10300_unwind_pc): Delete.
7701 (mn10300_unwind_sp): Delete.
7702 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7703 mn10300_unwind_sp.
7704 (mn10300_frame_unwind_init): Don't register deleted functions with
7705 gdbarch.
7706
8e2b5aea
AB
77072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7708
7709 * mep-tdep.c (mep_unwind_pc): Delete.
7710 (mep_unwind_sp): Delete.
7711 (mep_dummy_id): Delete.
7712 (mep_gdbarch_init): Don't register deleted functions with
7713 gdbarch.
7714
43cf3ede
AB
77152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7716
7717 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7718 (m68hc11_unwind_sp): Delete.
7719 (m68hc11_gdbarch_init): Don't register deleted functions with
7720 gdbarch.
7721
5e79b7bb
AB
77222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7723
7724 * m32r-tdep.c (m32r_unwind_sp): Delete.
7725 (m32r_unwind_pc): Delete.
7726 (m32r_dummy_id): Delete.
7727 (m32r_gdbarch_init): Don't register deleted functions with
7728 gdbarch.
7729
89b268d8
AB
77302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7731
7732 * m32c-tdep.c (m32c_unwind_pc): Delete.
7733 (m32c_unwind_sp): Delete.
7734 (m32c_dummy_id): Delete.
7735 (m32c_gdbarch_init): Don't register deleted functions with
7736 gdbarch.
7737
946c28d2
AB
77382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7739
7740 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7741 (lm32_unwind_pc): Delete.
7742 (lm32_dummy_id): Delete.
7743 (lm32_gdbarch_init): Don't register deleted functions with
7744 gdbarch.
7745
bf12844a
AB
77462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7747
7748 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7749 (iq2000_unwind_pc): Delete.
7750 (iq2000_dummy_id): Delete.
7751 (iq2000_gdbarch_init): Don't register deleted functions with
7752 gdbarch.
7753
ecbc06d2
AB
77542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7755
7756 * nds32-tdep.c (nds32_type_align): Delete.
7757 (nds32_push_dummy_call): Use type_align instead.
7758
030197b4
AB
77592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7760
7761 * arm-tdep.c (arm_type_align): Only handle vector override case.
7762 (arm_push_dummy_call): Use type_align.
7763 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7764
b907456c
AB
77652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7766
7767 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7768 case.
7769 (pass_on_stack): Use type_align.
7770 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7771 function.
7772
9e97ba43
TT
77732019-04-23 Tom Tromey <tromey@adacore.com>
7774
7775 * dwarf2read.c (line_header::file_name_at): Remove unused
7776 overload.
7777
6892f601
TV
77782019-04-23 Tom de Vries <tdevries@suse.de>
7779
7780 PR gdb/24438
7781 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7782 invocation.
7783
336d760d
AT
7784
77852019-03-27 Ali Tamur <tamur@google.com>
7786
7787 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7788 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7789 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7790 (dwarf_expr_context::get_addr_index): Likewise
7791 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7792 (symbol_needs_eval_context::get_addr_index): Likewise
7793 (disassemble_dwarf_expression): Add DW_OP_addrx
7794 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7795 (read_cutu_die_from_dwo): Update comment
7796 (skip_one_die): Add DW_FORM_addrx
7797 (read_attribute_value): Likewise
7798 (var_decode_location): Add DW_OP_addrx
7799 (dwarf2_const_value_attr): Add DW_FORM_addrx
7800 (dump_die_shallow): Likewise
7801 (dwarf2_fetch_constant_bytes): Likewise
7802 (decode_locdesc): Add DW_OP_addrx
7803 (skip_form_bytes): Add DW_FORM_addrx
7804
ad9d13f8
AT
78052019-04-22 Ali Tamur <tamur@google.com>
7806
7807 * MAINTAINERS (Write After Approval): Add self.
7808
d70cc3ba
SM
78092019-04-22 Simon Marchi <simon.marchi@efficios.com>
7810
7811 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7812 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7813 (open_symbol_file_object): Likewise.
7814 (svr4_default_sos): Add info parameter.
7815 (svr4_read_so_list): Likewise.
7816 (svr4_current_sos_direct): Adjust functions calls to pass down
7817 info.
7818 (svr4_current_sos_1): Add info parameter.
7819 (svr4_current_sos): Call get_svr4_info, pass info down to
7820 svr4_current_sos_1.
7821 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7822 get_svr4_info.
7823 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7824 get_svr4_info.
7825 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7826 to get_svr4_info.
7827 (probes_table_remove_objfile_probes): Likewise.
7828 (register_solib_event_probe): Add info parameter.
7829 (solist_update_incremental): Pass info parameter down to
7830 svr4_read_so_list.
7831 (disable_probes_interface): Add info parameter.
7832 (svr4_handle_solib_event): Pass current_program_space to
7833 get_svr4_info. Adjust disable_probes_interface cleanup.
7834 (svr4_create_probe_breakpoints): Add info parameter, pass it
7835 down to register_solib_event_probe.
7836 (svr4_create_solib_event_breakpoints): Add info parameter,
7837 pass it down to svr4_create_probe_breakpoints.
7838 (enable_break): Pass info down to
7839 svr4_create_solib_event_breakpoints.
7840 (svr4_solib_create_inferior_hook): Pass current_program_space to
7841 get_svr4_info.
7842 (svr4_clear_solib): Likewise.
7843
7905fc35
PA
78442019-04-22 Pedro Alves <palves@redhat.com>
7845
7846 * solib-svr4.c (svr4_free_objfile_observer): New.
7847 (probe_and_action::objfile): New field.
7848 (probes_table_htab_remove_objfile_probes)
7849 (probes_table_remove_objfile_probes): New functions.
7850 (register_solib_event_probe): Add 'objfile' parameter. Store it
7851 in the new probe_and_action. Don't store the probe in 'lookup'.
7852 (svr4_create_probe_breakpoints): Pass objfile to
7853 register_solib_event_probe.
7854 (_initialize_svr4_solib): Register a free_objfile observer.
7855
fb881986
TT
78562019-04-19 Tom Tromey <tom@tromey.com>
7857
7858 * common/queue.h: Remove.
7859
8732db6c
TT
78602019-04-19 Tom Tromey <tom@tromey.com>
7861
7862 * event-loop.c: Don't include "common/queue.h".
7863
97dfbadd
TT
78642019-04-19 Tom Tromey <tom@tromey.com>
7865
7866 * remote.c (remote_target): Use delete.
7867 * remote-notif.h: Include <list>, not "common/queue.h".
7868 (notif_client_p): Remove typedef.
7869 (remote_notif_state): Add constructor, destructor, initializer.
7870 <notif_queue>: Now a std::list.
7871 (remote_notif_state_xfree): Don't declare.
7872 * remote-notif.c (remote_notif_process, handle_notification)
7873 (remote_notif_state_allocate): Update.
7874 (~remote_notif_state): Rename from remote_notif_state_xfree.
7875
cf250e36
TT
78762019-04-19 Tom Tromey <tom@tromey.com>
7877
7878 * symfile.c (reread_symbols): Update.
7879 * objfiles.c (objfile_register_static_link)
7880 (objfile_lookup_static_link): Update
7881 (~objfile) Don't delete static_links.
7882 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7883
61f4b350
TT
78842019-04-19 Tom Tromey <tom@tromey.com>
7885
7886 * type-stack.h (struct type_stack) <insert>: Constify string.
7887 * type-stack.c (type_stack::insert): Constify string.
7888 * gdbtypes.h (lookup_template_type): Update.
7889 (address_space_name_to_int): Update.
7890 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7891 const.
7892 (lookup_template_type): Make name const.
7893 * c-exp.y: Update rules.
7894 (lex_one_token, classify_name, classify_inner_name)
7895 (c_print_token): Update.
7896 * p-exp.y: Update rules.
7897 (yylex): Update.
7898 * f-exp.y: Update rules.
7899 (yylex): Update.
7900 * d-exp.y: Update rules.
7901 (lex_one_token, classify_name, classify_inner_name): Update.
7902 * parse.c (write_dollar_variable, copy_name): Return std::string.
7903 * parser-defs.h (copy_name): Change return type.
7904 * m2-exp.y: Update rules.
7905 (yylex): Update.
7906 * go-exp.y (lex_one_token): Update.
7907 Update rules.
7908 (classify_unsafe_function, classify_packaged_name)
7909 (classify_name, yylex): Update.
7910
189b8c2e
ST
79112019-04-19 Sergei Trofimovich <siarheit@google.com>
7912
7913 * configure.ac: add --enable-source-highlight switch.
7914 * configure: Regenerate.
7915 * top.c (print_gdb_version): plumb --enable-source-highlight
7916 status to "show configuration".
7917
8ecb59f8
TT
79182019-04-19 Tom Tromey <tromey@adacore.com>
7919
7920 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7921 Check ADA_TYPE_P.
7922 (empty_record, ada_template_to_fixed_record_type_1)
7923 (template_to_static_fixed_type)
7924 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7925 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7926 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7927 macros.
7928
62160ec9
TT
79292019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7930
7931 PR symtab/24423:
7932 * source.c (print_source_lines_base): Advance "iter" when a
7933 control character is seen.
7934
f2ae8bc8
PW
79352019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7936
7937 * inferior.h (struct infcall_suspend_state_deleter):
7938 Catch exception in destructor to avoid crash.
7939
d563b953
PW
79402019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7941
7942 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7943 close to the add_com "shell".
7944
dc34c897
TT
79452019-04-18 Tom Tromey <tromey@adacore.com>
7946
7947 * process-stratum-target.h (class process_stratum_target)
7948 <stratum>: Add "final".
7949
a12e5744
TT
79502019-04-17 Tom Tromey <tromey@adacore.com>
7951
7952 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7953 against nullptr before use.
7954
a7e559cc
AH
79552019-04-17 Alan Hayward <alan.hayward@arm.com>
7956
7957 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7958
c01660c6
AB
79592019-04-17 Jim Wilson <jimw@sifive.com>
7960 Andrew Burgess <andrew.burgess@embecosm.com>
7961
7962 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7963 code read might fail, assume 4-byte breakpoint in that case.
7964
4aa866af
LS
79652019-04-15 Leszek Swirski <leszeks@google.com>
7966
7967 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7968 rather than a hand-rolled POD check when checking for forced MEMORY
7969 classification.
7970
48574d91
AH
79712019-04-15 Alan Hayward <alan.hayward@arm.com>
7972
7973 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7974 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7975 function.
7976 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7977 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7978 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7979 declaration.
7980
4da037ef
AH
79812019-04-15 Alan Hayward <alan.hayward@arm.com>
7982
7983 * aarch64-linux-nat.c
7984 (aarch64_linux_nat_target::thread_architecture): Add override.
7985 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7986 each VQ.
7987
ccb8d7e8
AH
79882019-04-15 Alan Hayward <alan.hayward@arm.com>
7989
7990 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7991
35add35e
AB
79922019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7993
7994 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7995 target types of size 96-bits, add some additional comments, and
7996 check that the builtin type we found was the correct size.
7997
51196bbc
EZ
79982019-04-12 Eli Zaretskii <eliz@gnu.org>
7999
8000 * utils.c (prompt_for_continue): Don't restore the styling at the
8001 end, as applied_style has the wrong value. This fixes styling in
8002 long lists of file names that are interrupted by the "Continue?"
8003 prompt.
8004
62253a61
AB
80052019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8006
8007 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8008 * c-lang.c (c_language_defn): Likewise.
8009 (cplus_language_defn): Likewise.
8010 (asm_language_defn): Likewise.
8011 (minimal_language_defn): Likewise.
8012 * d-lang.c (d_language_defn): Likewise.
8013 * f-lang.c (f_language_defn): Likewise.
8014 * go-lang.c (go_language_defn): Likewise.
8015 * language.c (unknown_language_defn): Likewise.
8016 (auto_language_defn): Likewise.
8017 * language.h (struct language_defn): Remove la_magic field.
8018 (LANG_MAGIC): Delete.
8019 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8020 * objc-lang.c (objc_language_defn): Likewise.
8021 * opencl-lang.c (opencl_language_defn): Likewise.
8022 * p-lang.c (pascal_language_defn): Likewise.
8023 * rust-lang.c (rust_language_defn): Likewise.
8024
a9158a86
AB
80252019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8026
8027 * riscv-tdep.c (riscv_type_align): New function.
8028 (riscv_type_alignment): Delete.
8029 (riscv_arg_location): Use 'type_align'.
8030 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8031
41077b66
AB
80322019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8033
8034 * gdbtypes.c (type_align): A struct with no non-static fields also
8035 has alignment of 1.
8036
9f0272f8
AB
80372019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8038
8039 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8040 component to 0.
8041 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8042 member.
8043 (riscv_struct_info::analyse): New implementation using new
8044 analyse_inner member function.
8045 (riscv_struct_info::field_offset): New member function.
8046 (riscv_struct_info::m_offsets): New member variable.
8047 (riscv_struct_info::analyse_inner): New private member function,
8048 takes the old implementation of riscv_struct_info::analyse but
8049 extended to track field offsets.
8050 (riscv_call_arg_struct): Update the struct folding special cases
8051 to handle cases where empty C++ structs, which are non-zero
8052 length, are found.
8053 (riscv_arg_location): Initialise the length of each location, a
8054 non-zero length now indicates the location is in use.
8055 (riscv_push_dummy_call): Allow for the first location having a
8056 non-zero offset when setting up arguments.
8057 (riscv_return_value): Likewise, but for return values.
8058
02cf60c7
TT
80592019-04-11 Tom Tromey <tromey@adacore.com>
8060
8061 * utils.c (internal_vproblem): Make "msg" const.
8062
68811f8f
AH
80632019-04-11 Alan Hayward <alan.hayward@arm.com>
8064
8065 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8066 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8067 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8068 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8069
3f52fdbc
KB
80702019-04-10 Kevin Buettner <kevinb@redhat.com>
8071
8072 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8073 function.
8074 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8075 of amd64_collect_native_gregset.
8076 (amd64_linux_nat_target::store_registers): Likewise.
8077
e9ad22ee
TT
80782019-04-10 Tom Tromey <tom@tromey.com>
8079
8080 * symtab.c (lookup_global_symbol_from_objfile)
8081 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8082 * objfiles.h (class separate_debug_iterator): New.
8083 (class separate_debug_range): New.
8084 (struct objfile) <separate_debug_objfiles>: New method.
8085 (objfile_separate_debug_iterate): Don't declare.
8086 * objfiles.c (separate_debug_iterator::operator++): Rename from
8087 objfile_separate_debug_iterate.
8088 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8089 iterator.
8090 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8091 iterator.
8092
ee371134
TT
80932019-04-10 Tom Tromey <tom@tromey.com>
8094
8095 * symfile.c (reread_symbols): Remove old comment.
8096 * objfiles.c (free_all_objfiles): Fix a typo.
8097
bf227d61
TT
80982019-04-10 Tom Tromey <tom@tromey.com>
8099
8100 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8101 * minsyms.c (lookup_minimal_symbol): Use foreach.
8102 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8103 (lookup_minimal_symbol_solib_trampoline): Likewise.
8104 * symfile.c (reread_symbols): Use foreach.
8105
8dc433a0
TT
81062019-04-09 Ivan Begert <ivanbegert@gmail.com>
8107 Tom Tromey <tromey@adacore.com>
8108
8109 PR rust/24414:
8110 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8111 (rust_lex_int_test): Change "value" to be LONGEST.
8112 (rust_lex_tests): Add test for long integer literal.
8113
9ab8741a
TT
81142019-04-09 Tom Tromey <tromey@adacore.com>
8115
8116 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8117 to bool.
8118 (extended_remote_target::attach): Update.
8119 (remote_target::remote_notice_new_inferior): Update.
8120 (remote_target::add_current_inferior_and_thread): Update.
8121 * inferior.c (exit_inferior_1): Use "false".
8122 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8123
e242fd12
SM
81242019-04-09 Simon Marchi <simon.marchi@efficios.com>
8125
9ca1957f 8126 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
8127 the "start" command.
8128
2b0c8b01
KB
81292019-04-08 Kevin Buettner <kevinb@redhat.com>
8130
8131 * python/py-inferior.c (infpy_thread_from_thread_handle):
8132 Adjust comments to reflect renaming of thread_from_thread_handle
8133 to thread_from_handle. Adjust keywords. Fix type error message.
8134 (inferior_object_methods): Add thread_from_handle. Retain
8135 thread_from_thread_handle, but mark it as deprecated.
8136
50a82723
KB
81372019-04-08 Kevin Buettner <kevinb@redhat.com>
8138
8139 * gdbthread.h (find_thread_by_handle): Revise declaration.
8140 * thread.c (find_thread_by_handle): Likewise. Adjust
8141 implementation too.
8142 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8143 support for buffer objects as handles.
8144
cf63b016
KB
81452019-04-08 Kevin Buettner <kevinb@redhat.com>
8146
8147 * python/py-infthread.c (thpy_thread_handle): New function.
8148 (thread_object_methods): Register thpy_thread_handle.
8149
3d6c6204
KB
81502019-04-08 Kevin Buettner <kevinb@redhat.com>
8151
8152 * gdbthread.h (thread_to_thread_handle): Declare.
8153 * thread.c (gdbtypes.h): Include.
8154 (thread_to_thread_handle): New function.
8155
8156 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8157 (target_thread_info_to_thread_handle): Declare.
8158 * target.c (target_thread_info_to_thread_handle): New function.
8159 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8160 * target-delegates.c: Regenerate.
8161
8162 * linux-thread-db.c (class thread_db_target): Add method
8163 thread_info_to_thread_handle.
8164 (thread_db_target::thread_info_to_thread_handle): Define.
8165 * remote.c (class remote_target): Add new method
8166 thread_info_to_thread_handle.
8167 (remote_target::thread_info_to_thread_handle): Define.
8168
56be6ea8
PA
81692019-04-08 Pedro Alves <palves@redhat.com>
8170
8171 * common/common-exceptions.c (throw_exception): Don't create
8172 named object to throw; throw directly.
8173 (throw_it): Likewise. Don't initialize gdb_exception::message
8174 here, with new; pass FMT and AP to the ctor instead.
8175 * common/common-exceptions.h: Include <string>.
8176 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8177 const char *, va_list)): New ctor. Use std::make_shared.
8178 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8179 errors)): Delete.
8180 (gdb_exception_error::gdb_exception_error(enum errors, const char
8181 *, va_list)): New.
8182 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8183 Add assertion.
8184 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8185 errors)): Delete.
8186 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8187 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8188 Add assertion.
8189
eedc3f4f
TT
81902019-04-08 Tom Tromey <tom@tromey.com>
8191
8192 * valops.c (value_rtti_indirect_type): Replace throw_exception
8193 with throw.
8194 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8195 with throw.
8196 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8197 throw.
8198 * target.c (target_translate_tls_address): Replace throw_exception
8199 with throw.
8200 * stack.c (frame_apply_command_count): Replace throw_exception
8201 with throw.
8202 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8203 throw.
8204 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8205 with throw.
8206 * rs6000-tdep.c (rs6000_frame_cache)
8207 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8208 * remote.c: Replace throw_exception with throw.
8209 * record-full.c (record_full_message, record_full_wait_1)
8210 (record_full_restore): Replace throw_exception with throw.
8211 * record-btrace.c:
8212 (get_thread_current_frame_id, record_btrace_start_replaying)
8213 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8214 (cmd_record_btrace_start): Replace throw_exception with throw.
8215 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8216 throw.
8217 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8218 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8219 * linespec.c:
8220 (find_linespec_symbols): Replace throw_exception with throw.
8221 * infrun.c (displaced_step_prepare, resume): Replace
8222 throw_exception with throw.
8223 * infcmd.c (post_create_inferior): Replace throw_exception with
8224 throw.
8225 * inf-loop.c (inferior_event_handler): Replace throw_exception
8226 with throw.
8227 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8228 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8229 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8230 (get_prev_frame_always, get_frame_pc_if_available)
8231 (get_frame_address_in_block_if_available, get_frame_language):
8232 Replace throw_exception with throw.
8233 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8234 throw_exception with throw.
8235 * eval.c (fetch_subexp_value, evaluate_var_value)
8236 (evaluate_funcall, evaluate_subexp_standard): Replace
8237 throw_exception with throw.
8238 * dwarf2loc.c (call_site_find_chain)
8239 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8240 Replace throw_exception with throw.
8241 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8242 with throw.
8243 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8244 throw.
8245 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8246 * completer.c (complete_line_internal): Replace throw_exception
8247 with throw.
8248 * compile/compile-object-run.c (compile_object_run): Replace
8249 throw_exception with throw.
8250 * cli/cli-script.c (process_next_line): Replace throw_exception
8251 with throw.
8252 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8253 (btrace_enable, btrace_maint_update_pt_packets): Replace
8254 throw_exception with throw.
8255 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8256 throw_exception with throw.
8257 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8258 throw_exception with throw.
8259 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8260 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8261 * aarch64-tdep.c (aarch64_make_prologue_cache)
8262 (aarch64_make_stub_cache): Replace throw_exception with throw.
8263
26003a20
TT
82642019-04-08 Tom Tromey <tom@tromey.com>
8265
8266 * common/common-exceptions.c (throw_exception): Rename from
8267 throw_exception_cxx. Remove old copy. Make argument const.
8268 (throw_it): Create and throw exception objects directly.
8269 * common/common-exceptions.h (throw_exception): Make argument
8270 const.
8271 (struct gdb_exception_error): Add constructor.
8272 (struct gdb_exception_quit): Add constructor.
8273
d272eb37
TT
82742019-04-08 Tom Tromey <tom@tromey.com>
8275
8276 * common/common-exceptions.h (exception_rethrow): Don't declare.
8277 (TRY_SJLJ): Update comment.
8278 (TRY, CATCH, END_CATCH): Remove.
8279 * common/common-exceptions.c (exception_rethrow): Remove.
8280
230d2906
TT
82812019-04-08 Tom Tromey <tom@tromey.com>
8282
8283 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8284 Remove.
8285 (gdb_exception_error): Rename from
8286 gdb_exception_RETURN_MASK_ERROR.
8287 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8288 (gdb_quit_bad_alloc): Update.
8289 * aarch64-tdep.c: Update.
8290 * ada-lang.c: Update.
8291 * ada-typeprint.c: Update.
8292 * ada-valprint.c: Update.
8293 * amd64-tdep.c: Update.
8294 * arch-utils.c: Update.
8295 * break-catch-throw.c: Update.
8296 * breakpoint.c: Update.
8297 * btrace.c: Update.
8298 * c-varobj.c: Update.
8299 * cli/cli-cmds.c: Update.
8300 * cli/cli-interp.c: Update.
8301 * cli/cli-script.c: Update.
8302 * common/common-exceptions.c: Update.
8303 * common/new-op.c: Update.
8304 * common/selftest.c: Update.
8305 * compile/compile-c-symbols.c: Update.
8306 * compile/compile-cplus-symbols.c: Update.
8307 * compile/compile-object-load.c: Update.
8308 * compile/compile-object-run.c: Update.
8309 * completer.c: Update.
8310 * corelow.c: Update.
8311 * cp-abi.c: Update.
8312 * cp-support.c: Update.
8313 * cp-valprint.c: Update.
8314 * darwin-nat.c: Update.
8315 * disasm-selftests.c: Update.
8316 * dtrace-probe.c: Update.
8317 * dwarf-index-cache.c: Update.
8318 * dwarf-index-write.c: Update.
8319 * dwarf2-frame-tailcall.c: Update.
8320 * dwarf2-frame.c: Update.
8321 * dwarf2loc.c: Update.
8322 * dwarf2read.c: Update.
8323 * eval.c: Update.
8324 * event-loop.c: Update.
8325 * event-top.c: Update.
8326 * exec.c: Update.
8327 * f-valprint.c: Update.
8328 * fbsd-tdep.c: Update.
8329 * frame-unwind.c: Update.
8330 * frame.c: Update.
8331 * gdbtypes.c: Update.
8332 * gnu-v3-abi.c: Update.
8333 * guile/guile-internal.h: Update.
8334 * guile/scm-block.c: Update.
8335 * guile/scm-breakpoint.c: Update.
8336 * guile/scm-cmd.c: Update.
8337 * guile/scm-disasm.c: Update.
8338 * guile/scm-frame.c: Update.
8339 * guile/scm-lazy-string.c: Update.
8340 * guile/scm-math.c: Update.
8341 * guile/scm-param.c: Update.
8342 * guile/scm-ports.c: Update.
8343 * guile/scm-pretty-print.c: Update.
8344 * guile/scm-symbol.c: Update.
8345 * guile/scm-symtab.c: Update.
8346 * guile/scm-type.c: Update.
8347 * guile/scm-value.c: Update.
8348 * i386-linux-tdep.c: Update.
8349 * i386-tdep.c: Update.
8350 * inf-loop.c: Update.
8351 * infcall.c: Update.
8352 * infcmd.c: Update.
8353 * infrun.c: Update.
8354 * jit.c: Update.
8355 * language.c: Update.
8356 * linespec.c: Update.
8357 * linux-fork.c: Update.
8358 * linux-nat.c: Update.
8359 * linux-tdep.c: Update.
8360 * linux-thread-db.c: Update.
8361 * main.c: Update.
8362 * mi/mi-cmd-break.c: Update.
8363 * mi/mi-cmd-stack.c: Update.
8364 * mi/mi-interp.c: Update.
8365 * mi/mi-main.c: Update.
8366 * objc-lang.c: Update.
8367 * p-valprint.c: Update.
8368 * parse.c: Update.
8369 * ppc-linux-tdep.c: Update.
8370 * printcmd.c: Update.
8371 * python/py-arch.c: Update.
8372 * python/py-breakpoint.c: Update.
8373 * python/py-cmd.c: Update.
8374 * python/py-finishbreakpoint.c: Update.
8375 * python/py-frame.c: Update.
8376 * python/py-framefilter.c: Update.
8377 * python/py-gdb-readline.c: Update.
8378 * python/py-inferior.c: Update.
8379 * python/py-infthread.c: Update.
8380 * python/py-lazy-string.c: Update.
8381 * python/py-linetable.c: Update.
8382 * python/py-objfile.c: Update.
8383 * python/py-param.c: Update.
8384 * python/py-prettyprint.c: Update.
8385 * python/py-progspace.c: Update.
8386 * python/py-record-btrace.c: Update.
8387 * python/py-record.c: Update.
8388 * python/py-symbol.c: Update.
8389 * python/py-type.c: Update.
8390 * python/py-unwind.c: Update.
8391 * python/py-utils.c: Update.
8392 * python/py-value.c: Update.
8393 * python/python.c: Update.
8394 * record-btrace.c: Update.
8395 * record-full.c: Update.
8396 * remote-fileio.c: Update.
8397 * remote.c: Update.
8398 * riscv-tdep.c: Update.
8399 * rs6000-aix-tdep.c: Update.
8400 * rs6000-tdep.c: Update.
8401 * rust-exp.y: Update.
8402 * rust-lang.c: Update.
8403 * s390-tdep.c: Update.
8404 * selftest-arch.c: Update.
8405 * solib-dsbt.c: Update.
8406 * solib-frv.c: Update.
8407 * solib-spu.c: Update.
8408 * solib-svr4.c: Update.
8409 * solib.c: Update.
8410 * sparc64-linux-tdep.c: Update.
8411 * stack.c: Update.
8412 * symfile-mem.c: Update.
8413 * symmisc.c: Update.
8414 * target.c: Update.
8415 * thread.c: Update.
8416 * top.c: Update.
8417 * tracefile-tfile.c: Update.
8418 * tui/tui.c: Update.
8419 * typeprint.c: Update.
8420 * unittests/cli-utils-selftests.c: Update.
8421 * unittests/parse-connection-spec-selftests.c: Update.
8422 * valops.c: Update.
8423 * valprint.c: Update.
8424 * value.c: Update.
8425 * varobj.c: Update.
8426 * windows-nat.c: Update.
8427 * x86-linux-nat.c: Update.
8428 * xml-support.c: Update.
8429
a70b8144
TT
84302019-04-08 Tom Tromey <tom@tromey.com>
8431
8432 * xml-support.c: Use C++ exception handling.
8433 * x86-linux-nat.c: Use C++ exception handling.
8434 * windows-nat.c: Use C++ exception handling.
8435 * varobj.c: Use C++ exception handling.
8436 * value.c: Use C++ exception handling.
8437 * valprint.c: Use C++ exception handling.
8438 * valops.c: Use C++ exception handling.
8439 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8440 handling.
8441 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8442 * typeprint.c: Use C++ exception handling.
8443 * tui/tui.c: Use C++ exception handling.
8444 * tracefile-tfile.c: Use C++ exception handling.
8445 * top.c: Use C++ exception handling.
8446 * thread.c: Use C++ exception handling.
8447 * target.c: Use C++ exception handling.
8448 * symmisc.c: Use C++ exception handling.
8449 * symfile-mem.c: Use C++ exception handling.
8450 * stack.c: Use C++ exception handling.
8451 * sparc64-linux-tdep.c: Use C++ exception handling.
8452 * solib.c: Use C++ exception handling.
8453 * solib-svr4.c: Use C++ exception handling.
8454 * solib-spu.c: Use C++ exception handling.
8455 * solib-frv.c: Use C++ exception handling.
8456 * solib-dsbt.c: Use C++ exception handling.
8457 * selftest-arch.c: Use C++ exception handling.
8458 * s390-tdep.c: Use C++ exception handling.
8459 * rust-lang.c: Use C++ exception handling.
8460 * rust-exp.y: Use C++ exception handling.
8461 * rs6000-tdep.c: Use C++ exception handling.
8462 * rs6000-aix-tdep.c: Use C++ exception handling.
8463 * riscv-tdep.c: Use C++ exception handling.
8464 * remote.c: Use C++ exception handling.
8465 * remote-fileio.c: Use C++ exception handling.
8466 * record-full.c: Use C++ exception handling.
8467 * record-btrace.c: Use C++ exception handling.
8468 * python/python.c: Use C++ exception handling.
8469 * python/py-value.c: Use C++ exception handling.
8470 * python/py-utils.c: Use C++ exception handling.
8471 * python/py-unwind.c: Use C++ exception handling.
8472 * python/py-type.c: Use C++ exception handling.
8473 * python/py-symbol.c: Use C++ exception handling.
8474 * python/py-record.c: Use C++ exception handling.
8475 * python/py-record-btrace.c: Use C++ exception handling.
8476 * python/py-progspace.c: Use C++ exception handling.
8477 * python/py-prettyprint.c: Use C++ exception handling.
8478 * python/py-param.c: Use C++ exception handling.
8479 * python/py-objfile.c: Use C++ exception handling.
8480 * python/py-linetable.c: Use C++ exception handling.
8481 * python/py-lazy-string.c: Use C++ exception handling.
8482 * python/py-infthread.c: Use C++ exception handling.
8483 * python/py-inferior.c: Use C++ exception handling.
8484 * python/py-gdb-readline.c: Use C++ exception handling.
8485 * python/py-framefilter.c: Use C++ exception handling.
8486 * python/py-frame.c: Use C++ exception handling.
8487 * python/py-finishbreakpoint.c: Use C++ exception handling.
8488 * python/py-cmd.c: Use C++ exception handling.
8489 * python/py-breakpoint.c: Use C++ exception handling.
8490 * python/py-arch.c: Use C++ exception handling.
8491 * printcmd.c: Use C++ exception handling.
8492 * ppc-linux-tdep.c: Use C++ exception handling.
8493 * parse.c: Use C++ exception handling.
8494 * p-valprint.c: Use C++ exception handling.
8495 * objc-lang.c: Use C++ exception handling.
8496 * mi/mi-main.c: Use C++ exception handling.
8497 * mi/mi-interp.c: Use C++ exception handling.
8498 * mi/mi-cmd-stack.c: Use C++ exception handling.
8499 * mi/mi-cmd-break.c: Use C++ exception handling.
8500 * main.c: Use C++ exception handling.
8501 * linux-thread-db.c: Use C++ exception handling.
8502 * linux-tdep.c: Use C++ exception handling.
8503 * linux-nat.c: Use C++ exception handling.
8504 * linux-fork.c: Use C++ exception handling.
8505 * linespec.c: Use C++ exception handling.
8506 * language.c: Use C++ exception handling.
8507 * jit.c: Use C++ exception handling.
8508 * infrun.c: Use C++ exception handling.
8509 * infcmd.c: Use C++ exception handling.
8510 * infcall.c: Use C++ exception handling.
8511 * inf-loop.c: Use C++ exception handling.
8512 * i386-tdep.c: Use C++ exception handling.
8513 * i386-linux-tdep.c: Use C++ exception handling.
8514 * guile/scm-value.c: Use C++ exception handling.
8515 * guile/scm-type.c: Use C++ exception handling.
8516 * guile/scm-symtab.c: Use C++ exception handling.
8517 * guile/scm-symbol.c: Use C++ exception handling.
8518 * guile/scm-pretty-print.c: Use C++ exception handling.
8519 * guile/scm-ports.c: Use C++ exception handling.
8520 * guile/scm-param.c: Use C++ exception handling.
8521 * guile/scm-math.c: Use C++ exception handling.
8522 * guile/scm-lazy-string.c: Use C++ exception handling.
8523 * guile/scm-frame.c: Use C++ exception handling.
8524 * guile/scm-disasm.c: Use C++ exception handling.
8525 * guile/scm-cmd.c: Use C++ exception handling.
8526 * guile/scm-breakpoint.c: Use C++ exception handling.
8527 * guile/scm-block.c: Use C++ exception handling.
8528 * guile/guile-internal.h: Use C++ exception handling.
8529 * gnu-v3-abi.c: Use C++ exception handling.
8530 * gdbtypes.c: Use C++ exception handling.
8531 * frame.c: Use C++ exception handling.
8532 * frame-unwind.c: Use C++ exception handling.
8533 * fbsd-tdep.c: Use C++ exception handling.
8534 * f-valprint.c: Use C++ exception handling.
8535 * exec.c: Use C++ exception handling.
8536 * event-top.c: Use C++ exception handling.
8537 * event-loop.c: Use C++ exception handling.
8538 * eval.c: Use C++ exception handling.
8539 * dwarf2read.c: Use C++ exception handling.
8540 * dwarf2loc.c: Use C++ exception handling.
8541 * dwarf2-frame.c: Use C++ exception handling.
8542 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8543 * dwarf-index-write.c: Use C++ exception handling.
8544 * dwarf-index-cache.c: Use C++ exception handling.
8545 * dtrace-probe.c: Use C++ exception handling.
8546 * disasm-selftests.c: Use C++ exception handling.
8547 * darwin-nat.c: Use C++ exception handling.
8548 * cp-valprint.c: Use C++ exception handling.
8549 * cp-support.c: Use C++ exception handling.
8550 * cp-abi.c: Use C++ exception handling.
8551 * corelow.c: Use C++ exception handling.
8552 * completer.c: Use C++ exception handling.
8553 * compile/compile-object-run.c: Use C++ exception handling.
8554 * compile/compile-object-load.c: Use C++ exception handling.
8555 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8556 * compile/compile-c-symbols.c: Use C++ exception handling.
8557 * common/selftest.c: Use C++ exception handling.
8558 * common/new-op.c: Use C++ exception handling.
8559 * cli/cli-script.c: Use C++ exception handling.
8560 * cli/cli-interp.c: Use C++ exception handling.
8561 * cli/cli-cmds.c: Use C++ exception handling.
8562 * c-varobj.c: Use C++ exception handling.
8563 * btrace.c: Use C++ exception handling.
8564 * breakpoint.c: Use C++ exception handling.
8565 * break-catch-throw.c: Use C++ exception handling.
8566 * arch-utils.c: Use C++ exception handling.
8567 * amd64-tdep.c: Use C++ exception handling.
8568 * ada-valprint.c: Use C++ exception handling.
8569 * ada-typeprint.c: Use C++ exception handling.
8570 * ada-lang.c: Use C++ exception handling.
8571 * aarch64-tdep.c: Use C++ exception handling.
8572
3d6e9d23
TT
85732019-04-08 Tom Tromey <tom@tromey.com>
8574
8575 * xml-support.c (gdb_xml_parser::parse): Update.
8576 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8577 * value.c (show_convenience): Update.
8578 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8579 (test_parse_flags_qcs): Update.
8580 * thread.c (thr_try_catch_cmd): Update.
8581 * target.c (target_translate_tls_address): Update.
8582 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8583 (info_frame_command_core, frame_apply_command_count): Update.
8584 * rust-exp.y (rust_lex_exception_test): Update.
8585 * riscv-tdep.c (riscv_print_one_register_info): Update.
8586 * remote.c (remote_target::enable_btrace): Update.
8587 * record-btrace.c (record_btrace_enable_warn): Update.
8588 * python/py-utils.c (gdbpy_convert_exception): Update.
8589 * printcmd.c (do_one_display, print_variable_and_value): Update.
8590 * mi/mi-main.c (mi_print_exception): Update.
8591 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8592 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8593 * linux-nat.c (linux_nat_target::attach): Update.
8594 * linux-fork.c (class scoped_switch_fork_info): Update.
8595 * infrun.c (displaced_step_prepare): Update.
8596 * infcall.c (call_function_by_hand_dummy): Update.
8597 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8598 * gnu-v3-abi.c (print_one_vtable): Update.
8599 * frame.c (get_prev_frame_always): Update.
8600 * f-valprint.c (info_common_command_for_block): Update.
8601 * exec.c (try_open_exec_file): Update.
8602 * exceptions.c (print_exception, exception_print)
8603 (exception_fprintf, exception_print_same): Update.
8604 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8605 * dwarf-index-cache.c (index_cache::store)
8606 (index_cache::lookup_gdb_index): Update.
8607 * darwin-nat.c (maybe_cache_shell): Update.
8608 * cp-valprint.c (cp_print_value_fields): Update.
8609 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8610 (gcc_cplus_symbol_address): Update.
8611 * compile/compile-c-symbols.c (gcc_convert_symbol)
8612 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8613 * common/selftest.c: Update.
8614 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8615 a std::string.
8616 (exception_try_scope_entry, exception_try_scope_exit): Don't
8617 declare.
8618 (struct exception_try_scope): Remove.
8619 (TRY): Don't use exception_try_scope.
8620 (struct gdb_exception): Add constructor, operator=.
8621 <what>: New method.
8622 (struct gdb_exception_RETURN_MASK_ALL)
8623 (struct gdb_exception_RETURN_MASK_ERROR)
8624 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8625 (struct gdb_quit_bad_alloc): Update.
8626 * common/common-exceptions.c (exception_none): Change
8627 initializer.
8628 (struct catcher) <state, exception>: Initialize inline.
8629 <prev>: Remove member.
8630 (current_catcher): Remove.
8631 (catchers): New global.
8632 (exceptions_state_mc_init): Simplify.
8633 (catcher_pop): Remove.
8634 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8635 (try_scope_depth, exception_try_scope_entry)
8636 (exception_try_scope_exit): Remove.
8637 (throw_exception_sjlj): Update.
8638 (exception_messages, exception_messages_size): Remove.
8639 (throw_it): Simplify.
8640 (gdb_exception_sliced_copy): Remove.
8641 (throw_exception_cxx): Update.
8642 * cli/cli-script.c (script_from_file): Update.
8643 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8644 Update.
8645 * ada-valprint.c (ada_val_print): Update.
8646 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8647 (create_excep_cond_exprs): Update.
8648
c5c10118
TT
86492019-04-08 Tom Tromey <tom@tromey.com>
8650
8651 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8652 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8653 (TRY, CATCH, END_CATCH): Remove some definitions.
8654 * common/common-exceptions.c: Don't use GDB_XCPT.
8655 (catcher_list_size): Remove.
8656 (throw_exception, throw_it): Simplify.
8657
4de283e4
TT
86582019-04-05 Tom Tromey <tom@tromey.com>
8659
8660 Revert the header-sorting patch.
8661 * ft32-tdep.c: Revert.
8662 * frv-tdep.c: Revert.
8663 * frv-linux-tdep.c: Revert.
8664 * frame.c: Revert.
8665 * frame-unwind.c: Revert.
8666 * frame-base.c: Revert.
8667 * fork-child.c: Revert.
8668 * findvar.c: Revert.
8669 * findcmd.c: Revert.
8670 * filesystem.c: Revert.
8671 * filename-seen-cache.h: Revert.
8672 * filename-seen-cache.c: Revert.
8673 * fbsd-tdep.c: Revert.
8674 * fbsd-nat.h: Revert.
8675 * fbsd-nat.c: Revert.
8676 * f-valprint.c: Revert.
8677 * f-typeprint.c: Revert.
8678 * f-lang.c: Revert.
8679 * extension.h: Revert.
8680 * extension.c: Revert.
8681 * extension-priv.h: Revert.
8682 * expprint.c: Revert.
8683 * exec.h: Revert.
8684 * exec.c: Revert.
8685 * exceptions.c: Revert.
8686 * event-top.c: Revert.
8687 * event-loop.c: Revert.
8688 * eval.c: Revert.
8689 * elfread.c: Revert.
8690 * dwarf2read.h: Revert.
8691 * dwarf2read.c: Revert.
8692 * dwarf2loc.c: Revert.
8693 * dwarf2expr.h: Revert.
8694 * dwarf2expr.c: Revert.
8695 * dwarf2-frame.c: Revert.
8696 * dwarf2-frame-tailcall.c: Revert.
8697 * dwarf-index-write.h: Revert.
8698 * dwarf-index-write.c: Revert.
8699 * dwarf-index-common.c: Revert.
8700 * dwarf-index-cache.h: Revert.
8701 * dwarf-index-cache.c: Revert.
8702 * dummy-frame.c: Revert.
8703 * dtrace-probe.c: Revert.
8704 * disasm.h: Revert.
8705 * disasm.c: Revert.
8706 * disasm-selftests.c: Revert.
8707 * dictionary.c: Revert.
8708 * dicos-tdep.c: Revert.
8709 * demangle.c: Revert.
8710 * dcache.h: Revert.
8711 * dcache.c: Revert.
8712 * darwin-nat.h: Revert.
8713 * darwin-nat.c: Revert.
8714 * darwin-nat-info.c: Revert.
8715 * d-valprint.c: Revert.
8716 * d-namespace.c: Revert.
8717 * d-lang.c: Revert.
8718 * ctf.c: Revert.
8719 * csky-tdep.c: Revert.
8720 * csky-linux-tdep.c: Revert.
8721 * cris-tdep.c: Revert.
8722 * cris-linux-tdep.c: Revert.
8723 * cp-valprint.c: Revert.
8724 * cp-support.c: Revert.
8725 * cp-namespace.c: Revert.
8726 * cp-abi.c: Revert.
8727 * corelow.c: Revert.
8728 * corefile.c: Revert.
8729 * continuations.c: Revert.
8730 * completer.h: Revert.
8731 * completer.c: Revert.
8732 * complaints.c: Revert.
8733 * coffread.c: Revert.
8734 * coff-pe-read.c: Revert.
8735 * cli-out.h: Revert.
8736 * cli-out.c: Revert.
8737 * charset.c: Revert.
8738 * c-varobj.c: Revert.
8739 * c-valprint.c: Revert.
8740 * c-typeprint.c: Revert.
8741 * c-lang.c: Revert.
8742 * buildsym.c: Revert.
8743 * buildsym-legacy.c: Revert.
8744 * build-id.h: Revert.
8745 * build-id.c: Revert.
8746 * btrace.c: Revert.
8747 * bsd-uthread.c: Revert.
8748 * breakpoint.h: Revert.
8749 * breakpoint.c: Revert.
8750 * break-catch-throw.c: Revert.
8751 * break-catch-syscall.c: Revert.
8752 * break-catch-sig.c: Revert.
8753 * blockframe.c: Revert.
8754 * block.c: Revert.
8755 * bfin-tdep.c: Revert.
8756 * bfin-linux-tdep.c: Revert.
8757 * bfd-target.c: Revert.
8758 * bcache.c: Revert.
8759 * ax-general.c: Revert.
8760 * ax-gdb.h: Revert.
8761 * ax-gdb.c: Revert.
8762 * avr-tdep.c: Revert.
8763 * auxv.c: Revert.
8764 * auto-load.c: Revert.
8765 * arm-wince-tdep.c: Revert.
8766 * arm-tdep.c: Revert.
8767 * arm-symbian-tdep.c: Revert.
8768 * arm-pikeos-tdep.c: Revert.
8769 * arm-obsd-tdep.c: Revert.
8770 * arm-nbsd-tdep.c: Revert.
8771 * arm-nbsd-nat.c: Revert.
8772 * arm-linux-tdep.c: Revert.
8773 * arm-linux-nat.c: Revert.
8774 * arm-fbsd-tdep.c: Revert.
8775 * arm-fbsd-nat.c: Revert.
8776 * arm-bsd-tdep.c: Revert.
8777 * arch-utils.c: Revert.
8778 * arc-tdep.c: Revert.
8779 * arc-newlib-tdep.c: Revert.
8780 * annotate.h: Revert.
8781 * annotate.c: Revert.
8782 * amd64-windows-tdep.c: Revert.
8783 * amd64-windows-nat.c: Revert.
8784 * amd64-tdep.c: Revert.
8785 * amd64-sol2-tdep.c: Revert.
8786 * amd64-obsd-tdep.c: Revert.
8787 * amd64-obsd-nat.c: Revert.
8788 * amd64-nbsd-tdep.c: Revert.
8789 * amd64-nbsd-nat.c: Revert.
8790 * amd64-nat.c: Revert.
8791 * amd64-linux-tdep.c: Revert.
8792 * amd64-linux-nat.c: Revert.
8793 * amd64-fbsd-tdep.c: Revert.
8794 * amd64-fbsd-nat.c: Revert.
8795 * amd64-dicos-tdep.c: Revert.
8796 * amd64-darwin-tdep.c: Revert.
8797 * amd64-bsd-nat.c: Revert.
8798 * alpha-tdep.c: Revert.
8799 * alpha-obsd-tdep.c: Revert.
8800 * alpha-nbsd-tdep.c: Revert.
8801 * alpha-mdebug-tdep.c: Revert.
8802 * alpha-linux-tdep.c: Revert.
8803 * alpha-linux-nat.c: Revert.
8804 * alpha-bsd-tdep.c: Revert.
8805 * alpha-bsd-nat.c: Revert.
8806 * aix-thread.c: Revert.
8807 * agent.c: Revert.
8808 * addrmap.c: Revert.
8809 * ada-varobj.c: Revert.
8810 * ada-valprint.c: Revert.
8811 * ada-typeprint.c: Revert.
8812 * ada-tasks.c: Revert.
8813 * ada-lang.c: Revert.
8814 * aarch64-tdep.c: Revert.
8815 * aarch64-ravenscar-thread.c: Revert.
8816 * aarch64-newlib-tdep.c: Revert.
8817 * aarch64-linux-tdep.c: Revert.
8818 * aarch64-linux-nat.c: Revert.
8819 * aarch64-fbsd-tdep.c: Revert.
8820 * aarch64-fbsd-nat.c: Revert.
8821 * aarch32-linux-nat.c: Revert.
8822
d55e5aa6
TT
88232019-04-05 Tom Tromey <tom@tromey.com>
8824
8825 * ft32-tdep.c: Sort headers.
8826 * frv-tdep.c: Sort headers.
8827 * frv-linux-tdep.c: Sort headers.
8828 * frame.c: Sort headers.
8829 * frame-unwind.c: Sort headers.
8830 * frame-base.c: Sort headers.
8831 * fork-child.c: Sort headers.
8832 * findvar.c: Sort headers.
8833 * findcmd.c: Sort headers.
8834 * filesystem.c: Sort headers.
8835 * filename-seen-cache.h: Sort headers.
8836 * filename-seen-cache.c: Sort headers.
8837 * fbsd-tdep.c: Sort headers.
8838 * fbsd-nat.h: Sort headers.
8839 * fbsd-nat.c: Sort headers.
8840 * f-valprint.c: Sort headers.
8841 * f-typeprint.c: Sort headers.
8842 * f-lang.c: Sort headers.
8843 * extension.h: Sort headers.
8844 * extension.c: Sort headers.
8845 * extension-priv.h: Sort headers.
8846 * expprint.c: Sort headers.
8847 * exec.h: Sort headers.
8848 * exec.c: Sort headers.
8849 * exceptions.c: Sort headers.
8850 * event-top.c: Sort headers.
8851 * event-loop.c: Sort headers.
8852 * eval.c: Sort headers.
8853 * elfread.c: Sort headers.
8854 * dwarf2read.h: Sort headers.
8855 * dwarf2read.c: Sort headers.
8856 * dwarf2loc.c: Sort headers.
8857 * dwarf2expr.h: Sort headers.
8858 * dwarf2expr.c: Sort headers.
8859 * dwarf2-frame.c: Sort headers.
8860 * dwarf2-frame-tailcall.c: Sort headers.
8861 * dwarf-index-write.h: Sort headers.
8862 * dwarf-index-write.c: Sort headers.
8863 * dwarf-index-common.c: Sort headers.
8864 * dwarf-index-cache.h: Sort headers.
8865 * dwarf-index-cache.c: Sort headers.
8866 * dummy-frame.c: Sort headers.
8867 * dtrace-probe.c: Sort headers.
8868 * disasm.h: Sort headers.
8869 * disasm.c: Sort headers.
8870 * disasm-selftests.c: Sort headers.
8871 * dictionary.c: Sort headers.
8872 * dicos-tdep.c: Sort headers.
8873 * demangle.c: Sort headers.
8874 * dcache.h: Sort headers.
8875 * dcache.c: Sort headers.
8876 * darwin-nat.h: Sort headers.
8877 * darwin-nat.c: Sort headers.
8878 * darwin-nat-info.c: Sort headers.
8879 * d-valprint.c: Sort headers.
8880 * d-namespace.c: Sort headers.
8881 * d-lang.c: Sort headers.
8882 * ctf.c: Sort headers.
8883 * csky-tdep.c: Sort headers.
8884 * csky-linux-tdep.c: Sort headers.
8885 * cris-tdep.c: Sort headers.
8886 * cris-linux-tdep.c: Sort headers.
8887 * cp-valprint.c: Sort headers.
8888 * cp-support.c: Sort headers.
8889 * cp-namespace.c: Sort headers.
8890 * cp-abi.c: Sort headers.
8891 * corelow.c: Sort headers.
8892 * corefile.c: Sort headers.
8893 * continuations.c: Sort headers.
8894 * completer.h: Sort headers.
8895 * completer.c: Sort headers.
8896 * complaints.c: Sort headers.
8897 * coffread.c: Sort headers.
8898 * coff-pe-read.c: Sort headers.
8899 * cli-out.h: Sort headers.
8900 * cli-out.c: Sort headers.
8901 * charset.c: Sort headers.
8902 * c-varobj.c: Sort headers.
8903 * c-valprint.c: Sort headers.
8904 * c-typeprint.c: Sort headers.
8905 * c-lang.c: Sort headers.
8906 * buildsym.c: Sort headers.
8907 * buildsym-legacy.c: Sort headers.
8908 * build-id.h: Sort headers.
8909 * build-id.c: Sort headers.
8910 * btrace.c: Sort headers.
8911 * bsd-uthread.c: Sort headers.
8912 * breakpoint.h: Sort headers.
8913 * breakpoint.c: Sort headers.
8914 * break-catch-throw.c: Sort headers.
8915 * break-catch-syscall.c: Sort headers.
8916 * break-catch-sig.c: Sort headers.
8917 * blockframe.c: Sort headers.
8918 * block.c: Sort headers.
8919 * bfin-tdep.c: Sort headers.
8920 * bfin-linux-tdep.c: Sort headers.
8921 * bfd-target.c: Sort headers.
8922 * bcache.c: Sort headers.
8923 * ax-general.c: Sort headers.
8924 * ax-gdb.h: Sort headers.
8925 * ax-gdb.c: Sort headers.
8926 * avr-tdep.c: Sort headers.
8927 * auxv.c: Sort headers.
8928 * auto-load.c: Sort headers.
8929 * arm-wince-tdep.c: Sort headers.
8930 * arm-tdep.c: Sort headers.
8931 * arm-symbian-tdep.c: Sort headers.
8932 * arm-pikeos-tdep.c: Sort headers.
8933 * arm-obsd-tdep.c: Sort headers.
8934 * arm-nbsd-tdep.c: Sort headers.
8935 * arm-nbsd-nat.c: Sort headers.
8936 * arm-linux-tdep.c: Sort headers.
8937 * arm-linux-nat.c: Sort headers.
8938 * arm-fbsd-tdep.c: Sort headers.
8939 * arm-fbsd-nat.c: Sort headers.
8940 * arm-bsd-tdep.c: Sort headers.
8941 * arch-utils.c: Sort headers.
8942 * arc-tdep.c: Sort headers.
8943 * arc-newlib-tdep.c: Sort headers.
8944 * annotate.h: Sort headers.
8945 * annotate.c: Sort headers.
8946 * amd64-windows-tdep.c: Sort headers.
8947 * amd64-windows-nat.c: Sort headers.
8948 * amd64-tdep.c: Sort headers.
8949 * amd64-sol2-tdep.c: Sort headers.
8950 * amd64-obsd-tdep.c: Sort headers.
8951 * amd64-obsd-nat.c: Sort headers.
8952 * amd64-nbsd-tdep.c: Sort headers.
8953 * amd64-nbsd-nat.c: Sort headers.
8954 * amd64-nat.c: Sort headers.
8955 * amd64-linux-tdep.c: Sort headers.
8956 * amd64-linux-nat.c: Sort headers.
8957 * amd64-fbsd-tdep.c: Sort headers.
8958 * amd64-fbsd-nat.c: Sort headers.
8959 * amd64-dicos-tdep.c: Sort headers.
8960 * amd64-darwin-tdep.c: Sort headers.
8961 * amd64-bsd-nat.c: Sort headers.
8962 * alpha-tdep.c: Sort headers.
8963 * alpha-obsd-tdep.c: Sort headers.
8964 * alpha-nbsd-tdep.c: Sort headers.
8965 * alpha-mdebug-tdep.c: Sort headers.
8966 * alpha-linux-tdep.c: Sort headers.
8967 * alpha-linux-nat.c: Sort headers.
8968 * alpha-bsd-tdep.c: Sort headers.
8969 * alpha-bsd-nat.c: Sort headers.
8970 * aix-thread.c: Sort headers.
8971 * agent.c: Sort headers.
8972 * addrmap.c: Sort headers.
8973 * ada-varobj.c: Sort headers.
8974 * ada-valprint.c: Sort headers.
8975 * ada-typeprint.c: Sort headers.
8976 * ada-tasks.c: Sort headers.
8977 * ada-lang.c: Sort headers.
8978 * aarch64-tdep.c: Sort headers.
8979 * aarch64-ravenscar-thread.c: Sort headers.
8980 * aarch64-newlib-tdep.c: Sort headers.
8981 * aarch64-linux-tdep.c: Sort headers.
8982 * aarch64-linux-nat.c: Sort headers.
8983 * aarch64-fbsd-tdep.c: Sort headers.
8984 * aarch64-fbsd-nat.c: Sort headers.
8985 * aarch32-linux-nat.c: Sort headers.
8986
699bd4cf
TT
89872019-04-04 Tom Tromey <tom@tromey.com>
8988
8989 * varobj.c (varobj_create): Update.
8990 * rust-exp.y (struct rust_parser) <update_innermost_block,
8991 lookup_symbol>: New methods.
8992 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8993 Rename.
8994 (rust_parser::rust_lookup_type)
8995 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8996 * printcmd.c (display_command, do_one_display): Update.
8997 * parser-defs.h (struct parser_state) <parser_state>: Add
8998 "tracker" parameter.
8999 (block_tracker): New member.
9000 (class innermost_block_tracker) <innermost_block_tracker>: Add
9001 "types" parameter.
9002 <reset>: Remove method.
9003 (innermost_block): Don't declare.
9004 (null_post_parser): Update.
9005 * parse.c (innermost_block): Remove global.
9006 (write_dollar_variable): Update.
9007 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9008 Remove "tracker_types" parameter.
9009 (parse_expression): Add "tracker" parameter.
9010 (parse_expression_for_completion): Update.
9011 (null_post_parser): Add "tracker" parameter.
9012 * p-exp.y: Update rules.
9013 * m2-exp.y: Update rules.
9014 * language.h (struct language_defn) <la_post_parser>: Add
9015 "tracker" parameter.
9016 * go-exp.y: Update rules.
9017 * f-exp.y: Update rules.
9018 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9019 parameter.
9020 * d-exp.y: Update rules.
9021 * c-exp.y: Update rules.
9022 * breakpoint.c (set_breakpoint_condition): Create an
9023 innermost_block_tracker.
9024 (watch_command_1): Likewise.
9025 * ada-lang.c (resolve): Add "tracker" parameter.
9026 (resolve_subexp): Likewise.
9027 * ada-exp.y (write_var_from_sym): Update.
9028
dac43e32
TT
90292019-04-04 Tom Tromey <tom@tromey.com>
9030
9031 * type-stack.h: New file.
9032 * type-stack.c: New file.
9033 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9034 type-stack.h.
9035 (insert_into_type_stack, insert_type, push_type, push_type_int)
9036 (insert_type_address_space, pop_type, pop_type_int)
9037 (pop_typelist, pop_type_stack, append_type_stack)
9038 (push_type_stack, get_type_stack, push_typelist)
9039 (follow_type_instance_flags, follow_types): Don't declare.
9040 * parse.c (type_stack): Remove global.
9041 (parse_exp_in_context): Update.
9042 (insert_into_type_stack, insert_type, push_type, push_type_int)
9043 (insert_type_address_space, pop_type, pop_type_int)
9044 (pop_typelist, pop_type_stack, append_type_stack)
9045 (push_type_stack, get_type_stack, push_typelist)
9046 (follow_type_instance_flags, follow_types): Remove (moved to
9047 type-stack.c).
9048 * f-exp.y (type_stack): New global.
9049 Update rules.
9050 (push_kind_type, f_parse): Update.
9051 * d-exp.y (type_stack): New global.
9052 Update rules.
9053 (d_parse): Update.
9054 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9055 Update rules.
9056 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9057 (HFILES_NO_SRCDIR): Add type-stack.h.
9058
2a612529
TT
90592019-04-04 Tom Tromey <tom@tromey.com>
9060
9061 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9062 (rust_parser::convert_ast_to_expression, rust_parse)
9063 (rust_lex_test_completion, rust_lex_tests): Update.
9064 * parser-defs.h (struct expr_completion_state): New.
9065 (struct parser_state) <parser_state>: Add completion parameter.
9066 <mark_struct_expression, mark_completion_tag>: New methods.
9067 <parse_completion, m_completion_state>: New members.
9068 (prefixify_expression, null_post_parser): Update.
9069 (mark_struct_expression, mark_completion_tag): Don't declare.
9070 * parse.c (parse_completion, expout_last_struct)
9071 (expout_tag_completion_type, expout_completion_name): Remove
9072 globals.
9073 (parser_state::mark_struct_expression)
9074 (parser_state::mark_completion_tag): Now methods.
9075 (prefixify_expression): Add last_struct parameter.
9076 (prefixify_subexp): Likewise.
9077 (parse_exp_1): Update.
9078 (parse_exp_in_context): Add cstate parameter. Update.
9079 (parse_expression_for_completion): Create an
9080 expr_completion_state.
9081 (null_post_parser): Add "completion" parameter.
9082 * p-exp.y: Update rules.
9083 (yylex): Update.
9084 * language.h (struct language_defn) <la_post_parser>: Add
9085 "completing" parameter.
9086 * go-exp.y: Update rules.
9087 (lex_one_token): Update.
9088 * expression.h (parse_completion): Don't declare.
9089 * d-exp.y: Update rules.
9090 (lex_one_token): Update rules.
9091 * c-exp.y: Update rules.
9092 (lex_one_token): Update.
9093 * ada-lang.c (resolve): Add "parse_completion" parameter.
9094 (resolve_subexp): Likewise.
9095 (ada_resolve_function): Likewise.
9096
43476f0b
TT
90972019-04-04 Tom Tromey <tom@tromey.com>
9098
9099 * parser-defs.h (struct parser_state) <start_arglist,
9100 end_arglist>: New methods.
9101 <arglist_len, m_funcall_chain>: New members.
9102 (arglist_len, start_arglist, end_arglist): Don't declare.
9103 * parse.c (arglist_len, funcall_chain): Remove global.
9104 (start_arglist, end_arglist): Remove functions.
9105 (parse_exp_in_context): Update.
9106 * p-exp.y: Update rules.
9107 * m2-exp.y: Update rules.
9108 * go-exp.y: Update rules.
9109 * f-exp.y: Update rules.
9110 * d-exp.y: Update rules.
9111 * c-exp.y: Update rules.
9112
5776fca3
TT
91132019-04-04 Tom Tromey <tom@tromey.com>
9114
9115 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9116 lex_operator, push_back>: New methods.
9117 Update all rules.
9118 (rust_parser::lex_hex, lex_escape): Rename and update.
9119 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9120 (rust_parser::lex_operator): Rename and update.
9121 (rust_parser::lex_number, rustyylex, rustyyerror)
9122 (rust_lex_test_init, rust_lex_test_sequence)
9123 (rust_lex_test_push_back, rust_lex_tests): Update.
9124 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9125 parameter.
9126 <lexptr, prev_lexptr>: New members.
9127 (lexptr, prev_lexptr): Don't declare.
9128 * parse.c (lexptr, prev_lexptr): Remove globals.
9129 (parse_exp_in_context): Update.
9130 * p-exp.y (yylex, yyerror): Update.
9131 * m2-exp.y (parse_number, yylex, yyerror): Update.
9132 * go-exp.y (lex_one_token, yyerror): Update.
9133 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9134 * d-exp.y (lex_one_token, yyerror): Update.
9135 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9136 (lex_one_token, yyerror): Update.
9137 * ada-lex.l (YY_INPUT): Update.
9138 (rewind_to_char): Update.
9139 * ada-exp.y (yyerror): Update.
9140
8621b685
TT
91412019-04-04 Tom Tromey <tom@tromey.com>
9142
9143 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9144 * parser-defs.h (struct parser_state) <parser_state>: Add new
9145 parameter.
9146 <comma_terminates>: New member.
9147 (comma_terminates): Don't declare global.
9148 * parse.c (comma_terminates): Remove global.
9149 (parse_exp_in_context): Update.
9150 * p-exp.y (yylex): Update.
9151 * m2-exp.y (yylex): Update.
9152 * go-exp.y (lex_one_token): Update.
9153 * f-exp.y (yylex): Update.
9154 * d-exp.y (lex_one_token): Update.
9155 * c-exp.y (lex_one_token): Update.
9156 * ada-lex.l: Update.
9157
28aaf3fd
TT
91582019-04-04 Tom Tromey <tom@tromey.com>
9159
9160 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9161 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9162 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9163 * parser-defs.h (paren_depth): Don't declare.
9164 * parse.c (paren_depth): Remove global.
9165 (parse_exp_in_context): Update.
9166 * p-exp.y (paren_depth): New global.
9167 (pascal_parse): Initialize it.
9168 * m2-exp.y (paren_depth): New global.
9169 (m2_parse): Initialize it.
9170 * go-exp.y (paren_depth): New global.
9171 (go_parse): Initialize it.
9172 * f-exp.y (paren_depth): New global.
9173 (f_parse): Initialize it.
9174 * d-exp.y (paren_depth): New global.
9175 (d_parse): Initialize it.
9176 * c-exp.y (paren_depth): New global.
9177 (c_parse): Initialize it.
9178 * ada-lex.l (paren_depth): New global.
9179 (lexer_init): Initialize it.
9180
1e58a4a4
TT
91812019-04-04 Tom Tromey <tom@tromey.com>
9182
9183 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9184 (rust_parser::convert_ast_to_type)
9185 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9186 * parser-defs.h (struct parser_state) <parser_state>: Add
9187 parameters. Initialize new members.
9188 <expression_context_block, expression_context_pc>: New members.
9189 * parse.c (expression_context_block, expression_context_pc):
9190 Remove globals.
9191 (parse_exp_in_context): Update.
9192 * p-exp.y: Update all rules.
9193 (yylex): Update.
9194 * m2-exp.y: Update all rules.
9195 (yylex): Update.
9196 * go-exp.y (yylex): Update.
9197 * f-exp.y (yylex): Update.
9198 * d-exp.y: Update all rules.
9199 (yylex): Update.
9200 * c-exp.y: Update all rules.
9201 (lex_one_token, classify_name, yylex, c_parse): Update.
9202 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9203
37eedb39
TT
92042019-04-04 Tom Tromey <tom@tromey.com>
9205
9206 * gdbarch.h, gdbarch.c: Rebuild.
9207 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9208 * stap-probe.h:
9209 (struct stap_parse_info): Replace "parser_state" with
9210 "expr_builder".
9211 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9212 (parser_state): New class.
9213 * parse.c (expr_builder): Rename.
9214 (expr_builder::release): Rename.
9215 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9216 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9217 (write_exp_elt_longcst, write_exp_elt_floatcst)
9218 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9219 (write_exp_string_vector, write_exp_bitstring)
9220 (write_exp_msymbol, mark_struct_expression)
9221 (write_dollar_variable)
9222 (insert_type_address_space, increase_expout_size): Replace
9223 "parser_state" with "expr_builder".
9224 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9225 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9226 "parser_state" with "expr_builder".
9227
73923d7e
TT
92282019-04-04 Tom Tromey <tom@tromey.com>
9229
9230 * rust-exp.y: Replace "parse_language" with method call.
9231 * p-exp.y:
9232 (yylex): Replace "parse_language" with method call.
9233 * m2-exp.y:
9234 (yylex): Replace "parse_language" with method call.
9235 * go-exp.y (classify_name): Replace "parse_language" with method
9236 call.
9237 * f-exp.y (yylex): Replace "parse_language" with method call.
9238 * d-exp.y (lex_one_token): Replace "parse_language" with method
9239 call.
9240 * c-exp.y:
9241 (lex_one_token, classify_name, yylex): Replace "parse_language"
9242 with method call.
9243 * ada-exp.y (find_primitive_type, type_char)
9244 (type_system_address): Replace "parse_language" with method call.
9245
fa9f5be6
TT
92462019-04-04 Tom Tromey <tom@tromey.com>
9247
9248 * rust-exp.y: Replace "parse_gdbarch" with method call.
9249 * parse.c (write_dollar_variable, insert_type_address_space):
9250 Replace "parse_gdbarch" with method call.
9251 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9252 call.
9253 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9254 call.
9255 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9256 "parse_gdbarch" with method call.
9257 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9258 with method call.
9259 * f-exp.y (parse_type, parse_f_type, yylex): Replace
9260 "parse_gdbarch" with method call.
9261 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9262 "parse_gdbarch" with method call.
9263 * c-exp.y (parse_type, parse_number, classify_name): Replace
9264 "parse_gdbarch" with method call.
9265 * ada-lex.l: Replace "parse_gdbarch" with method call.
9266 * ada-exp.y (parse_type, find_primitive_type, type_char)
9267 (type_system_address): Replace "parse_gdbarch" with method call.
9268
1201a264
TT
92692019-04-04 Tom Tromey <tom@tromey.com>
9270
9271 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9272 * stap-probe.c (stap_parse_argument): Update.
9273 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9274 initial_size parameter.
9275 * rust-exp.y (rust_lex_tests): Update.
9276 * parse.c (parser_state): Update.
9277 (parse_exp_in_context): Update.
9278 * parser-defs.h (struct parser_state) <parser_state>: Remove
9279 "initial_size" parameter.
9280
e3980ce2
TT
92812019-04-04 Tom Tromey <tom@tromey.com>
9282
9283 * parser-defs.h (increase_expout_size): Don't declare.
9284 * parse.c (increase_expout_size): Now static.
9285
e9f8e3f1
TS
92862019-04-04 Thomas Schwinge <thomas@codesourcery.com>
9287
9288 * gnu-nat.c (gnu_nat_target::wait): Fix
9289 target_waitstatus_to_string call.
9290
d7df6549
AB
92912019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9292
9293 * eval.c (evaluate_subexp_standard): Handle internal functions
9294 during Fortran function call handling.
9295
8bdc1658
AB
92962019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9297
9298 * NEWS: Mention new internal functions.
9299 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9300 (read_base_type): Use dwarf2_init_complex_target_type.
9301 * value.c (creal_internal_fn): New function.
9302 (cimag_internal_fn): New function.
9303 (_initialize_values): Register new internal functions.
9304
c29705b7
PW
93052019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9306
9307 * infrun.c (stop_all_threads): If debug_infrun, always
9308 trace the wait status after wait_one, using
9309 target_waitstatus_to_string and target_pid_to_str.
9310 (handle_inferior_event): Replace various trace of
9311 wait status kind by a single trace.
9312 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9313 wait status kind image by target_waitstatus_to_string.
9314 * target/waitstatus.c (target_waitstatus_to_string): Fix
9315 obsolete comment.
9316
05caa1d2
TT
93172019-04-01 Tom Tromey <tromey@adacore.com>
9318
9319 PR symtab/23331:
9320 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9321
9d1447e0
SDJ
93222019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9323 Pedro Alves <palves@redhat.com>
9324
9325 * top.c (quit_force): Call 'finalize_values'.
9326 * value.c (finalize_values): New function.
9327 * value.h (finalize_values): Declare.
9328
7734102d
EZ
93292019-03-30 Eli Zaretskii <eliz@gnu.org>
9330
9331 * NEWS: Announce $_gdb_major and $_gdb_minor.
9332
9333 * top.c (init_gdb_version_vars): New function.
9334 (gdb_init): Call init_gdb_version_vars.
9335
188e1fa9
TT
93362019-03-29 Tom Tromey <tromey@adacore.com>
9337
9338 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9339 help text. Remove dead code.
9340
2880242d
KS
93412019-03-29 Keith Seitz <keiths@redhat.com>
9342
9343 From Siddhesh Poyarekar:
9344 * f-lang.h (f77_get_upperbound): Return LONGEST.
9345 (f77_get_lowerbound): Likewise.
9346 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9347 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9348 print them.
9349 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9350 plongest to format print it.
9351 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9352 (f77_get_upperbound): Likewise.
9353 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9354 LOWER_BOUND to LONGEST.
9355 (f77_create_arrayprint_offset_tbl): Likewise.
9356
cc1defb1
KS
93572019-03-29 Keith Seitz <keiths@redhat.com>
9358
9359 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9360 %s/pulongest for TYPE_LENGTH instead of %d in format
9361 strings.
9362 * ada-typerint.c (ada_print_type): Likewise.
9363 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9364 * compile/compile-c-support.c (generate_register_struct): Likewise.
9365 * gdbtypes.c (recursive_dump_type): Likewise.
9366 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9367 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9368 instead of %d in format strings.
9369 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9370 to std::min to ULONGEST.
9371 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9372 instead of %d in format strings.
9373 * tracepoint.c (info_scope_command): Likewise.
9374 * typeprint.c (print_offset_data::update)
9375 (print_offset_data::finish): Likewise.
9376 * xtensa-tdep.c (xtensa_store_return_value)
9377 (xtensa_push_dummy_call): Likewise.
9378
e432ccf1
JT
93792019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9380
9381 * windows-nat.c (display_selector): Fixed format specifications
9382 for 64-bit Cygwin.
9383
65d2b333
PW
93842019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9385
9386 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9387
f489207e
SL
93882019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9389
9390 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9391 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9392 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9393 (nios2_linux_init_abi): Install it.
9394
bffa1015
AH
93952019-03-28 Alan Hayward <alan.hayward@arm.com>
9396
9397 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9398
fc96163a
AH
93992019-03-28 Alan Hayward <alan.hayward@arm.com>
9400
9401 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9402
20dc7e9b
PW
94032019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9404 Tom Tromey <tromey@adacore.com>
9405
9406 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9407
7f5331a8
JB
94082019-03-26 Joel Brobecker <brobecker@adacore.com>
9409
9410 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9411 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9412 method to compute the bounds of range types. Also print "[evaluated]"
9413 if the bounds' values come from a dynamic evaluation.
9414
18c77628
AB
94152019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9416
9417 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9418 whitespace when pretty printing is on.
9419
53c973f2
AH
94202019-03-26 Alan Hayward <alan.hayward@arm.com>
9421
e79be6e5 9422 * ppc-linux-nat.c: Add include.
53c973f2 9423
d851aa71
AH
94242019-03-26 Alan Hayward <alan.hayward@arm.com>
9425
e79be6e5 9426 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 9427
2fe7bab7
AH
94282019-03-26 Alan Hayward <alan.hayward@arm.com>
9429
e79be6e5 9430 * arm-linux-nat.c: Add include.
2fe7bab7 9431
068ef30e
SM
94322019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9433
9434 * source-cache.c (source_cache::get_source_lines): Re-read
9435 fullname after calling open_source_file.
9436
81a24d04
JB
94372019-03-25 John Baldwin <jhb@FreeBSD.org>
9438
9439 * NEWS: Mention TLS support for FreeBSD.
9440
79e7ae11
TT
94412019-03-25 Tom Tromey <tromey@adacore.com>
9442
9443 * minsyms.c (BUNCH_SIZE): Update comment.
9444 (~minimal_symbol_reader): Remove old comment.
9445 (compact_minimal_symbols): Update comment.
9446 (minimal_symbol_reader::install): Remove old comment. Update
9447 other comments.
9448
d45963c2
AH
94492019-03-25 Alan Hayward <alan.hayward@arm.com>
9450
9451 * s390-linux-nat.c: Add include.
9452
0f83012e
AH
94532019-03-25 Alan Hayward <alan.hayward@arm.com>
9454
9455 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9456 Call linux_get_hwcap.
9457 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9458 Likewise.
9459 (aarch64_linux_get_hwcap): Remove function.
9460 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9461 declaration.
9462 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9463 linux_get_hwcap.
9464 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9465 * linux-tdep.c (linux_get_hwcap): Add function.
9466 (linux_get_hwcap2): Likewise.
9467 * linux-tdep.h (linux_get_hwcap): Add declaration.
9468 (linux_get_hwcap2): Likewise.
9469 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9470 (ppc_linux_get_hwcap2): Likewise.
9471 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9472 linux_get_hwcap.
9473 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9474 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9475 (ppc_linux_nat_target::read_description): Likewise.
9476 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9477 * s390-linux-nat.c: Likewise.
9478 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9479
6640a367
TT
94802019-03-24 Tom Tromey <tom@tromey.com>
9481
9482 * ada-lang.c (standard_lookup): Simplify initialization.
9483 (ada_lookup_symbol_nonlocal): Simplify return.
9484 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9485 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9486 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9487 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9488 initialization.
9489 * solib.c (solib_global_lookup): Simplify.
9490 * symtab.c (null_block_symbol): Remove.
9491 (symbol_cache_lookup): Simplify returns.
9492 (lookup_language_this): Simplify returns.
9493 (lookup_symbol_aux): Simplify return.
9494 (lookup_local_symbol): Simplify returns.
9495 (lookup_global_symbol_from_objfile): Simplify return.
9496 (lookup_symbol_in_objfile_symtabs)
9497 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9498 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9499 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9500 * cp-namespace.c (cp_lookup_bare_symbol)
9501 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9502 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9503 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9504 (cp_lookup_symbol_via_imports): Simplify initialization.
9505 (find_symbol_in_baseclass): Likewise.
9506 * symtab.h (null_block_symbol): Remove.
9507 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9508 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9509 (d_lookup_symbol_module): Likewise.
9510 (find_symbol_in_baseclass): Simplify initialization.
9511
a930ebcd
TT
95122019-03-24 Tom Tromey <tom@tromey.com>
9513
9514 * expression.h: Don't include symtab.h.
9515 (struct block): Forward declare.
9516
582942f4
TT
95172019-03-24 Tom Tromey <tom@tromey.com>
9518
9519 * c-exp.y (typebase): Remove casts.
9520 * gdbtypes.c (lookup_unsigned_typename, )
9521 (lookup_signed_typename): Remove cast.
9522 * eval.c (parse_to_comma_and_eval): Remove cast.
9523 * parse.c (write_dollar_variable): Remove cast.
9524 * block.h (struct block) <superblock>: Now const.
9525 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9526 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9527 (map_block): Make "block" const.
9528 * symfile.h (struct quick_symbol_functions)
9529 <map_matching_symbols>: Constify block argument to "callback".
9530 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9531 const.
9532 (find_pc_sect_compunit_symtab): Make "b" const.
9533 (find_symbol_at_address): Likewise.
9534 (search_symbols): Likewise.
9535 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9536 (dw2_debug_names_lookup_symbol): Likewise.
9537 (dw2_map_matching_symbols): Update.
9538 * p-valprint.c (pascal_val_print): Remove "block".
9539 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9540 (aux_add_nonlocal_symbols): Make "block" const.
9541 (resolve_subexp): Remove cast.
9542 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9543 const.
9544 (iterate_over_file_blocks): Likewise.
9545 * f-exp.y (%union) <bval>: Remove.
9546 * coffread.c (patch_opaque_types): Make "b" const.
9547 * spu-tdep.c (spu_catch_start): Make "block" const.
9548 * c-valprint.c (print_unpacked_pointer): Remove "block".
9549 * symmisc.c (dump_symtab_1): Make "b" const.
9550 (block_depth): Make "block" const.
9551 * d-exp.y (%union) <bval>: Remove.
9552 * cp-support.h (cp_lookup_rtti_type): Update.
9553 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9554 * psymtab.c (psym_lookup_symbol): Make "block" const.
9555 (maintenance_check_psymtabs): Make "b" const.
9556 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9557 (enumerate_locals, enumerate_args): Update.
9558 * python/py-symtab.c (stpy_global_block): Make "block" const.
9559 (stpy_static_block): Likewise.
9560 * inline-frame.c (block_starting_point_at): Make "new_block"
9561 const.
9562 * block.c (find_block_in_blockvector): Make return type const.
9563 (blockvector_for_pc_sect): Make "b" const.
9564 (find_block_in_blockvector): Make "b" const.
9565
7ad417dd
TT
95662019-03-23 Tom Tromey <tom@tromey.com>
9567
9568 * varobj.c (varobj_create): Update.
9569 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9570 * printcmd.c (display_command, do_one_display): Don't reset
9571 innermost_block.
9572 * parser-defs.h (enum innermost_block_tracker_type): Move to
9573 expression.h.
9574 (innermost_block): Update comment.
9575 * parse.c (parse_exp_1): Add tracker_types parameter.
9576 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9577 tracker_types parameter. Reset innermost_block.
9578 (parse_exp_in_context): Remove.
9579 (parse_expression_for_completion): Update.
9580 * objfiles.c (~objfile): Don't reset expression_context_block or
9581 innermost_block.
9582 * expression.h (enum innermost_block_tracker_type): Move from
9583 parser-defs.h.
9584 (parse_exp_1): Add tracker_types parameter.
9585 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9586 reset innermost_block.
9587
b366c208
TT
95882019-03-23 Tom Tromey <tom@tromey.com>
9589
9590 * objfiles.h: Include bcache.h.
9591
9bb9b2f9
TT
95922019-03-23 Tom Tromey <tom@tromey.com>
9593
9594 * linespec.c (get_current_search_block): Use
9595 scoped_restore_current_language.
9596 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9597
59c28372
AH
95982019-03-22 Alan Hayward <alan.hayward@arm.com>
9599 Jiong Wang <jiong.wang@arm.com>
9600
9601 * aarch64-linux-tdep.c
9602 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9603 section.
9604 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9605
17e116a7
AH
96062019-03-22 Alan Hayward <alan.hayward@arm.com>
9607 Jiong Wang <jiong.wang@arm.com>
9608
9609 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9610 instructions.
9611 (aarch64_analyze_prologue_test): Add PACIASP test.
9612 (aarch64_prologue_prev_register): Unmask PC value.
9613
11e1b75f
AH
96142019-03-22 Alan Hayward <alan.hayward@arm.com>
9615 Jiong Wang <jiong.wang@arm.com>
9616
9617 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9618 (aarch64_dwarf2_prev_register): Unmask PC value.
9619 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9620 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9621 DW_CFA_AARCH64_negate_ra_state.
9622 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9623
34dcc7cf
AH
96242019-03-22 Alan Hayward <alan.hayward@arm.com>
9625 Jiong Wang <jiong.wang@arm.com>
9626
9627 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9628 registers.
9629 (aarch64_pseudo_register_name): Likewise.
9630 (aarch64_pseudo_register_type): Likewise.
9631 (aarch64_pseudo_register_reggroup_p): Likewise.
9632 (aarch64_gdbarch_init): Add pauth registers.
9633 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9634 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9635 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9636 (struct gdbarch_tdep): Add regnum for ra_state.
9637
1ef53e6b
AH
96382019-03-22 Alan Hayward <alan.hayward@arm.com>
9639 Jiong Wang <jiong.wang@arm.com>
9640
9641 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9642
76bed0fd
AH
96432019-03-22 Alan Hayward <alan.hayward@arm.com>
9644 Jiong Wang <jiong.wang@arm.com>
9645
9646 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9647 function.
9648 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9649 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9650 (aarch64_gdbarch_init): Add puth registers.
9651 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9652 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9653 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9654
ee4fbcfa
AH
96552019-03-22 Alan Hayward <alan.hayward@arm.com>
9656 Jiong Wang <jiong.wang@arm.com>
9657
9658 * aarch64-linux-nat.c
9659 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9660 * aarch64-linux-tdep.c
9661 (aarch64_linux_core_read_description): Likewise.
9662 (aarch64_linux_get_hwcap): New function.
9663 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9664 (aarch64_linux_get_hwcap): New declaration.
9665
6dc0ebde
AH
96662019-03-22 Alan Hayward <alan.hayward@arm.com>
9667 Jiong Wang <jiong.wang@arm.com>
9668
9669 * aarch64-linux-nat.c
9670 (aarch64_linux_nat_target::read_description): Add pauth param.
9671 * aarch64-linux-tdep.c
9672 (aarch64_linux_core_read_description): Likewise.
9673 * aarch64-tdep.c (struct target_desc): Add in pauth.
9674 (aarch64_read_description): Add pauth param.
9675 (aarch64_gdbarch_init): Likewise.
9676 * aarch64-tdep.h (aarch64_read_description): Likewise.
9677 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9678 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9679 * features/Makefile: Add new files.
9680 * features/aarch64-pauth.c: New file.
9681 * features/aarch64-pauth.xml: New file.
9682
595915c1
TT
96832019-03-20 Tom Tromey <tromey@adacore.com>
9684
9685 * infrun.c (handle_inferior_event): Rename from
9686 handle_inferior_event_1. Create a scoped_value_mark.
9687 (handle_inferior_event): Remove.
9688
4c7d57e7
TT
96892019-03-19 Tom Tromey <tromey@adacore.com>
9690
9691 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9692 * infrun.h (print_stop_event): Add "displays" parameter.
9693 * infrun.c (print_stop_event): Add "displays" parameter.
9694
cb246234
PA
96952019-03-19 Pedro Alves <palves@redhat.com>
9696
9697 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9698 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9699 to -1. Fix TABs vs spaces.
9700 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9701 * tui/tui-out.h (tui_ui_out) Add intro comments.
9702 <m_line, m_start_of_line>: In-class initialize, and add describing
9703 comment.
9704
3a0e45b2
AH
97052019-03-18 Alan Hayward <alan.hayward@arm.com>
9706
9707 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9708 variable names.
9709 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9710
5371b850
PA
97112019-03-18 Pedro Alves <palves@redhat.com>
9712 Eli Zaretskii <eliz@gnu.org>
9713
9714 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9715 m_line and m_start_of_line.
9716
b17c4cd0
EZ
97172019-03-18 Eli Zaretskii <eliz@gnu.org>
9718
9719 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9720 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9721 it returns a newline. This fixes a regression in TU mode, whereby
9722 the next line is output on the same screen line as the user input.
9723
4bd56d18
TT
97242019-03-18 Tom Tromey <tromey@adacore.com>
9725
9726 * minsyms.c (minimal_symbol_reader::install): Remove call to
9727 obstack_blank.
9728
55c10aca
PA
97292019-03-18 Pedro Alves <palves@redhat.com>
9730
9731 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9732 New globals.
9733 (apply_style): New, factored out from ...
9734 (apply_ansi_escape): ... this. Handle reverse video mode.
9735 (tui_set_reverse_mode): New function.
9736 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9737 * tui/tui-winsource.c (tui_show_source_line): Use
9738 tui_set_reverse_mode instead of setting A_STANDOUT.
9739 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9740 New setter methods.
9741
647bb750
HD
97422019-03-18 Hannes Domani <ssbssa@yahoo.de>
9743
9744 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9745 Handle tabs.
9746
bff8c71f
TT
97472019-03-18 Tom Tromey <tromey@adacore.com>
9748
9749 * ada-lang.c (empty_array): Add "high" parameter.
9750 (ada_evaluate_subexp): Update.
9751
58785d98
ST
97522019-03-17 Sergei Trofimovich <siarheit@google.com>
9753
9754 * unittests/string_view-selftests.c: Define
9755 _initialize_string_view_selftests unconditionally.
9756
d4cbef22
ВМ
97572019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9758
9759 PR gdb/24350
9760 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9761
fce4c071
ВМ
97622019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9763
9764 PR gdb/24351
9765 * windows-nat.c (display_selector): Fix format specifiers.
9766
f7f0a123
EZ
97672019-03-17 Eli Zaretskii <eliz@gnu.org>
9768
9769 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9770 tui_refill_source_window instead of tui_refresh_win, to update the
9771 current execution line. This fixes redisplay of the current line
9772 when stepping through the code with "next" or "step".
9773
ab42892f
EZ
97742019-03-16 Eli Zaretskii <eliz@gnu.org>
9775
9776 * source-cache.c (source_cache::get_source_lines): Call
9777 find_source_lines to initialize s->nlines. This fixes vertical
9778 scrolling of TUI source window when the DOWN arrow is pressed.
9779
8d8c087f
PW
97802019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9781
9782 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9783 linux-thread-db.c (_initialize_thread_db): Likewise.
9784
798e1c30
EZ
97852019-03-16 Eli Zaretskii <eliz@gnu.org>
9786
9787 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9788 wclrtoeol in tui_show_source_line". This reverts changes made in
9789 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9790
eefba3da
TT
97912019-03-15 Tom Tromey <tom@tromey.com>
9792
9793 * symtab.h (struct minimal_symbol): Derive from
9794 general_symbol_info.
9795 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9796 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9797 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9798 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9799 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9800 (MSYMBOL_SEARCH_NAME): Update.
9801 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9802 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9803 * minsyms.c (minimal_symbol_reader::record_full): Update.
9804
0de2420c
TT
98052019-03-15 Tom Tromey <tom@tromey.com>
9806
9807 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9808
042d75e4
TT
98092019-03-15 Tom Tromey <tom@tromey.com>
9810
9811 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9812 unique_xmalloc_ptr.
9813 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9814 Update.
9815 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9816 (build_minimal_symbol_hash_tables)
9817 (minimal_symbol_reader::install): Update.
9818
db92718b
TT
98192019-03-15 Tom Tromey <tom@tromey.com>
9820
9821 * symtab.c (create_demangled_names_hash): Update.
9822 (symbol_set_names): Update.
9823 * objfiles.h (struct objfile_per_bfd_storage)
9824 <demangled_names_hash>: Now an htab_up.
9825 * objfiles.c (objfile_per_bfd_storage): Simplify.
9826
d6797f46
TT
98272019-03-15 Tom Tromey <tom@tromey.com>
9828
9829 * objfiles.h (struct objfile_per_bfd_storage): Declare
9830 destructor.
9831 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9832 New.
9833 (get_objfile_bfd_data): Use new. Don't initialize
9834 language_of_main.
9835 (free_objfile_per_bfd_storage): Remove.
9836 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9837
741d7538
TT
98382019-03-15 Tom Tromey <tom@tromey.com>
9839
9840 * symfile.c (reread_symbols): Update.
9841 * objfiles.c (objfile::objfile): Update.
9842 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9843 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9844 comment.
9845 (minimal_symbol_reader::install): Update.
9846 (terminate_minimal_symbol_table): Remove.
9847 * jit.c (jit_object_close_impl): Update.
9848
788c80d1
TT
98492019-03-15 Tom Tromey <tom@tromey.com>
9850
9851 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9852 initializations.
9853
1b7a07cb
TT
98542019-03-15 Tom Tromey <tom@tromey.com>
9855
9856 * objfiles.h (struct objfile_per_bfd_storage)
9857 <demangled_hash_languages>: Now a bitset.
9858 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9859 (lookup_minimal_symbol): Update.
9860
3db066bc
TT
98612019-03-15 Tom Tromey <tom@tromey.com>
9862
9863 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9864 Don't return the symbol.
9865 * coffread.c (record_minimal_symbol): Use record_full.
9866
3fff2c37
EZ
98672019-03-14 Eli Zaretskii <eliz@gnu.org>
9868
9869 The MS-Windows port of ncurses fails to switch to a color pair if
9870 one or both of the colors are the implicit default colors. This
9871 change records the default colors when TUI is initialized, and
9872 then specifies them explicitly when a color pair uses the default
9873 colors. This allows color styling in TUI mode on MS-Windows.
9874
9875 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9876 ncurses_norm_attr.
9877 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9878 colors in ncurses_norm_attr.
9879 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9880 "none", replace it with the default color recorded in
9881 ncurses_norm_attr.
9882
3b336828
TT
98832019-03-14 Tom Tromey <tromey@adacore.com>
9884
9885 * source-cache.h (class source_cache) <get_source_lines>: Return
9886 std::string.
9887 * source-cache.c (source_cache::extract_lines): Handle case where
9888 first_pos==npos. Return std::string.
9889 (source_cache::get_source_lines): Update.
9890
d085f989
TT
98912019-03-14 Tom Tromey <tromey@adacore.com>
9892
9893 * NEWS: Add item for "style sources" commands.
9894 * source-cache.c (source_cache::get_source_lines): Check
9895 source_styling.
9896 * cli/cli-style.c (source_styling): New global.
9897 (_initialize_cli_style): Add "style sources" commands.
9898 (show_style_sources): New function.
9899 * cli/cli-style.h (source_styling): Declare.
9900
6f11e682
TT
99012019-03-14 Pedro Alves <palves@redhat.com>
9902 Tom Tromey <tromey@adacore.com>
9903
9904 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9905 * tui/tui-winsource.c (tui_refill_source_window): New function,
9906 from...
9907 (tui_horizontal_source_scroll): ... here. Move some logic.
9908 * cli/cli-style.c (set_style_enabled): Notify new observable.
9909 * tui/tui-hooks.c (tui_redisplay_source): New function.
9910 (tui_attach_detach_observers): Attach or detach
9911 tui_redisplay_source.
9912 * observable.h (source_styling_changed): New observable.
9913 * observable.c: Define source_styling_changed observable.
9914
a068643d
TT
99152019-03-13 Tom Tromey <tromey@adacore.com>
9916
9917 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9918 (i386_gnu_nat_target::store_registers): Update.
9919 * target-debug.h (target_debug_print_std_string): New macro.
9920 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9921 * windows-tdep.c (display_one_tib): Update.
9922 * tui/tui-stack.c (tui_make_status_line): Update.
9923 * top.c (print_inferior_quit_action): Update.
9924 * thread.c (thr_try_catch_cmd): Update.
9925 (add_thread_with_info): Update.
9926 (thread_target_id_str): Update.
9927 (thr_try_catch_cmd): Update.
9928 (thread_command): Update.
9929 (thread_find_command): Update.
9930 * record-btrace.c (record_btrace_target::info_record)
9931 (record_btrace_resume_thread, record_btrace_target::resume)
9932 (record_btrace_cancel_resume, record_btrace_step_thread)
9933 (record_btrace_target::wait, record_btrace_target::wait)
9934 (record_btrace_target::wait, record_btrace_target::stop): Update.
9935 * progspace.c (print_program_space): Update.
9936 * process-stratum-target.c
9937 (process_stratum_target::thread_address_space): Update.
9938 * linux-fork.c (linux_fork_mourn_inferior)
9939 (detach_checkpoint_command, info_checkpoints_command)
9940 (linux_fork_context): Update.
9941 (linux_fork_detach): Update.
9942 (class scoped_switch_fork_info): Update.
9943 (delete_checkpoint_command): Update.
9944 * infrun.c (follow_fork_inferior): Update.
9945 (follow_fork_inferior): Update.
9946 (proceed_after_vfork_done): Update.
9947 (handle_vfork_child_exec_or_exit): Update.
9948 (follow_exec): Update.
9949 (displaced_step_prepare_throw): Update.
9950 (displaced_step_restore): Update.
9951 (start_step_over): Update.
9952 (resume_1): Update.
9953 (clear_proceed_status_thread): Update.
9954 (proceed): Update.
9955 (print_target_wait_results): Update.
9956 (do_target_wait): Update.
9957 (context_switch): Update.
9958 (stop_all_threads): Update.
9959 (restart_threads): Update.
9960 (finish_step_over): Update.
9961 (handle_signal_stop): Update.
9962 (switch_back_to_stepped_thread): Update.
9963 (keep_going_pass_signal): Update.
9964 (print_exited_reason): Update.
9965 (normal_stop): Update.
9966 * inferior.c (inferior_pid_to_str): Change return type.
9967 (print_selected_inferior): Update.
9968 (add_inferior): Update.
9969 (detach_inferior): Update.
9970 * dummy-frame.c (fprint_dummy_frames): Update.
9971 * dcache.c (dcache_info_1): Update.
9972 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9973 (btrace_fetch, btrace_clear): Update.
9974 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9975 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9976 type.
9977 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9978 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9979 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9980 * gdbarch.c, gdbarch.h: Rebuild.
9981 * gdbarch.sh (core_pid_to_str): Change return type.
9982 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9983 return type.
9984 (windows_nat_target::pid_to_str): Change return type.
9985 (windows_delete_thread): Update.
9986 (windows_nat_target::attach): Update.
9987 (windows_nat_target::files_info): Update.
9988 * target-delegates.c: Rebuild.
9989 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9990 return type.
9991 (sol_thread_target::pid_to_str): Change return type.
9992 * remote.c (class remote_target) <pid_to_str>: Change return
9993 type.
9994 (remote_target::pid_to_str): Change return type.
9995 (extended_remote_target::attach, remote_target::remote_stop_ns)
9996 (remote_target::remote_notif_remove_queued_reply)
9997 (remote_target::push_stop_reply, remote_target::disable_btrace):
9998 Update.
9999 (extended_remote_target::attach): Update.
10000 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10001 type.
10002 (gdbsim_target::pid_to_str): Change return type.
10003 * ravenscar-thread.c (struct ravenscar_thread_target)
10004 <pid_to_str>: Change return type.
10005 (ravenscar_thread_target::pid_to_str): Change return type.
10006 * procfs.c (class procfs_target) <pid_to_str>: Change return
10007 type.
10008 (procfs_target::pid_to_str): Change return type.
10009 (procfs_target::attach): Update.
10010 (procfs_target::detach): Update.
10011 (procfs_target::fetch_registers): Update.
10012 (procfs_target::store_registers): Update.
10013 (procfs_target::wait): Update.
10014 (procfs_target::files_info): Update.
10015 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10016 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10017 return type.
10018 (nto_procfs_target::pid_to_str): Change return type.
10019 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10020 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10021 return type.
10022 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10023 (exit_lwp): Update.
10024 (attach_proc_task_lwp_callback, get_detach_signal)
10025 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10026 (linux_nat_target::resume, wait_lwp, stop_callback)
10027 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10028 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10029 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10030 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10031 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10032 type.
10033 (inf_ptrace_target::attach): Update.
10034 (inf_ptrace_target::files_info): Update.
10035 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10036 type.
10037 (go32_nat_target::pid_to_str): Change return type.
10038 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10039 (gnu_nat_target::wait): Update.
10040 (gnu_nat_target::wait): Update.
10041 (gnu_nat_target::resume): Update.
10042 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10043 (fbsd_nat_target::wait): Update.
10044 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10045 type.
10046 (darwin_nat_target::attach): Update.
10047 * corelow.c (class core_target) <pid_to_str>: Change return type.
10048 (core_target::pid_to_str): Change return type.
10049 * target.c (normal_pid_to_str): Change return type.
10050 (default_pid_to_str): Likewise.
10051 (target_pid_to_str): Change return type.
10052 (target_translate_tls_address): Update.
10053 (target_announce_detach): Update.
10054 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10055 return type.
10056 (bsd_uthread_target::pid_to_str): Change return type.
10057 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10058 type.
10059 (bsd_kvm_target::pid_to_str): Change return type.
10060 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10061 return type.
10062 (aix_thread_target::pid_to_str): Change return type.
10063 * target.h (struct target_ops) <pid_to_str>: Change return type.
10064 (target_pid_to_str, normal_pid_to_str): Likewise.
10065 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10066 type.
10067 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10068 type.
10069 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10070 return type.
10071 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10072 type.
10073 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10074 type.
10075 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10076 return type.
10077
b4be1b06
SM
100782019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10079
10080 * NEWS: Mention that the new default MI version is 3. Mention
10081 changes to the output of commands and events that deal with
10082 multi-location breakpoints.
10083 * breakpoint.c: Include "mi/mi-out.h".
10084 (print_one_breakpoint): Change output syntax if using MI version
10085 >= 3.
10086 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10087 New.
10088 (mi_multi_location_breakpoint_output_fixed): New.
10089 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10090 (mi_cmd_fix_multi_location_breakpoint_output): New.
10091 (mi_multi_location_breakpoint_output_fixed): New.
10092 * mi/mi-cmds.c (mi_cmds): Register command
10093 -fix-multi-location-breakpoint-output.
10094 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10095 interpreter "mi".
10096
8e5e5494
SM
100972019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10098
10099 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10100 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10101 instantiate mi_ui_out based on interpreter name.
10102 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10103 * mi/mi-main.c (mi_load_progress): Likewise.
10104
197df35e
JB
101052019-03-12 John Baldwin <jhb@FreeBSD.org>
10106
10107 * NEWS: Combine separate "New targets" sections for 8.3.
10108
8399425f
JB
101092019-03-12 John Baldwin <jhb@FreeBSD.org>
10110
10111 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10112 (ppcfbsd_init_abi): Install gdbarch
10113 "fetch_tls_load_module_address" and "get_thread_local_address"
10114 methods.
10115
b0f87ed0
JB
101162019-03-12 John Baldwin <jhb@FreeBSD.org>
10117
10118 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10119 (riscv_fbsd_init_abi): Install gdbarch
10120 "fetch_tls_load_module_address" and "get_thread_local_address"
10121 methods.
10122
ce25aa57
JB
101232019-03-12 John Baldwin <jhb@FreeBSD.org>
10124
10125 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10126 (i386fbsd_init_abi): Install gdbarch
10127 "fetch_tls_load_module_address" and "get_thread_local_address"
10128 methods.
10129
f5424cfa
JB
101302019-03-12 John Baldwin <jhb@FreeBSD.org>
10131
10132 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10133 (amd64fbsd_init_abi): Install gdbarch
10134 "fetch_tls_load_module_address" and "get_thread_local_address"
10135 methods.
10136
945f3901
JB
101372019-03-12 John Baldwin <jhb@FreeBSD.org>
10138
10139 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10140 (struct fbsd_pspace_data): New type.
10141 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10142 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10143 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10144 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10145 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10146
ef0bd204
JB
101472019-03-12 John Baldwin <jhb@FreeBSD.org>
10148
10149 * gdbtypes.c (lookup_struct_elt): New function.
10150 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10151 * gdbtypes.h (struct struct_elt): New type.
10152 (lookup_struct_elt): New prototype.
10153
36c53a02
JB
101542019-03-12 John Baldwin <jhb@FreeBSD.org>
10155
10156 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10157 remove disabled code block.
10158
6e056c81
JB
101592019-03-12 John Baldwin <jhb@FreeBSD.org>
10160
10161 * gdbarch.sh (get_thread_local_address): New method.
10162 * gdbarch.h, gdbarch.c: Regenerate.
10163 * target.c (target_translate_tls_address): Use
10164 gdbarch_get_thread_local_address if present instead of
10165 target::get_thread_local_address.
10166
cd250a18
JB
101672019-03-12 John Baldwin <jhb@FreeBSD.org>
10168
10169 * target.h (target::get_thread_local_address): Update comment.
10170
df22c1e5
JB
101712019-03-12 John Baldwin <jhb@FreeBSD.org>
10172
10173 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10174 objfile->separate_debug_objfile_backlink if not NULL.
10175
dd6876c9
JB
101762019-03-12 John Baldwin <jhb@FreeBSD.org>
10177
10178 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10179 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10180 (amd64bsd_store_inferior_registers): Likewise.
10181 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10182 Enable segment base registers.
10183 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10184 PT_GETFSBASE and PT_GETGSBASE.
10185 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10186 PT_SETGSBASE.
10187 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10188 segment base registers.
10189 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10190
1163a4b7
JB
101912019-03-12 John Baldwin <jhb@FreeBSD.org>
10192
10193 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10194 Update calls to i386_target_description to add 'segments'
10195 parameter.
10196 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10197 add segment base registers.
10198 * arch/i386.c (i386_create_target_description): Add 'segments'
10199 parameter to enable segment base registers.
10200 * arch/i386.h (i386_create_target_description): Likewise.
10201 * features/i386/32bit-segments.xml: New file.
10202 * features/i386/32bit-segments.c: Generate.
10203 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10204 call to i386_target_description to add 'segments' parameter.
10205 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10206 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10207 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10208 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10209 if feature is present.
10210 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10211 Add 'segments' parameter to call to i386_target_description.
10212 (i386_target_description): Add 'segments' parameter to enable
10213 segment base registers.
10214 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10215 to call to i386_target_description.
10216 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10217 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10218 Define I386_NUM_REGS.
10219 (i386_target_description): Add 'segments' parameter to enable
10220 segment base registers.
10221
3a350822
EZ
102222019-03-12 Eli Zaretskii <eliz@gnu.org>
10223
10224 PR/24325
10225 * source-cache.c: #undef open and close, to avoid unresolved
10226 externals during linking.
10227
ffdd69cf
TT
102282019-03-12 Tom Tromey <tromey@adacore.com>
10229
10230 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10231 const. Add initializers.
10232 (_initialize_remote): Don't initialize ptid globals.
10233
ec148c57
PA
102342019-03-12 Pedro Alves <palves@redhat.com>
10235
10236 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10237
32764270
PA
102382019-03-12 Pedro Alves <palves@redhat.com>
10239
10240 * cp-name-parser.y (main): Remove unused 'len' variable.
10241
17547186
TT
102422019-03-12 Tom Tromey <tromey@adacore.com>
10243
10244 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10245 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10246
d3a70e03
TT
102472019-03-12 Tom Tromey <tromey@adacore.com>
10248
10249 * linux-nat.c (iterate_over_lwps): Update.
10250 (stop_callback): Remove parameter.
10251 (stop_wait_callback, detach_callback, resume_set_callback)
10252 (select_singlestep_lwp_callback, set_ignore_sigint)
10253 (status_callback, resumed_callback, resume_clear_callback)
10254 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10255 data parameter.
10256 (linux_nat_target::detach, linux_nat_target::resume)
10257 (linux_stop_and_wait_all_lwps, select_event_lwp)
10258 (linux_nat_filter_event, linux_nat_wait_1)
10259 (linux_nat_target::kill, linux_nat_target::stop)
10260 (linux_nat_target::stop): Update.
10261 (linux_nat_resume_callback): Change type.
10262 (resume_stopped_resumed_lwps, count_events_callback)
10263 (select_event_lwp_callback): Likewise.
10264 (linux_stop_lwp, linux_nat_stop_lwp): Update.
10265 * arm-linux-nat.c (struct update_registers_data): Remove.
10266 (update_registers_callback): Change type.
10267 (arm_linux_insert_hw_breakpoint1): Update.
10268 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10269 parameter.
10270 (x86_linux_dr_set_addr): Update.
10271 (x86_linux_dr_set_control): Update.
10272 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10273 (iterate_over_lwps): Use gdb::function_view.
10274 * nat/aarch64-linux-hw-point.c (struct
10275 aarch64_dr_update_callback_param): Remove.
10276 (debug_reg_change_callback): Change type.
10277 (aarch64_notify_debug_reg_change): Update.
10278 * s390-linux-nat.c (s390_refresh_per_info): Update.
10279
82cb27ff
TT
102802019-03-11 Tom Tromey <tromey@adacore.com>
10281
10282 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10283 redundant assignment to "this_cu".
10284
568c0683
SM
102852019-03-08 Simon Marchi <simon.marchi@efficios.com>
10286
10287 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10288
f09ce22d
SM
102892019-03-08 Simon Marchi <simon.marchi@efficios.com>
10290
10291 * gdbtypes.c (rank_one_type_parm_set): New function extracted
10292 from...
10293 (rank_one_type): ... this.
10294
595f96a9
SM
102952019-03-08 Simon Marchi <simon.marchi@efficios.com>
10296
10297 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10298 from...
10299 (rank_one_type): ... this.
10300
2598a94b
SM
103012019-03-08 Simon Marchi <simon.marchi@efficios.com>
10302
10303 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10304 from...
10305 (rank_one_type): ... this.
10306
7f17b20d
SM
103072019-03-08 Simon Marchi <simon.marchi@efficios.com>
10308
10309 * gdbtypes.c (rank_one_type_parm_float): New function extracted
10310 from...
10311 (rank_one_type): ... this.
10312
2c509035
SM
103132019-03-08 Simon Marchi <simon.marchi@efficios.com>
10314
10315 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10316 from...
10317 (rank_one_type): ... this.
10318
0dd322dc
SM
103192019-03-08 Simon Marchi <simon.marchi@efficios.com>
10320
10321 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10322 from...
10323 (rank_one_type): ... this.
10324
41ea4728
SM
103252019-03-08 Simon Marchi <simon.marchi@efficios.com>
10326
10327 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10328 from...
10329 (rank_one_type): ... this.
10330
793cd1d2
SM
103312019-03-08 Simon Marchi <simon.marchi@efficios.com>
10332
10333 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10334 from...
10335 (rank_one_type): ... this.
10336
34910087
SM
103372019-03-08 Simon Marchi <simon.marchi@efficios.com>
10338
10339 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10340 from...
10341 (rank_one_type): ... this.
10342
f1f832d6
SM
103432019-03-08 Simon Marchi <simon.marchi@efficios.com>
10344
10345 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10346 from...
10347 (rank_one_type): ... this.
10348
b9f4512f
SM
103492019-03-08 Simon Marchi <simon.marchi@efficios.com>
10350
10351 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10352 from...
10353 (rank_one_type): ... this.
10354
9293fc63
SM
103552019-03-08 Simon Marchi <simon.marchi@efficios.com>
10356
10357 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10358 from...
10359 (rank_one_type): ... this.
10360
e3abbe7e
PW
103612019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10362
10363 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10364 inferior-events' shows the example events.
10365
e4adb939
EZ
103662019-03-08 Eli Zaretskii <eliz@gnu.org>
10367
10368 Support styling on native MS-Windows console
10369
10370 PR/24315
10371 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10372 on MS-Windows if $TERM is not defined.
10373
10374 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10375
10376 * posix-hdep.c (gdb_console_fputs):
10377 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10378 functions.
10379 * ui-file.h (gdb_console_fputs): Add prototype.
10380
10381 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10382 back to fputs only if the former returns zero.
10383
25629dfd
TT
103842019-03-07 Tom Tromey <tom@tromey.com>
10385
10386 * symmisc.c (print_symbol_bcache_statistics): Update.
10387 (print_objfile_statistics): Update.
10388 * symfile.c (allocate_symtab): Update.
10389 * stabsread.c: Don't include bcache.h.
10390 * psymtab.h (struct psymbol_bcache): Don't declare.
10391 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10392 (psymbol_bcache_init, psymbol_bcache_free)
10393 (psymbol_bcache_get_bcache): Don't declare.
10394 * psymtab.c (struct psymbol_bcache): Remove.
10395 (psymtab_storage::psymtab_storage): Update.
10396 (psymtab_storage::~psymtab_storage): Update.
10397 (psymbol_bcache_init, psymbol_bcache_free)
10398 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10399 (add_psymbol_to_bcache): Update.
10400 (allocate_psymtab): Update.
10401 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10402 macro_cache>: No longer pointers.
10403 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10404 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10405 * macrotab.c (macro_bcache): Update.
10406 * macroexp.c: Don't include bcache.h.
10407 * gdbtypes.c (check_types_worklist): Update.
10408 (types_deeply_equal): Remove TRY/CATCH. Update.
10409 * elfread.c (elf_symtab_read): Update.
10410 * dwarf2read.c: Don't include bcache.h.
10411 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10412 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10413 (print_bcache_statistics, bcache_memory_used): Don't declare.
10414 (struct bcache): Move from bcache.c. Add constructor, destructor,
10415 methods. Rename all data members.
10416 * bcache.c (struct bcache): Move to bcache.h.
10417 (bcache::expand_hash_table): Rename from expand_hash_table.
10418 (bcache): Remove.
10419 (bcache::insert): Rename from bcache_full.
10420 (bcache::compare): Rename from bcache_compare.
10421 (bcache_xmalloc): Remove.
10422 (bcache::~bcache): Rename from bcache_xfree.
10423 (bcache::print_statistics): Rename from print_bcache_statistics.
10424 (bcache::memory_used): Rename from bcache_memory_used.
10425
fe726667
PA
104262019-03-07 Pedro Alves <palves@redhat.com>
10427
10428 * infrun.c (normal_stop): Also check for
10429 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10430
7584bb30
AB
104312019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10432
10433 * f-lang.c (value_from_host_double): Moved to...
10434 * value.c (value_from_host_double): ...here.
10435 * value.h (value_from_host_double): Declare.
10436 * guile/scm-math.c (vlscm_convert_typed_number): Use
10437 value_from_host_double.
10438 (vlscm_convert_number): Likewise.
10439 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10440 * python/py-value.c (convert_value_from_python): Likewise.
10441
a7b1986e
TT
104422019-03-06 Tom Tromey <tom@tromey.com>
10443
10444 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10445
0ccf4211
TT
104462019-03-06 Tom Tromey <tom@tromey.com>
10447
10448 * utils.h (free_current_contents): Don't declare.
10449 * utils.c (free_current_contents): Remove.
10450
fe7b42e5
TT
104512019-03-06 Tom Tromey <tom@tromey.com>
10452
10453 * top.c (quit_force): Update.
10454 * main.c (captured_command_loop): Update.
10455 * common/new-op.c (operator new): Update.
10456 * common/common-exceptions.c (struct catcher)
10457 <save_cleanup_chain>: Remove member.
10458 (exceptions_state_mc_init): Update.
10459 (exception_try_scope_entry): Return nullptr.
10460 (exception_try_scope_exit, exception_rethrow)
10461 (throw_exception_sjlj, throw_exception_cxx): Update.
10462 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10463 (all_cleanups, do_cleanups, discard_cleanups)
10464 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10465 (restore_cleanups, restore_final_cleanups): Don't declare.
10466 (do_final_cleanups): Remove parameter.
10467 * common/cleanups.c (cleanup_chain, make_cleanup)
10468 (make_cleanup_dtor, all_cleanups, do_cleanups)
10469 (discard_my_cleanups, discard_cleanups)
10470 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10471 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10472 (null_cleanup): Remove.
10473 (do_final_cleanups): Remove parameter.
10474
c6321f19
TT
104752019-03-06 Tom Tromey <tom@tromey.com>
10476
10477 * remote.c (remote_target::remote_parse_stop_reply): Use
10478 unique_xmalloc_ptr.
10479
61b30099
TT
104802019-03-06 Tom Tromey <tom@tromey.com>
10481
10482 * stabsread.c (struct stabs_field_info): Rename from field_info.
10483 <list, fnlist>: Add initializers.
10484 <obstack>: New member.
10485 (read_member_functions, read_struct_fields, read_baseclasses):
10486 Allocate on obstack. Don't use cleanups.
10487 (read_one_struct_field, read_member_functions, read_struct_fields)
10488 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10489 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10490 (read_struct_type): Update.
10491
6cceac94
TT
104922019-03-06 Tom Tromey <tom@tromey.com>
10493
10494 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10495 * common/filestuff.h (make_cleanup_close): Don't declare.
10496 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10497 Remove.
10498
72412762
TT
104992019-03-06 Tom Tromey <tom@tromey.com>
10500
10501 * solib-aix.c: Use make_scope_exit.
10502
2b6ff1c0
TT
105032019-03-06 Tom Tromey <tom@tromey.com>
10504
10505 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10506 Use make_scope_exit.
10507
d01c5877
TT
105082019-03-06 Tom Tromey <tom@tromey.com>
10509
10510 * solib-svr4.c (disable_probes_interface): Remove parameter.
10511 (svr4_handle_solib_event): Use make_scope_exit.
10512
32603266
TT
105132019-03-06 Tom Tromey <tom@tromey.com>
10514
10515 * remote.c (struct stop_reply_deleter): Remove.
10516 (stop_reply_up): Update.
10517 (struct stop_reply): Derive from notif_event. Don't typedef.
10518 <regcache>: Now a std::vector.
10519 (stop_reply_xfree): Remove.
10520 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10521 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10522 (remote_target::discard_pending_stop_replies): Use delete.
10523 (remote_target::remote_parse_stop_reply): Update.
10524 (remote_target::process_stop_reply): Update.
10525 * remote-notif.h (struct notif_event): Add virtual destructor.
10526 Remove "dtr" member.
10527 (struct notif_client) <alloc_event>: Return a unique_ptr.
10528 (notif_event_xfree): Don't declare.
10529 (notif_event_up): New typedef.
10530 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10531 (notif_event_xfree, do_notif_event_xfree): Remove.
10532 (remote_notif_state_xfree): Update.
10533
9799571e
TT
105342019-03-06 Tom Tromey <tom@tromey.com>
10535
10536 * infrun.c (displaced_step_clear_cleanup): Now a
10537 forward_scope_exit type.
10538 (displaced_step_prepare_throw): Update.
10539 (displaced_step_fixup): Update.
10540
09e3c4ca
TT
105412019-03-06 Tom Tromey <tom@tromey.com>
10542
10543 * inferior.h (class inferior): Update comment.
10544 * gdbthread.h (class thread_info): Update comment.
10545
e2a03548
TT
105462019-03-06 Joel Brobecker <brobecker@adacore.com>
10547 Tom Tromey <tom@tromey.com>
10548
10549 * stabsread.h (struct stab_section_list): Remove.
10550 (coffstab_build_psymtabs): Update.
10551 * dbxread.c (symbuf_sections): Now a std::vector.
10552 (sect_idx): New global.
10553 (fill_symbuf): Update.
10554 (coffstab_build_psymtabs): Change type of stabsects parameter.
10555 Update.
10556 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10557 std::vector.
10558 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10559 (coff_locate_sections): Update.
10560 (coff_symfile_read): Remove cleanups. Update.
10561 (init_stringtab): Add storage parameter.
10562 (free_stringtab, free_stringtab_cleanup): Remove.
10563 (init_lineno): Add storage parameter.
10564 (free_linetab, free_linetab_cleanup): Remove.
10565
b7e60d85
PA
105662019-03-06 Pedro Alves <palves@redhat.com>
10567
10568 * linux-fork.c (fork_info::clobber_regs): Delete.
10569 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10570 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10571 comment. Adjust.
10572 (scoped_switch_fork_info::scoped_switch_fork_info)
10573 (checkpoint_command, linux_fork_context): Adjust
10574 fork_save_infrun_state calls.
10575
e52c971f
PA
105762019-03-06 Pedro Alves <palves@redhat.com>
10577
10578 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10579 (inf_has_multiple_threads): Return 'bool' and rewrite using
10580 inferior_info::threads().
10581
06974e6c
PA
105822019-03-06 Pedro Alves <palves@redhat.com>
10583
10584 * linux-fork.c: Include <list>.
10585 (fork_list): Now a std::list instance.
10586 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10587 (forks_exist_p, find_last_fork): Adjust.
10588 (new_fork): Delete.
10589 (one_fork_p): New.
10590 (add_fork): Adjust.
10591 (free_fork): Delete, folded into fork_info::~fork_info().
10592 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10593 Adjust.
10594 (init_fork_list): Delete.
10595 (linux_fork_killall, linux_fork_mourn_inferior)
10596 (linux_fork_detach, info_checkpoints_command): Adjust.
10597 (_initialize_linux_fork): No longer call init_fork_list.
10598
72f31aea
PA
105992019-03-06 Pedro Alves <palves@redhat.com>
10600
10601 * linux-fork.c (new_fork): New, split out of ...
10602 (add_fork): ... this. Return void. Move "first fork" special
10603 case from here, to ...
10604 (checkpoint_command): ... here.
10605 * linux-linux.h (add_fork): Return void.
10606
efbecbc1
AB
106072019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10608
10609 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10610
0841c79a
AB
106112019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10612 Chris January <chris.january@arm.com>
10613 David Lecomber <david.lecomber@arm.com>
10614
10615 * f-exp.y: New token, UNOP_INTRINSIC.
10616 (exp): New pattern using UNOP_INTRINSIC token.
10617 (f77_keywords): Add 'abs' keyword.
10618 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10619 (value_from_host_double): New function.
10620 (evaluate_subexp_f): Support UNOP_ABS.
10621
4a270568
AB
106222019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10623
10624 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10625 types.
10626
067630bd
AB
106272019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10628
10629 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10630 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10631 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10632
3be47f7a
AB
106332019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10634
10635 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10636
4d00f5d8
AB
106372019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10638 Chris January <chris.january@arm.com>
10639
10640 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10641 * f-exp.y: Define 'KIND' token.
10642 (exp): New pattern for KIND expressions.
10643 (ptype): Handle types with a kind extension.
10644 (direct_abs_decl): Extend to spot kind extensions.
10645 (f77_keywords): Add 'kind' to the list.
10646 (push_kind_type): New function.
10647 (convert_to_kind_type): New function.
10648 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10649 * parse.c (operator_length_standard): Likewise.
10650 * parser-defs.h (enum type_pieces): Add tp_kind.
10651 * std-operator.def: Add UNOP_KIND.
10652
e454224f
AB
106532019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10654
10655 * f-exp.y (f_parse): Set yydebug.
10656
9dad4a58
AB
106572019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10658
10659 * f-lang.c (evaluate_subexp_f): New function.
10660 (exp_descriptor_f): New global.
10661 (f_language_defn): Use exp_descriptor_f instead of
10662 exp_descriptor_standard.
10663
c8f91604
AB
106642019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10665
10666 * f-exp.y (struct token): Add comments.
10667 (dot_ops): Remove uppercase versions and the end marker.
10668 (f77_keywords): Likewise.
10669 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10670 entries in the dot_ops array are case insensitive, and use
10671 strncasecmp to compare strings. Also some whitespace cleanup in
10672 this area. Similar for the f77_keywords array, except entries in
10673 this list might be case sensitive.
10674
dd9f2c76
AB
106752019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10676
10677 * f-exp.y (struct f77_boolean_val): Add comments.
10678 (boolean_values): Remove uppercase versions, and end marker.
10679 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10680 and use strncasecmp to achieve case insensitivity. Additionally,
10681 perform whitespace cleanup around this code.
10682
67a3048c
TT
106832019-03-06 Tom Tromey <tromey@adacore.com>
10684
10685 * remote-sim.c (gdbsim_target_open): Use result of
10686 gdb_argv::release.
10687
aa3cfbda
RB
106882019-03-06 Richard Bunt <richard.bunt@arm.com>
10689 Dirk Schubert <dirk.schubert@arm.com>
10690 Chris January <chris.january@arm.com>
10691
10692 * eval.c (evaluate_subexp_standard): Call Fortran argument
10693 wrapping logic.
10694 * f-lang.c (struct value): A value which can be passed into a
10695 Fortran function call.
10696 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10697 where appropriate.
10698 (struct type): Value ready for a Fortran function call.
10699 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10700 is needed.
10701 * f-lang.h (fortran_argument_convert): Declaration.
10702 (fortran_preserve_arg_pointer): Declaration.
10703 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10704
ea38e5df
TT
107052019-03-05 Tom Tromey <tromey@adacore.com>
10706
10707 * python/py-prettyprint.c (print_string_repr): Remove #if.
10708 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10709
06b5b831
TT
107102019-03-05 Tom Tromey <tromey@adacore.com>
10711
10712 * target.c (the_dummy_target): Move later. Change type to
10713 "dummy_target".
10714 (initialize_targets): Don't initialize the_dummy_target.
10715
edbd9e45
TT
107162019-03-05 Tom Tromey <tromey@adacore.com>
10717
10718 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10719 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10720
c119e040
TT
107212019-03-05 Tom Tromey <tromey@adacore.com>
10722
10723 * windows-nat.c (windows_nat_target::attach)
10724 (windows_nat_target::detach): Don't call gdb_flush.
10725 * valprint.c (generic_val_print, val_print, val_print_string):
10726 Don't call gdb_flush.
10727 * utils.c (defaulted_query): Don't call gdb_flush.
10728 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10729 * target.c (target_announce_detach): Don't call gdb_flush.
10730 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10731 * remote.c (extended_remote_target::attach): Don't call
10732 gdb_flush.
10733 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10734 * printcmd.c (do_examine): Don't call gdb_flush.
10735 (info_display_command): Don't call gdb_flush.
10736 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10737 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10738 * memattr.c (info_mem_command): Don't call gdb_flush.
10739 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10740 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10741 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10742 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10743 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10744 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10745 (gnu_nat_target::detach): Don't call gdb_flush.
10746 * f-valprint.c (f_val_print): Don't call gdb_flush.
10747 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10748 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10749 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10750 gdb_flush.
10751 * c-valprint.c (c_val_print): Don't call gdb_flush.
10752 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10753
895dafa6
TT
107542019-03-05 Tom Tromey <tromey@adacore.com>
10755
10756 * varobj.c (update_dynamic_varobj_children): Update.
10757 (install_default_visualizer): Use reset, not release.
10758 * value.c (set_internalvar): Update.
10759 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10760 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10761 ATTRIBUTE_UNUSED_RESULT.
10762
88a774b9
TT
107632019-03-05 Tom Tromey <tromey@adacore.com>
10764
10765 * remote.c (class scoped_remote_fd) <release>: Add
10766 ATTRIBUTE_UNUSED_RESULT.
10767
4e4a8b93
TT
107682019-03-05 Tom Tromey <tromey@adacore.com>
10769
10770 * macroexp.c (struct macro_buffer) <release>: Add
10771 ATTRIBUTE_UNUSED_RESULT.
10772
083eef1f
TT
107732019-03-05 Tom Tromey <tromey@adacore.com>
10774
10775 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10776 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10777 ATTRIBUTE_UNUSED_RESULT.
10778
3cabd438
TT
107792019-03-05 Tom Tromey <tromey@adacore.com>
10780
10781 * common/scoped_fd.h (class scoped_fd) <release>: Add
10782 ATTRIBUTE_UNUSED_RESULT.
10783
41e3300a
TT
107842019-03-05 Tom Tromey <tromey@adacore.com>
10785
10786 * parser-defs.h (struct parser_state) <release>: Add
10787 ATTRIBUTE_UNUSED_RESULT.
10788
18cb7c9f
TT
107892019-03-05 Tom Tromey <tromey@adacore.com>
10790
10791 * utils.h (class gdb_argv) <release>: Add
10792 ATTRIBUTE_UNUSED_RESULT.
10793 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10794
41fa577f
EZ
107952019-03-02 Eli Zaretskii <eliz@gnu.org>
10796
a6a4b2c6
EZ
10797 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10798 for-loop range, to avoid compiler warnings.
10799
10800 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10801 avoid compiler warnings about unused variables.
10802
742a7df5
EZ
10803 * NEWS: Mention end of support for native debugging on MS-Windows
10804 before XP.
10805
41fa577f
EZ
10806 PR gdb/24292
10807 * common/netstuff.c:
10808 * gdbserver/gdbreplay.c
10809 * gdbserver/remote-utils.c:
10810 * ser-tcp.c:
10811 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10812 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10813 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10814 'getaddrinfo' and 'freeaddrinfo' were not available before
10815 Windows XP, and mingw.org's MinGW headers by default define
10816 _WIN32_WINNT to 0x500.
10817
827f438f
GB
108182019-03-01 Gary Benson <gbenson@redhat.com>
10819
10820 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10821
92137da0
RO
108222019-02-28 Brian Vandenberg <phantall@gmail.com>
10823 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10824
10825 PR gdb/8527
10826 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10827 set_sigint_trap, clear_sigint_trap.
10828
799efbe8
PW
108292019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10830
10831 * target.c (target_detach): Clear the regcache and the
10832 frame cache.
10833
8ed25214
PA
108342019-02-27 Pedro Alves <palves@redhat.com>
10835
10836 * utils.c (set_screen_size): When we cap the height/width sizes,
10837 tweak the corresponding command variable to show "unlimited":
10838
23031e31
SJ
108392019-02-27 Saagar Jha <saagar@saagarjha.com>
10840 Pedro Alves <palves@redhat.com>
10841
10842 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10843 before calling rl_set_screen_size.
10844
6c28e44a
TT
108452019-02-27 Tom Tromey <tromey@adacore.com>
10846
10847 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10848 define.
10849 * python/py-value.c: Remove Python 2.4 workaround.
10850 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10851 workaround.
10852 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10853 Python 2.4 workaround.
10854 * python/python-internal.h: Remove Python 2.4 comment.
10855 (Py_ssize_t): Don't define.
10856 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10857 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10858 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10859 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10860 * python/python.c (do_start_initialization): Remove Python 2.4
10861 workaround.
10862 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10863 (print_children): Remove Python 2.4 workaround.
10864 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10865 workaround.
10866 (CHARBUFFERPROC_NAME): Remove.
10867 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10868 Python 2.4 workaround.
10869
2c3fc25d 108702019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 10871
2c3fc25d
KB
10872 * NEWS: Note minimum Python version.
10873
6ca62222
KB
108742019-02-27 Kevin Buettner <kevinb@redhat.com>
10875
10876 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10877 code from these functions. Remove corresponding ifdefs. Use
10878 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10879 Remove gotos and target of gotos.
10880 (infpy_search_memory): Likewise.
10881
f4bc7d2c
AB
108822019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10883
10884 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10885 (hppa_gdbarch_init): Don't register deleted functions with
10886 gdbarch.
10887
9734a586
AB
108882019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10889
10890 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10891 (h8300_unwind_sp): Delete.
10892 (h8300_dummy_id): Delete.
10893 (h8300_gdbarch_init): Don't register deleted functions with
10894 gdbarch.
10895
68b867f3
AB
108962019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10897
10898 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10899 (ft32_unwind_pc): Delete.
10900 (ft32_unwind_sp): Delete.
10901 (ft32_gdbarch_init): Don't register deleted functions with
10902 gdbarch.
10903
2fbe7ad0
AB
109042019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10905
10906 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10907 (frv_unwind_pc): Delete.
10908 (frv_unwind_sp): Delete.
10909 (frv_gdbarch_init): Don't register deleted functions with
10910 gdbarch.
10911
76055cbe
AB
109122019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10913
10914 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10915 (riscv_unwind_pc): Delete.
10916 (riscv_unwind_sp): Delete.
10917 (riscv_gdbarch_init): Don't register deleted functions with
10918 gdbarch.
10919
4133e5a1
AB
109202019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10921
10922 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10923 (csky_unwind_pc): Delete.
10924 (csky_unwind_sp): Delete.
10925 (csky_gdbarch_init): Don't register deleted functions with
10926 gdbarch.
10927
8010f576
AB
109282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10929
10930 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10931 (cris_unwind_pc): Delete.
10932 (cris_unwind_sp): Delete.
10933 (cris_gdbarch_init): Don't register deleted functions with
10934 gdbarch.
10935
b56bf084
AB
109362019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10937
10938 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10939 (bfin_unwind_pc): Delete.
10940 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10941
a19a650f
AB
109422019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10943
10944 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10945 (arm_unwind_pc): Delete.
10946 (arm_unwind_sp): Delete.
10947 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10948
f8278c3c
AB
109492019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10950
10951 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10952 (arc_unwind_pc): Delete.
10953 (arc_unwind_sp): Delete.
10954 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10955
480e46cf
AB
109562019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10957
10958 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10959 (alpha_unwind_pc): Delete.
10960 (alpha_gdbarch_init): Don't register deleted functions with
10961 gdbarch.
10962
7a995095
AB
109632019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10964
10965 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10966 (aarch64_unwind_pc): Delete.
10967 (aarch64_unwind_sp): Delete.
10968 (aarch64_gdbarch_init): Don't register deleted functions with
10969 gdbarch.
10970
bf9a735e
AB
109712019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10972
10973 * gdbtypes.c (type_align): Don't consider static members when
10974 computing structure alignment.
10975
5561fc30
AB
109762019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10977
10978 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10979 return 0 for other types.
10980 * arch-utils.c (default_type_align): Always return 0.
10981 * gdbarch.h: Regenerate.
10982 * gdbarch.sh (type_align): Extend comment.
10983 * gdbtypes.c (type_align): Add additional comments, always call
10984 gdbarch_type_align before applying the default rules.
10985 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10986 generic code will then apply a suitable default.
10987 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10988 types, return 0 for other types.
10989
9335e75a
JB
109902019-02-27 Joel Brobecker <brobecker@adacore.com>
10991
10992 * NEWS: Create a new section for the next release branch.
10993 Rename the section of the current branch, now that it has
10994 been cut.
10995
3d34d8de
JB
109962019-02-27 Joel Brobecker <brobecker@adacore.com>
10997
10998 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10999 * version.in: Bump version to 8.3.50.DATE-git.
11000
143420fb
SM
110012019-02-26 Simon Marchi <simon.marchi@efficios.com>
11002
11003 * aix-thread.c (ptid_cmp): Remove unused variable.
11004 (get_signaled_thread): Likewise.
11005 (store_regs_user_thread): Likewise.
11006 (store_regs_kernel_thread): Likewise.
11007 (fetch_regs_kernel_thread): Remove shadowed variable.
11008
172fb711
AB
110092019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11010
11011 * features/riscv/32bit-cpu.xml: Add register numbers.
11012 * features/riscv/32bit-fpu.c: Regenerate.
11013 * features/riscv/32bit-fpu.xml: Add register numbers.
11014 * features/riscv/64bit-cpu.xml: Add register numbers.
11015 * features/riscv/64bit-fpu.c: Regenerate.
11016 * features/riscv/64bit-fpu.xml: Add register numbers.
11017
26c89782
KB
110182019-02-26 Kevin Buettner <kevinb@redhat.com>
11019
af54ade9 11020 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
11021 * python/py-value.c (convert_buffer_and_type_to_value): New
11022 function.
11023 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11024 Add support for handling an optional second argument. Call
11025 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
11026 * python/python-internal.h (Py_buffer_deleter): New struct.
11027 (Py_buffer_up): New typedef.
11028
0f58c9e8
JB
110292019-02-25 John Baldwin <jhb@FreeBSD.org>
11030
11031 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11032 instead of releasing ownership.
11033
0a0f4c01
JR
110342019-02-25 Jordan Rupprecht <rupprecht@google.com>
11035
11036 * dwarf2read.c (open_and_init_dwp_file): Call
11037 elf_numsections instead of bfd_count_sections to initialize
11038 dwp_file->num_sections.
11039
cd5a152c
TT
110402019-02-25 Tom Tromey <tromey@adacore.com>
11041
11042 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11043
8a6a8513
SDJ
110442019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11045
11046 * gcore.in: Add '--readnever' option when invoking GDB.
11047
04dcda9c
SM
110482019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11049
11050 * MAINTAINERS: Update my email address.
11051
07bc701d
SM
110522019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11053
11054 * build-id.c (build_id_to_debug_bfd_1): New function.
11055 (build_id_to_debug_bfd): Look for separate debug file in
11056 sysroot.
11057
c6f4a5d0
AB
110582019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11059
11060 * gdbarch.sh: Update the copyright year range that is placed into
11061 generated files.
11062
9600246d
KS
110632019-02-22 Keith Seitz <keiths@redhat.com>
11064
11065 PR symtab/23853
11066 * linespec.c (create_sals_line_offset): Search for the default
11067 symtab's filename instead of its fullname.
11068
7557a514
AH
110692019-02-21 Alan Hayward <alan.hayward@arm.com>
11070
11071 * NEWS: Update style defaults.
11072
ee2bcb0c
AH
110732019-02-21 Alan Hayward <alan.hayward@arm.com>
11074
11075 * main.c (captured_main_1): Disable styling in batch mode.
11076
0c95f9ed
TT
110772019-02-20 Tom Tromey <tom@tromey.com>
11078
11079 * symtab.c (symtab_symbol_info): Fix typos.
11080
c763b894
TT
110812019-02-20 Tom Tromey <tromey@adacore.com>
11082
11083 * findcmd.c (_initialize_mem_search): Use upper case for
11084 metasyntactic variables.
11085
0ef8a082
AH
110862019-02-20 Alan Hayward <alan.hayward@arm.com>
11087
11088 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11089 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11090
6caa91b6
SM
110912019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11092
11093 * top.h (source_file_name): Change to std::string.
11094 * top.c (source_file_name): Likewise.
11095 (command_line_input): Adjust.
11096 * cli/cli-script.c (script_from_file): Adjust.
11097
98814c6c
TT
110982019-02-19 Tom Tromey <tromey@adacore.com>
11099
11100 * ravenscar-thread.c
11101 (ravenscar_thread_target::update_thread_list): Don't call
11102 ada_build_task_list.
11103 * ada-lang.h (ada_build_task_list): Don't declare.
11104 * ada-tasks.c (struct ada_tasks_inferior_data)
11105 <task_list_valid_p>: Now bool.
11106 (read_known_tasks, ada_task_list_changed)
11107 (ada_tasks_invalidate_inferior_data): Update.
11108 (read_known_tasks_array): Return bool.
11109 (read_known_tasks_list): Likewise.
11110 (read_known_tasks): Return void.
11111 (ada_build_task_list): Now static.
11112
70cd633e
AB
111132019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11114
11115 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11116 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11117
040b3e95
PW
111182019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11119
11120 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11121 variant for ada_tasks_pspace_data_handle and
11122 ada_tasks_inferior_data_handle.
11123 (ada_tasks_pspace_data_cleanup): New function.
11124 (ada_tasks_inferior_data_cleanup): New function.
11125
9409233b
TT
111262019-02-17 Tom Tromey <tom@tromey.com>
11127
11128 * macrotab.h (macro_source_fullname): Return a std::string.
11129 * macrotab.c (macro_include, check_for_redefinition)
11130 (macro_undef, macro_lookup_definition, foreach_macro)
11131 (foreach_macro_in_scope): Update.
11132 (macro_source_fullname): Return a std::string.
11133 * macrocmd.c (show_pp_source_pos): Update.
11134
6506371f
TT
111352019-02-17 Tom Tromey <tom@tromey.com>
11136
11137 * macrocmd.c (show_pp_source_pos): Style the file names.
11138
0c820d67
TT
111392019-02-17 Tom Tromey <tom@tromey.com>
11140
11141 PR tui/24197:
11142 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11143
a0087920
TT
111442019-02-17 Tom Tromey <tom@tromey.com>
11145
11146 * ada-lang.c (user_select_syms): Use filtered printing.
11147 * utils.c (wrap_style): New global.
11148 (desired_style): Remove.
11149 (emit_style_escape): Add stream parameter.
11150 (set_output_style, reset_terminal_style, prompt_for_continue):
11151 Update.
11152 (flush_wrap_buffer): Only flush gdb_stdout.
11153 (wrap_here): Set wrap_style.
11154 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11155 treat escape sequences as a character. Change when wrap buffer is
11156 flushed.
11157 (fputs_styled): Do not set the output style when the default is
11158 requested.
11159 * ui-style.h (struct ui_file_style) <is_default>: New method.
11160 * source.c (print_source_lines_base): Emit escape sequences in one
11161 piece.
11162
75ba10dc
JB
111632019-02-17 Joel Brobecker <brobecker@adacore.com>
11164
11165 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11166 integers and enumeration types.
11167
a2cd4f14
JB
111682019-02-17 Joel Brobecker <brobecker@adacore.com>
11169
11170 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11171 instead of lookup_symbol_in_language
11172 (do_exact_match): New function.
11173 (ada_get_symbol_name_matcher): Return do_exact_match when
11174 doing a verbatim match.
11175
485b851b
TT
111762019-02-15 Tom Tromey <tromey@adacore.com>
11177
11178 * ravenscar-thread.c (ravenscar_thread_target::resume)
11179 (ravenscar_thread_target::wait): Special case wildcard requests.
11180
0b790b1e
TT
111812019-02-15 Tom Tromey <tromey@adacore.com>
11182
11183 * ravenscar-thread.c (base_ptid): Remove.
11184 (struct ravenscar_thread_target) <close>: New method.
11185 <m_base_ptid>: New member.
11186 <update_inferior_ptid, active_task, task_is_currently_active,
11187 runtime_initialized>: Declare methods.
11188 <ravenscar_thread_target>: Add constructor.
11189 (ravenscar_thread_target::task_is_currently_active)
11190 (ravenscar_thread_target::update_inferior_ptid)
11191 (ravenscar_runtime_initialized): Rename. Now methods.
11192 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11193 (ravenscar_thread_target::update_thread_list): Update.
11194 (ravenscar_thread_target::active_task): Now method.
11195 (ravenscar_thread_target::store_registers)
11196 (ravenscar_thread_target::prepare_to_store)
11197 (ravenscar_thread_target::prepare_to_store)
11198 (ravenscar_thread_target::mourn_inferior): Update.
11199 (ravenscar_inferior_created): Use "new" to create target.
11200 (ravenscar_thread_target::get_ada_task_ptid): Update.
11201 (_initialize_ravenscar): Don't initialize base_ptid.
11202 (ravenscar_ops): Remove global.
11203
dea57a62
TT
112042019-02-15 Tom Tromey <tromey@adacore.com>
11205
11206 * target.h (push_target): Declare new overload.
11207 * target.c (push_target): New overload, taking an rvalue reference.
11208 * remote.c (remote_target::open_1): Use push_target overload.
11209 * corelow.c (core_target_open): Use push_target overload.
11210
989f3c58
TT
112112019-02-15 Tom Tromey <tromey@adacore.com>
11212
11213 * ravenscar-thread.c (is_ravenscar_task)
11214 (ravenscar_task_is_currently_active): Return bool.
11215 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11216 (_initialize_ravenscar): Remove "(void)".
11217 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11218 Return bool.
11219
6cbcc006
TT
112202019-02-15 Tom Tromey <tromey@adacore.com>
11221
11222 * ravenscar-thread.c (ravenscar_runtime_initializer)
11223 (has_ravenscar_runtime, get_running_thread_id)
11224 (ravenscar_thread_target::resume): Fix indentation.
11225
7657f14d
TT
112262019-02-15 Tom Tromey <tromey@adacore.com>
11227
11228 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11229 from ravenscar_arch_ops.
11230 (sparc_ravenscar_ops::fetch_registers)
11231 (sparc_ravenscar_ops::store_registers): Now methods.
11232 (sparc_ravenscar_prepare_to_store): Remove.
11233 (sparc_ravenscar_ops): Redefine.
11234 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11235 methods and destructor. Remove members.
11236 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11237 (ravenscar_thread_target::store_registers)
11238 (ravenscar_thread_target::prepare_to_store): Update.
11239 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11240 Remove.
11241 (struct ppc_ravenscar_powerpc_ops): Derive from
11242 ravenscar_arch_ops.
11243 (ppc_ravenscar_powerpc_ops::fetch_registers)
11244 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11245 (ppc_ravenscar_powerpc_ops): Redefine.
11246 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11247 (ppc_ravenscar_e500_ops::fetch_registers)
11248 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11249 (ppc_ravenscar_e500_ops): Redefine.
11250 * aarch64-ravenscar-thread.c
11251 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11252 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11253 (aarch64_ravenscar_fetch_registers)
11254 (aarch64_ravenscar_store_registers): Now methods.
11255 (aarch64_ravenscar_ops): Redefine.
11256
5b6ea500
TT
112572019-02-15 Tom Tromey <tromey@adacore.com>
11258
11259 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11260 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11261 (ravenscar_thread_target::stopped_by_watchpoint)
11262 (ravenscar_thread_target::stopped_data_address)
11263 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11264
e397fd39
TT
112652019-02-15 Tom Tromey <tromey@adacore.com>
11266
11267 * ravenscar-thread.c: Fix some typos.
11268
cc12f4a8
TT
112692019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11270 Tom Tromey <tromey@adacore.com>
11271
11272 * ada-lang.c (ada_exception_sal): Change addr_string to a
11273 std::string.
11274 (create_ada_exception_catchpoint): Update.
11275
5f486660
TT
112762019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11277 Tom Tromey <tromey@adacore.com>
11278
11279 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11280 (bp_location_ops): Remove.
11281 (base_breakpoint_allocate_location): Update.
11282 (free_bp_location): Update.
11283 * ada-lang.c (class ada_catchpoint_location)
11284 <ada_catchpoint_location>: Remove ops parameter.
11285 (ada_catchpoint_location_dtor): Remove.
11286 (ada_catchpoint_location_ops): Remove.
11287 (allocate_location_exception): Update.
11288 * breakpoint.h (struct bp_location_ops): Remove.
11289 (class bp_location) <bp_location>: Remove bp_location_ops
11290 parameter.
11291 <~bp_location>: Add destructor.
11292 <ops>: Remove.
11293
b671c7fb
TS
112942019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11295 Pedro Alves <palves@redhat.com>
11296
11297 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11298 'PATH_MAX'.
11299
8071c5ce
DM
113002019-02-14 David Michael <fedora.dm0@gmail.com>
11301 Samuel Thibault <samuel.thibault@gnu.org>
11302 Thomas Schwinge <thomas@codesourcery.com>
11303
11304 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11305 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11306
b1041ae0
TS
113072019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11308
924514e1
TS
11309 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11310 (check_empty): Use "const char *".
11311
c29ee8d4
TS
11312 * gnu-nat.c (gnu_nat_target::detach): Instead of
11313 'detach_inferior (pid)' call
11314 'detach_inferior (find_inferior_pid (pid))'.
11315
6c6ef69f
TS
11316 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11317 'nat/fork-inferior.o'.
11318 * gnu-nat.c: #include "nat/fork-inferior.h".
11319
2d0a338c
TS
11320 * gnu-nat.c (gnu_nat_target::detach): Instead of
11321 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11322 * gnu-nat.h: #include "inf-child.h".
11323 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11324 'i386_gnu_nat_target::fetch_registers'.
11325 (gnu_store_registers): Rename/move to
11326 'i386_gnu_nat_target::store_registers'.
11327
cabb5f06
TS
11328 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11329 * gnu-nat.h (mach_thread_info): New function.
11330 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11331
b1041ae0
TS
11332 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11333
2988d01e
KF
113342019-02-14 Frederic Konrad <konrad@adacore.com>
11335
11336 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11337
c559d709
JB
113382019-02-14 Joel Brobecker <brobecker@adacore.com>
11339
11340 * windows-nat.c (windows_add_thread): Add new parameter
11341 "main_thread_p" with default value set to false. Update
11342 function documentation as well as all callers.
11343 (windows_delete_thread): Likewise.
11344 (fake_create_process): Update call to windows_add_thread.
11345 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11346 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11347 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11348 call to windows_delete_thread.
11349
007024cc
SM
113502019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11351
11352 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11353
f62318e9
JB
113542019-02-12 John Baldwin <jhb@FreeBSD.org>
11355
11356 * symfile.c (find_separate_debug_file): Use canonical path of
11357 sysroot with child_path instead of gdb_sysroot if it is valid.
11358
cd4b7848
JB
113592019-02-12 John Baldwin <jhb@FreeBSD.org>
11360
11361 * symfile.c (find_separate_debug_file): Use child_path to
11362 determine if an object file is under a sysroot.
11363
efac4bfe
JB
113642019-02-12 John Baldwin <jhb@FreeBSD.org>
11365
11366 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11367 unittests/child-path-selftests.c.
11368 * common/pathstuff.c (child_path): New function.
11369 * common/pathstuff.h (child_path): New prototype.
11370 * unittests/child-path-selftests.c: New file.
11371
402d2bfe
JB
113722019-02-12 John Baldwin <jhb@FreeBSD.org>
11373
11374 * symfile.c (find_separate_debug_file): Look for separate debug
11375 files in debug directories under the sysroot.
11376
1ed9f74e
PW
113772019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11378
11379 * symtab.h (struct minimal_symbol data_p): New const method.
11380 (struct minimal_symbol text_p): Likewise.
11381 * symtab.c (output_source_filename): Use file name style
11382 to print file name.
11383 (print_symbol_info): Likewise.
11384 (print_msymbol_info): Use address style to print addresses.
11385 Use function name style to print executable text symbols.
11386 (expand_symtab_containing_pc): Use data_p.
11387 (find_pc_sect_compunit_symtab): Likewise.
11388
2636d81d
PW
113892019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11390
11391 * breakpoint.c (describe_other_breakpoints): Use address style
11392 to print addresses.
11393 (say_where): Likewise.
11394
ac8c53cc
PW
113952019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11396
11397 * ada-typeprint.c (print_func_type): Print function name
11398 style to print function name.
11399 * c-typeprint.c (c_print_type_1): Likewise.
11400
ea638c43
AH
114012019-02-11 Alan Hayward <alan.hayward@arm.com>
11402
11403 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11404 for execve.
11405
ab759ca8
PW
114062019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11407
11408 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11409 type_stack.
11410
aff29d1c
JB
114112019-02-10 Joel Brobecker <brobecker@adacore.com>
11412
11413 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11414 TYPE_CODE_REF types.
11415
617126bc
JW
114162019-02-08 Jim Wilson <jimw@sifive.com>
11417
11418 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11419 (riscv_linux_fregset): New.
11420 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11421
46e3ed7f
TT
114222019-02-07 Tom Tromey <tom@tromey.com>
11423
11424 * thread.c (thread_cancel_execution_command): Update.
11425 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11426 methods.
11427 (struct thread_fsm_ops): Remove.
11428 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11429 (thread_fsm_should_stop, thread_fsm_return_value)
11430 (thread_fsm_set_finished, thread_fsm_finished_p)
11431 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11432 Don't declare.
11433 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11434 * infrun.c (clear_proceed_status_thread)
11435 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11436 (print_stop_event): Update.
11437 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11438 Add constructor.
11439 (step_command_fsm_ops): Remove.
11440 (new_step_command_fsm): Remove.
11441 (step_1): Update.
11442 (step_command_fsm::should_stop): Rename from
11443 step_command_fsm_should_stop.
11444 (step_command_fsm::clean_up): Rename from
11445 step_command_fsm_clean_up.
11446 (step_command_fsm::do_async_reply_reason): Rename from
11447 step_command_fsm_async_reply_reason.
11448 (struct until_next_fsm): Inherit from thread_fsm. Add
11449 constructor.
11450 (until_next_fsm_ops): Remove.
11451 (new_until_next_fsm): Remove.
11452 (until_next_fsm::should_stop): Rename from
11453 until_next_fsm_should_stop.
11454 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11455 (until_next_fsm::do_async_reply_reason): Rename from
11456 until_next_fsm_async_reply_reason.
11457 (struct finish_command_fsm): Inherit from thread_fsm. Add
11458 constructor. Change type of breakpoint.
11459 (finish_command_fsm_ops): Remove.
11460 (new_finish_command_fsm): Remove.
11461 (finish_command_fsm::should_stop): Rename from
11462 finish_command_fsm_should_stop.
11463 (finish_command_fsm::clean_up): Rename from
11464 finish_command_fsm_clean_up.
11465 (finish_command_fsm::return_value): Rename from
11466 finish_command_fsm_return_value.
11467 (finish_command_fsm::do_async_reply_reason): Rename from
11468 finish_command_fsm_async_reply_reason.
11469 (finish_command): Update.
11470 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11471 Add constructor.
11472 (call_thread_fsm_ops): Remove.
11473 (call_thread_fsm::call_thread_fsm): Rename from
11474 new_call_thread_fsm.
11475 (call_thread_fsm::should_stop): Rename from
11476 call_thread_fsm_should_stop.
11477 (call_thread_fsm::should_notify_stop): Rename from
11478 call_thread_fsm_should_notify_stop.
11479 (run_inferior_call, call_function_by_hand_dummy): Update.
11480 * cli/cli-interp.c (should_print_stop_to_console): Update.
11481 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11482 Add constructor. Change type of location_breakpoint,
11483 caller_breakpoint.
11484 (until_break_fsm_ops): Remove.
11485 (new_until_break_fsm): Remove.
11486 (until_break_fsm::should_stop): Rename from
11487 until_break_fsm_should_stop.
11488 (until_break_fsm::clean_up): Rename from
11489 until_break_fsm_clean_up.
11490 (until_break_fsm::do_async_reply_reason): Rename from
11491 until_break_fsm_async_reply_reason.
11492 (until_break_command): Update.
11493 * thread-fsm.c: Remove.
11494 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11495
1a5c2598
TT
114962019-02-07 Tom Tromey <tom@tromey.com>
11497
11498 * yy-remap.h: Add include guard.
11499 * xtensa-tdep.h: Add include guard.
11500 * xcoffread.h: Rename include guard.
11501 * varobj-iter.h: Add include guard.
11502 * tui/tui.h: Rename include guard.
11503 * tui/tui-winsource.h: Rename include guard.
11504 * tui/tui-wingeneral.h: Rename include guard.
11505 * tui/tui-windata.h: Rename include guard.
11506 * tui/tui-win.h: Rename include guard.
11507 * tui/tui-stack.h: Rename include guard.
11508 * tui/tui-source.h: Rename include guard.
11509 * tui/tui-regs.h: Rename include guard.
11510 * tui/tui-out.h: Rename include guard.
11511 * tui/tui-layout.h: Rename include guard.
11512 * tui/tui-io.h: Rename include guard.
11513 * tui/tui-hooks.h: Rename include guard.
11514 * tui/tui-file.h: Rename include guard.
11515 * tui/tui-disasm.h: Rename include guard.
11516 * tui/tui-data.h: Rename include guard.
11517 * tui/tui-command.h: Rename include guard.
11518 * tic6x-tdep.h: Add include guard.
11519 * target/waitstatus.h: Rename include guard.
11520 * target/wait.h: Rename include guard.
11521 * target/target.h: Rename include guard.
11522 * target/resume.h: Rename include guard.
11523 * target-float.h: Rename include guard.
11524 * stabsread.h: Add include guard.
11525 * rs6000-tdep.h: Add include guard.
11526 * riscv-fbsd-tdep.h: Add include guard.
11527 * regformats/regdef.h: Rename include guard.
11528 * record.h: Rename include guard.
11529 * python/python.h: Rename include guard.
11530 * python/python-internal.h: Rename include guard.
11531 * python/py-stopevent.h: Rename include guard.
11532 * python/py-ref.h: Rename include guard.
11533 * python/py-record.h: Rename include guard.
11534 * python/py-record-full.h: Rename include guard.
11535 * python/py-record-btrace.h: Rename include guard.
11536 * python/py-instruction.h: Rename include guard.
11537 * python/py-events.h: Rename include guard.
11538 * python/py-event.h: Rename include guard.
11539 * procfs.h: Add include guard.
11540 * proc-utils.h: Add include guard.
11541 * p-lang.h: Add include guard.
11542 * or1k-tdep.h: Rename include guard.
11543 * observable.h: Rename include guard.
11544 * nto-tdep.h: Rename include guard.
11545 * nat/x86-linux.h: Rename include guard.
11546 * nat/x86-linux-dregs.h: Rename include guard.
11547 * nat/x86-gcc-cpuid.h: Add include guard.
11548 * nat/x86-dregs.h: Rename include guard.
11549 * nat/x86-cpuid.h: Rename include guard.
11550 * nat/ppc-linux.h: Rename include guard.
11551 * nat/mips-linux-watch.h: Rename include guard.
11552 * nat/linux-waitpid.h: Rename include guard.
11553 * nat/linux-ptrace.h: Rename include guard.
11554 * nat/linux-procfs.h: Rename include guard.
11555 * nat/linux-osdata.h: Rename include guard.
11556 * nat/linux-nat.h: Rename include guard.
11557 * nat/linux-namespaces.h: Rename include guard.
11558 * nat/linux-btrace.h: Rename include guard.
11559 * nat/glibc_thread_db.h: Rename include guard.
11560 * nat/gdb_thread_db.h: Rename include guard.
11561 * nat/gdb_ptrace.h: Rename include guard.
11562 * nat/fork-inferior.h: Rename include guard.
11563 * nat/amd64-linux-siginfo.h: Rename include guard.
11564 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11565 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11566 * nat/aarch64-linux.h: Rename include guard.
11567 * nat/aarch64-linux-hw-point.h: Rename include guard.
11568 * mn10300-tdep.h: Add include guard.
11569 * mips-linux-tdep.h: Add include guard.
11570 * mi/mi-parse.h: Rename include guard.
11571 * mi/mi-out.h: Rename include guard.
11572 * mi/mi-main.h: Rename include guard.
11573 * mi/mi-interp.h: Rename include guard.
11574 * mi/mi-getopt.h: Rename include guard.
11575 * mi/mi-console.h: Rename include guard.
11576 * mi/mi-common.h: Rename include guard.
11577 * mi/mi-cmds.h: Rename include guard.
11578 * mi/mi-cmd-break.h: Rename include guard.
11579 * m2-lang.h: Add include guard.
11580 * location.h: Rename include guard.
11581 * linux-record.h: Rename include guard.
11582 * linux-nat.h: Add include guard.
11583 * linux-fork.h: Add include guard.
11584 * i386-darwin-tdep.h: Rename include guard.
11585 * hppa-linux-offsets.h: Add include guard.
11586 * guile/guile.h: Rename include guard.
11587 * guile/guile-internal.h: Rename include guard.
11588 * gnu-nat.h: Rename include guard.
11589 * gdb-stabs.h: Rename include guard.
11590 * frv-tdep.h: Add include guard.
11591 * f-lang.h: Add include guard.
11592 * event-loop.h: Add include guard.
11593 * darwin-nat.h: Rename include guard.
11594 * cp-abi.h: Rename include guard.
11595 * config/sparc/nm-sol2.h: Rename include guard.
11596 * config/nm-nto.h: Rename include guard.
11597 * config/nm-linux.h: Add include guard.
11598 * config/i386/nm-i386gnu.h: Rename include guard.
11599 * config/djgpp/nl_types.h: Rename include guard.
11600 * config/djgpp/langinfo.h: Rename include guard.
11601 * compile/gcc-cp-plugin.h: Add include guard.
11602 * compile/gcc-c-plugin.h: Add include guard.
11603 * compile/compile.h: Rename include guard.
11604 * compile/compile-object-run.h: Rename include guard.
11605 * compile/compile-object-load.h: Rename include guard.
11606 * compile/compile-internal.h: Rename include guard.
11607 * compile/compile-cplus.h: Rename include guard.
11608 * compile/compile-c.h: Rename include guard.
11609 * common/xml-utils.h: Rename include guard.
11610 * common/x86-xstate.h: Rename include guard.
11611 * common/version.h: Rename include guard.
11612 * common/vec.h: Rename include guard.
11613 * common/tdesc.h: Rename include guard.
11614 * common/selftest.h: Rename include guard.
11615 * common/scoped_restore.h: Rename include guard.
11616 * common/scoped_mmap.h: Rename include guard.
11617 * common/scoped_fd.h: Rename include guard.
11618 * common/safe-iterator.h: Rename include guard.
11619 * common/run-time-clock.h: Rename include guard.
11620 * common/refcounted-object.h: Rename include guard.
11621 * common/queue.h: Rename include guard.
11622 * common/ptid.h: Rename include guard.
11623 * common/print-utils.h: Rename include guard.
11624 * common/preprocessor.h: Rename include guard.
11625 * common/pathstuff.h: Rename include guard.
11626 * common/observable.h: Rename include guard.
11627 * common/netstuff.h: Rename include guard.
11628 * common/job-control.h: Rename include guard.
11629 * common/host-defs.h: Rename include guard.
11630 * common/gdb_wait.h: Rename include guard.
11631 * common/gdb_vecs.h: Rename include guard.
11632 * common/gdb_unlinker.h: Rename include guard.
11633 * common/gdb_unique_ptr.h: Rename include guard.
11634 * common/gdb_tilde_expand.h: Rename include guard.
11635 * common/gdb_sys_time.h: Rename include guard.
11636 * common/gdb_string_view.h: Rename include guard.
11637 * common/gdb_splay_tree.h: Rename include guard.
11638 * common/gdb_setjmp.h: Rename include guard.
11639 * common/gdb_ref_ptr.h: Rename include guard.
11640 * common/gdb_optional.h: Rename include guard.
11641 * common/gdb_locale.h: Rename include guard.
11642 * common/gdb_assert.h: Rename include guard.
11643 * common/filtered-iterator.h: Rename include guard.
11644 * common/filestuff.h: Rename include guard.
11645 * common/fileio.h: Rename include guard.
11646 * common/environ.h: Rename include guard.
11647 * common/common-utils.h: Rename include guard.
11648 * common/common-types.h: Rename include guard.
11649 * common/common-regcache.h: Rename include guard.
11650 * common/common-inferior.h: Rename include guard.
11651 * common/common-gdbthread.h: Rename include guard.
11652 * common/common-exceptions.h: Rename include guard.
11653 * common/common-defs.h: Rename include guard.
11654 * common/common-debug.h: Rename include guard.
11655 * common/cleanups.h: Rename include guard.
11656 * common/buffer.h: Rename include guard.
11657 * common/btrace-common.h: Rename include guard.
11658 * common/break-common.h: Rename include guard.
11659 * cli/cli-utils.h: Rename include guard.
11660 * cli/cli-style.h: Rename include guard.
11661 * cli/cli-setshow.h: Rename include guard.
11662 * cli/cli-script.h: Rename include guard.
11663 * cli/cli-interp.h: Rename include guard.
11664 * cli/cli-decode.h: Rename include guard.
11665 * cli/cli-cmds.h: Rename include guard.
11666 * charset-list.h: Add include guard.
11667 * buildsym-legacy.h: Rename include guard.
11668 * bfin-tdep.h: Add include guard.
11669 * ax.h: Rename include guard.
11670 * arm-linux-tdep.h: Add include guard.
11671 * arm-fbsd-tdep.h: Add include guard.
11672 * arch/xtensa.h: Rename include guard.
11673 * arch/tic6x.h: Add include guard.
11674 * arch/i386.h: Add include guard.
11675 * arch/arm.h: Rename include guard.
11676 * arch/arm-linux.h: Rename include guard.
11677 * arch/arm-get-next-pcs.h: Rename include guard.
11678 * arch/amd64.h: Add include guard.
11679 * arch/aarch64-insn.h: Rename include guard.
11680 * arch-utils.h: Rename include guard.
11681 * annotate.h: Add include guard.
11682 * amd64-darwin-tdep.h: Rename include guard.
11683 * aarch64-linux-tdep.h: Add include guard.
11684 * aarch64-fbsd-tdep.h: Add include guard.
11685 * aarch32-linux-nat.h: Add include guard.
11686
ab9268d2
PW
116872019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11688
11689 * macrotab.c (macro_define_internal): New function that
11690 factorizes macro_define_object_internal and macro_define_function
11691 code.
11692 (macro_define_object_internal): Use macro_define_internal.
11693 (macro_define_function): Likewise.
11694
bb0da2b4
PW
116952019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11696
11697 * macrocmd.c (extract_identifier): Return
11698 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11699 callers.
11700
424eb552
JB
117012019-02-06 John Baldwin <jhb@FreeBSD.org>
11702
11703 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11704
1688cb29
TT
117052019-02-05 Tom Tromey <tom@tromey.com>
11706
11707 * target.c (target_stack::unpush): Move assertion earlier.
11708
b5eba2d8
TT
117092019-01-30 Tom Tromey <tom@tromey.com>
11710
11711 PR python/23615:
11712 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11713 (gdbpy_parse_and_eval): Likewise.
11714 * python/python-internal.h (gdbpy_allow_threads): New class.
11715
7054e2ff
JB
117162019-01-28 John Baldwin <jhb@FreeBSD.org>
11717
11718 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11719 (aarch64_fbsd_fpregmap): Move earlier.
11720 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11721 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11722 instead of individual calls to trad_frame_set_reg_addr.
11723 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11724 earlier.
11725 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11726 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11727 instead of individual calls to trad_frame_set_reg_addr.
11728
36c25ffa
AH
117292019-01-28 Alan Hayward <alan.hayward@arm.com>
11730
11731 * CONTRIBUTE: Replace contribution list with wiki link.
11732
a0707f3c
TT
117332019-01-25 Tom Tromey <tom@tromey.com>
11734
11735 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11736
0747795c
TT
117372019-01-25 Tom Tromey <tom@tromey.com>
11738
11739 * xtensa-linux-nat.c: Fix common/ includes.
11740 * xml-support.h: Fix common/ includes.
11741 * xml-support.c: Fix common/ includes.
11742 * x86-linux-nat.c: Fix common/ includes.
11743 * windows-nat.c: Fix common/ includes.
11744 * varobj.h: Fix common/ includes.
11745 * varobj.c: Fix common/ includes.
11746 * value.c: Fix common/ includes.
11747 * valops.c: Fix common/ includes.
11748 * utils.c: Fix common/ includes.
11749 * unittests/xml-utils-selftests.c: Fix common/ includes.
11750 * unittests/utils-selftests.c: Fix common/ includes.
11751 * unittests/unpack-selftests.c: Fix common/ includes.
11752 * unittests/tracepoint-selftests.c: Fix common/ includes.
11753 * unittests/style-selftests.c: Fix common/ includes.
11754 * unittests/string_view-selftests.c: Fix common/ includes.
11755 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11756 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11757 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11758 * unittests/rsp-low-selftests.c: Fix common/ includes.
11759 * unittests/parse-connection-spec-selftests.c: Fix common/
11760 includes.
11761 * unittests/optional-selftests.c: Fix common/ includes.
11762 * unittests/offset-type-selftests.c: Fix common/ includes.
11763 * unittests/observable-selftests.c: Fix common/ includes.
11764 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11765 * unittests/memrange-selftests.c: Fix common/ includes.
11766 * unittests/memory-map-selftests.c: Fix common/ includes.
11767 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11768 * unittests/function-view-selftests.c: Fix common/ includes.
11769 * unittests/environ-selftests.c: Fix common/ includes.
11770 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11771 * unittests/common-utils-selftests.c: Fix common/ includes.
11772 * unittests/cli-utils-selftests.c: Fix common/ includes.
11773 * unittests/array-view-selftests.c: Fix common/ includes.
11774 * ui-file.c: Fix common/ includes.
11775 * tui/tui-io.c: Fix common/ includes.
11776 * tracepoint.h: Fix common/ includes.
11777 * tracepoint.c: Fix common/ includes.
11778 * tracefile-tfile.c: Fix common/ includes.
11779 * top.h: Fix common/ includes.
11780 * top.c: Fix common/ includes.
11781 * thread.c: Fix common/ includes.
11782 * target/waitstatus.h: Fix common/ includes.
11783 * target/waitstatus.c: Fix common/ includes.
11784 * target.h: Fix common/ includes.
11785 * target.c: Fix common/ includes.
11786 * target-memory.c: Fix common/ includes.
11787 * target-descriptions.c: Fix common/ includes.
11788 * symtab.h: Fix common/ includes.
11789 * symfile.c: Fix common/ includes.
11790 * stap-probe.c: Fix common/ includes.
11791 * spu-linux-nat.c: Fix common/ includes.
11792 * sparc-nat.c: Fix common/ includes.
11793 * source.c: Fix common/ includes.
11794 * solib.c: Fix common/ includes.
11795 * solib-target.c: Fix common/ includes.
11796 * ser-unix.c: Fix common/ includes.
11797 * ser-tcp.c: Fix common/ includes.
11798 * ser-pipe.c: Fix common/ includes.
11799 * ser-base.c: Fix common/ includes.
11800 * selftest-arch.c: Fix common/ includes.
11801 * s12z-tdep.c: Fix common/ includes.
11802 * rust-exp.y: Fix common/ includes.
11803 * rs6000-aix-tdep.c: Fix common/ includes.
11804 * riscv-tdep.c: Fix common/ includes.
11805 * remote.c: Fix common/ includes.
11806 * remote-notif.h: Fix common/ includes.
11807 * remote-fileio.h: Fix common/ includes.
11808 * remote-fileio.c: Fix common/ includes.
11809 * regcache.h: Fix common/ includes.
11810 * regcache.c: Fix common/ includes.
11811 * record-btrace.c: Fix common/ includes.
11812 * python/python.c: Fix common/ includes.
11813 * python/py-type.c: Fix common/ includes.
11814 * python/py-inferior.c: Fix common/ includes.
11815 * progspace.h: Fix common/ includes.
11816 * producer.c: Fix common/ includes.
11817 * procfs.c: Fix common/ includes.
11818 * proc-api.c: Fix common/ includes.
11819 * printcmd.c: Fix common/ includes.
11820 * ppc-linux-nat.c: Fix common/ includes.
11821 * parser-defs.h: Fix common/ includes.
11822 * osdata.c: Fix common/ includes.
11823 * obsd-nat.c: Fix common/ includes.
11824 * nat/x86-linux.c: Fix common/ includes.
11825 * nat/x86-linux-dregs.c: Fix common/ includes.
11826 * nat/x86-dregs.h: Fix common/ includes.
11827 * nat/x86-dregs.c: Fix common/ includes.
11828 * nat/ppc-linux.c: Fix common/ includes.
11829 * nat/mips-linux-watch.h: Fix common/ includes.
11830 * nat/mips-linux-watch.c: Fix common/ includes.
11831 * nat/linux-waitpid.c: Fix common/ includes.
11832 * nat/linux-ptrace.h: Fix common/ includes.
11833 * nat/linux-ptrace.c: Fix common/ includes.
11834 * nat/linux-procfs.c: Fix common/ includes.
11835 * nat/linux-personality.c: Fix common/ includes.
11836 * nat/linux-osdata.c: Fix common/ includes.
11837 * nat/linux-namespaces.c: Fix common/ includes.
11838 * nat/linux-btrace.h: Fix common/ includes.
11839 * nat/linux-btrace.c: Fix common/ includes.
11840 * nat/fork-inferior.c: Fix common/ includes.
11841 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11842 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11843 * nat/aarch64-linux.c: Fix common/ includes.
11844 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11845 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11846 * namespace.h: Fix common/ includes.
11847 * mips-linux-tdep.c: Fix common/ includes.
11848 * minsyms.c: Fix common/ includes.
11849 * mi/mi-parse.h: Fix common/ includes.
11850 * mi/mi-main.c: Fix common/ includes.
11851 * mi/mi-cmd-env.c: Fix common/ includes.
11852 * memrange.h: Fix common/ includes.
11853 * memattr.c: Fix common/ includes.
11854 * maint.h: Fix common/ includes.
11855 * maint.c: Fix common/ includes.
11856 * main.c: Fix common/ includes.
11857 * machoread.c: Fix common/ includes.
11858 * location.c: Fix common/ includes.
11859 * linux-thread-db.c: Fix common/ includes.
11860 * linux-nat.c: Fix common/ includes.
11861 * linux-fork.c: Fix common/ includes.
11862 * inline-frame.c: Fix common/ includes.
11863 * infrun.c: Fix common/ includes.
11864 * inflow.c: Fix common/ includes.
11865 * inferior.h: Fix common/ includes.
11866 * inferior.c: Fix common/ includes.
11867 * infcmd.c: Fix common/ includes.
11868 * inf-ptrace.c: Fix common/ includes.
11869 * inf-child.c: Fix common/ includes.
11870 * ia64-linux-nat.c: Fix common/ includes.
11871 * i387-tdep.c: Fix common/ includes.
11872 * i386-tdep.c: Fix common/ includes.
11873 * i386-linux-tdep.c: Fix common/ includes.
11874 * i386-linux-nat.c: Fix common/ includes.
11875 * i386-go32-tdep.c: Fix common/ includes.
11876 * i386-fbsd-tdep.c: Fix common/ includes.
11877 * i386-fbsd-nat.c: Fix common/ includes.
11878 * guile/scm-type.c: Fix common/ includes.
11879 * guile/guile.c: Fix common/ includes.
11880 * go32-nat.c: Fix common/ includes.
11881 * gnu-nat.c: Fix common/ includes.
11882 * gdbthread.h: Fix common/ includes.
11883 * gdbarch-selftests.c: Fix common/ includes.
11884 * gdb_usleep.c: Fix common/ includes.
11885 * gdb_select.h: Fix common/ includes.
11886 * gdb_bfd.c: Fix common/ includes.
11887 * gcore.c: Fix common/ includes.
11888 * fork-child.c: Fix common/ includes.
11889 * findvar.c: Fix common/ includes.
11890 * fbsd-nat.c: Fix common/ includes.
11891 * event-top.c: Fix common/ includes.
11892 * event-loop.c: Fix common/ includes.
11893 * dwarf2read.c: Fix common/ includes.
11894 * dwarf2loc.c: Fix common/ includes.
11895 * dwarf2-frame.c: Fix common/ includes.
11896 * dwarf-index-cache.c: Fix common/ includes.
11897 * dtrace-probe.c: Fix common/ includes.
11898 * disasm-selftests.c: Fix common/ includes.
11899 * defs.h: Fix common/ includes.
11900 * csky-tdep.c: Fix common/ includes.
11901 * cp-valprint.c: Fix common/ includes.
11902 * cp-support.h: Fix common/ includes.
11903 * cp-support.c: Fix common/ includes.
11904 * corelow.c: Fix common/ includes.
11905 * completer.h: Fix common/ includes.
11906 * completer.c: Fix common/ includes.
11907 * compile/compile.c: Fix common/ includes.
11908 * compile/compile-loc2c.c: Fix common/ includes.
11909 * compile/compile-cplus-types.c: Fix common/ includes.
11910 * compile/compile-cplus-symbols.c: Fix common/ includes.
11911 * command.h: Fix common/ includes.
11912 * cli/cli-dump.c: Fix common/ includes.
11913 * cli/cli-cmds.c: Fix common/ includes.
11914 * charset.c: Fix common/ includes.
11915 * build-id.c: Fix common/ includes.
11916 * btrace.h: Fix common/ includes.
11917 * btrace.c: Fix common/ includes.
11918 * breakpoint.h: Fix common/ includes.
11919 * breakpoint.c: Fix common/ includes.
11920 * ax.h:
11921 (enum agent_op): Fix common/ includes.
11922 * ax-general.c (struct aop_map): Fix common/ includes.
11923 * ax-gdb.c: Fix common/ includes.
11924 * auxv.c: Fix common/ includes.
11925 * auto-load.c: Fix common/ includes.
11926 * arm-tdep.c: Fix common/ includes.
11927 * arch/riscv.c: Fix common/ includes.
11928 * arch/ppc-linux-common.c: Fix common/ includes.
11929 * arch/i386.c: Fix common/ includes.
11930 * arch/arm.c: Fix common/ includes.
11931 * arch/arm-linux.c: Fix common/ includes.
11932 * arch/arm-get-next-pcs.c: Fix common/ includes.
11933 * arch/amd64.c: Fix common/ includes.
11934 * arch/aarch64.c: Fix common/ includes.
11935 * arch/aarch64-insn.c: Fix common/ includes.
11936 * arch-utils.c: Fix common/ includes.
11937 * amd64-windows-tdep.c: Fix common/ includes.
11938 * amd64-tdep.c: Fix common/ includes.
11939 * amd64-sol2-tdep.c: Fix common/ includes.
11940 * amd64-obsd-tdep.c: Fix common/ includes.
11941 * amd64-nbsd-tdep.c: Fix common/ includes.
11942 * amd64-linux-tdep.c: Fix common/ includes.
11943 * amd64-linux-nat.c: Fix common/ includes.
11944 * amd64-fbsd-tdep.c: Fix common/ includes.
11945 * amd64-fbsd-nat.c: Fix common/ includes.
11946 * amd64-dicos-tdep.c: Fix common/ includes.
11947 * amd64-darwin-tdep.c: Fix common/ includes.
11948 * agent.c: Fix common/ includes.
11949 * ada-lang.h: Fix common/ includes.
11950 * ada-lang.c: Fix common/ includes.
11951 * aarch64-tdep.c: Fix common/ includes.
11952
2f5c153e
TT
119532019-01-25 Tom Tromey <tom@tromey.com>
11954
11955 * common/create-version.sh: Use common/version.h.
11956
adc6a863
PA
119572019-01-24 Pedro Alves <palves@redhat.com>
11958
11959 * infrun.c (signal_stop, signal_print, signal_program)
11960 (signal_catch, signal_pass): Now arrays instead of pointers.
11961 (update_signals_program_target, do_target_resume)
11962 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11963 * linux-nat.c (linux_nat_target::pass_signals)
11964 (linux_nat_target::create_inferior, linux_nat_target::attach):
11965 Adjust.
11966 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11967 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11968 * procfs.c (procfs_target::pass_signals): Adjust.
11969 * record-full.c (record_full_target::resume): Adjust.
11970 * remote.c (remote_target::pass_signals)
11971 (remote_target::program_signals): Adjust.
11972 * target-debug.h (target_debug_print_signals): Now takes a
11973 gdb::array_view as parameter. Adjust.
11974 * target.h (target_ops) <pass_signals, program_signals>: Replace
11975 pointer and length parameters with gdb::array_view.
11976 (target_pass_signals, target_program_signals): Likewise.
11977 * target-delegates.c: Regenerate.
11978
3046d67a
PA
119792019-01-24 Pedro Alves <palves@redhat.com>
11980
11981 * common/forward-scope-exit.h
11982 (forward_scope_exit::forward_scope_exit): Pass arguments to
11983 m_bind_function directly, instead of creating a std::bind and
11984 copying that.
11985
353229bf
AH
119862019-01-24 Alan Hayward <alan.hayward@arm.com>
11987
11988 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11989 for static members.
11990 (pass_in_v_vfp_candidate): Likewise.
11991
311dc83a
TT
119922019-01-23 Tom Tromey <tom@tromey.com>
11993 Pedro Alves <palves@redhat.com>
11994
11995 * regcache.c (class regcache_invalidator): Remove.
11996 (regcache::raw_write): Use make_scope_exit.
11997
296bd123
TT
119982019-01-23 Tom Tromey <tom@tromey.com>
11999
12000 * ui-out.h (class ui_out_emit_type): Update comment.
12001
979a0d13
TT
120022019-01-23 Tom Tromey <tom@tromey.com>
12003
12004 * infrun.c (fetch_inferior_event): Update comment.
12005
d238133d
TT
120062019-01-23 Tom Tromey <tom@tromey.com>
12007 Pedro Alves <palves@redhat.com>
12008
12009 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12010 parameter.
12011 (fetch_inferior_event): Use SCOPE_EXIT.
12012
12013
9885e6bb
TT
120142019-01-23 Tom Tromey <tom@tromey.com>
12015 Pedro Alves <palves@redhat.com>
12016
12017 * infrun.c (disable_thread_events): Delete.
12018 (stop_all_threads): Use SCOPE_EXIT.
12019
286526c1
TT
120202019-01-23 Tom Tromey <tom@tromey.com>
12021 Pedro Alves <palves@redhat.com>
12022
12023 * symfile.c: Include forward-scope-exit.h.
12024 (clear_symtab_users_cleanup): Replace forward declaration with
12025 a FORWARD_SCOPE_EXIT.
12026 (syms_from_objfile_1): Use the forward_scope_exit and
12027 gdb::optional instead of cleanup_function.
12028 (reread_symbols): Use the forward_scope_exit instead of
12029 cleanup_function.
12030 (clear_symtab_users_cleanup): Remove function.
12031
1db93f14
TT
120322019-01-23 Tom Tromey <tom@tromey.com>
12033 Pedro Alves <palves@redhat.com>
12034
12035 * linux-nat.c: Include scope-exit.h.
12036 (cleanup_target_stop): Remove.
12037 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12038 SCOPE_EXIT.
12039
2cc83d1e
TT
120402019-01-23 Tom Tromey <tom@tromey.com>
12041 Pedro Alves <palves@redhat.com>
12042
12043 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12044 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12045
694c6bf5
TT
120462019-01-23 Tom Tromey <tom@tromey.com>
12047 Andrew Burgess <andrew.burgess@embecosm.com>
12048 Pedro Alves <palves@redhat.com>
12049
12050 * infrun.c (fetch_inferior_event): Use scope_exit.
12051 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12052 * top.c (execute_command): Use scope_exit.
12053 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12054 * utils.c (do_bpstat_clear_actions_cleanup)
12055 (make_bpstat_clear_actions_cleanup): Remove.
12056
4c41382a
TT
120572019-01-23 Tom Tromey <tom@tromey.com>
12058 Pedro Alves <palves@redhat.com>
12059
12060 * infrun.c: Include "common/scope-exit.h"
12061 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12062 (wait_for_inferior): Use SCOPE_EXIT.
12063 (fetch_inferior_event): Use scope_exit.
12064
89f8fb50
TT
120652019-01-23 Tom Tromey <tom@tromey.com>
12066 Pedro Alves <palves@redhat.com>
12067
12068 * breakpoint.c (create_breakpoint): Remove cleanup.
12069
5419bdae
TT
120702019-01-23 Tom Tromey <tom@tromey.com>
12071 Andrew Burgess <andrew.burgess@embecosm.com>
12072 Pedro Alves <palves@redhat.com>
12073
e587ef42
PA
120742019-01-23 Pedro Alves <palves@redhat.com>
12075
12076 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12077
77f0e74c
PA
120782019-01-23 Pedro Alves <palves@redhat.com>
12079 Andrew Burgess <andrew.burgess@embecosm.com>
12080
12081 * gdbthread.h: Include "common/forward-scope-exit.h".
12082 (scoped_finish_thread_state): Redefine custom class in terms of
12083 forward_scope_exit.
12084
5b9b3e53
PA
120852019-01-23 Pedro Alves <palves@redhat.com>
12086 Andrew Burgess <andrew.burgess@embecosm.com>
12087
12088 * common/forward-scope-exit.h: New file.
12089
54b65c9b
PA
120902019-01-23 Pedro Alves <palves@redhat.com>
12091 Andrew Burgess <andrew.burgess@embecosm.com>
12092 Tom Tromey <tom@tromey.com>
12093
12094 * common/scope-exit.h: New file.
12095
cf08fb29
PA
120962019-01-23 Pedro Alves <palves@redhat.com>
12097
12098 * common/preprocessor.h (ESC): Rename to ...
12099 (ESC_PARENS): ... this.
12100 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12101 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12102
ae73e2e2
TT
121032019-01-23 Tom Tromey <tom@tromey.com>
12104
12105 * language.h (class scoped_switch_to_sym_language_if_auto):
12106 Initialize m_lang in both cases.
12107
6594e122
AH
121082019-01-23 Alan Hayward <alan.hayward@arm.com>
12109
12110 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12111 with XCNEW.
12112
a7c9855d
TT
121132019-01-22 Tom Tromey <tom@tromey.com>
12114
12115 * corelow.c: Do not include sys/file.h.
12116
93cc1d53
TT
121172019-01-22 Tom Tromey <tom@tromey.com>
12118
12119 * tui/tui-wingeneral.h: Include gdb_curses.h.
12120
38561778
TT
121212019-01-22 Tom Tromey <tom@tromey.com>
12122
12123 * source-cache.h (class source_cache) <get_source_lines,
12124 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12125
37b3ab5b
TT
121262019-01-22 Tom Tromey <tom@tromey.com>
12127
12128 * remote-fileio.h (struct remote_target): Declare.
12129
3fabc016
TT
121302019-01-22 Tom Tromey <tom@tromey.com>
12131
12132 * python/py-arch.c: Do not include py-ref.h.
12133 * python/py-bpevent.c: Do not include py-ref.h.
12134 * python/py-cmd.c: Do not include py-ref.h.
12135 * python/py-continueevent.c: Do not include py-ref.h.
12136 * python/py-event.h: Do not include py-ref.h.
12137 * python/py-evtregistry.c: Do not include py-ref.h.
12138 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12139 * python/py-frame.c: Do not include py-ref.h.
12140 * python/py-framefilter.c: Do not include py-ref.h.
12141 * python/py-function.c: Do not include py-ref.h.
12142 * python/py-infevents.c: Do not include py-ref.h.
12143 * python/py-linetable.c: Do not include py-ref.h.
12144 * python/py-objfile.c: Do not include py-ref.h.
12145 * python/py-param.c: Do not include py-ref.h.
12146 * python/py-prettyprint.c: Do not include py-ref.h.
12147 * python/py-progspace.c: Do not include py-ref.h.
12148 * python/py-symbol.c: Do not include py-ref.h.
12149 * python/py-symtab.c: Do not include py-ref.h.
12150 * python/py-type.c: Do not include py-ref.h.
12151 * python/py-unwind.c: Do not include py-ref.h.
12152 * python/py-utils.c: Do not include py-ref.h.
12153 * python/py-value.c: Do not include py-ref.h.
12154 * python/py-varobj.c: Do not include py-ref.h.
12155 * python/py-xmethods.c: Do not include py-ref.h.
12156 * python/python.c: Do not include py-ref.h.
12157 * varobj.c: Do not include py-ref.h.
12158
6b4d7774
TT
121592019-01-22 Tom Tromey <tom@tromey.com>
12160
12161 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12162 keyword for bcache.
12163
7af7e9b5
TT
121642019-01-22 Tom Tromey <tom@tromey.com>
12165
12166 * compile/compile-cplus-types.c: Remove a comment by #include.
12167
951d1049
TT
121682019-01-22 Tom Tromey <tom@tromey.com>
12169
12170 * compile/gcc-c-plugin.h: Include compile-internal.h.
12171
d65d5705
TT
121722019-01-22 Tom Tromey <tom@tromey.com>
12173
12174 * stabsread.c (EXTERN): Do not define.
12175 (symnum, next_symbol_text_func, processing_gcc_compilation)
12176 (within_function, global_sym_chain, global_stabs)
12177 (previous_stab_code, this_object_header_files)
12178 (n_this_object_header_files)
12179 (n_allocated_this_object_header_files): Define.
12180 * stabsread.h (EXTERN): Never define. Use "extern".
12181
b6fb1ee5
PW
121822019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12183
12184 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12185 history_value.
12186
be6d4f74
TT
121872019-01-21 Tom Tromey <tom@tromey.com>
12188
12189 * ui-out.c: Fix includes.
12190 * tui/tui-source.c: Fix includes.
12191 * target.c: Fix includes.
12192 * remote.c: Fix includes.
12193 * regcache.c: Fix includes.
12194 * python/py-block.c: Fix includes.
12195 * printcmd.c: Fix includes.
12196 * or1k-tdep.c: Fix includes.
12197 * mi/mi-main.c: Fix includes.
12198 * m32r-tdep.c: Fix includes.
12199 * csky-tdep.c: Fix includes.
12200 * compile/compile-cplus-types.c: Fix includes.
12201 * cli/cli-interp.c: Fix includes.
12202
73021deb
AH
122032019-01-21 Alan Hayward <alan.hayward@arm.com>
12204
12205 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12206 for padding.
12207
7932255d
TT
122082019-01-16 Tom Tromey <tom@tromey.com>
12209
12210 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12211 earlier.
12212 (struct objfile) <msymbols_range>: Move from top level.
12213 <msymbols>: New method.
12214 (class objfile_msymbols): Remove.
12215 * symtab.c (default_collect_symbol_completion_matches_break_on):
12216 Update.
12217 * symmisc.c (dump_msymbols): Update.
12218 * stabsread.c (scan_file_globals): Update.
12219 * objc-lang.c (info_selectors_command, info_classes_command)
12220 (find_methods): Update.
12221 * minsyms.c (find_solib_trampoline_target): Update.
12222 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12223 * coffread.c (coff_symfile_read): Update.
12224 * ada-lang.c (ada_lookup_simple_minsym)
12225 (ada_collect_symbol_completion_matches): Update.
12226
604b1bfb
TT
122272019-01-16 Tom Tromey <tom@tromey.com>
12228
12229 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12230 type. Remove no-argument constructor.
12231 <iterator::operator++>: Simplify.
12232 <begin>: Update.
12233 <end>: Use minimal_symbol_count.
12234
f252c6d5
TT
122352019-01-16 Tom Tromey <tom@tromey.com>
12236
12237 * objfiles.h (struct objfile) <psymtabs>: New method.
12238 (class objfile_psymtabs): Remove.
12239 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12240 typedef.
12241 <range>: New method.
12242 (require_partial_symbols): Change return type.
12243 * psymtab.c (require_partial_symbols)
12244 (psym_expand_symtabs_matching): Update.
12245 * mdebugread.c (parse_partial_symbols): Update.
12246 * dbxread.c (dbx_end_psymtab): Update.
12247
b669c953
TT
122482019-01-15 Tom Tromey <tom@tromey.com>
12249
12250 * symtab.c (lookup_objfile_from_block)
12251 (lookup_symbol_in_objfile_symtabs)
12252 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12253 (find_line_symtab, info_sources_command)
12254 (default_collect_symbol_completion_matches_break_on)
12255 (make_source_files_completion_list): Update.
12256 * symmisc.c (print_objfile_statistics, dump_objfile)
12257 (maintenance_print_symbols, maintenance_info_symtabs)
12258 (maintenance_check_symtabs, maintenance_info_line_tables):
12259 Update.
12260 * source.c (select_source_symtab)
12261 (forget_cached_source_info_for_objfile): Update.
12262 * objfiles.h (class objfile_compunits): Remove.
12263 (struct objfile) <compunits_range>: New typedef.
12264 (compunits): New method.
12265 * objfiles.c (objfile_relocate1): Update.
12266 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12267 * maint.c (count_symtabs_and_blocks): Update.
12268 * linespec.c (iterate_over_all_matching_symtabs): Update.
12269 * cp-support.c (add_symbol_overload_list_qualified): Update.
12270 * coffread.c (coff_symtab_read): Update.
12271 * ada-lang.c (add_nonlocal_symbols)
12272 (ada_collect_symbol_completion_matches)
12273 (ada_add_global_exceptions): Update.
12274
7e955d83
TT
122752019-01-15 Tom Tromey <tom@tromey.com>
12276
12277 * progspace.h (program_space) <objfiles_safe_range>: New
12278 typedef.
12279 <objfiles_safe>: New method.
12280 * objfiles.h (class all_objfiles_safe): Remove.
12281 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12282 * jit.c (jit_inferior_exit_hook): Update.
12283
2030c079
TT
122842019-01-17 Tom Tromey <tom@tromey.com>
12285
12286 * progspace.h (program_space) <objfiles_range>: New typedef.
12287 <objfiles>: New method.
12288 <objfiles_head>: Rename from objfiles.
12289 (object_files): Update.
12290 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12291 * guile/scm-pretty-print.c
12292 (ppscm_find_pretty_printer_from_objfiles): Update.
12293 * guile/scm-objfile.c (gdbscm_objfiles): Update.
12294 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12295 Update.
12296 * python/py-progspace.c (pspy_get_objfiles): Update.
12297 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12298 Update.
12299 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12300 (objfpy_lookup_objfile_by_build_id): Update.
12301 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12302 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12303 Update.
12304 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12305 (expand_symtab_containing_pc, lookup_objfile_from_block)
12306 (lookup_static_symbol, basic_lookup_transparent_type)
12307 (find_pc_sect_compunit_symtab, find_symbol_at_address)
12308 (find_line_symtab, info_sources_command)
12309 (default_collect_symbol_completion_matches_break_on)
12310 (make_source_files_completion_list, find_main_name): Update.
12311 * symmisc.c (print_symbol_bcache_statistics)
12312 (print_objfile_statistics, maintenance_print_symbols)
12313 (maintenance_print_msymbols, maintenance_print_objfiles)
12314 (maintenance_info_symtabs, maintenance_check_symtabs)
12315 (maintenance_expand_symtabs, maintenance_info_line_tables):
12316 Update.
12317 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12318 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12319 (map_overlay_command, unmap_overlay_command)
12320 (simple_overlay_update, expand_symtabs_matching)
12321 (map_symbol_filenames): Update.
12322 * symfile-debug.c (set_debug_symfile): Update.
12323 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12324 Update.
12325 * source.c (select_source_symtab, forget_cached_source_info):
12326 Update.
12327 * solib.c (solib_read_symbols): Update.
12328 * solib-spu.c (append_ocl_sos): Update.
12329 * psymtab.c (maintenance_print_psymbols)
12330 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12331 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12332 * printcmd.c (info_symbol_command): Update.
12333 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12334 Update.
12335 * objfiles.h (class all_objfiles): Remove.
12336 * objfiles.c (have_partial_symbols, have_full_symbols)
12337 (have_minimal_symbols, qsort_cmp, update_section_map)
12338 (shared_objfile_contains_address_p)
12339 (default_iterate_over_objfiles_in_search_order): Update.
12340 * objc-lang.c (info_selectors_command, info_classes_command)
12341 (find_methods): Update.
12342 * minsyms.c (find_solib_trampoline_target): Update.
12343 * maint.c (maintenance_info_sections)
12344 (maintenance_translate_address, count_symtabs_and_blocks):
12345 Update.
12346 * main.c (captured_main_1): Update.
12347 * linux-thread-db.c (try_thread_db_load_from_pdir)
12348 (has_libpthread): Update.
12349 * linespec.c (iterate_over_all_matching_symtabs)
12350 (search_minsyms_for_name): Update.
12351 * jit.c (jit_find_objf_with_entry_addr): Update.
12352 * hppa-tdep.c (find_unwind_entry)
12353 (hppa_lookup_stub_minimal_symbol): Update.
12354 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12355 Update.
12356 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12357 (elf_gnu_ifunc_resolve_by_got): Update.
12358 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12359 * dwarf-index-write.c (save_gdb_index_command): Update.
12360 * cp-support.c (add_symbol_overload_list_qualified): Update.
12361 * breakpoint.c (create_overlay_event_breakpoint)
12362 (create_longjmp_master_breakpoint)
12363 (create_std_terminate_master_breakpoint)
12364 (create_exception_master_breakpoint): Update.
12365 * blockframe.c (find_pc_partial_function): Update.
12366 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12367 (ada_collect_symbol_completion_matches)
12368 (ada_add_global_exceptions): Update.
12369
776489e0
TT
123702019-01-17 Tom Tromey <tom@tromey.com>
12371
12372 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12373 declare VEC.
12374 (solib_target_parse_libraries): Change return type.
12375 (library_list_start_segment, library_list_start_section)
12376 (library_list_end_library, library_list_start_library); Update.
12377 (solib_target_free_library_list): Remove.
12378 (solib_target_parse_libraries): Remove cleanup. Change return
12379 type.
12380 (solib_target_current_sos): Update.
12381
6471e7d2
TT
123822019-01-17 Tom Tromey <tromey@bapiya>
12383
12384 * valprint.c: Replace "the the" with "the".
12385 * symtab.c: Replace "the the" with "the".
12386 * solib.c: Replace "the the" with "the".
12387 * solib-dsbt.c: Replace "the the" with "the".
12388 * linespec.c: Replace "the the" with "the".
12389 * dwarf2loc.h: Replace "the the" with "the".
12390 * amd64-windows-tdep.c: Replace "the the" with "the".
12391 * aarch64-tdep.c: Replace "the the" with "the".
12392
c24bdb02
KS
123932019-01-16 Keith Seitz <keiths@redhat.com>
12394
12395 PR gdb/23773
12396 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12397 <builder>: Rename to ..
12398 <m_builder>: ... this and make private.
12399 (dwarf2_cu::get_builder): New method. Change all users of
12400 `builder' to use this method.
12401 (dwarf2_start_symtab): Move to ...
12402 (dwarf2_cu::start_symtab): ... here. Update all callers
12403 (setup_type_unit_groups): Move to ...
12404 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12405 callers.
12406 (dwarf2_cu::reset_builder): New method.
12407 (process_full_compunit, process_full_type_unit): Use
12408 dwarf2_cu::reset_builder.
12409 (follow_die_offset): Record the ancestor CU if it is different
12410 from the followed DIE's CU.
12411 (follow_die_sig_1): Likewise.
12412
8d64371b
TT
124132019-01-15 Tom Tromey <tom@tromey.com>
12414
12415 * remote.c (class remote_state) <buf>: Now a char_vector.
12416 <buf_size>: Remove.
12417 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12418 parameter.
12419 (remote_target::getpkt_or_notif_sane_1)
12420 (remote_target::getpkt_sane)
12421 (remote_target::getpkt_or_notif_sane): Likewise.
12422 (class remote_target) <putpkt>: New overload.
12423 (remote_target::read_frame): Change type of "buf_p". Remove
12424 sizeof_p parameter.
12425 (packet_ok): New overload.
12426 (packet_check_result): New overload.
12427 Update all uses.
12428
bb277751
TT
124292019-01-14 Tom Tromey <tom@tromey.com>
12430
12431 * remote-notif.c (handle_notification, remote_notif_ack)
12432 (remote_notif_parse): Make "buf" const.
12433 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12434 const.
12435 (remote_notif_parse, remote_notif_ack, handle_notification):
12436 Likewise.
12437 * remote.c (remote_notif_stop_parse): Make "buf" const.
12438 (remote_target::remote_parse_stop_reply): Make "buf" const.
12439 (remote_notif_stop_ack): Make "buf" const.
12440
05be00a8
TT
124412019-01-14 Tom Tromey <tom@tromey.com>
12442
12443 * remote.c (remote_console_output): Make parameter const.
12444
491adeca
TT
124452019-01-14 Tom Tromey <tom@tromey.com>
12446
12447 * target-debug.h (target_debug_print_signals): Constify.
12448 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12449 * procfs.c (procfs_target::pass_signals): Update.
12450 * linux-nat.c (linux_nat_target::pass_signals): Update.
12451 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12452 * target-delegates.c: Rebuild.
12453 * remote.c (remote_target::program_signals): Update.
12454 (remote_target::pass_signals): Update.
12455 * target.c (target_pass_signals): Constify argument.
12456 (target_program_signals): Likewise.
12457 * target.h (struct target_ops) <pass_signals, program_signals>:
12458 Constify argument.
12459 (target_pass_signals, target_program_signals): Constify argument.
12460
bbd94648
TT
124612019-01-14 Tom Tromey <tom@tromey.com>
12462
12463 PR tui/28819:
12464 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12465
6f072a10
PFC
124662019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12467
12468 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12469 field.
12470 * rs6000-tdep.c: Include reggroups.h.
12471 (IS_V_ALIAS_PSEUDOREG): Define.
12472 (rs6000_register_name): Return names for the "vX" aliases.
12473 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12474 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12475 aliases. Call default_register_reggroup_p for all other
12476 pseudo-registers.
12477 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12478 New functions.
12479 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12480 Handle "vX" aliases.
12481 (v_alias_pseudo_register_collect): New function.
12482 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12483 (rs6000_gdbarch_init): Initialize "vX" aliases as
12484 pseudo-registers. Restore registration of
12485 rs6000_pseudo_register_reggroup_p with
12486 set_tdesc_pseudo_register_reggroup_p.
12487
1a782351
MF
124882019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12489
12490 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12491 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12492 set_gdbarch_num_pseudo_regs.
12493
d73cff18
PW
124942019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12495
12496 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12497 Remove arg prefixname, add do_set and do_show.
12498 Add member functions set_list and show_list.
12499 * cli/cli-style.c (class cli_style_option): Update accordingly.
12500 (style_set_list): Move to file scope.
12501 (style_show_list): Likewise.
12502 (set_style): Call help_list.
12503 (show_style): Call cmd_show_list.
12504 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12505 Update to use the new macro.
12506
60a90376
JB
125072019-10-12 Joel Brobecker <brobecker@adacore.com>
12508
12509 * ada-lang.c (_initialize_ada_language): Expand the help text
12510 for the "catch exception" command.
12511
9d7c67bf
PW
125122019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12513
12514 * symtab.c (matching_obj_sections): Initialize obj,
12515 declare it closer to its usage.
12516
7cf47dc4
TT
125172019-01-10 Tom Tromey <tom@tromey.com>
12518
12519 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12520 (basic_inf_threads_range): Remove.
12521 (inf_threads_range, inf_non_exited_threads_range)
12522 (safe_inf_threads_range): Use next_adapter.
12523
d3cb6808
KS
125242019-01-10 Keith Seitz <keiths@redhat.com>
12525
12526 PR gdb/23712
12527 PR symtab/23010
12528 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12529 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12530
63a20375
KS
125312019-01-10 Keith Seitz <keiths@redhat.com>
12532
12533 PR gdb/23712
12534 PR symtab/23010
12535 * dictionary.c (pending_to_vector): Remove.
12536 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12537 Remove _1 suffix, replacing functions of the same name. Update
12538 all callers.
12539 (dict_create_hashed, dict_create_hashed_expandable)
12540 (dict_create_linear, dict_create_linear_expandable, dict_free)
12541 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12542 Make functions static.
12543
b026f593
KS
125442019-01-10 Keith Seitz <keiths@redhat.com>
12545
12546 PR gdb/23712
12547 PR symtab/23010
12548 * dictionary.h (struct dictionary): Replace declaration with
12549 multidictionary.
12550 (dict_create_hashed, dict_create_hashed_expandable)
12551 (dict_create_linear, dict_create_linear_expandable)
12552 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12553 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12554 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12555 taking multidictionary argument.
12556 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12557 * block.h (struct block) <dict>: Change to multidictionary
12558 and rename `multidict'.
12559 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12560 symmisc.c: Update all dictionary references to multidictionary.
12561
c7748ee9
KS
125622019-01-10 Keith Seitz <keiths@redhat.com>
12563
12564 PR gdb/23712
12565 PR symtab/23010
12566 * dictionary.c: Include unordered_map.
12567 (pending_to_vector): New function.
12568 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12569 Rewrite the non-"_1" functions to take vector instead
12570 of linked list.
12571 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12572 "new" _1 versions of the same name.
12573 (multidictionary): Define.
12574 (std::hash<enum language): New definition.
12575 (collate_pending_symbols_by_language, mdict_create_hashed)
12576 (mdict_create_hashed_expandable, mdict_create_linear)
12577 (mdict_create_linear_expandable, mdict_free)
12578 (find_language_dictionary, create_new_language_dictionary)
12579 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12580 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12581 (mdict_size, mdict_empty): New functions.
12582 * dictionary.h (mdict_iterator): Define.
12583
67aa1f3c
PA
125842019-01-10 Pedro Alves <palves@redhat.com>
12585
12586 * breakpoint.c (read_uploaded_action)
12587 (create_tracepoint_from_upload): Adjust to use
12588 gdb::unique_xmalloc_ptr.
12589 * ctf.c (ctf_write_uploaded_tp):
12590 (SET_ARRAY_FIELD): Use emplace_back.
12591 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12592 * tracefile-tfile.c (tfile_write_uploaded_tp):
12593 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12594 gdb::unique_xmalloc_ptr.
12595 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12596 at_string, cond_string, cmd_strings>: Replace char pointers
12597 with gdb::unique_xmalloc_ptr.
12598
2f667667
PA
125992019-01-10 Pedro Alves <palves@redhat.com>
12600
12601 * solib-target.c (library_list_start_library): Don't xstrdup name.
12602
36cb7237
PA
126032019-01-10 Pedro Alves <palves@redhat.com>
12604
12605 * mdebugread.c (parse_partial_symbols): Use
12606 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12607
da584958
AB
126082019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12609
12610 * linux-fork.c (scoped_switch_fork_info)
12611 <~scoped_switch_fork_info>: Fix incorrect variable name.
12612
1ef8573c
AB
126132019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12614
12615 * linux-fork.c (scoped_switch_fork_info)
12616 <scoped_switch_fork_info>: Make explicit.
12617 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12618
8d7bcccb
TT
126192019-01-10 Tom Tromey <tom@tromey.com>
12620
12621 * objfiles.h (objfile::reset_psymtabs): Update.
12622 * objfiles.c (objfile::objfile): Update.
12623 * psymtab.h (psymtab_storage::obstack): Update.
12624 (psymtab_storage::m_obstack): Use gdb::optional.
12625 (class psymtab_storage): Update comment. Remove objfile
12626 parameter.
12627 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12628
b596a3c7
TT
126292019-01-10 Tom Tromey <tom@tromey.com>
12630
12631 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12632 <free_psymtabs>: Now private.
12633 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12634 (allocate_psymtab): Use new method.
12635
a9342b62
TT
126362019-01-10 Tom Tromey <tom@tromey.com>
12637
12638 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12639 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12640 * mdebugread.c (parse_partial_symbols): Use
12641 allocate_dependencies.
12642 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12643 allocate_dependencies.
12644 (process_psymtab_comp_unit_reader)
12645 (build_type_psymtab_dependencies): Likewise.
12646 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12647
5af70966
TT
126482019-01-10 Tom Tromey <tom@tromey.com>
12649
12650 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12651 PSYMBOL_SET_LANGUAGE.
12652 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12653
5923a04c
TT
126542019-01-10 Tom Tromey <tom@tromey.com>
12655
12656 * psymtab.h (psymtab_storage::obstack): New method.
12657 <m_obstack>: Rename from obstack; now private.
12658 * psymtab.c (psymtab_storage): Update.
12659 * dwarf2read.c (create_addrmap_from_index)
12660 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12661 Update.
12662
6d6a12bf
TT
126632019-01-10 Tom Tromey <tom@tromey.com>
12664
12665 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12666 * objfiles.h (objfile::reset_psymtabs): New method.
12667
d320c2b5
TT
126682019-01-10 Tom Tromey <tom@tromey.com>
12669
12670 * symmisc.c (print_symbol_bcache_statistics): Update.
12671 (print_objfile_statistics): Update.
12672 * symfile.c (reread_symbols): Update.
12673 * psymtab.h (class psymtab_storage): New.
12674 * psymtab.c (psymtab_storage): New constructor.
12675 (~psymtab_storage): New destructor.
12676 (require_partial_symbols): Update.
12677 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12678 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12679 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12680 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12681 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12682 (start_psymtab_common, end_psymtab_common)
12683 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12684 (allocate_psymtab): Update.
12685 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12686 Update.
12687 (dump_psymtab_addrmap, maintenance_print_psymbols)
12688 (maintenance_check_psymtabs): Update.
12689 (class objfile_psymtabs): Move to objfiles.h.
12690 * psympriv.h (discard_psymtab): Now inline.
12691 (psymtab_discarder::psymtab_discarder): Update.
12692 (psymtab_discarder::~psymtab_discarder): Update.
12693 (ALL_OBJFILE_PSYMTABS): Rewrite.
12694 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12695 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12696 Remove fields.
12697 <partial_symtabs>: New field.
12698 (class objfile_psymtabs): Move from psymtab.h. Update.
12699 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12700 psymbol_cache.
12701 (objfile::~objfile): Don't destroy psymbol_cache.
12702 * mdebugread.c (parse_partial_symbols): Update.
12703 * dwarf2read.c (create_addrmap_from_index)
12704 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12705 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12706 (add_partial_subprogram, dwarf2_ranges_read): Update.
12707 * dwarf-index-write.c (write_address_map)
12708 (write_one_signatured_type, recursively_write_psymbols)
12709 (class debug_names, class debug_names, write_psymtabs_to_index):
12710 Update.
12711
1d94a5a3
TT
127122019-01-10 Tom Tromey <tom@tromey.com>
12713
12714 * symtab.h (SYMBOL_SET_NAMES): Update.
12715 (symbol_set_names): Update.
12716 (MSYMBOL_SET_NAMES): Update.
12717 * symtab.c (symbol_set_names): Change argument to be an
12718 objfile_per_bfd_storage.
12719 * psymtab.c (add_psymbol_to_bcache): Update.
12720 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12721
0f14768a
TT
127222019-01-10 Tom Tromey <tom@tromey.com>
12723
12724 * symtab.c (create_demangled_names_hash): Change argument to be an
12725 objfile_per_bfd_storage.
12726 (symbol_set_names): Update.
12727
6eee24ce
TT
127282019-01-10 Tom Tromey <tom@tromey.com>
12729
12730 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12731 init_psymbol_list.
12732 * psymtab.c (init_psymbol_list): Do nothing if already called.
12733 * psympriv.h (init_psymbol_list): Add comment.
12734 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12735 init_psymbol_list.
12736 * dbxread.c (dbx_symfile_read): Unconditionally call
12737 init_psymbol_list.
12738
75aedd27
TT
127392019-01-10 Tom Tromey <tom@tromey.com>
12740
12741 * xcoffread.c (scan_xcoff_symtab): Update.
12742 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12743 "where".
12744 * mdebugread.c (parse_partial_symbols)
12745 (handle_psymbol_enumerators): Update.
12746 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12747 * dbxread.c (read_dbx_symtab): Update.
12748 * psympriv.h (psymbol_placement): New enum.
12749 (add_psymbol_to_list): Update.
12750
939652a5
TT
127512019-01-10 Tom Tromey <tom@tromey.com>
12752
12753 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12754 static_psymbols parameters.
12755 (scan_xcoff_symtab): Update.
12756 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12757 static_psymbols parameters.
12758 * psympriv.h (start_psymtab_common): Update.
12759 * mdebugread.c (parse_partial_symbols): Update.
12760 * dwarf2read.c (create_partial_symtab): Update.
12761 * dbxread.c (read_dbx_symtab): Update.
12762 (start_psymtab): Remove global_psymbols and static_psymbols
12763 parameters.
12764
baa62830
TT
127652019-01-10 Tom Tromey <tom@tromey.com>
12766
12767 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12768 * psymtab.c (allocate_psymtab): Add comment.
12769 * psympriv.h (allocate_psymtab): Add comment.
12770 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12771 initializations.
12772 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12773
0e8f53ba
TT
127742019-01-10 Tom Tromey <tom@tromey.com>
12775
12776 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12777 Don't declare.
12778 * mipsread.c: Include mdebugread.h.
12779 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12780 Declare.
12781 * elfread.c: Include mdebugread.h.
12782
b22a7c6a
TT
127832019-01-09 Tom Tromey <tom@tromey.com>
12784
12785 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12786 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12787 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12788 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12789 (psym_lookup_symbol, psym_find_last_source_symtab)
12790 (psym_forget_cached_source_info, psym_print_stats)
12791 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12792 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12793 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12794 (psym_find_compunit_symtab_by_address)
12795 (maintenance_print_psymbols, maintenance_info_psymtabs)
12796 (maintenance_check_psymtabs): Use ranged for.
12797 * psymtab.h (class objfile_psymtabs): New.
12798 (require_partial_symbols): Return objfile_psymtabs.
12799 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12800
3b9d3ac2
TT
128012019-01-09 Tom Tromey <tom@tromey.com>
12802
12803 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12804 (find_pc_mapped_section, list_overlays_command)
12805 (map_overlay_command, unmap_overlay_command)
12806 (simple_overlay_update): Use all_objfiles.
12807 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12808 * printcmd.c (info_symbol_command): Use all_objfiles.
12809 * objfiles.h (ALL_OBJSECTIONS): Remove.
12810 * maint.c (maintenance_translate_address): Use all_objfiles.
12811 * gcore.c (gcore_create_callback): Use all_objfiles.
12812 (objfile_find_memory_regions): Likewise.
12813
8b31193a
TT
128142019-01-09 Tom Tromey <tom@tromey.com>
12815
12816 * symtab.c (find_line_symtab, info_sources_command)
12817 (make_source_files_completion_list): Use objfile_compunits.
12818 * source.c (select_source_symtab): Use objfile_compunits.
12819 * objfiles.h (struct objfile): Update comment.
12820 (ALL_OBJFILES): Remove.
12821 (ALL_FILETABS): Remove.
12822 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12823 objfile_compunits.
12824
d5da8b3c
TT
128252019-01-09 Tom Tromey <tom@tromey.com>
12826
12827 * symmisc.c (print_objfile_statistics, dump_objfile)
12828 (maintenance_print_symbols): Use compunit_filetabs.
12829 * source.c (forget_cached_source_info_for_objfile): Use
12830 compunit_filetabs.
12831 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12832 (ALL_FILETABS): Use compunit_filetabs.
12833 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12834 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12835
5accd1a0
TT
128362019-01-09 Tom Tromey <tom@tromey.com>
12837
12838 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12839 (compunit_filetabs): New.
12840 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12841 compunit_filetabs.
12842 (info_sources_command, make_source_files_completion_list): Remove
12843 declaration.
12844 * symmisc.c (print_objfile_statistics, dump_objfile)
12845 (maintenance_print_symbols): Remove declaration.
12846 (maintenance_info_symtabs): Use compunit_filetabs.
12847 (maintenance_info_line_tables): Likewise.
12848 * source.c (select_source_symtab): Change local variable name.
12849 (forget_cached_source_info_for_objfile): Remove declaration.
12850 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12851 * objfiles.c (objfile_relocate1): Remove declaration.
12852 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12853 declaration.
12854 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12855 * coffread.c (coff_symtab_read): Remove declaration.
12856 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12857 compunit_filetabs.
12858
d8aeb77f
TT
128592019-01-09 Tom Tromey <tom@tromey.com>
12860
12861 * symtab.c (lookup_objfile_from_block)
12862 (find_pc_sect_compunit_symtab, search_symbols)
12863 (default_collect_symbol_completion_matches_break_on): Use
12864 objfile_compunits.
12865 * objfiles.h (ALL_COMPUNITS): Remove.
12866 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12867 * cp-support.c (add_symbol_overload_list_qualified): Use
12868 objfile_compunits.
12869 * ada-lang.c (ada_collect_symbol_completion_matches)
12870 (ada_add_global_exceptions): Use objfile_compunits.
12871
592553c4
TT
128722019-01-09 Tom Tromey <tom@tromey.com>
12873
12874 * source.c (select_source_symtab)
12875 (forget_cached_source_info_for_objfile): Remove declaration.
12876 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12877 declaration.
12878 * maint.c (count_symtabs_and_blocks): Remove declaration.
12879 * cp-support.c (add_symbol_overload_list_qualified): Remove
12880 declaration.
12881 * coffread.c (coff_symtab_read): Remove declaration.
12882 * symtab.c (lookup_symbol_in_objfile_symtabs)
12883 (basic_lookup_transparent_type_1): Use objfile_compunits.
12884 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12885 (info_sources_command, search_symbols)
12886 (default_collect_symbol_completion_matches_break_on)
12887 (make_source_files_completion_list): Remove declaration.
12888 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12889 (ada_collect_symbol_completion_matches)
12890 (ada_add_global_exceptions): Remove declaration.
12891 * linespec.c (iterate_over_all_matching_symtabs): Use
12892 objfile_compunits.
12893 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12894 (class objfile_compunits): New.
12895 (ALL_COMPUNITS): Use objfile_compunits.
12896 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12897 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12898 objfile_compunits.
12899 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12900
5325b9bf
TT
129012019-01-09 Tom Tromey <tom@tromey.com>
12902
12903 * symtab.c (search_symbols)
12904 (default_collect_symbol_completion_matches_break_on): Use
12905 objfile_msymbols.
12906 * ada-lang.c (ada_lookup_simple_minsym)
12907 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12908 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12909 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12910 objfile_msymbols.
12911 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12912 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12913 * objc-lang.c (find_methods): Use objfile_msymbols.
12914 (info_selectors_command, info_classes_command): Likewise.
12915 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12916 * objfiles.h (class objfile_msymbols): New.
12917 (ALL_OBJFILE_MSYMBOLS): Remove.
12918 (ALL_MSYMBOLS): Remove.
12919
cac85af2
TT
129202019-01-09 Tom Tromey <tom@tromey.com>
12921
12922 * common/next-iterator.h (next_adapter): Add Iterator template
12923 parameter.
12924 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12925 (class all_objfiles_safe): New.
12926 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12927 * objfiles.c (put_objfile_before): Update comment.
12928 (add_separate_debug_objfile): Likewise.
12929 (free_all_objfiles): Use all_objfiles_safe.
12930 (objfile_purge_solibs): Likewise.
12931
aed57c53
TT
129322019-01-09 Tom Tromey <tom@tromey.com>
12933
12934 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12935 (expand_symtab_containing_pc, lookup_static_symbol)
12936 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12937 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12938 all_objfiles.
12939 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12940 * breakpoint.c (create_overlay_event_breakpoint)
12941 (create_longjmp_master_breakpoint)
12942 (create_std_terminate_master_breakpoint)
12943 (create_exception_master_breakpoint): Use all_objfiles.
12944 * linux-thread-db.c (try_thread_db_load_from_pdir)
12945 (has_libpthread): Use all_objfiles.
12946 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12947 * linespec.c (iterate_over_all_matching_symtabs)
12948 (search_minsyms_for_name): Use all_objfiles.
12949 * maint.c (maintenance_info_sections): Use all_objfiles.
12950 * main.c (captured_main_1): Use all_objfiles.
12951 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12952 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12953 * guile/scm-pretty-print.c
12954 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12955 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12956 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12957 (maintenance_print_msymbols): Use all_objfiles.
12958 * source.c (select_source_symtab): Use all_objfiles.
12959 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12960 * symfile.c (remove_symbol_file_command)
12961 (expand_symtabs_matching, map_symbol_filenames): Use
12962 all_objfiles.
12963 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12964 all_objfiles.
12965 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12966 * objc-lang.c (find_methods): Use all_objfiles.
12967 * objfiles.c (have_partial_symbols, have_full_symbols)
12968 (have_minimal_symbols, qsort_cmp)
12969 (default_iterate_over_objfiles_in_search_order): Use
12970 all_objfiles.
12971 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12972 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12973 (maintenance_check_psymtabs): Use all_objfiles.
12974 (ALL_PSYMTABS): Remove.
12975 * compile/compile-object-run.c (do_module_cleanup): Use
12976 all_objfiles.
12977 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12978 * cp-support.c (add_symbol_overload_list_qualified): Use
12979 all_objfiles.
12980 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12981 Use all_objfiles.
12982 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12983 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12984 all_objfiles.
12985 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12986 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12987 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12988 Uses all_objfiles.
12989 * solib.c (solib_read_symbols): Use all_objfiles
12990
99d89cde
TT
129912019-01-09 Tom Tromey <tom@tromey.com>
12992
12993 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12994 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12995 all_objfiles.
12996 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12997 * symmisc.c (print_symbol_bcache_statistics)
12998 (print_objfile_statistics, maintenance_print_objfiles)
12999 (maintenance_info_symtabs, maintenance_check_symtabs)
13000 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13001 all_objfiles.
13002 * source.c (forget_cached_source_info): Use all_objfiles.
13003 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13004 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13005 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13006 * objfiles.c (update_section_map): Use all_objfiles.
13007 (shared_objfile_contains_address_p): Likewise.
13008 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13009 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13010
21708325
TT
130112019-01-09 Tom Tromey <tom@tromey.com>
13012
13013 * common/next-iterator.h: New file.
13014 * objfiles.h (class all_objfiles): New.
13015 (struct objfile_iterator): New.
13016
669e09f6
PW
130172019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13018
13019 * NEWS: Move the description of the changed "frame", "select-frame",
13020 and "info frame" commands to the Changed commands section.
13021
041be526
SM
130222019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13023
13024 * gdbtypes.c (check_stub_method_group): Remove handling of old
13025 mangling schemes.
13026 * linespec.c (find_methods): Likewise.
13027 * stabsread.c (read_member_functions): Likewise.
13028 * valops.c (search_struct_method): Likewise.
13029 (value_struct_elt_for_reference): Likewise.
13030 * NEWS: Mention this change.
13031
0e2a2133
AB
130322019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13033
13034 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13035 print_source_lines.
13036 * source.c (print_source_lines_base): Update line number check.
13037 (print_source_lines): New function.
13038 (source_lines_range::source_lines_range): New function.
13039 * source.h (class source_lines_range): New class.
13040 (print_source_lines): New declaration.
13041
1055a3b4
PW
130422019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13043
13044 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13045
cfeadda5
TT
130462019-01-08 Tom Tromey <tom@tromey.com>
13047 Simon Marchi <simon.marchi@ericsson.com>
13048
13049 PR gdb/24060
13050 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13051 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13052 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13053 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13054 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13055 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13056
583068ca
AB
130572019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13058
13059 * source.c (select_source_symtab): Move header comment to
13060 declaration in source.h.
13061 (forget_cached_source_info_for_objfile): Likewise.
13062 (forget_cached_source_info): Likewise.
13063 (identify_source_line): Likewise.
13064 * source.h (identify_source_line): Move declaration from symtab.h
13065 and add comment from source.c
13066 (print_source_lines): Likewise.
13067 (forget_cached_source_info_for_objfile): Likewise.
13068 (forget_cached_source_info): Likewise.
13069 (select_source_symtab): Likewise.
13070 (enum print_source_lines_flag): Move definition from symtab.h.
13071 * symtab.h (identify_source_line): Move declaration to source.h.
13072 (print_source_lines): Likewise.
13073 (forget_cached_source_info_for_objfile): Likewise.
13074 (forget_cached_source_info): Likewise.
13075 (select_source_symtab): Likewise.
13076 (enum print_source_lines_flag): Move definition to source.h.
13077 * tui/tui-hooks.c: Add 'source.h' include.
13078
ec98a4ad
AB
130792019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13080
13081 * source.c (print_source_lines_base): Handle requests to print
13082 reverse line number sequences, and guard against empty lines
13083 string.
13084
62ea19c1
AB
130852019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13086
13087 * source.c (print_source_lines_base): Fix skip of '\r' if next
13088 character is '\n'.
13089
9d30e1fd
TT
130902019-01-06 Tom Tromey <tom@tromey.com>
13091
13092 * c-exp.y (struct c_parse_state) <macro_original_text,
13093 expansion_obstack>: New member.
13094 (macro_original_text, expansion_obstack): Remove globals.
13095 (scan_macro_expansion, scanning_macro_expansion)
13096 (finished_macro_expansion): Update.
13097 (scan_macro_cleanup): Remove.
13098 (yylex, c_parse): Update.
13099
c65bac38
TT
131002019-01-06 Tom Tromey <tom@tromey.com>
13101
13102 * c-exp.y (struct c_parse_state) <strings>: New member.
13103 (operator_stoken): Update.
13104
02e12e38
TT
131052019-01-06 Tom Tromey <tom@tromey.com>
13106
13107 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13108 (union type_stack_elt) <typelist_val>: Now a pointer to
13109 std::vector.
13110 (type_stack_cleanup): Don't declare.
13111 (push_typelist): Update.
13112 * parse.c (pop_typelist): Return a std::vector.
13113 (push_typelist): Take a std::vector.
13114 (follow_types): Update. Do not free args.
13115 (type_stack_cleanup): Remove.
13116 * c-exp.y (struct c_parse_state): New.
13117 (cpstate): New global.
13118 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13119 (nonempty_typelist): Update.
13120 (func_mod): Create a new vector.
13121 (c_parse): Create a c_parse_state.
13122 (check_parameter_typelist): Do not delete params.
13123 (function_method): Update. Do not delete type_list.
13124
f097f5ad
TT
131252019-01-06 Tom Tromey <tom@tromey.com>
13126
13127 PR gdb/28155:
13128 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13129 check_typedef.
13130 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13131 (print_return_value): Likewise.
13132
d2adf9f1
TT
131332019-01-05 Tom Tromey <tom@tromey.com>
13134
13135 * contrib/cleanup_check.py: Remove.
13136 * contrib/gcc-with-excheck: Remove.
13137 * contrib/exsummary.py: Remove.
13138 * contrib/excheck.py: Remove.
13139
2eab46b1
JB
131402019-01-05 Joel Brobecker <brobecker@adacore.com>
13141
13142 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13143 NULL. Initialize tpprev to NULL instead of assigning it
13144 to NULL on the next statement.
13145 * windows-nat.c (windows_delete_thread): Remove check for
13146 main_thread_id before printing thread exit notifications.
13147 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13148 Remove thread ID check against main_thread_id.
13149 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13150 windows_delete_thread.
13151 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13152
48c5e7e2
TT
131532019-01-04 Tom Tromey <tom@tromey.com>
13154
13155 * compile/compile.c (_initialize_compile): Use upper case for
13156 metasyntactic variables.
13157 * symmisc.c (_initialize_symmisc): Use upper case for
13158 metasyntactic variables.
13159 * psymtab.c (_initialize_psymtab): Use upper case for
13160 metasyntactic variables.
13161 * demangle.c (demangle_command): Use upper case for metasyntactic
13162 variables.
13163 (_initialize_demangler): Likewise.
13164 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13165 variables.
13166
986041cd
TT
131672019-01-03 Tom Tromey <tom@tromey.com>
13168
13169 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13170
7c711119
TT
131712019-01-03 Tom Tromey <tom@tromey.com>
13172
13173 * python/py-symtab.c (salpy_str): Update.
13174 (struct salpy_sal_object) <symtab>: Now a PyObject.
13175 (salpy_dealloc): Update.
13176 (del_objfile_sal): Use gdbpy_ref.
13177
1b20edf0
TT
131782019-01-03 Tom Tromey <tom@tromey.com>
13179
13180 * python/py-type.c (convert_field): Use new_reference. Return
13181 gdbpy_ref.
13182 (make_fielditem): Return gdbpy_ref.
13183 (typy_fields): Update.
13184 (typy_getitem): Update.
13185 (field_name): Return gdbpy_ref. Use new_reference.
13186 (typy_iterator_iternext): Update.
13187
ea41325b
TT
131882019-01-03 Tom Tromey <tom@tromey.com>
13189
13190 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13191
2a3c71d6
TT
131922019-01-03 Tom Tromey <tom@tromey.com>
13193
13194 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13195 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13196 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13197 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13198 (pspy_set_type_printers): Likewise.
13199 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13200 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13201 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13202 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13203 (objfpy_set_type_printers): Likewise.
13204
5c329e6a
TT
132052019-01-03 Tom Tromey <tom@tromey.com>
13206
13207 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13208 (gdbpy_print_stack): Use gdbpy_err_fetch.
13209 * python/python-internal.h (class gdbpy_err_fetch): New class.
13210 (class gdbpy_enter) <m_error_type, m_error_value,
13211 m_error_traceback>: Remove.
13212 <m_error>: New member.
13213 (gdbpy_exception_to_string): Don't declare.
13214 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13215 * python/py-value.c (convert_value_from_python): Use
13216 gdbpy_err_fetch.
13217 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13218 gdbpy_exception_to_string.
13219 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13220 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13221 gdbpy_err_fetch.
13222
169bb27b
AB
132232019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13224
13225 * linux-nat.c (delete_lwp_cleanup): Delete.
13226 (struct lwp_deleter): New struct.
13227 (lwp_info_up): New typedef.
13228 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13229 lwp_info_up.
13230
a07c8880
AB
132312019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13232
13233 * linux-fork.c (class scoped_switch_fork_info): New class.
13234 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13235
26089c49
AB
132362019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13237
13238 * valops.c (find_overload_match): Remove use of null_cleanup, and
13239 calls to do_cleanups.
13240
06d3e5b0
AB
132412019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13242
13243 * compile/compile-cplus-types.c
13244 (compile_cplus_instance::decl_name): Handle changes to
13245 cp_func_name.
13246 * cp-support.c (cp_func_name): Update header comment, update
13247 return type.
13248 * cp-support.h (cp_func_name): Update return type in declaration.
13249 * valops.c (find_overload_match): Move temp_func local to top
13250 level of function and change its type. Use temp_func to hold and
13251 delete temporary string obtained from cp_func_name.
13252
66644cd3
AB
132532019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13254
13255 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13256 gdb::char_vector, remove cleanup, and update uses of `msg`.
13257
592d8c0a
JW
132582019-01-03 Jim Wilson <jimw@sifive.com>
13259
13260 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13261
c55d06ec
TT
132622019-01-02 Tom Tromey <tom@tromey.com>
13263
13264 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13265 (tdesc_parse_xml): Remove cleanups.
13266 * target-descriptions.h (make_cleanup_free_target_description):
13267 Don't declare.
13268 (target_desc_deleter): New struct.
13269 (target_desc_up): New typedef.
13270 * target-descriptions.c (target_desc_deleter::operator()): Rename
13271 from free_target_description.
13272 (make_cleanup_free_target_description): Remove.
13273
3a6ae42d
TT
132742019-01-02 Tom Tromey <tom@tromey.com>
13275
13276 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
13277 constructor, destructor.
13278 (linespec_parser): Remove typedef.
13279 (~linespec_parser): Rename from linespec_parser_delete.
13280 (linespec_lex_to_end, linespec_complete_label)
13281 (linespec_complete): Update.
13282 (decode_line_full): Remove cleanups.
13283 (decode_line_1): Update.
13284
61fd3e73
TT
132852019-01-02 Tom Tromey <tom@tromey.com>
13286
13287 * python/python-internal.h (inferior_to_inferior_object): Change
13288 return type.
13289 * python/py-exitedevent.c (create_exited_event_object): Update.
13290 * python/py-inferior.c (inferior_to_inferior_object): Return
13291 gdbpy_ref.
13292 (python_new_inferior, python_inferior_deleted)
13293 (thread_to_thread_object, delete_thread_object)
13294 (build_inferior_list, gdbpy_selected_inferior): Update.
13295 * python/py-infthread.c (create_thread_object): Update. Also fail
13296 if inferior_to_inferior_object fails.
13297
d20172fc
SM
132982019-01-02 Simon Marchi <simon.marchi@ericsson.com>
13299
13300 * inferior.h (class inferior) <displaced_step_state>: New field.
13301 * infrun.h (struct displaced_step_state): Move here from
13302 infrun.c. Initialize fields, add constructor.
13303 <inf>: Remove field.
13304 <reset>: New method.
13305 * infrun.c (struct displaced_step_inferior_state): Move to
13306 infrun.h.
13307 (displaced_step_inferior_states): Remove.
13308 (get_displaced_stepping_state): Adust.
13309 (displaced_step_in_progress_any_inferior): Adjust.
13310 (displaced_step_in_progress_thread): Adjust.
13311 (displaced_step_in_progress): Adjust.
13312 (add_displaced_stepping_state): Remove.
13313 (get_displaced_step_closure_by_addr): Adjust.
13314 (remove_displaced_stepping_state): Remove.
13315 (infrun_inferior_exit): Call displaced_step_state.reset.
13316 (use_displaced_stepping): Don't check for NULL.
13317 (displaced_step_prepare_throw): Call
13318 get_displaced_stepping_state.
13319 (displaced_step_fixup): Don't check for NULL.
13320 (prepare_for_detach): Don't check for NULL.
13321
e3319240
PW
133222019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13323
13324 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13325 in case of call that did not complete.
13326
5d36dfb9
AU
133272019-01-02 Andrey Utkin <autkin@undo.io>
13328
13329 * symfile.c (find_separate_debug_file): Fix search of debug files for
13330 remote debuggee.
13331
8833fbf0
TT
133322019-01-02 Tom Tromey <tom@tromey.com>
13333
13334 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13335 indentation.
13336 * python/py-frame.c (frapy_older): Remove cast.
13337 (frapy_newer): Likewise.
13338 * python/py-breakpoint.c (local_setattro): Remove cast.
13339 * python/py-arch.c (archpy_name): Remove local variable.
13340 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13341
4ada3dfd
JB
133422019-01-02 Joel Brobecker <brobecker@adacore.com>
13343
13344 * unittests/basic_string_view/element_access/char/empty.cc:
13345 Fix year range in copyright header.
13346
113b7b81
AB
133472019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13348
13349 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13350 Delete.
13351 <operator==>: Update with for removed field.
13352 <hash>: Likewise.
13353 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13354 <isa_features>: ...this.
13355 <abi_features>: New field.
13356 (riscv_isa_flen): Update comment.
13357 (riscv_abi_xlen): New declaration.
13358 (riscv_abi_flen): New declaration.
13359 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13360 isa_features.
13361 (riscv_abi_xlen): New function.
13362 (riscv_isa_flen): Update to get answer from isa_features.
13363 (riscv_abi_flen): New function.
13364 (riscv_has_fp_abi): Update to get answer from abi_features.
13365 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13366 xlen and flen.
13367 (riscv_call_info) <xlen, flen>: Update comment.
13368 (riscv_call_arg_struct): Remove invalid assertions
13369 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13370 is removed.
13371 (riscv_gdbarch_init): Gather isa features and abi features
13372 separately, ensure both match on the gdbarch when reusing an old
13373 gdbarch. Relax an error check to allow 32-bit abi float to run on
13374 a target with 64-bit float hardware.
13375
b18ca514
PW
133762019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13377
13378 * source.c (search_command_helper): Stop reverse search
13379 when line 1 has been searched.
13380
ec70d8db
PW
133812019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13382
13383 * record-full.c (record_full_base_target::close): Rewrite
13384 record_full_core_buf_list free logic.
13385
5b38f9c1
PW
133862019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13387
13388 * break-catch-syscall.c (print_one_catch_syscall): xfree
13389 the last text.
13390
66d91b39
JB
133912019-01-01 Joel Brobecker <brobecker@adacore.com>
13392
13393 * top.c (print_gdb_version): Update Copyright year in version
13394 message.
13395
42a4f53d
JB
133962019-01-01 Joel Brobecker <brobecker@adacore.com>
13397
13398 Update copyright year range in all GDB files.
13399
7e955d83 134002019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 13401
5bbd631d 13402 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 13403
5bbd631d 13404For older changes see ChangeLog-2018.
c906108c
SS
13405\f
13406Local Variables:
13407mode: change-log
13408left-margin: 8
13409fill-column: 74
13410version-control: never
57da7796 13411coding: utf-8
c906108c 13412End:
5bbd631d 13413
This page took 3.302365 seconds and 4 git commands to generate.