gdb: Remove a use of VEC from dwarf2read.{c,h}
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
df07e2c7
AB
12019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
4 std::vector.
5 (build_type_psymtabs_reader): Update for std::vector.
6 (build_type_psymtab_dependencies): Likewise.
7 * dwarf2read.h: Remove use of DEF_VEC_P.
8 (typedef sig_type_ptr): Delete.
9
554ac434
AB
102019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
11
12 * btrace.c (btrace_maint_clear): Update to handle change from VEC
13 to std::vector.
14 (btrace_maint_decode_pt): Likewise, and move allocation of the
15 vector outside of the loop.
16 (btrace_maint_update_packets): Update to handle change from VEC to
17 std::vector.
18 (btrace_maint_print_packets): Likewise.
19 (maint_info_btrace_cmd): Likewise.
20 * btrace.h: Remove use of DEF_VEC_O.
21 (typedef btrace_pt_packet_s): Delete.
22 (struct btrace_maint_info) <packets>: Change fromm VEC to
23 std::vector.
24 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
25
46f29a9a
AB
262019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
27
28 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
29 make accesses into the vector constant references.
30 (btrace_add_pc): Update for std::vector.
31 (btrace_stitch_bts): Likewise.
32 (parse_xml_btrace_block): Likewise.
33 (btrace_maint_update_packets): Likewise.
34 (btrace_maint_print_packets): Likewise.
35 (maint_info_btrace_cmd): Likewise.
36 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
37 std::vector.
38 (btrace_data::empty): Likewise.
39 (btrace_data_append): Likewise.
40 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
41 (typedef btrace_block_s): Delete.
42 (struct btrace_block): Add constructor.
43 (struct btrace_data_bts) <blocks>: Change to std::vector.
44 * nat/linux-btrace.c (perf_event_read_bts): Update for
45 std::vector.
46 (linux_read_bts): Likewise.
47
d770d56f
TT
482019-10-01 Tom Tromey <tom@tromey.com>
49
50 * cli/cli-logging.c (show_logging_filename): Use styled_string.
51
9d636d67
TT
522019-10-01 Tom Tromey <tom@tromey.com>
53
54 * stack.c (print_frame, info_frame_command_core): Use
55 styled_string.
56 * linux-thread-db.c (try_thread_db_load_1)
57 (try_thread_db_load_from_pdir_1): Use styled_string.
58 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
59 (auto_load_section_scripts, info_auto_load_local_gdbinit)
60 (maybe_print_unsupported_script_warning)
61 (maybe_print_script_not_found_warning): Use styled_string.
62 * ada-lang.c (user_select_syms): Use styled_string.
63
7f6aba03
TT
642019-10-01 Tom Tromey <tom@tromey.com>
65
66 * p-lang.c (pascal_printstr): Use metadata style.
67 * value.c (show_convenience): Use metadata style.
68 * valprint.c (valprint_check_validity, val_print_optimized_out)
69 (val_print_not_saved, val_print_unavailable)
70 (val_print_invalid_address, generic_val_print, val_print)
71 (value_check_printable, val_print_array_elements): Use metadata
72 style.
73 * ui-out.h (class ui_out) <field_fmt>: New overload.
74 <do_field_fmt>: Add style parameter.
75 * ui-out.c (ui_out::field_fmt): New overload.
76 * typeprint.c (type_print_unknown_return_type)
77 (val_print_not_allocated, val_print_not_associated): Use metadata
78 style.
79 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
80 parameter.
81 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
82 * tracepoint.c (tvariables_info_1): Use metadata style.
83 * stack.c (print_frame_arg, print_frame_info, print_frame)
84 (info_frame_command_core): Use metadata style.
85 * skip.c (info_skip_command): Use metadata style.
86 * rust-lang.c (rust_print_enum): Use metadata style.
87 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
88 metadata style.
89 * python/py-framefilter.c (py_print_single_arg): Use metadata
90 style.
91 * printcmd.c (do_one_display, print_variable_and_value): Use
92 metadata style.
93 * p-valprint.c (pascal_val_print)
94 (pascal_object_print_value_fields): Use metadata style.
95 * p-typeprint.c (pascal_type_print_base): Use metadata style.
96 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
97 parameter.
98 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
99 * m2-valprint.c (m2_print_long_set): Use metadata style.
100 * m2-typeprint.c (m2_print_type): Use metadata style.
101 * infcmd.c (print_return_value_1): Use metadata style.
102 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
103 * f-valprint.c (info_common_command_for_block): Use metadata
104 style.
105 * f-typeprint.c (f_type_print_base): Use metadata style.
106 * expprint.c (print_subexp_standard): Use metadata style.
107 * cp-valprint.c (cp_print_value_fields): Use metadata style.
108 * cli/cli-style.h (class cli_style_option): Add constructor.
109 (metadata_style): Declare.
110 * cli/cli-style.c (metadata_style): New global.
111 (_initialize_cli_style): Register metadata style.
112 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
113 parameter.
114 * cli-out.c (cli_ui_out::do_field_fmt): Update.
115 * c-typeprint.c (c_type_print_base_struct_union)
116 (c_type_print_base_1): Use metadata style.
117 * breakpoint.c (watchpoint_value_print)
118 (print_one_breakpoint_location): Use metadata style.
119 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
120 style.
121 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
122 style.
123 * ada-valprint.c (val_print_packed_array_elements, printstr)
124 (print_field_values, ada_val_print_ref, ada_val_print): Use
125 metadata style.
126 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
127 style.
128 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
129 style.
130 * ada-lang.c (user_select_syms): Use metadata style.
131
14309bb6
TT
1322019-10-01 Tom Tromey <tom@tromey.com>
133
134 * cli/cli-cmds.c (pwd_command): Style output.
135
6a831f06
PA
1362019-10-01 Pedro Alves <palves@redhat.com>
137 Tom Tromey <tom@tromey.com>
138
139 * symtab.c (print_symbol_info): Use %ps.
140 (print_msymbol_info): Use %ps.
141 * symfile.c (symbol_file_add_with_addrs): Use %ps.
142 * printcmd.c (print_variable_and_value): Use %ps.
143 * macrocmd.c (show_pp_source_pos): Use %ps.
144 * infrun.c (print_exited_reason): Use ui_out::message.
145 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
146 (describe_other_breakpoints): Use ui_out::message and new
147 formats.
148 (say_where): Use new formats.
149 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
150 and new formats.
151
2a3c1174
PA
1522019-10-01 Pedro Alves <palves@redhat.com>
153 Tom Tromey <tom@tromey.com>
154
155 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
156 (test_gdb_formats): New function.
157 (run_tests): Call it.
158 (test_format_specifier): Update.
159 * utils.h (fputs_filtered): Update comment.
160 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
161 (fputs_styled_unfiltered): Declare.
162 * utils.c (fputs_styled_unfiltered): New function.
163 (vfprintf_maybe_filtered): Add gdbfmt parameter.
164 (vfprintf_filtered): Update.
165 (vfprintf_unfiltered, vprintf_filtered): Update.
166 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
167 * ui-out.h (enum ui_out_flag) <unfiltered_output,
168 disallow_ui_out_field>: New constants.
169 (enum class field_kind): New.
170 (struct base_field_s, struct signed_field_s): New.
171 (signed_field): New function.
172 (struct string_field_s): New.
173 (string_field): New function.
174 (struct styled_string_s): New.
175 (styled_string): New function.
176 (class ui_out) <message>: Add comment.
177 <vmessage, call_do_message>: New methods.
178 <do_message>: Add style parameter.
179 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
180 methods.
181 (ui_out::message): Rewrite.
182 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
183 parameter.
184 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
185 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
186 gdb_extensions parameter.
187 (class format_piece): Add parameter to constructor.
188 (n_int_args): New field.
189 * gdbsupport/format.c (format_pieces::format_pieces): Add
190 gdb_extensions parameter. Handle '*'.
191 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
192 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
193 vfprintf_styled_no_gdbfmt.
194 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
195 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
196 unfiltered output.
197 * ui-style.h (struct ui_file_style) <ptr>: New method.
198
0dfe5bfb
TT
1992019-10-01 Tom Tromey <tom@tromey.com>
200
201 * unittests/format_pieces-selftests.c: Update. Add final format.
202 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
203 empty literal pieces.
204
e43b10e1
TT
2052019-10-01 Tom Tromey <tom@tromey.com>
206
207 * ui-out.h (enum class ui_out_style_kind): Remove.
208 (class ui_out) <field_string, field_stsream, do_field_string>:
209 Change type of "style".
210 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
211 (ui_out::field_string): Update.
212 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
213 of "style".
214 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
215 * tracepoint.c (print_one_static_tracepoint_marker): Update.
216 * stack.c (print_frame_arg, print_frame_info, print_frame):
217 Update.
218 * source.c (print_source_lines_base): Update.
219 * solib.c (info_sharedlibrary_command): Update.
220 * skip.c (info_skip_command): Update.
221 * record-btrace.c (btrace_call_history_src_line)
222 (btrace_call_history): Update.
223 * python/py-framefilter.c (py_print_frame): Update.
224 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
225 "style".
226 * mi/mi-out.c (mi_ui_out::do_table_header)
227 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
228 (mi_ui_out::do_field_string): Update.
229 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
230 Update.
231 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
232 "style".
233 * cli-out.c (cli_ui_out::do_table_header)
234 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
235 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
236 (cli_ui_out::do_field_fmt): Update.
237 * breakpoint.c (print_breakpoint_location): Update.
238 (update_static_tracepoint): Update.
239
cd7c32c3
PW
2402019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
241
242 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
243 conversion of gdb_datadir.
244 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
245 remove not needed c_str ().
246
8fe0f950
AT
2472019-09-30 Ali Tamur <tamur@google.com>
248
249 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
250 (dwarf2_string_attr): Likewise.
251
5f48f8f3
AT
2522019-09-30 Ali Tamur <tamur@google.com>
253
254 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
255 (process_full_type_unit): Likewise.
256 (dump_die_shallow): Likewise.
257 (cu_debug_loc_section): Likewise.
258
6fb08628
CB
2592019-09-28 Christian Biesinger <cbiesinger@google.com>
260
261 * minsyms.c (compare_minimal_symbols): Rename to...
262 (minimal_symbol_is_less_than): ...this, and adjust to STL
263 conventions (return bool, take arguments as references)
264 (minimal_symbol_reader::install): Call std::sort instead
265 of qsort.
266
c7ee338a
CB
2672019-09-29 Christian Biesinger <cbiesinger@google.com>
268
269 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
270 hash and why.
271 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
272 msymbol_hash, msymbol_demangled_hash>: Improve comments.
273
703a86c2
SM
2742019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
275
276 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
277 * psympriv.h (add_psymbol_to_list): Move comment here and update
278 it.
279
0df0352a
TV
2802019-09-29 Tom de Vries <tdevries@suse.de>
281
282 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
283 Use $tmpdir/$(basename "$output_file").dwz instead of
284 "${output_file}.dwz".
285
ad75efa6
SM
2862019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
287
288 PR gdb/25045
289 * hppa-linux-nat.c: Include gdbarch.h.
290
ececd218
CB
2912019-09-26 Christian Biesinger <cbiesinger@google.com>
292
293 * blockframe.c (find_pc_partial_function): Change return type to bool.
294 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
295 * minsyms.c (in_gnu_ifunc_stub): Likewise.
296 (stub_gnu_ifunc_resolve_name): Likewise.
297 * symtab.c (compare_filenames_for_search): Likewise.
298 (compare_glob_filenames_for_search): Likewise.
299 (matching_obj_sections): Likewise.
300 (symbol_matches_domain): Likewise.
301 (find_line_symtab): Change out param EXACT_MATCH to bool *.
302 (find_line_pc): Change return type to bool.
303 (find_line_pc_range): Likewise.
304 (producer_is_realview): Likewise.
305 * symtab.h (symbol_matches_domain): Likewise.
306 (find_pc_partial_function): Likewise.
307 (find_pc_line_pc_range): Likewise.
308 (in_gnu_ifunc_stub): Likewise.
309 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
310 (find_line_pc): Likewise.
311 (find_line_pc_range): Likewise.
312 (matching_obj_sections): Likewise.
313 (find_line_symtab): Change out parameter to bool.
314 (producer_is_realview): Change return type to bool.
315 (compare_filenames_for_search): Likewise.
316 (compare_glob_filenames_for_search): Likewise.
317
27a900b8
TT
3182019-09-26 Tom Tromey <tom@tromey.com>
319
320 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
321 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
322 * gdb_usleep.h: Remove.
323 * gdb_usleep.c: Remove.
324 * utils.c: Don't include gdb_usleep.h.
325
5d63b30a
TT
3262019-09-26 Tom Tromey <tromey@adacore.com>
327
328 * python/py-type.c (type_to_type_object): Call check_typedef
329 for stub types.
330
12904d37
TT
3312019-09-26 Tom Tromey <tom@tromey.com>
332
333 * utils.h (initialize_utils): Don't declare.
334 * top.c (gdb_init): Don't call initialize_utils.
335 * utils.c (initialize_utils): Remove. Move contents...
336 (_initialize_utils): ... here.
337
858f25f0
TT
3382019-09-25 Tom Tromey <tom@tromey.com>
339
340 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
341 * utils.h (make_hex_string): Don't declare.
342 * utils.c (make_hex_string): Remove.
343
3d435220
TV
3442019-09-24 Tom de Vries <tdevries@suse.de>
345
346 PR gdb/23815
347 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
348 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
349
ddd44b70
DD
3502019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
351
352 * NEWS: Mention new simulator port for PRU.
353
f945dedf
CB
3542019-09-23 Christian Biesinger <cbiesinger@google.com>
355
356 * ada-exp.y (write_object_remaining): Update.
357 * ada-lang.c (ada_decode): Return a std::string instead of a char*
358 and eliminate the static buffer.
359 (ada_decode_symbol): Update.
360 (ada_la_decode): Update.
361 (ada_sniff_from_mangled_name): Update.
362 (is_valid_name_for_wild_match): Update.
363 (ada_lookup_name_info::matches): Update and simplify.
364 (name_matches_regex): Update.
365 (ada_add_global_exceptions): Update.
366 * ada-lang.h (ada_decode): Update signature.
367 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
368 * dwarf-index-write.c (debug_names::insert): Update.
369
7ab78ccb
SM
3702019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
371
372 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
373 formatting.
374
9252448b
SM
3752019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
376
377 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
378 Change "nonzero" to "true" in documentation.
379
626ca2c0
CB
3802019-09-20 Christian Biesinger <cbiesinger@google.com>
381
382 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
383 (_initialize_darwin_solib): Don't set
384 darwin_so_ops.lookup_lib_global_symbol.
385 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
386 set_gdbarch_iterate_over_objfiles_in_search_order.
387 (elf_lookup_lib_symbol): Rename to...
388 (svr4_iterate_over_objfiles_in_search_order): this, and update
389 to iterate semantics.
390 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
391 * solib.c (solib_global_lookup): Remove.
392 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
393 (solib_global_lookup): Remove.
394 * symtab.c (lookup_global_or_static_symbol): Remove call to
395 solib_global_lookup.
396
5a3a0d63
JB
3972019-09-20 Joel Brobecker <brobecker@adacore.com>
398
399 * NEWS: Move entries about default MI version now being
400 version 3, and about the GDB/MI fix for multi-location
401 breakpoints to the "since GDB 8.3" section.
402
ffea1427
JB
4032019-09-20 Joel Brobecker <brobecker@adacore.com>
404
405 GDB 8.3.1 released.
406
abf516c6
UW
4072019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
408
409 * NEWS: Mention that Cell/B.E. debugging support was removed.
410 * MAINTAINERS: Remove spu target.
411
412 * config/djgpp/fnchange.lst: Remove entries for removed files.
413
414 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
415 spu-multiarch.o, and spu-tdep.o.
416 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
417 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
418 spu-multiarch.c, and spu-tdep.c.
419 * spu-linux-nat.c: Remove file.
420 * spu-multiarch.c: Remove file.
421 * spu-tdep.c: Remove file.
422 * spu-tdep.h: Remove file.
423 * solib-spu.c: Remove file.
424 * solib-spu.h: Remove file.
425
426 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
427 * configure.nat (spu-linux): Remove.
428 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
429 solib-multiarch.o from gdb_target_obs.
430 (spu*-*-*): Remove.
431
432 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
433 feature flag.
434 (ppc_linux_no_features): Update.
435 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
436 Cell/B.E. support.
437 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
438 (tdesc_powerpc_cell64l): Likewise.
439 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
440 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
441 Cell/B.E. support.
442 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
443 Do not include "features/rs6000/powerpc-cell32l.c" or
444 "features/rs6000/powerpc-cell64l.c".
445 (ppc_linux_spu_section): Remove.
446 (ppc_linux_core_read_description): Remove Cell/B.E. support.
447 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
448 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
449 (ppc_linux_spe_context_lookup): Remove.
450 (ppc_linux_spe_context_inferior_created): Remove.
451 (ppc_linux_spe_context_solib_loaded): Remove.
452 (ppc_linux_spe_context_solib_unloaded): Remove.
453 (ppc_linux_spe_context): Remove.
454 (struct ppu2spu_cache): Remove.
455 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
456 (struct ppu2spu_data): Remove.
457 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
458 ppu2spu_unwind): Remove.
459 (ppc_linux_init_abi): Remove Cell/B.E. support.
460 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
461
462 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
463 (rs6000/powerpc-cell64l-expedite): Likewise
464 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
465 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
466 rs6000/powerpc-cell64l.xml.
467 * features/rs6000/powerpc-cell32l.xml: Remove.
468 * features/rs6000/powerpc-cell64l.xml: Likewise.
469 * features/rs6000/powerpc-cell32l.c: Remove generated file.
470 * features/rs6000/powerpc-cell64l.c: Likewise.
471 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
472 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
473 * regformats/reg-spu.dat: Remove.
474
475 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
476 * corelow.c (struct spuid_list): Remove.
477 (add_to_spuid_list): Remove.
478 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
479 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
480 (remote_protocol_features): Remove associated entries.
481 (_initialize_remote): No longer initialize them.
482 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
483 * linux-nat.c (SPUFS_MAGIC): Remove.
484 (linux_proc_xfer_spu): Remove.
485 (spu_enumerate_spu_ids): Remove.
486 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
487 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
488 (linux_make_corefile_notes): No longer call it.
489
490 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
491 (cooked_write_test): Likewise.
492
78e8cb91
TT
4932019-09-20 Tom Tromey <tom@tromey.com>
494
495 * NEWS: Mention case-sensitivity of TUI commands.
496 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
497 (tui_set_win_height_command, parse_scrolling_args): Likewise.
498 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
499
f074b67e
TT
5002019-09-20 Tom Tromey <tom@tromey.com>
501
502 * tui/tui-source.c (tui_source_window::set_contents): Use
503 make_unique_xstrdup.
504 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
505 make_unique_xstrdup.
506
63c4bf19
TT
5072019-09-20 Tom Tromey <tom@tromey.com>
508
509 * tui/tui-data.c: Remove separator comments.
510 * tui/tui-layout.c: Remove separator comments.
511 * tui/tui-win.c: Remove separator comments.
512 * tui/tui-wingeneral.c: Remove separator comments.
513
43df9b2f
TT
5142019-09-20 Tom Tromey <tom@tromey.com>
515
516 * tui/tui.h (strcat_to_buf): Don't declare.
517 * tui/tui.c (strcat_to_buf): Remove.
518
7226433c
TT
5192019-09-20 Tom Tromey <tom@tromey.com>
520
521 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
522 from "fullname".
523 * tui/tui-source.c (tui_source_window::set_contents)
524 (tui_source_window::location_matches_p)
525 (tui_source_window::maybe_update): Update.
526
80df3337
TT
5272019-09-20 Tom Tromey <tom@tromey.com>
528
529 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
530 Update.
531 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
532 prefix.
533 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
534 (tui_data_window::line_from_reg_element_no)
535 (tui_data_window::first_reg_element_no_inline)
536 (tui_data_window::show_registers)
537 (tui_data_window::show_register_group)
538 (tui_data_window::display_registers_from)
539 (tui_data_window::display_registers_from_line)
540 (tui_data_window::first_data_item_displayed)
541 (tui_data_window::delete_data_content_windows)
542 (tui_data_window::erase_data_content)
543 (tui_data_window::do_scroll_vertical)
544 (tui_data_window::refresh_window)
545 (tui_data_window::check_register_values): Update.
546
9923f347
TT
5472019-09-20 Tom Tromey <tom@tromey.com>
548
549 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
550 (struct tui_locator_window) <full_name, proc_name>: Now
551 std::string.
552 * tui/tui-stack.c (tui_locator_window::make_status_line)
553 (tui_locator_window::set_locator_fullname)
554 (tui_locator_window::set_locator_info): Update.
555 * tui/tui-source.c (tui_source_window::set_contents)
556 (tui_source_window::showing_source_p): Update.
557
b76251ab
TT
5582019-09-20 Tom Tromey <tom@tromey.com>
559
560 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
561 Don't call tui_locator_win_info_ptr.
562
0891be08
TT
5632019-09-20 Tom Tromey <tom@tromey.com>
564
565 * tui/tui-win.c (tui_resize_all): Don't call refresh.
566
1b935acf
TT
5672019-09-20 Tom Tromey <tom@tromey.com>
568
569 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
570 height for locator.
571 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
572 * tui/tui-layout.c (show_source_disasm_command, show_data)
573 (show_source_or_disasm_and_command): Use 1 as height for locator.
574
9abd8a65
TT
5752019-09-20 Tom Tromey <tom@tromey.com>
576
577 * tui/tui.c (tui_enable): Update.
578 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
579 Update.
580 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
581 Update.
582 * tui/tui-data.c (win_resized): Now bool.
583 (tui_win_resized): Return bool.
584 (tui_set_win_resized_to): Accept a bool.
585
b5457826
TT
5862019-09-20 Tom Tromey <tom@tromey.com>
587
588 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
589 Change type of "refresh_values_only".
590 * tui/tui-regs.c (tui_data_window::show_register_group): Change
591 type of "refresh_values_only".
592
6b915f7d
TT
5932019-09-20 Tom Tromey <tom@tromey.com>
594
595 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
596 std::string.
597 (tui_disassemble): Add "pos" parameter.
598 (tui_disasm_window::set_contents): Simplify.
599
2ad52f6f
TT
6002019-09-20 Tom Tromey <tom@tromey.com>
601
602 * tui/tui-winsource.h (struct tui_source_window_base)
603 <show_source_content>: Now private.
604 * tui/tui-winsource.c
605 (tui_source_window_base::show_source_content): Don't handle empty
606 content case.
607
b3b1bde6
TT
6082019-09-20 Tom Tromey <tom@tromey.com>
609
610 * tui/tui-layout.c (show_source_disasm_command)
611 (show_source_or_disasm_and_command): Don't call
612 show_source_content.
613
71a25ed2
TT
6142019-09-20 Tom Tromey <tom@tromey.com>
615
616 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
617 Declare.
618 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
619 from tui_make_status_line.
620 (tui_locator_window::rerender): Update.
621
f8532154
TT
6222019-09-20 Tom Tromey <tom@tromey.com>
623
624 * tui/tui-stack.c (tui_make_status_line): Return std::string.
625 (tui_locator_window::rerender): Update.
626
2d81b349
TT
6272019-09-20 Tom Tromey <tom@tromey.com>
628
629 * tui/tui-winsource.h (struct tui_source_window_base)
630 <~tui_source_window_base>: Don't declare.
631 <fullname>: Remove.
632 * tui/tui-winsource.c (~tui_source_window_base): Remove.
633 * tui/tui-source.h (struct tui_source_window) <fullname>: New
634 member.
635 * tui/tui-source.c (tui_source_window::set_contents): Update.
636 (tui_source_window::location_matches_p)
637 (tui_source_window::maybe_update): Update.
638
f14bec58
TT
6392019-09-20 Tom Tromey <tom@tromey.com>
640
641 * tui/tui-winsource.h (~tui_source_element): Remove.
642 (tui_source_element): Update.
643 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
644 * tui/tui-winsource.c (tui_show_source_line): Update.
645 * tui/tui-source.c (tui_source_window::set_contents): Update.
646 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
647
78d5933a
TT
6482019-09-20 Tom Tromey <tom@tromey.com>
649
650 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
651 declare.
652 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
653 tui_clear_source_windows_detail.
654 * tui/tui-winsource.h (struct tui_source_window_base)
655 <clear_detail>: Don't declare.
656 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
657 Remove.
658 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
659
d4207696
TT
6602019-09-20 Tom Tromey <tromey@adacore.com>
661
662 PR ada/24919:
663 * block.c (contained_in): Fix final return value.
664
00f93c44
AM
6652019-09-20 Alan Modra <amodra@gmail.com>
666
667 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
668 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
669 (read_indirect_string_from_dwz): Use bfd accessor.
670 * dwarf2read.h (struct dwz_file <filename>): Likewise.
671 * machoread.c (macho_symfile_read_all_oso): Likewise.
672 * solib.c (solib_bfd_open): Likewise.
673
e4153ae6
CB
6742019-09-19 Christian Biesinger <cbiesinger@google.com>
675
676 * eval.c: Move declaration of overload_resolution to...
677 * value.h: ...here.
678
c7ae7675
CB
6792019-09-19 Christian Biesinger <cbiesinger@google.com>
680
681 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
682 * arm-linux-tdep.c: Likewise.
683 * arm-nbsd-nat.c: Likewise.
684 * arm-tdep.h: Declare arm_apcs_32.
685 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
686
e86f08d2
CB
6872019-09-19 Christian Biesinger <cbiesinger@google.com>
688
689 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
690 * dwarf2read.h: Declare dwarf_always_disassemble.
691
f64e2f40
TV
6922019-09-19 Tom de Vries <tdevries@suse.de>
693
694 PR gdb/25009
695 * source-cache.c (source_cache::ensure): Catch exception thrown during
696 construction of the highlighter.
697
fd361982
AM
6982019-09-18 Alan Modra <amodra@gmail.com>
699
700 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
701 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
702 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
703 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
704 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
705 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
706 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
707 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
708 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
709 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
710 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
711 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
712 * solib-spu.c, * solib-svr4.c, * solib-target.c,
713 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
714 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
715 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
716 * mi/mi-interp.c: Update throughout for bfd section macro and
717 function changes.
718 * gcore (gcore_create_callback): Use bfd_set_section_lma.
719 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
720
11061048
TT
7212019-09-18 Tom Tromey <tom@tromey.com>
722
723 * NEWS: Add entry.
724 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
725 call rl_initialize.
726 (tui_enable): Do not call rl_initialize.
727
7a27b85f
CG
7282019-09-18 Christian Groessler <chris@groessler.org>
729
730 * alpha-linux-nat.c: Include gdbarch.h.
731
f64eea3a
SM
7322019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
733
734 * ui-file.c: Include cli/cli-style.h.
735 (term_cli_styling): Remove cli_styling declaration.
736
e6f7f6d1
AM
7372019-09-18 Alan Modra <amodra@gmail.com>
738
739 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
740 to bfd_asymbol_section.
741
1d38e9d1
AM
7422019-09-18 Alan Modra <amodra@gmail.com>
743
744 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
745 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
746 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
747
90d92a63
AM
7482019-09-18 Alan Modra <amodra@gmail.com>
749
750 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
751 * spu-linux-nat.c (spu_bfd_open): Likewise.
752
a3d181d2
CB
7532019-09-18 Christian Biesinger <cbiesinger@google.com>
754
755 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
756 to bool to match definition in dwarf2read.c.
757
491144b5
CB
7582019-09-17 Christian Biesinger <cbiesinger@google.com>
759
760 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
761 (print_signatures): Likewise.
762 (trust_pad_over_xvs): Likewise.
763 * arch/aarch64-insn.c (aarch64_debug): Likewise.
764 * arch/aarch64-insn.h (aarch64_debug): Likewise.
765 * arm-linux-nat.c (arm_apcs_32): Likewise.
766 * arm-linux-tdep.c (arm_apcs_32): Likewise.
767 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
768 * arm-tdep.c (arm_debug): Likewise.
769 (arm_apcs_32): Likewise.
770 * auto-load.c (debug_auto_load): Likewise.
771 (auto_load_gdb_scripts): Likewise.
772 (global_auto_load): Likewise.
773 (auto_load_local_gdbinit): Likewise.
774 (auto_load_local_gdbinit_loaded): Likewise.
775 * auto-load.h (global_auto_load): Likewise.
776 (auto_load_local_gdbinit): Likewise.
777 (auto_load_local_gdbinit_loaded): Likewise.
778 * breakpoint.c (disconnected_dprintf): Likewise.
779 (breakpoint_proceeded): Likewise.
780 (automatic_hardware_breakpoints): Likewise.
781 (always_inserted_mode): Likewise.
782 (target_exact_watchpoints): Likewise.
783 (_initialize_breakpoint): Update.
784 * breakpoint.h (target_exact_watchpoints): Change to bool.
785 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
786 * cli/cli-cmds.c (trace_commands): Likewise.
787 * cli/cli-cmds.h (trace_commands): Likewise.
788 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
789 to bool*.
790 * cli/cli-logging.c (logging_overwrite): Change to bool.
791 (logging_redirect): Likewise.
792 (debug_redirect): Likewise.
793 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
794 (struct boolean_option_def) <get_var_address_cb_>: Change return type
795 to bool.
796 <boolean_option_def>: Update.
797 (struct flag_option_def): Change default type of Context to bool
798 from int.
799 <flag_option_def>: Change return type of var_address_cb_ to bool*.
800 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
801 (get_setshow_command_value_string): Likewise.
802 * cli/cli-style.c (cli_styling): Change to bool.
803 (source_styling): Likewise.
804 * cli/cli-style.h (source_styling): Likewise.
805 (cli_styling): Likewise.
806 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
807 to bool.
808 * command.h (var_types): Update comment.
809 (add_setshow_boolean_cmd): Change int* var argument to bool*.
810 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
811 bool.
812 (debug_compile_cplus_scopes): Likewise.
813 * compile/compile-internal.h (compile_debug): Likewise.
814 * compile/compile.c (compile_debug): Likewise.
815 (struct compile_options) <raw>: Likewise.
816 * cp-support.c (catch_demangler_crashes): Likewise.
817 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
818 (usr_cmd_cris_dwarf2_cfi): Likewise.
819 * csky-tdep.c (csky_debug): Likewise.
820 * darwin-nat.c (enable_mach_exceptions): Likewise.
821 * dcache.c (dcache_enabled_p): Likewise.
822 * defs.h (info_verbose): Likewise.
823 * demangle.c (demangle): Likewise.
824 (asm_demangle): Likewise.
825 * dwarf-index-cache.c (debug_index_cache): Likewise.
826 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
827 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
828 * dwarf2read.c (check_physname): Likewise.
829 (use_deprecated_index_sections): Likewise.
830 (dwarf_always_disassemble): Likewise.
831 * eval.c (overload_resolution): Likewise.
832 * event-top.c (set_editing_cmd_var): Likewise.
833 (exec_done_display_p): Likewise.
834 * event-top.h (set_editing_cmd_var): Likewise.
835 (exec_done_display_p): Likewise.
836 * exec.c (write_files): Likewise.
837 * fbsd-nat.c (debug_fbsd_lwp): Likewise
838 (debug_fbsd_nat): Likewise.
839 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
840 Likewise.
841 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
842 <backtrace_past_entry> Likewise.
843 * gdb-demangle.h (demangle): Likewise.
844 (asm_demangle): Likewise.
845 * gdb_bfd.c (bfd_sharing): Likewise.
846 * gdbcore.h (write_files): Likewise.
847 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
848 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
849 * gdbthread.h (print_thread_events): Likewise.
850 * gdbtypes.c (opaque_type_resolution): Likewise.
851 (strict_type_checking): Likewise.
852 * gnu-nat.c (gnu_debug_flag): Likewise.
853 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
854 * guile/scm-param.c (pascm_variable): Add boolval.
855 (add_setshow_generic): Update.
856 (pascm_param_value): Update.
857 (pascm_set_param_value_x): Update.
858 * hppa-tdep.c (hppa_debug): Change to bool..
859 * infcall.c (may_call_functions_p): Likewise.
860 (coerce_float_to_double_p): Likewise.
861 (unwind_on_signal_p): Likewise.
862 (unwind_on_terminating_exception_p): Likewise.
863 * infcmd.c (startup_with_shell): Likewise.
864 * inferior.c (print_inferior_events): Likewise.
865 * inferior.h (startup_with_shell): Likewise.
866 (print_inferior_events): Likewise.
867 * infrun.c (step_stop_if_no_debug): Likewise.
868 (detach_fork): Likewise.
869 (debug_displaced): Likewise.
870 (disable_randomization): Likewise.
871 (non_stop): Likewise.
872 (non_stop_1): Likewise.
873 (observer_mode): Likewise.
874 (observer_mode_1): Likewise.
875 (set_observer_mode): Update.
876 (sched_multi): Change to bool.
877 * infrun.h (debug_displaced): Likewise.
878 (sched_multi): Likewise.
879 (step_stop_if_no_debug): Likewise.
880 (non_stop): Likewise.
881 (disable_randomization): Likewise.
882 * linux-tdep.c (use_coredump_filter): Likewise.
883 (dump_excluded_mappings): Likewise.
884 * linux-thread-db.c (auto_load_thread_db): Likewise.
885 (check_thread_db_on_load): Likewise.
886 * main.c (captured_main_1): Update.
887 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
888 xx2_opt, boolean_opt>: Change to bool.
889 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
890 * maint.c (maintenance_profile_p): Likewise.
891 (per_command_time): Likewise.
892 (per_command_space): Likewise.
893 (per_command_symtab): Likewise.
894 * memattr.c (inaccessible_by_default): Likewise.
895 * mi/mi-main.c (mi_async): Likewise.
896 (mi_async_1): Likewise.
897 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
898 * nat/fork-inferior.h (startup_with_shell): Likewise.
899 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
900 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
901 * nios2-tdep.c (nios2_debug): Likewise.
902 * or1k-tdep.c (or1k_debug): Likewise.
903 * parse.c (parser_debug): Likewise.
904 * parser-defs.h (parser_debug): Likewise.
905 * printcmd.c (print_symbol_filename): Likewise.
906 * proc-api.c (procfs_trace): Likewise.
907 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
908 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
909 (set_parameter_value): Update.
910 (add_setshow_generic): Update.
911 * python/py-value.c (copy_py_bool_obj): Change argument from int*
912 to bool*.
913 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
914 int*.
915 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
916 * record-btrace.c (record_btrace_target::store_registers): Update.
917 * record-full.c (record_full_memory_query): Change to bool.
918 (record_full_stop_at_limit): Likewise.
919 * record-full.h (record_full_memory_query): Likewise.
920 * remote-notif.c (notif_debug): Likewise.
921 * remote-notif.h (notif_debug): Likewise.
922 * remote.c (use_range_stepping): Likewise.
923 (interrupt_on_connect): Likewise.
924 (remote_break): Likewise.
925 * ser-tcp.c (tcp_auto_retry): Likewise.
926 * ser-unix.c (serial_hwflow): Likewise.
927 * skip.c (debug_skip): Likewise.
928 * solib-aix.c (solib_aix_debug): Likewise.
929 * spu-tdep.c (spu_stop_on_load_p): Likewise.
930 (spu_auto_flush_cache_p): Likewise.
931 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
932 Likewise.
933 (struct info_print_options) <quiet>: Likewise.
934 * symfile-debug.c (debug_symfile): Likewise.
935 * symfile.c (auto_solib_add): Likewise.
936 (separate_debug_file_debug): Likewise.
937 * symfile.h (auto_solib_add): Likewise.
938 (separate_debug_file_debug): Likewise.
939 * symtab.c (basenames_may_differ): Likewise.
940 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
941 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
942 (struct info_types_options) <quiet>: Likewise.
943 * symtab.h (demangle): Likewise.
944 (basenames_may_differ): Likewise.
945 * target-dcache.c (stack_cache_enabled_1): Likewise.
946 (code_cache_enabled_1): Likewise.
947 * target.c (trust_readonly): Likewise.
948 (may_write_registers): Likewise.
949 (may_write_memory): Likewise.
950 (may_insert_breakpoints): Likewise.
951 (may_insert_tracepoints): Likewise.
952 (may_insert_fast_tracepoints): Likewise.
953 (may_stop): Likewise.
954 (auto_connect_native_target): Likewise.
955 (target_stop_and_wait): Update.
956 (target_async_permitted): Change to bool.
957 (target_async_permitted_1): Likewise.
958 (may_write_registers_1): Likewise.
959 (may_write_memory_1): Likewise.
960 (may_insert_breakpoints_1): Likewise.
961 (may_insert_tracepoints_1): Likewise.
962 (may_insert_fast_tracepoints_1): Likewise.
963 (may_stop_1): Likewise.
964 * target.h (target_async_permitted): Likewise.
965 (may_write_registers): Likewise.
966 (may_write_memory): Likewise.
967 (may_insert_breakpoints): Likewise.
968 (may_insert_tracepoints): Likewise.
969 (may_insert_fast_tracepoints): Likewise.
970 (may_stop): Likewise.
971 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
972 (make_thread_apply_all_options_def_group): Change argument from int*
973 to bool*.
974 (thread_apply_all_command): Update.
975 (print_thread_events): Change to bool.
976 * top.c (confirm): Likewise.
977 (command_editing_p): Likewise.
978 (history_expansion_p): Likewise.
979 (write_history_p): Likewise.
980 (info_verbose): Likewise.
981 * top.h (confirm): Likewise.
982 (history_expansion_p): Likewise.
983 * tracepoint.c (disconnected_tracing): Likewise.
984 (circular_trace_buffer): Likewise.
985 * typeprint.c (print_methods): Likewise.
986 (print_typedefs): Likewise.
987 * utils.c (debug_timestamp): Likewise.
988 (sevenbit_strings): Likewise.
989 (pagination_enabled): Likewise.
990 * utils.h (sevenbit_strings): Likewise.
991 (pagination_enabled): Likewise.
992 * valops.c (overload_resolution): Likewise.
993 * valprint.h (struct value_print_options) <prettyformat_arrays,
994 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
995 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
996 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
997 Likewise.
998 * windows-nat.c (new_console): Likewise.
999 (cygwin_exceptions): Likewise.
1000 (new_group): Likewise.
1001 (debug_exec): Likewise.
1002 (debug_events): Likewise.
1003 (debug_memory): Likewise.
1004 (debug_exceptions): Likewise.
1005 (useshell): Likewise.
1006 * windows-tdep.c (maint_display_all_tib): Likewise.
1007 * xml-support.c (debug_xml): Likewise.
1008
f1b620e9
MG
10092019-09-17 Mike Gulick <mgulick@mathworks.com>
1010
1011 * source.c (prepare_path_for_appending): New function.
1012 (openp): Make use of new function.
1013 (find_and_open_source): Search for the compilation directory and
1014 source file as a relative path beneath the directory search path.
1015
67f3ed6a
AB
10162019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1017
1018 * source-cache.c (source_cache::get_line_charpos): Catch
1019 exceptions and return false, this matches the behaviour documented
1020 in the header file.
1021
74332189
JB
10222019-09-17 Joel Brobecker <brobecker@adacore.com>
1023
1024 * ada-tasks.c (info_task): Remove quoting of the task's name.
1025
f2f24aa9
CB
10262019-09-16 Christian Biesinger <cbiesinger@google.com>
1027
1028 * symfile.c (auto_solib_add): Replace comment with a reference
1029 to the header file.
1030
6a062a93
CB
10312019-09-14 Christian Biesinger <cbiesinger@google.com>
1032
1033 * NEWS: Mention that gdb can now be compiled with Python 3
1034 on Windows.
1035
ec6c8338
AB
10362019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1037
1038 * maint.c (maint_print_section_data::maint_print_section_data):
1039 Force use of 'float log10 (float)' by casting the argument to
1040 float.
1041
aa17805f
AB
10422019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1043
1044 * maint.c: Add 'cmath' include.
1045 (struct maint_print_section_data): New structure.
1046 (print_section_index): New function.
1047 (print_bfd_section_info): Add header comment, small whitespace
1048 cleanup, and update to call new print_section_index function.
1049 (print_objfile_section_info): Likewise.
1050 (maint_obj_section_from_bfd_section): New function.
1051 (print_bfd_section_info_maybe_relocated): New function.
1052 (maintenance_info_sections): Add header comment, always use
1053 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1054
3dd9bb46
AB
10552019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1056
1057 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1058 inner scope, add check that the objfile has psymtabs before
1059 checking psymtabs_addrmap.
1060 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1061
4993045d
PW
10622019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1063
1064 * NEWS: Announce that Ada task names are now shown at more places,
1065 and between quotes (except in info task output).
1066 * gdb/ada-tasks.c (task_to_str): New function.
1067 (display_current_task_id): Call task_to_str.
1068 (task_command_1): Likewise.
1069 (print_ada_task_info): In non-mi mode, Properly align headers and data
1070 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1071
7a289707
RO
10722019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1073
1074 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1075 prstatus.pr_lwp.pr_info instead of making it up.
1076
f2aec7f6
CB
10772019-09-11 Christian Biesinger <cbiesinger@google.com>
1078
1079 * auto-load.c (auto_load_expand_dir_vars): Update.
1080 * defs.h (gdb_datadir): Change to std::string.
1081 (python_libdir): Likewise.
1082 (relocate_gdb_directory): Change return type to std::string.
1083 * guile/guile.c (gdbscm_data_directory): Update.
1084 (initialize_scheme_side): Update.
1085 * jit.c (jit_reader_dir): Change to std::string.
1086 (jit_reader_load_command): Update.
1087 * main.c (gdb_datadir): Change to std::string.
1088 (python_libdir): Likewise.
1089 (set_gdb_data_directory): Update.
1090 (relocate_path): Change to return std::string.
1091 (relocate_gdb_directory): Change to return std::string.
1092 (relocate_gdbinit_path_maybe_in_datadir): Update.
1093 (captured_main_1): Update.
1094 * python/python.c (do_start_initialization): Update.
1095 * top.c (show_gdb_datadir): Update.
1096 * xml-syscall.c (xml_init_syscalls_info): Update.
1097 (init_syscalls_info): Update.
1098
9224a013
CB
10992019-09-11 Christian Biesinger <cbiesinger@google.com>
1100
1101 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1102 out of get_init_files.
1103 (get_init_files): Update.
1104
f48cd836
CB
11052019-09-11 Christian Biesinger <cbiesinger@google.com>
1106
1107 * main.c (get_init_files): Change to use std::string.
1108 (captured_main_1): Update.
1109 (print_gdb_help): Update.
1110
9cab7ecd
AT
11112019-09-11 Ali Tamur <tamur@google.com>
1112
1113 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1114 implementation.
1115
67547d89
CB
11162019-09-11 Christian Biesinger <cbiesinger@google.com>
1117
1118 * dbxread.c (read_dbx_symtab): Update.
1119 * dwarf2read.c (load_partial_dies): Update.
1120 * mdebugread.c (parse_partial_symbols): Update.
1121 (handle_psymbol_enumerators): Update.
1122 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1123 * psymtab.c (add_psymbol_to_bcache): Likewise.
1124 (add_psymbol_to_list): Likewise.
1125 * symtab.c (symbol_set_names): Likewise.
1126 * symtab.h (symbol_set_names): Likewise.
1127 * xcoffread.c (scan_xcoff_symtab): Update.
1128
64b2d4a0
TT
11292019-09-11 Tom Tromey <tom@tromey.com>
1130
1131 * symfile-mem.c (symbol_file_add_from_memory): Use
1132 bfd_set_filename.
1133 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1134 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1135
3b00ef10
TT
11362019-09-10 Tom Tromey <tromey@adacore.com>
1137
1138 * dwarf-index-write.c (write_psymbols): Extend error message.
1139 (debug_names::insert): Add Ada code.
1140 (debug_names::write_psymbols): Remove Ada check.
1141 (debug_names) <m_string_obstack>: New member.
1142 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1143 (gdb_index_symbol_name_matcher::matches): Remove.
1144 (mapped_index_base::find_name_components_bounds): Add "lang"
1145 parameter.
1146 (mapped_index_base::build_name_components): Also split names
1147 according to Ada syntax.
1148 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1149 type of "match_callback".
1150 (check_match, check_find_bounds_finds)
1151 (dw2_expand_symtabs_matching): Update.
1152 (dw2_debug_names_iterator): Add new constructor.
1153 (dw2_debug_names_map_matching_symbols): New function.
1154 (dw2_debug_names_expand_symtabs_matching): Update.
1155 (dwarf2_debug_names_functions): Use
1156 dw2_debug_names_map_matching_symbols.
1157
aa391654
TT
11582019-09-10 Tom Tromey <tromey@adacore.com>
1159
1160 * dwarf2read.c (dw2_get_file_names_reader): Add the
1161 CU's file name to the results.
1162
b054970d
TT
11632019-09-10 Tom Tromey <tromey@adacore.com>
1164
1165 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1166 map_matching_symbols. Update.
1167 * dwarf2read.c (dw2_map_matching_symbols): Update.
1168 * psymtab.c (match_partial_symbol): Change type; update.
1169 (psym_map_matching_symbols): Likewise.
1170 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1171 type; update.
1172 * symfile.h (struct quick_symbol_functions)
1173 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1174 Remove "match".
1175
6a3dbf1b
TT
11762019-09-10 Tom Tromey <tromey@adacore.com>
1177
1178 * psymtab.c (map_block): Remove.
1179 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1180 * symtab.c (iterate_over_symbols_terminated): New function.
1181 * symtab.c (iterate_over_symbols_terminated): Declare.
1182
6969f124
TT
11832019-09-10 Tom Tromey <tromey@adacore.com>
1184
1185 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1186 * language.h (struct language_defn) <la_iterate_over_symbols>:
1187 Return bool.
1188 * symtab.c (iterate_over_symbols): Return bool.
1189 * symtab.h (iterate_over_symbols): Return bool.
1190
199b4314
TT
11912019-09-10 Tom Tromey <tromey@adacore.com>
1192
1193 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1194 (add_nonlocal_symbols): Update.
1195 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1196 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1197 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1198 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1199 Change type of "callback". Remove "data".
1200
a084a2a6
AT
1201
12022019-09-09 Ali Tamur <tamur@google.com>
1203
1204 * dwarf2read.c (comp_unit_head): Update comment.
1205 (dwarf2_dwo_name): New function declaration.
1206 (dwarf_unit_type_name): New function declaration.
1207 (read_comp_unit_head): Add support for new compilation units,
1208 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
1209 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
1210 (currently named as "signature") in their header. Also clarify error
1211 messages.
1212 (lookup_dwo_id): New function. Returns the dwo id of the given
1213 compile unit.
1214 (lookup_dwo_unit): Use the new lookup_dwo_id function.
1215 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
1216 functions.
1217 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
1218 (dwarf2_dwo_name): Get the dwo name if present.
1219 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
1220 purposes.
1221
25a2915e
TT
12222019-09-09 Tom Tromey <tom@tromey.com>
1223
1224 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1225
e4df0874
PW
12262019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1227
1228 * python/python.c (do_start_initialization): Make progname_copy static,
1229 to avoid a leak report.
1230
8634b462
TT
12312019-09-08 Tom Tromey <tom@tromey.com>
1232
1233 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1234
c7f839cb
SM
12352019-09-07 Simon Marchi <simon.marchi@efficios.com>
1236
1237 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1238 Change type to gdb::optional<block_enum>.
1239 (dw2_symtab_iter_init): Change block_index parameter type
1240 to gdb::optional<block_enum>.
1241 (dw2_lookup_symbol): Change block_index parameter
1242 type to block_enum.c
1243 (dw2_debug_names_lookup_symbol): Likewise.
1244 * psymtab.c (psym_lookup_symbol): Likewise.
1245 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1246 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1247 Likewise.
1248
ead0e69a
CB
12492019-09-06 Christian Biesinger <cbiesinger@google.com>
1250
1251 * defs.h (relocate_gdb_directory): Change int to bool in
1252 signature and rename flag to relocatable.
1253 * main.c (relocate_path): Likewise.
1254 (relocate_gdb_directory): Likewise.
1255
b16c44de
AM
12562019-09-06 Alan Modra <amodra@gmail.com>
1257
1258 * coffread.c (coff_symfile_read): Constify filename variable.
1259 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
1260 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
1261 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
1262 * solib.c (reload_shared_libraries_1): Likewise.
1263 * symfile.c (reread_symbols): Likewise.
1264 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
1265 * solib-darwin.c (darwin_bfd_open): Likewise.
1266 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1267
06ff036e
AB
12682019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1269
1270 * psymtab.c (print_partial_symbols): Handle missing domain_enum
1271 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
1272
4e962e74
TT
12732019-09-03 Tom Tromey <tromey@adacore.com>
1274
1275 * ada-valprint.c (ada_val_print_num): Don't recurse for range
1276 types.
1277 (has_negatives): Unbias a range type bound.
1278 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
1279 * gdbtypes.c (operator==): Handle new field.
1280 (create_range_type): Add "bias" parameter.
1281 (create_static_range_type, resolve_dynamic_range): Update.
1282 * gdbtypes.h (struct range_bounds) <bias>: New member.
1283 (create_range_type): Add bias parameter.
1284 * printcmd.c (print_scalar_formatted): Unbias range types.
1285 * value.c (unpack_long): Unbias range types.
1286 (pack_long): Bias range types.
1287
d90b8f26
AH
12882019-09-02 Alan Hayward <alan.hayward@arm.com>
1289
1290 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
1291 probe arguments.
1292
fe01123e
AH
12932019-09-02 Alan Hayward <alan.hayward@arm.com>
1294
1295 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
1296 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
1297 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
1298 (compile_probe_arg): Likewise.
1299 * probe.h (get_argument_count): Likewise.
1300 * solib-svr4.c (solib_event_probe_action): Likewise.
1301 * stap-probe.c (stap_probe::get_argument_count): Likewise.
1302
e661ef01
AH
13032019-09-02 Alan Hayward <alan.hayward@arm.com>
1304
1305 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
1306 code to here...
1307 (svr4_create_solib_event_breakpoints): ...from here.
1308
47a536d9
SDJ
13092019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
1310
1311 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
1312 suffix from warning message.
1313
d6a00eba
TT
13142019-08-30 Tom Tromey <tom@tromey.com>
1315
1316 * tui/tui-winsource.h (struct tui_source_window_base)
1317 <refresh_all>: Don't declare.
1318 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1319 Remove.
1320 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1321 tui_show_locator_content.
1322 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1323 declare.
1324 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1325 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1326 declare.
1327
55b2657b
TT
13282019-08-30 Tom Tromey <tom@tromey.com>
1329
1330 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1331
12a8555a
TT
13322019-08-30 Tom Tromey <tom@tromey.com>
1333
1334 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1335 Remove unnecessary forward declarations.
1336
900ac242
TT
13372019-08-30 Tom Tromey <tom@tromey.com>
1338
1339 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1340 rerender.
1341 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1342 tui_show_locator_content.
1343
99ab33fb
TT
13442019-08-30 Tom Tromey <tom@tromey.com>
1345
1346 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1347 (tui_locator_window::rerender): Rewrite using body of previous
1348 tui_show_locator_content.
1349
e594a5d1
TT
13502019-08-30 Tom Tromey <tom@tromey.com>
1351
1352 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1353 set_locator_fullname>: New methods.
1354 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1355 Rename from tui_set_locator_fullname.
1356 (tui_locator_window::set_locator_info): Rename from
1357 tui_set_locator_info. Return bool.
1358 (tui_update_locator_fullname, tui_show_frame_info): Update.
1359
715bb467
TT
13602019-08-30 Tom Tromey <tom@tromey.com>
1361
1362 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1363
772f3f03
TT
13642019-08-30 Tom Tromey <tom@tromey.com>
1365
1366 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1367 call touchwin.
1368
108e13ab
TT
13692019-08-30 Tom Tromey <tom@tromey.com>
1370
1371 * tui/tui-wingeneral.c (box_win): Assume win_info and
1372 win_info->handle cannot be NULL.
1373
cdaa6eb4
TT
13742019-08-30 Tom Tromey <tom@tromey.com>
1375
1376 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1377 refresh_window>: Declare.
1378 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1379 resize.
1380 (tui_data_item_window::rerender): Rename from
1381 tui_display_register.
1382 (tui_data_item_window::refresh_window): New method.
1383 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1384 no-op.
1385
89df7f90
TT
13862019-08-30 Tom Tromey <tom@tromey.com>
1387
1388 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1389 regs_column_count, current_group>: Move later. Now private.
1390 <get_current_group>: New method.
1391 * tui/tui-regs.c (tui_reg_command): Update.
1392 * tui/tui-layout.c (tui_set_layout): Update.
1393
1bf2866a
TT
13942019-08-30 Tom Tromey <tom@tromey.com>
1395
1396 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1397 (tui_data_window::rerender): Don't call
1398 check_and_display_highlight_if_needed.
1399 (tui_data_window::refresh_all): Remove call to
1400 erase_data_content.
1401
0670413d
TT
14022019-08-30 Tom Tromey <tom@tromey.com>
1403
1404 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1405 (tui_data_window::display_registers_from)
1406 (tui_data_window::display_reg_element_at_line)
1407 (tui_data_window::display_registers_from_line): Remove checks of
1408 "empty".
1409
18bb55c7
TT
14102019-08-30 Tom Tromey <tom@tromey.com>
1411
1412 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1413 Don't declare.
1414 * tui/tui-regs.c (tui_data_window::show_registers): Call
1415 rerender.
1416 (tui_data_window::rerender): Rename from display_all_data.
1417 (tui_data_window::rerender): Remove old implementation.
1418
1f6d2f10
TT
14192019-08-30 Tom Tromey <tom@tromey.com>
1420
1421 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1422 text.
1423 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1424
16d01f9c
BW
14252019-08-29 Bernhard Wodok <barto@gmx.net>
1426 Sergio Durigan Junior <sergiodj@redhat.com>
1427
1428 PR win32/24284
1429 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1430
d8f27c60
AB
14312019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1432
1433 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1434 when searching for types.
1435
1f20c35e
AB
14362019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1437
1438 * f-lang.c (f_language_defn): Use f_print_typedef.
1439 * f-lang.h (f_print_typedef): Declare.
1440 * f-typeprint.c (f_print_typedef): Define.
1441
550105b7
CB
14422019-08-27 Christian Biesinger <cbiesinger@google.com>
1443
1444 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1445
4acfdd20
AB
14462019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1447
1448 * cli/cli-utils.c (info_print_options_defs): Delete.
1449 (make_info_print_options_def_group): Delete.
1450 (extract_info_print_options): Delete.
1451 (info_print_command_completer): Delete.
1452 (info_print_args_help): Add extra parameter, and optionally
1453 include text about -n flag.
1454 * cli/cli-utils.h (struct info_print_options): Delete.
1455 (extract_info_print_options): Delete declaration.
1456 (info_print_command_completer): Delete declaration.
1457 (info_print_args_help): Add extra parameter, extend header
1458 comment.
1459 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1460 search_symbols.
1461 * stack.c (struct info_print_options): New type.
1462 (info_print_options_defs): New file scoped variable.
1463 (make_info_print_options_def_group): New static function.
1464 (info_print_command_completer): New static function.
1465 (info_locals_command): Update to use new local functions.
1466 (info_args_command): Likewise.
1467 (_initialize_stack): Add extra parameter to calls to
1468 info_print_args_help.
1469 * symtab.c (search_symbols): Add extra parameter, use this to
1470 possibly excluse non-debug symbols.
1471 (symtab_symbol_info): Add extra parameter, which is passed on to
1472 search_symbols.
1473 (struct info_print_options): New type.
1474 (info_print_options_defs): New file scoped variable.
1475 (make_info_print_options_def_group): New static function.
1476 (info_print_command_completer): New static function.
1477 (info_variables_command): Update to use local functions, and pass
1478 extra parameter through to symtab_symbol_info.
1479 (info_functions_command): Likewise.
1480 (info_types_command): Pass additional argument through to
1481 symtab_symbol_info.
1482 (rbreak_command): Pass extra argument to search_symbols.
1483 (_initialize_symtab): Add extra arguments for calls to
1484 info_print_args_help, and update help text for 'info variables',
1485 'whereis', and 'info functions' commands.
1486 * symtab.h (search_symbols): Add extra argument to declaration.
1487 * NEWS: Mention new flags.
1488
9aa55206
CB
14892019-08-26 Christian Biesinger <cbiesinger@google.com>
1490
1491 * symtab.c (lookup_static_symbol): Call the new function (and move
1492 it down to be next to lookup_global_symbol).
1493 (struct global_sym_lookup_data): Add block_enum member and rename to...
1494 (struct global_or_static_sym_lookup_data): ...this.
1495 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1496 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1497 (lookup_symbol_global_or_static_iterator_cb): ...this.
1498 (lookup_global_or_static_symbol): New function.
1499 (lookup_global_symbol): Call new function.
1500
5c31b358
TV
15012019-08-26 Tom de Vries <tdevries@suse.de>
1502
1503 PR c++/24852
1504 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1505 when pc_probe.prob == NULL.
1506
23c13d42
SM
15072019-08-25 Simon Marchi <simon.marchi@efficios.com>
1508
1509 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1510 variable symbol_linkage to symbol_linkage_.
1511
beadd3e8
SM
15122019-08-25 Simon Marchi <simon.marchi@efficios.com>
1513
1514 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1515 represent whether the symbol is static, dynamic, or we don't
1516 know.
1517
e3ec872f
YS
15182019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1519
1520 * gdb/rx-tdep.c (rx_register_names): New.
1521 (rx_register_name): Delete.
1522 (rx_psw_type): Delete.
1523 (rx_fpsw_type): Delete.
1524 (rx_register_type): Delete.
1525 (rx_gdbarch_init): Convert target-descriptions.
1526 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1527 * gdb/features/Makefile: Add rx.xml.
1528 * gdb/features/rx.xml: New.
1529 * gdb/features/rx.c: Generated.
1530 * gdb/NEWS: Mention target description support.
1531
d0509ba4
CB
15322019-08-22 Christian Biesinger <cbiesinger@google.com>
1533
1534 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1535 *slot_ptr.
1536
2d41fa11
SDJ
15372019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1538
1539 * configure.ac: Don't check for 'dlfcn.h' (moved to
1540 gdbsupport/common.m4).
1541 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1542 'gdbsupport/'.
1543 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1544 * compile/compile-c-support.c: Include
1545 'gdbsupport/gdb-dlfcn.h'.
1546 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1547 * gdb-dlfcn.c: Move to...
1548 * gdbsupport/gdb-dlfcn.c: ... here.
1549 * gdb-dlfcn.h: Move to...
1550 * gdbsupport/gdb-dlfcn.h: ... here.
1551
de8af808
SL
15522019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1553
1554 * nios2-tdep.c (struct reg_value): Improve comments. Make
1555 the offset field signed.
1556
27204489
CB
15572019-08-22 Christian Biesinger <cbiesinger@google.com>
1558
1559 * python/lib/gdb/__init__.py (_execute_file): New function.
1560 * python/python.c (python_run_simple_file): Call gdb._execute_file
1561 on Windows.
1562
43771869
AB
15632019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1564
1565 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1566 all uses as this was never set to anything but a zero value.
1567
26c957f1
PA
15682019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1569
1570 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1571
c07aae6e
CB
15722019-08-21 Christian Biesinger <cbiesinger@google.com>
1573
1574 * tui/tui-data.h (tui_gen_win_info): Add an =default
1575 move constructor, required by some GCC versions.
1576
3960cb7a
JF
15772019-08-21 Jinke Fan <fanjinke51@yeah.net>
1578
1579 * go32-nat.c (go32_sysinfo): Add hygon_p.
1580
04c72a68
TT
15812019-08-20 Tom Tromey <tom@tromey.com>
1582
1583 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1584 line_from_reg_element_no, first_reg_element_no_inline,
1585 display_all_data, delete_data_content_windows,
1586 erase_data_content>: Now private.
1587
072272ce
TT
15882019-08-20 Tom Tromey <tom@tromey.com>
1589
1590 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1591 (tui_unhighlight_win, tui_highlight_win)
1592 (tui_win_info::make_window): Update.
1593 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1594
973961bd
TT
15952019-08-20 Tom Tromey <tom@tromey.com>
1596
1597 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1598 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1599 (MAX_PID_WIDTH): Move to tui-stack.c.
1600 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1601 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1602 (MAX_PID_WIDTH): Move from tui-data.h.
1603
ab0e1f1a
TT
16042019-08-20 Tom Tromey <tom@tromey.com>
1605
1606 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1607 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1608 (box_win): Update.
1609 (tui_gen_win_info::make_window): Rename from tui_make_window.
1610 (tui_win_info::make_window): New method.
1611 (tui_gen_win_info::make_visible): Update.
1612 * tui/tui-source.c (tui_source_window::set_contents): Update.
1613 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1614 (tui_data_window::display_registers_from): Update.
1615 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1616 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1617 Declare.
1618 <can_box>: Remove.
1619 <title>: Remove.
1620 (struct tui_win_info) <make_window>: Declare.
1621 <can_box>: Now virtual.
1622 <title>: New member.
1623 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1624 * tui/tui-command.c (tui_cmd_window::resize): Update.
1625
100c2bf3
TT
16262019-08-20 Tom Tromey <tom@tromey.com>
1627
1628 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1629 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1630 (tui_data_window::check_register_values): Update.
1631
fa4dc567
TT
16322019-08-20 Tom Tromey <tom@tromey.com>
1633
1634 * tui/tui-regs.h (struct tui_data_window): Use
1635 DISABLE_COPY_AND_ASSIGN.
1636 <regs_content>: Change type, removing unique_ptr.
1637 <tui_data_window>: Add move constructor.
1638 * tui/tui-regs.c (tui_data_window::show_registers)
1639 (tui_data_window::show_register_group)
1640 (tui_data_window::display_registers_from)
1641 (tui_data_window::display_registers_from)
1642 (tui_data_window::first_data_item_displayed)
1643 (tui_data_window::delete_data_content_windows)
1644 (tui_data_window::rerender, tui_data_window::refresh_window)
1645 (tui_data_window::check_register_values): Update.
1646
ca02d7c8
TT
16472019-08-20 Tom Tromey <tom@tromey.com>
1648
1649 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1650 show_register_group>: Declare.
1651 (tui_show_register_group): Don't declare.
1652 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1653 tui_show_registers.
1654 (tui_data_window::show_register_group): Rename from
1655 tui_show_register_group.
1656 (tui_data_window::check_register_values, tui_reg_command):
1657 Update.
1658 * tui/tui-layout.c (tui_set_layout): Update.
1659
63356bfd
TT
16602019-08-20 Tom Tromey <tom@tromey.com>
1661
1662 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1663 Declare.
1664 (tui_check_register_values): Don't declare.
1665 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1666 from tui_check_register_values.
1667 * tui/tui-hooks.c (tui_register_changed): Update.
1668
42cc14a7
TT
16692019-08-20 Tom Tromey <tom@tromey.com>
1670
1671 * tui/tui-regs.c (tui_reg_layout): Move later.
1672 (tui_show_registers): Don't enable TUI mode or change layout.
1673
b9ad3686
TT
16742019-08-20 Tom Tromey <tom@tromey.com>
1675
1676 * tui/tui-regs.h (struct tui_data_item_window)
1677 <~tui_data_item_window>: Remove.
1678 <content>: Now a unique_xmalloc_ptr.
1679 * tui/tui-regs.c (tui_register_format): Return a
1680 unique_xmalloc_ptr.
1681 (tui_get_register): Update.
1682 (~tui_data_item_window): Remove.
1683 (tui_data_window::display_registers_from, tui_display_register):
1684 Update.
1685 * tui/tui-io.h (tui_expand_tabs): Update.
1686 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1687 Remove "col" parameter.
1688
8e114aab
TT
16892019-08-20 Tom Tromey <tom@tromey.com>
1690
1691 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1692 field.
1693 * tui/tui-regs.c (~tui_data_item_window): Update.
1694
1a4f81dd
TT
16952019-08-20 Tom Tromey <tom@tromey.com>
1696
1697 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1698 earlier.
1699
0f8d8876
TT
17002019-08-20 Tom Tromey <tom@tromey.com>
1701
1702 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1703
605dc2c2
TT
17042019-08-20 Tom Tromey <tom@tromey.com>
1705
1706 * tui/tui-source.h (struct tui_source_window): Update.
1707 * tui/tui-regs.c (tui_show_registers): Update.
1708 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1709 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1710 (NO_REGS_STRING): Remove defines.
1711
aedbe3bb
CM
17122019-08-20 Conrad Meyer <cem@FreeBSD.org>
1713
1714 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1715 unnecessary thread walk if remote doesn't support the packet.
1716
7ce8f214
TT
17172019-08-19 Tom Tromey <tromey@adacore.com>
1718
1719 * python/py-value.c (value_has_field): Fix indentation.
1720
f21c2bd7
TT
17212019-08-19 Tom Tromey <tromey@adacore.com>
1722
1723 * printcmd.c (do_one_display, info_display_command): Update.
1724 * block.h (contained_in): Return bool. Add allow_nested
1725 parameter.
1726 * block.c (contained_in): Return bool. Add allow_nested
1727 parameter.
1728
d806ea2d
TT
17292019-08-19 Tom Tromey <tom@tromey.com>
1730
1731 * configure: Rebuild.
1732 * configure.ac: Disallow the combination of -static-libstdc++ and
1733 source highlight.
1734 * source-cache.c (get_language_name): Handle rust.
1735 (source_cache::get_source_lines): Ignore highlighting exceptions.
1736
398fdd60
TT
17372019-08-16 Tom Tromey <tom@tromey.com>
1738
1739 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1740 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1741 (struct tui_source_window_base) <make_visible, refresh_window,
1742 resize>: Remove methods.
1743 <execution_info>: Remove field.
1744 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1745 (tui_show_source_line, tui_source_window_base)
1746 (~tui_source_window_base): Update.
1747 (tui_source_window_base::resize)
1748 (tui_source_window_base::make_visible)
1749 (tui_source_window_base::refresh_window): Remove.
1750 (tui_source_window_base::update_exec_info): Update.
1751 * tui/tui-source.c (tui_source_window::set_contents): Update.
1752 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1753
e699d331
TT
17542019-08-16 Tom Tromey <tom@tromey.com>
1755
1756 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1757 deprecated_query_hook.
1758
bb01dbfc
TT
17592019-08-16 Tom Tromey <tom@tromey.com>
1760
1761 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1762 (tui_update_source_windows_with_line): Update.
1763 * tui/tui-source.h (struct tui_source_window)
1764 <show_symtab_source>: Declare.
1765 (tui_show_symtab_source): Don't declare.
1766 * tui/tui-source.c (tui_show_symtab_source): Rename from
1767 tui_show_symtab_source.
1768
81c82c4b
TT
17692019-08-16 Tom Tromey <tom@tromey.com>
1770
1771 * tui/tui-winsource.h (struct tui_source_window_base)
1772 <set_contents>: Declare.
1773 * tui/tui-winsource.c
1774 (tui_source_window_base::update_source_window_as_is): Update.
1775 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1776 Declare.
1777 (tui_set_source_content): Don't declare.
1778 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1779 tui_set_source_content.
1780 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1781 Declare.
1782 (tui_set_disassem_content): Don't declare.
1783 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1784 tui_set_disassem_content.
1785
2ddaf614
TT
17862019-08-16 Tom Tromey <tom@tromey.com>
1787
1788 * tui/tui-winsource.h (struct tui_source_window_base)
1789 <update_breakpoint_info>: Declare.
1790 (tui_update_breakpoint_info): Don't declare.
1791 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1792 (tui_update_all_breakpoint_info): Update.
1793 (tui_source_window_base::update_breakpoint_info): Rename from
1794 tui_update_breakpoint_info.
1795 (tui_source_window_base::update_exec_info): Update.
1796
017f9828
TT
17972019-08-16 Tom Tromey <tom@tromey.com>
1798
1799 * tui/tui-winsource.h (struct tui_source_window_base)
1800 <update_source_window>: Declare.
1801 (tui_update_source_window): Don't declare.
1802 * tui/tui-winsource.c
1803 (tui_source_window_base::update_source_window): Rename from
1804 tui_update_source_window.
1805 (tui_source_window_base::rerender): Update.
1806 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1807 * tui/tui-disasm.c (tui_show_disassem)
1808 (tui_show_disassem_and_update_source)
1809 (tui_disasm_window::maybe_update): Update.
1810
ed8358e9
TT
18112019-08-16 Tom Tromey <tom@tromey.com>
1812
1813 * tui/tui-winsource.h (struct tui_source_window_base)
1814 <update_source_window_as_is>: Declare.
1815 (tui_update_source_window_as_is): Don't declare.
1816 * tui/tui-winsource.c (tui_update_source_window): Update
1817 (tui_source_window_base::update_source_window_as_is): Rename from
1818 tui_update_source_window_as_is.
1819 (tui_source_window_base::refill): Update.
1820 * tui/tui-source.c (tui_show_symtab_source): Update.
1821 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1822 Update.
1823
20149b6b
TT
18242019-08-16 Tom Tromey <tom@tromey.com>
1825
1826 * tui/tui-winsource.h (tui_update_source_window)
1827 (tui_update_source_window_as_is): Remove "noerror" parameter.
1828 * tui/tui-winsource.c (tui_update_source_window)
1829 (tui_update_source_window_as_is): Remove "noerror" parameter.
1830 (tui_update_source_windows_with_addr)
1831 (tui_update_source_windows_with_line)
1832 (tui_source_window_base::rerender)
1833 (tui_source_window_base::refill): Update.
1834 * tui/tui-source.h (tui_set_source_content)
1835 (tui_show_symtab_source): Remove "noerror" parameter.
1836 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1837 parameter.
1838 (tui_show_symtab_source): Likewise.
1839 (tui_source_window::maybe_update): Update.
1840 * tui/tui-disasm.c (tui_show_disassem)
1841 (tui_show_disassem_and_update_source)
1842 (tui_disasm_window::do_scroll_vertical)
1843 (tui_disasm_window::maybe_update): Update.
1844
2d83e710
TT
18452019-08-16 Tom Tromey <tom@tromey.com>
1846
1847 * tui/tui.c (tui_is_window_visible): Update.
1848 * tui/tui-wingeneral.c (tui_make_window)
1849 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1850 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1851 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1852 (tui_set_win_height_command, parse_scrolling_args): Update.
1853 * tui/tui-source.c (tui_source_window::style_changed): Update.
1854 * tui/tui-regs.c (tui_show_registers)
1855 (tui_data_window::first_data_item_displayed)
1856 (tui_data_window::delete_data_content_windows)
1857 (tui_check_register_values, tui_reg_command): Update.
1858 * tui/tui-disasm.c (tui_show_disassem): Update.
1859 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1860 method.
1861 <is_visible>: Remove field.
1862 * tui/tui-data.c (tui_next_win, tui_prev_win)
1863 (tui_delete_invisible_windows): Update.
1864
d4ab829a
TT
18652019-08-16 Tom Tromey <tom@tromey.com>
1866
1867 * tui/tui-winsource.h (struct tui_source_window_base)
1868 <m_has_locator>: Remove.
1869 * tui/tui-layout.c (show_source_disasm_command, show_data)
1870 (show_source_or_disasm_and_command): Update.
1871
aa7ca1bb
AH
18722019-08-16 Alan Hayward <alan.hayward@arm.com>
1873
1874 * NEWS (Other MI changes): New subsection.
1875 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1876 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1877 * arch-utils.c (default_get_pc_address_flags): New function.
1878 * arch-utils.h (default_get_pc_address_flags): New declaration.
1879 * gdbarch.sh: Add get_pc_address_flags.
1880 * gdbarch.c: Regenerate.
1881 * gdbarch.h: Likewise.
1882 * stack.c (print_pc): New function.
1883 (print_frame_info) (print_frame): Call print_pc.
1884
6eac171f
TV
18852019-08-16 Tom de Vries <tdevries@suse.de>
1886
1887 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1888 print_objfile_section_info.
1889
3df505f6
TT
18902019-08-15 Tom Tromey <tom@tromey.com>
1891
1892 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1893 calling update_cmdwin_start_line.
1894 * tui/tui-winsource.h (struct tui_source_window_base)
1895 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1896 <rerender>: Declare.
1897 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1898 Call rerender.
1899 (tui_source_window_base::set_new_height): Remove.
1900 (tui_source_window_base::rerender): Rename from
1901 do_make_visible_with_new_height.
1902 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1903 resize method.
1904 (tui_win_info::make_invisible_and_set_new_height)
1905 (tui_win_info::make_visible_with_new_height): Remove.
1906 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1907 Declare.
1908 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1909 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1910 do_make_visible_with_new_height>: Don't declare.
1911 <rerender>: Declare.
1912 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1913 set_new_height.
1914 (tui_data_window::do_make_visible_with_new_height): Remove.
1915 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1916 call tui_show_locator_content.
1917 (tui_gen_win_info::resize): Call rerender.
1918 (show_source_or_disasm_and_command): Don't call
1919 tui_show_locator_content.
1920 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1921 method.
1922 (struct tui_win_info) <rerender>: Declare.
1923 <set_new_height, make_invisible_and_set_new_height,
1924 make_visible_with_new_height>: Don't declare.
1925 * tui/tui-data.c (tui_win_list::rerender): New method.
1926 * tui/tui-command.h (struct tui_cmd_window)
1927 <do_make_visible_with_new_height>: Don't declare.
1928 * tui/tui-command.c
1929 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1930
272560b5
TT
19312019-08-15 Tom Tromey <tromey@adacore.com>
1932
1933 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1934 * ada-lang.c (ada_enum_name): Likewise.
1935
08235187
CB
19362019-08-15 Christian Biesinger <cbiesinger@google.com>
1937
1938 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1939 leading underscore.
1940 (GdbOutputErrorFile): Likewise.
1941 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1942 accordingly.
1943 (execute_unwinders): Rename to have a leading underscore.
1944 (auto_load_packages): Likewise.
1945 (global scope): Adjust call to auto_load_packages accordingly.
1946 (GdbSetPythonDirectory): Likewise.
1947 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1948 instead of execute_unwinders.
1949
db502012
TT
19502019-08-15 Tom Tromey <tom@tromey.com>
1951
1952 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1953 (show_data): Don't change window visibility.
1954 (tui_gen_win_info::resize): Remove special case for command
1955 window. Use wresize, when available.
1956 (show_source_or_disasm_and_command): Don't change window
1957 visibility.
1958 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1959 <make_visible>: New method.
1960 * tui/tui-command.c (tui_cmd_window::resize): New method.
1961
3891b65e
TT
19622019-08-15 Tom Tromey <tom@tromey.com>
1963
1964 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1965 (struct tui_source_windows): New.
1966 * tui/tui-winsource.c (tui_display_main): Update.
1967 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1968 (new_height_ok, parse_scrolling_args): Update.
1969 * tui/tui-layout.c (show_layout, show_data): Update.
1970 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1971 (tui_add_to_source_windows): Don't declare.
1972 * tui/tui-data.c (source_windows, tui_source_windows)
1973 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1974
ee556432
TT
19752019-08-15 Tom Tromey <tom@tromey.com>
1976
1977 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1978 Rename from reset.
1979 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1980 * tui/tui-layout.c (show_source_disasm_command, show_data):
1981 Update.
1982 (tui_gen_win_info::resize): Rename.
1983 (show_source_or_disasm_and_command): Update.
1984 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1985 reset.
1986
46f438e3
TT
19872019-08-15 Tom Tromey <tom@tromey.com>
1988
1989 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1990 * tui/tui-interp.c (tui_interp::init): Don't call
1991 tui_initialize_static_data.
1992 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1993
f4ce562c
TT
19942019-08-15 Tom Tromey <tom@tromey.com>
1995
1996 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1997 examine tui_win_list.
1998
c398c3d0
TT
19992019-08-15 Tom Tromey <tom@tromey.com>
2000
2001 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2002 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2003 tui_clear_source_content.
2004 (tui_clear_source_content): Remove.
2005 (tui_source_window_base::do_erase_source_content): Hoist call to
2006 content.clear().
2007 * tui/tui-stack.c (tui_show_frame_info): Don't call
2008 tui_clear_source_content.
2009
e25d2004
TT
20102019-08-15 Tom Tromey <tom@tromey.com>
2011
2012 * tui/tui-winsource.h (struct tui_source_window_base)
2013 <do_erase_source_content>: New method.
2014 <erase_source_content>: New method.
2015 (tui_erase_source_content): Don't declare.
2016 * tui/tui-winsource.c (tui_clear_source_content): Update.
2017 (tui_source_window_base::do_erase_source_content): Rename from
2018 tui_erase_source_content.
2019 (tui_source_window_base::show_source_content): Update.
2020 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2021 * tui/tui-source.h (struct tui_source_window)
2022 <erase_source_content>: New method.
2023 * tui/tui-disasm.h (struct tui_disasm_window)
2024 <erase_source_content>: New method.
2025
002f15c2
TT
20262019-08-15 Tom Tromey <tom@tromey.com>
2027
2028 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2029 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2030 constructor.
2031 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2032 * tui/tui-source.c (tui_set_source_content): Update.
2033 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2034
c9033fe8
TT
20352019-08-15 Tom Tromey <tom@tromey.com>
2036
2037 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2038 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2039 tui-source.c.
2040 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2041 Declare.
2042 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2043 method.
2044 (tui_source_window::maybe_update): Update.
2045
088f37dd
TT
20462019-08-15 Tom Tromey <tom@tromey.com>
2047
2048 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2049 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2050 tui-disasm.c.
2051 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2052 Declare.
2053 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2054 method.
2055 (tui_disasm_window::maybe_update): Update.
2056
a54700c6
TT
20572019-08-15 Tom Tromey <tom@tromey.com>
2058
2059 * tui/tui-winsource.h (struct tui_source_window_base)
2060 <maybe_update>: Declare.
2061 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2062 method.
2063 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2064 Declare.
2065 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2066 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2067 Declare.
2068 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2069
e2a678a5
TT
20702019-08-15 Tom Tromey <tom@tromey.com>
2071
2072 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2073
f2dda477
TT
20742019-08-15 Tom Tromey <tom@tromey.com>
2075
2076 * tui/tui-wingeneral.c: Include tui-stack.h.
2077 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2078 (struct tui_locator_window): Move from tui-data.h.
2079 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2080 (tui_initialize_static_data): Move from tui-data.c.
2081 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2082 (struct tui_locator_window): Move to tui-stack.c.
2083 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2084 (tui_initialize_static_data): Move to tui-stack.c.
2085
ed4a1084
TT
20862019-08-15 Tom Tromey <tom@tromey.com>
2087
2088 * tui/tui-layout.c (show_source_disasm_command)
2089 (show_source_or_disasm_and_command): Use make_visible method, not
2090 tui_make_window.
2091 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2092 Remove.
2093
65962b20
TT
20942019-08-15 Tom Tromey <tom@tromey.com>
2095
2096 * tui/tui-wingeneral.h (tui_make_window): Update.
2097 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2098 parameter.
2099 (tui_gen_win_info::make_visible): Update.
2100 * tui/tui-regs.c (tui_data_window::display_registers_from):
2101 Update.
2102 * tui/tui-layout.c (show_source_disasm_command)
2103 (show_source_or_disasm_and_command): Update.
2104 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2105 (enum tui_box): Remove.
2106 (struct tui_win_info) <can_box>: New method.
2107 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2108 method.
2109
2208ee91
TV
21102019-08-15 Tom de Vries <tdevries@suse.de>
2111
2112 * linux-nat-trad.c: Include gdbarch.h.
2113
75faf5c4
AH
21142019-08-14 Alan Hayward <alan.hayward@arm.com>
2115
2116 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2117 register sizes.
2118
b1c896b3
TT
21192019-08-14 Tom Tromey <tromey@adacore.com>
2120
2121 * darwin-nat.c: Include gdbarch.h.
2122 * darwin-nat-info.c: Include gdbarch.h.
2123
6405cd73
TT
21242019-08-13 Tom Tromey <tom@tromey.com>
2125
2126 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2127 Remove.
2128 * tui/tui-data.c (tui_initialize_static_data): Update.
2129
5216580d
TT
21302019-08-13 Tom Tromey <tom@tromey.com>
2131
2132 * tui/tui-winsource.h (struct tui_exec_info_window)
2133 <~tui_exec_info_window, maybe_allocate_content, get_content,
2134 m_content>: Remove.
2135 (struct tui_source_window_base) <set_exec_info_content,
2136 show_exec_info_content>: Don't declare.
2137 * tui/tui-winsource.c
2138 (tui_exec_info_window::maybe_allocate_content): Remove.
2139 (tui_source_window_base::update_exec_info): Rename from
2140 set_exec_info_content.
2141 (tui_source_window_base::show_exec_info_content)
2142 (tui_source_window_base::update_exec_info): Remove.
2143
93858ad3
TT
21442019-08-13 Tom Tromey <tom@tromey.com>
2145
2146 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2147 declare.
2148 * tui/tui-winsource.c (tui_update_source_window_as_is)
2149 (tui_update_source_windows_with_addr, tui_erase_source_content):
2150 Update.
2151 (tui_clear_exec_info_content): Remove.
2152
e321e7ce
TT
21532019-08-13 Tom Tromey <tom@tromey.com>
2154
2155 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2156 declare.
2157 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2158 call tui_erase_exec_info_content.
2159 (tui_clear_exec_info_content): Rename from
2160 tui_erase_exec_info_content.
2161 (tui_clear_exec_info_content): Delete.
2162
8270ac62
TT
21632019-08-13 Tom Tromey <tom@tromey.com>
2164
2165 * tui/tui-winsource.h (struct tui_source_window_base)
2166 <show_exec_info_content>: Declare.
2167 (tui_show_exec_info_content): Don't declare.
2168 * tui/tui-winsource.c
2169 (tui_source_window_base::show_exec_info_content): Rename from
2170 tui_show_exec_info_content.
2171 (tui_source_window_base::update_exec_info): Update.
2172
7b56485d
TT
21732019-08-13 Tom Tromey <tom@tromey.com>
2174
2175 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2176 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2177 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2178 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2179 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2180 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2181 ... here.
2182
7ba913dc
TT
21832019-08-13 Tom Tromey <tom@tromey.com>
2184
2185 * tui/tui-winsource.h (struct tui_source_window_base)
2186 <update_exec_info>: Declare.
2187 (tui_update_exec_info): Don't declare.
2188 * tui/tui-winsource.c (tui_update_source_window_as_is)
2189 (tui_source_window_base::refresh_all)
2190 (tui_update_all_breakpoint_info): Update.
2191 (tui_source_window_base::update_exec_info): Rename from
2192 tui_update_exec_info.
2193 * tui/tui-stack.c (tui_show_frame_info): Update.
2194
37a4a131
TT
21952019-08-13 Tom Tromey <tom@tromey.com>
2196
2197 * tui/tui-winsource.h (struct tui_source_window_base)
2198 <set_exec_info_content>: Declare.
2199 (tui_set_exec_info_content): Don't declare.
2200 * tui/tui-winsource.c
2201 (tui_source_window_base::set_exec_info_content): Rename from
2202 tui_set_exec_info_content.
2203 (tui_update_exec_info): Update.
2204
0bd27e07
TT
22052019-08-13 Tom Tromey <tom@tromey.com>
2206
2207 * tui/tui-winsource.h (struct tui_source_window_base)
2208 <show_source_content>: Declare.
2209 (tui_show_source_content): Don't declare.
2210 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2211 (tui_source_window_base::show_source_content): Rename from
2212 tui_show_source_content.
2213 (tui_source_window_base::refresh_all): Update.
2214 * tui/tui-layout.c (show_source_disasm_command)
2215 (show_source_or_disasm_and_command): Update.
2216
b4ef5aeb
TT
22172019-08-13 Tom Tromey <tom@tromey.com>
2218
2219 * tui/tui-winsource.c (tui_erase_source_content)
2220 (tui_show_source_content, tui_source_window_base::refresh_all):
2221 Update.
2222 * tui/tui-wingeneral.h
2223 (tui_check_and_display_highlight_if_needed): Don't declare.
2224 * tui/tui-wingeneral.c
2225 (tui_win_info::check_and_display_highlight_if_needed): Rename from
2226 check_and_display_highlight_if_needed.
2227 * tui/tui-win.c (tui_rehighlight_all)
2228 (tui_win_info::make_visible_with_new_height): Update.
2229 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2230 (tui_data_window::erase_data_content)
2231 (tui_data_window::display_all_data): Update.
2232 * tui/tui-data.h (struct tui_win_info)
2233 <check_and_display_highlight_if_needed>: Declare.
2234
fede5273
TT
22352019-08-13 Tom Tromey <tom@tromey.com>
2236
2237 * tui/tui-win.c (tui_resize_all): Call
2238 tui_delete_invisible_windows.
2239 * tui/tui-layout.c (show_layout): Call
2240 tui_delete_invisible_windows.
2241 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2242 * tui/tui-data.c (tui_delete_invisible_windows): New function.
2243
22c3f490
TT
22442019-08-13 Tom Tromey <tom@tromey.com>
2245
2246 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
2247 tui_add_win_to_layout.
2248
16cb7910
TT
22492019-08-13 Tom Tromey <tom@tromey.com>
2250
2251 * tui/tui-layout.h (tui_default_win_height): Don't declare.
2252 * tui/tui-layout.c (tui_default_win_height): Now static.
2253
cc0c3ffb
TT
22542019-08-13 Tom Tromey <tom@tromey.com>
2255
2256 * tui/tui-layout.c (show_layout): Unify all layout cases into a
2257 single switch.
2258 (show_source_disasm_command, show_source_or_disasm_and_command):
2259 Don't check current layout.
2260
3f3ffe54
TT
22612019-08-13 Tom Tromey <tom@tromey.com>
2262
2263 * tui/tui-wingeneral.c (make_all_visible): Remove.
2264 (tui_make_all_invisible): Simplify.
2265 * tui/tui-layout.c (tui_make_all_invisible): Move from
2266 tui-wingeneral.c; simplify.
2267 (show_layout): Hoist call to tui_make_all_invisible.
2268 (show_data): Don't call tui_make_all_invisible.
2269
69258091
TT
22702019-08-13 Tom Tromey <tom@tromey.com>
2271
2272 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
2273 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
2274
62cf57fe
TT
22752019-08-13 Tom Tromey <tom@tromey.com>
2276
2277 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
2278 tui-data.c.
2279 (show_source_disasm_command, show_data)
2280 (show_source_or_disasm_and_command): Don't use
2281 tui_set_current_layout_to.
2282 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
2283 * tui/tui-data.c (current_layout, tui_current_layout): Move to
2284 tui-layout.c.
2285 (tui_set_current_layout_to): Remove.
2286
2afade5d
TT
22872019-08-13 Tom Tromey <tom@tromey.com>
2288
2289 * tui/tui-layout.c (tui_set_layout): Update.
2290 * tui/tui-data.h (struct tui_layout_def): Remove.
2291 (tui_layout_def): Don't declare.
2292 * tui/tui-data.c (layout_def): Remove.
2293 (tui_layout_def): Remove.
2294
a3504e96
TT
22952019-08-13 Tom Tromey <tom@tromey.com>
2296
2297 * tui/tui-winsource.h (struct tui_source_window_base)
2298 <clear_detail>: No longer "override".
2299 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
2300 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
2301 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
2302 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
2303 Remove.
2304 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
2305
29c92911
TT
23062019-08-13 Tom Tromey <tromey@adacore.com>
2307
2308 * tracepoint.c: Don't include readline.h or history.h.
2309
86c6b807
TT
23102019-08-12 Tom Tromey <tom@tromey.com>
2311
2312 * configure: Rebuild.
2313 * configure.ac: Check for readline 7.
2314 * NEWS: Mention readline 7 requirement.
2315 * README: Update.
2316
5db2718c
TT
23172019-08-12 Tom Tromey <tom@tromey.com>
2318
2319 * mingw-hdep.c (gdb_select): Remove readline hack.
2320
dac36daf
PFC
23212019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2322
2323 * blockframe.c (find_pc_partial_function): Set *block to nullptr
2324 when the function fails.
2325
1022c627
AA
23262019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2327
2328 * s390-tdep.c (s390_type_align): New function.
2329 (s390_gdbarch_init): Set it as type_align gdbarch method.
2330
eba4caf2
TV
23312019-08-09 Tom de Vries <tdevries@suse.de>
2332
2333 PR gdb/24591
2334 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2335 pc_low with relocation offset.
2336
123cd851
TT
23372019-08-07 Tom Tromey <tromey@adacore.com>
2338
2339 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2340 (print_frame_args): Update.
2341 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2342 Update.
2343 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2344 * frame.h (struct frame_arg): Add initializers.
2345 <error>: Now a unique_xmalloc_ptr.
2346
3d31bc39
AH
23472019-08-07 Alan Hayward <alan.hayward@arm.com>
2348
2349 * NEWS: Expand the Pointer Authentication entry.
2350 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2351 (aarch64_frame_unmask_lr): ... to this.
2352 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2353 Call aarch64_frame_unmask_lr.
2354 * frame.c (struct frame_info): Add "masked" variable.
2355 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2356 (fprint_frame): Check for masked pc.
2357 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2358 declarations.
2359 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2360 * stack.c (print_frame): Check for masked pc.
2361
0cf9feb9
TT
23622019-08-06 Tom Tromey <tom@tromey.com>
2363
2364 * stabsread.c (patch_block_stabs, read_one_struct_field)
2365 (read_enum_type): Use obstack_strndup.
2366 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2367 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2368 * dwarf2read.c (guess_full_die_structure_name)
2369 (anonymous_struct_prefix): Use obstack_strndup.
2370 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2371 * c-exp.y (yylex): Use obstack_strndup.
2372 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2373 (write_var_or_type): Use obstack_strndup.
2374
efba19b0
TT
23752019-08-06 Tom Tromey <tom@tromey.com>
2376
2377 * symfile.c (reread_symbols): Use obstack_strdup.
2378 * stabsread.c (read_type): Use obstack_strdup.
2379 * gdb_obstack.h (obstack_strdup): New overload.
2380 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2381 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2382 (dwarf2_canonicalize_name): Use obstack_strdup.
2383 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2384 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2385 Use obstack_strdup.
2386
f25102f7
TT
23872019-08-06 Tom Tromey <tom@tromey.com>
2388
2389 * gdb_obstack.h (obstack_strdup): Define.
2390 * gdb_obstack.c (obstack_strdup): Don't define.
2391
021887d8
TT
23922019-08-06 Tom Tromey <tom@tromey.com>
2393
2394 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2395 obstack_strdup.
2396 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2397 obstack_strdup.
2398 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2399 * stabsread.c (common_block_start): Use obstack_strdup.
2400 * objfiles.c (set_objfile_main_name, objfile): Use
2401 obstack_strdup.
2402 * namespace.c (add_using_directive): Use obstack_strdup.
2403 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2404 * jit.c (finalize_symtab): Use obstack_strdup.
2405 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2406 (guess_partial_die_structure_name, partial_die_info::fixup)
2407 (dwarf2_name): Use obstack_strdup.
2408 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2409 obstack_strdup.
2410 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2411 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2412 obstack_strdup.
2413 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2414
d2834edc
PW
24152019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2416
2417 * unittests/help-doc-selftests.c: New file.
2418 * Makefile.in: Add the new file.
2419
590042fc
PW
24202019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2421
2422 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2423 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2424 the full first line, except when FOR_VALUE_PREFIX. In this case,
2425 the trailing '.' is not output, and the first character is uppercased.
2426 (print_help_for_command): Update call to print_doc_line.
2427 (print_doc_of_command): Likewise.
2428 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2429 * cli/cli-option.c (append_indented_doc): Do not append newline.
2430 (build_help_option): Append newline after first appended_indented_doc
2431 only if a second call is done.
2432 (build_help): Append 2 new lines before each option, except the first
2433 one.
2434 * compile/compile.c (_initialize_compile): Add new lines after
2435 %OPTIONS%, when not at the end of the help.
2436 Change help doc or code
2437 producing the help doc to respect the invariants.
2438 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2439 Also removed the new line after 'Options:', as all other commands
2440 do not put an empty line between 'Options:' and the first option.
2441 * printcmd.c (_initialize_printcmd): Likewise.
2442 * stack.c (_initialize_stack): Likewise.
2443 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2444 incorrectly telling COMMAND is optional.
2445 * ada-lang.c (_initialize_ada_language): Change help doc or code
2446 producing the help doc to respect the invariants.
2447 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2448 * breakpoint.c (_initialize_breakpoint): Likewise.
2449 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2450 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2451 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2452 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2453 _initialize_cli_style): Likewise.
2454 * corelow.c (core_target_info): Likewise.
2455 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2456 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2457 * filesystem.c (_initialize_filesystem): Likewise.
2458 * frame.c (_initialize_frame): Likewise.
2459 * gnu-nat.c (add_task_commands): Likewise.
2460 * infcall.c (_initialize_infcall): Likewise.
2461 * infcmd.c (_initialize_infcmd): Likewise.
2462 * interps.c (_initialize_interpreter): Likewise.
2463 * language.c (_initialize_language): Likewise.
2464 * linux-fork.c (_initialize_linux_fork): Likewise.
2465 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2466 * maint.c (_initialize_maint_cmds): Likewise.
2467 * memattr.c (_initialize_mem): Likewise.
2468 * printcmd.c (_initialize_printcmd): Likewise.
2469 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2470 _RegEx): Likewise.
2471 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2472 * record-btrace.c (_initialize_record_btrace): Likewise.
2473 * record-full.c (_initialize_record_full): Likewise.
2474 * record.c (_initialize_record): Likewise.
2475 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2476 * regcache.c (_initialize_regcache): Likewise.
2477 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2478 _initialize_remote): Likewise.
2479 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2480 * serial.c (_initialize_serial): Likewise.
2481 * skip.c (_initialize_step_skip): Likewise.
2482 * source.c (_initialize_source): Likewise.
2483 * stack.c (_initialize_stack): Likewise.
2484 * symfile.c (_initialize_symfile): Likewise.
2485 * symtab.c (_initialize_symtab): Likewise.
2486 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2487 * top.c (init_main): Likewise.
2488 * tracefile-tfile.c (tfile_target_info): Likewise.
2489 * tracepoint.c (_initialize_tracepoint): Likewise.
2490 * tui/tui-win.c (_initialize_tui_win): Likewise.
2491 * utils.c (add_internal_problem_command): Likewise.
2492 * valprint.c (value_print_option_defs): Likewise.
2493
404f2902
FCE
24942019-08-06 Frank Ch. Eigler <fche@redhat.com>
2495
2496 PR build/24886
2497 * configure.ac: Drop enable-libmcheck support.
2498 * configure, config.in: Rebuild.
2499 * libmcheck.m4: Remove.
2500 * acinclude.m4: Don't include it.
2501 * Makefile.in: Don't distribute it.
2502 * top.c (print_gdb_configuration): Don't mention it.
2503
046bebe1
TT
25042019-08-06 Tom Tromey <tom@tromey.com>
2505
2506 * utils.c (set_output_style): Sometimes pass stream to
2507 emit_style_escape.
2508 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2509 * record-btrace.c (btrace_insn_history): Update.
2510 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2511 method.
2512 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2513 Update initializers.
2514 <m_uiout>: New field.
2515 <m_di>: Move lower.
2516 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2517 Remove "uiout" parameter.
2518 (dump_insns): Update.
2519 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2520 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2521
ddbcedf5
CB
25222019-08-06 Christian Biesinger <cbiesinger@google.com>
2523
2524 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2525 (error_in_psymtab_expansion): Likewise.
2526 (lookup_symbol_via_quick_fns): Likewise.
2527 (basic_lookup_transparent_type_quick): Likewise.
2528 (basic_lookup_transparent_type_1): Likewise.
2529
b08b16c8
TT
25302019-08-06 Tom Tromey <tromey@adacore.com>
2531
2532 * source.c (last_source_error): Now bool.
2533 (print_source_lines_base): Make "noprint" bool. Only open
2534 source file when last_source_visited changes.
2535
cb44333d
TT
25362019-08-06 Tom Tromey <tromey@adacore.com>
2537
2538 * annotate.c (annotate_source_line): Use g_source_cache.
2539 * source-cache.c (source_cache::get_plain_source_lines): Change
2540 parameters. Populate m_offset_cache.
2541 (source_cache::ensure): New method.
2542 (source_cache::get_line_charpos): New method.
2543 (extract_lines): Move lower. Change parameters.
2544 (source_cache::get_source_lines): Move lower.
2545 * source-cache.h (class source_cache): Update comment.
2546 <get_line_charpos>: New method.
2547 <get_source_lines>: Update comment.
2548 <clear>: Clear m_offset_cache.
2549 <get_plain_source_lines>: Change parameters.
2550 <ensure>: New method
2551 <m_offset_cache>: New member.
2552 * source.c (forget_cached_source_info_for_objfile): Update.
2553 (info_source_command): Use g_source_cache.
2554 (find_source_lines, open_source_file_with_line_charpos): Remove.
2555 (print_source_lines_base, search_command_helper): Use g_source_cache.
2556 * source.h (open_source_file_with_line_charpos): Don't declare.
2557 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2558 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2559 Use g_source_cache.
2560
872dceaa
TT
25612019-08-06 Tom Tromey <tromey@adacore.com>
2562
2563 * source-cache.c (source_cache::get_plain_source_lines):
2564 Remove "first_line" and "last_line" parameters.
2565 (source_cache::get_source_lines): Cache plain text.
2566 * source-cache.h (class source_cache)
2567 <get_plain_source_lines>: Update.
2568
269249d9
TT
25692019-08-06 Tom Tromey <tromey@adacore.com>
2570
2571 * source-cache.c (extract_lines): No longer a method.
2572 Changed type of parameter. Include final newline.
2573 (selftests::extract_lines_test): New function.
2574 (_initialize_source_cache): Likewise.
2575 * source-cache.h (class source_cache)
2576 <extract_lines>: Don't declare.
2577
c0e8dcd8
TT
25782019-08-06 Tom Tromey <tromey@adacore.com>
2579
2580 * breakpoint.c (init_breakpoint_sal): Update.
2581 (breakpoint): Update.
2582 * breakpoint.h (struct breakpoint) <filter>: Now a
2583 unique_xmalloc_ptr.
2584
0b27c27d
CB
25852019-08-05 Christian Biesinger <cbiesinger@google.com>
2586
2587 * NEWS: Mention dictionary access on blocks.
2588 * python/py-block.c (blpy_getitem): New function.
2589 (block_object_as_mapping): New struct.
2590 (block_object_type): Use new struct for tp_as_mapping field.
2591
4ee94178
CB
25922019-08-05 Christian Biesinger <cbiesinger@google.com>
2593
2594 * objfiles.h (objfile): Add a comment describing partial symbols.
2595
8abfcabc
TT
25962019-08-05 Tom Tromey <tromey@adacore.com>
2597
2598 * compile/compile.c (_initialize_compile): Use _(), not N_().
2599 * thread.c (_initialize_thread): Use _(), not N_().
2600 * stack.c (_initialize_stack): Use _(), not N_().
2601 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2602
2b79f376
SM
26032019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2604
2605 * dwarf2read.c (struct dw2_symtab_iterator):
2606 <want_specific_block>: Remove.
2607 <block_index>: Change type to gdb::optional.
2608 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2609 change type of BLOCK_INDEX parameter to gdb::optional.
2610 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2611 (dw2_lookup_symbol): Don't pass argument for
2612 WANT_SPECIFIC_BLOCK.
2613 (dw2_expand_symtabs_for_function): Don't pass argument for
2614 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2615 (class dw2_debug_names_iterator)
2616 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2617 parameter, change BLOCK_INDEX type to gdb::optional.
2618 <m_want_specific_block>: Remove.
2619 <m_block_index>: Change type to gdb::optional.
2620 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2621 gdb::optional. Re-write in function of gdb::optional.
2622 (dw2_debug_names_lookup_symbol): Don't pass argument for
2623 WANT_SPECIFIC_BLOCK.
2624 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2625 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2626 BLOCK_INDEX.
2627
ae60f04e
PW
26282019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2629
2630 * NEWS: Mention changes to "info sources" command.
2631
28cd9371
PW
26322019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2633
2634 * symtab.c (filename_partial_match_opts): New struct type.
2635 (struct output_source_filename_data): New members
2636 regexp, c_regexp, partial_match.
2637 (output_source_filename): Use new members to decide to print file.
2638 (info_sources_option_defs): New variable.
2639 (make_info_sources_options_def_group, print_info_sources_header,
2640 info_sources_command_completer):
2641 New functions.
2642 (info_sources_command): Read new optional arguments.
2643 (_initialize_symtab): Update info sources help.
2644
ca683e3a
AO
26452019-08-02 Alexandre Oliva <oliva@adacore.com>
2646
2647 * ada-lang.c (exception_support_info_v0): Renamed from...
2648 (default_exception_support_info): ... this. Create new
2649 definition for v1.
2650 (ada_has_this_exception_support): Look up catch_handlers_sym.
2651 (ada_exception_support_info_sniffer): Try v0 after default.
2652
f1264162
TT
26532019-08-01 Tom Tromey <tromey@adacore.com>
2654
2655 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2656 gdbarch.h.
2657
0a7b2485
CB
26582019-08-01 Christian Biesinger <cbiesinger@google.com>
2659
2660 * s12z-tdep.c: Fix include path for s12z-opc.h.
2661
c6bdbeb7
AH
26622019-08-01 Alan Hayward <alan.hayward@arm.com>
2663
2664 * NEWS: Require GNU make 3.82.
2665
a2bd7b82
TT
26662019-07-16 Tom Tromey <tom@tromey.com>
2667
2668 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2669 declare.
2670
aa3b6533
TT
26712019-07-30 Tom Tromey <tromey@adacore.com>
2672
2673 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2674
a1530dc7
KB
26752019-07-30 Kevin Buettner <kevinb@redhat.com>
2676
2677 * printcmd.c (print_address_symbolic): Print negative offsets.
2678 (build_address_symbolic): Force signed arithmetic when computing
2679 offset.
2680
2906593f
CB
26812019-07-30 Christian Biesinger <cbiesinger@google.com>
2682
2683 PR/24474: Add a function to lookup static variables.
2684 * NEWS: Mention this new function.
2685 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2686 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2687 * python/python.c (python_GdbMethods): Add new function.
2688
c620ed88
CB
26892019-07-29 Christian Biesinger <cbiesinger@google.com>
2690
2691 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2692 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2693 (objfpy_lookup_static_symbol): New function.
2694 (objfile_object_methods): Add new functions.
2695
bc4268a5
PW
26962019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2697
2698 * NEWS: Mention 'set|show print frame-info'. Mention new
2699 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2700 backtrace argument. Mention that python frame filtering code
2701 is now consistent with what 'backtrace' command prints.
2702
4b5e8d19
PW
27032019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2704
2705 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2706 comments.
2707 (print_frame_info_auto, print_frame_info_source_line,
2708 print_frame_info_location, print_frame_info_source_and_location,
2709 print_frame_info_location_and_address, print_frame_info_short_location):
2710 New declarations.
2711 (struct frame_print_options): New member print_frame_info.
2712 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2713 * stack.h (get_user_print_what_frame_info): New declaration.
2714 (frame_show_address): New declaration.
2715 * stack.c (print_frame_arguments_choices): New value 'presence'.
2716 (print_frame_info_auto, print_frame_info_source_line,
2717 print_frame_info_location, print_frame_info_source_and_location,
2718 print_frame_info_location_and_address, print_frame_info_short_location,
2719 print_frame_info_choices, print_frame_info_print_what): New definitions.
2720 (print_frame_args): Only print dots for args if print frame-arguments
2721 is 'presence'.
2722 (frame_print_option_defs): New element for "frame-info".
2723 (get_user_print_what_frame_info): New function.
2724 (frame_show_address): Make non static. Move comment to stack.h.
2725 (print_frame_info_to_print_what): New function.
2726 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2727 to decide what to print.
2728 (backtrace_command_1): Handle the new print_frame_arguments_presence
2729 value.
2730 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2731 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2732 (py_print_frame): In non-mi mode, use LOCATION as default for
2733 print_what, similarly to frame information printed directly by
2734 backtrace command. Handle frame-info user option in non MI mode.
2735
6bdfee81
KB
27362019-07-27 Kevin Buettner <kevinb@redhat.com>
2737
2738 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2739 Add case for debugging 32-bit target on 64-bit host. Revise
2740 comment.
2741
98a617f8
KB
27422019-07-27 Kevin Buettner <kevinb@redhat.com>
2743
2744 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2745 instead of find_function_entry_range_from_pc.
2746
567238c9
KB
27472019-07-27 Kevin Buettner <kevinb@redhat.com>
2748
2749 * stack.c (find_frame_funname): Remove code which preferred
2750 minsym over symtab sym in "certain pathological cases".
2751
2dc80cf8
KB
2752 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2753 parameter. Change type of "do_demangle" to bool.
2754 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2755 Pass suitable "prefer_sym_over_minsym" flag to
2756 build_address_symbolic(). Don't output "+" for negative offsets.
2757 * printcmd.c (print_address_symbolic): Update invocation of
2758 build_address_symbolic to include a "prefer_sym_over_minsym"
2759 flag.
2760 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2761 Restrict cases in which use of minimal symbol is preferred to that
2762 of a found symbol. Update comments.
2763
1aff7173
KB
2764 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2765 for entry pc when entry pc is out of range for that FDE.
2766
89b085ac
BC
27672019-07-26 Brian Callahan <bcallah@openbsd.org>
2768
2769 PR gdb/24839:
2770 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2771 type.
2772
f32feb4a
CB
27732019-07-25 Christian Biesinger <cbiesinger@google.com>
2774
2775 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2776 this function's Python signature.
2777
2778
27792019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
2780
2781 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2782 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2783 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2784 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2785 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2786
2787
c54e4253
YS
27882019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2789
2790 * h8300-tdep.c (h8300_register_name_common): New.
2791 h8300_register_name): Use h8300_register_name_common.
2792 (h8300s_register_name): Likewise.
2793 (h8300sx_register_name): Likewise.
2794 (h8300h_register_nam): New.
2795 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2796
2797
40eadf04
SP
27982019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2799
2800 * arm-tdep.c (arm_skip_cmse_entry): New function.
2801 (arm_is_sgstubs_section): New function.
2802 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2803
bfa2a36d
TT
28042019-07-22 Tom Tromey <tom@tromey.com>
2805
2806 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2807 Don't self-assign.
2808
a8e9d247
AB
28092019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2810
2811 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2812 type_print.
2813
eb86c5e2
AB
28142019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2815
2816 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2817 so that GDB doesn't match any msymbols when searching in the
2818 TYPES_DOMAIN.
2819 (print_symbol_info): Print using typedef_print or type_print based
2820 on the type of the symbol. Add updated FIXME comment moved from...
2821 (_initialize_symtab): ... move and update FIXME comment to above.
2822
a8eab7c6
AB
28232019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2824
2825 * NEWS: Mention adding -q option to "info types".
2826 * symtab.c (struct info_types_options): New struct.
2827 (info_types_options_defs): New variable.
2828 (make_info_types_options_def_group): New function.
2829 (info_types_command): Use gdb::option framework to parse options.
2830 (info_types_command_completer): New function.
2831 (_initialize_symtab): Extend the help text on "info types" and
2832 register command completer.
2833
b4603c34
CB
28342019-07-21 Christian Biesinger <cbiesinger@google.com>
2835
2836 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2837 (lookup_symbol_in_objfile): Change int to block_enum and add a
2838 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2839
c8cdc1e0
CB
28402019-07-20 Christian Biesinger <cbiesinger@google.com>
2841
2842 * MAINTAINERS (Write After Approval): Add self.
2843
01e175fe
AB
28442019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2845
2846 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2847 instruction to the dummy code region.
2848
56f79b63
TT
28492019-07-19 Tom Tromey <tromey@adacore.com>
2850
2851 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2852 (ARGSUSED, PARAMS, __func__): Remove rules.
2853
4c5aa8e0
AH
28542019-07-19 Alan Hayward <alan.hayward@arm.com>
2855
2856 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2857 * features/arm/arm-with-iwmmxt.c: Remove.
2858 * features/arm/arm-with-iwmmxt.xml: Remove.
2859 * features/arm/arm-with-m-fpa-layout.c: Remove.
2860 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2861 * features/arm/arm-with-m-vfp-d16.c: Remove.
2862 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2863 * features/arm/arm-with-m.c: Remove.
2864 * features/arm/arm-with-m.xml: Remove.
2865 * features/arm/arm-with-neon.c: Remove.
2866 * features/arm/arm-with-neon.xml: Remove.
2867 * features/arm/arm-with-vfpv2.c: Remove.
2868 * features/arm/arm-with-vfpv2.xml: Remove.
2869 * features/arm/arm-with-vfpv3.c: Remove.
2870 * features/arm/arm-with-vfpv3.xml: Remove.
2871
f42b2617
AH
28722019-07-19 Alan Hayward <alan.hayward@arm.com>
2873
2874 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2875
f29ec966
AH
28762019-07-19 Alan Hayward <alan.hayward@arm.com>
2877
2878 * arch/aarch32.c (aarch32_create_target_description): Create
2879 target descriptions using features.
2880 * arch/arm.c (arm_create_target_description)
2881 (arm_create_mprofile_target_description): Likewise.
2882 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2883
d105cce5
AH
28842019-07-19 Alan Hayward <alan.hayward@arm.com>
2885
2886 * Makefile.in: Add new files.
2887 * aarch32-tdep.c: New file.
2888 * aarch32-tdep.h: New file.
2889 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2890 Call aarch32_read_description.
2891 * arch/aarch32.c: New file.
2892 * arch/aarch32.h: New file.
2893 * arch/arm.c (arm_create_target_description)
2894 (arm_create_mprofile_target_description): New function.
2895 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2896 (arm_create_target_description)
2897 (arm_create_mprofile_target_description): New declaration.
2898 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2899 read_description functions.
2900 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2901 Likewise.
2902 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2903 * arm-tdep.c (tdesc_arm_list): New variable.
2904 (arm_register_g_packet_guesses): Call create description functions.
2905 (arm_read_description) (arm_read_mprofile_description): New
2906 function.
2907 * arm-tdep.h (arm_read_description)
2908 (arm_read_mprofile_description): Add declaration.
2909 * configure.tgt: Add new files.
2910
afe09f0b
GL
29112019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2912
2913 * top.c (new_ui_command): Open specified terminal just once.
2914
cd215b2e
TT
29152019-07-18 Tom Tromey <tromey@adacore.com>
2916
2917 * symtab.c (main_name): Constify return type.
2918 * symfile.c (set_initial_language): Update.
2919 * symtab.h (main_name): Constify return type.
2920
d8f68fcb
TT
29212019-07-17 Tom Tromey <tom@tromey.com>
2922
2923 * tui/tui-winsource.c (tui_update_source_window)
2924 (tui_update_source_window_as_is)
2925 (tui_update_source_windows_with_line): Remove return.
2926 * tui/tui-disasm.c (tui_show_disassem)
2927 (tui_show_disassem_and_update_source): Remove return.
2928 * tui/tui.c (tui_reset): Remove return.
2929 * tui/tui-wingeneral.c
2930 (tui_check_and_display_highlight_if_needed): Remove return.
2931
ca5af91e
TT
29322019-07-17 Tom Tromey <tom@tromey.com>
2933
2934 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2935
5104fe36
TT
29362019-07-17 Tom Tromey <tom@tromey.com>
2937
2938 * tui/tui-winsource.h (struct tui_exec_info_window)
2939 (struct tui_source_window_base): Move from tui-data.h.
2940 * tui/tui-winsource.c: Move many method definitions from
2941 elsewhere. Remove "structuring" comments.
2942 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2943 (tui_source_window_base::refresh_window): Move to
2944 tui-winsource.c.
2945 * tui/tui-win.c (tui_source_window_base::refresh_all)
2946 (tui_source_window_base::update_tab_width)
2947 (tui_source_window_base::set_new_height)
2948 (tui_source_window_base::do_make_visible_with_new_height): Move to
2949 tui-winsource.c.
2950 * tui/tui-source.h: Update.
2951 * tui/tui-source.c (tui_source_window_base::reset): Move to
2952 tui-winsource.c.
2953 * tui/tui-disasm.h: Update.
2954 * tui/tui-data.h (struct tui_exec_info_window): Move to
2955 tui-winsource.h.
2956 (struct tui_source_window_base): Likewise.
2957 * tui/tui-data.c (tui_source_window_base::clear_detail)
2958 (tui_source_window_base, ~tui_source_window_base): Move to
2959 tui-winsource.c.
2960
daa15dde
TT
29612019-07-17 Tom Tromey <tom@tromey.com>
2962
2963 * tui/tui-win.c (tui_resize_all)
2964 (tui_source_window_base::update_tab_width)
2965 (tui_adjust_win_heights): Update.
2966 (tui_win_info::make_invisible_and_set_new_height): Rename from
2967 make_invisible_and_set_new_height.
2968 * tui/tui-data.h (struct tui_win_info)
2969 <make_invisible_and_set_new_height>: New method.
2970
bfad4537
TT
29712019-07-17 Tom Tromey <tom@tromey.com>
2972
2973 * tui/tui.c: Update.
2974 * tui/tui-source.h (struct tui_source_window): Move from
2975 tui-data.h.
2976 * tui/tui-layout.c: Update.
2977 * tui/tui-disasm.c: Update.
2978 * tui/tui-data.h (struct tui_source_window): Move to
2979 tui-source.h.
2980
88f7e873
TT
29812019-07-17 Tom Tromey <tom@tromey.com>
2982
2983 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2984 tui-data.h.
2985 * tui/tui-data.h (struct tui_disasm_window): Move to
2986 tui-disasm.h.
2987
96bd6233
TT
29882019-07-17 Tom Tromey <tom@tromey.com>
2989
2990 * tui/tui-regs.h (struct tui_data_item_window): Move from
2991 tui-data.h.
2992 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2993 * tui/tui-data.h (struct tui_data_item_window): Move to
2994 tui-regs.h.
2995 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2996
ce38393b
TT
29972019-07-17 Tom Tromey <tom@tromey.com>
2998
2999 * tui/tui.c: Update.
3000 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3001 (tui_cmd_window::max_height): Move to tui-command.c.
3002 * tui/tui-layout.c: Update.
3003 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3004 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3005 tui-command.c.
3006 * tui/tui-command.h (struct tui_cmd_window): Move from
3007 tui-data.h.
3008 * tui/tui-command.c: Remove "structuring" comments.
3009 (tui_cmd_window::clear_detail)
3010 (tui_cmd_window::do_make_visible_with_new_height)
3011 (tui_cmd_window::max_height): Move from elsewhere.
3012
2d8b51cb
TT
30132019-07-17 Tom Tromey <tom@tromey.com>
3014
3015 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3016 Now static.
3017 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3018 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3019
18ab23af
TT
30202019-07-17 Tom Tromey <tom@tromey.com>
3021
3022 * tui/tui.c: Update.
3023 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3024 tui-regs.c.
3025 * tui/tui-windata.h: Remove file.
3026 * tui/tui-windata.c: Remove file.
3027 * tui/tui-win.c (tui_data_window::set_new_height)
3028 (tui_data_window::do_make_visible_with_new_height): Move to
3029 tui-regs.c.
3030 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3031 * tui/tui-regs.c: Remove "structuring" comments.
3032 (tui_data_window::first_data_item_displayed)
3033 (tui_data_window::delete_data_content_windows)
3034 (tui_data_window::erase_data_content)
3035 (tui_data_window::display_all_data)
3036 (tui_data_window::refresh_all)
3037 (tui_data_window::do_scroll_vertical)
3038 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3039 (tui_data_window::do_make_visible_with_new_height)
3040 (tui_data_window::refresh_window): Move from elsewhere.
3041 (_initialize_tui_regs): Move to end of file.
3042 * tui/tui-layout.c: Update.
3043 * tui/tui-hooks.c: Update.
3044 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3045 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3046 tui-regs.c.
3047 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3048
88b7e7cc
TT
30492019-07-17 Tom Tromey <tom@tromey.com>
3050
3051 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3052 seen.
3053
0fcd3711
TT
30542019-07-17 Tom Tromey <tom@tromey.com>
3055
3056 * tui/tui-win.c (tui_source_window_base::set_new_height)
3057 (tui_source_window_base::do_make_visible_with_new_height): Use
3058 m_has_locator field directly.
3059 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3060 method.
3061 (struct tui_source_window_base) <has_locator>: Likewise.
3062
4a38112d
TT
30632019-07-17 Tom Tromey <tom@tromey.com>
3064
3065 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3066 Don't declare.
3067 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3068 Remove.
3069 * tui/tui-win.c (tui_source_window_base::set_new_height)
3070 (tui_source_window_base::set_new_height)
3071 (make_invisible_and_set_new_height)
3072 (tui_source_window_base::do_make_visible_with_new_height)
3073 (tui_source_window_base::do_make_visible_with_new_height):
3074 Update.
3075 * tui/tui-layout.c (show_source_disasm_command, show_data)
3076 (show_source_or_disasm_and_command): Update.
3077 * tui/tui-layout.c (show_layout): Update.
3078
09129226
TT
30792019-07-17 Tom Tromey <tom@tromey.com>
3080
3081 * tui/tui-layout.c (make_data_window): Remove.
3082 (show_data): Unify creation and re-initialization cases.
3083
4a8a5e84
TT
30842019-07-17 Tom Tromey <tom@tromey.com>
3085
3086 * tui/tui-layout.c (make_source_window, make_disasm_window):
3087 Remove.
3088 (show_data): Unify creation and re-initialization cases.
3089
76d2be8e
TT
30902019-07-17 Tom Tromey <tom@tromey.com>
3091
3092 * tui/tui-layout.c (make_command_window): Remove.
3093 (show_source_disasm_command, show_source_or_disasm_and_command):
3094 Unify creation and re-initialization cases.
3095
890b8bde
TT
30962019-07-17 Tom Tromey <tom@tromey.com>
3097
3098 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3099 creation and re-initialization cases.
3100
2cdfa113
TT
31012019-07-17 Tom Tromey <tom@tromey.com>
3102
3103 * tui/tui-regs.c (tui_get_register): Return void.
3104
8e3cfd09
TT
31052019-07-17 Tom Tromey <tom@tromey.com>
3106
3107 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3108 Simplify.
3109
f4e04977
TT
31102019-07-17 Tom Tromey <tom@tromey.com>
3111
3112 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3113 resetting.
3114
0379b883
TT
31152019-07-17 Tom Tromey <tom@tromey.com>
3116
3117 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3118 * tui/tui-regs.c (tui_reg_layout): New function.
3119 (tui_show_registers, tui_reg_command): Use it.
3120 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3121 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3122 parameters.
3123 (tui_layout_command): Remove.
3124
b7fbad91
TT
31252019-07-17 Tom Tromey <tom@tromey.com>
3126
3127 * tui/tui-layout.h (tui/tui-layout): Return void.
3128 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3129
4e1e56b9
TT
31302019-07-17 Tom Tromey <tom@tromey.com>
3131
3132 * tui/tui-layout.c (show_source_disasm_command, show_data):
3133 Update.
3134 (reset_locator): Remove.
3135 (show_source_or_disasm_and_command): Update.
3136
1e0c09ba
TT
31372019-07-17 Tom Tromey <tom@tromey.com>
3138
3139 * tui/tui-source.c (tui_source_window_base::reset): Remove
3140 win_type parameter.
3141 * tui/tui-layout.c (make_command_window, make_source_window)
3142 (make_disasm_window, make_data_window)
3143 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3144 (reset_locator, show_source_or_disasm_and_command): Update.
3145 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3146 win_type parameter.
3147 (struct tui_source_window_base) <reset>: Likewise.
3148
1bf605de
TT
31492019-07-17 Tom Tromey <tom@tromey.com>
3150
3151 * tui/tui-layout.c (show_source_disasm_command): Use
3152 reset_locator.
3153 (reset_locator): New function.
3154 (init_and_make_win): Remove.
3155 (show_source_or_disasm_and_command): Use reset_locator.
3156
098f9ed4
TT
31572019-07-17 Tom Tromey <tom@tromey.com>
3158
3159 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3160 condition.
3161 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3162 Remove condition.
3163 * tui/tui-source.c (tui_source_window_base::reset): New method.
3164 * tui/tui-layout.c (make_command_window): Don't call
3165 init_and_make_win.
3166 (make_source_window, make_disasm_window): Don't call
3167 make_source_or_disasm_window.
3168 (make_data_window): Don't call init_and_make_win. Change calling
3169 convention.
3170 (show_source_disasm_command, show_data): Simplify.
3171 (make_source_or_disasm_window): Remove.
3172 (show_source_or_disasm_and_command): Simplify.
3173 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3174 (struct tui_source_window_base) <reset>: Likewise.
3175 <execution_info>: Remove initializer.
3176 * tui/tui-data.c (tui_source_window_base): Initialize
3177 execution_info.
3178
80110957
TT
31792019-07-17 Tom Tromey <tom@tromey.com>
3180
3181 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3182 variable.
3183
cf82af05
TT
31842019-07-17 Tom Tromey <tom@tromey.com>
3185
3186 * tui/tui.c (tui_rl_other_window): Update.
3187 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3188 superclass method first. Always iterate over regs_content.
3189 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3190 method.
3191 * tui/tui-win.c (tui_set_focus_command): Update.
3192
01aeb396
TT
31932019-07-17 Tom Tromey <tom@tromey.com>
3194
3195 * tui/tui-win.c (tui_set_focus_command): Rename from
3196 tui_set_focus. Call tui_enable.
3197 (tui_set_focus_command): Remove.
3198
fd6c75ee
TT
31992019-07-17 Tom Tromey <tom@tromey.com>
3200
3201 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3202 refresh_window.
3203 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3204 touchwin.
3205 (tui_data_window::refresh_window): Call refresh_window on data
3206 items. Always call superclass refresh_window.
3207 (tui_win_info::refresh): Remove.
3208 (tui_source_window_base::refresh_window): Update.
3209 (tui_refresh_all): Update.
3210 * tui/tui-layout.c (show_source_disasm_command): Remove call to
3211 refresh_window.
3212 (show_source_or_disasm_and_command): Likewise.
3213 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3214 (struct tui_source_window_base) <refresh>: Likewise.
3215
f6cc34a9
TT
32162019-07-17 Tom Tromey <tom@tromey.com>
3217
3218 * tui/tui-winsource.c (tui_clear_source_content)
3219 (tui_show_source_content): Update.
3220 * tui/tui-source.c (tui_source_window::showing_source_p): Check
3221 whether content is empty.
3222 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3223 Remove.
3224
f31ec9af
TT
32252019-07-17 Tom Tromey <tom@tromey.com>
3226
3227 * tui/tui-winsource.c (tui_erase_source_content): Clear the
3228 window's contents.
3229 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3230 * tui/tui-source.c (tui_set_source_content_nil): Remove.
3231
d1b6f1e5
TT
32322019-07-17 Tom Tromey <tom@tromey.com>
3233
3234 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3235 (struct tui_data_item_window): Update.
3236
d9743a13
TT
32372019-07-17 Tom Tromey <tom@tromey.com>
3238
3239 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3240 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3241 defines.
3242
caf0bc4e
TT
32432019-07-17 Tom Tromey <tom@tromey.com>
3244
3245 * tui/tui-winsource.h (tui_erase_source_content)
3246 (tui_clear_source_content): Remove "display_prompt" parameter.
3247 * tui/tui-winsource.c (tui_update_source_window_as_is)
3248 (tui_update_source_windows_with_addr): Update.
3249 (tui_clear_source_content): Remove "display_prompt" parameter.
3250 (tui_erase_source_content): Likewise. Simplify.
3251 (tui_show_source_content): Update.
3252 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3253 * tui/tui-stack.c (tui_show_frame_info): Update.
3254 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3255 Remove defines.
3256
9d391078
TT
32572019-07-17 Tom Tromey <tom@tromey.com>
3258
3259 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3260 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
3261 parameter.
3262 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
3263 parameter.
3264
a38da35d
TT
32652019-07-17 Tom Tromey <tom@tromey.com>
3266
3267 * tui/tui-winsource.c (tui_clear_source_content)
3268 (tui_show_source_content, tui_show_exec_info_content)
3269 (tui_clear_exec_info_content): Update.
3270 * tui/tui-stack.c (tui_show_locator_content): Update.
3271 (tui_show_frame_info): Update.
3272 * tui/tui-source.h (tui_source_window): Don't declare.
3273 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
3274 from tui_source_is_displayed.
3275 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
3276 Remove field.
3277 (struct tui_source_window_base) <content_in_use>: New field. Now
3278 bool.
3279 (struct tui_source_window) <showing_source_p>: New method.
3280 (TUI_SRC_WIN): Change cast.
3281 * tui/tui-data.c (tui_initialize_static_data): Update.
3282
c2cd8994
TT
32832019-07-17 Tom Tromey <tom@tromey.com>
3284
3285 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
3286 location_matches_p.
3287 * tui/tui-source.c (tui_source_window::location_matches_p): New
3288 method.
3289 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
3290 method.
3291 * tui/tui-data.h (struct tui_source_window_base)
3292 <location_matches_p>: New method.
3293 (struct tui_source_window, struct tui_disasm_window)
3294 <location_matches_p>: Likewise.
3295
4dde7b34
TT
32962019-07-17 Tom Tromey <tom@tromey.com>
3297
3298 * tui/tui-win.c (tui_set_win_height_command): Rename from
3299 tui_set_win_height.
3300 (tui_set_win_height_command): Remove.
3301
b73dd877
TT
33022019-07-17 Tom Tromey <tom@tromey.com>
3303
3304 * tui/tui-source.c (tui_source_window): New constructor. Add
3305 observer.
3306 (~tui_source_window): New destructor.
3307 (tui_source_window::style_changed): New method.
3308 * tui/tui-hooks.c (tui_redisplay_source): Remove.
3309 (tui_attach_detach_observers): Update.
3310 * tui/tui-data.h (struct tui_source_window): Make constructor not
3311 inline. Add destructor.
3312 (struct tui_source_window) <style_changed>: New method.
3313 <m_observable>: New member.
3314
ae2b5380
TT
33152019-07-17 Tom Tromey <tom@tromey.com>
3316
3317 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3318 * tui/tui-win.c (tui_resize_all): Fix typo.
3319
1ce3e844
TT
33202019-07-17 Tom Tromey <tom@tromey.com>
3321
3322 * tui/tui-wingeneral.h (tui_refresh_all): Update.
3323 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3324 (tui_refresh_all): Remove "list" parameter. Use foreach.
3325 * tui/tui-win.c (window_name_completer): Use foreach.
3326 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3327 (update_tab_width): Likewise.
3328 * tui/tui-layout.c (show_layout): Update.
3329 * tui/tui-data.h (class tui_window_iterator): New.
3330 (struct all_tui_windows): New.
3331 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3332
fe3eaf1c
TT
33332019-07-17 Tom Tromey <tom@tromey.com>
3334
3335 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3336 parameter. Don't reference globals.
3337 (tui_reg_command): Update.
3338
368c1354
TT
33392019-07-17 Tom Tromey <tom@tromey.com>
3340
3341 * tui/tui-regs.c (tui_show_registers): Simplify.
3342
e80cd204
TT
33432019-07-17 Tom Tromey <tom@tromey.com>
3344
3345 * tui/tui-regs.c (tui_show_registers): Update.
3346 (tui_show_register_group): Add win_info parameter.
3347
aca2dd16
TT
33482019-07-17 Tom Tromey <tom@tromey.com>
3349
3350 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3351 Rename from tui_display_reg_element_at_line.
3352 (tui_data_window::display_registers_from_line): Update.
3353 * tui/tui-data.h (struct tui_data_window)
3354 <display_reg_element_at_line>: New method.
3355
517e9505
TT
33562019-07-17 Tom Tromey <tom@tromey.com>
3357
3358 * tui/tui-regs.h (tui_display_registers_from)
3359 (tui_display_registers_from_line): Don't declare.
3360 * tui/tui-windata.c (tui_data_window::display_all_data)
3361 (tui_data_window::refresh_all)
3362 (tui_data_window::do_scroll_vertical): Update.
3363 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3364 from tui_display_registers_from.
3365 (tui_display_reg_element_at_line): Update.
3366 (tui_data_window::display_registers_from_line): Rename from
3367 tui_display_registers_from_line.
3368 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3369 display_registers_from_line>: New methods.
3370
f76d8b19
TT
33712019-07-17 Tom Tromey <tom@tromey.com>
3372
3373 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3374 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3375 from tui_erase_data_content.
3376 (tui_data_window::display_all_data)
3377 (tui_data_window::refresh_all)
3378 (tui_data_window::do_scroll_vertical): Update.
3379 * tui/tui-regs.c (tui_show_registers): Update.
3380 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3381 New method.
3382
b4094625
TT
33832019-07-17 Tom Tromey <tom@tromey.com>
3384
3385 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3386 declare.
3387 * tui/tui-windata.c
3388 (tui_data_window::delete_data_content_windows): Rename from
3389 tui_delete_data_content_windows.
3390 (tui_data_window::display_all_data)
3391 (tui_data_window::do_scroll_vertical): Update.
3392 * tui/tui-data.h (struct tui_data_window)
3393 <delete_data_content_windows>: New method.
3394
c223a729
TT
33952019-07-17 Tom Tromey <tom@tromey.com>
3396
3397 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3398 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3399
50daf268
TT
34002019-07-17 Tom Tromey <tom@tromey.com>
3401
3402 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3403 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3404 from tui_display_all_data.
3405 * tui/tui-win.c
3406 (tui_data_window::do_make_visible_with_new_height): Update.
3407 * tui/tui-regs.c (tui_show_registers): Update.
3408 * tui/tui-layout.c (tui_set_layout): Update.
3409 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3410 method.
3411
df5f8cab
TT
34122019-07-17 Tom Tromey <tom@tromey.com>
3413
3414 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3415 * tui/tui-windata.c (tui_display_data_from): Remove.
3416 (tui_data_window::refresh_all): Update.
3417
80cb6c27
TT
34182019-07-17 Tom Tromey <tom@tromey.com>
3419
3420 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3421 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3422 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3423 tui_display_registers_from_line.
3424 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3425 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3426 "force_display" parameter.
3427
baff0c28
TT
34282019-07-17 Tom Tromey <tom@tromey.com>
3429
3430 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3431 declare.
3432 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3433 Rename from tui_first_reg_element_no_inline.
3434 (tui_display_reg_element_at_line)
3435 (tui_display_registers_from_line): Update.
3436 * tui/tui-data.h (struct tui_data_window)
3437 <first_reg_element_no_inline>: New method.
3438
3b23c5f2
TT
34392019-07-17 Tom Tromey <tom@tromey.com>
3440
3441 * tui/tui-windata.c (tui_display_data_from)
3442 (tui_data_window::do_scroll_vertical): Update.
3443 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3444 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3445 Rename from tui_line_from_reg_element_no.
3446 (tui_display_registers_from_line): Update.
3447 * tui/tui-data.h (struct tui_data_window)
3448 <line_from_reg_element_no>: New method.
3449
0b5ec218
TT
34502019-07-17 Tom Tromey <tom@tromey.com>
3451
3452 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3453 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3454 tui_last_regs_line_no.
3455 (tui_display_reg_element_at_line)
3456 (tui_display_registers_from_line): Update.
3457 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3458 method.
3459
0807ab7b
TT
34602019-07-17 Tom Tromey <tom@tromey.com>
3461
3462 PR tui/24722:
3463 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3464 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3465 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3466 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3467 (tui_update_breakpoint_info): Likewise.
3468 * tui/tui-hooks.c (tui_event_create_breakpoint)
3469 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3470 Update.
3471
9ad7fdef
TT
34722019-07-17 Tom Tromey <tom@tromey.com>
3473
3474 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3475
5813316f
TT
34762019-07-17 Tom Tromey <tom@tromey.com>
3477
3478 * tui/tui-winsource.c (tui_update_source_window_as_is)
3479 (tui_update_source_windows_with_addr): Update.
3480 * tui/tui-source.h (tui_set_source_content)
3481 (tui_show_symtab_source): Add "win_info" parameter.
3482 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3483 parameter.
3484 (tui_show_symtab_source): Likewise.
3485
00e264e7
TT
34862019-07-17 Tom Tromey <tom@tromey.com>
3487
3488 * tui/tui-wingeneral.c
3489 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3490
06210ce4
TT
34912019-07-17 Tom Tromey <tom@tromey.com>
3492
3493 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3494 (struct tui_cmd_window) <can_scroll>: New method.
3495 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3496 method.
3497
381befee
TT
34982019-07-17 Tom Tromey <tromey@adacore.com>
3499
3500 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3501 do_field_signed>: Rename. Change type of "value".
3502 * ui-out.c (ui_out::field_signed): Rename from field_int.
3503 Change type of "value".
3504 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3505 type of "value".
3506 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3507 do_field_int. Change type of "value".
3508 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3509 do_field_int. Change type of "value".
3510 * tracepoint.c (trace_status_mi, tfind_1)
3511 (print_one_static_tracepoint_marker): Update.
3512 * thread.c (print_thread_info_1, print_selected_thread_frame):
3513 Update.
3514 * stack.c (print_frame, print_frame_info): Update.
3515 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3516 Update.
3517 * source.c (print_source_lines_base): Update.
3518 * skip.c (info_skip_command): Update.
3519 * record-btrace.c (btrace_ui_out_decode_error)
3520 (btrace_call_history_src_line): Update.
3521 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3522 Update.
3523 * progspace.c (print_program_space): Update.
3524 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3525 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3526 do_field_int. Change type of "value".
3527 * mi/mi-out.c (mi_ui_out::do_table_begin)
3528 (mi_ui_out::do_table_header): Update.
3529 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3530 type of "value".
3531 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3532 (mi_cmd_data_list_changed_registers, output_register)
3533 (mi_cmd_data_read_memory, mi_load_progress)
3534 (mi_cmd_trace_frame_collected): Update.
3535 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3536 Update.
3537 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3538 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3539 (mi_cmd_var_list_children, varobj_update_one): Update.
3540 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3541 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3542 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3543 * inferior.c (print_inferior): Update.
3544 * gdb_bfd.c (print_one_bfd): Update.
3545 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3546 Update.
3547 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3548 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3549 do_field_int. Change type of "value".
3550 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3551 do_field_int. Change type of "value".
3552 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3553 (print_one_breakpoint_location, print_it_catch_fork)
3554 (print_one_catch_fork, print_it_catch_vfork)
3555 (print_one_catch_vfork, print_it_catch_solib)
3556 (print_it_catch_exec, print_it_ranged_breakpoint)
3557 (print_mention_watchpoint, print_mention_masked_watchpoint)
3558 (bkpt_print_it, update_static_tracepoint): Update.
3559 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3560 * break-catch-syscall.c (print_it_catch_syscall): Update.
3561 * ada-tasks.c (print_ada_task_info): Update.
3562 * ada-lang.c (print_it_exception, print_mention_exception):
3563 Update.
3564
6b78c3f8
AB
35652019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3566
3567 PR breakpoints/24541
3568 * gdbarch.c: Regenerate.
3569 * gdbarch.h: Regenerate.
3570 * gdbarch.sh: Adjust return type and parameter types for
3571 'stap_adjust_register'.
3572 (i386_stap_adjust_register): Adjust signature and return new
3573 register name.
3574 * stap-probe.c (stap_parse_register_operand): Adjust use of
3575 'gdbarch_stap_adjust_register'.
3576
d72a9b85
TT
35772019-07-17 Tom Tromey <tromey@adacore.com>
3578
3579 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3580 declare VEC.
3581 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3582 std::vector.
3583 (struct s390_process_info): Add initializers.
3584 (s390_add_process): Use new.
3585 (s390_linux_nat_target::low_forget_process): Use delete.
3586 (s390_linux_nat_target::low_new_fork)
3587 (s390_linux_nat_target::stopped_by_watchpoint)
3588 (s390_linux_nat_target::low_prepare_to_resume)
3589 (s390_linux_nat_target::insert_watchpoint)
3590 (s390_linux_nat_target::insert_hw_breakpoint)
3591 (s390_linux_nat_target::remove_watchpoint)
3592 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3593
206e6c58
JB
35942019-07-16 John Baldwin <jhb@FreeBSD.org>
3595
3596 * aarch64-fbsd-nat.c: Include regcache.h.
3597 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3598 argument.
3599 (aarch64_fbsd_nat_target::fetch_registers)
3600 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3601 variable.
3602 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3603
cbde90f2
JB
36042019-07-16 John Baldwin <jhb@FreeBSD.org>
3605
3606 * fbsd-nat.c: Include gdbarch.h.
3607
07128006
TT
36082019-07-15 Tom Tromey <tromey@adacore.com>
3609
3610 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3611
1f77b012
TT
36122019-07-15 Tom Tromey <tromey@adacore.com>
3613
3614 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3615 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3616 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3617 * cli-out.c (cli_ui_out::do_field_int): New method.
3618 * ui-out.c (ui_out::field_unsigned): New method.
3619 * symfile.c (generic_load): Use field_unsigned.
3620 (print_transfer_performance): Likewise.
3621 * record-btrace.c (ui_out_field_uint): Remove.
3622 (btrace_call_history_insn_range, btrace_call_history): Use
3623 field_unsigned.
3624 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3625 field_unsigned.
3626 * ui-out.h (class ui_out) <field_unsigned>: New method.
3627 <do_field_unsigned>: Likewise.
3628
33eca680
TT
36292019-07-15 Tom Tromey <tromey@adacore.com>
3630
3631 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3632 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3633 * target.c (flash_erase_command): Use field_string.
3634 * infrun.c (print_signal_received_reason): Use field_string.
3635 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3636 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3637 field_string.
3638 * ada-tasks.c (print_ada_task_info): Use field_string.
3639
ca8d69be
TT
36402019-07-15 Tom Tromey <tromey@adacore.com>
3641
3642 * target.c (flash_erase_command): Use field_core_addr.
3643 * symfile.c (generic_load): Use field_core_addr.
3644 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3645 Use field_core_addr.
3646 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3647 field_core_addr.
3648
0d4e84ed
AB
36492019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3650
3651 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3652 value if its desired type is smaller than a CORE_ADDR and signed.
3653
9a49df9d
AB
36542019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3655
3656 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3657 of changes to field names, and use new is_reference field to
3658 decide if a property is a reference or not.
3659 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3660 field.
3661 (struct dwarf2_property_baton): Update header comment, rename
3662 'referenced_type' to 'property_type' and update comments.
3663 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3664 default property type, store in property baton, update to take
3665 accound of renamed field.
3666 (read_func_scope): Update call to attr_to_dynamic_prop.
3667 (read_array_type): Likewise.
3668 (dwarf2_per_cu_addr_sized_int_type): New function.
3669 (read_subrange_index_type): Move type finding code to
3670 dwarf2_per_cu_addr_sized_int_type.
3671 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3672 (dwarf2_per_cu_addr_type): New function.
3673 (set_die_type): Update calls to attr_to_dynamic_prop.
3674
b86352cf
AB
36752019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3676
3677 * dwarf2read.c (read_subrange_index_type): New function.
3678 (read_subrange_type): Move code into new function and call it.
3679 * gdbtypes.c (create_range_type): Add some asserts.
3680
603490bf
AB
36812019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3682
3683 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3684 update return statements.
3685 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3686 declaration, and update comment to match.
3687 * gdbtypes.c (resolve_dynamic_array): Update call to
3688 dwarf2_evaluate_property to match new return type.
3689
592f9d27
AB
36902019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3691
3692 * valarith.c (value_subscripted_rvalue): Change lowerbound
3693 parameter type from int to LONGEST.
3694 * value.h (value_subscripted_rvalue): Likewise in declaration.
3695
60cfcb20
AB
36962019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3697
3698 * cli/cli-utils.c (info_print_command_completer): New function.
3699 * cli/cli-utils.h: Add 'completer.h' include, and forward
3700 declaration for 'struct cmd_list_element'.
3701 (info_print_command_completer): Declare.
3702 * stack.c (_initialize_stack): Add completer for 'info locals' and
3703 'info args'.
3704 * symtab.c (_initialize_symtab): Add completer for 'info
3705 variables' and 'info functions'.
3706 * NEWS: Mention completion for additional info commands.
3707
b16507e0
AB
37082019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3709
3710 * cli/cli-utils.c (extract_info_print_args): Delete.
3711 (extract_arg_maybe_quoted): Delete.
3712 (info_print_options_defs): New variable.
3713 (make_info_print_options_def_group): New function.
3714 (extract_info_print_options): Define new function.
3715 * cli/cli-utils.h (extract_info_print_args): Delete.
3716 (struct info_print_options): New structure.
3717 (extract_info_print_options): Declare new function.
3718 * stack.c (info_locals_command): Update to use new
3719 extract_info_print_options, also add a header comment.
3720 (info_args_command): Likewise.
3721 * symtab.c (info_variables_command): Likewise.
3722 (info_functions_command): Likewise.
3723
021d8588
AB
37242019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3725
3726 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3727 to extract string arguments.
3728 * common/common-utils.c (extract_string_maybe_quoted): New function.
3729 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3730
b777eb6d
TT
37312019-07-11 Tom Tromey <tromey@adacore.com>
3732
3733 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3734 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3735 * top.h (gdbinit): Don't declare.
3736 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3737 into...
3738 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3739 * top.c (gdb_init): Don't call init_cli_cmds.
3740 (gdbinit): Remove.
3741 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3742
72ee03ff
TT
37432019-07-11 Tom Tromey <tromey@adacore.com>
3744
3745 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3746 after it has been moved.
3747
00db9531
SM
37482019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3749
3750 * valops.c (value_must_coerce_to_target): Change return type to
3751 bool.
3752 * value.h (value_must_coerce_to_target): Likewise.
3753
f2478a7e
SM
37542019-07-10 Simon Marchi <simon.marchi@efficios.com>
3755
3756 * breakpoint.c (is_hardware_watchpoint): Remove
3757 forward-declaration.
3758 (is_masked_watchpoint): Change return type to bool.
3759 (is_tracepoint): Likewise.
3760 (is_breakpoint): Likewise.
3761 (is_hardware_watchpoint): Likewise.
3762 (is_watchpoint): Likewise.
3763 (is_no_memory_software_watchpoint): Likewise.
3764 (is_catchpoint): Likewise.
3765 (breakpoint_1): Make FILTER parameter's return type bool.
3766 is_masked_watchpoint): Change return type to bool.
3767 (save_breakpoints): Make FILTER parameter's return type bool.
3768 * breakpoint.h (is_breakpoint): Change return type to bool.
3769 (is_watchpoint): Likewise.
3770 (is_catchpoint): Likewise.
3771 (is_tracepoint): Likewise.
3772
0d12e84c
TT
37732019-07-10 Tom Tromey <tom@tromey.com>
3774
3775 * defs.h: Don't include gdbarch.h.
3776 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3777 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3778 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3779 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3780 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3781 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3782 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3783 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3784 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3785 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3786 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3787 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3788 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3789 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3790 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3791 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3792 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3793 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3794 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3795 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3796 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3797 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3798 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3799 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3800 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3801 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3802 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3803
f06f1252
TT
38042019-07-10 Tom Tromey <tromey@adacore.com>
3805
3806 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3807 * breakpoint.c (init_ada_exception_breakpoint): Register as
3808 bp_catchpoint.
3809 (print_one_breakpoint_location, print_one_breakpoint): Use
3810 is_ada_exception_catchpoint.
3811 * ada-lang.c (class ada_catchpoint_location): Pass
3812 bp_loc_software_breakpoint to bp_location constructor.
3813 (is_ada_exception_catchpoint): New function.
3814
7a5d944b
TT
38152019-07-10 Tom Tromey <tromey@adacore.com>
3816
3817 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3818 VEC.
3819 (struct arm_exidx_entry): New method operator<.
3820 (struct arm_exidx_data) <section_maps>: Change type.
3821 (arm_exidx_data_free): Remove.
3822 (arm_exidx_data_key): Change type. Move lower.
3823 (arm_exidx_new_objfile): Update.
3824 (arm_compare_exidx_entries): Remove.
3825 (arm_find_exidx_entry, _initialize_arm_tdep)
3826
48c66e1d
TT
38272019-07-10 Tom Tromey <tromey@adacore.com>
3828
3829 * solib-spu.c (ocl_program_data_key): Change type.
3830 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3831 Update.
3832
a269fbf1
TT
38332019-07-10 Tom Tromey <tromey@adacore.com>
3834
3835 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3836 (struct solib_aix_inferior_data) <library_list>: Change type.
3837 (solib_aix_inferior_data_handle): Change type.
3838 (get_solib_aix_inferior_data): Update.
3839 (solib_aix_free_library_list): Remove.
3840 (library_list_start_library): Update.
3841 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3842 return type.
3843 (solib_aix_get_library_list)
3844 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3845 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3846
c294730c
TT
38472019-07-10 Tom Tromey <tromey@adacore.com>
3848
3849 * solib-dsbt.c (struct dsbt_info): Add initializers.
3850 (solib_dsbt_pspace_data): Change type.
3851 (dsbt_pspace_data_cleanup): Remove.
3852 (get_dsbt_info, _initialize_dsbt_solib): Update.
3853
9d52077d
TT
38542019-07-10 Tom Tromey <tromey@adacore.com>
3855
3856 * spu-tdep.c (spu_overlay_data): Change type.
3857 (spu_get_overlay_table, spu_overlay_new_objfile)
3858 (_initialize_spu_tdep): Update.
3859
22a20dca
TT
38602019-07-10 Tom Tromey <tromey@adacore.com>
3861
3862 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3863 destructor.
3864 (dbx_objfile_data_key): Change type and declare later.
3865 (DBX_SYMFILE_INFO): Rewrite.
3866 * dbxread.c (dbx_objfile_data_key): Change type.
3867 (dbx_symfile_init): Update.
3868 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3869 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3870 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3871
cb60f420
TT
38722019-07-10 Tom Tromey <tromey@adacore.com>
3873
3874 * jit.c (jit_program_space_key): Change type. Move lower.
3875 (get_jit_program_space_data): Update.
3876 (jit_program_space_data_cleanup): Remove.
3877 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3878 Update.
3879 (struct jit_program_space_data): Add initializers.
3880
51df2ae3
TT
38812019-07-10 Tom Tromey <tromey@adacore.com>
3882
3883 * solib-darwin.c (struct darwin_info): Add initializers.
3884 (solib_darwin_pspace_data): Change type.
3885 (darwin_pspace_data_cleanup): Remove.
3886 (get_darwin_info, _initialize_darwin_solib): Update.
3887
18101a35
TT
38882019-07-10 Tom Tromey <tromey@adacore.com>
3889
3890 * remote-sim.c (struct sim_inferior_data): Add initializers,
3891 constructor, and destructor.
3892 (sim_inferior_data_key): Change type. Move lower.
3893 (check_for_duplicate_sim_descriptor): Update.
3894 (get_sim_inferior_data): Use new. Update.
3895 (~sim_inferior_data_cleanup): Rename from
3896 sim_inferior_data_cleanup. Simplify.
3897 (gdbsim_close_inferior, simulator_command)
3898 (sim_command_completer, _initialize_remote_sim): Update.
3899 (next_pid, INITIAL_PID): Move earlier.
3900
05b08ac1
TT
39012019-07-10 Tom Tromey <tromey@adacore.com>
3902
3903 * python/python-internal.h (create_thread_object): Return
3904 gdbpy_ref.
3905 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3906 * python/py-inferior.c (struct threadlist_entry): Add
3907 constructor.
3908 <thread_obj>: Now a gdbpy_ref.
3909 (thread_to_thread_object): Update.
3910 (add_thread_object): Use new.
3911 (delete_thread_object): Use delete.
3912 (infpy_threads): Update.
3913 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3914 GIL.
3915
32372d80
TT
39162019-07-10 Tom Tromey <tromey@adacore.com>
3917
3918 * valops.c (value_cast): Specialize error message for Ada.
3919
5c458ae8
SM
39202019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3921
3922 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3923
4c462cb0
SM
39242019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3925
3926 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3927 bpstat_should_step): Return bool, adjust comments.
3928 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3929 bpstat_should_step): Likewise.
3930
89abbcc2
AH
39312019-07-10 Alan Hayward <alan.hayward@arm.com>
3932
3933 * features/Makefile: Use feature target descriptions for Arm.
3934 * features/arm/arm-core.c: Generate new file.
3935 * features/arm/arm-fpa.c: Likewise.
3936 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3937 * features/arm/arm-m-profile.c: Likewise.
3938 * features/arm/arm-vfpv2.c: Likewise.
3939 * features/arm/arm-vfpv3.c: Likewise.
3940 * features/arm/xscale-iwmmxt.c: Likewise.
3941 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3942
166a82be
AH
39432019-07-10 Alan Hayward <alan.hayward@arm.com>
3944
3945 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3946 ptrace earlier.
3947
9fb4c7e9
AH
39482019-07-10 Alan Hayward <alan.hayward@arm.com>
3949
3950 * features/aarch64-pauth.c: Regenerate.
3951
e2d0f980
SM
39522019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3953
3954 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3955 bool.
3956 (bpstat_what): Use false instead of 0.
3957
a38118e5
PA
39582019-07-09 Pedro Alves <palves@redhat.com>
3959
3960 * break-catch-throw.c (is_exception_catchpoint): New.
3961 * breakpoint.c (print_one_breakpoint_location): New parameter
3962 'raw_loc'. Handle it. Use
3963 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3964 looking at the breakpoint's type.
3965 (print_one_breakpoint): If handling "maint info breakpoints", also
3966 print locations of exception catchpoints.
3967 * breakpoint.h (is_exception_catchpoint): Declare.
3968
cb1e4e32
PA
39692019-07-09 Pedro Alves <palves@redhat.com>
3970
3971 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3972 "addr" field.
3973 (allocate_location_exception_catchpoint): New.
3974 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3975 (initialize_throw_catchpoint_ops): Install
3976 allocate_location_exception_catchpoint as allocate_location
3977 method.
3978 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3979 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3980 bp_loc_other.
3981 (breakpoint_address_is_meaningful): Delete.
3982 (bl_address_is_meaningful): New.
3983 (breakpoint_locations_match): Adjust comment.
3984 (bp_location_from_bp_type): New, factored out of...
3985 (bp_location::bp_location(breakpoint *)): ... this.
3986 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3987 factored out of...
3988 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3989 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3990 breakpoint_address_is_meaningful.
3991 (bp_locations_compare): Adjust comment.
3992 (update_global_location_list): Use bl_address_is_meaningful
3993 instead of breakpoint_address_is_meaningful.
3994 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3995 explicit.
3996 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3997 * python/py-breakpoint.c (bppy_get_location): No longer check
3998 whether location is null.
3999
b58a68fe
PA
40002019-07-09 Pedro Alves <palves@redhat.com>
4001
4002 PR c++/15468
4003 * breakpoint.c (print_one_breakpoint_location): Remove
4004 single-location assert.
4005
268a13a5
TT
40062019-07-09 Tom Tromey <tom@tromey.com>
4007
4008 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4009 * configure: Rebuild.
4010 * configure.ac: Change common to gdbsupport.
4011 * gdbsupport: Rename from common.
4012 * acinclude.m4: Change common to gdbsupport.
4013 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4014 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4015 gdbsupport.
4016 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4017 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4018 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4019 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4020 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4021 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4022 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4023 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4024 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4025 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4026 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4027 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4028 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4029 coff-pe-read.c, command.h, compile/compile-c-support.c,
4030 compile/compile-c.h, compile/compile-cplus-symbols.c,
4031 compile/compile-cplus-types.c, compile/compile-cplus.h,
4032 compile/compile-loc2c.c, compile/compile.c, completer.c,
4033 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4034 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4035 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4036 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4037 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4038 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4039 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4040 features/aarch64-core.c, features/aarch64-fpu.c,
4041 features/aarch64-pauth.c, features/aarch64-sve.c,
4042 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4043 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4044 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4045 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4046 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4047 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4048 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4049 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4050 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4051 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4052 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4053 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4054 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4055 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4056 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4057 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4058 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4059 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4060 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4061 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4062 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4063 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4064 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4065 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4066 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4067 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4068 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4069 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4070 minsyms.c, mips-linux-tdep.c, namespace.h,
4071 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4072 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4073 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4074 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4075 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4076 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4077 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4078 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4079 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4080 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4081 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4082 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4083 procfs.c, producer.c, progspace.h, psymtab.h,
4084 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4085 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4086 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4087 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4088 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4089 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4090 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4091 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4092 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4093 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4094 target-memory.c, target.c, target.h, target/waitstatus.c,
4095 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4096 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4097 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4098 unittests/array-view-selftests.c,
4099 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4100 unittests/common-utils-selftests.c,
4101 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4102 unittests/format_pieces-selftests.c,
4103 unittests/function-view-selftests.c,
4104 unittests/lookup_name_info-selftests.c,
4105 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4106 unittests/mkdir-recursive-selftests.c,
4107 unittests/observable-selftests.c,
4108 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4109 unittests/parse-connection-spec-selftests.c,
4110 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4111 unittests/scoped_fd-selftests.c,
4112 unittests/scoped_mmap-selftests.c,
4113 unittests/scoped_restore-selftests.c,
4114 unittests/string_view-selftests.c, unittests/style-selftests.c,
4115 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4116 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4117 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4118 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4119 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4120 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4121
5b0e2db4
AB
41222019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4123
4124 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4125 bool value.
4126 (decode_digits_ordinary): Set explicit_line field in sal.
4127 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4128 symtab_and_line that was set on an explicit line number in
4129 assembler code. Do always update the recorded symtab and line if
4130 we do skip the prologue.
4131
0ba852ab
AB
41322019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4133
4134 * breakpoint.c (set_breakpoint_location_function): Remove
4135 explicit_loc parameter.
4136 (momentary_breakpoint_from_master): Update call to
4137 set_breakpoint_location_function.
4138 (add_location_to_breakpoint): Likewise.
4139
b3a7d171
AB
41402019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4141
4142 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4143 required features based on default bfd type when no specific bfd
4144 is present.
4145
1f6f6e21
PW
41462019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4147
4148 * NEWS: Mention that GDB printf and eval commands can now print
4149 C-style and Ada-style convenience var strings without
4150 calling the inferior.
4151 * printcmd.c (printf_c_string): Locally print GDB internal var
4152 instead of transiting via the inferior.
4153 (printf_wide_c_string): Likewise.
4154
41552019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
4156
4157 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4158
0598af48
TT
41592019-07-04 Tom Tromey <tom@tromey.com>
4160
4161 PR tui/24724:
4162 * tui/tui-winsource.c (tui_clear_source_content): Update.
4163 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4164 (tui_update_breakpoint_info): Update.
4165 (tui_set_exec_info_content): Update.
4166 * tui/tui-source.c (tui_set_source_content_nil): Update.
4167 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4168 has_break.
4169 * tui/tui-data.h (enum tui_bp_flag): New.
4170 (tui_bp_flags): New enum flags type.
4171 (struct tui_source_element) <break_mode>: Change type. Rename
4172 from has_break.
4173 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4174 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4175 constants.
4176 * tui/tui-winsource.h: Fix comment.
4177
350fab54
AH
41782019-07-04 Alan Hayward <alan.hayward@arm.com>
4179
4180 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4181 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4182 (store_fpregs_to_thread)
4183 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4184 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4185 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4186 (IWMMXT_REGS_SIZE): Add define.
4187 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4188 (fetch_vfp_regs, store_vfp_regs)
4189 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4190 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4191
f0452268
AH
41922019-07-04 Alan Hayward <alan.hayward@arm.com>
4193
4194 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4195 defines.
4196 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4197 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4198 (ARM_INT_REGISTER_SIZE): ...to this.
4199 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4200 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4201 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4202 (arm_linux_collect_gregset, supply_nwfpe_register)
4203 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4204 defines.
4205 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4206 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4207 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4208 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4209 (arm_return_in_memory, arm_store_return_value)
4210 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4211 (arm_record_ld_st_multiple): Likewise.
4212 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4213 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4214
e935475c
AH
42152019-07-04 Alan Hayward <alan.hayward@arm.com>
4216
4217 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4218 AARCH64_DISPLACED_MODIFIED_INSNS.
4219 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4220 (aarch64_displaced_step_copy_insn): Likewise.
4221 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4222 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4223 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4224 ARM_DISPLACED_MODIFIED_INSNS.
4225 * arm-tdep.c (arm_gdbarch_init): Likewise.
4226 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4227 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4228 (struct arm_displaced_step_closure): Use
4229 ARM_DISPLACED_MODIFIED_INSNS.
4230
df0bb381
AH
42312019-07-04 Alan Hayward <alan.hayward@arm.com>
4232
4233 * features/Makefile: Remove unused xml files.
4234 * features/aarch64.xml: Remove.
4235 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4236 * features/i386/amd64-avx-avx512.xml: Remove.
4237 * features/i386/amd64-avx-linux.xml: Remove.
4238 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4239 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4240 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4241 * features/i386/amd64-avx-mpx.xml: Remove.
4242 * features/i386/amd64-avx.xml: Remove.
4243 * features/i386/amd64-linux.xml: Remove.
4244 * features/i386/amd64-mpx-linux.xml: Remove.
4245 * features/i386/amd64-mpx.xml: Remove.
4246 * features/i386/amd64.xml: Remove.
4247 * features/i386/i386-avx-avx512-linux.xml: Remove.
4248 * features/i386/i386-avx-avx512.xml: Remove.
4249 * features/i386/i386-avx-linux.xml: Remove.
4250 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4251 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4252 * features/i386/i386-avx-mpx-linux.xml: Remove.
4253 * features/i386/i386-avx-mpx.xml: Remove.
4254 * features/i386/i386-avx.xml: Remove.
4255 * features/i386/i386-linux.xml: Remove.
4256 * features/i386/i386-mmx-linux.xml: Remove.
4257 * features/i386/i386-mmx.xml: Remove.
4258 * features/i386/i386-mpx-linux.xml: Remove.
4259 * features/i386/i386-mpx.xml: Remove.
4260 * features/i386/i386.xml: Remove.
4261 * features/i386/x32-avx-avx512-linux.xml: Remove.
4262 * features/i386/x32-avx-linux.xml: Remove.
4263 * features/i386/x32-linux.xml: Remove.
4264
edd6266a
AH
42652019-07-04 Alan Hayward <alan.hayward@arm.com>
4266
4267 * regformats/aarch64.dat: Remove.
4268 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4269 * regformats/i386/amd64-avx-linux.dat: Remove.
4270 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4271 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4272 * regformats/i386/amd64-linux.dat: Remove.
4273 * regformats/i386/amd64-mpx-linux.dat: Remove.
4274 * regformats/i386/amd64.dat: Remove.
4275 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4276 * regformats/i386/i386-avx-linux.dat: Remove.
4277 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4278 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4279 * regformats/i386/i386-linux.dat: Remove.
4280 * regformats/i386/i386-mmx-linux.dat: Remove.
4281 * regformats/i386/i386-mpx-linux.dat: Remove.
4282 * regformats/i386/i386.dat: Remove.
4283 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4284 * regformats/i386/x32-avx-linux.dat: Remove.
4285 * regformats/i386/x32-linux.dat: Remove.
4286
2b40fda7
AH
42872019-07-04 Alan Hayward <alan.hayward@arm.com>
4288
4289 * aarch64-tdep.c: Remove xml self tests.
4290 * amd64-linux-tdep.c: Likewise.
4291 * amd64-tdep.c: Likewise.
4292 * i386-linux-tdep.c: Likewise.
4293 * i386-tdep.c: Likewise.
4294
5f4ba3e7
PA
42952019-07-03 Pedro Alves <palves@redhat.com>
4296
4297 PR cli/24732
4298 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4299 (pipe_cmd_option_defs): New.
4300 (make_pipe_cmd_options_def_group): New.
4301 (pipe_command): Use gdb::option::process_options.
4302 (pipe_command_completer): New function.
4303 (_initialize_cli_cmds): Install completer for "pipe" command.
4304
3d9be6f5
PA
43052019-07-03 Pedro Alves <palves@redhat.com>
4306
4307 * cli/cli-option.c (union option_value) <string>: New field.
4308 (struct option_def_and_value): Add ctor, move ctor, dtor and
4309 use DISABLE_COPY_AND_ASSIGN.
4310 (option_def_and_value::clear_value): New.
4311 (parse_option, save_option_value_in_ctx, get_val_type_str)
4312 (add_setshow_cmds_for_options): Handle var_string.
4313 * cli-option.h (union option_def::var_address) <string>: New
4314 field.
4315 (struct string_option_def): New.
4316 * maint-test-options.c (struct test_options_opts): Add default
4317 ctor and use DISABLE_COPY_AND_ASSIGN.
4318 <string_opt>: New field.
4319 (test_options_opts::~test_options_opts): New.
4320 (test_options_opts::dump): Also dump "-string".
4321 (test_options_option_defs): Install "string.
4322
41fc454c
PA
43232019-07-03 Pedro Alves <palves@redhat.com>
4324
4325 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4326 option_value with a null enumeration.
4327 (complete_options): Save the option values in the context.
4328 (save_option_value_in_ctx): New, factored out from ...
4329 (process_options): ... here.
4330 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4331 of the function.
4332 * maint-test-options.c (test_options_opts::dump): New, factored
4333 out from ...
4334 (maintenance_test_options_command_mode): ... here.
4335 (maintenance_test_options_command_completion_result): Delete.
4336 (maintenance_test_options_command_completion_text): Update
4337 comment.
4338 (maintenance_show_test_options_completion_result): Change
4339 prototype. Just print
4340 maintenance_test_options_command_completion_text.
4341 (save_completion_result): New.
4342 (maintenance_test_options_completer_mode): Pass options context to
4343 complete_options, and then save a dump.
4344 (_initialize_maint_test_options): Use add_cmd to install "maint
4345 show test-options-completion-result".
4346
fdbc9870
PA
43472019-07-03 Pedro Alves <palves@redhat.com>
4348
4349 * NEWS (New commands): Mention "with" and "maint with".
4350 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4351 (with_command, with_command_completer): New.
4352 (pipe_command): Adjust to new repeat_previous
4353 interface.
4354 (_initialize_cli_cmds): Install the "with" command and its "w"
4355 alias.
4356 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4357 declarations.
4358 * cli/cli-setshow.c (parse_cli_var_uinteger)
4359 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4360 argument strings for all var_types.
4361 (get_setshow_command_value_string): New, factored out from ...
4362 (do_show_command): ... this.
4363 * cli/cli-setshow.h: Include <string>.
4364 (get_setshow_command_value_string): Declare.
4365 * command.h (repeat_previous): Now returns const char *. Adjust
4366 comment.
4367 * maint.c: Include "cli/cli-cmds.h".
4368 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4369 (_initialize_maint_cmds): Register the "maintenance with" command.
4370 * top.c (repeat_previous): Move bits from pipe_command here:
4371 Return the saved command line, if any; error out if there's no
4372 command to relaunch.
4373
c6ac8931
PA
43742019-07-03 Pedro Alves <palves@redhat.com>
4375
4376 * NEWS (New commands): Mention "maint set/show test-settings"
4377 instead of "maint test-settings".
4378 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4379 (maintenance_test_settings_set_list): Rename to ...
4380 (maintenance_set_test_settings_list): ... this.
4381 (maintenance_test_settings_show_list): Rename to ...
4382 (maintenance_show_test_settings_list): ... this.
4383 (maintenance_test_settings_cmd): Delete.
4384 (maintenance_test_settings_set_cmd): ...
4385 (maintenance_set_test_settings_cmd): ... this.
4386 (maintenance_test_settings_show_cmd): ...
4387 (maintenance_show_test_settings_cmd): ... this.
4388 (maintenance_test_settings_show_value_cmd):
4389 (maintenance_show_test_settings_value_cmd): ... this.
4390 (_initialize_maint_test_settings): No longer install the "maint
4391 test-settings" prefix command. Rename "maint test-settings set"
4392 to "maint set test-settings", and "maint test-settings show" to
4393 "maint show test-settings". Adjust all subcommands.
4394
d1fcf2fd
PA
43952019-07-03 Pedro Alves <palves@redhat.com>
4396
4397 * maint-test-settings.c: Fix file's intro comment. Replace all
4398 references to "test-options" with references to "test-settings",
4399 in comments.
4400
970f9d09
PA
44012019-07-03 Pedro Alves <palves@redhat.com>
4402
4403 * maint-test-settings.c (maintenance_test_settings_xxx)
4404 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4405 New.
4406 (maintenance_test_settings_enums): Use them.
4407 (maintenance_test_settings_enum): Default to
4408 maintenance_test_settings_xxx.
4409 (_initialize_maint_test_settings): Initialize
4410 MAINTENANCE_TEST_SETTINGS_FILENAME.
4411
f3869b1a
SM
44122019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4413
4414 * breakpoint.h (remove_breakpoints_inf): Change return type to
4415 void, move function documentation here.
4416 * breakpoint.c (remove_breakpoints_inf): Change return type to
4417 void, move function documentation to header.
4418
54d66006
PA
44192019-07-02 Pedro Alves <palves@redhat.com>
4420
4421 * NEWS (Completion improvements): Mention "info threads".
4422 * thread.c (struct info_threads_opts, info_threads_option_defs)
4423 (make_info_threads_options_def_group): New.
4424 (info_threads_command): Use gdb::option::process_options.
4425 (info_threads_command_completer): New.
4426 (_initialize_thread): Use gdb::option::build_help to build the
4427 help text for "info threads".
4428
854f6088
SM
44292019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4430
4431 * defs.h (generic_load): Move from here...
4432 * symfile.h (generic_load): ... to here. Rename name parameter
4433 to args.
4434 * symfile.c (generic_load): Add comment.
4435
54ee4252
TT
44362019-07-01 Tom Tromey <tromey@adacore.com>
4437
4438 * dwarf2read.c
4439 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4440 declaration of without_params. Fix formatting.
4441
65392b3e
TT
44422019-07-01 Tom Tromey <tromey@adacore.com>
4443
4444 * ada-exp.y (find_primitive_type): Update.
4445 * ada-lang.h (ada_lookup_symbol): Update.
4446 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4447 parameter.
4448 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4449
7d7571f0
SDJ
44502019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4451
4452 PR breakpoints/24541
4453 * gdbarch.c: Regenerate.
4454 * gdbarch.h: Regenerate.
4455 * gdbarch.sh: Add 'stap_adjust_register'.
4456 * i386-tdep.c: Include '<unordered_set>'.
4457 (i386_stap_adjust_register): New function.
4458 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4459 * stap-probe.c (stap_parse_register_operand): Call
4460 'gdbarch_stap_adjust_register'.
4461
5af5392a
SDJ
44622019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4463
4464 PR python/24742
4465 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4466 * python/python.c (do_start_initialization): Use 'xmalloc'
4467 instead of 'PyMem_Malloc'.
4468
10d06d82
TT
44692019-06-28 Tom Tromey <tromey@adacore.com>
4470
4471 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4472 for Ada.
4473
1b7f24cd
TT
44742019-06-27 Tom Tromey <tromey@adacore.com>
4475
4476 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4477 objfile_key.
4478 (arm_find_mapping_symbol, arm_record_special_symbol)
4479 (_initialize_arm_tdep): Update.
4480 (arm_objfile_data_free): Remove.
4481
3d507ff2
TT
44822019-06-27 Tom Tromey <tromey@adacore.com>
4483
4484 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4485 to cp_print_static_field.
4486
762c164d
TT
44872019-06-26 Tom Tromey <tromey@adacore.com>
4488
4489 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4490 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4491 declare.
4492
aa2f9bcf
AH
44932019-06-26 Alan Hayward <alan.hayward@arm.com>
4494
4495 * features/aarch64-core.c (create_feature_aarch64_core):
4496 Regenerate.
4497 * features/aarch64-core.xml: Add cpsr flags.
4498
3426ae57
AH
44992019-06-26 Alan Hayward <alan.hayward@arm.com>
4500
4501 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4502 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4503
4838e44c
SM
45042019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4505
4506 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4507 field.
4508 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4509 use.
4510 (arm_record_special_symbol): Don't insert new symbol in sorted
4511 position, push it at the end.
4512
54cc7474
SM
45132019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4514
4515 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4516 (arm_mapping_symbol_s): Remove.
4517 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4518 (arm_mapping_symbol_vec): New typedef.
4519 (struct arm_per_objfile): Add constructor.
4520 <section_maps>: Change type to
4521 std::unique_ptr<arm_mapping_symbol_vec[]>.
4522 (arm_compare_mapping_symbols): Remove.
4523 (arm_find_mapping_symbol): Adjust to section_maps type change.
4524 (arm_objfile_data_free): Call delete on arm_per_objfile.
4525 (arm_record_special_symbol): Adjust to section_maps type change.
4526 Allocate arm_per_objfile with new.
4527
b65b566c
PW
45282019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4529
4530 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4531 with the command prefix.
4532
c2fc64f5
TT
45332019-06-25 Tom Tromey <tom@tromey.com>
4534
4535 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4536 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4537
fb54fa76
TT
45382019-06-25 Tom Tromey <tom@tromey.com>
4539
4540 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4541 type.
4542 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4543 protected.
4544
f7952c57
TT
45452019-06-25 Tom Tromey <tom@tromey.com>
4546
4547 * tui/tui-winsource.c
4548 (tui_source_window_base::set_is_exec_point_at): Add check against
4549 LOA_ADDRESS.
4550
17568d78
TT
45512019-06-25 Tom Tromey <tom@tromey.com>
4552
4553 * tui/tui-source.c (tui_set_source_content): Don't check before
4554 xfree.
4555 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4556
53e7cdba
TT
45572019-06-25 Tom Tromey <tom@tromey.com>
4558
4559 * tui/tui-winsource.h (tui_update_source_window_as_is)
4560 (tui_alloc_source_buffer, tui_line_is_displayed)
4561 (tui_addr_is_displayed): Change type of win_info.
4562 * tui/tui-winsource.c (tui_update_source_window_as_is)
4563 (tui_clear_source_content, tui_show_source_line)
4564 (tui_show_source_content, tui_source_window_base::refill)
4565 (tui_source_window_base::set_is_exec_point_at)
4566 (tui_source_window_base::set_is_exec_point_at)
4567 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4568 (tui_alloc_source_buffer, tui_line_is_displayed)
4569 (tui_addr_is_displayed): Change type of win_info. Update.
4570 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4571 (tui_source_window_base::do_make_visible_with_new_height):
4572 Update.
4573 * tui/tui-source.c (tui_set_source_content)
4574 (tui_set_source_content_nil)
4575 (tui_source_window::do_scroll_vertical): Update.
4576 * tui/tui-layout.c (show_layout): Update.
4577 * tui/tui-disasm.c (tui_set_disassem_content)
4578 (tui_disasm_window::do_scroll_vertical): Update.
4579 * tui/tui-data.h (tui_win_content): Remove.
4580 (struct tui_gen_win_info) <content, content_size>: Remove.
4581 (struct tui_source_element): Add initializers and destructor.
4582 (union tui_which_element, struct tui_win_element): Remove.
4583 (struct tui_source_window_base) <content>: New field.
4584 (struct tui_data_window): Remove destructor.
4585 (tui_alloc_content, tui_free_win_content)
4586 (tui_free_all_source_wins_content): Don't declare.
4587 * tui/tui-data.c (tui_initialize_static_data): Update.
4588 (init_content_element, tui_alloc_content): Remove.
4589 (~tui_gen_win_info): Update.
4590 (~tui_data_window, tui_free_all_source_wins_content)
4591 (tui_free_win_content, free_content, free_content_elements):
4592 Remove.
4593
7908abbf
TT
45942019-06-25 Tom Tromey <tom@tromey.com>
4595
4596 * tui/tui-winsource.h (tui_clear_source_content)
4597 (tui_erase_source_content, tui_show_source_content): Change type
4598 of win_info.
4599 * tui/tui-winsource.c (tui_clear_source_content)
4600 (tui_erase_source_content, tui_show_source_content): Change type
4601 of win_info.
4602 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4603 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4604 win_info.
4605 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4606 win_info.
4607 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4608
02c28df0
TT
46092019-06-25 Tom Tromey <tom@tromey.com>
4610
4611 * tui/tui-winsource.c (tui_clear_source_content)
4612 (tui_source_window_base::set_is_exec_point_at): Update.
4613 * tui/tui-source.c (tui_set_source_content_nil): Update.
4614 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4615 a bool.
4616 * tui/tui-data.c (init_content_element): Update.
4617
6658b1bf
TT
46182019-06-25 Tom Tromey <tom@tromey.com>
4619
4620 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4621 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4622 * tui/tui-layout.c (init_and_make_win): Update.
4623 * tui/tui.h (enum tui_win_type): Update.
4624 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4625 tui_win_is_auxillary.
4626 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4627 tui_win_is_auxillary.
4628
21e1c91e
TT
46292019-06-25 Tom Tromey <tom@tromey.com>
4630
4631 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4632 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4633 (tui_delete_data_content_windows, tui_display_all_data)
4634 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4635 Update.
4636 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4637 * tui/tui-regs.c (tui_last_regs_line_no)
4638 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4639 (tui_show_registers): Update.
4640 (tui_show_register_group): Return void. Update.
4641 (tui_display_registers_from, tui_display_reg_element_at_line)
4642 (tui_display_registers_from_line, tui_check_register_values):
4643 Update.
4644 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4645 member.
4646 (struct tui_data_window) <regs_content>: Now a std::vector.
4647 <regs_content_count>: Remove.
4648 (tui_add_content_elements, tui_free_data_content): Don't declare.
4649 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4650 (init_content_element): Remove DATA_WIN case. Add assert.
4651 (tui_add_content_elements): Remove.
4652 (tui_data_window): Update.
4653 (tui_free_data_content): Remove.
4654 (free_content_elements): Remove DATA_WIN case.
4655
115ac53b
TT
46562019-06-25 Tom Tromey <tom@tromey.com>
4657
4658 * tui/tui-data.c (tui_data_item_window): Update.
4659 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4660 * tui/tui-windata.c (tui_display_all_data)
4661 (tui_display_data_from_line): Update.
4662 (tui_check_data_values): Remove.
4663 * tui/tui-regs.c (tui_show_register_group)
4664 (tui_display_reg_element_at_line): Update.
4665 * tui/tui-hooks.c (tui_register_changed)
4666 (tui_refresh_frame_and_register_information): Call
4667 tui_check_register_values.
4668 * tui/tui-data.h (struct tui_data_window) <data_content,
4669 data_content_count, data_type>: Remove.
4670 (enum tui_data_type): Remove.
4671
4672 * tui/tui-data.c (tui_data_window::clear_detail)
4673 (~tui_data_window): Update.
4674
eaf9738b
TT
46752019-06-25 Tom Tromey <tom@tromey.com>
4676
4677 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4678 declare.
4679 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4680 Rename from tui_first_data_item_displayed. Update.
4681 (tui_data_window::refresh_all)
4682 (tui_data_window::do_scroll_vertical): Update.
4683 * tui/tui-data.h (struct tui_data_window)
4684 <first_data_item_displayed>: Declare new method.
4685
31ca4723
TT
46862019-06-25 Tom Tromey <tom@tromey.com>
4687
4688 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4689 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4690 contents...
4691 (tui_initialize_static_data): ...here.
4692
41bcff7f
TT
46932019-06-25 Tom Tromey <tom@tromey.com>
4694
4695 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4696 (tui_display_registers_from, tui_check_register_values): Update.
4697 (tui_display_register): Remove win_info parameter; update.
4698 (tui_get_register): Change type of parameters.
4699 * tui/tui-data.h (struct tui_data_element): Remove.
4700 (union tui_which_element) <data>: Remove.
4701 <data_window>: Change type.
4702 (struct tui_data_item_window): New.
4703 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4704 case. Add assert.
4705 (~tui_data_item_window): New destructor.
4706 (free_content_elements): Remove DATA_ITEM_WIN case.
4707
d2802c33
TT
47082019-06-25 Tom Tromey <tom@tromey.com>
4709
4710 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4711 Remove.
4712
dd835f8b
TT
47132019-06-25 Tom Tromey <tom@tromey.com>
4714
4715 * tui/tui-data.h (struct tui_command_element): Remove.
4716 (union tui_which_element) <command>: Remove.
4717 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4718 assert.
4719 (free_content_elements): Remove CMD_WIN case.
4720
bd7db367
TT
47212019-06-25 Tom Tromey <tom@tromey.com>
4722
4723 * tui/tui-layout.c (tui_set_layout): Update.
4724 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4725 * tui/tui-data.c (layout_def): Update.
4726
3add462f
TT
47272019-06-25 Tom Tromey <tom@tromey.com>
4728
4729 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4730 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4731 (tui_source_window_base::set_new_height): Update.
4732 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4733 Update.
4734 (tui_set_locator_fullname, tui_set_locator_info)
4735 (tui_show_frame_info): Update.
4736 * tui/tui-source.c (tui_set_source_content)
4737 (tui_source_is_displayed): Update.
4738 * tui/tui-layout.c (show_source_disasm_command, show_data)
4739 (show_source_or_disasm_and_command): Update.
4740 * tui/tui-disasm.c (tui_set_disassem_content)
4741 (tui_get_begin_asm_address): Update.
4742 * tui/tui-data.h (struct tui_locator_element): Remove.
4743 (union tui_which_element) <locator>: Remove.
4744 (struct tui_locator_window): New.
4745 (tui_locator_win_info_ptr): Change return type.
4746 * tui/tui-data.c (_locator): Change type.
4747 (tui_locator_win_info_ptr): Change return type.
4748 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4749 (tui_alloc_content): Add assert.
4750
489e9d8b
TT
47512019-06-25 Tom Tromey <tom@tromey.com>
4752
4753 * tui/tui-winsource.c
4754 (tui_exec_info_window::maybe_allocate_content): New method.
4755 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4756 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4757 (make_source_or_disasm_window): Add cast.
4758 * tui/tui-data.h (union tui_which_element) <simple_string>:
4759 Remove.
4760 (struct tui_source_info): New.
4761 (struct tui_source_window_base) <execution_info>: Change type.
4762 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4763 case, and add assert.
4764 (tui_alloc_content): Add assert.
4765
c3fabb7d
TT
47662019-06-25 Tom Tromey <tom@tromey.com>
4767
4768 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4769 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4770 * tui/tui-data.c (tui_alloc_win_info): Remove.
4771
bbc228ee
TT
47722019-06-25 Tom Tromey <tom@tromey.com>
4773
4774 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4775 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4776 can_highlight.
4777
5fcee43a
TT
47782019-06-25 Tom Tromey <tom@tromey.com>
4779
4780 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4781 make_visible_with_new_height method.
4782 (tui_win_info::make_visible_with_new_height): New method.
4783 (tui_source_window_base::do_make_visible_with_new_height)
4784 (tui_data_window::do_make_visible_with_new_height)
4785 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4786 (make_visible_with_new_height): Remove.
4787 (tui_resize_all, tui_adjust_win_heights): Use
4788 make_visible_with_new_height method.
4789 * tui/tui-data.h (struct tui_win_info)
4790 <do_make_visible_with_new_height, make_visible_with_new_height>:
4791 New methods.
4792 (struct tui_source_window_base, struct tui_data_window)
4793 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4794 methods.
4795
d83f1fe6
TT
47962019-06-25 Tom Tromey <tom@tromey.com>
4797
4798 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4799 method.
4800 (update_tab_width): Call update_tab_width method.
4801 * tui/tui-data.h (struct tui_win_info)
4802 (struct tui_source_window_base) <update_tab_width>: New methods.
4803
17374de4
TT
48042019-06-25 Tom Tromey <tom@tromey.com>
4805
4806 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4807 parameter.
4808 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4809 parameter.
4810 (tui_gen_win_info::make_visible): Update.
4811 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4812 parameter.
4813 * tui/tui-data.h (enum tui_box): New enum.
4814 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4815
f936bca2
TT
48162019-06-25 Tom Tromey <tom@tromey.com>
4817
4818 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4819 init_and_make_win for EXEC_INFO_WIN.
4820 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4821 longer inline.
4822 (struct tui_win_info) <~tui_win_info>: Inline.
4823 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4824 Don't declare.
4825 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4826 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4827 Remove.
4828 (tui_initialize_static_data): Update.
4829 (~tui_gen_win_info): Handle more cleanup here.
4830 (~tui_source_window_base): Delete "execution_info".
4831 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4832
d6ba6a11
TT
48332019-06-25 Tom Tromey <tom@tromey.com>
4834
4835 * tui/tui-layout.c (make_command_window): Don't set
4836 can_highlight.
4837 (show_source_disasm_command): Call the reset method.
4838 (show_data): Don't set can_highlight. Call the reset method.
4839 (tui_gen_win_info::reset): Rename from init_gen_win_info
4840 (init_and_make_win): Simplify. Return tui_gen_win_info.
4841 (show_source_or_disasm_and_command): Call the reset method.
4842 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4843 (struct tui_cmd_window): Set can_highlight.
4844
48a3bd16
TT
48452019-06-25 Tom Tromey <tom@tromey.com>
4846
4847 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4848 from make_visible.
4849 (tui_make_visible, tui_make_invisible): Rewrite.
4850 (tui_win_info::make_visible): Remove.
4851 (tui_source_window_base::make_visible): Update.
4852 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4853 method. Moved from...
4854 (struct tui_win_info) <make_visible>: ...here.
4855
c3bd716f
TT
48562019-06-25 Tom Tromey <tom@tromey.com>
4857
4858 * tui/tui-winsource.c
4859 (tui_source_window_base::do_scroll_horizontal): Remove direction
4860 parameter.
4861 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4862 direction parameter.
4863 * tui/tui-win.c (tui_win_info::forward_scroll)
4864 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4865 (tui_win_info::right_scroll): Update.
4866 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4867 direction parameter.
4868 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4869 direction parameter.
4870 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4871 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4872 Remove direction parameter.
4873 (struct tui_source_window_base, struct tui_source_window)
4874 (struct tui_disasm_window, struct tui_data_window)
4875 (struct tui_cmd_window): Update.
4876
21c32dca
TT
48772019-06-25 Tom Tromey <tom@tromey.com>
4878
4879 * tui/tui-winsource.h (tui_set_exec_info_content)
4880 (tui_show_exec_info_content, tui_erase_exec_info_content)
4881 (tui_clear_exec_info_content, tui_update_exec_info): Change
4882 argument to tui_source_window_base.
4883 * tui/tui-winsource.c (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
73fbdc65
TT
48882019-06-25 Tom Tromey <tom@tromey.com>
4889
4890 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4891 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4892
33325343
TT
48932019-06-25 Tom Tromey <tom@tromey.com>
4894
4895 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4896 check.
4897
29d2c474
TT
48982019-06-25 Tom Tromey <tom@tromey.com>
4899
4900 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4901 type to void.
4902 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4903 type to void.
4904 * tui/tui-source.c (tui_set_source_content): Update.
4905 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4906
152f3f4b
TT
49072019-06-25 Tom Tromey <tom@tromey.com>
4908
4909 * tui/tui-win.c (window_name_completer, tui_set_focus)
4910 (tui_all_windows_info): Use name method.
4911 * tui/tui-data.h (struct tui_gen_win_info)
4912 (struct tui_source_window, struct tui_disasm_window)
4913 (struct tui_data_window, struct tui_cmd_window) <name>: New
4914 method.
4915 (tui_win_name): Don't declare.
4916 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4917 (tui_win_name): Remove.
4918
be4da588
TT
49192019-06-25 Tom Tromey <tom@tromey.com>
4920
4921 * tui/tui-winsource.h (tui_update_source_window)
4922 (tui_update_source_window_as_is): Change parameter type.
4923 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4924 to be a tui_source_window_base.
4925 (tui_update_source_window_as_is): Likewise.
4926 * tui/tui-win.c (make_visible_with_new_height): Update.
4927
5b81daba
TT
49282019-06-25 Tom Tromey <tom@tromey.com>
4929
4930 * tui/tui-winsource.c (tui_erase_source_content)
4931 (tui_show_source_content, tui_show_exec_info_content)
4932 (tui_erase_exec_info_content): Use refresh_window method.
4933 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4934 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4935 from tui_refresh_win.
4936 (tui_data_window::refresh_window): New method.
4937 (tui_win_info::refresh, tui_source_window_base::refresh)
4938 (tui_refresh_all): Use refresh_window method.
4939 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4940 method.
4941 * tui/tui-regs.c (tui_display_register): Call refresh_window
4942 method.
4943 * tui/tui-layout.c (show_source_disasm_command)
4944 (show_source_or_disasm_and_command): Call refresh_window method.
4945 * tui/tui-data.h (struct tui_gen_win_info)
4946 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4947 New method.
4948
cb2ce893
TT
49492019-06-25 Tom Tromey <tom@tromey.com>
4950
4951 * tui/tui.c (tui_rl_other_window, tui_enable)
4952 (tui_is_window_visible, tui_get_command_dimension): Update.
4953 * tui/tui-winsource.c (tui_update_source_window_as_is)
4954 (tui_clear_source_content, tui_erase_source_content)
4955 (tui_show_source_line, tui_source_window_base::refill)
4956 (tui_source_window_base::do_scroll_horizontal)
4957 (tui_source_window_base::set_is_exec_point_at)
4958 (tui_update_breakpoint_info, tui_set_exec_info_content)
4959 (tui_alloc_source_buffer, tui_line_is_displayed)
4960 (tui_addr_is_displayed): Update.
4961 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4962 (tui_check_and_display_highlight_if_needed)
4963 (tui_win_info::make_visible, tui_win_info::refresh)
4964 (tui_refresh_all): Update.
4965 * tui/tui-windata.c (tui_first_data_item_displayed)
4966 (tui_delete_data_content_windows, tui_erase_data_content)
4967 (tui_display_all_data, tui_data_window::refresh_all)
4968 (tui_check_data_values): Update.
4969 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4970 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4971 (tui_win_info::backward_scroll, tui_refresh_all_win)
4972 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4973 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4974 (tui_source_window_base::set_new_height)
4975 (tui_data_window::set_new_height)
4976 (make_invisible_and_set_new_height)
4977 (make_visible_with_new_height, new_height_ok)
4978 (parse_scrolling_args): Update.
4979 * tui/tui-stack.c (tui_show_frame_info): Update.
4980 * tui/tui-source.c (tui_set_source_content)
4981 (tui_set_source_content_nil, tui_source_is_displayed)
4982 (tui_source_window::do_scroll_vertical): Update.
4983 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4984 (tui_display_registers_from, tui_display_reg_element_at_line)
4985 (tui_check_register_values, tui_reg_command): Update.
4986 * tui/tui-layout.c (tui_default_win_height)
4987 (show_source_disasm_command, show_data, init_and_make_win)
4988 (show_source_or_disasm_and_command): Update.
4989 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4990 (tui_redisplay_readline, tui_mld_flush)
4991 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4992 (tui_getc): Update.
4993 * tui/tui-disasm.c (tui_set_disassem_content)
4994 (tui_disasm_window::do_scroll_vertical): Update.
4995 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4996 Now virtual.
4997 (struct tui_win_info): Derive from tui_gen_win_info.
4998 <~tui_win_info>: Mark as override.
4999 <generic>: Remove member.
5000 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5001 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5002 (~tui_data_window, ~tui_win_info)
5003 (tui_free_all_source_wins_content): Update.
5004 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5005
ab313b35
TT
50062019-06-25 Tom Tromey <tom@tromey.com>
5007
5008 * tui/tui-layout.c (init_and_make_win): Use new.
5009 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5010 destructor, initializers.
5011 (tui_alloc_generic_win_info): Don't declare.
5012 * tui/tui-data.c (_locator): Add argument to constructor.
5013 (source_win, disasm_win): New globals.
5014 (exec_info): Remove.
5015 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5016 Update.
5017 (tui_alloc_generic_win_info): Remove.
5018 (init_content_element): Use new.
5019 (tui_win_info::tui_win_info): Update.
5020 (free_content_elements) <case DATA_WIN>: Use delete.
5021
dc2c33e4
TT
50222019-06-25 Tom Tromey <tom@tromey.com>
5023
5024 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5025 * tui/tui-windata.c (tui_first_data_item_displayed)
5026 (tui_delete_data_content_windows): Update.
5027 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5028 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5029 (tui_display_registers_from, tui_check_register_values): Update.
5030 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5031 pointer.
5032 * tui/tui-data.c (init_content_element): Update. Allocate the new
5033 window.
5034 (tui_free_data_content): Update.
5035 (free_content_elements) <case DATA_WIN>: Free the window.
5036
214a5cbe
TT
50372019-06-25 Tom Tromey <tom@tromey.com>
5038
5039 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5040 Update.
5041 * tui/tui-layout.c (make_command_window)
5042 (show_source_disasm_command, show_data, init_and_make_win)
5043 (show_source_or_disasm_and_command): Update.
5044 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5045 method.
5046 <can_highight, is_highlighted>: Now bool.
5047 (tui_set_win_highlight): Don't declare.
5048 * tui/tui-data.c (tui_set_win_highlight): Remove.
5049
8e2daf15
TT
50502019-06-25 Tom Tromey <tom@tromey.com>
5051
5052 * tui/tui-wingeneral.c (make_visible): Remove check of window
5053 type.
5054
8903bd8a
TT
50552019-06-25 Tom Tromey <tom@tromey.com>
5056
5057 * tui/tui-win.c (tui_win_info::max_height)
5058 (tui_cmd_window::max_height): New methods.
5059 (new_height_ok): Call max_height.
5060 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5061 <max_height>: New method.
5062
3f02ce1e
TT
50632019-06-25 Tom Tromey <tom@tromey.com>
5064
5065 * tui/tui-win.c (tui_source_window_base::set_new_height)
5066 (tui_data_window::set_new_height): New methods.
5067 (make_invisible_and_set_new_height): Call set_new_height method.
5068 * tui/tui-data.h (struct tui_win_info)
5069 (struct tui_source_window_base, struct tui_data_window)
5070 <set_new_height>: New method.
5071
1825f487
TT
50722019-06-25 Tom Tromey <tom@tromey.com>
5073
5074 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5075 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5076 tui_refresh_data_win.
5077 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5078 method.
5079 (tui_refresh_all_win): Call the refresh_all method.
5080 (tui_set_focus): Likewise.
5081 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5082 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5083 Likewise.
5084
ad54d15b
TT
50852019-06-25 Tom Tromey <tom@tromey.com>
5086
5087 * tui/tui-winsource.h (tui_refill_source_window)
5088 (tui_set_is_exec_point_at): Don't declare.
5089 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5090 (tui_source_window_base::refill): Rename from
5091 tui_refill_source_window.
5092 (tui_source_window_base::do_scroll_horizontal): Update.
5093 (tui_source_window_base::set_is_exec_point_at): Rename from
5094 tui_set_is_exec_point_at.
5095 (tui_update_all_breakpoint_info): Update.
5096 * tui/tui-stack.c (tui_show_frame_info): Update.
5097 * tui/tui-layout.c (show_data): Add cast.
5098 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5099 * tui/tui-data.h (struct tui_source_window_base) <refill,
5100 set_is_exec_point_at>: New methods.
5101 (tui_source_windows, tui_add_to_source_windows): Update types.
5102 (tui_add_to_source_windows): Remove redundant declaration.
5103 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5104 (tui_source_windows): Change return type.
5105 (tui_clear_source_windows_detail): Update.
5106 (tui_add_to_source_windows): Change type of parameter.
5107 (tui_free_all_source_wins_content): Update.
5108
2042b506
TT
51092019-06-25 Tom Tromey <tom@tromey.com>
5110
5111 * tui/tui-wingeneral.c (tui_win_info::refresh)
5112 (tui_source_window_base::refresh): New methods.
5113 (tui_refresh_all): Call the refresh method.
5114 * tui/tui-data.h (struct tui_win_info)
5115 (struct tui_source_window_base) <refresh>: New method.
5116
56122977
TT
51172019-06-25 Tom Tromey <tom@tromey.com>
5118
5119 * tui/tui.h (tui_is_window_visible): Return bool.
5120 * tui/tui.c (tui_is_window_visible): Return bool.
5121 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5122 (tui_make_visible, tui_make_invisible)
5123 (tui_win_info::make_visible)
5124 (tui_source_window_base::make_visible, make_all_visible)
5125 (tui_make_all_visible, tui_make_all_invisible): Update.
5126 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5127 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5128 bool.
5129 (struct tui_win_info, struct tui_source_window_base)
5130 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5131 * tui/tui-data.c (tui_init_generic_part): Update.
5132
cda37efb
TT
51332019-06-25 Tom Tromey <tom@tromey.com>
5134
5135 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5136 (tui_source_window_base::make_visible): New methods.
5137 (make_all_visible): Make method call.
5138 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5139 (struct tui_source_window_base, struct tui_cmd_window): Override
5140 make_visible.
5141 (tui_win_is_source_type): Don't declare.
5142 * tui/tui-data.c (tui_win_is_source_type): Remove.
5143
6a0ee02c
TT
51442019-06-25 Tom Tromey <tom@tromey.com>
5145
5146 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5147 NULL check.
5148
63901aec
TT
51492019-06-25 Tom Tromey <tom@tromey.com>
5150
5151 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5152 Inline constructor. Add initializers for members.
5153 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5154 constructors; now inline in class.
5155
ceb13a13
TT
51562019-06-25 Tom Tromey <tom@tromey.com>
5157
5158 * tui/tui-regs.c (tui_show_registers): Update.
5159 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5160 bool.
5161 * tui/tui-data.c (tui_data_window::clear_detail)
5162 (tui_data_window): Update.
5163
238eb706
TT
51642019-06-25 Tom Tromey <tom@tromey.com>
5165
5166 * tui/tui-windata.c (tui_display_all_data)
5167 (tui_display_data_from_line, tui_display_data_from)
5168 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5169 Update.
5170 * tui/tui-regs.c (tui_last_regs_line_no)
5171 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5172 (tui_show_registers, tui_show_register_group)
5173 (tui_display_registers_from, tui_display_reg_element_at_line)
5174 (tui_display_registers_from_line, tui_check_register_values)
5175 (tui_reg_next, tui_reg_prev): Update.
5176 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5177 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5178 tui_data_window.
5179 (struct tui_win_info) <detail>: Remove. Add new fields from
5180 tui_data_info.
5181 (TUI_DATA_WIN): Add cast.
5182 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5183 (~tui_data_window): Simplify.
5184
81491aa0
TT
51852019-06-25 Tom Tromey <tom@tromey.com>
5186
5187 * tui/tui-layout.c (show_source_disasm_command)
5188 (show_source_or_disasm_and_command): Update.
5189 * tui/tui-io.c (update_cmdwin_start_line)
5190 (tui_redisplay_readline): Update.
5191 * tui/tui-data.h (struct tui_command_info): Remove.
5192 (struct tui_win_info) <detail>: Remove command_info member.
5193 (struct tui_data_window) <start_line>: New member, from
5194 tui_command_info.
5195 (TUI_CMD_WIN): Add casts.
5196
e6e41501
TT
51972019-06-25 Tom Tromey <tom@tromey.com>
5198
5199 * tui/tui-winsource.c (tui_update_source_window)
5200 (tui_refill_source_window)
5201 (tui_source_window_base::do_scroll_horizontal)
5202 (tui_update_breakpoint_info, tui_set_exec_info_content)
5203 (tui_show_exec_info_content, tui_erase_exec_info_content)
5204 (tui_clear_exec_info_content): Update.
5205 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5206 Update.
5207 * tui/tui-win.c (make_invisible_and_set_new_height)
5208 (make_visible_with_new_height): Update.
5209 * tui/tui-source.c (tui_set_source_content)
5210 (tui_show_symtab_source): Update.
5211 * tui/tui-layout.c (extract_display_start_addr)
5212 (show_source_disasm_command, show_data)
5213 (make_source_or_disasm_window)
5214 (show_source_or_disasm_and_command): Update.
5215 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5216 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5217 "gdbarch".
5218 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5219 to tui_source_window_base.
5220 (struct tui_win_info) <detail>: Remove source_info member.
5221 (struct tui_source_window_base) <has_locator>: Inline.
5222 Move contents from tui_source_info; rename has_locator member to
5223 m_has_locator.
5224 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5225 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5226 header file.
5227 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5228 Simplify.
5229 (tui_free_all_source_wins_content): Cast to
5230 tui_source_window_base.
5231
44f0e208
TT
52322019-06-25 Tom Tromey <tom@tromey.com>
5233
5234 * tui/tui-win.c (make_invisible_and_set_new_height)
5235 (make_visible_with_new_height): Call has_locator method.
5236 * tui/tui-layout.c (show_source_disasm_command, show_data)
5237 (show_source_or_disasm_and_command): Update for bool change.
5238 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5239 (tui_win_info) <has_locator>: New method.
5240 (struct tui_source_window_base) <has_locator>: New method.
5241 (tui_win_has_locator): Don't declare.
5242 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5243 from tui_win_has_locator.
5244 (tui_source_window_base): Use false, not FALSE.
5245
7778b912
TT
52462019-06-25 Tom Tromey <tom@tromey.com>
5247
5248 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5249 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5250 clear_detail method directly.
5251 (tui_clear_win_detail): Remove.
5252
f83d391c
TT
52532019-06-25 Tom Tromey <tom@tromey.com>
5254
5255 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5256 "this", not TUI_DISASM_WIN.
5257
13446e05
TT
52582019-06-25 Tom Tromey <tom@tromey.com>
5259
5260 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
5261 declare.
5262 * tui/tui-winsource.c
5263 (tui_source_window_base::do_scroll_horizontal): Rename from
5264 tui_horizontal_source_scroll.
5265 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5266 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5267 from tui_vertical_data_scroll.
5268 * tui/tui-win.h (tui_scroll): Don't declare.
5269 * tui/tui-win.c (tui_win_info::forward_scroll)
5270 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5271 (tui_win_info::right_scroll): Rename and update.
5272 (tui_scroll_forward_command, tui_scroll_backward_command)
5273 (tui_scroll_left_command, tui_scroll_right_command): Update.
5274 (tui_scroll): Remove.
5275 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5276 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5277 from tui_vertical_source_scroll.
5278 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5279 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5280 from tui_vertical_disassem_scroll.
5281 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5282 do_scroll_horizontal>: New methods.
5283 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5284 Likewise.
5285 (struct tui_source_window_base): Add do_scroll_horizontal.
5286 (struct tui_source_window, struct tui_disasm_window): Add
5287 do_scroll_vertical.
5288 (struct tui_data_window, struct tui_cmd_window): Add
5289 do_scroll_horizontal and do_scroll_vertical.
5290 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5291
5cf82909
TT
52922019-06-25 Tom Tromey <tom@tromey.com>
5293
5294 * tui/tui-data.h (struct tui_source_window_base): New struct.
5295 (struct tui_source_window): Derive from tui_source_window_base.
5296 (struct tui_disasm_window): New struct.
5297 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5298 from tui_source_window::clear_detail.
5299 (tui_source_window_base): Rename from tui_source_window.
5300 (~tui_source_window_base): Rename from ~tui_source_window.
5301 (tui_alloc_win_info): Create a tui_disasm_window.
5302
ee1d42d6
TT
53032019-06-25 Tom Tromey <tom@tromey.com>
5304
5305 * tui/tui-data.h (struct tui_source_window)
5306 (struct tui_data_window): Declare destructors.
5307 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5308 destructors.
5309 (tui_win_info): Simplify.
5310
b4eb2452
TT
53112019-06-25 Tom Tromey <tom@tromey.com>
5312
5313 * tui/tui-winsource.c (tui_display_main)
5314 (tui_update_source_windows_with_addr)
5315 (tui_update_all_breakpoint_info): Update.
5316 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5317 (new_height_ok, parse_scrolling_args): Update.
5318 * tui/tui-stack.c (tui_show_frame_info): Update.
5319 * tui/tui-data.h (struct tui_list): Remove.
5320 (tui_source_windows): Return a reference to a std::vector.
5321 * tui/tui-data.c (source_windows): Now a std::vector.
5322 (tui_source_windows): Change return type.
5323 (tui_clear_source_windows): Rewrite.
5324 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5325 (tui_free_all_source_wins_content): Rewrite.
5326
8761a91b
TT
53272019-06-25 Tom Tromey <tom@tromey.com>
5328
5329 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5330 (struct tui_data_window, struct tui_cmd_window): Declare
5331 clear_detail method.
5332 * tui/tui-data.c (tui_source_window::clear_detail)
5333 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5334 methods.
5335 (tui_clear_win_detail): Simplify.
5336
0ed69eda
TT
53372019-06-25 Tom Tromey <tom@tromey.com>
5338
5339 * tui/tui-layout.c (make_source_window, make_disasm_window)
5340 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5341 Return the new window.
5342 (show_source_disasm_command, show_data)
5343 (show_source_or_disasm_and_command): Update.
5344
82432e10
TT
53452019-06-25 Tom Tromey <tom@tromey.com>
5346
5347 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5348 parameter. Return the new window.
5349 (show_source_disasm_command): Update and remove NULL check.
5350 (show_source_or_disasm_and_command): Update.
5351
ec328aa5
TT
53522019-06-25 Tom Tromey <tom@tromey.com>
5353
5354 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5355
33b906ab
TT
53562019-06-25 Tom Tromey <tom@tromey.com>
5357
5358 * tui/tui-data.h (struct tui_win_info): Make constructor
5359 protected. Make destructor virtual. Add initializers.
5360 (tui_source_window, tui_data_window, tui_cmd_window): New
5361 classes.
5362 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5363 constructor. Add "type" parameter.
5364 (tui_source_window, tui_data_window, tui_cmd_window): New
5365 constructors.
5366 (tui_alloc_win_info): Instantiate the appropriate subclass.
5367
e7e11af4
TT
53682019-06-25 Tom Tromey <tom@tromey.com>
5369
5370 * tui/tui-win.c (tui_resize_all): Use delete.
5371 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5372 destructor.
5373 (tui_free_window): Don't declare.
5374 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5375 Update.
5376
6792b55e
TT
53772019-06-25 Tom Tromey <tom@tromey.com>
5378
5379 * tui/tui-data.h (struct tui_win_info): Add constructor.
5380 * tui/tui-data.c (tui_alloc_win_info): Use new.
5381 (tui_free_window): Use delete.
5382
f95675e1
TT
53832019-06-22 Tom Tromey <tom@tromey.com>
5384
5385 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5386 declare.
5387 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5388
5bff081c
TT
53892019-06-22 Tom Tromey <tom@tromey.com>
5390
5391 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5392 declare.
5393 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5394
47e3f474
TV
53952019-06-22 Tom de Vries <tdevries@suse.de>
5396
5397 * dwarf2read.c (create_addrmap_from_aranges)
5398 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5399 instead of '%zu'.
5400
fd5866f6
SM
54012019-06-21 Simon Marchi <simon.marchi@efficios.com>
5402
5403 * dwarf2read.h (dwarf2_section_info_def): Remove.
5404 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5405 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5406 std::vector<dwarf2_section_info>.
5407 (struct dwo_file) <~dwo_file>: Remove.
5408 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5409 types field.
5410 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5411 (dwarf2_read_debug_names): Likewise.
5412 (create_debug_types_hash_table): Change parameter type to
5413 array_view, adjust code accordingly.
5414 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5415 (partial_die_info::fixup): Likewise.
5416 (determine_prefix): Likewise.
5417 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5418
fb1eb2f9
SM
54192019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5420
5421 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5422 gdb_bfd_ref_ptr.
5423 <~dwo_file>: Remove call to gdb_bfd_unref.
5424 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5425 gdb_bfd_ref_ptr::get.
5426
51ac9db5
SM
54272019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5428
5429 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5430 type to htab_up.
5431 * dwarf2read.c (struct dwo_file): Initialize fields.
5432 <~dwo_file>: New.
5433 (free_dwo_file): Remove, move content to ~dwo_file.
5434 (struct dwo_file_deleter): Remove.
5435 (dwo_file_up>: Remove custom deleter.
5436 (free_dwo_files): Remove.
5437 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5438 dwo_files.
5439 (process_skeletonless_type_units): Call unique_ptr::get.
5440 (allocate_dwo_file_hash_table): Add deleter to created hash
5441 table. Change return type to htab_up.
5442 (lookup_dwo_file_slot): Don't memset dwo_file, call
5443 unique_ptr::get.
5444 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5445 (create_dwo_unit_in_dwp_v2): Likewise.
5446 (open_and_init_dwo_file): Likewise.
5447 (free_dwo_file_from_slot): Remove.
5448
dc4ccb6f
SM
54492019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5450
5451 * dwarf2read.h (struct dwarf2_section_info) <readin,
5452 is_virtual>: Change type to bool.
5453 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5454 true instead of 1.
5455
e6a1c5cb
TT
54562019-06-19 Tom Tromey <tom@tromey.com>
5457
5458 * tui/tui-data.h (tui_init_content_element): Don't declare.
5459
6f6ffbeb
TT
54602019-06-19 Tom Tromey <tom@tromey.com>
5461
5462 * tui/tui-data.h (tui_init_win_info): Don't declare.
5463
f23f598e
TV
54642019-06-19 Tom de Vries <tdevries@suse.de>
5465
5466 * dwarf2read.h (abstract_to_concrete): Change type to
5467 std::unordered_map<sect_offset, std::vector<sect_offset>,
5468 gdb::hash_enum<sect_offset>>.
5469
680e1bee
TT
54702019-06-19 Tom Tromey <tromey@adacore.com>
5471
5472 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5473 EVAL_AVOID_SIDE_EFFECTS specially.
5474
dcf37923
TT
54752019-06-19 Tom Tromey <tromey@adacore.com>
5476
5477 * source-cache.c (highlighter): New global.
5478 (source_cache::get_source_lines): Create a highlighter on demand.
5479
494986d5
AB
54802019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5481
5482 * defs.h (deprecated_interactive_hook): Delete declaration.
5483 * interps.c (clear_interpreter_hooks): Remove use of
5484 deprecated_interactive_hook.
5485 * top.c (deprecated_interactive_hook): Delete definition.
5486 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5487
3360b6e7
TV
54882019-06-18 Tom de Vries <tdevries@suse.de>
5489
5490 PR gdb/24515
5491 * dwarf2read.h (abstract_to_concrete): Change type from
5492 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5493 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5494 * dwarf2read.c (read_variable): Update.
5495 (dwarf2_fetch_die_loc_sect_off): Update.
5496
310b3441
TV
54972019-06-17 Tom de Vries <tdevries@suse.de>
5498
5499 PR gdb/24617
5500 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5501 accessing parent[parent_len - 1].
5502
ba9777be
PP
55032019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5504
5505 PR gdb/24364
5506 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5507 call dtrace_process_dof with NULL dof.
5508
2b9f6e89
TV
55092019-06-16 Tom de Vries <tdevries@suse.de>
5510
5511 PR gdb/24445
5512 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5513
431b3ead
TT
55142019-06-16 Tom Tromey <tom@tromey.com>
5515
5516 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5517 (make_all_visible): Use address of member.
5518
d04b44a1
TT
55192019-06-16 Tom Tromey <tom@tromey.com>
5520
5521 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5522 (tui_free_window, free_content, free_content_elements): Remove
5523 unnecessary cast.
5524 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5525 cast.
5526 * tui/tui-regs.c (tui_show_register_group)
5527 (tui_display_registers_from, tui_display_reg_element_at_line):
5528 Remove unnecessary cast.
5529
bf5142e7
AB
55302019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5531
5532 * linux-nat.c (normal_mask): Delete.
5533 (_initialize_linux_nat): Don't initialise normal_mask.
5534
c4973306
SM
55352019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5536
5537 PR gdb/24445
5538 * dwarf-index-write.h (write_psymtabs_to_index): Add
5539 dwz_basename parameter.
5540 * dwarf-index-write.c (write_gdbindex): Move file writing to
5541 write_gdbindex_1. Change return type void.
5542 (assert_file_size): Move up, remove filename parameter.
5543 (write_gdbindex_1): New function.
5544 (write_debug_names): Change return type to void, call
5545 assert_file_size.
5546 (struct index_wip_file): New struct.
5547 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5548 file logic to index_wip_file. Write index for dwz file if
5549 needed.
5550 (save_gdb_index_command): Pass basename of dwz file, if present.
5551 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5552 build-id of dwz file, if present.
5553 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5554 (dwarf2_get_dwz_file): Likewise.
5555 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5556 (dwarf2_get_dwz_file): Likewise.
5557
395f9c91
TT
55582019-06-16 Tom Tromey <tom@tromey.com>
5559
5560 * coffread.c (process_coff_symbol): Use xstrdup.
5561 * value.c (create_internalvar): Use xstrdup.
5562
cafb3438
TT
55632019-06-16 Tom Tromey <tom@tromey.com>
5564
5565 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5566 * breakpoint.c (stopin_command, stopat_command)
5567 (until_break_command, decode_location_default): Remove unnecessary
5568 cast.
5569 * utils.c (subset_compare): Remove unnecessary cast.
5570 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5571 cast.
5572 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5573 cast.
5574 * infcmd.c (path_command): Remove unnecessary cast.
5575 * coffread.c (decode_type): Remove unnecessary cast.
5576 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5577 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5578 * tui/tui-stack.c (tui_show_locator_content)
5579 (tui_show_frame_info): Remove unnecessary cast.
5580 * tui/tui-win.c (tui_scroll_forward_command)
5581 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5582 (parse_scrolling_args): Remove unnecessary cast.
5583 * tui/tui-data.c (init_win_info, tui_del_window)
5584 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5585 (free_content_elements): Remove unnecessary cast.
5586 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5587 unnecessary cast.
5588 * tui/tui-source.c (tui_set_source_content)
5589 (tui_vertical_source_scroll): Remove unnecessary cast.
5590 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5591 cast.
5592 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5593 * tui/tui-regs.c (tui_display_registers_from)
5594 (tui_display_register): Remove unnecessary cast.
5595 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5596 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5597 (make_visible): Remove unnecessary cast.
5598 * tui/tui-winsource.c (tui_erase_source_content)
5599 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5600 unnecessary cast.
5601 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5602 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5603 * stabsread.c (read_type, read_array_type, read_range_type):
5604 Remove unnecessary cast.
5605 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5606 (parse_symbol, parse_type, upgrade_type, parse_external)
5607 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5608 unnecessary cast.
5609 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5610
730ead81
TT
56112019-06-16 Tom Tromey <tom@tromey.com>
5612
5613 * tui/tui-data.c (tui_alloc_generic_win_info)
5614 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5615 checks.
5616
584a927c
AB
56172019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5618 Andrew Burgess <andrew.burgess@embecosm.com>
5619
5620 * f-typeprint.c (f_print_type): Don't return early for not
5621 associated or not allocated types.
5622 (f_type_print_varspec_suffix): Add print_rank parameter and print
5623 ranks of array types in case they dangling.
5624 (f_type_print_base): Add print_rank parameter.
5625
30056ea0
AB
56262019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5627
5628 * NEWS: Mention new MI commands.
5629 * break-catch-throw.c (enum exception_event_kind): Move to
5630 breakpoint.h.
5631 (print_mention_exception_catchpoint): Output text as a single
5632 message.
5633 (catch_exception_command_1): Rename to...
5634 (catch_exception_event): ...this, make non-static, update header
5635 command, and change some parameter types.
5636 (catch_catch_command): Update for changes to
5637 catch_exception_command_1.
5638 (catch_throw_command): Likewise.
5639 (catch_rethrow_command): Likewise.
5640 * breakpoint.c (enum exception_event_kind): Delete.
5641 * breakpoint.h (enum exception_event_kind): Moved here from
5642 break-catch-throw.c.
5643 (catch_exception_event): Declare.
5644 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5645 (mi_cmd_catch_throw): New function.
5646 (mi_cmd_catch_rethrow): New function.
5647 (mi_cmd_catch_catch): New function.
5648 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5649 'catch-catch' entries.
5650 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5651 (mi_cmd_catch_rethrow): Declare.
5652 (mi_cmd_catch_catch): Declare.
5653
ec8e2b6d
AB
56542019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5655
5656 * annotate.c (annotate_source_line): Change return type to void,
5657 update implementation to match.
5658 * annotate.h (annotate_source_line): Change return type to void,
5659 update header comment.
5660 * stack.c (print_frame_info): Don't change what frame information
5661 is printed based on whether annotations are on or not.
5662
0d3abd8c
AB
56632019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5664
5665 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5666 (annotate_source): Make static.
5667 (annotate_source_line): Moved from source.c and renamed from
5668 identify_source_line. Update the return type.
5669 * annotate.h (annotate_source): Delete declaration.
5670 (annotate_source_line): Declaration moved from source.h, and
5671 renamed from identify_source_line. Return type updated.
5672 * source.c (identify_source_line): Moved to annotate.c and renamed
5673 to annotate_source_line.
5674 (info_line_command): Remove check of annotation_level.
5675 * source.h (identify_source_line): Move declaration to annotate.h
5676 and rename to annotate_source_line.
5677 * stack.c: Add 'annotate.h' include.
5678 (print_frame_info): Remove check of annotation_level before
5679 calling annotate_source_line.
5680
00df30ae
AB
56812019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5682
5683 * source-cache.c (source_cache::get_plain_source_lines): Use
5684 open_source_file_with_line_charpos instead of just
5685 open_source_file, remove call to find_source_lines.
5686 (source_cache::get_source_lines): Likewise.
5687 * source.c (find_source_lines): Make static.
5688 (get_filename_and_charpos): Renamed into...
5689 (open_source_file_with_line_charpos): ..this along with changes to
5690 return a scoped_fd, and some other minor clean ups.
5691 (identify_source_line): Use open_source_file_with_line_charpos.
5692 (search_command_helper): Use open_source_file_with_line_charpos
5693 instead of just open_source_file, remove call to
5694 find_source_lines.
5695 * source.h (open_source_file_with_line_charpos): Declare new
5696 function.
5697 (find_source_lines): Delete declaration.
5698
afda45a2
AB
56992019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5700
5701 * source.c (get_filename_and_charpos): Remove fullname
5702 parameter.
5703 (identify_source_line): Update call to get_filename_and_charpos.
5704
0735b091
TT
57052019-06-14 Tom Tromey <tromey@adacore.com>
5706
5707 PR gdb/24502:
5708 * ui-style.h (skip_ansi_escape): Update comment.
5709 * ui-file.h (class no_terminal_escape_file): New class.
5710 * ui-file.c (no_terminal_escape_file::write)
5711 (no_terminal_escape_file::puts): New methods.
5712 * cli/cli-logging.c (handle_redirections): Use
5713 no_terminal_escape_file.
5714
52ce35e2
TT
57152019-06-14 Tom Tromey <tromey@adacore.com>
5716
5717 * NEWS: Move convenience variable news above Python news.
5718
73cc7272
TT
57192019-06-14 Tom Tromey <tom@tromey.com>
5720
5721 * gnulib: Move directory to top-level.
5722 * configure.ac: Don't configure gnulib.
5723 * configure: Rebuild.
5724 * common/common-defs.h: Use new path to gnulib.
5725 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5726 (GNULIB_H): Remove.
5727 (INCGNU): Look in new gnulib location.
5728 (HFILES_NO_SRCDIR): Remove gnulib files.
5729 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5730 (generated_files): Remove GNULIB_H.
5731 ($(LIBGNU), all-lib): Remove targets.
5732 (distclean): Don't mention GNULIB_BUILDDIR.
5733 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5734
f5686554
TT
57352019-06-14 Tom Tromey <tromey@adacore.com>
5736
5737 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5738 Warn if symbol file does not provide any symbols.
5739
a0c1ffed
TT
57402019-06-14 Tom Tromey <tromey@adacore.com>
5741
5742 * source.c (find_and_open_source): Respect basenames_may_differ.
5743
7c39e397
AB
57442019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5745
5746 * annotate.c (annotate_breakpoints_invalid): Make use of
5747 scoped_restore_terminal_state.
5748 (annotate_frames_invalid): Likewise.
5749
f411722c
TT
57502019-06-14 Tom Tromey <tromey@adacore.com>
5751
5752 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5753 allow assignment to an internalvar.
5754
4268ec18
TT
57552019-06-14 Tom Tromey <tromey@adacore.com>
5756
5757 * ada-lex.l: Allow "_" in attribute names.
5758
abdb711e
TT
57592019-06-14 Tom Tromey <tromey@adacore.com>
5760
5761 PR gdb/24653:
5762 * regcache.c (registers_changed): Don't call alloca.
5763 * top.c (execute_command): Don't call alloca.
5764
4c048731
PA
57652019-06-13 Pedro Alves <palves@redhat.com>
5766
5767 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5768 'expression'. When parsing an expression, error out if there's
5769 junk after "unlimited".
5770 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5771 (do_set_command): Adjust calls to is_unlimited_literal.
5772
66eb1ed3
PA
57732019-06-13 Pedro Alves <palves@redhat.com>
5774
5775 * compile/compile.c (make_compile_options_def_group): Add braces
5776 around array_view initializer.
5777 * thread.c (make_thread_apply_all_options_def_group)
5778 (make_thread_apply_all_options_def_group): Likewise.
5779
3345721a
PA
57802019-06-13 Pedro Alves <palves@redhat.com>
5781
5782 * NEWS (New commands): Mention "maint test-options
5783 require-delimiter", "maint test-options unknown-is-error", "maint
5784 test-options unknown-is-operand" and "maint show
5785 test-options-completion-result".
5786 (New command options, command completion): New section.
5787 (Completion improvements): New section.
5788 Mention that you can abbreviate "unlimited".
5789
6206060d
PA
57902019-06-13 Pedro Alves <palves@redhat.com>
5791
5792 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5793 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5794 * unittests/cli-utils-selftests.c (test_parse_flags)
5795 (test_parse_flags_qcs): Delete.
5796 (test_cli_utils): Don't call deleted functions.
5797
6665660a
PA
57982019-06-13 Pedro Alves <palves@redhat.com>
5799
5800 * thread.c: Include "cli/cli-option.h".
5801 (tp_array_compar_ascending): Global.
5802 (tp_array_compar): Delete function.
5803 (tp_array_compar_ascending, tp_array_compar_descending): New
5804 functions.
5805 (ascending_option_def, qcs_flag_option_def)
5806 (thr_qcs_flags_option_defs)
5807 (make_thread_apply_all_options_def_group)
5808 (make_thread_apply_options_def_group): New.
5809 (thread_apply_all_command): Use gdb::option::process_options.
5810 (thread_apply_command_completer)
5811 (thread_apply_all_command_completer): New.
5812 (thread_apply_command): Use gdb::option::process_options.
5813 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5814 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5815 to generate help text of "thread apply". Adjust "taas"'s help.
5816 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5817 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5818
f7e13587
PA
58192019-06-13 Pedro Alves <palves@redhat.com>
5820
5821 * thread.c (thread_apply_command): Check for invalid TID with
5822 isdigit instead of !isalpha.
5823
5d707134
PA
58242019-06-13 Pedro Alves <palves@redhat.com>
5825
5826 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5827 (validate_flags_qcs): New.
5828 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5829 (validate_flags_qcs): Declare.
5830 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5831 (make_frame_apply_options_def_group): New.
5832 (frame_apply_command_count): Process options with
5833 gdb::option::process_options.
5834 (frame_apply_completer): New.
5835 (frame_apply_level_completer, frame_apply_all_completer)
5836 (frame_apply_completer): New.
5837 (_initialize_stack): Update help of "frame apply", "frame apply
5838 level", "frame apply all" and "faas" to mention supported options
5839 and install command completers.
5840 * stack.h (frame_apply_all_completer): Declare.
5841 * thread.c: Include "stack.h".
5842 (tfaas_command): Add "--".
5843 (_initialize_thread): Update help "tfaas" to mention supported
5844 options and install command completer.
5845
272d4594
PA
58462019-06-13 Pedro Alves <palves@redhat.com>
5847
5848 * completer.c (complete_nested_command_line): New.
5849 (gdb_completion_word_break_characters_throw): Add assertion.
5850 * completer.h (complete_nested_command_line): Declare.
5851
90a1ef87
PA
58522019-06-13 Pedro Alves <palves@redhat.com>
5853
5854 * stack.c (parse_backtrace_qualifiers): New.
5855 (backtrace_command): Use it.
5856 (backtrace_command_completer): Complete on qualifiers.
5857
d4c16835
PA
58582019-06-13 Pedro Alves <palves@redhat.com>
5859
5860 * frame.c: Include "cli/cli-option.h.
5861 (user_set_backtrace_options): New.
5862 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5863 Delete.
5864 (get_prev_frame): Adjust.
5865 (boolean_option_def, uinteger_option_def)
5866 (set_backtrace_option_defs): New.
5867 (_initialize_frame): Adjust and use
5868 gdb::option::add_setshow_cmds_for_options to install "set
5869 backtrace past-main" and "set backtrace past-entry".
5870 * frame.h: Include "cli/cli-option.h".
5871 (struct frame_print_options): Forward declare.
5872 (print_frame_arguments_all, print_frame_arguments_scalars)
5873 (print_frame_arguments_none): Declare.
5874 (print_entry_values): Delete declaration.
5875 (struct frame_print_options, user_frame_print_options): New.
5876 (struct set_backtrace_options): New.
5877 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5878 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5879 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5880 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5881 (list_args_or_locals): Add frame_print_options parameter.
5882 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5883 * python/py-framefilter.c (enumerate_args): Pass down
5884 USER_FRAME_PRINT_OPTIONS.
5885 * stack.c: Include "cli/cli-option.h".
5886 (print_frame_arguments_all, print_frame_arguments_scalars)
5887 (print_frame_arguments_none): Declare.
5888 (print_raw_frame_arguments, print_entry_values): Delete.
5889 (user_frame_print_options): New.
5890 (boolean_option_def, enum_option_def, frame_print_option_defs):
5891 New.
5892 (struct backtrace_cmd_options): New.
5893 (bt_flag_option_def): New.
5894 (backtrace_command_option_defs): New.
5895 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5896 (print_frame_arg, read_frame_arg, print_frame_args)
5897 (print_frame_info, print_frame): Add frame_print_options parameter
5898 and use it.
5899 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5900 (backtrace_command_1): Add frame_print_options and
5901 backtrace_cmd_options parameters and use them.
5902 (make_backtrace_options_def_group): New.
5903 (backtrace_command): Process command options with
5904 gdb::option::process_options.
5905 (backtrace_command_completer): New.
5906 (_initialize_stack): Extend "backtrace"'s help to mention
5907 supported options. Install completer for "backtrace".
5908 Install some settings commands with add_setshow_cmds_for_options.
5909
2daf894e
PA
59102019-06-13 Pedro Alves <palves@redhat.com>
5911
5912 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5913 and that "set/show print raw frame-arguments" are now deprecated.
5914
5915 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5916 command.
5917 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5918 * stack.c (_initialize_stack): Install "set/show print
5919 raw-frame-arguments", and deprecate "set/show print raw
5920 frame-arguments".
5921 * valprint.c (_initialize_valprint): Deprecate "set/show print
5922 raw".
5923
e6ed716c
PA
59242019-06-13 Pedro Alves <palves@redhat.com>
5925
5926 * compile/compile.c (struct compile_options): New.
5927 (compile_flag_option_def, compile_command_option_defs)
5928 (make_compile_options_def_group): New.
5929 (compile_file_command): Handle options with
5930 gdb::option::process_options.
5931 (compile_file_command_completer): New function.
5932 (compile_code_command): Handle options with
5933 gdb::option::process_options.
5934 (compile_code_command_completer): New function.
5935 (_initialize_compiler): Install completers for "compile code" and
5936 "compile file". Mention available options in "compile code" and
5937 "compile code"'s help.
5938 * completer.c (advance_to_completion_word): New, factored out from
5939 ...
5940 (advance_to_expression_complete_word_point): ... this.
5941 (advance_to_filename_complete_word_point): New.
5942 * completer.h (advance_to_filename_complete_word_point): New
5943 declaration.
5944
7d8062de
PA
59452019-06-13 Pedro Alves <palves@redhat.com>
5946
5947 * compile/compile.c: Include "cli/cli-option.h".
5948 (compile_print_value): Scope data pointer is now a
5949 value_print_options pointer; adjust.
5950 (compile_print_command): Process options. Scope data pointer is
5951 now a value_print_options pointer; adjust.
5952 (_initialize_compile): Update "compile print"'s help to include
5953 supported options. Install a completer for "compile print".
5954 * cp-valprint.c (show_vtblprint, show_objectprint)
5955 (show_static_field_print): Delete.
5956 (_initialize_cp_valprint): Don't install "set print
5957 static-members", "set print vtbl", "set print object" here.
5958 * printcmd.c: Include "cli/cli-option.h" and
5959 "common/gdb_optional.h".
5960 (print_command_parse_format): Rework to fill in a
5961 value_print_options instead of a format_data.
5962 (print_value): Change parameter type from format_data pointer to
5963 value_print_options reference. Adjust.
5964 (print_command_1): Process options. Adjust to pass down a
5965 value_print_options.
5966 (print_command_completer): New.
5967 (_initialize_printcmd): Install print_command_completer as
5968 handle_brkchars completer for the "print" command. Update
5969 "print"'s help to include supported options.
5970 * valprint.c: Include "cli/cli-option.h".
5971 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5972 here from cp-valprint.c.
5973 (boolean_option_def, uinteger_option_def)
5974 (value_print_option_defs, make_value_print_options_def_group):
5975 New. Use gdb::option::add_setshow_cmds_for_options to install
5976 "set print elements", "set print null-stop", "set print repeats",
5977 "set print pretty", "set print union", "set print array", "set
5978 print address", "set print symbol", "set print array-indexes".
5979 * valprint.h: Include <string> and "cli/cli-option.h".
5980 (make_value_print_options_def_group): Declare.
5981 (print_value): Change parameter type from format_data pointer to
5982 value_print_options reference.
5983 (print_command_completer): Declare.
5984
9d0faba9
PA
59852019-06-13 Pedro Alves <palves@redhat.com>
5986
5987 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5988 (COMMON_SFILES): Add maint-test-settings.c.
5989 * cli/cli-decode.c (boolean_enums): New global, factored out from
5990 ...
5991 (add_setshow_boolean_cmd): ... here.
5992 * cli/cli-decode.h (boolean_enums): Declare.
5993 * cli/cli-option.c: New file.
5994 * cli/cli-option.h: New file.
5995 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5996 factored out from ...
5997 (parse_cli_boolean_value(const char *)): ... this.
5998 (is_unlimited_literal): Change parameter type to pointer to
5999 pointer. Adjust and advance ARG pointer.
6000 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6001 (parse_cli_var_enum): New, factored out from ...
6002 (do_set_command): ... this. Adjust.
6003 * cli/cli-setshow.h (parse_cli_boolean_value)
6004 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6005 (parse_cli_var_enum): Declare.
6006 * cli/cli-utils.c: Include "cli/cli-option.h".
6007 (get_ulongest): New.
6008 * cli/cli-utils.h (get_ulongest): Declare.
6009 (check_for_argument): New overloads.
6010 * maint-test-options.c: New file.
6011
2c722807
PA
60122019-06-13 Pedro Alves <palves@redhat.com>
6013
6014 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6015 parse a range if "-" is at the end of the string.
6016
dee7b4c8
PA
60172019-06-13 Pedro Alves <palves@redhat.com>
6018
6019 * cli/cli-setshow.c (parse_auto_binary_operation)
6020 (parse_cli_boolean_value): Don't allow "o".
6021
dca0f6c0
PA
60222019-06-13 Pedro Alves <palves@redhat.com>
6023
6024 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6025 * NEWS: Mention maint test-settings KIND.
6026 * maint-test-settings.c: New file.
6027
597bf39d
PA
60282019-06-13 Pedro Alves <palves@redhat.com>
6029
6030 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6031 completer.
6032 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6033 "set" completers.
6034
48c410fb
PA
60352019-06-13 Pedro Alves <palves@redhat.com>
6036
6037 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6038 after item.
6039
93bcb043
PA
60402019-06-13 Pedro Alves <palves@redhat.com>
6041
6042 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6043
cbba3ecd
PA
60442019-06-13 Pedro Alves <palves@redhat.com>
6045
6046 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6047 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6048 call.
6049 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6050 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6051 calls.
6052 (check_for_argument): Skip spaces after argument.
6053
b9a3f842
PA
60542019-06-13 Pedro Alves <palves@redhat.com>
6055
6056 * thread.c (thread_apply_command): Adjust TID parsing.
6057 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6058 detected before end of string.
6059 (tid_is_in_list): Error out if LIST is invalid.
6060
3844e605
PA
60612019-06-13 Pedro Alves <palves@redhat.com>
6062
6063 * completer.c (complete_line_internal_1): Rewind completion word
6064 point.
6065 (completion_tracker::advance_custom_word_point_by): Change
6066 parameter type to int.
6067 * completer.h (completion_tracker::advance_custom_word_point_by):
6068 Likewise.
6069
00b56dbe
PA
60702019-06-13 Pedro Alves <palves@redhat.com>
6071
6072 * completer.c (advance_to_completion_word): Handle delimiters.
6073
d106773e
PA
60742019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6075
6076 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6077
08f10e02
TT
60782019-06-11 Tom Tromey <tom@tromey.com>
6079
6080 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6081 (xmalloc_failed): Move to alloc.c.
6082 * alloc.c: New file.
6083 * Makefile.in (COMMON_SFILES): Add alloc.c.
6084
1c7fe951
TT
60852019-06-11 Tom Tromey <tom@tromey.com>
6086
6087 * nat/linux-waitpid.c: Don't include server.h.
6088 (linux_debug): Remove.
6089 (my_waitpid): Update.
6090
89549d7f
TT
60912019-06-11 Tom Tromey <tromey@adacore.com>
6092
6093 * infcall.c (_initialize_infcall): Remove trailing newline from
6094 help.
6095 * user-regs.c (_initialize_user_regs): Remove trailing newline
6096 from help.
6097 * typeprint.c (_initialize_typeprint): Remove trailing newline
6098 from help.
6099 * reverse.c (_initialize_reverse): Remove trailing newlines from
6100 help.
6101 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6102 from help.
6103 * language.c (add_set_language_command): Remove trailing newline
6104 from help.
6105 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6106 help.
6107 * disasm.c (_initialize_disasm): Remove trailing newline from
6108 help.
6109 * top.c (init_main): Remove trailing newline from help.
6110 * interps.c (_initialize_interpreter): Remove trailing newline
6111 from help.
6112 * btrace.c (_initialize_btrace): Remove trailing newlines from
6113 help.
6114 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6115 from help.
6116 * python/python.c (_initialize_python): Remove trailing newline
6117 from help.
6118 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6119 help.
6120 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6121 from help. Reformat some text.
6122 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6123 from help.
6124 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6125 newline from help.
6126
86108c13
TT
61272019-06-11 Tom Tromey <tromey@adacore.com>
6128
6129 * darwin-nat.c (darwin_decode_exception_message)
6130 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6131
a7067863
AB
61322019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6133
6134 * valops.c (value_slice): Check for not allocated or not
6135 associated values.
6136
9ab08412
TV
61372019-06-10 Tom de Vries <tdevries@suse.de>
6138
6139 PR gdb/24618
6140 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6141 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6142 invalid.
6143
f19e22e9
TV
61442019-06-10 Tom de Vries <tdevries@suse.de>
6145
6146 PR gdb/24611
6147 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6148 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6149
e99f9db0
TV
61502019-06-10 Tom de Vries <tdevries@suse.de>
6151
6152 PR symtab/24545
6153 * symtab.c (struct demangled_name_entry): Add language field.
6154 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6155 static minimal symbol". Set and use language field.
6156
9bf7038b
TT
61572019-06-10 Tom Tromey <tromey@adacore.com>
6158
6159 * ada-lang.c (_initialize_ada_language): Update help text.
6160
422186a9
TT
61612019-06-10 Tom Tromey <tromey@adacore.com>
6162
6163 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6164 with a newline.
6165 * guile/guile.c (handle_boot_error): Don't end warning with a
6166 newline.
6167 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6168 warning with a newline.
6169 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6170 newline.
6171 (s12z_frame_cache): Likewise.
6172 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6173 a newline.
6174 * solib-svr4.c (disable_probes_interface): Don't end warning with
6175 a newline.
6176 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6177 newline.
6178 * python/python.c (do_finish_initialization): Don't end warning
6179 with a newline.
6180
25ce02ee
TT
61812019-06-10 Tom Tromey <tom@tromey.com>
6182
6183 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6184 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6185 gdbpy_enter.
6186
caa429d8
TT
61872019-06-10 Tom Tromey <tromey@adacore.com>
6188
6189 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6190 data.
6191 (elf_new_init): Don't call stabsread_new_init.
6192 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6193 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6194 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6195
81873cc8
TV
61962019-06-10 Tom de Vries <tdevries@suse.de>
6197
6198 PR symtab/16264
6199 PR symtab/24517
6200 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6201
4fa0265e
РИ
62022019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6203
6204 * source.c (find_and_open_source): Also rewrite relative file
6205 names.
6206
1a3da2cd
AB
62072019-04-26 Amos Bird <amosbird@gmail.com>
6208
6209 * annotate.c (annotate_thread_exited): Add "thread-exited"
6210 annotation.
6211
3847a7bf
TT
62122019-06-06 Tom Tromey <tromey@adacore.com>
6213
6214 * maint.h (class scoped_command_stats): Use
6215 DISABLE_COPY_AND_ASSIGN.
6216 <print_time>: New method.
6217 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6218 print_time.
6219 (scoped_command_stats::print_time): New method.
6220
312617a3
AB
62212019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6222
6223 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6224 instructions of lengths 6 or 8 bytes.
6225
b02f78f9
PA
62262019-06-04 Pedro Alves <palves@redhat.com>
6227
6228 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6229
6230 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6231 * breakpoint.c (condition_completer): Likewise.
6232 * cli/cli-dump.c (scan_expression): Likewise.
6233 * common/filestuff.c (mkdir_recursive): Likewise.
6234 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6235 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6236 (gdb_abspath): Likewise.
6237 * compile/compile-cplus-types.c
6238 (compile_cplus_instance::decl_name): Likewise.
6239 * completer.c (complete_explicit_location):
6240 (signal_completer, reg_or_group_completer_1): Likewise.
6241 * cp-support.c (cp_remove_params_if_any): Likewise.
6242 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6243 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6244 * infcmd.c (strip_bg_char): Likewise.
6245 * linespec.c (copy_token_string): Likewise.
6246 * mi/mi-main.c (output_cores): Likewise.
6247 * psymtab.c (psymtab_search_name):
6248 * symfile.c (test_set_ext_lang_command): Likewise.
6249 * target.c (target_fileio_read_stralloc): Likewise.
6250 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6251 * value.c (complete_internalvar): Likewise.
6252
e1f2e1a2
CB
62532019-06-04 Christian Biesinger <cbiesinger@google.com>
6254
6255 Add objfile property to gdb.Type.
d3238f7d
PA
6256 * NEWS: Mention Python API addition.
6257 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 6258
e664d728
PW
62592019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6260
6261 * NEWS: Mention the new set|show style [title|highlight].
6262 Mention changes to "show style", "help" and "apropos".
6263
66d8c862
PW
62642019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6265
6266 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6267 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
6268 instead of print_help_for_command.
6269 (print_doc_of_command): New function.
6270 (help_list): Add 'apropos -v word' suggestion.
6271 (print_help_for_command): Style the command name using title style.
6272 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6273 (_initialize_cli_cmds): Describe -v in apropos_command help.
6274
9303eb2f
PW
62752019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6276
6277 * cli/cli-style.h (cli_style_option): Add name in constructor,
6278 add m_name class member, add constructor with intensity,
6279 add name class function.
6280 (cli_style_option::add_setshow_commands): Remove name argument.
6281 (highlight_style, title_style): New styles.
6282 * cli/cli-style.c (do_show): New function that shows a style
6283 characteristic styling the style name with itself.
6284 (set_style_name): New function.
6285 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6286 Update all callers according to the changes in cli/cli-style.h.
6287 * utils.h (fputs_highlighted): New function.
6288 * utils.c (fputs_highlighted): Likewise.
6289
e2c52041
PW
62902019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6291
6292 * NEWS: Mention new pipe command and new convenience variables.
6293
947d3946
PW
62942019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6295
6296 * cli/cli-cmds.c (pipe_command): New function.
6297 (_initialize_cli_cmds): Call add_com for pipe_command.
6298 Define | as an alias for pipe.
6299 (exit_status_set_internal_vars): New function.
6300 (shell_escape): Call exit_status_set_internal_vars.
6301 cli/cli-decode.c (find_command_name_length): Recognize | as
6302 a single character command.
6303
b8fd0918
PW
63042019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6305
6306 * gdbcmd.h (execute_command_to_ui_file): New declaration.
6307 top.c (execute_command_to_ui_file): New function, mostly a copy
6308 of execute_command_to_string.
6309 (execute_command_to_string): Implement by calling
6310 execute_command_to_ui_file.
6311
68bb5386
PW
63122019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6313
6314 * top.h (saved_command_line): Remove declaration.
6315 * top.c (previous_saved_command_line, previous_repeat_arguments):
6316 New variables.
6317 (saved_command_line): Make static, define together with other
6318 'repeat variables'.
6319 (dont_repeat): Clear repeat_arguments.
6320 (repeat_previous, get_saved_command_line, save_command_line):
6321 New functions.
6322 (gdb_init): Initialize saved_command_line
6323 and previous_saved_command_line.
6324 * main.c (captured_main_1): Remove saved_command_line initialization.
6325 * event-top.c (handle_line_of_input): Update to use
6326 the new 'repeat' related functions instead of direct access to
6327 saved_command_line.
6328 * command.h (repeat_previous, get_saved_command_line,
6329 save_command_line): New declarations.
6330 (dont_repeat): Add comment.
6331
bfcdb852
TT
63322019-05-30 Tom Tromey <tromey@adacore.com>
6333
6334 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6335 Fix comment.
6336 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6337
0ef209f2
JV
63382019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6339
6340 PR cli/24587
6341 * completer.c (complete): Initialize variable word.
6342
955b06fa
SDJ
63432019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6344
6345 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6346 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6347 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6348 'body' is NULL to the outter 'if', protecting the '!is_define'
6349 situation as well.
6350
fa9c3fa0
TT
63512019-05-29 Tom Tromey <tromey@adacore.com>
6352
6353 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6354 (dwarf_unknown): New function.
6355 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6356 (dwarf_type_encoding_name): Use dwarf_unknown.
6357
4330d61d
TT
63582019-05-29 Tom Tromey <tromey@adacore.com>
6359
6360 PR c++/20020:
6361 * cp-valprint.c (cp_print_value_fields): Call
6362 cp_print_static_field inside "try".
6363
33a6bc35
TT
63642019-05-29 Tom Tromey <tromey@adacore.com>
6365
6366 * inflow.c (struct terminal_info): Add default operator=.
6367 * configure: Rebuild.
6368 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6369 -Wdeprecated-copy-dtor, -Wredundant-move.
6370
000439d5
TT
63712019-05-29 Tom Tromey <tromey@adacore.com>
6372
6373 * NEWS: Add entry.
6374 * infcmd.c (print_return_value_1): Handle finish_print
6375 option.
6376 (show_print_finish): New function.
6377 (_initialize_infcmd): Add "set/show print finish" commands.
6378 * valprint.c (user_print_options): Initialize new member.
6379 * valprint.h (struct value_print_options) <finish_print>: New
6380 member.
6381
c0e70c62
TT
63822019-05-28 Tom Tromey <tromey@adacore.com>
6383
6384 * ada-lang.c (ada_remove_Xbn_suffix)
6385 (find_old_style_renaming_symbol)
6386 (parse_old_style_renaming): Remove.
6387 (ada_find_renaming_symbol): Don't call
6388 find_old_style_renaming_symbol.
6389 (ada_is_renaming_symbol): Rename from
6390 ada_find_renaming_symbol. Remove "block" parameter. Return
6391 bool. Now static.
6392 (ada_read_var_value): Update and simplify.
6393 * ada-exp.y (write_var_or_type): Remove old code.
6394
766f8836
AH
63952019-05-28 Alan Hayward <alan.hayward@arm.com>
6396
6397 * event-top.c: Remove include comment.
6398 * inflow.c (class scoped_ignore_sigttou): Move from here...
6399 * inflow.h (class scoped_ignore_sigttou): ...to here.
6400 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6401 * top.c: Remove include comment.
6402
eb41253a
TT
64032019-05-27 Tom Tromey <tom@tromey.com>
6404
6405 * NEWS: Fix typo.
6406
4ca51187
TT
64072019-05-22 Tom Tromey <tromey@adacore.com>
6408
6409 * target.c (target_follow_exec): Constify parameter.
6410 * target-delegates.c: Rebuild.
6411 * remote.c (remote_target::follow_exec): Constify parameter.
6412 * infrun.c (follow_exec): Constify parameter.
6413 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6414 (target_follow_exec): Likewise.
6415
8fca4da0
AH
64162019-05-22 Alan Hayward <alan.hayward@arm.com>
6417
6418 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6419 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6420
b7060614
AH
64212019-05-22 Alan Hayward <alan.hayward@arm.com>
6422
6423 * NEWS: Add debugredirect and testsuite sections.
6424
0a5954bd
SC
64252019-05-22 Simon Cook <simon.cook@embecosm.com>
6426
6427 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6428 target descriptions using exclusively floating point register name
6429 aliases.
6430
dc42e902
AB
64312019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6432
6433 PR gdb/18644:
6434 * f-lang.c (build_fortran_types): Handle the case where
6435 gdbarch_floatformat_for_type returns a nullptr.
6436
fb7806c7
TV
64372019-05-21 Tom de Vries <tdevries@suse.de>
6438
6439 PR cli/24587
6440 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6441
34d11c68
AB
64422019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6443
6444 PR gdb/18644:
6445 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6446 16-byte floats.
6447 * i386-tdep.c (i386_floatformat_for_type): Use
6448 floatformats_ia64_quad for the 16-byte floating point component
6449 within a fortran 32-byte complex number.
6450
122cf0f2
AB
64512019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6452
6453 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6454 delete default constructor.
6455 (find_partial_die): Update to return const struct.
6456 (partial_die_parent_scope): Move variable declaration into scope
6457 of its use and change its type to auto.
6458 (guess_partial_die_structure_name): Likewise.
6459 (partial_die_info::fixup): Likewise.
6460
33d0e35a
TT
64612019-05-17 Tom Tromey <tromey@adacore.com>
6462
6463 * source.c (find_and_open_source): Remove cast.
6464
a45575b0
TT
64652019-05-17 Tom Tromey <tromey@adacore.com>
6466
6467 * annotate.c (annotate_source): Make "filename" const.
6468 * annotate.h (annotate_source): Use const.
6469
81f47ac2
AH
64702019-05-17 Alan Hayward <alan.hayward@arm.com>
6471
6472 * disasm.c (set_disassembler_options): Send errors to stderr.
6473
ca1285d1
AH
64742019-05-17 Alan Hayward <alan.hayward@arm.com>
6475
6476 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6477 (cli_interp_base::set_logging): Check debug_redirect.
6478 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6479 * cli/cli-logging.c (debug_redirect): Add static variable.
6480 (pop_output_files): Add default param.
6481 (handle_redirections): Print debug setting.
6482 (show_logging_command): Likewise.
6483 (_initialize_cli_logging): Add debugredirect command.
6484 * interps.c (current_interp_set_logging): Add debug_redirect
6485 parameter.
6486 * interps.h (set_logging): Add debug_redirect parameter.
6487 (current_interp_set_logging): Likewise.
6488 * mi/mi-common.h: Likewise.
6489 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6490
64912019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
6492 Tom Tromey <tromey@adacore.com>
6493
6494 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6495 directly.
6496 * cli/cli-interp.h (make_logging_output): Remove declaration.
6497 * cli/cli-logging.c (make_logging_output): Remove function.
6498 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6499 directly.
6500 * ui-file.c (tee_file::tee_file): Remove bools.
6501 (tee_file::~tee_file): Remove deletes.
6502 * ui-file.h (tee_file): Remove bools.
6503
26648588
JV
65042019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6505
6506 * mi/mi-cmds.h (mi_cmd_complete): New function.
6507 * mi/mi-main.c (mi_cmd_complete): Likewise.
6508 * mi/mi-cmds.c: Define new MI command -complete.
6509 * NEWS: Mention new -complete command.
6510
6e035501
JV
65112019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6512
6513 * completer.h (complete): New function.
6514 * completer.c (complete): Likewise.
6515 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6516 function defined in completer.h.
6517
7d0e2ece
JV
65182019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6519
e79be6e5 6520 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 6521
fb816e8b
TV
65222019-05-17 Tom de Vries <tdevries@suse.de>
6523
6524 PR gdb/24094
6525 * dwarf2read.c (struct cu_partial_die_info): New struct.
6526 (find_partial_die): Return cu_partial_die_info.
6527 (partial_die_parent_scope, guess_partial_die_structure_name)
6528 (partial_die_info::fixup): Handle new return type of find_partial_die.
6529
677052f2
SDJ
65302019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6531
a1726c38 6532 PR breakpoints/24541
677052f2
SDJ
6533 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6534 "std::string", simplifying the algorithm.
6535
f3da9116
SDJ
65362019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6537
6538 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6539 (stap_static_probe_ops::get_probes): Likewise.
6540
f1bb75ab
SDJ
65412019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6542
6543 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6544 '-')" and "else if".
6545 (stap_parse_single_operand): Join checks for
6546 "gdbarch_stap_parse_special_token_p" and
6547 "gdbarch_stap_parse_special_token" in the same "if" statement.
6548 Invert check when verifying for operation on register
6549 displacement.
6550
3ca58cde
SDJ
65512019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6552
6553 * stap-probe.c (stap_get_opcode): Update comment.
6554 (stap_get_expected_argument_type): Likewise.
6555 (handle_stap_probe): Likewise.
6556
af2d9bee
SDJ
65572019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6558
6559 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6560 return type to 'bool'. Adjust comment. Use 'bool' when
6561 appropriate.
6562 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6563 * stap-probe.c (stap_parse_argument_1): Likewise.
6564 (stap_is_operator): Likewise.
6565 (stap_is_generic_prefix): Likewise.
6566 (stap_is_register_prefix): Likewise.
6567 (stap_is_register_indirection_prefix): Likewise.
6568 (stap_is_integer_prefix): Likewise.
6569 (stap_generic_check_suffix): Likewise.
6570 (stap_check_integer_suffix): Likewise.
6571 (stap_check_register_suffix): Likewise.
6572 (stap_check_register_indirection_suffix): Likewise.
6573 (stap_parse_register_operand): Likewise.
6574 (stap_parse_single_operand): Likewise.
6575 (stap_parse_argument_1): Likewise.
6576 (stap_probe::get_argument_count): Likewise.
6577 (stap_is_operator): Likewise.
6578
61c9c421
TT
65792019-05-16 Tom Tromey <tromey@adacore.com>
6580
6581 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6582 keyword to foreach.
6583
9ddc1af1
SM
65842019-05-15 Simon Marchi <simon.marchi@efficios.com>
6585
6586 * linux-thread-db.c (try_thread_db_load_1): Change return type
6587 to bool.
6588 (try_thread_db_load): Likewise.
6589 (try_thread_db_load_from_pdir_1): Likewise.
6590 (try_thread_db_load_from_pdir): Likewise.
6591 (try_thread_db_load_from_sdir): Likewise.
6592 (try_thread_db_load_from_dir): Likewise.
6593 (thread_db_load_search): Likewise.
6594 (has_libpthread): Likewise.
6595 (thread_db_load): Likewise.
6596
7bede828
SDJ
65972019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6598
6599 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6600 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6601 NULL, and complain/return if that's the case.
6602
c5358db4
JD
66032019-05-15 John Darrington <john@darrington.wattle.id.au>
6604
6605 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6606 (advance, posn, abstract_read_memory): New functions.
6607 [struct mem_read_abstraction]: New struct.
6608 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6609
c408a94f
TT
66102019-05-14 Tom Tromey <tromey@adacore.com>
6611
6612 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6613 value is not lval_memory.
6614
e7bd7fba
TT
66152019-05-14 Tom Tromey <tromey@adacore.com>
6616
6617 * solib.c (info_sharedlibrary_command): Style the file name.
6618
a6d0f249
AH
66192019-05-14 Alan Hayward <alan.hayward@arm.com>
6620
6621 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6622 (aarch64_vnv_type): Likewise.
6623 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6624 * common/tdesc.c: Likewise.
6625 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6626 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6627 * features/aarch64-fpu.xml: Add ieee half view.
6628 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6629 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6630 * gdbtypes.h (struct builtin_type): Likewise.
6631 (struct objfile_type): Likewise.
6632
66b8bb74
SM
66332019-05-12 Paul Naert <paul.naert@polymtl.ca>
6634
6635 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6636 typo.
6637 * location.h (string_to_event_location): Likewise.
6638
21c219fd
JB
66392019-05-11 Joel Brobecker <brobecker@adacore.com>
6640
6641 GDB 8.3 released.
6642
13674803
SM
66432019-05-10 Simon Marchi <simon.marchi@efficios.com>
6644
6645 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6646 New variable declaration.
6647 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6648 New variable.
6649 (print_one_breakpoint): Use ui_out::test_flags and new global
6650 variable to compute use_fixed_output.
6651 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6652 Remove.
6653 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6654 (mi_multi_location_breakpoint_output_fixed): Remove.
6655 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6656 new variable.
6657 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6658 fix_multi_location_breakpoint_output flag if version >= 3.
6659 * ui-out.h (enum ui_out_flag)
6660 <fix_multi_location_breakpoint_output>: New enumerator.
6661
a9eac7f9
SM
66622019-05-10 Simon Marchi <simon.marchi@efficios.com>
6663
6664 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6665
71bed2db
TT
66662019-05-10 Tom Tromey <tromey@adacore.com>
6667
6668 * ada-lang.c (catch_ada_completer): New function.
6669 (_initialize_ada_language): Use it.
6670
24c54127
TT
66712019-05-10 Tom Tromey <tromey@adacore.com>
6672
6673 * thread.c (print_thread_info): Make "requested_threads" const.
6674 * gdbthread.h (print_thread_info): Make "requested_threads"
6675 const.
6676 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6677 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6678
7a102139
TT
66792019-05-08 Tom Tromey <tom@tromey.com>
6680
6681 * gdbtypes.c (objfile_type_data): Change type.
6682 (objfile_type, _initialize_gdbtypes): Update.
6683
924d79e2
TT
66842019-05-08 Tom Tromey <tom@tromey.com>
6685
6686 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6687 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6688 (_initialize_dwarf2_frame): Update.
6689
4c58e337
TT
66902019-05-08 Tom Tromey <tom@tromey.com>
6691
6692 * objc-lang.c (objc_objfile_data): Change type.
6693 (find_methods): Update.
6694 (_initialize_objc_lang): Remove.
6695
d772d2ab
TT
66962019-05-08 Tom Tromey <tom@tromey.com>
6697
6698 * stabsread.c (rs6000_builtin_type_data): Change type.
6699 (rs6000_builtin_type, _initialize_stabsread): Update.
6700
d11d83f4
TT
67012019-05-08 Tom Tromey <tom@tromey.com>
6702
6703 * mips-tdep.c (mips_pdr_data): Remove.
6704 (_initialize_mips_tdep): Update.
6705
9a73f0ad
TT
67062019-05-08 Tom Tromey <tom@tromey.com>
6707
6708 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6709 (hppa_init_objfile_priv_data, read_unwind_info)
6710 (find_unwind_entry, _initialize_hppa_tdep): Update.
6711
8127a2fa
TT
67122019-05-08 Tom Tromey <tom@tromey.com>
6713
6714 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6715 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6716 on obstack.
6717 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6718
91d3055d
TT
67192019-05-08 Tom Tromey <tom@tromey.com>
6720
6721 * mdebugread.c (basic_type_data): Change type.
6722 (basic_type, _initialize_mdebugread): Update.
6723
31930bd3
TT
67242019-05-08 Tom Tromey <tom@tromey.com>
6725
6726 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6727
bdb3ed9e
TT
67282019-05-08 Tom Tromey <tom@tromey.com>
6729
6730 * nto-tdep.c (nto_inferior_data_reg): Change type.
6731 (nto_inferior_data): Update.
6732 (nto_inferior_data_cleanup, nto_new_inferior_data)
6733 (_initialize_nto_tdep): Remove.
6734 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6735
f37b313d
TT
67362019-05-08 Tom Tromey <tom@tromey.com>
6737
6738 * ada-lang.c (struct ada_inferior_data): Add initializers.
6739 (ada_inferior_data): Change type.
6740 (ada_inferior_data_cleanup): Remove.
6741 (get_ada_inferior_data, ada_inferior_exit)
6742 (struct ada_pspace_data): Add initializers, destructor.
6743 (ada_pspace_data_handle): Change type.
6744 (get_ada_pspace_data): Update.
6745 (ada_pspace_data_cleanup): Remove.
6746
24699405
TT
67472019-05-08 Tom Tromey <tom@tromey.com>
6748
6749 * coffread.c (struct coff_symfile_info): Add initializers.
6750 (coff_objfile_data_key): Move lower. Change type.
6751 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6752 Update.
6753 (coff_free_info): Remove.
6754
d4e05d2f
TT
67552019-05-08 Tom Tromey <tom@tromey.com>
6756
6757 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6758 (fbsd_pspace_data_handle): Move lower. Change type.
6759 (get_fbsd_pspace_data): Update.
6760 (fbsd_pspace_data_cleanup): Remove.
6761 (_initialize_fbsd_tdep): Update.
6762
14ef6690
TT
67632019-05-08 Tom Tromey <tom@tromey.com>
6764
6765 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6766 (get_ada_tasks_pspace_data): Update.
6767 (ada_tasks_pspace_data_cleanup): Remove.
6768 (_initialize_tasks): Update.
6769 (ada_tasks_inferior_data_handle): Change type.
6770 (get_ada_tasks_inferior_data): Update.
6771 (ada_tasks_inferior_data_cleanup): Remove.
6772 (struct ada_tasks_pspace_data): Add initializers.
6773
814cf43a
TT
67742019-05-08 Tom Tromey <tom@tromey.com>
6775
6776 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6777 * symfile-debug.c (debug_sym_get_probes): Change type.
6778 * stap-probe.c (handle_stap_probe):
6779 (stap_static_probe_ops::get_probes): Change type.
6780 * probe.h (class static_probe_ops) <get_probes>: Change type.
6781 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6782 (parse_probes_in_pspace): Update.
6783 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6784 Update.
6785 (any_static_probe_ops::get_probes): Change type.
6786 * elfread.c (elfread_data): New typedef.
6787 (probe_key): Change type.
6788 (elf_get_probes): Likewise. Update.
6789 (probe_key_free): Remove.
6790 (_initialize_elfread): Update.
6791 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6792 Change type.
6793 (dtrace_process_dof_probe, dtrace_process_dof)
6794 (dtrace_static_probe_ops::get_probe): Change type.
6795
02dc647e
TT
67962019-05-08 Tom Tromey <tom@tromey.com>
6797
6798 * xcoffread.c (struct xcoff_symfile_info): Rename from
6799 coff_symfile_info. Add initializers.
6800 (xcoff_objfile_data_key): Move lower. Change type.
6801 (XCOFF_DATA): Rewrite.
6802 (xcoff_free_info): Remove.
6803 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6804 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6805 (xcoff_initial_scan): Update.
6806
09232438
TT
68072019-05-08 Tom Tromey <tom@tromey.com>
6808
6809 * solib-svr4.c (struct svr4_info): Add initializers and
6810 destructor.
6811 <probes_table>: Now an htab_up.
6812 (solib_svr4_pspace_data): Change type.
6813 (free_probes_table): Simplify.
6814 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6815 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6816 (probes_table_remove_objfile_probes, register_solib_event_probe)
6817 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6818 (_initialize_svr4_solib): Update.
6819
7b4a314f
TT
68202019-05-08 Tom Tromey <tom@tromey.com>
6821
6822 * remote.c (remote_pspace_data): Change type.
6823 (remote_pspace_data_cleanup): Remove.
6824 (get_remote_exec_file, set_pspace_remote_exec_file)
6825 (_initialize_remote): Update.
6826
51d3063a
TT
68272019-05-08 Tom Tromey <tom@tromey.com>
6828
6829 * breakpoint.c (breakpoint_objfile_key): Change type.
6830 (get_breakpoint_objfile_data): Update.
6831 (free_breakpoint_objfile_data): Remove.
6832 (_initialize_breakpoint): Update.
6833
89fb8848
TT
68342019-05-08 Tom Tromey <tom@tromey.com>
6835
6836 * linux-tdep.c (struct linux_info): Add initializers.
6837 (linux_inferior_data): Move. Change type.
6838 (invalidate_linux_cache_inf): Update.
6839 (linux_inferior_data_cleanup): Remove.
6840 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6841
e9b89e2d
TT
68422019-05-08 Tom Tromey <tom@tromey.com>
6843
6844 * auxv.c (auxv_inferior_data): Move. Change type.
6845 (auxv_inferior_data_cleanup): Remove.
6846 (invalidate_auxv_cache_inf): Rewrite.
6847 (get_auxv_inferior_data, _initialize_auxv): Update.
6848
8c42777c
TT
68492019-05-08 Tom Tromey <tom@tromey.com>
6850
6851 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6852 (symfile_debug_objfile_data_key): Change type.
6853 (symfile_debug_installed, debug_qf_has_symbols)
6854 (debug_qf_find_last_source_symtab)
6855 (debug_qf_forget_cached_source_info)
6856 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6857 (debug_qf_print_stats, debug_qf_dump)
6858 (debug_qf_expand_symtabs_for_function)
6859 (debug_qf_expand_all_symtabs)
6860 (debug_qf_expand_symtabs_with_fullname)
6861 (debug_qf_map_matching_symbols)
6862 (debug_qf_expand_symtabs_matching)
6863 (debug_qf_find_pc_sect_compunit_symtab)
6864 (debug_qf_map_symbol_filenames)
6865 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6866 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6867 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6868 (debug_sym_read_linetable, debug_sym_relocate): Update.
6869 (symfile_debug_free_objfile): Remove.
6870 (install_symfile_debug_logging, _initialize_symfile_debug):
6871 Update.
6872
5bfd760d
TT
68732019-05-08 Tom Tromey <tom@tromey.com>
6874
6875 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6876 allocate_on_obstack.
6877 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6878 (get_dwarf2_per_objfile): Update.
6879 (set_dwarf2_per_objfile): Remove.
6880 (dwarf2_has_info, dwarf2_get_section_info): Update.
6881 (dwarf2_free_objfile): Remove.
6882 (_initialize_dwarf2_read): Update.
6883
e85e19b4
TT
68842019-05-08 Tom Tromey <tom@tromey.com>
6885
6886 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6887 initializers.
6888 <unsupported_script_warning_printed,
6889 script_not_found_warning_printed>: Now bool.
6890 (auto_load_pspace_data): Change type.
6891 (~auto_load_pspace_info): Rename from
6892 auto_load_pspace_data_cleanup.
6893 (get_auto_load_pspace_data, init_loaded_scripts_info)
6894 (clear_section_scripts, maybe_print_unsupported_script_warning)
6895 (maybe_print_script_not_found_warning, _initialize_auto_load):
6896 Update.
6897
f6aa7436
TT
68982019-05-08 Tom Tromey <tom@tromey.com>
6899
6900 * objfiles.c (objfile_pspace_info): Add destructor and
6901 initializers.
6902 (objfiles_pspace_data): Change type.
6903 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6904 (get_objfile_pspace_data): Update.
6905 (objfiles_bfd_data): Change type.
6906 (get_objfile_bfd_data): Update.
6907 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6908
6ae614f6
TT
69092019-05-08 Tom Tromey <tom@tromey.com>
6910
6911 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6912 Change type.
6913 (get_catch_syscall_inferior_data): Update.
6914 (catch_syscall_inferior_data_cleanup): Remove.
6915 (_initialize_break_catch_syscall): Update.
6916
6509b8eb
TT
69172019-05-08 Tom Tromey <tom@tromey.com>
6918
6919 * inflow.c (struct terminal_info): Add destructor and
6920 initializers.
6921 (inflow_inferior_data): Change type.
6922 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6923 (get_inflow_inferior_data, inflow_inferior_exit)
6924 (swap_terminal_info, _initialize_inflow): Update.
6925
35632941
TT
69262019-05-08 Tom Tromey <tom@tromey.com>
6927
6928 * target-dcache.c (target_dcache_cleanup): Remove.
6929 (target_dcache_aspace_key): Change type.
6930 (target_dcache_init_p, target_dcache_invalidate)
6931 (target_dcache_get, target_dcache_get_or_init)
6932 (_initialize_target_dcache): Update.
6933 * dcache.h (struct dcache_deleter): New.
6934
3017b94d
TT
69352019-05-08 Tom Tromey <tom@tromey.com>
6936
6937 * symtab.c (struct symbol_cache): Add destructor and
6938 initializers.
6939 (symbol_cache_key): Move. Change type.
6940 (make_symbol_cache, free_symbol_cache): Remove.
6941 (get_symbol_cache): Update.
6942 (symbol_cache_cleanup): Remove.
6943 (ALL_PSPACES, symbol_cache_flush)
6944 (maintenance_print_symbol_cache)
6945 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6946 Update.
6947
a32ad8c5
TT
69482019-05-08 Tom Tromey <tom@tromey.com>
6949
6950 * symtab.c (struct main_info): Add destructor and initializers.
6951 (main_progspace_key): Move. Change type.
6952 (get_main_info): Update.
6953 (main_info_cleanup): Remove.
6954 (_initialize_symtab): Update.
6955
5f6e90a0
TT
69562019-05-08 Tom Tromey <tom@tromey.com>
6957
6958 * registry.h (DECLARE_REGISTRY): Define the _key class.
6959
1bd0c6e4
AB
69602019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6961
6962 * NEWS: Merge two 'New commands' sections.
6963
2228ef77
XR
69642019-05-08 Joel Brobecker <brobecker@adacore.com>
6965
6966 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6967 parameter and use Ada language definition instead.
6968 (ada_val_print_ptr): Remove unused language parameter.
6969 (ada_val_print_num): Remove language parameter and use Ada language
6970 definition instead.
6971 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6972 parameter.
6973 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6974 parameter and use Ada language definition instead.
6975 (ada_val_print_1): Update all ada_val_print_xxx calls.
6976 Remove language parameter.
6977 (ada_val_print): Update ada_val_print_1 call.
6978
60fcc1c3
TT
69792019-05-08 Tom Tromey <tromey@adacore.com>
6980
6981 * remote.c (remote_hw_watchpoint_limit)
6982 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6983 Now static.
6984
ed2b7c17
TT
69852019-05-08 Tom Tromey <tromey@adacore.com>
6986
6987 * maint.c (_initialize_maint_cmds): Move initialization code to
6988 remote.c.
6989 (watchdog, show_watchdog): Move to remote.c.
6990 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6991 "watchdog" static.
6992 (_initialize_remote): Move initialization code from maint.c.
6993 * defs.h (watchdog): Don't declare.
6994
b0be6c91
TT
69952019-05-08 Tom Tromey <tromey@adacore.com>
6996
6997 * tui/tui-interp.c: Include main.h.
6998 * interps.c: Include main.h.
6999 * main.h (interpreter_p): Declare.
7000 * defs.h (interpreter_p): Don't declare.
7001
587ee17b
TT
70022019-05-08 Tom Tromey <tromey@adacore.com>
7003
7004 * dwarf2loc.c: Include dwarf2read.h.
7005 * defs.h (read_unsigned_leb128): Don't declare.
7006 * dwarf2read.h (read_unsigned_leb128): Declare.
7007
ca1df239
TT
70082019-05-08 Tom Tromey <tromey@adacore.com>
7009
7010 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7011 method.
7012
99f20f08
TT
70132019-05-08 Tom Tromey <tromey@adacore.com>
7014
7015 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7016 when no wrap column is set.
7017
80e55b13
TT
70182019-05-08 Tom Tromey <tromey@adacore.com>
7019
7020 * c-lang.c (c_get_string): Handle non-C-style arrays.
7021
9d3421af
TT
70222019-05-08 Tom Tromey <tromey@adacore.com>
7023
7024 * typeprint.c (print_offset_data::update): Print the bit offset,
7025 not the number of bits remaining.
7026
844333e2
TT
70272019-05-08 Tom Tromey <tromey@adacore.com>
7028
7029 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7030 padding at end of comment.
7031
988915ee
TT
70322019-05-08 Tom Tromey <tromey@adacore.com>
7033
7034 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7035 Compare main types.
7036
26bfd823
TT
70372019-05-06 Tom Tromey <tom@tromey.com>
7038
7039 * common/scoped_mmap.c: Include common-defs.h.
7040 * common/scoped_mmap.h: Don't include config.h.
7041
89055eaa
TT
70422019-05-04 Tom Tromey <tom@tromey.com>
7043
7044 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7045 (struct aarch64_call_info): Add initializers.
7046 <si>: Now a std::vector.
7047 (pass_on_stack, aarch64_push_dummy_call): Update.
7048
5da01df5
TT
70492019-05-04 Simon Marchi <simon.marchi@efficios.com>
7050 Tom Tromey <tom@tromey.com>
7051
7052 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7053 (ppc_threads): Now a std::vector. Now static.
7054 (hwdebug_find_thread_points_by_tid)
7055 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7056 Update.
7057
fbdf05a1
TT
70582019-05-04 Tom Tromey <tom@tromey.com>
7059
7060 * arc-tdep.c (arc_tdesc_init): Return bool.
7061
06d16ec9
TT
70622019-05-04 Tom Tromey <tom@tromey.com>
7063
7064 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7065 Use gdb_assert_not_reached.
7066
9c056022
TT
70672019-05-04 Tom Tromey <tom@tromey.com>
7068
7069 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7070 "false".
7071
fa9c2a59
TT
70722019-05-04 Tom Tromey <tom@tromey.com>
7073
7074 * arc-tdep.c (arc_tdesc_init): Use bool.
7075
e2eb806a
TT
70762019-05-04 Tom Tromey <tom@tromey.com>
7077
7078 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7079
6fe87677
TT
70802019-05-04 Tom Tromey <tom@tromey.com>
7081
7082 * cli/cli-cmds.c (valid_command_p): Return bool.
7083
7f008c9e
TT
70842019-05-04 Tom Tromey <tom@tromey.com>
7085
7086 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7087 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7088
b6484282
RT
70892019-05-04 Raul Tambre <raul@tambre.ee>
7090
7091 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7092 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7093 operator for comparison.
7094
af97b416
TT
70952019-05-04 Tom Tromey <tom@tromey.com>
7096
7097 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7098 (lookup_partial_symbol, print_partial_symbols)
7099 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7100 (psymbol_compare): Update.
7101 (add_psymbol_to_bcache): Clear the entire psymbol.
7102 (maintenance_check_psymtabs): Update.
7103 * psympriv.h (struct partial_symbol): Don't derive from
7104 general_symbol_info.
7105 <obj_section, unrelocated_address, address,
7106 set_unrelocated_address>: Update.
7107 <ginfo>: New member.
7108 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7109 (debug_names::write_psymbols): Update.
7110
9d6d4be8
TV
71112019-05-04 Tom de Vries <tdevries@suse.de>
7112
7113 * contrib/cc-with-tweaks.sh: Support -n arg.
7114
66452beb
PW
71152019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7116
7117 * corelow.c (core_target::detach): Ensure frame cache and
7118 register caches are cleared.
7119 inferior.c (exit_inferior_1): Likewise.
7120
bde09ab7
TT
71212019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7122 Tom Tromey <tom@tromey.com>
7123
7124 * dictionary.c (collate_pending_symbols_by_language): Remove
7125 "struct" from foreach.
7126 * symtab.c (lookup_global_symbol_from_objfile)
7127 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7128 foreach.
7129 * ser-tcp.c (net_open): Remove "struct" from foreach.
7130 * objfiles.c (objfile_relocate, objfile_rebase)
7131 (objfile_has_symbols): Remove "struct" from foreach.
7132 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7133 from foreach.
7134 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7135 foreach.
7136 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7137 "struct" from foreach.
7138 * ada-lang.c (create_excep_cond_exprs)
7139 (ada_exception_catchpoint_cond_string): Remove "struct" from
7140 foreach.
7141
222a8d25
TT
71422019-05-03 Tom Tromey <tromey@adacore.com>
7143
7144 * ada-exp.y (convert_char_literal): Check suffix of each
7145 enumerator.
7146
fcd60b84
DP
71472019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7148
7149 PR ada/21406:
7150 * ada-exp.y (yywrap): Don't define.
7151 * ada-lex.l (%option): Add noyywrap
7152 (yywrap): Remove.
7153
5f2459c2
EZ
71542019-05-03 Eli Zaretskii <eliz@gnu.org>
7155
353ea2d1
EZ
7156 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7157 _WIN32_WINNT to the XP level, unless already defined to a higher
7158 level.
7159
7160 * unittests/parse-connection-spec-selftests.c:
7161 * ser-tcp.c:
7162 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7163 override.
7164
5f2459c2
EZ
7165 * symfile.c (find_separate_debug_file): Remove colon from the
7166 drive spec of DOS/Windows file names of the target, so that the
7167 file name produced from DEBUGDIR and the target's directory will
7168 be valid on DOS/Windows systems.
7169
80062eb9
AB
71702019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7171
7172 * rust-lang.c (val_print_struct): Handle printing structures
7173 containing strings.
7174
b8c05e85
TT
71752019-05-02 Tom Tromey <tromey@adacore.com>
7176
7177 * valarith.c (_initialize_valarith): Remove.
7178
4504bbde
TT
71792019-05-01 Tom Tromey <tromey@adacore.com>
7180
7181 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7182 bitfields.
7183
d48e62f4
TT
71842019-05-01 Tom Tromey <tromey@adacore.com>
7185
7186 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7187 for big-endian copies.
7188
15f18d14
AT
71892019-04-30 Ali Tamur <tamur@google.com>
7190 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7191 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7192 (read_3_bytes): New function.
7193
ab4ee614
JB
71942019-04-30 Joel Brobecker <brobecker@adacore.com>
7195
7196 * windows-nat.c (main_thread_id): Delete.
7197 (handle_output_debug_string): Replace main_thread_id by
7198 current_event.dwThreadId.
7199 (fake_create_process): Likewise.
7200 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7201 Do not set main_thread_id.
7202 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7203 current_event.dwThreadId.
7204 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7205
8ed5b76e
JB
72062019-04-30 Joel Brobecker <brobecker@adacore.com>
7207
7208 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7209 Use current_event.dwThreadId instead of main_thread_id.
7210
2ff0a947
TT
72112019-04-30 Tom Tromey <tromey@adacore.com>
7212
7213 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7214 (create_excep_cond_exprs): Iterate over program spaces.
7215 (ada_exception_catchpoint_cond_string): Examine all minimal
7216 symbols for exception types.
7217
a776957c
TT
72182019-04-30 Tom Tromey <tromey@adacore.com>
7219
7220 PR c++/24470:
7221 * dwarf2read.c (process_structure_scope): Handle case where type
7222 has template parameters but no symbol was created.
7223
bc68014d
AB
72242019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7225 Chris January <chris.january@arm.com>
7226
7227 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7228 qualifier.
7229 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7230
f1fdc960
AB
72312019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7232
7233 * f-typeprint.c (f_print_type): Update rules for printing
7234 whitespace.
7235 (f_type_print_varspec_suffix): Likewise.
7236
bf7a4de1
AB
72372019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7238 Chris January <chris.january@arm.com>
7239
7240 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7241 function arguments.
7242
bbe75b9d
AB
72432019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7244
7245 * f-lang.c (build_fortran_types): Change name of void type to
7246 lower case.
7247 * f-typeprint.c (f_type_print_base): Print the name of the void
7248 type, rather than a fixed string.
7249 * f-valprint.c (f_decorations): Use lower case void string.
7250
1db455a7
AB
72512019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7252 Chris January <chris.january@arm.com>
7253
7254 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7255 types for Fortran.
7256
b6d03bb2
AB
72572019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7258 Chris January <chris.january@arm.com>
7259 David Lecomber <david.lecomber@arm.com>
7260
7261 * f-exp.y (BINOP_INTRINSIC): New token.
7262 (exp): New parser rule handling BINOP_INTRINSIC.
7263 (f77_keywords): Add new builtin procedures.
7264 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7265 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7266 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7267 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7268 (print_unop_subexp_f): New function.
7269 (print_binop_subexp_f): New function.
7270 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7271 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7272 (dump_subexp_body_f): Likewise.
7273 (operator_check_f): Likewise.
7274 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7275 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7276
83228e93
AB
72772019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7278
7279 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7280 UNOP_KIND.
7281 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7282 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7283 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7284 (operator_length_f): New fuction.
7285 (print_subexp_f): New function.
7286 (op_name_f): New function.
7287 (dump_subexp_body_f): New function.
7288 (operator_check_f): New function.
7289 (exp_descriptor_f): Replace standard expression handling functions
7290 with new functions.
7291 * gdb/fortran-operator.def: New file.
7292 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7293 * gdb/std-operator.def: Remove UNOP_KIND.
7294
6fdcd7cc
AB
72952019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7296
7297 * std-operator.def: Remove unbalanced, stray double quote
7298 character.
7299
2e62ab40
AB
73002019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7301 Chris January <chris.january@arm.com>
7302 Daniel Everett <daniel.everett@arm.com>
7303 Nick Forrington <nick.forrington@arm.com>
7304 Richard Bunt <richard.bunt@arm.com>
7305
7306 * cp-valprint.c (cp_print_value_fields): Allow an additional level
7307 of depth when printing anonymous structs or unions.
7308 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7309 Don't print either the top-level value, or the children if the
7310 max-depth is exceeded.
7311 (ppscm_print_children): When printing the key of a map, allow one
7312 extra level of depth.
7313 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7314 print either the top-level value, or the children if the max-depth
7315 is exceeded.
7316 (print_children): When printing the key of a map, allow one extra
7317 level of depth.
7318 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7319 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7320 (user_print_options): Initialise max_depth field.
7321 (val_print_scalar_or_string_type_p): New function.
7322 (val_print): Check to see if the max depth has been reached.
7323 (val_print_check_max_depth): Define new function.
7324 (show_print_max_depth): New function.
7325 (_initialize_valprint): Add 'print max-depth' option.
7326 * valprint.h (struct value_print_options) <max_depth>: New field.
7327 (val_print_check_max_depth): Declare new function.
7328 * NEWS: Document new feature.
7329
4be290b2
AB
73302019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7331
7332 * ada-lang.c (ada_language_defn): Initialise new field.
7333 * c-lang.c (c_is_string_type_p): New function.
7334 (c_language_defn): Initialise new field.
7335 (cplus_language_defn): Initialise new field.
7336 (asm_language_defn): Initialise new field.
7337 (minimal_language_defn): Initialise new field.
7338 * c-lang.h (c_is_string_type_p): Declare new function.
7339 * d-lang.c (d_language_defn): Initialise new field.
7340 * f-lang.c (f_is_string_type_p): New function.
7341 (f_language_defn): Initialise new field.
7342 * go-lang.c (go_is_string_type_p): New function.
7343 (go_language_defn): Initialise new field.
7344 * language.c (default_is_string_type_p): New function.
7345 (unknown_language_defn): Initialise new field.
7346 (auto_language_defn): Initialise new field.
7347 * language.h (struct language_defn) <la_is_string_type_p>: New
7348 member variable.
7349 (default_is_string_type_p): Declare new function.
7350 * m2-lang.c (m2_language_defn): Initialise new field.
7351 * objc-lang.c (objc_language_defn): Initialise new field.
7352 * opencl-lang.c (opencl_language_defn): Initialise new field.
7353 * p-lang.c (pascal_is_string_type_p): New function.
7354 (pascal_language_defn): Initialise new field.
7355 * rust-lang.c (rust_is_string_type_p): New function.
7356 (rust_language_defn): Initialise new field.
7357
721b08c6
AB
73582019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7359
7360 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7361 New field.
7362 * ada-lang.c (ada_language_defn): Initialise new field.
7363 * c-lang.c (c_language_defn): Likewise.
7364 (cplus_language_defn): Likewise.
7365 (asm_language_defn): Likewise.
7366 (minimal_language_defn): Likewise.
7367 * d-lang.c (d_language_defn): Likewise.
7368 * f-lang.c (f_language_defn): Likewise.
7369 * go-lang.c (go_language_defn): Likewise.
7370 * language.c (unknown_language_defn): Likewise.
7371 (auto_language_defn): Likewise.
7372 * m2-lang.c (m2_language_defn): Likewise.
7373 * objc-lang.c (objc_language_defn): Likewise.
7374 * opencl-lang.c (opencl_language_defn): Likewise.
7375 * p-lang.c (pascal_language_defn): Likewise.
7376 * rust-lang.c (rust_language_defn): Likewise.
7377
fc913e53
AB
73782019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7379
7380 * ada-lang.c (ada_is_character_type): Change return type to bool.
7381 (ada_is_string_type): Likewise.
7382 * ada-lang.h (ada_is_character_type): Update declaration
7383 (ada_is_string_type): Likewise.
7384
fa731fa0
PW
73852019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7386
7387 Support style in 'frame|thread apply'
7388
7389 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7390 * record.c (record_start, record_stop): Update callers of
7391 execute_command_to_string with false.
7392 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7393 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7394 methods.
7395 (class string_file): New constructor with term_out parameter.
7396 Override methods term_out and can_emit_style_escape. New member
7397 term_out.
7398 (class stdio_file): Override can_emit_style_escape.
7399 (class tee_file): Override term_out and can_emit_style_escape.
7400 * utils.h (can_emit_style_escape): Remove.
7401 * utils.c (can_emit_style_escape): Likewise.
7402 Update all callers of can_emit_style_escape (SOMESTREAM) to
7403 SOMESTREAM->can_emit_style_escape.
7404 * source-cache.c (source_cache::get_source_lines): Likewise.
7405 * stack.c (frame_apply_command_count): Call execute_command_to_string
7406 passing the term_out characteristic of the current gdb_stdout.
7407 * thread.c (thr_try_catch_cmd): Likewise.
7408 * top.c (execute_command_to_string): pass term_out parameter
7409 to construct the string_file for the command output.
7410 * ui-file.c (term_cli_styling): New function (most code moved
7411 from utils.c can_emit_style_escape).
7412 (string_file::string_file, string_file::can_emit_style_escape,
7413 stdio_file::can_emit_style_escape, tee_file::term_out,
7414 tee_file::can_emit_style_escape): New functions.
7415
136afab8
PW
74162019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7417
7418 * NEWS: Mention the new set|show may-call-functions.
7419 * infcall.c (may_call_functions_p): New variable.
7420 (show_may_call_functions_p): New function.
7421 (call_function_by_hand_dummy): Throws an error if not
7422 may-call-functions.
7423 (_initialize_infcall): Call add_setshow_boolean_cmd for
7424 may-call-functions.
7425
725cbb63
KS
74262019-04-25 Keith Seitz <keiths@redhat.com>
7427
7428 PR c++/24367
7429 * cp-support.c (inspect_type): Don't attempt substitutions
7430 of symbol with the same name.
7431
3d1cbb78
TT
74322019-04-25 Tom Tromey <tromey@adacore.com>
7433
7434 PR gdb/24475:
7435 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7436 static.
7437
94aeb44b
TT
74382019-04-25 Tom Tromey <tromey@adacore.com>
7439
7440 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7441 rvalue reference.
7442 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7443 (gdb_xml_parser::parse): Use std::move.
7444 * python/python-internal.h (gdbpy_convert_exception): Take a const
7445 reference.
7446 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7447 std::move.
7448 * python/py-utils.c (gdbpy_convert_exception): Take a const
7449 reference.
7450 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7451 Use std::move.
7452 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7453 Use std::move.
7454 * mi/mi-main.c (mi_print_exception): Take a const reference.
7455 * main.c (handle_command_errors): Take a const reference.
7456 * linespec.c (parse_linespec): Use std::move.
7457 * infcall.c (run_inferior_call): Use std::move.
7458 (call_function_by_hand_dummy): Use std::move.
7459 * exec.c (try_open_exec_file): Use std::move.
7460 * exceptions.h (exception_print, exception_fprintf)
7461 (exception_print_same): Update.
7462 * exceptions.c (print_exception, exception_print)
7463 (exception_fprintf, exception_print_same): Change parameters to
7464 const reference.
7465 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7466 * common/new-op.c: Use std::move.
7467 * common/common-exceptions.h (struct gdb_exception): Add move
7468 constructor.
7469 (struct gdb_exception_error, struct gdb_exception_quit, struct
7470 gdb_quit_bad_alloc): Change constructor to move constructor.
7471 (throw_exception): Change parameter to rvalue reference.
7472 * common/common-exceptions.c (throw_exception): Take rvalue
7473 reference.
7474 * cli/cli-interp.c (safe_execute_command): Use std::move.
7475 * breakpoint.c (insert_bp_location, location_to_sals): Use
7476 std::move.
7477
680d7fd5
TT
74782019-04-25 Tom Tromey <tromey@adacore.com>
7479
7480 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7481 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7482 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7483 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7484 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7485 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7486 guile/scm-value.c: Use unpack.
7487 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7488 gdbscm_gdb_exception.
7489 (gdbscm_throw_gdb_exception): Likewise.
7490 (struct gdbscm_gdb_exception): New.
7491 (unpack): New function.
7492 (gdbscm_wrap): Use unpack.
7493
c6fdd8b2
TT
74942019-04-25 Tom Tromey <tromey@adacore.com>
7495
7496 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7497 (gdb_rl_callback_handler): Use std::move.
7498 * common/common-exceptions.h (struct gdb_exception): Add move
7499 assignment operator.
7500 (throw_exception_sjlj): Change "exception" to const reference.
7501 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7502 (throw_exception_sjlj): Change "exception" to const reference.
7503
cc06b668
TT
75042019-04-25 Tom Tromey <tromey@adacore.com>
7505
7506 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7507 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7508 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7509 Update.
7510 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7511 Update.
7512 * mi/mi-interp.c (mi_interp::exec): Update.
7513 * linespec.c (parse_linespec): Update.
7514 * infcall.c (run_inferior_call): Update.
7515 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7516 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7517 (gdbscm_lookup_global_symbol): Update.
7518 * guile/scm-param.c (gdbscm_parameter_value): Update.
7519 * guile/scm-frame.c (gdbscm_frame_read_register)
7520 (gdbscm_frame_read_var): Update.
7521 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7522 * exec.c (try_open_exec_file): Update.
7523 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7524 (gdb_rl_callback_handler): Update.
7525 * common/common-exceptions.h (exception_none): Don't declare.
7526 * common/common-exceptions.c (exception_none): Don't define.
7527 (struct catcher) <exception>: Update.
7528 * cli/cli-interp.c (safe_execute_command): Update.
7529 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7530
cf532bd1
AT
75312019-04-25 Ali Tamur <tamur@google.com>
7532
7533 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7534 (read_attribute_value): Likewise.
7535 (dwarf2_read_addr_index): Update comment.
7536 (read_str_index): Add DW_FORM_strx.
7537 (dwarf2_string_attr): Likewise.
7538 (dwarf2_const_value_attr): Likewise.
7539 (dump_die_shallow): Likewise.
7540 (dwarf2_fetch_constant_bytes): Likewise.
7541 (skip_form_bytes): Likewise.
7542 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7543
82433e3e
SDJ
75442019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7545
7546 PR corefiles/11608
7547 PR corefiles/18187
7548 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7549 OFFSET. Verify if current mapping contains an ELF header.
7550 (linux_find_memory_regions_full): Adjust call to
7551 dump_mapping_p.
7552
723adb65
SL
75532019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7554 Kang Li <kanglictf@gmail.com>
7555
7556 PR gdb/21600
7557
7558 * dwarf2-frame.c (read_initial_length): Be consistent about using
7559 unsigned representation of length.
7560 (decode_frame_entry_1): Likewise. Check for wraparound of
7561 end pointer as well as buffer overflow.
7562
596179f7
SDJ
75632019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7564
7565 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7566 "vq".
7567
a59240a4
TT
75682019-04-24 Tom Tromey <tromey@adacore.com>
7569
7570 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7571
f872fdbb
AB
75722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7573
7574 * s12z-tdep.c (s12z_unwind_pc): Delete.
7575 (s12z_unwind_sp): Delete.
7576 (s12z_gdbarch_init): Don't register deleted functions with
7577 gdbarch.
7578
b614e6f3
AB
75792019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7580
7581 * rl78-tdep.c (rl78_unwind_sp): Delete.
7582 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7583
14faed38
AB
75842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7585
7586 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7587 (xstormy16_unwind_pc): Delete.
7588 (xstormy16_dummy_id): Delete.
7589 (xstormy16_gdbarch_init): Don't register deleted functions with
7590 gdbarch.
7591
541aad8a
AB
75922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7593
7594 * vax-tdep.c (vax_unwind_pc): Delete.
7595 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7596
29222070
AB
75972019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7598
7599 * v850-tdep.c (v850_unwind_sp): Delete.
7600 (v850_unwind_pc): Delete.
7601 (v850_dummy_id): Delete.
7602 (v850_gdbarch_init): Don't register deleted functions with
7603 gdbarch.
7604
0f534d76
AB
76052019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7606
7607 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7608 (tilegx_unwind_pc): Delete.
7609 (tilegx_unwind_dummy_id): Delete.
7610 (tilegx_gdbarch_init): Don't register deleted functions with
7611 gdbarch.
7612
1ba7b7f9
AB
76132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7614
7615 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7616 (tic6x_dummy_id): Delete.
7617 (tic6x_gdbarch_init): Don't register deleted functions with
7618 gdbarch.
7619
d31f262c
AB
76202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7621
7622 * sparc-tdep.c (sparc_unwind_pc): Delete.
7623 (sparc32_gdbarch_init): Don't register deleted function with
7624 gdbarch.
7625
6d14d64d
AB
76262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7627
7628 * sh-tdep.c (sh_unwind_sp): Delete.
7629 (sh_unwind_pc): Delete.
7630 (sh_dummy_id): Delete.
7631 (sh_gdbarch_init): Don't register deleted functions with
7632 gdbarch.
7633
a40dde9d
AB
76342019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7635
7636 * score-tdep.c (score_unwind_sp): Delete.
7637 (score_unwind_pc): Delete.
7638 (score_dummy_id): Delete.
7639 (score_gdbarch_init): Don't register deleted functions with
7640 gdbarch.
7641
47c47d69
AB
76422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7643
7644 * rx-tdep.c (rx_unwind_pc): Delete.
7645 (rx_unwind_sp): Delete.
7646 (rx_dummy_id): Delete.
7647 (rx_gdbarch_init): Don't register deleted functions with
7648 gdbarch. Update comment.
7649
833a4480
AB
76502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7651
7652 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7653 (rs6000_dummy_id): Delete.
7654 (rs6000_gdbarch_init): Don't register deleted functions with
7655 gdbarch.
7656
3f2cef49
AB
76572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7658
7659 * or1k-tdep.c (or1k_dummy_id): Delete.
7660 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7661
96acf884
AB
76622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7663
7664 * nios2-tdep.c (nios2_dummy_id): Delete.
7665 (nios2_unwind_sp): Delete.
7666 (nios2_gdbarch_init): Don't register deleted functions with
7667 gdbarch.
7668
ca0ab0aa
AB
76692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7670
7671 * nds32-tdep.c (nds32_dummy_id): Delete.
7672 (nds32_unwind_pc): Delete.
7673 (nds32_unwind_sp): Delete.
7674 (nds32_gdbarch_init): Don't register deleted functions with
7675 gdbarch.
7676
c8259044
AB
76772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7678
7679 * msp430-tdep.c (msp430_unwind_pc): Delete.
7680 (msp430_unwind_sp): Delete.
7681 (msp430_dummy_id): Delete.
7682 (msp430_gdbarch_init): Don't register deleted functions with
7683 gdbarch.
7684
27f113c8
AB
76852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7686
7687 * moxie-tdep.c (moxie_unwind_sp): Delete.
7688 (moxie_unwind_pc): Delete.
7689 (moxie_dummy_id): Delete.
7690 (moxie_gdbarch_init): Don't register deleted functions with
7691 gdbarch.
7692
aee6c3cd
AB
76932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7694
7695 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7696 (mn10300_unwind_pc): Delete.
7697 (mn10300_unwind_sp): Delete.
7698 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7699 mn10300_unwind_sp.
7700 (mn10300_frame_unwind_init): Don't register deleted functions with
7701 gdbarch.
7702
8e2b5aea
AB
77032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7704
7705 * mep-tdep.c (mep_unwind_pc): Delete.
7706 (mep_unwind_sp): Delete.
7707 (mep_dummy_id): Delete.
7708 (mep_gdbarch_init): Don't register deleted functions with
7709 gdbarch.
7710
43cf3ede
AB
77112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7712
7713 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7714 (m68hc11_unwind_sp): Delete.
7715 (m68hc11_gdbarch_init): Don't register deleted functions with
7716 gdbarch.
7717
5e79b7bb
AB
77182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7719
7720 * m32r-tdep.c (m32r_unwind_sp): Delete.
7721 (m32r_unwind_pc): Delete.
7722 (m32r_dummy_id): Delete.
7723 (m32r_gdbarch_init): Don't register deleted functions with
7724 gdbarch.
7725
89b268d8
AB
77262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7727
7728 * m32c-tdep.c (m32c_unwind_pc): Delete.
7729 (m32c_unwind_sp): Delete.
7730 (m32c_dummy_id): Delete.
7731 (m32c_gdbarch_init): Don't register deleted functions with
7732 gdbarch.
7733
946c28d2
AB
77342019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7735
7736 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7737 (lm32_unwind_pc): Delete.
7738 (lm32_dummy_id): Delete.
7739 (lm32_gdbarch_init): Don't register deleted functions with
7740 gdbarch.
7741
bf12844a
AB
77422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7743
7744 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7745 (iq2000_unwind_pc): Delete.
7746 (iq2000_dummy_id): Delete.
7747 (iq2000_gdbarch_init): Don't register deleted functions with
7748 gdbarch.
7749
ecbc06d2
AB
77502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7751
7752 * nds32-tdep.c (nds32_type_align): Delete.
7753 (nds32_push_dummy_call): Use type_align instead.
7754
030197b4
AB
77552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7756
7757 * arm-tdep.c (arm_type_align): Only handle vector override case.
7758 (arm_push_dummy_call): Use type_align.
7759 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7760
b907456c
AB
77612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7762
7763 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7764 case.
7765 (pass_on_stack): Use type_align.
7766 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7767 function.
7768
9e97ba43
TT
77692019-04-23 Tom Tromey <tromey@adacore.com>
7770
7771 * dwarf2read.c (line_header::file_name_at): Remove unused
7772 overload.
7773
6892f601
TV
77742019-04-23 Tom de Vries <tdevries@suse.de>
7775
7776 PR gdb/24438
7777 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7778 invocation.
7779
336d760d
AT
7780
77812019-03-27 Ali Tamur <tamur@google.com>
7782
7783 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7784 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7785 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7786 (dwarf_expr_context::get_addr_index): Likewise
7787 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7788 (symbol_needs_eval_context::get_addr_index): Likewise
7789 (disassemble_dwarf_expression): Add DW_OP_addrx
7790 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7791 (read_cutu_die_from_dwo): Update comment
7792 (skip_one_die): Add DW_FORM_addrx
7793 (read_attribute_value): Likewise
7794 (var_decode_location): Add DW_OP_addrx
7795 (dwarf2_const_value_attr): Add DW_FORM_addrx
7796 (dump_die_shallow): Likewise
7797 (dwarf2_fetch_constant_bytes): Likewise
7798 (decode_locdesc): Add DW_OP_addrx
7799 (skip_form_bytes): Add DW_FORM_addrx
7800
ad9d13f8
AT
78012019-04-22 Ali Tamur <tamur@google.com>
7802
7803 * MAINTAINERS (Write After Approval): Add self.
7804
d70cc3ba
SM
78052019-04-22 Simon Marchi <simon.marchi@efficios.com>
7806
7807 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7808 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7809 (open_symbol_file_object): Likewise.
7810 (svr4_default_sos): Add info parameter.
7811 (svr4_read_so_list): Likewise.
7812 (svr4_current_sos_direct): Adjust functions calls to pass down
7813 info.
7814 (svr4_current_sos_1): Add info parameter.
7815 (svr4_current_sos): Call get_svr4_info, pass info down to
7816 svr4_current_sos_1.
7817 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7818 get_svr4_info.
7819 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7820 get_svr4_info.
7821 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7822 to get_svr4_info.
7823 (probes_table_remove_objfile_probes): Likewise.
7824 (register_solib_event_probe): Add info parameter.
7825 (solist_update_incremental): Pass info parameter down to
7826 svr4_read_so_list.
7827 (disable_probes_interface): Add info parameter.
7828 (svr4_handle_solib_event): Pass current_program_space to
7829 get_svr4_info. Adjust disable_probes_interface cleanup.
7830 (svr4_create_probe_breakpoints): Add info parameter, pass it
7831 down to register_solib_event_probe.
7832 (svr4_create_solib_event_breakpoints): Add info parameter,
7833 pass it down to svr4_create_probe_breakpoints.
7834 (enable_break): Pass info down to
7835 svr4_create_solib_event_breakpoints.
7836 (svr4_solib_create_inferior_hook): Pass current_program_space to
7837 get_svr4_info.
7838 (svr4_clear_solib): Likewise.
7839
7905fc35
PA
78402019-04-22 Pedro Alves <palves@redhat.com>
7841
7842 * solib-svr4.c (svr4_free_objfile_observer): New.
7843 (probe_and_action::objfile): New field.
7844 (probes_table_htab_remove_objfile_probes)
7845 (probes_table_remove_objfile_probes): New functions.
7846 (register_solib_event_probe): Add 'objfile' parameter. Store it
7847 in the new probe_and_action. Don't store the probe in 'lookup'.
7848 (svr4_create_probe_breakpoints): Pass objfile to
7849 register_solib_event_probe.
7850 (_initialize_svr4_solib): Register a free_objfile observer.
7851
fb881986
TT
78522019-04-19 Tom Tromey <tom@tromey.com>
7853
7854 * common/queue.h: Remove.
7855
8732db6c
TT
78562019-04-19 Tom Tromey <tom@tromey.com>
7857
7858 * event-loop.c: Don't include "common/queue.h".
7859
97dfbadd
TT
78602019-04-19 Tom Tromey <tom@tromey.com>
7861
7862 * remote.c (remote_target): Use delete.
7863 * remote-notif.h: Include <list>, not "common/queue.h".
7864 (notif_client_p): Remove typedef.
7865 (remote_notif_state): Add constructor, destructor, initializer.
7866 <notif_queue>: Now a std::list.
7867 (remote_notif_state_xfree): Don't declare.
7868 * remote-notif.c (remote_notif_process, handle_notification)
7869 (remote_notif_state_allocate): Update.
7870 (~remote_notif_state): Rename from remote_notif_state_xfree.
7871
cf250e36
TT
78722019-04-19 Tom Tromey <tom@tromey.com>
7873
7874 * symfile.c (reread_symbols): Update.
7875 * objfiles.c (objfile_register_static_link)
7876 (objfile_lookup_static_link): Update
7877 (~objfile) Don't delete static_links.
7878 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7879
61f4b350
TT
78802019-04-19 Tom Tromey <tom@tromey.com>
7881
7882 * type-stack.h (struct type_stack) <insert>: Constify string.
7883 * type-stack.c (type_stack::insert): Constify string.
7884 * gdbtypes.h (lookup_template_type): Update.
7885 (address_space_name_to_int): Update.
7886 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7887 const.
7888 (lookup_template_type): Make name const.
7889 * c-exp.y: Update rules.
7890 (lex_one_token, classify_name, classify_inner_name)
7891 (c_print_token): Update.
7892 * p-exp.y: Update rules.
7893 (yylex): Update.
7894 * f-exp.y: Update rules.
7895 (yylex): Update.
7896 * d-exp.y: Update rules.
7897 (lex_one_token, classify_name, classify_inner_name): Update.
7898 * parse.c (write_dollar_variable, copy_name): Return std::string.
7899 * parser-defs.h (copy_name): Change return type.
7900 * m2-exp.y: Update rules.
7901 (yylex): Update.
7902 * go-exp.y (lex_one_token): Update.
7903 Update rules.
7904 (classify_unsafe_function, classify_packaged_name)
7905 (classify_name, yylex): Update.
7906
189b8c2e
ST
79072019-04-19 Sergei Trofimovich <siarheit@google.com>
7908
7909 * configure.ac: add --enable-source-highlight switch.
7910 * configure: Regenerate.
7911 * top.c (print_gdb_version): plumb --enable-source-highlight
7912 status to "show configuration".
7913
8ecb59f8
TT
79142019-04-19 Tom Tromey <tromey@adacore.com>
7915
7916 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7917 Check ADA_TYPE_P.
7918 (empty_record, ada_template_to_fixed_record_type_1)
7919 (template_to_static_fixed_type)
7920 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7921 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7922 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7923 macros.
7924
62160ec9
TT
79252019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7926
7927 PR symtab/24423:
7928 * source.c (print_source_lines_base): Advance "iter" when a
7929 control character is seen.
7930
f2ae8bc8
PW
79312019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7932
7933 * inferior.h (struct infcall_suspend_state_deleter):
7934 Catch exception in destructor to avoid crash.
7935
d563b953
PW
79362019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7937
7938 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7939 close to the add_com "shell".
7940
dc34c897
TT
79412019-04-18 Tom Tromey <tromey@adacore.com>
7942
7943 * process-stratum-target.h (class process_stratum_target)
7944 <stratum>: Add "final".
7945
a12e5744
TT
79462019-04-17 Tom Tromey <tromey@adacore.com>
7947
7948 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7949 against nullptr before use.
7950
a7e559cc
AH
79512019-04-17 Alan Hayward <alan.hayward@arm.com>
7952
7953 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7954
c01660c6
AB
79552019-04-17 Jim Wilson <jimw@sifive.com>
7956 Andrew Burgess <andrew.burgess@embecosm.com>
7957
7958 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7959 code read might fail, assume 4-byte breakpoint in that case.
7960
4aa866af
LS
79612019-04-15 Leszek Swirski <leszeks@google.com>
7962
7963 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7964 rather than a hand-rolled POD check when checking for forced MEMORY
7965 classification.
7966
48574d91
AH
79672019-04-15 Alan Hayward <alan.hayward@arm.com>
7968
7969 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7970 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7971 function.
7972 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7973 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7974 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7975 declaration.
7976
4da037ef
AH
79772019-04-15 Alan Hayward <alan.hayward@arm.com>
7978
7979 * aarch64-linux-nat.c
7980 (aarch64_linux_nat_target::thread_architecture): Add override.
7981 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7982 each VQ.
7983
ccb8d7e8
AH
79842019-04-15 Alan Hayward <alan.hayward@arm.com>
7985
7986 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7987
35add35e
AB
79882019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7989
7990 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7991 target types of size 96-bits, add some additional comments, and
7992 check that the builtin type we found was the correct size.
7993
51196bbc
EZ
79942019-04-12 Eli Zaretskii <eliz@gnu.org>
7995
7996 * utils.c (prompt_for_continue): Don't restore the styling at the
7997 end, as applied_style has the wrong value. This fixes styling in
7998 long lists of file names that are interrupted by the "Continue?"
7999 prompt.
8000
62253a61
AB
80012019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8002
8003 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8004 * c-lang.c (c_language_defn): Likewise.
8005 (cplus_language_defn): Likewise.
8006 (asm_language_defn): Likewise.
8007 (minimal_language_defn): Likewise.
8008 * d-lang.c (d_language_defn): Likewise.
8009 * f-lang.c (f_language_defn): Likewise.
8010 * go-lang.c (go_language_defn): Likewise.
8011 * language.c (unknown_language_defn): Likewise.
8012 (auto_language_defn): Likewise.
8013 * language.h (struct language_defn): Remove la_magic field.
8014 (LANG_MAGIC): Delete.
8015 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8016 * objc-lang.c (objc_language_defn): Likewise.
8017 * opencl-lang.c (opencl_language_defn): Likewise.
8018 * p-lang.c (pascal_language_defn): Likewise.
8019 * rust-lang.c (rust_language_defn): Likewise.
8020
a9158a86
AB
80212019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8022
8023 * riscv-tdep.c (riscv_type_align): New function.
8024 (riscv_type_alignment): Delete.
8025 (riscv_arg_location): Use 'type_align'.
8026 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8027
41077b66
AB
80282019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8029
8030 * gdbtypes.c (type_align): A struct with no non-static fields also
8031 has alignment of 1.
8032
9f0272f8
AB
80332019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8034
8035 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8036 component to 0.
8037 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8038 member.
8039 (riscv_struct_info::analyse): New implementation using new
8040 analyse_inner member function.
8041 (riscv_struct_info::field_offset): New member function.
8042 (riscv_struct_info::m_offsets): New member variable.
8043 (riscv_struct_info::analyse_inner): New private member function,
8044 takes the old implementation of riscv_struct_info::analyse but
8045 extended to track field offsets.
8046 (riscv_call_arg_struct): Update the struct folding special cases
8047 to handle cases where empty C++ structs, which are non-zero
8048 length, are found.
8049 (riscv_arg_location): Initialise the length of each location, a
8050 non-zero length now indicates the location is in use.
8051 (riscv_push_dummy_call): Allow for the first location having a
8052 non-zero offset when setting up arguments.
8053 (riscv_return_value): Likewise, but for return values.
8054
02cf60c7
TT
80552019-04-11 Tom Tromey <tromey@adacore.com>
8056
8057 * utils.c (internal_vproblem): Make "msg" const.
8058
68811f8f
AH
80592019-04-11 Alan Hayward <alan.hayward@arm.com>
8060
8061 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8062 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8063 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8064 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8065
3f52fdbc
KB
80662019-04-10 Kevin Buettner <kevinb@redhat.com>
8067
8068 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8069 function.
8070 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8071 of amd64_collect_native_gregset.
8072 (amd64_linux_nat_target::store_registers): Likewise.
8073
e9ad22ee
TT
80742019-04-10 Tom Tromey <tom@tromey.com>
8075
8076 * symtab.c (lookup_global_symbol_from_objfile)
8077 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8078 * objfiles.h (class separate_debug_iterator): New.
8079 (class separate_debug_range): New.
8080 (struct objfile) <separate_debug_objfiles>: New method.
8081 (objfile_separate_debug_iterate): Don't declare.
8082 * objfiles.c (separate_debug_iterator::operator++): Rename from
8083 objfile_separate_debug_iterate.
8084 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8085 iterator.
8086 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8087 iterator.
8088
ee371134
TT
80892019-04-10 Tom Tromey <tom@tromey.com>
8090
8091 * symfile.c (reread_symbols): Remove old comment.
8092 * objfiles.c (free_all_objfiles): Fix a typo.
8093
bf227d61
TT
80942019-04-10 Tom Tromey <tom@tromey.com>
8095
8096 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8097 * minsyms.c (lookup_minimal_symbol): Use foreach.
8098 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8099 (lookup_minimal_symbol_solib_trampoline): Likewise.
8100 * symfile.c (reread_symbols): Use foreach.
8101
8dc433a0
TT
81022019-04-09 Ivan Begert <ivanbegert@gmail.com>
8103 Tom Tromey <tromey@adacore.com>
8104
8105 PR rust/24414:
8106 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8107 (rust_lex_int_test): Change "value" to be LONGEST.
8108 (rust_lex_tests): Add test for long integer literal.
8109
9ab8741a
TT
81102019-04-09 Tom Tromey <tromey@adacore.com>
8111
8112 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8113 to bool.
8114 (extended_remote_target::attach): Update.
8115 (remote_target::remote_notice_new_inferior): Update.
8116 (remote_target::add_current_inferior_and_thread): Update.
8117 * inferior.c (exit_inferior_1): Use "false".
8118 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8119
e242fd12
SM
81202019-04-09 Simon Marchi <simon.marchi@efficios.com>
8121
9ca1957f 8122 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
8123 the "start" command.
8124
2b0c8b01
KB
81252019-04-08 Kevin Buettner <kevinb@redhat.com>
8126
8127 * python/py-inferior.c (infpy_thread_from_thread_handle):
8128 Adjust comments to reflect renaming of thread_from_thread_handle
8129 to thread_from_handle. Adjust keywords. Fix type error message.
8130 (inferior_object_methods): Add thread_from_handle. Retain
8131 thread_from_thread_handle, but mark it as deprecated.
8132
50a82723
KB
81332019-04-08 Kevin Buettner <kevinb@redhat.com>
8134
8135 * gdbthread.h (find_thread_by_handle): Revise declaration.
8136 * thread.c (find_thread_by_handle): Likewise. Adjust
8137 implementation too.
8138 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8139 support for buffer objects as handles.
8140
cf63b016
KB
81412019-04-08 Kevin Buettner <kevinb@redhat.com>
8142
8143 * python/py-infthread.c (thpy_thread_handle): New function.
8144 (thread_object_methods): Register thpy_thread_handle.
8145
3d6c6204
KB
81462019-04-08 Kevin Buettner <kevinb@redhat.com>
8147
8148 * gdbthread.h (thread_to_thread_handle): Declare.
8149 * thread.c (gdbtypes.h): Include.
8150 (thread_to_thread_handle): New function.
8151
8152 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8153 (target_thread_info_to_thread_handle): Declare.
8154 * target.c (target_thread_info_to_thread_handle): New function.
8155 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8156 * target-delegates.c: Regenerate.
8157
8158 * linux-thread-db.c (class thread_db_target): Add method
8159 thread_info_to_thread_handle.
8160 (thread_db_target::thread_info_to_thread_handle): Define.
8161 * remote.c (class remote_target): Add new method
8162 thread_info_to_thread_handle.
8163 (remote_target::thread_info_to_thread_handle): Define.
8164
56be6ea8
PA
81652019-04-08 Pedro Alves <palves@redhat.com>
8166
8167 * common/common-exceptions.c (throw_exception): Don't create
8168 named object to throw; throw directly.
8169 (throw_it): Likewise. Don't initialize gdb_exception::message
8170 here, with new; pass FMT and AP to the ctor instead.
8171 * common/common-exceptions.h: Include <string>.
8172 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8173 const char *, va_list)): New ctor. Use std::make_shared.
8174 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8175 errors)): Delete.
8176 (gdb_exception_error::gdb_exception_error(enum errors, const char
8177 *, va_list)): New.
8178 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8179 Add assertion.
8180 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8181 errors)): Delete.
8182 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8183 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8184 Add assertion.
8185
eedc3f4f
TT
81862019-04-08 Tom Tromey <tom@tromey.com>
8187
8188 * valops.c (value_rtti_indirect_type): Replace throw_exception
8189 with throw.
8190 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8191 with throw.
8192 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8193 throw.
8194 * target.c (target_translate_tls_address): Replace throw_exception
8195 with throw.
8196 * stack.c (frame_apply_command_count): Replace throw_exception
8197 with throw.
8198 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8199 throw.
8200 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8201 with throw.
8202 * rs6000-tdep.c (rs6000_frame_cache)
8203 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8204 * remote.c: Replace throw_exception with throw.
8205 * record-full.c (record_full_message, record_full_wait_1)
8206 (record_full_restore): Replace throw_exception with throw.
8207 * record-btrace.c:
8208 (get_thread_current_frame_id, record_btrace_start_replaying)
8209 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8210 (cmd_record_btrace_start): Replace throw_exception with throw.
8211 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8212 throw.
8213 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8214 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8215 * linespec.c:
8216 (find_linespec_symbols): Replace throw_exception with throw.
8217 * infrun.c (displaced_step_prepare, resume): Replace
8218 throw_exception with throw.
8219 * infcmd.c (post_create_inferior): Replace throw_exception with
8220 throw.
8221 * inf-loop.c (inferior_event_handler): Replace throw_exception
8222 with throw.
8223 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8224 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8225 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8226 (get_prev_frame_always, get_frame_pc_if_available)
8227 (get_frame_address_in_block_if_available, get_frame_language):
8228 Replace throw_exception with throw.
8229 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8230 throw_exception with throw.
8231 * eval.c (fetch_subexp_value, evaluate_var_value)
8232 (evaluate_funcall, evaluate_subexp_standard): Replace
8233 throw_exception with throw.
8234 * dwarf2loc.c (call_site_find_chain)
8235 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8236 Replace throw_exception with throw.
8237 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8238 with throw.
8239 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8240 throw.
8241 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8242 * completer.c (complete_line_internal): Replace throw_exception
8243 with throw.
8244 * compile/compile-object-run.c (compile_object_run): Replace
8245 throw_exception with throw.
8246 * cli/cli-script.c (process_next_line): Replace throw_exception
8247 with throw.
8248 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8249 (btrace_enable, btrace_maint_update_pt_packets): Replace
8250 throw_exception with throw.
8251 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8252 throw_exception with throw.
8253 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8254 throw_exception with throw.
8255 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8256 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8257 * aarch64-tdep.c (aarch64_make_prologue_cache)
8258 (aarch64_make_stub_cache): Replace throw_exception with throw.
8259
26003a20
TT
82602019-04-08 Tom Tromey <tom@tromey.com>
8261
8262 * common/common-exceptions.c (throw_exception): Rename from
8263 throw_exception_cxx. Remove old copy. Make argument const.
8264 (throw_it): Create and throw exception objects directly.
8265 * common/common-exceptions.h (throw_exception): Make argument
8266 const.
8267 (struct gdb_exception_error): Add constructor.
8268 (struct gdb_exception_quit): Add constructor.
8269
d272eb37
TT
82702019-04-08 Tom Tromey <tom@tromey.com>
8271
8272 * common/common-exceptions.h (exception_rethrow): Don't declare.
8273 (TRY_SJLJ): Update comment.
8274 (TRY, CATCH, END_CATCH): Remove.
8275 * common/common-exceptions.c (exception_rethrow): Remove.
8276
230d2906
TT
82772019-04-08 Tom Tromey <tom@tromey.com>
8278
8279 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8280 Remove.
8281 (gdb_exception_error): Rename from
8282 gdb_exception_RETURN_MASK_ERROR.
8283 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8284 (gdb_quit_bad_alloc): Update.
8285 * aarch64-tdep.c: Update.
8286 * ada-lang.c: Update.
8287 * ada-typeprint.c: Update.
8288 * ada-valprint.c: Update.
8289 * amd64-tdep.c: Update.
8290 * arch-utils.c: Update.
8291 * break-catch-throw.c: Update.
8292 * breakpoint.c: Update.
8293 * btrace.c: Update.
8294 * c-varobj.c: Update.
8295 * cli/cli-cmds.c: Update.
8296 * cli/cli-interp.c: Update.
8297 * cli/cli-script.c: Update.
8298 * common/common-exceptions.c: Update.
8299 * common/new-op.c: Update.
8300 * common/selftest.c: Update.
8301 * compile/compile-c-symbols.c: Update.
8302 * compile/compile-cplus-symbols.c: Update.
8303 * compile/compile-object-load.c: Update.
8304 * compile/compile-object-run.c: Update.
8305 * completer.c: Update.
8306 * corelow.c: Update.
8307 * cp-abi.c: Update.
8308 * cp-support.c: Update.
8309 * cp-valprint.c: Update.
8310 * darwin-nat.c: Update.
8311 * disasm-selftests.c: Update.
8312 * dtrace-probe.c: Update.
8313 * dwarf-index-cache.c: Update.
8314 * dwarf-index-write.c: Update.
8315 * dwarf2-frame-tailcall.c: Update.
8316 * dwarf2-frame.c: Update.
8317 * dwarf2loc.c: Update.
8318 * dwarf2read.c: Update.
8319 * eval.c: Update.
8320 * event-loop.c: Update.
8321 * event-top.c: Update.
8322 * exec.c: Update.
8323 * f-valprint.c: Update.
8324 * fbsd-tdep.c: Update.
8325 * frame-unwind.c: Update.
8326 * frame.c: Update.
8327 * gdbtypes.c: Update.
8328 * gnu-v3-abi.c: Update.
8329 * guile/guile-internal.h: Update.
8330 * guile/scm-block.c: Update.
8331 * guile/scm-breakpoint.c: Update.
8332 * guile/scm-cmd.c: Update.
8333 * guile/scm-disasm.c: Update.
8334 * guile/scm-frame.c: Update.
8335 * guile/scm-lazy-string.c: Update.
8336 * guile/scm-math.c: Update.
8337 * guile/scm-param.c: Update.
8338 * guile/scm-ports.c: Update.
8339 * guile/scm-pretty-print.c: Update.
8340 * guile/scm-symbol.c: Update.
8341 * guile/scm-symtab.c: Update.
8342 * guile/scm-type.c: Update.
8343 * guile/scm-value.c: Update.
8344 * i386-linux-tdep.c: Update.
8345 * i386-tdep.c: Update.
8346 * inf-loop.c: Update.
8347 * infcall.c: Update.
8348 * infcmd.c: Update.
8349 * infrun.c: Update.
8350 * jit.c: Update.
8351 * language.c: Update.
8352 * linespec.c: Update.
8353 * linux-fork.c: Update.
8354 * linux-nat.c: Update.
8355 * linux-tdep.c: Update.
8356 * linux-thread-db.c: Update.
8357 * main.c: Update.
8358 * mi/mi-cmd-break.c: Update.
8359 * mi/mi-cmd-stack.c: Update.
8360 * mi/mi-interp.c: Update.
8361 * mi/mi-main.c: Update.
8362 * objc-lang.c: Update.
8363 * p-valprint.c: Update.
8364 * parse.c: Update.
8365 * ppc-linux-tdep.c: Update.
8366 * printcmd.c: Update.
8367 * python/py-arch.c: Update.
8368 * python/py-breakpoint.c: Update.
8369 * python/py-cmd.c: Update.
8370 * python/py-finishbreakpoint.c: Update.
8371 * python/py-frame.c: Update.
8372 * python/py-framefilter.c: Update.
8373 * python/py-gdb-readline.c: Update.
8374 * python/py-inferior.c: Update.
8375 * python/py-infthread.c: Update.
8376 * python/py-lazy-string.c: Update.
8377 * python/py-linetable.c: Update.
8378 * python/py-objfile.c: Update.
8379 * python/py-param.c: Update.
8380 * python/py-prettyprint.c: Update.
8381 * python/py-progspace.c: Update.
8382 * python/py-record-btrace.c: Update.
8383 * python/py-record.c: Update.
8384 * python/py-symbol.c: Update.
8385 * python/py-type.c: Update.
8386 * python/py-unwind.c: Update.
8387 * python/py-utils.c: Update.
8388 * python/py-value.c: Update.
8389 * python/python.c: Update.
8390 * record-btrace.c: Update.
8391 * record-full.c: Update.
8392 * remote-fileio.c: Update.
8393 * remote.c: Update.
8394 * riscv-tdep.c: Update.
8395 * rs6000-aix-tdep.c: Update.
8396 * rs6000-tdep.c: Update.
8397 * rust-exp.y: Update.
8398 * rust-lang.c: Update.
8399 * s390-tdep.c: Update.
8400 * selftest-arch.c: Update.
8401 * solib-dsbt.c: Update.
8402 * solib-frv.c: Update.
8403 * solib-spu.c: Update.
8404 * solib-svr4.c: Update.
8405 * solib.c: Update.
8406 * sparc64-linux-tdep.c: Update.
8407 * stack.c: Update.
8408 * symfile-mem.c: Update.
8409 * symmisc.c: Update.
8410 * target.c: Update.
8411 * thread.c: Update.
8412 * top.c: Update.
8413 * tracefile-tfile.c: Update.
8414 * tui/tui.c: Update.
8415 * typeprint.c: Update.
8416 * unittests/cli-utils-selftests.c: Update.
8417 * unittests/parse-connection-spec-selftests.c: Update.
8418 * valops.c: Update.
8419 * valprint.c: Update.
8420 * value.c: Update.
8421 * varobj.c: Update.
8422 * windows-nat.c: Update.
8423 * x86-linux-nat.c: Update.
8424 * xml-support.c: Update.
8425
a70b8144
TT
84262019-04-08 Tom Tromey <tom@tromey.com>
8427
8428 * xml-support.c: Use C++ exception handling.
8429 * x86-linux-nat.c: Use C++ exception handling.
8430 * windows-nat.c: Use C++ exception handling.
8431 * varobj.c: Use C++ exception handling.
8432 * value.c: Use C++ exception handling.
8433 * valprint.c: Use C++ exception handling.
8434 * valops.c: Use C++ exception handling.
8435 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8436 handling.
8437 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8438 * typeprint.c: Use C++ exception handling.
8439 * tui/tui.c: Use C++ exception handling.
8440 * tracefile-tfile.c: Use C++ exception handling.
8441 * top.c: Use C++ exception handling.
8442 * thread.c: Use C++ exception handling.
8443 * target.c: Use C++ exception handling.
8444 * symmisc.c: Use C++ exception handling.
8445 * symfile-mem.c: Use C++ exception handling.
8446 * stack.c: Use C++ exception handling.
8447 * sparc64-linux-tdep.c: Use C++ exception handling.
8448 * solib.c: Use C++ exception handling.
8449 * solib-svr4.c: Use C++ exception handling.
8450 * solib-spu.c: Use C++ exception handling.
8451 * solib-frv.c: Use C++ exception handling.
8452 * solib-dsbt.c: Use C++ exception handling.
8453 * selftest-arch.c: Use C++ exception handling.
8454 * s390-tdep.c: Use C++ exception handling.
8455 * rust-lang.c: Use C++ exception handling.
8456 * rust-exp.y: Use C++ exception handling.
8457 * rs6000-tdep.c: Use C++ exception handling.
8458 * rs6000-aix-tdep.c: Use C++ exception handling.
8459 * riscv-tdep.c: Use C++ exception handling.
8460 * remote.c: Use C++ exception handling.
8461 * remote-fileio.c: Use C++ exception handling.
8462 * record-full.c: Use C++ exception handling.
8463 * record-btrace.c: Use C++ exception handling.
8464 * python/python.c: Use C++ exception handling.
8465 * python/py-value.c: Use C++ exception handling.
8466 * python/py-utils.c: Use C++ exception handling.
8467 * python/py-unwind.c: Use C++ exception handling.
8468 * python/py-type.c: Use C++ exception handling.
8469 * python/py-symbol.c: Use C++ exception handling.
8470 * python/py-record.c: Use C++ exception handling.
8471 * python/py-record-btrace.c: Use C++ exception handling.
8472 * python/py-progspace.c: Use C++ exception handling.
8473 * python/py-prettyprint.c: Use C++ exception handling.
8474 * python/py-param.c: Use C++ exception handling.
8475 * python/py-objfile.c: Use C++ exception handling.
8476 * python/py-linetable.c: Use C++ exception handling.
8477 * python/py-lazy-string.c: Use C++ exception handling.
8478 * python/py-infthread.c: Use C++ exception handling.
8479 * python/py-inferior.c: Use C++ exception handling.
8480 * python/py-gdb-readline.c: Use C++ exception handling.
8481 * python/py-framefilter.c: Use C++ exception handling.
8482 * python/py-frame.c: Use C++ exception handling.
8483 * python/py-finishbreakpoint.c: Use C++ exception handling.
8484 * python/py-cmd.c: Use C++ exception handling.
8485 * python/py-breakpoint.c: Use C++ exception handling.
8486 * python/py-arch.c: Use C++ exception handling.
8487 * printcmd.c: Use C++ exception handling.
8488 * ppc-linux-tdep.c: Use C++ exception handling.
8489 * parse.c: Use C++ exception handling.
8490 * p-valprint.c: Use C++ exception handling.
8491 * objc-lang.c: Use C++ exception handling.
8492 * mi/mi-main.c: Use C++ exception handling.
8493 * mi/mi-interp.c: Use C++ exception handling.
8494 * mi/mi-cmd-stack.c: Use C++ exception handling.
8495 * mi/mi-cmd-break.c: Use C++ exception handling.
8496 * main.c: Use C++ exception handling.
8497 * linux-thread-db.c: Use C++ exception handling.
8498 * linux-tdep.c: Use C++ exception handling.
8499 * linux-nat.c: Use C++ exception handling.
8500 * linux-fork.c: Use C++ exception handling.
8501 * linespec.c: Use C++ exception handling.
8502 * language.c: Use C++ exception handling.
8503 * jit.c: Use C++ exception handling.
8504 * infrun.c: Use C++ exception handling.
8505 * infcmd.c: Use C++ exception handling.
8506 * infcall.c: Use C++ exception handling.
8507 * inf-loop.c: Use C++ exception handling.
8508 * i386-tdep.c: Use C++ exception handling.
8509 * i386-linux-tdep.c: Use C++ exception handling.
8510 * guile/scm-value.c: Use C++ exception handling.
8511 * guile/scm-type.c: Use C++ exception handling.
8512 * guile/scm-symtab.c: Use C++ exception handling.
8513 * guile/scm-symbol.c: Use C++ exception handling.
8514 * guile/scm-pretty-print.c: Use C++ exception handling.
8515 * guile/scm-ports.c: Use C++ exception handling.
8516 * guile/scm-param.c: Use C++ exception handling.
8517 * guile/scm-math.c: Use C++ exception handling.
8518 * guile/scm-lazy-string.c: Use C++ exception handling.
8519 * guile/scm-frame.c: Use C++ exception handling.
8520 * guile/scm-disasm.c: Use C++ exception handling.
8521 * guile/scm-cmd.c: Use C++ exception handling.
8522 * guile/scm-breakpoint.c: Use C++ exception handling.
8523 * guile/scm-block.c: Use C++ exception handling.
8524 * guile/guile-internal.h: Use C++ exception handling.
8525 * gnu-v3-abi.c: Use C++ exception handling.
8526 * gdbtypes.c: Use C++ exception handling.
8527 * frame.c: Use C++ exception handling.
8528 * frame-unwind.c: Use C++ exception handling.
8529 * fbsd-tdep.c: Use C++ exception handling.
8530 * f-valprint.c: Use C++ exception handling.
8531 * exec.c: Use C++ exception handling.
8532 * event-top.c: Use C++ exception handling.
8533 * event-loop.c: Use C++ exception handling.
8534 * eval.c: Use C++ exception handling.
8535 * dwarf2read.c: Use C++ exception handling.
8536 * dwarf2loc.c: Use C++ exception handling.
8537 * dwarf2-frame.c: Use C++ exception handling.
8538 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8539 * dwarf-index-write.c: Use C++ exception handling.
8540 * dwarf-index-cache.c: Use C++ exception handling.
8541 * dtrace-probe.c: Use C++ exception handling.
8542 * disasm-selftests.c: Use C++ exception handling.
8543 * darwin-nat.c: Use C++ exception handling.
8544 * cp-valprint.c: Use C++ exception handling.
8545 * cp-support.c: Use C++ exception handling.
8546 * cp-abi.c: Use C++ exception handling.
8547 * corelow.c: Use C++ exception handling.
8548 * completer.c: Use C++ exception handling.
8549 * compile/compile-object-run.c: Use C++ exception handling.
8550 * compile/compile-object-load.c: Use C++ exception handling.
8551 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8552 * compile/compile-c-symbols.c: Use C++ exception handling.
8553 * common/selftest.c: Use C++ exception handling.
8554 * common/new-op.c: Use C++ exception handling.
8555 * cli/cli-script.c: Use C++ exception handling.
8556 * cli/cli-interp.c: Use C++ exception handling.
8557 * cli/cli-cmds.c: Use C++ exception handling.
8558 * c-varobj.c: Use C++ exception handling.
8559 * btrace.c: Use C++ exception handling.
8560 * breakpoint.c: Use C++ exception handling.
8561 * break-catch-throw.c: Use C++ exception handling.
8562 * arch-utils.c: Use C++ exception handling.
8563 * amd64-tdep.c: Use C++ exception handling.
8564 * ada-valprint.c: Use C++ exception handling.
8565 * ada-typeprint.c: Use C++ exception handling.
8566 * ada-lang.c: Use C++ exception handling.
8567 * aarch64-tdep.c: Use C++ exception handling.
8568
3d6e9d23
TT
85692019-04-08 Tom Tromey <tom@tromey.com>
8570
8571 * xml-support.c (gdb_xml_parser::parse): Update.
8572 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8573 * value.c (show_convenience): Update.
8574 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8575 (test_parse_flags_qcs): Update.
8576 * thread.c (thr_try_catch_cmd): Update.
8577 * target.c (target_translate_tls_address): Update.
8578 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8579 (info_frame_command_core, frame_apply_command_count): Update.
8580 * rust-exp.y (rust_lex_exception_test): Update.
8581 * riscv-tdep.c (riscv_print_one_register_info): Update.
8582 * remote.c (remote_target::enable_btrace): Update.
8583 * record-btrace.c (record_btrace_enable_warn): Update.
8584 * python/py-utils.c (gdbpy_convert_exception): Update.
8585 * printcmd.c (do_one_display, print_variable_and_value): Update.
8586 * mi/mi-main.c (mi_print_exception): Update.
8587 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8588 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8589 * linux-nat.c (linux_nat_target::attach): Update.
8590 * linux-fork.c (class scoped_switch_fork_info): Update.
8591 * infrun.c (displaced_step_prepare): Update.
8592 * infcall.c (call_function_by_hand_dummy): Update.
8593 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8594 * gnu-v3-abi.c (print_one_vtable): Update.
8595 * frame.c (get_prev_frame_always): Update.
8596 * f-valprint.c (info_common_command_for_block): Update.
8597 * exec.c (try_open_exec_file): Update.
8598 * exceptions.c (print_exception, exception_print)
8599 (exception_fprintf, exception_print_same): Update.
8600 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8601 * dwarf-index-cache.c (index_cache::store)
8602 (index_cache::lookup_gdb_index): Update.
8603 * darwin-nat.c (maybe_cache_shell): Update.
8604 * cp-valprint.c (cp_print_value_fields): Update.
8605 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8606 (gcc_cplus_symbol_address): Update.
8607 * compile/compile-c-symbols.c (gcc_convert_symbol)
8608 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8609 * common/selftest.c: Update.
8610 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8611 a std::string.
8612 (exception_try_scope_entry, exception_try_scope_exit): Don't
8613 declare.
8614 (struct exception_try_scope): Remove.
8615 (TRY): Don't use exception_try_scope.
8616 (struct gdb_exception): Add constructor, operator=.
8617 <what>: New method.
8618 (struct gdb_exception_RETURN_MASK_ALL)
8619 (struct gdb_exception_RETURN_MASK_ERROR)
8620 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8621 (struct gdb_quit_bad_alloc): Update.
8622 * common/common-exceptions.c (exception_none): Change
8623 initializer.
8624 (struct catcher) <state, exception>: Initialize inline.
8625 <prev>: Remove member.
8626 (current_catcher): Remove.
8627 (catchers): New global.
8628 (exceptions_state_mc_init): Simplify.
8629 (catcher_pop): Remove.
8630 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8631 (try_scope_depth, exception_try_scope_entry)
8632 (exception_try_scope_exit): Remove.
8633 (throw_exception_sjlj): Update.
8634 (exception_messages, exception_messages_size): Remove.
8635 (throw_it): Simplify.
8636 (gdb_exception_sliced_copy): Remove.
8637 (throw_exception_cxx): Update.
8638 * cli/cli-script.c (script_from_file): Update.
8639 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8640 Update.
8641 * ada-valprint.c (ada_val_print): Update.
8642 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8643 (create_excep_cond_exprs): Update.
8644
c5c10118
TT
86452019-04-08 Tom Tromey <tom@tromey.com>
8646
8647 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8648 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8649 (TRY, CATCH, END_CATCH): Remove some definitions.
8650 * common/common-exceptions.c: Don't use GDB_XCPT.
8651 (catcher_list_size): Remove.
8652 (throw_exception, throw_it): Simplify.
8653
4de283e4
TT
86542019-04-05 Tom Tromey <tom@tromey.com>
8655
8656 Revert the header-sorting patch.
8657 * ft32-tdep.c: Revert.
8658 * frv-tdep.c: Revert.
8659 * frv-linux-tdep.c: Revert.
8660 * frame.c: Revert.
8661 * frame-unwind.c: Revert.
8662 * frame-base.c: Revert.
8663 * fork-child.c: Revert.
8664 * findvar.c: Revert.
8665 * findcmd.c: Revert.
8666 * filesystem.c: Revert.
8667 * filename-seen-cache.h: Revert.
8668 * filename-seen-cache.c: Revert.
8669 * fbsd-tdep.c: Revert.
8670 * fbsd-nat.h: Revert.
8671 * fbsd-nat.c: Revert.
8672 * f-valprint.c: Revert.
8673 * f-typeprint.c: Revert.
8674 * f-lang.c: Revert.
8675 * extension.h: Revert.
8676 * extension.c: Revert.
8677 * extension-priv.h: Revert.
8678 * expprint.c: Revert.
8679 * exec.h: Revert.
8680 * exec.c: Revert.
8681 * exceptions.c: Revert.
8682 * event-top.c: Revert.
8683 * event-loop.c: Revert.
8684 * eval.c: Revert.
8685 * elfread.c: Revert.
8686 * dwarf2read.h: Revert.
8687 * dwarf2read.c: Revert.
8688 * dwarf2loc.c: Revert.
8689 * dwarf2expr.h: Revert.
8690 * dwarf2expr.c: Revert.
8691 * dwarf2-frame.c: Revert.
8692 * dwarf2-frame-tailcall.c: Revert.
8693 * dwarf-index-write.h: Revert.
8694 * dwarf-index-write.c: Revert.
8695 * dwarf-index-common.c: Revert.
8696 * dwarf-index-cache.h: Revert.
8697 * dwarf-index-cache.c: Revert.
8698 * dummy-frame.c: Revert.
8699 * dtrace-probe.c: Revert.
8700 * disasm.h: Revert.
8701 * disasm.c: Revert.
8702 * disasm-selftests.c: Revert.
8703 * dictionary.c: Revert.
8704 * dicos-tdep.c: Revert.
8705 * demangle.c: Revert.
8706 * dcache.h: Revert.
8707 * dcache.c: Revert.
8708 * darwin-nat.h: Revert.
8709 * darwin-nat.c: Revert.
8710 * darwin-nat-info.c: Revert.
8711 * d-valprint.c: Revert.
8712 * d-namespace.c: Revert.
8713 * d-lang.c: Revert.
8714 * ctf.c: Revert.
8715 * csky-tdep.c: Revert.
8716 * csky-linux-tdep.c: Revert.
8717 * cris-tdep.c: Revert.
8718 * cris-linux-tdep.c: Revert.
8719 * cp-valprint.c: Revert.
8720 * cp-support.c: Revert.
8721 * cp-namespace.c: Revert.
8722 * cp-abi.c: Revert.
8723 * corelow.c: Revert.
8724 * corefile.c: Revert.
8725 * continuations.c: Revert.
8726 * completer.h: Revert.
8727 * completer.c: Revert.
8728 * complaints.c: Revert.
8729 * coffread.c: Revert.
8730 * coff-pe-read.c: Revert.
8731 * cli-out.h: Revert.
8732 * cli-out.c: Revert.
8733 * charset.c: Revert.
8734 * c-varobj.c: Revert.
8735 * c-valprint.c: Revert.
8736 * c-typeprint.c: Revert.
8737 * c-lang.c: Revert.
8738 * buildsym.c: Revert.
8739 * buildsym-legacy.c: Revert.
8740 * build-id.h: Revert.
8741 * build-id.c: Revert.
8742 * btrace.c: Revert.
8743 * bsd-uthread.c: Revert.
8744 * breakpoint.h: Revert.
8745 * breakpoint.c: Revert.
8746 * break-catch-throw.c: Revert.
8747 * break-catch-syscall.c: Revert.
8748 * break-catch-sig.c: Revert.
8749 * blockframe.c: Revert.
8750 * block.c: Revert.
8751 * bfin-tdep.c: Revert.
8752 * bfin-linux-tdep.c: Revert.
8753 * bfd-target.c: Revert.
8754 * bcache.c: Revert.
8755 * ax-general.c: Revert.
8756 * ax-gdb.h: Revert.
8757 * ax-gdb.c: Revert.
8758 * avr-tdep.c: Revert.
8759 * auxv.c: Revert.
8760 * auto-load.c: Revert.
8761 * arm-wince-tdep.c: Revert.
8762 * arm-tdep.c: Revert.
8763 * arm-symbian-tdep.c: Revert.
8764 * arm-pikeos-tdep.c: Revert.
8765 * arm-obsd-tdep.c: Revert.
8766 * arm-nbsd-tdep.c: Revert.
8767 * arm-nbsd-nat.c: Revert.
8768 * arm-linux-tdep.c: Revert.
8769 * arm-linux-nat.c: Revert.
8770 * arm-fbsd-tdep.c: Revert.
8771 * arm-fbsd-nat.c: Revert.
8772 * arm-bsd-tdep.c: Revert.
8773 * arch-utils.c: Revert.
8774 * arc-tdep.c: Revert.
8775 * arc-newlib-tdep.c: Revert.
8776 * annotate.h: Revert.
8777 * annotate.c: Revert.
8778 * amd64-windows-tdep.c: Revert.
8779 * amd64-windows-nat.c: Revert.
8780 * amd64-tdep.c: Revert.
8781 * amd64-sol2-tdep.c: Revert.
8782 * amd64-obsd-tdep.c: Revert.
8783 * amd64-obsd-nat.c: Revert.
8784 * amd64-nbsd-tdep.c: Revert.
8785 * amd64-nbsd-nat.c: Revert.
8786 * amd64-nat.c: Revert.
8787 * amd64-linux-tdep.c: Revert.
8788 * amd64-linux-nat.c: Revert.
8789 * amd64-fbsd-tdep.c: Revert.
8790 * amd64-fbsd-nat.c: Revert.
8791 * amd64-dicos-tdep.c: Revert.
8792 * amd64-darwin-tdep.c: Revert.
8793 * amd64-bsd-nat.c: Revert.
8794 * alpha-tdep.c: Revert.
8795 * alpha-obsd-tdep.c: Revert.
8796 * alpha-nbsd-tdep.c: Revert.
8797 * alpha-mdebug-tdep.c: Revert.
8798 * alpha-linux-tdep.c: Revert.
8799 * alpha-linux-nat.c: Revert.
8800 * alpha-bsd-tdep.c: Revert.
8801 * alpha-bsd-nat.c: Revert.
8802 * aix-thread.c: Revert.
8803 * agent.c: Revert.
8804 * addrmap.c: Revert.
8805 * ada-varobj.c: Revert.
8806 * ada-valprint.c: Revert.
8807 * ada-typeprint.c: Revert.
8808 * ada-tasks.c: Revert.
8809 * ada-lang.c: Revert.
8810 * aarch64-tdep.c: Revert.
8811 * aarch64-ravenscar-thread.c: Revert.
8812 * aarch64-newlib-tdep.c: Revert.
8813 * aarch64-linux-tdep.c: Revert.
8814 * aarch64-linux-nat.c: Revert.
8815 * aarch64-fbsd-tdep.c: Revert.
8816 * aarch64-fbsd-nat.c: Revert.
8817 * aarch32-linux-nat.c: Revert.
8818
d55e5aa6
TT
88192019-04-05 Tom Tromey <tom@tromey.com>
8820
8821 * ft32-tdep.c: Sort headers.
8822 * frv-tdep.c: Sort headers.
8823 * frv-linux-tdep.c: Sort headers.
8824 * frame.c: Sort headers.
8825 * frame-unwind.c: Sort headers.
8826 * frame-base.c: Sort headers.
8827 * fork-child.c: Sort headers.
8828 * findvar.c: Sort headers.
8829 * findcmd.c: Sort headers.
8830 * filesystem.c: Sort headers.
8831 * filename-seen-cache.h: Sort headers.
8832 * filename-seen-cache.c: Sort headers.
8833 * fbsd-tdep.c: Sort headers.
8834 * fbsd-nat.h: Sort headers.
8835 * fbsd-nat.c: Sort headers.
8836 * f-valprint.c: Sort headers.
8837 * f-typeprint.c: Sort headers.
8838 * f-lang.c: Sort headers.
8839 * extension.h: Sort headers.
8840 * extension.c: Sort headers.
8841 * extension-priv.h: Sort headers.
8842 * expprint.c: Sort headers.
8843 * exec.h: Sort headers.
8844 * exec.c: Sort headers.
8845 * exceptions.c: Sort headers.
8846 * event-top.c: Sort headers.
8847 * event-loop.c: Sort headers.
8848 * eval.c: Sort headers.
8849 * elfread.c: Sort headers.
8850 * dwarf2read.h: Sort headers.
8851 * dwarf2read.c: Sort headers.
8852 * dwarf2loc.c: Sort headers.
8853 * dwarf2expr.h: Sort headers.
8854 * dwarf2expr.c: Sort headers.
8855 * dwarf2-frame.c: Sort headers.
8856 * dwarf2-frame-tailcall.c: Sort headers.
8857 * dwarf-index-write.h: Sort headers.
8858 * dwarf-index-write.c: Sort headers.
8859 * dwarf-index-common.c: Sort headers.
8860 * dwarf-index-cache.h: Sort headers.
8861 * dwarf-index-cache.c: Sort headers.
8862 * dummy-frame.c: Sort headers.
8863 * dtrace-probe.c: Sort headers.
8864 * disasm.h: Sort headers.
8865 * disasm.c: Sort headers.
8866 * disasm-selftests.c: Sort headers.
8867 * dictionary.c: Sort headers.
8868 * dicos-tdep.c: Sort headers.
8869 * demangle.c: Sort headers.
8870 * dcache.h: Sort headers.
8871 * dcache.c: Sort headers.
8872 * darwin-nat.h: Sort headers.
8873 * darwin-nat.c: Sort headers.
8874 * darwin-nat-info.c: Sort headers.
8875 * d-valprint.c: Sort headers.
8876 * d-namespace.c: Sort headers.
8877 * d-lang.c: Sort headers.
8878 * ctf.c: Sort headers.
8879 * csky-tdep.c: Sort headers.
8880 * csky-linux-tdep.c: Sort headers.
8881 * cris-tdep.c: Sort headers.
8882 * cris-linux-tdep.c: Sort headers.
8883 * cp-valprint.c: Sort headers.
8884 * cp-support.c: Sort headers.
8885 * cp-namespace.c: Sort headers.
8886 * cp-abi.c: Sort headers.
8887 * corelow.c: Sort headers.
8888 * corefile.c: Sort headers.
8889 * continuations.c: Sort headers.
8890 * completer.h: Sort headers.
8891 * completer.c: Sort headers.
8892 * complaints.c: Sort headers.
8893 * coffread.c: Sort headers.
8894 * coff-pe-read.c: Sort headers.
8895 * cli-out.h: Sort headers.
8896 * cli-out.c: Sort headers.
8897 * charset.c: Sort headers.
8898 * c-varobj.c: Sort headers.
8899 * c-valprint.c: Sort headers.
8900 * c-typeprint.c: Sort headers.
8901 * c-lang.c: Sort headers.
8902 * buildsym.c: Sort headers.
8903 * buildsym-legacy.c: Sort headers.
8904 * build-id.h: Sort headers.
8905 * build-id.c: Sort headers.
8906 * btrace.c: Sort headers.
8907 * bsd-uthread.c: Sort headers.
8908 * breakpoint.h: Sort headers.
8909 * breakpoint.c: Sort headers.
8910 * break-catch-throw.c: Sort headers.
8911 * break-catch-syscall.c: Sort headers.
8912 * break-catch-sig.c: Sort headers.
8913 * blockframe.c: Sort headers.
8914 * block.c: Sort headers.
8915 * bfin-tdep.c: Sort headers.
8916 * bfin-linux-tdep.c: Sort headers.
8917 * bfd-target.c: Sort headers.
8918 * bcache.c: Sort headers.
8919 * ax-general.c: Sort headers.
8920 * ax-gdb.h: Sort headers.
8921 * ax-gdb.c: Sort headers.
8922 * avr-tdep.c: Sort headers.
8923 * auxv.c: Sort headers.
8924 * auto-load.c: Sort headers.
8925 * arm-wince-tdep.c: Sort headers.
8926 * arm-tdep.c: Sort headers.
8927 * arm-symbian-tdep.c: Sort headers.
8928 * arm-pikeos-tdep.c: Sort headers.
8929 * arm-obsd-tdep.c: Sort headers.
8930 * arm-nbsd-tdep.c: Sort headers.
8931 * arm-nbsd-nat.c: Sort headers.
8932 * arm-linux-tdep.c: Sort headers.
8933 * arm-linux-nat.c: Sort headers.
8934 * arm-fbsd-tdep.c: Sort headers.
8935 * arm-fbsd-nat.c: Sort headers.
8936 * arm-bsd-tdep.c: Sort headers.
8937 * arch-utils.c: Sort headers.
8938 * arc-tdep.c: Sort headers.
8939 * arc-newlib-tdep.c: Sort headers.
8940 * annotate.h: Sort headers.
8941 * annotate.c: Sort headers.
8942 * amd64-windows-tdep.c: Sort headers.
8943 * amd64-windows-nat.c: Sort headers.
8944 * amd64-tdep.c: Sort headers.
8945 * amd64-sol2-tdep.c: Sort headers.
8946 * amd64-obsd-tdep.c: Sort headers.
8947 * amd64-obsd-nat.c: Sort headers.
8948 * amd64-nbsd-tdep.c: Sort headers.
8949 * amd64-nbsd-nat.c: Sort headers.
8950 * amd64-nat.c: Sort headers.
8951 * amd64-linux-tdep.c: Sort headers.
8952 * amd64-linux-nat.c: Sort headers.
8953 * amd64-fbsd-tdep.c: Sort headers.
8954 * amd64-fbsd-nat.c: Sort headers.
8955 * amd64-dicos-tdep.c: Sort headers.
8956 * amd64-darwin-tdep.c: Sort headers.
8957 * amd64-bsd-nat.c: Sort headers.
8958 * alpha-tdep.c: Sort headers.
8959 * alpha-obsd-tdep.c: Sort headers.
8960 * alpha-nbsd-tdep.c: Sort headers.
8961 * alpha-mdebug-tdep.c: Sort headers.
8962 * alpha-linux-tdep.c: Sort headers.
8963 * alpha-linux-nat.c: Sort headers.
8964 * alpha-bsd-tdep.c: Sort headers.
8965 * alpha-bsd-nat.c: Sort headers.
8966 * aix-thread.c: Sort headers.
8967 * agent.c: Sort headers.
8968 * addrmap.c: Sort headers.
8969 * ada-varobj.c: Sort headers.
8970 * ada-valprint.c: Sort headers.
8971 * ada-typeprint.c: Sort headers.
8972 * ada-tasks.c: Sort headers.
8973 * ada-lang.c: Sort headers.
8974 * aarch64-tdep.c: Sort headers.
8975 * aarch64-ravenscar-thread.c: Sort headers.
8976 * aarch64-newlib-tdep.c: Sort headers.
8977 * aarch64-linux-tdep.c: Sort headers.
8978 * aarch64-linux-nat.c: Sort headers.
8979 * aarch64-fbsd-tdep.c: Sort headers.
8980 * aarch64-fbsd-nat.c: Sort headers.
8981 * aarch32-linux-nat.c: Sort headers.
8982
699bd4cf
TT
89832019-04-04 Tom Tromey <tom@tromey.com>
8984
8985 * varobj.c (varobj_create): Update.
8986 * rust-exp.y (struct rust_parser) <update_innermost_block,
8987 lookup_symbol>: New methods.
8988 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8989 Rename.
8990 (rust_parser::rust_lookup_type)
8991 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8992 * printcmd.c (display_command, do_one_display): Update.
8993 * parser-defs.h (struct parser_state) <parser_state>: Add
8994 "tracker" parameter.
8995 (block_tracker): New member.
8996 (class innermost_block_tracker) <innermost_block_tracker>: Add
8997 "types" parameter.
8998 <reset>: Remove method.
8999 (innermost_block): Don't declare.
9000 (null_post_parser): Update.
9001 * parse.c (innermost_block): Remove global.
9002 (write_dollar_variable): Update.
9003 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9004 Remove "tracker_types" parameter.
9005 (parse_expression): Add "tracker" parameter.
9006 (parse_expression_for_completion): Update.
9007 (null_post_parser): Add "tracker" parameter.
9008 * p-exp.y: Update rules.
9009 * m2-exp.y: Update rules.
9010 * language.h (struct language_defn) <la_post_parser>: Add
9011 "tracker" parameter.
9012 * go-exp.y: Update rules.
9013 * f-exp.y: Update rules.
9014 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9015 parameter.
9016 * d-exp.y: Update rules.
9017 * c-exp.y: Update rules.
9018 * breakpoint.c (set_breakpoint_condition): Create an
9019 innermost_block_tracker.
9020 (watch_command_1): Likewise.
9021 * ada-lang.c (resolve): Add "tracker" parameter.
9022 (resolve_subexp): Likewise.
9023 * ada-exp.y (write_var_from_sym): Update.
9024
dac43e32
TT
90252019-04-04 Tom Tromey <tom@tromey.com>
9026
9027 * type-stack.h: New file.
9028 * type-stack.c: New file.
9029 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9030 type-stack.h.
9031 (insert_into_type_stack, insert_type, push_type, push_type_int)
9032 (insert_type_address_space, pop_type, pop_type_int)
9033 (pop_typelist, pop_type_stack, append_type_stack)
9034 (push_type_stack, get_type_stack, push_typelist)
9035 (follow_type_instance_flags, follow_types): Don't declare.
9036 * parse.c (type_stack): Remove global.
9037 (parse_exp_in_context): Update.
9038 (insert_into_type_stack, insert_type, push_type, push_type_int)
9039 (insert_type_address_space, pop_type, pop_type_int)
9040 (pop_typelist, pop_type_stack, append_type_stack)
9041 (push_type_stack, get_type_stack, push_typelist)
9042 (follow_type_instance_flags, follow_types): Remove (moved to
9043 type-stack.c).
9044 * f-exp.y (type_stack): New global.
9045 Update rules.
9046 (push_kind_type, f_parse): Update.
9047 * d-exp.y (type_stack): New global.
9048 Update rules.
9049 (d_parse): Update.
9050 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9051 Update rules.
9052 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9053 (HFILES_NO_SRCDIR): Add type-stack.h.
9054
2a612529
TT
90552019-04-04 Tom Tromey <tom@tromey.com>
9056
9057 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9058 (rust_parser::convert_ast_to_expression, rust_parse)
9059 (rust_lex_test_completion, rust_lex_tests): Update.
9060 * parser-defs.h (struct expr_completion_state): New.
9061 (struct parser_state) <parser_state>: Add completion parameter.
9062 <mark_struct_expression, mark_completion_tag>: New methods.
9063 <parse_completion, m_completion_state>: New members.
9064 (prefixify_expression, null_post_parser): Update.
9065 (mark_struct_expression, mark_completion_tag): Don't declare.
9066 * parse.c (parse_completion, expout_last_struct)
9067 (expout_tag_completion_type, expout_completion_name): Remove
9068 globals.
9069 (parser_state::mark_struct_expression)
9070 (parser_state::mark_completion_tag): Now methods.
9071 (prefixify_expression): Add last_struct parameter.
9072 (prefixify_subexp): Likewise.
9073 (parse_exp_1): Update.
9074 (parse_exp_in_context): Add cstate parameter. Update.
9075 (parse_expression_for_completion): Create an
9076 expr_completion_state.
9077 (null_post_parser): Add "completion" parameter.
9078 * p-exp.y: Update rules.
9079 (yylex): Update.
9080 * language.h (struct language_defn) <la_post_parser>: Add
9081 "completing" parameter.
9082 * go-exp.y: Update rules.
9083 (lex_one_token): Update.
9084 * expression.h (parse_completion): Don't declare.
9085 * d-exp.y: Update rules.
9086 (lex_one_token): Update rules.
9087 * c-exp.y: Update rules.
9088 (lex_one_token): Update.
9089 * ada-lang.c (resolve): Add "parse_completion" parameter.
9090 (resolve_subexp): Likewise.
9091 (ada_resolve_function): Likewise.
9092
43476f0b
TT
90932019-04-04 Tom Tromey <tom@tromey.com>
9094
9095 * parser-defs.h (struct parser_state) <start_arglist,
9096 end_arglist>: New methods.
9097 <arglist_len, m_funcall_chain>: New members.
9098 (arglist_len, start_arglist, end_arglist): Don't declare.
9099 * parse.c (arglist_len, funcall_chain): Remove global.
9100 (start_arglist, end_arglist): Remove functions.
9101 (parse_exp_in_context): Update.
9102 * p-exp.y: Update rules.
9103 * m2-exp.y: Update rules.
9104 * go-exp.y: Update rules.
9105 * f-exp.y: Update rules.
9106 * d-exp.y: Update rules.
9107 * c-exp.y: Update rules.
9108
5776fca3
TT
91092019-04-04 Tom Tromey <tom@tromey.com>
9110
9111 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9112 lex_operator, push_back>: New methods.
9113 Update all rules.
9114 (rust_parser::lex_hex, lex_escape): Rename and update.
9115 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9116 (rust_parser::lex_operator): Rename and update.
9117 (rust_parser::lex_number, rustyylex, rustyyerror)
9118 (rust_lex_test_init, rust_lex_test_sequence)
9119 (rust_lex_test_push_back, rust_lex_tests): Update.
9120 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9121 parameter.
9122 <lexptr, prev_lexptr>: New members.
9123 (lexptr, prev_lexptr): Don't declare.
9124 * parse.c (lexptr, prev_lexptr): Remove globals.
9125 (parse_exp_in_context): Update.
9126 * p-exp.y (yylex, yyerror): Update.
9127 * m2-exp.y (parse_number, yylex, yyerror): Update.
9128 * go-exp.y (lex_one_token, yyerror): Update.
9129 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9130 * d-exp.y (lex_one_token, yyerror): Update.
9131 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9132 (lex_one_token, yyerror): Update.
9133 * ada-lex.l (YY_INPUT): Update.
9134 (rewind_to_char): Update.
9135 * ada-exp.y (yyerror): Update.
9136
8621b685
TT
91372019-04-04 Tom Tromey <tom@tromey.com>
9138
9139 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9140 * parser-defs.h (struct parser_state) <parser_state>: Add new
9141 parameter.
9142 <comma_terminates>: New member.
9143 (comma_terminates): Don't declare global.
9144 * parse.c (comma_terminates): Remove global.
9145 (parse_exp_in_context): Update.
9146 * p-exp.y (yylex): Update.
9147 * m2-exp.y (yylex): Update.
9148 * go-exp.y (lex_one_token): Update.
9149 * f-exp.y (yylex): Update.
9150 * d-exp.y (lex_one_token): Update.
9151 * c-exp.y (lex_one_token): Update.
9152 * ada-lex.l: Update.
9153
28aaf3fd
TT
91542019-04-04 Tom Tromey <tom@tromey.com>
9155
9156 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9157 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9158 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9159 * parser-defs.h (paren_depth): Don't declare.
9160 * parse.c (paren_depth): Remove global.
9161 (parse_exp_in_context): Update.
9162 * p-exp.y (paren_depth): New global.
9163 (pascal_parse): Initialize it.
9164 * m2-exp.y (paren_depth): New global.
9165 (m2_parse): Initialize it.
9166 * go-exp.y (paren_depth): New global.
9167 (go_parse): Initialize it.
9168 * f-exp.y (paren_depth): New global.
9169 (f_parse): Initialize it.
9170 * d-exp.y (paren_depth): New global.
9171 (d_parse): Initialize it.
9172 * c-exp.y (paren_depth): New global.
9173 (c_parse): Initialize it.
9174 * ada-lex.l (paren_depth): New global.
9175 (lexer_init): Initialize it.
9176
1e58a4a4
TT
91772019-04-04 Tom Tromey <tom@tromey.com>
9178
9179 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9180 (rust_parser::convert_ast_to_type)
9181 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9182 * parser-defs.h (struct parser_state) <parser_state>: Add
9183 parameters. Initialize new members.
9184 <expression_context_block, expression_context_pc>: New members.
9185 * parse.c (expression_context_block, expression_context_pc):
9186 Remove globals.
9187 (parse_exp_in_context): Update.
9188 * p-exp.y: Update all rules.
9189 (yylex): Update.
9190 * m2-exp.y: Update all rules.
9191 (yylex): Update.
9192 * go-exp.y (yylex): Update.
9193 * f-exp.y (yylex): Update.
9194 * d-exp.y: Update all rules.
9195 (yylex): Update.
9196 * c-exp.y: Update all rules.
9197 (lex_one_token, classify_name, yylex, c_parse): Update.
9198 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9199
37eedb39
TT
92002019-04-04 Tom Tromey <tom@tromey.com>
9201
9202 * gdbarch.h, gdbarch.c: Rebuild.
9203 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9204 * stap-probe.h:
9205 (struct stap_parse_info): Replace "parser_state" with
9206 "expr_builder".
9207 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9208 (parser_state): New class.
9209 * parse.c (expr_builder): Rename.
9210 (expr_builder::release): Rename.
9211 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9212 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9213 (write_exp_elt_longcst, write_exp_elt_floatcst)
9214 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9215 (write_exp_string_vector, write_exp_bitstring)
9216 (write_exp_msymbol, mark_struct_expression)
9217 (write_dollar_variable)
9218 (insert_type_address_space, increase_expout_size): Replace
9219 "parser_state" with "expr_builder".
9220 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9221 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9222 "parser_state" with "expr_builder".
9223
73923d7e
TT
92242019-04-04 Tom Tromey <tom@tromey.com>
9225
9226 * rust-exp.y: Replace "parse_language" with method call.
9227 * p-exp.y:
9228 (yylex): Replace "parse_language" with method call.
9229 * m2-exp.y:
9230 (yylex): Replace "parse_language" with method call.
9231 * go-exp.y (classify_name): Replace "parse_language" with method
9232 call.
9233 * f-exp.y (yylex): Replace "parse_language" with method call.
9234 * d-exp.y (lex_one_token): Replace "parse_language" with method
9235 call.
9236 * c-exp.y:
9237 (lex_one_token, classify_name, yylex): Replace "parse_language"
9238 with method call.
9239 * ada-exp.y (find_primitive_type, type_char)
9240 (type_system_address): Replace "parse_language" with method call.
9241
fa9f5be6
TT
92422019-04-04 Tom Tromey <tom@tromey.com>
9243
9244 * rust-exp.y: Replace "parse_gdbarch" with method call.
9245 * parse.c (write_dollar_variable, insert_type_address_space):
9246 Replace "parse_gdbarch" with method call.
9247 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9248 call.
9249 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9250 call.
9251 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9252 "parse_gdbarch" with method call.
9253 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9254 with method call.
9255 * f-exp.y (parse_type, parse_f_type, yylex): Replace
9256 "parse_gdbarch" with method call.
9257 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9258 "parse_gdbarch" with method call.
9259 * c-exp.y (parse_type, parse_number, classify_name): Replace
9260 "parse_gdbarch" with method call.
9261 * ada-lex.l: Replace "parse_gdbarch" with method call.
9262 * ada-exp.y (parse_type, find_primitive_type, type_char)
9263 (type_system_address): Replace "parse_gdbarch" with method call.
9264
1201a264
TT
92652019-04-04 Tom Tromey <tom@tromey.com>
9266
9267 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9268 * stap-probe.c (stap_parse_argument): Update.
9269 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9270 initial_size parameter.
9271 * rust-exp.y (rust_lex_tests): Update.
9272 * parse.c (parser_state): Update.
9273 (parse_exp_in_context): Update.
9274 * parser-defs.h (struct parser_state) <parser_state>: Remove
9275 "initial_size" parameter.
9276
e3980ce2
TT
92772019-04-04 Tom Tromey <tom@tromey.com>
9278
9279 * parser-defs.h (increase_expout_size): Don't declare.
9280 * parse.c (increase_expout_size): Now static.
9281
e9f8e3f1
TS
92822019-04-04 Thomas Schwinge <thomas@codesourcery.com>
9283
9284 * gnu-nat.c (gnu_nat_target::wait): Fix
9285 target_waitstatus_to_string call.
9286
d7df6549
AB
92872019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9288
9289 * eval.c (evaluate_subexp_standard): Handle internal functions
9290 during Fortran function call handling.
9291
8bdc1658
AB
92922019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9293
9294 * NEWS: Mention new internal functions.
9295 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9296 (read_base_type): Use dwarf2_init_complex_target_type.
9297 * value.c (creal_internal_fn): New function.
9298 (cimag_internal_fn): New function.
9299 (_initialize_values): Register new internal functions.
9300
c29705b7
PW
93012019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9302
9303 * infrun.c (stop_all_threads): If debug_infrun, always
9304 trace the wait status after wait_one, using
9305 target_waitstatus_to_string and target_pid_to_str.
9306 (handle_inferior_event): Replace various trace of
9307 wait status kind by a single trace.
9308 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9309 wait status kind image by target_waitstatus_to_string.
9310 * target/waitstatus.c (target_waitstatus_to_string): Fix
9311 obsolete comment.
9312
05caa1d2
TT
93132019-04-01 Tom Tromey <tromey@adacore.com>
9314
9315 PR symtab/23331:
9316 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9317
9d1447e0
SDJ
93182019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9319 Pedro Alves <palves@redhat.com>
9320
9321 * top.c (quit_force): Call 'finalize_values'.
9322 * value.c (finalize_values): New function.
9323 * value.h (finalize_values): Declare.
9324
7734102d
EZ
93252019-03-30 Eli Zaretskii <eliz@gnu.org>
9326
9327 * NEWS: Announce $_gdb_major and $_gdb_minor.
9328
9329 * top.c (init_gdb_version_vars): New function.
9330 (gdb_init): Call init_gdb_version_vars.
9331
188e1fa9
TT
93322019-03-29 Tom Tromey <tromey@adacore.com>
9333
9334 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9335 help text. Remove dead code.
9336
2880242d
KS
93372019-03-29 Keith Seitz <keiths@redhat.com>
9338
9339 From Siddhesh Poyarekar:
9340 * f-lang.h (f77_get_upperbound): Return LONGEST.
9341 (f77_get_lowerbound): Likewise.
9342 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9343 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9344 print them.
9345 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9346 plongest to format print it.
9347 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9348 (f77_get_upperbound): Likewise.
9349 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9350 LOWER_BOUND to LONGEST.
9351 (f77_create_arrayprint_offset_tbl): Likewise.
9352
cc1defb1
KS
93532019-03-29 Keith Seitz <keiths@redhat.com>
9354
9355 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9356 %s/pulongest for TYPE_LENGTH instead of %d in format
9357 strings.
9358 * ada-typerint.c (ada_print_type): Likewise.
9359 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9360 * compile/compile-c-support.c (generate_register_struct): Likewise.
9361 * gdbtypes.c (recursive_dump_type): Likewise.
9362 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9363 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9364 instead of %d in format strings.
9365 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9366 to std::min to ULONGEST.
9367 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9368 instead of %d in format strings.
9369 * tracepoint.c (info_scope_command): Likewise.
9370 * typeprint.c (print_offset_data::update)
9371 (print_offset_data::finish): Likewise.
9372 * xtensa-tdep.c (xtensa_store_return_value)
9373 (xtensa_push_dummy_call): Likewise.
9374
e432ccf1
JT
93752019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9376
9377 * windows-nat.c (display_selector): Fixed format specifications
9378 for 64-bit Cygwin.
9379
65d2b333
PW
93802019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9381
9382 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9383
f489207e
SL
93842019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9385
9386 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9387 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9388 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9389 (nios2_linux_init_abi): Install it.
9390
bffa1015
AH
93912019-03-28 Alan Hayward <alan.hayward@arm.com>
9392
9393 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9394
fc96163a
AH
93952019-03-28 Alan Hayward <alan.hayward@arm.com>
9396
9397 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9398
20dc7e9b
PW
93992019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9400 Tom Tromey <tromey@adacore.com>
9401
9402 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9403
7f5331a8
JB
94042019-03-26 Joel Brobecker <brobecker@adacore.com>
9405
9406 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9407 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9408 method to compute the bounds of range types. Also print "[evaluated]"
9409 if the bounds' values come from a dynamic evaluation.
9410
18c77628
AB
94112019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9412
9413 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9414 whitespace when pretty printing is on.
9415
53c973f2
AH
94162019-03-26 Alan Hayward <alan.hayward@arm.com>
9417
e79be6e5 9418 * ppc-linux-nat.c: Add include.
53c973f2 9419
d851aa71
AH
94202019-03-26 Alan Hayward <alan.hayward@arm.com>
9421
e79be6e5 9422 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 9423
2fe7bab7
AH
94242019-03-26 Alan Hayward <alan.hayward@arm.com>
9425
e79be6e5 9426 * arm-linux-nat.c: Add include.
2fe7bab7 9427
068ef30e
SM
94282019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9429
9430 * source-cache.c (source_cache::get_source_lines): Re-read
9431 fullname after calling open_source_file.
9432
81a24d04
JB
94332019-03-25 John Baldwin <jhb@FreeBSD.org>
9434
9435 * NEWS: Mention TLS support for FreeBSD.
9436
79e7ae11
TT
94372019-03-25 Tom Tromey <tromey@adacore.com>
9438
9439 * minsyms.c (BUNCH_SIZE): Update comment.
9440 (~minimal_symbol_reader): Remove old comment.
9441 (compact_minimal_symbols): Update comment.
9442 (minimal_symbol_reader::install): Remove old comment. Update
9443 other comments.
9444
d45963c2
AH
94452019-03-25 Alan Hayward <alan.hayward@arm.com>
9446
9447 * s390-linux-nat.c: Add include.
9448
0f83012e
AH
94492019-03-25 Alan Hayward <alan.hayward@arm.com>
9450
9451 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9452 Call linux_get_hwcap.
9453 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9454 Likewise.
9455 (aarch64_linux_get_hwcap): Remove function.
9456 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9457 declaration.
9458 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9459 linux_get_hwcap.
9460 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9461 * linux-tdep.c (linux_get_hwcap): Add function.
9462 (linux_get_hwcap2): Likewise.
9463 * linux-tdep.h (linux_get_hwcap): Add declaration.
9464 (linux_get_hwcap2): Likewise.
9465 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9466 (ppc_linux_get_hwcap2): Likewise.
9467 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9468 linux_get_hwcap.
9469 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9470 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9471 (ppc_linux_nat_target::read_description): Likewise.
9472 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9473 * s390-linux-nat.c: Likewise.
9474 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9475
6640a367
TT
94762019-03-24 Tom Tromey <tom@tromey.com>
9477
9478 * ada-lang.c (standard_lookup): Simplify initialization.
9479 (ada_lookup_symbol_nonlocal): Simplify return.
9480 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9481 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9482 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9483 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9484 initialization.
9485 * solib.c (solib_global_lookup): Simplify.
9486 * symtab.c (null_block_symbol): Remove.
9487 (symbol_cache_lookup): Simplify returns.
9488 (lookup_language_this): Simplify returns.
9489 (lookup_symbol_aux): Simplify return.
9490 (lookup_local_symbol): Simplify returns.
9491 (lookup_global_symbol_from_objfile): Simplify return.
9492 (lookup_symbol_in_objfile_symtabs)
9493 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9494 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9495 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9496 * cp-namespace.c (cp_lookup_bare_symbol)
9497 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9498 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9499 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9500 (cp_lookup_symbol_via_imports): Simplify initialization.
9501 (find_symbol_in_baseclass): Likewise.
9502 * symtab.h (null_block_symbol): Remove.
9503 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9504 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9505 (d_lookup_symbol_module): Likewise.
9506 (find_symbol_in_baseclass): Simplify initialization.
9507
a930ebcd
TT
95082019-03-24 Tom Tromey <tom@tromey.com>
9509
9510 * expression.h: Don't include symtab.h.
9511 (struct block): Forward declare.
9512
582942f4
TT
95132019-03-24 Tom Tromey <tom@tromey.com>
9514
9515 * c-exp.y (typebase): Remove casts.
9516 * gdbtypes.c (lookup_unsigned_typename, )
9517 (lookup_signed_typename): Remove cast.
9518 * eval.c (parse_to_comma_and_eval): Remove cast.
9519 * parse.c (write_dollar_variable): Remove cast.
9520 * block.h (struct block) <superblock>: Now const.
9521 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9522 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9523 (map_block): Make "block" const.
9524 * symfile.h (struct quick_symbol_functions)
9525 <map_matching_symbols>: Constify block argument to "callback".
9526 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9527 const.
9528 (find_pc_sect_compunit_symtab): Make "b" const.
9529 (find_symbol_at_address): Likewise.
9530 (search_symbols): Likewise.
9531 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9532 (dw2_debug_names_lookup_symbol): Likewise.
9533 (dw2_map_matching_symbols): Update.
9534 * p-valprint.c (pascal_val_print): Remove "block".
9535 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9536 (aux_add_nonlocal_symbols): Make "block" const.
9537 (resolve_subexp): Remove cast.
9538 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9539 const.
9540 (iterate_over_file_blocks): Likewise.
9541 * f-exp.y (%union) <bval>: Remove.
9542 * coffread.c (patch_opaque_types): Make "b" const.
9543 * spu-tdep.c (spu_catch_start): Make "block" const.
9544 * c-valprint.c (print_unpacked_pointer): Remove "block".
9545 * symmisc.c (dump_symtab_1): Make "b" const.
9546 (block_depth): Make "block" const.
9547 * d-exp.y (%union) <bval>: Remove.
9548 * cp-support.h (cp_lookup_rtti_type): Update.
9549 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9550 * psymtab.c (psym_lookup_symbol): Make "block" const.
9551 (maintenance_check_psymtabs): Make "b" const.
9552 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9553 (enumerate_locals, enumerate_args): Update.
9554 * python/py-symtab.c (stpy_global_block): Make "block" const.
9555 (stpy_static_block): Likewise.
9556 * inline-frame.c (block_starting_point_at): Make "new_block"
9557 const.
9558 * block.c (find_block_in_blockvector): Make return type const.
9559 (blockvector_for_pc_sect): Make "b" const.
9560 (find_block_in_blockvector): Make "b" const.
9561
7ad417dd
TT
95622019-03-23 Tom Tromey <tom@tromey.com>
9563
9564 * varobj.c (varobj_create): Update.
9565 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9566 * printcmd.c (display_command, do_one_display): Don't reset
9567 innermost_block.
9568 * parser-defs.h (enum innermost_block_tracker_type): Move to
9569 expression.h.
9570 (innermost_block): Update comment.
9571 * parse.c (parse_exp_1): Add tracker_types parameter.
9572 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9573 tracker_types parameter. Reset innermost_block.
9574 (parse_exp_in_context): Remove.
9575 (parse_expression_for_completion): Update.
9576 * objfiles.c (~objfile): Don't reset expression_context_block or
9577 innermost_block.
9578 * expression.h (enum innermost_block_tracker_type): Move from
9579 parser-defs.h.
9580 (parse_exp_1): Add tracker_types parameter.
9581 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9582 reset innermost_block.
9583
b366c208
TT
95842019-03-23 Tom Tromey <tom@tromey.com>
9585
9586 * objfiles.h: Include bcache.h.
9587
9bb9b2f9
TT
95882019-03-23 Tom Tromey <tom@tromey.com>
9589
9590 * linespec.c (get_current_search_block): Use
9591 scoped_restore_current_language.
9592 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9593
59c28372
AH
95942019-03-22 Alan Hayward <alan.hayward@arm.com>
9595 Jiong Wang <jiong.wang@arm.com>
9596
9597 * aarch64-linux-tdep.c
9598 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9599 section.
9600 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9601
17e116a7
AH
96022019-03-22 Alan Hayward <alan.hayward@arm.com>
9603 Jiong Wang <jiong.wang@arm.com>
9604
9605 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9606 instructions.
9607 (aarch64_analyze_prologue_test): Add PACIASP test.
9608 (aarch64_prologue_prev_register): Unmask PC value.
9609
11e1b75f
AH
96102019-03-22 Alan Hayward <alan.hayward@arm.com>
9611 Jiong Wang <jiong.wang@arm.com>
9612
9613 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9614 (aarch64_dwarf2_prev_register): Unmask PC value.
9615 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9616 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9617 DW_CFA_AARCH64_negate_ra_state.
9618 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9619
34dcc7cf
AH
96202019-03-22 Alan Hayward <alan.hayward@arm.com>
9621 Jiong Wang <jiong.wang@arm.com>
9622
9623 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9624 registers.
9625 (aarch64_pseudo_register_name): Likewise.
9626 (aarch64_pseudo_register_type): Likewise.
9627 (aarch64_pseudo_register_reggroup_p): Likewise.
9628 (aarch64_gdbarch_init): Add pauth registers.
9629 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9630 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9631 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9632 (struct gdbarch_tdep): Add regnum for ra_state.
9633
1ef53e6b
AH
96342019-03-22 Alan Hayward <alan.hayward@arm.com>
9635 Jiong Wang <jiong.wang@arm.com>
9636
9637 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9638
76bed0fd
AH
96392019-03-22 Alan Hayward <alan.hayward@arm.com>
9640 Jiong Wang <jiong.wang@arm.com>
9641
9642 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9643 function.
9644 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9645 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9646 (aarch64_gdbarch_init): Add puth registers.
9647 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9648 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9649 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9650
ee4fbcfa
AH
96512019-03-22 Alan Hayward <alan.hayward@arm.com>
9652 Jiong Wang <jiong.wang@arm.com>
9653
9654 * aarch64-linux-nat.c
9655 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9656 * aarch64-linux-tdep.c
9657 (aarch64_linux_core_read_description): Likewise.
9658 (aarch64_linux_get_hwcap): New function.
9659 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9660 (aarch64_linux_get_hwcap): New declaration.
9661
6dc0ebde
AH
96622019-03-22 Alan Hayward <alan.hayward@arm.com>
9663 Jiong Wang <jiong.wang@arm.com>
9664
9665 * aarch64-linux-nat.c
9666 (aarch64_linux_nat_target::read_description): Add pauth param.
9667 * aarch64-linux-tdep.c
9668 (aarch64_linux_core_read_description): Likewise.
9669 * aarch64-tdep.c (struct target_desc): Add in pauth.
9670 (aarch64_read_description): Add pauth param.
9671 (aarch64_gdbarch_init): Likewise.
9672 * aarch64-tdep.h (aarch64_read_description): Likewise.
9673 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9674 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9675 * features/Makefile: Add new files.
9676 * features/aarch64-pauth.c: New file.
9677 * features/aarch64-pauth.xml: New file.
9678
595915c1
TT
96792019-03-20 Tom Tromey <tromey@adacore.com>
9680
9681 * infrun.c (handle_inferior_event): Rename from
9682 handle_inferior_event_1. Create a scoped_value_mark.
9683 (handle_inferior_event): Remove.
9684
4c7d57e7
TT
96852019-03-19 Tom Tromey <tromey@adacore.com>
9686
9687 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9688 * infrun.h (print_stop_event): Add "displays" parameter.
9689 * infrun.c (print_stop_event): Add "displays" parameter.
9690
cb246234
PA
96912019-03-19 Pedro Alves <palves@redhat.com>
9692
9693 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9694 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9695 to -1. Fix TABs vs spaces.
9696 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9697 * tui/tui-out.h (tui_ui_out) Add intro comments.
9698 <m_line, m_start_of_line>: In-class initialize, and add describing
9699 comment.
9700
3a0e45b2
AH
97012019-03-18 Alan Hayward <alan.hayward@arm.com>
9702
9703 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9704 variable names.
9705 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9706
5371b850
PA
97072019-03-18 Pedro Alves <palves@redhat.com>
9708 Eli Zaretskii <eliz@gnu.org>
9709
9710 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9711 m_line and m_start_of_line.
9712
b17c4cd0
EZ
97132019-03-18 Eli Zaretskii <eliz@gnu.org>
9714
9715 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9716 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9717 it returns a newline. This fixes a regression in TU mode, whereby
9718 the next line is output on the same screen line as the user input.
9719
4bd56d18
TT
97202019-03-18 Tom Tromey <tromey@adacore.com>
9721
9722 * minsyms.c (minimal_symbol_reader::install): Remove call to
9723 obstack_blank.
9724
55c10aca
PA
97252019-03-18 Pedro Alves <palves@redhat.com>
9726
9727 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9728 New globals.
9729 (apply_style): New, factored out from ...
9730 (apply_ansi_escape): ... this. Handle reverse video mode.
9731 (tui_set_reverse_mode): New function.
9732 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9733 * tui/tui-winsource.c (tui_show_source_line): Use
9734 tui_set_reverse_mode instead of setting A_STANDOUT.
9735 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9736 New setter methods.
9737
647bb750
HD
97382019-03-18 Hannes Domani <ssbssa@yahoo.de>
9739
9740 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9741 Handle tabs.
9742
bff8c71f
TT
97432019-03-18 Tom Tromey <tromey@adacore.com>
9744
9745 * ada-lang.c (empty_array): Add "high" parameter.
9746 (ada_evaluate_subexp): Update.
9747
58785d98
ST
97482019-03-17 Sergei Trofimovich <siarheit@google.com>
9749
9750 * unittests/string_view-selftests.c: Define
9751 _initialize_string_view_selftests unconditionally.
9752
d4cbef22
ВМ
97532019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9754
9755 PR gdb/24350
9756 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9757
fce4c071
ВМ
97582019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9759
9760 PR gdb/24351
9761 * windows-nat.c (display_selector): Fix format specifiers.
9762
f7f0a123
EZ
97632019-03-17 Eli Zaretskii <eliz@gnu.org>
9764
9765 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9766 tui_refill_source_window instead of tui_refresh_win, to update the
9767 current execution line. This fixes redisplay of the current line
9768 when stepping through the code with "next" or "step".
9769
ab42892f
EZ
97702019-03-16 Eli Zaretskii <eliz@gnu.org>
9771
9772 * source-cache.c (source_cache::get_source_lines): Call
9773 find_source_lines to initialize s->nlines. This fixes vertical
9774 scrolling of TUI source window when the DOWN arrow is pressed.
9775
8d8c087f
PW
97762019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9777
9778 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9779 linux-thread-db.c (_initialize_thread_db): Likewise.
9780
798e1c30
EZ
97812019-03-16 Eli Zaretskii <eliz@gnu.org>
9782
9783 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9784 wclrtoeol in tui_show_source_line". This reverts changes made in
9785 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9786
eefba3da
TT
97872019-03-15 Tom Tromey <tom@tromey.com>
9788
9789 * symtab.h (struct minimal_symbol): Derive from
9790 general_symbol_info.
9791 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9792 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9793 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9794 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9795 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9796 (MSYMBOL_SEARCH_NAME): Update.
9797 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9798 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9799 * minsyms.c (minimal_symbol_reader::record_full): Update.
9800
0de2420c
TT
98012019-03-15 Tom Tromey <tom@tromey.com>
9802
9803 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9804
042d75e4
TT
98052019-03-15 Tom Tromey <tom@tromey.com>
9806
9807 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9808 unique_xmalloc_ptr.
9809 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9810 Update.
9811 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9812 (build_minimal_symbol_hash_tables)
9813 (minimal_symbol_reader::install): Update.
9814
db92718b
TT
98152019-03-15 Tom Tromey <tom@tromey.com>
9816
9817 * symtab.c (create_demangled_names_hash): Update.
9818 (symbol_set_names): Update.
9819 * objfiles.h (struct objfile_per_bfd_storage)
9820 <demangled_names_hash>: Now an htab_up.
9821 * objfiles.c (objfile_per_bfd_storage): Simplify.
9822
d6797f46
TT
98232019-03-15 Tom Tromey <tom@tromey.com>
9824
9825 * objfiles.h (struct objfile_per_bfd_storage): Declare
9826 destructor.
9827 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9828 New.
9829 (get_objfile_bfd_data): Use new. Don't initialize
9830 language_of_main.
9831 (free_objfile_per_bfd_storage): Remove.
9832 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9833
741d7538
TT
98342019-03-15 Tom Tromey <tom@tromey.com>
9835
9836 * symfile.c (reread_symbols): Update.
9837 * objfiles.c (objfile::objfile): Update.
9838 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9839 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9840 comment.
9841 (minimal_symbol_reader::install): Update.
9842 (terminate_minimal_symbol_table): Remove.
9843 * jit.c (jit_object_close_impl): Update.
9844
788c80d1
TT
98452019-03-15 Tom Tromey <tom@tromey.com>
9846
9847 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9848 initializations.
9849
1b7a07cb
TT
98502019-03-15 Tom Tromey <tom@tromey.com>
9851
9852 * objfiles.h (struct objfile_per_bfd_storage)
9853 <demangled_hash_languages>: Now a bitset.
9854 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9855 (lookup_minimal_symbol): Update.
9856
3db066bc
TT
98572019-03-15 Tom Tromey <tom@tromey.com>
9858
9859 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9860 Don't return the symbol.
9861 * coffread.c (record_minimal_symbol): Use record_full.
9862
3fff2c37
EZ
98632019-03-14 Eli Zaretskii <eliz@gnu.org>
9864
9865 The MS-Windows port of ncurses fails to switch to a color pair if
9866 one or both of the colors are the implicit default colors. This
9867 change records the default colors when TUI is initialized, and
9868 then specifies them explicitly when a color pair uses the default
9869 colors. This allows color styling in TUI mode on MS-Windows.
9870
9871 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9872 ncurses_norm_attr.
9873 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9874 colors in ncurses_norm_attr.
9875 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9876 "none", replace it with the default color recorded in
9877 ncurses_norm_attr.
9878
3b336828
TT
98792019-03-14 Tom Tromey <tromey@adacore.com>
9880
9881 * source-cache.h (class source_cache) <get_source_lines>: Return
9882 std::string.
9883 * source-cache.c (source_cache::extract_lines): Handle case where
9884 first_pos==npos. Return std::string.
9885 (source_cache::get_source_lines): Update.
9886
d085f989
TT
98872019-03-14 Tom Tromey <tromey@adacore.com>
9888
9889 * NEWS: Add item for "style sources" commands.
9890 * source-cache.c (source_cache::get_source_lines): Check
9891 source_styling.
9892 * cli/cli-style.c (source_styling): New global.
9893 (_initialize_cli_style): Add "style sources" commands.
9894 (show_style_sources): New function.
9895 * cli/cli-style.h (source_styling): Declare.
9896
6f11e682
TT
98972019-03-14 Pedro Alves <palves@redhat.com>
9898 Tom Tromey <tromey@adacore.com>
9899
9900 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9901 * tui/tui-winsource.c (tui_refill_source_window): New function,
9902 from...
9903 (tui_horizontal_source_scroll): ... here. Move some logic.
9904 * cli/cli-style.c (set_style_enabled): Notify new observable.
9905 * tui/tui-hooks.c (tui_redisplay_source): New function.
9906 (tui_attach_detach_observers): Attach or detach
9907 tui_redisplay_source.
9908 * observable.h (source_styling_changed): New observable.
9909 * observable.c: Define source_styling_changed observable.
9910
a068643d
TT
99112019-03-13 Tom Tromey <tromey@adacore.com>
9912
9913 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9914 (i386_gnu_nat_target::store_registers): Update.
9915 * target-debug.h (target_debug_print_std_string): New macro.
9916 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9917 * windows-tdep.c (display_one_tib): Update.
9918 * tui/tui-stack.c (tui_make_status_line): Update.
9919 * top.c (print_inferior_quit_action): Update.
9920 * thread.c (thr_try_catch_cmd): Update.
9921 (add_thread_with_info): Update.
9922 (thread_target_id_str): Update.
9923 (thr_try_catch_cmd): Update.
9924 (thread_command): Update.
9925 (thread_find_command): Update.
9926 * record-btrace.c (record_btrace_target::info_record)
9927 (record_btrace_resume_thread, record_btrace_target::resume)
9928 (record_btrace_cancel_resume, record_btrace_step_thread)
9929 (record_btrace_target::wait, record_btrace_target::wait)
9930 (record_btrace_target::wait, record_btrace_target::stop): Update.
9931 * progspace.c (print_program_space): Update.
9932 * process-stratum-target.c
9933 (process_stratum_target::thread_address_space): Update.
9934 * linux-fork.c (linux_fork_mourn_inferior)
9935 (detach_checkpoint_command, info_checkpoints_command)
9936 (linux_fork_context): Update.
9937 (linux_fork_detach): Update.
9938 (class scoped_switch_fork_info): Update.
9939 (delete_checkpoint_command): Update.
9940 * infrun.c (follow_fork_inferior): Update.
9941 (follow_fork_inferior): Update.
9942 (proceed_after_vfork_done): Update.
9943 (handle_vfork_child_exec_or_exit): Update.
9944 (follow_exec): Update.
9945 (displaced_step_prepare_throw): Update.
9946 (displaced_step_restore): Update.
9947 (start_step_over): Update.
9948 (resume_1): Update.
9949 (clear_proceed_status_thread): Update.
9950 (proceed): Update.
9951 (print_target_wait_results): Update.
9952 (do_target_wait): Update.
9953 (context_switch): Update.
9954 (stop_all_threads): Update.
9955 (restart_threads): Update.
9956 (finish_step_over): Update.
9957 (handle_signal_stop): Update.
9958 (switch_back_to_stepped_thread): Update.
9959 (keep_going_pass_signal): Update.
9960 (print_exited_reason): Update.
9961 (normal_stop): Update.
9962 * inferior.c (inferior_pid_to_str): Change return type.
9963 (print_selected_inferior): Update.
9964 (add_inferior): Update.
9965 (detach_inferior): Update.
9966 * dummy-frame.c (fprint_dummy_frames): Update.
9967 * dcache.c (dcache_info_1): Update.
9968 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9969 (btrace_fetch, btrace_clear): Update.
9970 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9971 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9972 type.
9973 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9974 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9975 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9976 * gdbarch.c, gdbarch.h: Rebuild.
9977 * gdbarch.sh (core_pid_to_str): Change return type.
9978 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9979 return type.
9980 (windows_nat_target::pid_to_str): Change return type.
9981 (windows_delete_thread): Update.
9982 (windows_nat_target::attach): Update.
9983 (windows_nat_target::files_info): Update.
9984 * target-delegates.c: Rebuild.
9985 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9986 return type.
9987 (sol_thread_target::pid_to_str): Change return type.
9988 * remote.c (class remote_target) <pid_to_str>: Change return
9989 type.
9990 (remote_target::pid_to_str): Change return type.
9991 (extended_remote_target::attach, remote_target::remote_stop_ns)
9992 (remote_target::remote_notif_remove_queued_reply)
9993 (remote_target::push_stop_reply, remote_target::disable_btrace):
9994 Update.
9995 (extended_remote_target::attach): Update.
9996 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9997 type.
9998 (gdbsim_target::pid_to_str): Change return type.
9999 * ravenscar-thread.c (struct ravenscar_thread_target)
10000 <pid_to_str>: Change return type.
10001 (ravenscar_thread_target::pid_to_str): Change return type.
10002 * procfs.c (class procfs_target) <pid_to_str>: Change return
10003 type.
10004 (procfs_target::pid_to_str): Change return type.
10005 (procfs_target::attach): Update.
10006 (procfs_target::detach): Update.
10007 (procfs_target::fetch_registers): Update.
10008 (procfs_target::store_registers): Update.
10009 (procfs_target::wait): Update.
10010 (procfs_target::files_info): Update.
10011 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10012 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10013 return type.
10014 (nto_procfs_target::pid_to_str): Change return type.
10015 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10016 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10017 return type.
10018 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10019 (exit_lwp): Update.
10020 (attach_proc_task_lwp_callback, get_detach_signal)
10021 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10022 (linux_nat_target::resume, wait_lwp, stop_callback)
10023 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10024 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10025 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10026 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10027 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10028 type.
10029 (inf_ptrace_target::attach): Update.
10030 (inf_ptrace_target::files_info): Update.
10031 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10032 type.
10033 (go32_nat_target::pid_to_str): Change return type.
10034 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10035 (gnu_nat_target::wait): Update.
10036 (gnu_nat_target::wait): Update.
10037 (gnu_nat_target::resume): Update.
10038 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10039 (fbsd_nat_target::wait): Update.
10040 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10041 type.
10042 (darwin_nat_target::attach): Update.
10043 * corelow.c (class core_target) <pid_to_str>: Change return type.
10044 (core_target::pid_to_str): Change return type.
10045 * target.c (normal_pid_to_str): Change return type.
10046 (default_pid_to_str): Likewise.
10047 (target_pid_to_str): Change return type.
10048 (target_translate_tls_address): Update.
10049 (target_announce_detach): Update.
10050 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10051 return type.
10052 (bsd_uthread_target::pid_to_str): Change return type.
10053 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10054 type.
10055 (bsd_kvm_target::pid_to_str): Change return type.
10056 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10057 return type.
10058 (aix_thread_target::pid_to_str): Change return type.
10059 * target.h (struct target_ops) <pid_to_str>: Change return type.
10060 (target_pid_to_str, normal_pid_to_str): Likewise.
10061 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10062 type.
10063 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10064 type.
10065 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10066 return type.
10067 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10068 type.
10069 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10070 type.
10071 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10072 return type.
10073
b4be1b06
SM
100742019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10075
10076 * NEWS: Mention that the new default MI version is 3. Mention
10077 changes to the output of commands and events that deal with
10078 multi-location breakpoints.
10079 * breakpoint.c: Include "mi/mi-out.h".
10080 (print_one_breakpoint): Change output syntax if using MI version
10081 >= 3.
10082 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10083 New.
10084 (mi_multi_location_breakpoint_output_fixed): New.
10085 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10086 (mi_cmd_fix_multi_location_breakpoint_output): New.
10087 (mi_multi_location_breakpoint_output_fixed): New.
10088 * mi/mi-cmds.c (mi_cmds): Register command
10089 -fix-multi-location-breakpoint-output.
10090 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10091 interpreter "mi".
10092
8e5e5494
SM
100932019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10094
10095 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10096 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10097 instantiate mi_ui_out based on interpreter name.
10098 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10099 * mi/mi-main.c (mi_load_progress): Likewise.
10100
197df35e
JB
101012019-03-12 John Baldwin <jhb@FreeBSD.org>
10102
10103 * NEWS: Combine separate "New targets" sections for 8.3.
10104
8399425f
JB
101052019-03-12 John Baldwin <jhb@FreeBSD.org>
10106
10107 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10108 (ppcfbsd_init_abi): Install gdbarch
10109 "fetch_tls_load_module_address" and "get_thread_local_address"
10110 methods.
10111
b0f87ed0
JB
101122019-03-12 John Baldwin <jhb@FreeBSD.org>
10113
10114 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10115 (riscv_fbsd_init_abi): Install gdbarch
10116 "fetch_tls_load_module_address" and "get_thread_local_address"
10117 methods.
10118
ce25aa57
JB
101192019-03-12 John Baldwin <jhb@FreeBSD.org>
10120
10121 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10122 (i386fbsd_init_abi): Install gdbarch
10123 "fetch_tls_load_module_address" and "get_thread_local_address"
10124 methods.
10125
f5424cfa
JB
101262019-03-12 John Baldwin <jhb@FreeBSD.org>
10127
10128 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10129 (amd64fbsd_init_abi): Install gdbarch
10130 "fetch_tls_load_module_address" and "get_thread_local_address"
10131 methods.
10132
945f3901
JB
101332019-03-12 John Baldwin <jhb@FreeBSD.org>
10134
10135 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10136 (struct fbsd_pspace_data): New type.
10137 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10138 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10139 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10140 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10141 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10142
ef0bd204
JB
101432019-03-12 John Baldwin <jhb@FreeBSD.org>
10144
10145 * gdbtypes.c (lookup_struct_elt): New function.
10146 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10147 * gdbtypes.h (struct struct_elt): New type.
10148 (lookup_struct_elt): New prototype.
10149
36c53a02
JB
101502019-03-12 John Baldwin <jhb@FreeBSD.org>
10151
10152 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10153 remove disabled code block.
10154
6e056c81
JB
101552019-03-12 John Baldwin <jhb@FreeBSD.org>
10156
10157 * gdbarch.sh (get_thread_local_address): New method.
10158 * gdbarch.h, gdbarch.c: Regenerate.
10159 * target.c (target_translate_tls_address): Use
10160 gdbarch_get_thread_local_address if present instead of
10161 target::get_thread_local_address.
10162
cd250a18
JB
101632019-03-12 John Baldwin <jhb@FreeBSD.org>
10164
10165 * target.h (target::get_thread_local_address): Update comment.
10166
df22c1e5
JB
101672019-03-12 John Baldwin <jhb@FreeBSD.org>
10168
10169 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10170 objfile->separate_debug_objfile_backlink if not NULL.
10171
dd6876c9
JB
101722019-03-12 John Baldwin <jhb@FreeBSD.org>
10173
10174 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10175 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10176 (amd64bsd_store_inferior_registers): Likewise.
10177 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10178 Enable segment base registers.
10179 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10180 PT_GETFSBASE and PT_GETGSBASE.
10181 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10182 PT_SETGSBASE.
10183 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10184 segment base registers.
10185 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10186
1163a4b7
JB
101872019-03-12 John Baldwin <jhb@FreeBSD.org>
10188
10189 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10190 Update calls to i386_target_description to add 'segments'
10191 parameter.
10192 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10193 add segment base registers.
10194 * arch/i386.c (i386_create_target_description): Add 'segments'
10195 parameter to enable segment base registers.
10196 * arch/i386.h (i386_create_target_description): Likewise.
10197 * features/i386/32bit-segments.xml: New file.
10198 * features/i386/32bit-segments.c: Generate.
10199 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10200 call to i386_target_description to add 'segments' parameter.
10201 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10202 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10203 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10204 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10205 if feature is present.
10206 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10207 Add 'segments' parameter to call to i386_target_description.
10208 (i386_target_description): Add 'segments' parameter to enable
10209 segment base registers.
10210 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10211 to call to i386_target_description.
10212 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10213 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10214 Define I386_NUM_REGS.
10215 (i386_target_description): Add 'segments' parameter to enable
10216 segment base registers.
10217
3a350822
EZ
102182019-03-12 Eli Zaretskii <eliz@gnu.org>
10219
10220 PR/24325
10221 * source-cache.c: #undef open and close, to avoid unresolved
10222 externals during linking.
10223
ffdd69cf
TT
102242019-03-12 Tom Tromey <tromey@adacore.com>
10225
10226 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10227 const. Add initializers.
10228 (_initialize_remote): Don't initialize ptid globals.
10229
ec148c57
PA
102302019-03-12 Pedro Alves <palves@redhat.com>
10231
10232 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10233
32764270
PA
102342019-03-12 Pedro Alves <palves@redhat.com>
10235
10236 * cp-name-parser.y (main): Remove unused 'len' variable.
10237
17547186
TT
102382019-03-12 Tom Tromey <tromey@adacore.com>
10239
10240 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10241 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10242
d3a70e03
TT
102432019-03-12 Tom Tromey <tromey@adacore.com>
10244
10245 * linux-nat.c (iterate_over_lwps): Update.
10246 (stop_callback): Remove parameter.
10247 (stop_wait_callback, detach_callback, resume_set_callback)
10248 (select_singlestep_lwp_callback, set_ignore_sigint)
10249 (status_callback, resumed_callback, resume_clear_callback)
10250 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10251 data parameter.
10252 (linux_nat_target::detach, linux_nat_target::resume)
10253 (linux_stop_and_wait_all_lwps, select_event_lwp)
10254 (linux_nat_filter_event, linux_nat_wait_1)
10255 (linux_nat_target::kill, linux_nat_target::stop)
10256 (linux_nat_target::stop): Update.
10257 (linux_nat_resume_callback): Change type.
10258 (resume_stopped_resumed_lwps, count_events_callback)
10259 (select_event_lwp_callback): Likewise.
10260 (linux_stop_lwp, linux_nat_stop_lwp): Update.
10261 * arm-linux-nat.c (struct update_registers_data): Remove.
10262 (update_registers_callback): Change type.
10263 (arm_linux_insert_hw_breakpoint1): Update.
10264 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10265 parameter.
10266 (x86_linux_dr_set_addr): Update.
10267 (x86_linux_dr_set_control): Update.
10268 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10269 (iterate_over_lwps): Use gdb::function_view.
10270 * nat/aarch64-linux-hw-point.c (struct
10271 aarch64_dr_update_callback_param): Remove.
10272 (debug_reg_change_callback): Change type.
10273 (aarch64_notify_debug_reg_change): Update.
10274 * s390-linux-nat.c (s390_refresh_per_info): Update.
10275
82cb27ff
TT
102762019-03-11 Tom Tromey <tromey@adacore.com>
10277
10278 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10279 redundant assignment to "this_cu".
10280
568c0683
SM
102812019-03-08 Simon Marchi <simon.marchi@efficios.com>
10282
10283 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10284
f09ce22d
SM
102852019-03-08 Simon Marchi <simon.marchi@efficios.com>
10286
10287 * gdbtypes.c (rank_one_type_parm_set): New function extracted
10288 from...
10289 (rank_one_type): ... this.
10290
595f96a9
SM
102912019-03-08 Simon Marchi <simon.marchi@efficios.com>
10292
10293 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10294 from...
10295 (rank_one_type): ... this.
10296
2598a94b
SM
102972019-03-08 Simon Marchi <simon.marchi@efficios.com>
10298
10299 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10300 from...
10301 (rank_one_type): ... this.
10302
7f17b20d
SM
103032019-03-08 Simon Marchi <simon.marchi@efficios.com>
10304
10305 * gdbtypes.c (rank_one_type_parm_float): New function extracted
10306 from...
10307 (rank_one_type): ... this.
10308
2c509035
SM
103092019-03-08 Simon Marchi <simon.marchi@efficios.com>
10310
10311 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10312 from...
10313 (rank_one_type): ... this.
10314
0dd322dc
SM
103152019-03-08 Simon Marchi <simon.marchi@efficios.com>
10316
10317 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10318 from...
10319 (rank_one_type): ... this.
10320
41ea4728
SM
103212019-03-08 Simon Marchi <simon.marchi@efficios.com>
10322
10323 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10324 from...
10325 (rank_one_type): ... this.
10326
793cd1d2
SM
103272019-03-08 Simon Marchi <simon.marchi@efficios.com>
10328
10329 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10330 from...
10331 (rank_one_type): ... this.
10332
34910087
SM
103332019-03-08 Simon Marchi <simon.marchi@efficios.com>
10334
10335 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10336 from...
10337 (rank_one_type): ... this.
10338
f1f832d6
SM
103392019-03-08 Simon Marchi <simon.marchi@efficios.com>
10340
10341 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10342 from...
10343 (rank_one_type): ... this.
10344
b9f4512f
SM
103452019-03-08 Simon Marchi <simon.marchi@efficios.com>
10346
10347 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10348 from...
10349 (rank_one_type): ... this.
10350
9293fc63
SM
103512019-03-08 Simon Marchi <simon.marchi@efficios.com>
10352
10353 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10354 from...
10355 (rank_one_type): ... this.
10356
e3abbe7e
PW
103572019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10358
10359 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10360 inferior-events' shows the example events.
10361
e4adb939
EZ
103622019-03-08 Eli Zaretskii <eliz@gnu.org>
10363
10364 Support styling on native MS-Windows console
10365
10366 PR/24315
10367 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10368 on MS-Windows if $TERM is not defined.
10369
10370 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10371
10372 * posix-hdep.c (gdb_console_fputs):
10373 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10374 functions.
10375 * ui-file.h (gdb_console_fputs): Add prototype.
10376
10377 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10378 back to fputs only if the former returns zero.
10379
25629dfd
TT
103802019-03-07 Tom Tromey <tom@tromey.com>
10381
10382 * symmisc.c (print_symbol_bcache_statistics): Update.
10383 (print_objfile_statistics): Update.
10384 * symfile.c (allocate_symtab): Update.
10385 * stabsread.c: Don't include bcache.h.
10386 * psymtab.h (struct psymbol_bcache): Don't declare.
10387 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10388 (psymbol_bcache_init, psymbol_bcache_free)
10389 (psymbol_bcache_get_bcache): Don't declare.
10390 * psymtab.c (struct psymbol_bcache): Remove.
10391 (psymtab_storage::psymtab_storage): Update.
10392 (psymtab_storage::~psymtab_storage): Update.
10393 (psymbol_bcache_init, psymbol_bcache_free)
10394 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10395 (add_psymbol_to_bcache): Update.
10396 (allocate_psymtab): Update.
10397 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10398 macro_cache>: No longer pointers.
10399 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10400 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10401 * macrotab.c (macro_bcache): Update.
10402 * macroexp.c: Don't include bcache.h.
10403 * gdbtypes.c (check_types_worklist): Update.
10404 (types_deeply_equal): Remove TRY/CATCH. Update.
10405 * elfread.c (elf_symtab_read): Update.
10406 * dwarf2read.c: Don't include bcache.h.
10407 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10408 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10409 (print_bcache_statistics, bcache_memory_used): Don't declare.
10410 (struct bcache): Move from bcache.c. Add constructor, destructor,
10411 methods. Rename all data members.
10412 * bcache.c (struct bcache): Move to bcache.h.
10413 (bcache::expand_hash_table): Rename from expand_hash_table.
10414 (bcache): Remove.
10415 (bcache::insert): Rename from bcache_full.
10416 (bcache::compare): Rename from bcache_compare.
10417 (bcache_xmalloc): Remove.
10418 (bcache::~bcache): Rename from bcache_xfree.
10419 (bcache::print_statistics): Rename from print_bcache_statistics.
10420 (bcache::memory_used): Rename from bcache_memory_used.
10421
fe726667
PA
104222019-03-07 Pedro Alves <palves@redhat.com>
10423
10424 * infrun.c (normal_stop): Also check for
10425 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10426
7584bb30
AB
104272019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10428
10429 * f-lang.c (value_from_host_double): Moved to...
10430 * value.c (value_from_host_double): ...here.
10431 * value.h (value_from_host_double): Declare.
10432 * guile/scm-math.c (vlscm_convert_typed_number): Use
10433 value_from_host_double.
10434 (vlscm_convert_number): Likewise.
10435 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10436 * python/py-value.c (convert_value_from_python): Likewise.
10437
a7b1986e
TT
104382019-03-06 Tom Tromey <tom@tromey.com>
10439
10440 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10441
0ccf4211
TT
104422019-03-06 Tom Tromey <tom@tromey.com>
10443
10444 * utils.h (free_current_contents): Don't declare.
10445 * utils.c (free_current_contents): Remove.
10446
fe7b42e5
TT
104472019-03-06 Tom Tromey <tom@tromey.com>
10448
10449 * top.c (quit_force): Update.
10450 * main.c (captured_command_loop): Update.
10451 * common/new-op.c (operator new): Update.
10452 * common/common-exceptions.c (struct catcher)
10453 <save_cleanup_chain>: Remove member.
10454 (exceptions_state_mc_init): Update.
10455 (exception_try_scope_entry): Return nullptr.
10456 (exception_try_scope_exit, exception_rethrow)
10457 (throw_exception_sjlj, throw_exception_cxx): Update.
10458 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10459 (all_cleanups, do_cleanups, discard_cleanups)
10460 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10461 (restore_cleanups, restore_final_cleanups): Don't declare.
10462 (do_final_cleanups): Remove parameter.
10463 * common/cleanups.c (cleanup_chain, make_cleanup)
10464 (make_cleanup_dtor, all_cleanups, do_cleanups)
10465 (discard_my_cleanups, discard_cleanups)
10466 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10467 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10468 (null_cleanup): Remove.
10469 (do_final_cleanups): Remove parameter.
10470
c6321f19
TT
104712019-03-06 Tom Tromey <tom@tromey.com>
10472
10473 * remote.c (remote_target::remote_parse_stop_reply): Use
10474 unique_xmalloc_ptr.
10475
61b30099
TT
104762019-03-06 Tom Tromey <tom@tromey.com>
10477
10478 * stabsread.c (struct stabs_field_info): Rename from field_info.
10479 <list, fnlist>: Add initializers.
10480 <obstack>: New member.
10481 (read_member_functions, read_struct_fields, read_baseclasses):
10482 Allocate on obstack. Don't use cleanups.
10483 (read_one_struct_field, read_member_functions, read_struct_fields)
10484 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10485 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10486 (read_struct_type): Update.
10487
6cceac94
TT
104882019-03-06 Tom Tromey <tom@tromey.com>
10489
10490 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10491 * common/filestuff.h (make_cleanup_close): Don't declare.
10492 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10493 Remove.
10494
72412762
TT
104952019-03-06 Tom Tromey <tom@tromey.com>
10496
10497 * solib-aix.c: Use make_scope_exit.
10498
2b6ff1c0
TT
104992019-03-06 Tom Tromey <tom@tromey.com>
10500
10501 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10502 Use make_scope_exit.
10503
d01c5877
TT
105042019-03-06 Tom Tromey <tom@tromey.com>
10505
10506 * solib-svr4.c (disable_probes_interface): Remove parameter.
10507 (svr4_handle_solib_event): Use make_scope_exit.
10508
32603266
TT
105092019-03-06 Tom Tromey <tom@tromey.com>
10510
10511 * remote.c (struct stop_reply_deleter): Remove.
10512 (stop_reply_up): Update.
10513 (struct stop_reply): Derive from notif_event. Don't typedef.
10514 <regcache>: Now a std::vector.
10515 (stop_reply_xfree): Remove.
10516 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10517 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10518 (remote_target::discard_pending_stop_replies): Use delete.
10519 (remote_target::remote_parse_stop_reply): Update.
10520 (remote_target::process_stop_reply): Update.
10521 * remote-notif.h (struct notif_event): Add virtual destructor.
10522 Remove "dtr" member.
10523 (struct notif_client) <alloc_event>: Return a unique_ptr.
10524 (notif_event_xfree): Don't declare.
10525 (notif_event_up): New typedef.
10526 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10527 (notif_event_xfree, do_notif_event_xfree): Remove.
10528 (remote_notif_state_xfree): Update.
10529
9799571e
TT
105302019-03-06 Tom Tromey <tom@tromey.com>
10531
10532 * infrun.c (displaced_step_clear_cleanup): Now a
10533 forward_scope_exit type.
10534 (displaced_step_prepare_throw): Update.
10535 (displaced_step_fixup): Update.
10536
09e3c4ca
TT
105372019-03-06 Tom Tromey <tom@tromey.com>
10538
10539 * inferior.h (class inferior): Update comment.
10540 * gdbthread.h (class thread_info): Update comment.
10541
e2a03548
TT
105422019-03-06 Joel Brobecker <brobecker@adacore.com>
10543 Tom Tromey <tom@tromey.com>
10544
10545 * stabsread.h (struct stab_section_list): Remove.
10546 (coffstab_build_psymtabs): Update.
10547 * dbxread.c (symbuf_sections): Now a std::vector.
10548 (sect_idx): New global.
10549 (fill_symbuf): Update.
10550 (coffstab_build_psymtabs): Change type of stabsects parameter.
10551 Update.
10552 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10553 std::vector.
10554 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10555 (coff_locate_sections): Update.
10556 (coff_symfile_read): Remove cleanups. Update.
10557 (init_stringtab): Add storage parameter.
10558 (free_stringtab, free_stringtab_cleanup): Remove.
10559 (init_lineno): Add storage parameter.
10560 (free_linetab, free_linetab_cleanup): Remove.
10561
b7e60d85
PA
105622019-03-06 Pedro Alves <palves@redhat.com>
10563
10564 * linux-fork.c (fork_info::clobber_regs): Delete.
10565 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10566 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10567 comment. Adjust.
10568 (scoped_switch_fork_info::scoped_switch_fork_info)
10569 (checkpoint_command, linux_fork_context): Adjust
10570 fork_save_infrun_state calls.
10571
e52c971f
PA
105722019-03-06 Pedro Alves <palves@redhat.com>
10573
10574 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10575 (inf_has_multiple_threads): Return 'bool' and rewrite using
10576 inferior_info::threads().
10577
06974e6c
PA
105782019-03-06 Pedro Alves <palves@redhat.com>
10579
10580 * linux-fork.c: Include <list>.
10581 (fork_list): Now a std::list instance.
10582 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10583 (forks_exist_p, find_last_fork): Adjust.
10584 (new_fork): Delete.
10585 (one_fork_p): New.
10586 (add_fork): Adjust.
10587 (free_fork): Delete, folded into fork_info::~fork_info().
10588 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10589 Adjust.
10590 (init_fork_list): Delete.
10591 (linux_fork_killall, linux_fork_mourn_inferior)
10592 (linux_fork_detach, info_checkpoints_command): Adjust.
10593 (_initialize_linux_fork): No longer call init_fork_list.
10594
72f31aea
PA
105952019-03-06 Pedro Alves <palves@redhat.com>
10596
10597 * linux-fork.c (new_fork): New, split out of ...
10598 (add_fork): ... this. Return void. Move "first fork" special
10599 case from here, to ...
10600 (checkpoint_command): ... here.
10601 * linux-linux.h (add_fork): Return void.
10602
efbecbc1
AB
106032019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10604
10605 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10606
0841c79a
AB
106072019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10608 Chris January <chris.january@arm.com>
10609 David Lecomber <david.lecomber@arm.com>
10610
10611 * f-exp.y: New token, UNOP_INTRINSIC.
10612 (exp): New pattern using UNOP_INTRINSIC token.
10613 (f77_keywords): Add 'abs' keyword.
10614 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10615 (value_from_host_double): New function.
10616 (evaluate_subexp_f): Support UNOP_ABS.
10617
4a270568
AB
106182019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10619
10620 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10621 types.
10622
067630bd
AB
106232019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10624
10625 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10626 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10627 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10628
3be47f7a
AB
106292019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10630
10631 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10632
4d00f5d8
AB
106332019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10634 Chris January <chris.january@arm.com>
10635
10636 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10637 * f-exp.y: Define 'KIND' token.
10638 (exp): New pattern for KIND expressions.
10639 (ptype): Handle types with a kind extension.
10640 (direct_abs_decl): Extend to spot kind extensions.
10641 (f77_keywords): Add 'kind' to the list.
10642 (push_kind_type): New function.
10643 (convert_to_kind_type): New function.
10644 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10645 * parse.c (operator_length_standard): Likewise.
10646 * parser-defs.h (enum type_pieces): Add tp_kind.
10647 * std-operator.def: Add UNOP_KIND.
10648
e454224f
AB
106492019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10650
10651 * f-exp.y (f_parse): Set yydebug.
10652
9dad4a58
AB
106532019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10654
10655 * f-lang.c (evaluate_subexp_f): New function.
10656 (exp_descriptor_f): New global.
10657 (f_language_defn): Use exp_descriptor_f instead of
10658 exp_descriptor_standard.
10659
c8f91604
AB
106602019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10661
10662 * f-exp.y (struct token): Add comments.
10663 (dot_ops): Remove uppercase versions and the end marker.
10664 (f77_keywords): Likewise.
10665 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10666 entries in the dot_ops array are case insensitive, and use
10667 strncasecmp to compare strings. Also some whitespace cleanup in
10668 this area. Similar for the f77_keywords array, except entries in
10669 this list might be case sensitive.
10670
dd9f2c76
AB
106712019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10672
10673 * f-exp.y (struct f77_boolean_val): Add comments.
10674 (boolean_values): Remove uppercase versions, and end marker.
10675 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10676 and use strncasecmp to achieve case insensitivity. Additionally,
10677 perform whitespace cleanup around this code.
10678
67a3048c
TT
106792019-03-06 Tom Tromey <tromey@adacore.com>
10680
10681 * remote-sim.c (gdbsim_target_open): Use result of
10682 gdb_argv::release.
10683
aa3cfbda
RB
106842019-03-06 Richard Bunt <richard.bunt@arm.com>
10685 Dirk Schubert <dirk.schubert@arm.com>
10686 Chris January <chris.january@arm.com>
10687
10688 * eval.c (evaluate_subexp_standard): Call Fortran argument
10689 wrapping logic.
10690 * f-lang.c (struct value): A value which can be passed into a
10691 Fortran function call.
10692 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10693 where appropriate.
10694 (struct type): Value ready for a Fortran function call.
10695 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10696 is needed.
10697 * f-lang.h (fortran_argument_convert): Declaration.
10698 (fortran_preserve_arg_pointer): Declaration.
10699 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10700
ea38e5df
TT
107012019-03-05 Tom Tromey <tromey@adacore.com>
10702
10703 * python/py-prettyprint.c (print_string_repr): Remove #if.
10704 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10705
06b5b831
TT
107062019-03-05 Tom Tromey <tromey@adacore.com>
10707
10708 * target.c (the_dummy_target): Move later. Change type to
10709 "dummy_target".
10710 (initialize_targets): Don't initialize the_dummy_target.
10711
edbd9e45
TT
107122019-03-05 Tom Tromey <tromey@adacore.com>
10713
10714 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10715 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10716
c119e040
TT
107172019-03-05 Tom Tromey <tromey@adacore.com>
10718
10719 * windows-nat.c (windows_nat_target::attach)
10720 (windows_nat_target::detach): Don't call gdb_flush.
10721 * valprint.c (generic_val_print, val_print, val_print_string):
10722 Don't call gdb_flush.
10723 * utils.c (defaulted_query): Don't call gdb_flush.
10724 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10725 * target.c (target_announce_detach): Don't call gdb_flush.
10726 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10727 * remote.c (extended_remote_target::attach): Don't call
10728 gdb_flush.
10729 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10730 * printcmd.c (do_examine): Don't call gdb_flush.
10731 (info_display_command): Don't call gdb_flush.
10732 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10733 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10734 * memattr.c (info_mem_command): Don't call gdb_flush.
10735 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10736 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10737 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10738 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10739 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10740 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10741 (gnu_nat_target::detach): Don't call gdb_flush.
10742 * f-valprint.c (f_val_print): Don't call gdb_flush.
10743 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10744 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10745 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10746 gdb_flush.
10747 * c-valprint.c (c_val_print): Don't call gdb_flush.
10748 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10749
895dafa6
TT
107502019-03-05 Tom Tromey <tromey@adacore.com>
10751
10752 * varobj.c (update_dynamic_varobj_children): Update.
10753 (install_default_visualizer): Use reset, not release.
10754 * value.c (set_internalvar): Update.
10755 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10756 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10757 ATTRIBUTE_UNUSED_RESULT.
10758
88a774b9
TT
107592019-03-05 Tom Tromey <tromey@adacore.com>
10760
10761 * remote.c (class scoped_remote_fd) <release>: Add
10762 ATTRIBUTE_UNUSED_RESULT.
10763
4e4a8b93
TT
107642019-03-05 Tom Tromey <tromey@adacore.com>
10765
10766 * macroexp.c (struct macro_buffer) <release>: Add
10767 ATTRIBUTE_UNUSED_RESULT.
10768
083eef1f
TT
107692019-03-05 Tom Tromey <tromey@adacore.com>
10770
10771 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10772 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10773 ATTRIBUTE_UNUSED_RESULT.
10774
3cabd438
TT
107752019-03-05 Tom Tromey <tromey@adacore.com>
10776
10777 * common/scoped_fd.h (class scoped_fd) <release>: Add
10778 ATTRIBUTE_UNUSED_RESULT.
10779
41e3300a
TT
107802019-03-05 Tom Tromey <tromey@adacore.com>
10781
10782 * parser-defs.h (struct parser_state) <release>: Add
10783 ATTRIBUTE_UNUSED_RESULT.
10784
18cb7c9f
TT
107852019-03-05 Tom Tromey <tromey@adacore.com>
10786
10787 * utils.h (class gdb_argv) <release>: Add
10788 ATTRIBUTE_UNUSED_RESULT.
10789 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10790
41fa577f
EZ
107912019-03-02 Eli Zaretskii <eliz@gnu.org>
10792
a6a4b2c6
EZ
10793 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10794 for-loop range, to avoid compiler warnings.
10795
10796 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10797 avoid compiler warnings about unused variables.
10798
742a7df5
EZ
10799 * NEWS: Mention end of support for native debugging on MS-Windows
10800 before XP.
10801
41fa577f
EZ
10802 PR gdb/24292
10803 * common/netstuff.c:
10804 * gdbserver/gdbreplay.c
10805 * gdbserver/remote-utils.c:
10806 * ser-tcp.c:
10807 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10808 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10809 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10810 'getaddrinfo' and 'freeaddrinfo' were not available before
10811 Windows XP, and mingw.org's MinGW headers by default define
10812 _WIN32_WINNT to 0x500.
10813
827f438f
GB
108142019-03-01 Gary Benson <gbenson@redhat.com>
10815
10816 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10817
92137da0
RO
108182019-02-28 Brian Vandenberg <phantall@gmail.com>
10819 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10820
10821 PR gdb/8527
10822 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10823 set_sigint_trap, clear_sigint_trap.
10824
799efbe8
PW
108252019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10826
10827 * target.c (target_detach): Clear the regcache and the
10828 frame cache.
10829
8ed25214
PA
108302019-02-27 Pedro Alves <palves@redhat.com>
10831
10832 * utils.c (set_screen_size): When we cap the height/width sizes,
10833 tweak the corresponding command variable to show "unlimited":
10834
23031e31
SJ
108352019-02-27 Saagar Jha <saagar@saagarjha.com>
10836 Pedro Alves <palves@redhat.com>
10837
10838 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10839 before calling rl_set_screen_size.
10840
6c28e44a
TT
108412019-02-27 Tom Tromey <tromey@adacore.com>
10842
10843 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10844 define.
10845 * python/py-value.c: Remove Python 2.4 workaround.
10846 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10847 workaround.
10848 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10849 Python 2.4 workaround.
10850 * python/python-internal.h: Remove Python 2.4 comment.
10851 (Py_ssize_t): Don't define.
10852 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10853 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10854 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10855 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10856 * python/python.c (do_start_initialization): Remove Python 2.4
10857 workaround.
10858 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10859 (print_children): Remove Python 2.4 workaround.
10860 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10861 workaround.
10862 (CHARBUFFERPROC_NAME): Remove.
10863 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10864 Python 2.4 workaround.
10865
2c3fc25d 108662019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 10867
2c3fc25d
KB
10868 * NEWS: Note minimum Python version.
10869
6ca62222
KB
108702019-02-27 Kevin Buettner <kevinb@redhat.com>
10871
10872 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10873 code from these functions. Remove corresponding ifdefs. Use
10874 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10875 Remove gotos and target of gotos.
10876 (infpy_search_memory): Likewise.
10877
f4bc7d2c
AB
108782019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10879
10880 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10881 (hppa_gdbarch_init): Don't register deleted functions with
10882 gdbarch.
10883
9734a586
AB
108842019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10885
10886 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10887 (h8300_unwind_sp): Delete.
10888 (h8300_dummy_id): Delete.
10889 (h8300_gdbarch_init): Don't register deleted functions with
10890 gdbarch.
10891
68b867f3
AB
108922019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10893
10894 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10895 (ft32_unwind_pc): Delete.
10896 (ft32_unwind_sp): Delete.
10897 (ft32_gdbarch_init): Don't register deleted functions with
10898 gdbarch.
10899
2fbe7ad0
AB
109002019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10901
10902 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10903 (frv_unwind_pc): Delete.
10904 (frv_unwind_sp): Delete.
10905 (frv_gdbarch_init): Don't register deleted functions with
10906 gdbarch.
10907
76055cbe
AB
109082019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10909
10910 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10911 (riscv_unwind_pc): Delete.
10912 (riscv_unwind_sp): Delete.
10913 (riscv_gdbarch_init): Don't register deleted functions with
10914 gdbarch.
10915
4133e5a1
AB
109162019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10917
10918 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10919 (csky_unwind_pc): Delete.
10920 (csky_unwind_sp): Delete.
10921 (csky_gdbarch_init): Don't register deleted functions with
10922 gdbarch.
10923
8010f576
AB
109242019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10925
10926 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10927 (cris_unwind_pc): Delete.
10928 (cris_unwind_sp): Delete.
10929 (cris_gdbarch_init): Don't register deleted functions with
10930 gdbarch.
10931
b56bf084
AB
109322019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10933
10934 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10935 (bfin_unwind_pc): Delete.
10936 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10937
a19a650f
AB
109382019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10939
10940 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10941 (arm_unwind_pc): Delete.
10942 (arm_unwind_sp): Delete.
10943 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10944
f8278c3c
AB
109452019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10946
10947 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10948 (arc_unwind_pc): Delete.
10949 (arc_unwind_sp): Delete.
10950 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10951
480e46cf
AB
109522019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10953
10954 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10955 (alpha_unwind_pc): Delete.
10956 (alpha_gdbarch_init): Don't register deleted functions with
10957 gdbarch.
10958
7a995095
AB
109592019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10960
10961 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10962 (aarch64_unwind_pc): Delete.
10963 (aarch64_unwind_sp): Delete.
10964 (aarch64_gdbarch_init): Don't register deleted functions with
10965 gdbarch.
10966
bf9a735e
AB
109672019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10968
10969 * gdbtypes.c (type_align): Don't consider static members when
10970 computing structure alignment.
10971
5561fc30
AB
109722019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10973
10974 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10975 return 0 for other types.
10976 * arch-utils.c (default_type_align): Always return 0.
10977 * gdbarch.h: Regenerate.
10978 * gdbarch.sh (type_align): Extend comment.
10979 * gdbtypes.c (type_align): Add additional comments, always call
10980 gdbarch_type_align before applying the default rules.
10981 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10982 generic code will then apply a suitable default.
10983 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10984 types, return 0 for other types.
10985
9335e75a
JB
109862019-02-27 Joel Brobecker <brobecker@adacore.com>
10987
10988 * NEWS: Create a new section for the next release branch.
10989 Rename the section of the current branch, now that it has
10990 been cut.
10991
3d34d8de
JB
109922019-02-27 Joel Brobecker <brobecker@adacore.com>
10993
10994 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10995 * version.in: Bump version to 8.3.50.DATE-git.
10996
143420fb
SM
109972019-02-26 Simon Marchi <simon.marchi@efficios.com>
10998
10999 * aix-thread.c (ptid_cmp): Remove unused variable.
11000 (get_signaled_thread): Likewise.
11001 (store_regs_user_thread): Likewise.
11002 (store_regs_kernel_thread): Likewise.
11003 (fetch_regs_kernel_thread): Remove shadowed variable.
11004
172fb711
AB
110052019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11006
11007 * features/riscv/32bit-cpu.xml: Add register numbers.
11008 * features/riscv/32bit-fpu.c: Regenerate.
11009 * features/riscv/32bit-fpu.xml: Add register numbers.
11010 * features/riscv/64bit-cpu.xml: Add register numbers.
11011 * features/riscv/64bit-fpu.c: Regenerate.
11012 * features/riscv/64bit-fpu.xml: Add register numbers.
11013
26c89782
KB
110142019-02-26 Kevin Buettner <kevinb@redhat.com>
11015
af54ade9 11016 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
11017 * python/py-value.c (convert_buffer_and_type_to_value): New
11018 function.
11019 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11020 Add support for handling an optional second argument. Call
11021 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
11022 * python/python-internal.h (Py_buffer_deleter): New struct.
11023 (Py_buffer_up): New typedef.
11024
0f58c9e8
JB
110252019-02-25 John Baldwin <jhb@FreeBSD.org>
11026
11027 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11028 instead of releasing ownership.
11029
0a0f4c01
JR
110302019-02-25 Jordan Rupprecht <rupprecht@google.com>
11031
11032 * dwarf2read.c (open_and_init_dwp_file): Call
11033 elf_numsections instead of bfd_count_sections to initialize
11034 dwp_file->num_sections.
11035
cd5a152c
TT
110362019-02-25 Tom Tromey <tromey@adacore.com>
11037
11038 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11039
8a6a8513
SDJ
110402019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11041
11042 * gcore.in: Add '--readnever' option when invoking GDB.
11043
04dcda9c
SM
110442019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11045
11046 * MAINTAINERS: Update my email address.
11047
07bc701d
SM
110482019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11049
11050 * build-id.c (build_id_to_debug_bfd_1): New function.
11051 (build_id_to_debug_bfd): Look for separate debug file in
11052 sysroot.
11053
c6f4a5d0
AB
110542019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11055
11056 * gdbarch.sh: Update the copyright year range that is placed into
11057 generated files.
11058
9600246d
KS
110592019-02-22 Keith Seitz <keiths@redhat.com>
11060
11061 PR symtab/23853
11062 * linespec.c (create_sals_line_offset): Search for the default
11063 symtab's filename instead of its fullname.
11064
7557a514
AH
110652019-02-21 Alan Hayward <alan.hayward@arm.com>
11066
11067 * NEWS: Update style defaults.
11068
ee2bcb0c
AH
110692019-02-21 Alan Hayward <alan.hayward@arm.com>
11070
11071 * main.c (captured_main_1): Disable styling in batch mode.
11072
0c95f9ed
TT
110732019-02-20 Tom Tromey <tom@tromey.com>
11074
11075 * symtab.c (symtab_symbol_info): Fix typos.
11076
c763b894
TT
110772019-02-20 Tom Tromey <tromey@adacore.com>
11078
11079 * findcmd.c (_initialize_mem_search): Use upper case for
11080 metasyntactic variables.
11081
0ef8a082
AH
110822019-02-20 Alan Hayward <alan.hayward@arm.com>
11083
11084 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11085 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11086
6caa91b6
SM
110872019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11088
11089 * top.h (source_file_name): Change to std::string.
11090 * top.c (source_file_name): Likewise.
11091 (command_line_input): Adjust.
11092 * cli/cli-script.c (script_from_file): Adjust.
11093
98814c6c
TT
110942019-02-19 Tom Tromey <tromey@adacore.com>
11095
11096 * ravenscar-thread.c
11097 (ravenscar_thread_target::update_thread_list): Don't call
11098 ada_build_task_list.
11099 * ada-lang.h (ada_build_task_list): Don't declare.
11100 * ada-tasks.c (struct ada_tasks_inferior_data)
11101 <task_list_valid_p>: Now bool.
11102 (read_known_tasks, ada_task_list_changed)
11103 (ada_tasks_invalidate_inferior_data): Update.
11104 (read_known_tasks_array): Return bool.
11105 (read_known_tasks_list): Likewise.
11106 (read_known_tasks): Return void.
11107 (ada_build_task_list): Now static.
11108
70cd633e
AB
111092019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11110
11111 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11112 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11113
040b3e95
PW
111142019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11115
11116 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11117 variant for ada_tasks_pspace_data_handle and
11118 ada_tasks_inferior_data_handle.
11119 (ada_tasks_pspace_data_cleanup): New function.
11120 (ada_tasks_inferior_data_cleanup): New function.
11121
9409233b
TT
111222019-02-17 Tom Tromey <tom@tromey.com>
11123
11124 * macrotab.h (macro_source_fullname): Return a std::string.
11125 * macrotab.c (macro_include, check_for_redefinition)
11126 (macro_undef, macro_lookup_definition, foreach_macro)
11127 (foreach_macro_in_scope): Update.
11128 (macro_source_fullname): Return a std::string.
11129 * macrocmd.c (show_pp_source_pos): Update.
11130
6506371f
TT
111312019-02-17 Tom Tromey <tom@tromey.com>
11132
11133 * macrocmd.c (show_pp_source_pos): Style the file names.
11134
0c820d67
TT
111352019-02-17 Tom Tromey <tom@tromey.com>
11136
11137 PR tui/24197:
11138 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11139
a0087920
TT
111402019-02-17 Tom Tromey <tom@tromey.com>
11141
11142 * ada-lang.c (user_select_syms): Use filtered printing.
11143 * utils.c (wrap_style): New global.
11144 (desired_style): Remove.
11145 (emit_style_escape): Add stream parameter.
11146 (set_output_style, reset_terminal_style, prompt_for_continue):
11147 Update.
11148 (flush_wrap_buffer): Only flush gdb_stdout.
11149 (wrap_here): Set wrap_style.
11150 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11151 treat escape sequences as a character. Change when wrap buffer is
11152 flushed.
11153 (fputs_styled): Do not set the output style when the default is
11154 requested.
11155 * ui-style.h (struct ui_file_style) <is_default>: New method.
11156 * source.c (print_source_lines_base): Emit escape sequences in one
11157 piece.
11158
75ba10dc
JB
111592019-02-17 Joel Brobecker <brobecker@adacore.com>
11160
11161 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11162 integers and enumeration types.
11163
a2cd4f14
JB
111642019-02-17 Joel Brobecker <brobecker@adacore.com>
11165
11166 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11167 instead of lookup_symbol_in_language
11168 (do_exact_match): New function.
11169 (ada_get_symbol_name_matcher): Return do_exact_match when
11170 doing a verbatim match.
11171
485b851b
TT
111722019-02-15 Tom Tromey <tromey@adacore.com>
11173
11174 * ravenscar-thread.c (ravenscar_thread_target::resume)
11175 (ravenscar_thread_target::wait): Special case wildcard requests.
11176
0b790b1e
TT
111772019-02-15 Tom Tromey <tromey@adacore.com>
11178
11179 * ravenscar-thread.c (base_ptid): Remove.
11180 (struct ravenscar_thread_target) <close>: New method.
11181 <m_base_ptid>: New member.
11182 <update_inferior_ptid, active_task, task_is_currently_active,
11183 runtime_initialized>: Declare methods.
11184 <ravenscar_thread_target>: Add constructor.
11185 (ravenscar_thread_target::task_is_currently_active)
11186 (ravenscar_thread_target::update_inferior_ptid)
11187 (ravenscar_runtime_initialized): Rename. Now methods.
11188 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11189 (ravenscar_thread_target::update_thread_list): Update.
11190 (ravenscar_thread_target::active_task): Now method.
11191 (ravenscar_thread_target::store_registers)
11192 (ravenscar_thread_target::prepare_to_store)
11193 (ravenscar_thread_target::prepare_to_store)
11194 (ravenscar_thread_target::mourn_inferior): Update.
11195 (ravenscar_inferior_created): Use "new" to create target.
11196 (ravenscar_thread_target::get_ada_task_ptid): Update.
11197 (_initialize_ravenscar): Don't initialize base_ptid.
11198 (ravenscar_ops): Remove global.
11199
dea57a62
TT
112002019-02-15 Tom Tromey <tromey@adacore.com>
11201
11202 * target.h (push_target): Declare new overload.
11203 * target.c (push_target): New overload, taking an rvalue reference.
11204 * remote.c (remote_target::open_1): Use push_target overload.
11205 * corelow.c (core_target_open): Use push_target overload.
11206
989f3c58
TT
112072019-02-15 Tom Tromey <tromey@adacore.com>
11208
11209 * ravenscar-thread.c (is_ravenscar_task)
11210 (ravenscar_task_is_currently_active): Return bool.
11211 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11212 (_initialize_ravenscar): Remove "(void)".
11213 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11214 Return bool.
11215
6cbcc006
TT
112162019-02-15 Tom Tromey <tromey@adacore.com>
11217
11218 * ravenscar-thread.c (ravenscar_runtime_initializer)
11219 (has_ravenscar_runtime, get_running_thread_id)
11220 (ravenscar_thread_target::resume): Fix indentation.
11221
7657f14d
TT
112222019-02-15 Tom Tromey <tromey@adacore.com>
11223
11224 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11225 from ravenscar_arch_ops.
11226 (sparc_ravenscar_ops::fetch_registers)
11227 (sparc_ravenscar_ops::store_registers): Now methods.
11228 (sparc_ravenscar_prepare_to_store): Remove.
11229 (sparc_ravenscar_ops): Redefine.
11230 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11231 methods and destructor. Remove members.
11232 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11233 (ravenscar_thread_target::store_registers)
11234 (ravenscar_thread_target::prepare_to_store): Update.
11235 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11236 Remove.
11237 (struct ppc_ravenscar_powerpc_ops): Derive from
11238 ravenscar_arch_ops.
11239 (ppc_ravenscar_powerpc_ops::fetch_registers)
11240 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11241 (ppc_ravenscar_powerpc_ops): Redefine.
11242 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11243 (ppc_ravenscar_e500_ops::fetch_registers)
11244 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11245 (ppc_ravenscar_e500_ops): Redefine.
11246 * aarch64-ravenscar-thread.c
11247 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11248 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11249 (aarch64_ravenscar_fetch_registers)
11250 (aarch64_ravenscar_store_registers): Now methods.
11251 (aarch64_ravenscar_ops): Redefine.
11252
5b6ea500
TT
112532019-02-15 Tom Tromey <tromey@adacore.com>
11254
11255 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11256 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11257 (ravenscar_thread_target::stopped_by_watchpoint)
11258 (ravenscar_thread_target::stopped_data_address)
11259 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11260
e397fd39
TT
112612019-02-15 Tom Tromey <tromey@adacore.com>
11262
11263 * ravenscar-thread.c: Fix some typos.
11264
cc12f4a8
TT
112652019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11266 Tom Tromey <tromey@adacore.com>
11267
11268 * ada-lang.c (ada_exception_sal): Change addr_string to a
11269 std::string.
11270 (create_ada_exception_catchpoint): Update.
11271
5f486660
TT
112722019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11273 Tom Tromey <tromey@adacore.com>
11274
11275 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11276 (bp_location_ops): Remove.
11277 (base_breakpoint_allocate_location): Update.
11278 (free_bp_location): Update.
11279 * ada-lang.c (class ada_catchpoint_location)
11280 <ada_catchpoint_location>: Remove ops parameter.
11281 (ada_catchpoint_location_dtor): Remove.
11282 (ada_catchpoint_location_ops): Remove.
11283 (allocate_location_exception): Update.
11284 * breakpoint.h (struct bp_location_ops): Remove.
11285 (class bp_location) <bp_location>: Remove bp_location_ops
11286 parameter.
11287 <~bp_location>: Add destructor.
11288 <ops>: Remove.
11289
b671c7fb
TS
112902019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11291 Pedro Alves <palves@redhat.com>
11292
11293 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11294 'PATH_MAX'.
11295
8071c5ce
DM
112962019-02-14 David Michael <fedora.dm0@gmail.com>
11297 Samuel Thibault <samuel.thibault@gnu.org>
11298 Thomas Schwinge <thomas@codesourcery.com>
11299
11300 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11301 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11302
b1041ae0
TS
113032019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11304
924514e1
TS
11305 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11306 (check_empty): Use "const char *".
11307
c29ee8d4
TS
11308 * gnu-nat.c (gnu_nat_target::detach): Instead of
11309 'detach_inferior (pid)' call
11310 'detach_inferior (find_inferior_pid (pid))'.
11311
6c6ef69f
TS
11312 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11313 'nat/fork-inferior.o'.
11314 * gnu-nat.c: #include "nat/fork-inferior.h".
11315
2d0a338c
TS
11316 * gnu-nat.c (gnu_nat_target::detach): Instead of
11317 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11318 * gnu-nat.h: #include "inf-child.h".
11319 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11320 'i386_gnu_nat_target::fetch_registers'.
11321 (gnu_store_registers): Rename/move to
11322 'i386_gnu_nat_target::store_registers'.
11323
cabb5f06
TS
11324 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11325 * gnu-nat.h (mach_thread_info): New function.
11326 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11327
b1041ae0
TS
11328 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11329
2988d01e
KF
113302019-02-14 Frederic Konrad <konrad@adacore.com>
11331
11332 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11333
c559d709
JB
113342019-02-14 Joel Brobecker <brobecker@adacore.com>
11335
11336 * windows-nat.c (windows_add_thread): Add new parameter
11337 "main_thread_p" with default value set to false. Update
11338 function documentation as well as all callers.
11339 (windows_delete_thread): Likewise.
11340 (fake_create_process): Update call to windows_add_thread.
11341 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11342 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11343 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11344 call to windows_delete_thread.
11345
007024cc
SM
113462019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11347
11348 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11349
f62318e9
JB
113502019-02-12 John Baldwin <jhb@FreeBSD.org>
11351
11352 * symfile.c (find_separate_debug_file): Use canonical path of
11353 sysroot with child_path instead of gdb_sysroot if it is valid.
11354
cd4b7848
JB
113552019-02-12 John Baldwin <jhb@FreeBSD.org>
11356
11357 * symfile.c (find_separate_debug_file): Use child_path to
11358 determine if an object file is under a sysroot.
11359
efac4bfe
JB
113602019-02-12 John Baldwin <jhb@FreeBSD.org>
11361
11362 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11363 unittests/child-path-selftests.c.
11364 * common/pathstuff.c (child_path): New function.
11365 * common/pathstuff.h (child_path): New prototype.
11366 * unittests/child-path-selftests.c: New file.
11367
402d2bfe
JB
113682019-02-12 John Baldwin <jhb@FreeBSD.org>
11369
11370 * symfile.c (find_separate_debug_file): Look for separate debug
11371 files in debug directories under the sysroot.
11372
1ed9f74e
PW
113732019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11374
11375 * symtab.h (struct minimal_symbol data_p): New const method.
11376 (struct minimal_symbol text_p): Likewise.
11377 * symtab.c (output_source_filename): Use file name style
11378 to print file name.
11379 (print_symbol_info): Likewise.
11380 (print_msymbol_info): Use address style to print addresses.
11381 Use function name style to print executable text symbols.
11382 (expand_symtab_containing_pc): Use data_p.
11383 (find_pc_sect_compunit_symtab): Likewise.
11384
2636d81d
PW
113852019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11386
11387 * breakpoint.c (describe_other_breakpoints): Use address style
11388 to print addresses.
11389 (say_where): Likewise.
11390
ac8c53cc
PW
113912019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11392
11393 * ada-typeprint.c (print_func_type): Print function name
11394 style to print function name.
11395 * c-typeprint.c (c_print_type_1): Likewise.
11396
ea638c43
AH
113972019-02-11 Alan Hayward <alan.hayward@arm.com>
11398
11399 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11400 for execve.
11401
ab759ca8
PW
114022019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11403
11404 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11405 type_stack.
11406
aff29d1c
JB
114072019-02-10 Joel Brobecker <brobecker@adacore.com>
11408
11409 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11410 TYPE_CODE_REF types.
11411
617126bc
JW
114122019-02-08 Jim Wilson <jimw@sifive.com>
11413
11414 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11415 (riscv_linux_fregset): New.
11416 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11417
46e3ed7f
TT
114182019-02-07 Tom Tromey <tom@tromey.com>
11419
11420 * thread.c (thread_cancel_execution_command): Update.
11421 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11422 methods.
11423 (struct thread_fsm_ops): Remove.
11424 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11425 (thread_fsm_should_stop, thread_fsm_return_value)
11426 (thread_fsm_set_finished, thread_fsm_finished_p)
11427 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11428 Don't declare.
11429 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11430 * infrun.c (clear_proceed_status_thread)
11431 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11432 (print_stop_event): Update.
11433 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11434 Add constructor.
11435 (step_command_fsm_ops): Remove.
11436 (new_step_command_fsm): Remove.
11437 (step_1): Update.
11438 (step_command_fsm::should_stop): Rename from
11439 step_command_fsm_should_stop.
11440 (step_command_fsm::clean_up): Rename from
11441 step_command_fsm_clean_up.
11442 (step_command_fsm::do_async_reply_reason): Rename from
11443 step_command_fsm_async_reply_reason.
11444 (struct until_next_fsm): Inherit from thread_fsm. Add
11445 constructor.
11446 (until_next_fsm_ops): Remove.
11447 (new_until_next_fsm): Remove.
11448 (until_next_fsm::should_stop): Rename from
11449 until_next_fsm_should_stop.
11450 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11451 (until_next_fsm::do_async_reply_reason): Rename from
11452 until_next_fsm_async_reply_reason.
11453 (struct finish_command_fsm): Inherit from thread_fsm. Add
11454 constructor. Change type of breakpoint.
11455 (finish_command_fsm_ops): Remove.
11456 (new_finish_command_fsm): Remove.
11457 (finish_command_fsm::should_stop): Rename from
11458 finish_command_fsm_should_stop.
11459 (finish_command_fsm::clean_up): Rename from
11460 finish_command_fsm_clean_up.
11461 (finish_command_fsm::return_value): Rename from
11462 finish_command_fsm_return_value.
11463 (finish_command_fsm::do_async_reply_reason): Rename from
11464 finish_command_fsm_async_reply_reason.
11465 (finish_command): Update.
11466 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11467 Add constructor.
11468 (call_thread_fsm_ops): Remove.
11469 (call_thread_fsm::call_thread_fsm): Rename from
11470 new_call_thread_fsm.
11471 (call_thread_fsm::should_stop): Rename from
11472 call_thread_fsm_should_stop.
11473 (call_thread_fsm::should_notify_stop): Rename from
11474 call_thread_fsm_should_notify_stop.
11475 (run_inferior_call, call_function_by_hand_dummy): Update.
11476 * cli/cli-interp.c (should_print_stop_to_console): Update.
11477 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11478 Add constructor. Change type of location_breakpoint,
11479 caller_breakpoint.
11480 (until_break_fsm_ops): Remove.
11481 (new_until_break_fsm): Remove.
11482 (until_break_fsm::should_stop): Rename from
11483 until_break_fsm_should_stop.
11484 (until_break_fsm::clean_up): Rename from
11485 until_break_fsm_clean_up.
11486 (until_break_fsm::do_async_reply_reason): Rename from
11487 until_break_fsm_async_reply_reason.
11488 (until_break_command): Update.
11489 * thread-fsm.c: Remove.
11490 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11491
1a5c2598
TT
114922019-02-07 Tom Tromey <tom@tromey.com>
11493
11494 * yy-remap.h: Add include guard.
11495 * xtensa-tdep.h: Add include guard.
11496 * xcoffread.h: Rename include guard.
11497 * varobj-iter.h: Add include guard.
11498 * tui/tui.h: Rename include guard.
11499 * tui/tui-winsource.h: Rename include guard.
11500 * tui/tui-wingeneral.h: Rename include guard.
11501 * tui/tui-windata.h: Rename include guard.
11502 * tui/tui-win.h: Rename include guard.
11503 * tui/tui-stack.h: Rename include guard.
11504 * tui/tui-source.h: Rename include guard.
11505 * tui/tui-regs.h: Rename include guard.
11506 * tui/tui-out.h: Rename include guard.
11507 * tui/tui-layout.h: Rename include guard.
11508 * tui/tui-io.h: Rename include guard.
11509 * tui/tui-hooks.h: Rename include guard.
11510 * tui/tui-file.h: Rename include guard.
11511 * tui/tui-disasm.h: Rename include guard.
11512 * tui/tui-data.h: Rename include guard.
11513 * tui/tui-command.h: Rename include guard.
11514 * tic6x-tdep.h: Add include guard.
11515 * target/waitstatus.h: Rename include guard.
11516 * target/wait.h: Rename include guard.
11517 * target/target.h: Rename include guard.
11518 * target/resume.h: Rename include guard.
11519 * target-float.h: Rename include guard.
11520 * stabsread.h: Add include guard.
11521 * rs6000-tdep.h: Add include guard.
11522 * riscv-fbsd-tdep.h: Add include guard.
11523 * regformats/regdef.h: Rename include guard.
11524 * record.h: Rename include guard.
11525 * python/python.h: Rename include guard.
11526 * python/python-internal.h: Rename include guard.
11527 * python/py-stopevent.h: Rename include guard.
11528 * python/py-ref.h: Rename include guard.
11529 * python/py-record.h: Rename include guard.
11530 * python/py-record-full.h: Rename include guard.
11531 * python/py-record-btrace.h: Rename include guard.
11532 * python/py-instruction.h: Rename include guard.
11533 * python/py-events.h: Rename include guard.
11534 * python/py-event.h: Rename include guard.
11535 * procfs.h: Add include guard.
11536 * proc-utils.h: Add include guard.
11537 * p-lang.h: Add include guard.
11538 * or1k-tdep.h: Rename include guard.
11539 * observable.h: Rename include guard.
11540 * nto-tdep.h: Rename include guard.
11541 * nat/x86-linux.h: Rename include guard.
11542 * nat/x86-linux-dregs.h: Rename include guard.
11543 * nat/x86-gcc-cpuid.h: Add include guard.
11544 * nat/x86-dregs.h: Rename include guard.
11545 * nat/x86-cpuid.h: Rename include guard.
11546 * nat/ppc-linux.h: Rename include guard.
11547 * nat/mips-linux-watch.h: Rename include guard.
11548 * nat/linux-waitpid.h: Rename include guard.
11549 * nat/linux-ptrace.h: Rename include guard.
11550 * nat/linux-procfs.h: Rename include guard.
11551 * nat/linux-osdata.h: Rename include guard.
11552 * nat/linux-nat.h: Rename include guard.
11553 * nat/linux-namespaces.h: Rename include guard.
11554 * nat/linux-btrace.h: Rename include guard.
11555 * nat/glibc_thread_db.h: Rename include guard.
11556 * nat/gdb_thread_db.h: Rename include guard.
11557 * nat/gdb_ptrace.h: Rename include guard.
11558 * nat/fork-inferior.h: Rename include guard.
11559 * nat/amd64-linux-siginfo.h: Rename include guard.
11560 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11561 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11562 * nat/aarch64-linux.h: Rename include guard.
11563 * nat/aarch64-linux-hw-point.h: Rename include guard.
11564 * mn10300-tdep.h: Add include guard.
11565 * mips-linux-tdep.h: Add include guard.
11566 * mi/mi-parse.h: Rename include guard.
11567 * mi/mi-out.h: Rename include guard.
11568 * mi/mi-main.h: Rename include guard.
11569 * mi/mi-interp.h: Rename include guard.
11570 * mi/mi-getopt.h: Rename include guard.
11571 * mi/mi-console.h: Rename include guard.
11572 * mi/mi-common.h: Rename include guard.
11573 * mi/mi-cmds.h: Rename include guard.
11574 * mi/mi-cmd-break.h: Rename include guard.
11575 * m2-lang.h: Add include guard.
11576 * location.h: Rename include guard.
11577 * linux-record.h: Rename include guard.
11578 * linux-nat.h: Add include guard.
11579 * linux-fork.h: Add include guard.
11580 * i386-darwin-tdep.h: Rename include guard.
11581 * hppa-linux-offsets.h: Add include guard.
11582 * guile/guile.h: Rename include guard.
11583 * guile/guile-internal.h: Rename include guard.
11584 * gnu-nat.h: Rename include guard.
11585 * gdb-stabs.h: Rename include guard.
11586 * frv-tdep.h: Add include guard.
11587 * f-lang.h: Add include guard.
11588 * event-loop.h: Add include guard.
11589 * darwin-nat.h: Rename include guard.
11590 * cp-abi.h: Rename include guard.
11591 * config/sparc/nm-sol2.h: Rename include guard.
11592 * config/nm-nto.h: Rename include guard.
11593 * config/nm-linux.h: Add include guard.
11594 * config/i386/nm-i386gnu.h: Rename include guard.
11595 * config/djgpp/nl_types.h: Rename include guard.
11596 * config/djgpp/langinfo.h: Rename include guard.
11597 * compile/gcc-cp-plugin.h: Add include guard.
11598 * compile/gcc-c-plugin.h: Add include guard.
11599 * compile/compile.h: Rename include guard.
11600 * compile/compile-object-run.h: Rename include guard.
11601 * compile/compile-object-load.h: Rename include guard.
11602 * compile/compile-internal.h: Rename include guard.
11603 * compile/compile-cplus.h: Rename include guard.
11604 * compile/compile-c.h: Rename include guard.
11605 * common/xml-utils.h: Rename include guard.
11606 * common/x86-xstate.h: Rename include guard.
11607 * common/version.h: Rename include guard.
11608 * common/vec.h: Rename include guard.
11609 * common/tdesc.h: Rename include guard.
11610 * common/selftest.h: Rename include guard.
11611 * common/scoped_restore.h: Rename include guard.
11612 * common/scoped_mmap.h: Rename include guard.
11613 * common/scoped_fd.h: Rename include guard.
11614 * common/safe-iterator.h: Rename include guard.
11615 * common/run-time-clock.h: Rename include guard.
11616 * common/refcounted-object.h: Rename include guard.
11617 * common/queue.h: Rename include guard.
11618 * common/ptid.h: Rename include guard.
11619 * common/print-utils.h: Rename include guard.
11620 * common/preprocessor.h: Rename include guard.
11621 * common/pathstuff.h: Rename include guard.
11622 * common/observable.h: Rename include guard.
11623 * common/netstuff.h: Rename include guard.
11624 * common/job-control.h: Rename include guard.
11625 * common/host-defs.h: Rename include guard.
11626 * common/gdb_wait.h: Rename include guard.
11627 * common/gdb_vecs.h: Rename include guard.
11628 * common/gdb_unlinker.h: Rename include guard.
11629 * common/gdb_unique_ptr.h: Rename include guard.
11630 * common/gdb_tilde_expand.h: Rename include guard.
11631 * common/gdb_sys_time.h: Rename include guard.
11632 * common/gdb_string_view.h: Rename include guard.
11633 * common/gdb_splay_tree.h: Rename include guard.
11634 * common/gdb_setjmp.h: Rename include guard.
11635 * common/gdb_ref_ptr.h: Rename include guard.
11636 * common/gdb_optional.h: Rename include guard.
11637 * common/gdb_locale.h: Rename include guard.
11638 * common/gdb_assert.h: Rename include guard.
11639 * common/filtered-iterator.h: Rename include guard.
11640 * common/filestuff.h: Rename include guard.
11641 * common/fileio.h: Rename include guard.
11642 * common/environ.h: Rename include guard.
11643 * common/common-utils.h: Rename include guard.
11644 * common/common-types.h: Rename include guard.
11645 * common/common-regcache.h: Rename include guard.
11646 * common/common-inferior.h: Rename include guard.
11647 * common/common-gdbthread.h: Rename include guard.
11648 * common/common-exceptions.h: Rename include guard.
11649 * common/common-defs.h: Rename include guard.
11650 * common/common-debug.h: Rename include guard.
11651 * common/cleanups.h: Rename include guard.
11652 * common/buffer.h: Rename include guard.
11653 * common/btrace-common.h: Rename include guard.
11654 * common/break-common.h: Rename include guard.
11655 * cli/cli-utils.h: Rename include guard.
11656 * cli/cli-style.h: Rename include guard.
11657 * cli/cli-setshow.h: Rename include guard.
11658 * cli/cli-script.h: Rename include guard.
11659 * cli/cli-interp.h: Rename include guard.
11660 * cli/cli-decode.h: Rename include guard.
11661 * cli/cli-cmds.h: Rename include guard.
11662 * charset-list.h: Add include guard.
11663 * buildsym-legacy.h: Rename include guard.
11664 * bfin-tdep.h: Add include guard.
11665 * ax.h: Rename include guard.
11666 * arm-linux-tdep.h: Add include guard.
11667 * arm-fbsd-tdep.h: Add include guard.
11668 * arch/xtensa.h: Rename include guard.
11669 * arch/tic6x.h: Add include guard.
11670 * arch/i386.h: Add include guard.
11671 * arch/arm.h: Rename include guard.
11672 * arch/arm-linux.h: Rename include guard.
11673 * arch/arm-get-next-pcs.h: Rename include guard.
11674 * arch/amd64.h: Add include guard.
11675 * arch/aarch64-insn.h: Rename include guard.
11676 * arch-utils.h: Rename include guard.
11677 * annotate.h: Add include guard.
11678 * amd64-darwin-tdep.h: Rename include guard.
11679 * aarch64-linux-tdep.h: Add include guard.
11680 * aarch64-fbsd-tdep.h: Add include guard.
11681 * aarch32-linux-nat.h: Add include guard.
11682
ab9268d2
PW
116832019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11684
11685 * macrotab.c (macro_define_internal): New function that
11686 factorizes macro_define_object_internal and macro_define_function
11687 code.
11688 (macro_define_object_internal): Use macro_define_internal.
11689 (macro_define_function): Likewise.
11690
bb0da2b4
PW
116912019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11692
11693 * macrocmd.c (extract_identifier): Return
11694 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11695 callers.
11696
424eb552
JB
116972019-02-06 John Baldwin <jhb@FreeBSD.org>
11698
11699 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11700
1688cb29
TT
117012019-02-05 Tom Tromey <tom@tromey.com>
11702
11703 * target.c (target_stack::unpush): Move assertion earlier.
11704
b5eba2d8
TT
117052019-01-30 Tom Tromey <tom@tromey.com>
11706
11707 PR python/23615:
11708 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11709 (gdbpy_parse_and_eval): Likewise.
11710 * python/python-internal.h (gdbpy_allow_threads): New class.
11711
7054e2ff
JB
117122019-01-28 John Baldwin <jhb@FreeBSD.org>
11713
11714 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11715 (aarch64_fbsd_fpregmap): Move earlier.
11716 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11717 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11718 instead of individual calls to trad_frame_set_reg_addr.
11719 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11720 earlier.
11721 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11722 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11723 instead of individual calls to trad_frame_set_reg_addr.
11724
36c25ffa
AH
117252019-01-28 Alan Hayward <alan.hayward@arm.com>
11726
11727 * CONTRIBUTE: Replace contribution list with wiki link.
11728
a0707f3c
TT
117292019-01-25 Tom Tromey <tom@tromey.com>
11730
11731 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11732
0747795c
TT
117332019-01-25 Tom Tromey <tom@tromey.com>
11734
11735 * xtensa-linux-nat.c: Fix common/ includes.
11736 * xml-support.h: Fix common/ includes.
11737 * xml-support.c: Fix common/ includes.
11738 * x86-linux-nat.c: Fix common/ includes.
11739 * windows-nat.c: Fix common/ includes.
11740 * varobj.h: Fix common/ includes.
11741 * varobj.c: Fix common/ includes.
11742 * value.c: Fix common/ includes.
11743 * valops.c: Fix common/ includes.
11744 * utils.c: Fix common/ includes.
11745 * unittests/xml-utils-selftests.c: Fix common/ includes.
11746 * unittests/utils-selftests.c: Fix common/ includes.
11747 * unittests/unpack-selftests.c: Fix common/ includes.
11748 * unittests/tracepoint-selftests.c: Fix common/ includes.
11749 * unittests/style-selftests.c: Fix common/ includes.
11750 * unittests/string_view-selftests.c: Fix common/ includes.
11751 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11752 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11753 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11754 * unittests/rsp-low-selftests.c: Fix common/ includes.
11755 * unittests/parse-connection-spec-selftests.c: Fix common/
11756 includes.
11757 * unittests/optional-selftests.c: Fix common/ includes.
11758 * unittests/offset-type-selftests.c: Fix common/ includes.
11759 * unittests/observable-selftests.c: Fix common/ includes.
11760 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11761 * unittests/memrange-selftests.c: Fix common/ includes.
11762 * unittests/memory-map-selftests.c: Fix common/ includes.
11763 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11764 * unittests/function-view-selftests.c: Fix common/ includes.
11765 * unittests/environ-selftests.c: Fix common/ includes.
11766 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11767 * unittests/common-utils-selftests.c: Fix common/ includes.
11768 * unittests/cli-utils-selftests.c: Fix common/ includes.
11769 * unittests/array-view-selftests.c: Fix common/ includes.
11770 * ui-file.c: Fix common/ includes.
11771 * tui/tui-io.c: Fix common/ includes.
11772 * tracepoint.h: Fix common/ includes.
11773 * tracepoint.c: Fix common/ includes.
11774 * tracefile-tfile.c: Fix common/ includes.
11775 * top.h: Fix common/ includes.
11776 * top.c: Fix common/ includes.
11777 * thread.c: Fix common/ includes.
11778 * target/waitstatus.h: Fix common/ includes.
11779 * target/waitstatus.c: Fix common/ includes.
11780 * target.h: Fix common/ includes.
11781 * target.c: Fix common/ includes.
11782 * target-memory.c: Fix common/ includes.
11783 * target-descriptions.c: Fix common/ includes.
11784 * symtab.h: Fix common/ includes.
11785 * symfile.c: Fix common/ includes.
11786 * stap-probe.c: Fix common/ includes.
11787 * spu-linux-nat.c: Fix common/ includes.
11788 * sparc-nat.c: Fix common/ includes.
11789 * source.c: Fix common/ includes.
11790 * solib.c: Fix common/ includes.
11791 * solib-target.c: Fix common/ includes.
11792 * ser-unix.c: Fix common/ includes.
11793 * ser-tcp.c: Fix common/ includes.
11794 * ser-pipe.c: Fix common/ includes.
11795 * ser-base.c: Fix common/ includes.
11796 * selftest-arch.c: Fix common/ includes.
11797 * s12z-tdep.c: Fix common/ includes.
11798 * rust-exp.y: Fix common/ includes.
11799 * rs6000-aix-tdep.c: Fix common/ includes.
11800 * riscv-tdep.c: Fix common/ includes.
11801 * remote.c: Fix common/ includes.
11802 * remote-notif.h: Fix common/ includes.
11803 * remote-fileio.h: Fix common/ includes.
11804 * remote-fileio.c: Fix common/ includes.
11805 * regcache.h: Fix common/ includes.
11806 * regcache.c: Fix common/ includes.
11807 * record-btrace.c: Fix common/ includes.
11808 * python/python.c: Fix common/ includes.
11809 * python/py-type.c: Fix common/ includes.
11810 * python/py-inferior.c: Fix common/ includes.
11811 * progspace.h: Fix common/ includes.
11812 * producer.c: Fix common/ includes.
11813 * procfs.c: Fix common/ includes.
11814 * proc-api.c: Fix common/ includes.
11815 * printcmd.c: Fix common/ includes.
11816 * ppc-linux-nat.c: Fix common/ includes.
11817 * parser-defs.h: Fix common/ includes.
11818 * osdata.c: Fix common/ includes.
11819 * obsd-nat.c: Fix common/ includes.
11820 * nat/x86-linux.c: Fix common/ includes.
11821 * nat/x86-linux-dregs.c: Fix common/ includes.
11822 * nat/x86-dregs.h: Fix common/ includes.
11823 * nat/x86-dregs.c: Fix common/ includes.
11824 * nat/ppc-linux.c: Fix common/ includes.
11825 * nat/mips-linux-watch.h: Fix common/ includes.
11826 * nat/mips-linux-watch.c: Fix common/ includes.
11827 * nat/linux-waitpid.c: Fix common/ includes.
11828 * nat/linux-ptrace.h: Fix common/ includes.
11829 * nat/linux-ptrace.c: Fix common/ includes.
11830 * nat/linux-procfs.c: Fix common/ includes.
11831 * nat/linux-personality.c: Fix common/ includes.
11832 * nat/linux-osdata.c: Fix common/ includes.
11833 * nat/linux-namespaces.c: Fix common/ includes.
11834 * nat/linux-btrace.h: Fix common/ includes.
11835 * nat/linux-btrace.c: Fix common/ includes.
11836 * nat/fork-inferior.c: Fix common/ includes.
11837 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11838 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11839 * nat/aarch64-linux.c: Fix common/ includes.
11840 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11841 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11842 * namespace.h: Fix common/ includes.
11843 * mips-linux-tdep.c: Fix common/ includes.
11844 * minsyms.c: Fix common/ includes.
11845 * mi/mi-parse.h: Fix common/ includes.
11846 * mi/mi-main.c: Fix common/ includes.
11847 * mi/mi-cmd-env.c: Fix common/ includes.
11848 * memrange.h: Fix common/ includes.
11849 * memattr.c: Fix common/ includes.
11850 * maint.h: Fix common/ includes.
11851 * maint.c: Fix common/ includes.
11852 * main.c: Fix common/ includes.
11853 * machoread.c: Fix common/ includes.
11854 * location.c: Fix common/ includes.
11855 * linux-thread-db.c: Fix common/ includes.
11856 * linux-nat.c: Fix common/ includes.
11857 * linux-fork.c: Fix common/ includes.
11858 * inline-frame.c: Fix common/ includes.
11859 * infrun.c: Fix common/ includes.
11860 * inflow.c: Fix common/ includes.
11861 * inferior.h: Fix common/ includes.
11862 * inferior.c: Fix common/ includes.
11863 * infcmd.c: Fix common/ includes.
11864 * inf-ptrace.c: Fix common/ includes.
11865 * inf-child.c: Fix common/ includes.
11866 * ia64-linux-nat.c: Fix common/ includes.
11867 * i387-tdep.c: Fix common/ includes.
11868 * i386-tdep.c: Fix common/ includes.
11869 * i386-linux-tdep.c: Fix common/ includes.
11870 * i386-linux-nat.c: Fix common/ includes.
11871 * i386-go32-tdep.c: Fix common/ includes.
11872 * i386-fbsd-tdep.c: Fix common/ includes.
11873 * i386-fbsd-nat.c: Fix common/ includes.
11874 * guile/scm-type.c: Fix common/ includes.
11875 * guile/guile.c: Fix common/ includes.
11876 * go32-nat.c: Fix common/ includes.
11877 * gnu-nat.c: Fix common/ includes.
11878 * gdbthread.h: Fix common/ includes.
11879 * gdbarch-selftests.c: Fix common/ includes.
11880 * gdb_usleep.c: Fix common/ includes.
11881 * gdb_select.h: Fix common/ includes.
11882 * gdb_bfd.c: Fix common/ includes.
11883 * gcore.c: Fix common/ includes.
11884 * fork-child.c: Fix common/ includes.
11885 * findvar.c: Fix common/ includes.
11886 * fbsd-nat.c: Fix common/ includes.
11887 * event-top.c: Fix common/ includes.
11888 * event-loop.c: Fix common/ includes.
11889 * dwarf2read.c: Fix common/ includes.
11890 * dwarf2loc.c: Fix common/ includes.
11891 * dwarf2-frame.c: Fix common/ includes.
11892 * dwarf-index-cache.c: Fix common/ includes.
11893 * dtrace-probe.c: Fix common/ includes.
11894 * disasm-selftests.c: Fix common/ includes.
11895 * defs.h: Fix common/ includes.
11896 * csky-tdep.c: Fix common/ includes.
11897 * cp-valprint.c: Fix common/ includes.
11898 * cp-support.h: Fix common/ includes.
11899 * cp-support.c: Fix common/ includes.
11900 * corelow.c: Fix common/ includes.
11901 * completer.h: Fix common/ includes.
11902 * completer.c: Fix common/ includes.
11903 * compile/compile.c: Fix common/ includes.
11904 * compile/compile-loc2c.c: Fix common/ includes.
11905 * compile/compile-cplus-types.c: Fix common/ includes.
11906 * compile/compile-cplus-symbols.c: Fix common/ includes.
11907 * command.h: Fix common/ includes.
11908 * cli/cli-dump.c: Fix common/ includes.
11909 * cli/cli-cmds.c: Fix common/ includes.
11910 * charset.c: Fix common/ includes.
11911 * build-id.c: Fix common/ includes.
11912 * btrace.h: Fix common/ includes.
11913 * btrace.c: Fix common/ includes.
11914 * breakpoint.h: Fix common/ includes.
11915 * breakpoint.c: Fix common/ includes.
11916 * ax.h:
11917 (enum agent_op): Fix common/ includes.
11918 * ax-general.c (struct aop_map): Fix common/ includes.
11919 * ax-gdb.c: Fix common/ includes.
11920 * auxv.c: Fix common/ includes.
11921 * auto-load.c: Fix common/ includes.
11922 * arm-tdep.c: Fix common/ includes.
11923 * arch/riscv.c: Fix common/ includes.
11924 * arch/ppc-linux-common.c: Fix common/ includes.
11925 * arch/i386.c: Fix common/ includes.
11926 * arch/arm.c: Fix common/ includes.
11927 * arch/arm-linux.c: Fix common/ includes.
11928 * arch/arm-get-next-pcs.c: Fix common/ includes.
11929 * arch/amd64.c: Fix common/ includes.
11930 * arch/aarch64.c: Fix common/ includes.
11931 * arch/aarch64-insn.c: Fix common/ includes.
11932 * arch-utils.c: Fix common/ includes.
11933 * amd64-windows-tdep.c: Fix common/ includes.
11934 * amd64-tdep.c: Fix common/ includes.
11935 * amd64-sol2-tdep.c: Fix common/ includes.
11936 * amd64-obsd-tdep.c: Fix common/ includes.
11937 * amd64-nbsd-tdep.c: Fix common/ includes.
11938 * amd64-linux-tdep.c: Fix common/ includes.
11939 * amd64-linux-nat.c: Fix common/ includes.
11940 * amd64-fbsd-tdep.c: Fix common/ includes.
11941 * amd64-fbsd-nat.c: Fix common/ includes.
11942 * amd64-dicos-tdep.c: Fix common/ includes.
11943 * amd64-darwin-tdep.c: Fix common/ includes.
11944 * agent.c: Fix common/ includes.
11945 * ada-lang.h: Fix common/ includes.
11946 * ada-lang.c: Fix common/ includes.
11947 * aarch64-tdep.c: Fix common/ includes.
11948
2f5c153e
TT
119492019-01-25 Tom Tromey <tom@tromey.com>
11950
11951 * common/create-version.sh: Use common/version.h.
11952
adc6a863
PA
119532019-01-24 Pedro Alves <palves@redhat.com>
11954
11955 * infrun.c (signal_stop, signal_print, signal_program)
11956 (signal_catch, signal_pass): Now arrays instead of pointers.
11957 (update_signals_program_target, do_target_resume)
11958 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11959 * linux-nat.c (linux_nat_target::pass_signals)
11960 (linux_nat_target::create_inferior, linux_nat_target::attach):
11961 Adjust.
11962 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11963 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11964 * procfs.c (procfs_target::pass_signals): Adjust.
11965 * record-full.c (record_full_target::resume): Adjust.
11966 * remote.c (remote_target::pass_signals)
11967 (remote_target::program_signals): Adjust.
11968 * target-debug.h (target_debug_print_signals): Now takes a
11969 gdb::array_view as parameter. Adjust.
11970 * target.h (target_ops) <pass_signals, program_signals>: Replace
11971 pointer and length parameters with gdb::array_view.
11972 (target_pass_signals, target_program_signals): Likewise.
11973 * target-delegates.c: Regenerate.
11974
3046d67a
PA
119752019-01-24 Pedro Alves <palves@redhat.com>
11976
11977 * common/forward-scope-exit.h
11978 (forward_scope_exit::forward_scope_exit): Pass arguments to
11979 m_bind_function directly, instead of creating a std::bind and
11980 copying that.
11981
353229bf
AH
119822019-01-24 Alan Hayward <alan.hayward@arm.com>
11983
11984 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11985 for static members.
11986 (pass_in_v_vfp_candidate): Likewise.
11987
311dc83a
TT
119882019-01-23 Tom Tromey <tom@tromey.com>
11989 Pedro Alves <palves@redhat.com>
11990
11991 * regcache.c (class regcache_invalidator): Remove.
11992 (regcache::raw_write): Use make_scope_exit.
11993
296bd123
TT
119942019-01-23 Tom Tromey <tom@tromey.com>
11995
11996 * ui-out.h (class ui_out_emit_type): Update comment.
11997
979a0d13
TT
119982019-01-23 Tom Tromey <tom@tromey.com>
11999
12000 * infrun.c (fetch_inferior_event): Update comment.
12001
d238133d
TT
120022019-01-23 Tom Tromey <tom@tromey.com>
12003 Pedro Alves <palves@redhat.com>
12004
12005 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12006 parameter.
12007 (fetch_inferior_event): Use SCOPE_EXIT.
12008
12009
9885e6bb
TT
120102019-01-23 Tom Tromey <tom@tromey.com>
12011 Pedro Alves <palves@redhat.com>
12012
12013 * infrun.c (disable_thread_events): Delete.
12014 (stop_all_threads): Use SCOPE_EXIT.
12015
286526c1
TT
120162019-01-23 Tom Tromey <tom@tromey.com>
12017 Pedro Alves <palves@redhat.com>
12018
12019 * symfile.c: Include forward-scope-exit.h.
12020 (clear_symtab_users_cleanup): Replace forward declaration with
12021 a FORWARD_SCOPE_EXIT.
12022 (syms_from_objfile_1): Use the forward_scope_exit and
12023 gdb::optional instead of cleanup_function.
12024 (reread_symbols): Use the forward_scope_exit instead of
12025 cleanup_function.
12026 (clear_symtab_users_cleanup): Remove function.
12027
1db93f14
TT
120282019-01-23 Tom Tromey <tom@tromey.com>
12029 Pedro Alves <palves@redhat.com>
12030
12031 * linux-nat.c: Include scope-exit.h.
12032 (cleanup_target_stop): Remove.
12033 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12034 SCOPE_EXIT.
12035
2cc83d1e
TT
120362019-01-23 Tom Tromey <tom@tromey.com>
12037 Pedro Alves <palves@redhat.com>
12038
12039 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12040 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12041
694c6bf5
TT
120422019-01-23 Tom Tromey <tom@tromey.com>
12043 Andrew Burgess <andrew.burgess@embecosm.com>
12044 Pedro Alves <palves@redhat.com>
12045
12046 * infrun.c (fetch_inferior_event): Use scope_exit.
12047 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12048 * top.c (execute_command): Use scope_exit.
12049 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12050 * utils.c (do_bpstat_clear_actions_cleanup)
12051 (make_bpstat_clear_actions_cleanup): Remove.
12052
4c41382a
TT
120532019-01-23 Tom Tromey <tom@tromey.com>
12054 Pedro Alves <palves@redhat.com>
12055
12056 * infrun.c: Include "common/scope-exit.h"
12057 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12058 (wait_for_inferior): Use SCOPE_EXIT.
12059 (fetch_inferior_event): Use scope_exit.
12060
89f8fb50
TT
120612019-01-23 Tom Tromey <tom@tromey.com>
12062 Pedro Alves <palves@redhat.com>
12063
12064 * breakpoint.c (create_breakpoint): Remove cleanup.
12065
5419bdae
TT
120662019-01-23 Tom Tromey <tom@tromey.com>
12067 Andrew Burgess <andrew.burgess@embecosm.com>
12068 Pedro Alves <palves@redhat.com>
12069
e587ef42
PA
120702019-01-23 Pedro Alves <palves@redhat.com>
12071
12072 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12073
77f0e74c
PA
120742019-01-23 Pedro Alves <palves@redhat.com>
12075 Andrew Burgess <andrew.burgess@embecosm.com>
12076
12077 * gdbthread.h: Include "common/forward-scope-exit.h".
12078 (scoped_finish_thread_state): Redefine custom class in terms of
12079 forward_scope_exit.
12080
5b9b3e53
PA
120812019-01-23 Pedro Alves <palves@redhat.com>
12082 Andrew Burgess <andrew.burgess@embecosm.com>
12083
12084 * common/forward-scope-exit.h: New file.
12085
54b65c9b
PA
120862019-01-23 Pedro Alves <palves@redhat.com>
12087 Andrew Burgess <andrew.burgess@embecosm.com>
12088 Tom Tromey <tom@tromey.com>
12089
12090 * common/scope-exit.h: New file.
12091
cf08fb29
PA
120922019-01-23 Pedro Alves <palves@redhat.com>
12093
12094 * common/preprocessor.h (ESC): Rename to ...
12095 (ESC_PARENS): ... this.
12096 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12097 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12098
ae73e2e2
TT
120992019-01-23 Tom Tromey <tom@tromey.com>
12100
12101 * language.h (class scoped_switch_to_sym_language_if_auto):
12102 Initialize m_lang in both cases.
12103
6594e122
AH
121042019-01-23 Alan Hayward <alan.hayward@arm.com>
12105
12106 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12107 with XCNEW.
12108
a7c9855d
TT
121092019-01-22 Tom Tromey <tom@tromey.com>
12110
12111 * corelow.c: Do not include sys/file.h.
12112
93cc1d53
TT
121132019-01-22 Tom Tromey <tom@tromey.com>
12114
12115 * tui/tui-wingeneral.h: Include gdb_curses.h.
12116
38561778
TT
121172019-01-22 Tom Tromey <tom@tromey.com>
12118
12119 * source-cache.h (class source_cache) <get_source_lines,
12120 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12121
37b3ab5b
TT
121222019-01-22 Tom Tromey <tom@tromey.com>
12123
12124 * remote-fileio.h (struct remote_target): Declare.
12125
3fabc016
TT
121262019-01-22 Tom Tromey <tom@tromey.com>
12127
12128 * python/py-arch.c: Do not include py-ref.h.
12129 * python/py-bpevent.c: Do not include py-ref.h.
12130 * python/py-cmd.c: Do not include py-ref.h.
12131 * python/py-continueevent.c: Do not include py-ref.h.
12132 * python/py-event.h: Do not include py-ref.h.
12133 * python/py-evtregistry.c: Do not include py-ref.h.
12134 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12135 * python/py-frame.c: Do not include py-ref.h.
12136 * python/py-framefilter.c: Do not include py-ref.h.
12137 * python/py-function.c: Do not include py-ref.h.
12138 * python/py-infevents.c: Do not include py-ref.h.
12139 * python/py-linetable.c: Do not include py-ref.h.
12140 * python/py-objfile.c: Do not include py-ref.h.
12141 * python/py-param.c: Do not include py-ref.h.
12142 * python/py-prettyprint.c: Do not include py-ref.h.
12143 * python/py-progspace.c: Do not include py-ref.h.
12144 * python/py-symbol.c: Do not include py-ref.h.
12145 * python/py-symtab.c: Do not include py-ref.h.
12146 * python/py-type.c: Do not include py-ref.h.
12147 * python/py-unwind.c: Do not include py-ref.h.
12148 * python/py-utils.c: Do not include py-ref.h.
12149 * python/py-value.c: Do not include py-ref.h.
12150 * python/py-varobj.c: Do not include py-ref.h.
12151 * python/py-xmethods.c: Do not include py-ref.h.
12152 * python/python.c: Do not include py-ref.h.
12153 * varobj.c: Do not include py-ref.h.
12154
6b4d7774
TT
121552019-01-22 Tom Tromey <tom@tromey.com>
12156
12157 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12158 keyword for bcache.
12159
7af7e9b5
TT
121602019-01-22 Tom Tromey <tom@tromey.com>
12161
12162 * compile/compile-cplus-types.c: Remove a comment by #include.
12163
951d1049
TT
121642019-01-22 Tom Tromey <tom@tromey.com>
12165
12166 * compile/gcc-c-plugin.h: Include compile-internal.h.
12167
d65d5705
TT
121682019-01-22 Tom Tromey <tom@tromey.com>
12169
12170 * stabsread.c (EXTERN): Do not define.
12171 (symnum, next_symbol_text_func, processing_gcc_compilation)
12172 (within_function, global_sym_chain, global_stabs)
12173 (previous_stab_code, this_object_header_files)
12174 (n_this_object_header_files)
12175 (n_allocated_this_object_header_files): Define.
12176 * stabsread.h (EXTERN): Never define. Use "extern".
12177
b6fb1ee5
PW
121782019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12179
12180 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12181 history_value.
12182
be6d4f74
TT
121832019-01-21 Tom Tromey <tom@tromey.com>
12184
12185 * ui-out.c: Fix includes.
12186 * tui/tui-source.c: Fix includes.
12187 * target.c: Fix includes.
12188 * remote.c: Fix includes.
12189 * regcache.c: Fix includes.
12190 * python/py-block.c: Fix includes.
12191 * printcmd.c: Fix includes.
12192 * or1k-tdep.c: Fix includes.
12193 * mi/mi-main.c: Fix includes.
12194 * m32r-tdep.c: Fix includes.
12195 * csky-tdep.c: Fix includes.
12196 * compile/compile-cplus-types.c: Fix includes.
12197 * cli/cli-interp.c: Fix includes.
12198
73021deb
AH
121992019-01-21 Alan Hayward <alan.hayward@arm.com>
12200
12201 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12202 for padding.
12203
7932255d
TT
122042019-01-16 Tom Tromey <tom@tromey.com>
12205
12206 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12207 earlier.
12208 (struct objfile) <msymbols_range>: Move from top level.
12209 <msymbols>: New method.
12210 (class objfile_msymbols): Remove.
12211 * symtab.c (default_collect_symbol_completion_matches_break_on):
12212 Update.
12213 * symmisc.c (dump_msymbols): Update.
12214 * stabsread.c (scan_file_globals): Update.
12215 * objc-lang.c (info_selectors_command, info_classes_command)
12216 (find_methods): Update.
12217 * minsyms.c (find_solib_trampoline_target): Update.
12218 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12219 * coffread.c (coff_symfile_read): Update.
12220 * ada-lang.c (ada_lookup_simple_minsym)
12221 (ada_collect_symbol_completion_matches): Update.
12222
604b1bfb
TT
122232019-01-16 Tom Tromey <tom@tromey.com>
12224
12225 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12226 type. Remove no-argument constructor.
12227 <iterator::operator++>: Simplify.
12228 <begin>: Update.
12229 <end>: Use minimal_symbol_count.
12230
f252c6d5
TT
122312019-01-16 Tom Tromey <tom@tromey.com>
12232
12233 * objfiles.h (struct objfile) <psymtabs>: New method.
12234 (class objfile_psymtabs): Remove.
12235 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12236 typedef.
12237 <range>: New method.
12238 (require_partial_symbols): Change return type.
12239 * psymtab.c (require_partial_symbols)
12240 (psym_expand_symtabs_matching): Update.
12241 * mdebugread.c (parse_partial_symbols): Update.
12242 * dbxread.c (dbx_end_psymtab): Update.
12243
b669c953
TT
122442019-01-15 Tom Tromey <tom@tromey.com>
12245
12246 * symtab.c (lookup_objfile_from_block)
12247 (lookup_symbol_in_objfile_symtabs)
12248 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12249 (find_line_symtab, info_sources_command)
12250 (default_collect_symbol_completion_matches_break_on)
12251 (make_source_files_completion_list): Update.
12252 * symmisc.c (print_objfile_statistics, dump_objfile)
12253 (maintenance_print_symbols, maintenance_info_symtabs)
12254 (maintenance_check_symtabs, maintenance_info_line_tables):
12255 Update.
12256 * source.c (select_source_symtab)
12257 (forget_cached_source_info_for_objfile): Update.
12258 * objfiles.h (class objfile_compunits): Remove.
12259 (struct objfile) <compunits_range>: New typedef.
12260 (compunits): New method.
12261 * objfiles.c (objfile_relocate1): Update.
12262 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12263 * maint.c (count_symtabs_and_blocks): Update.
12264 * linespec.c (iterate_over_all_matching_symtabs): Update.
12265 * cp-support.c (add_symbol_overload_list_qualified): Update.
12266 * coffread.c (coff_symtab_read): Update.
12267 * ada-lang.c (add_nonlocal_symbols)
12268 (ada_collect_symbol_completion_matches)
12269 (ada_add_global_exceptions): Update.
12270
7e955d83
TT
122712019-01-15 Tom Tromey <tom@tromey.com>
12272
12273 * progspace.h (program_space) <objfiles_safe_range>: New
12274 typedef.
12275 <objfiles_safe>: New method.
12276 * objfiles.h (class all_objfiles_safe): Remove.
12277 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12278 * jit.c (jit_inferior_exit_hook): Update.
12279
2030c079
TT
122802019-01-17 Tom Tromey <tom@tromey.com>
12281
12282 * progspace.h (program_space) <objfiles_range>: New typedef.
12283 <objfiles>: New method.
12284 <objfiles_head>: Rename from objfiles.
12285 (object_files): Update.
12286 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12287 * guile/scm-pretty-print.c
12288 (ppscm_find_pretty_printer_from_objfiles): Update.
12289 * guile/scm-objfile.c (gdbscm_objfiles): Update.
12290 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12291 Update.
12292 * python/py-progspace.c (pspy_get_objfiles): Update.
12293 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12294 Update.
12295 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12296 (objfpy_lookup_objfile_by_build_id): Update.
12297 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12298 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12299 Update.
12300 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12301 (expand_symtab_containing_pc, lookup_objfile_from_block)
12302 (lookup_static_symbol, basic_lookup_transparent_type)
12303 (find_pc_sect_compunit_symtab, find_symbol_at_address)
12304 (find_line_symtab, info_sources_command)
12305 (default_collect_symbol_completion_matches_break_on)
12306 (make_source_files_completion_list, find_main_name): Update.
12307 * symmisc.c (print_symbol_bcache_statistics)
12308 (print_objfile_statistics, maintenance_print_symbols)
12309 (maintenance_print_msymbols, maintenance_print_objfiles)
12310 (maintenance_info_symtabs, maintenance_check_symtabs)
12311 (maintenance_expand_symtabs, maintenance_info_line_tables):
12312 Update.
12313 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12314 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12315 (map_overlay_command, unmap_overlay_command)
12316 (simple_overlay_update, expand_symtabs_matching)
12317 (map_symbol_filenames): Update.
12318 * symfile-debug.c (set_debug_symfile): Update.
12319 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12320 Update.
12321 * source.c (select_source_symtab, forget_cached_source_info):
12322 Update.
12323 * solib.c (solib_read_symbols): Update.
12324 * solib-spu.c (append_ocl_sos): Update.
12325 * psymtab.c (maintenance_print_psymbols)
12326 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12327 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12328 * printcmd.c (info_symbol_command): Update.
12329 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12330 Update.
12331 * objfiles.h (class all_objfiles): Remove.
12332 * objfiles.c (have_partial_symbols, have_full_symbols)
12333 (have_minimal_symbols, qsort_cmp, update_section_map)
12334 (shared_objfile_contains_address_p)
12335 (default_iterate_over_objfiles_in_search_order): Update.
12336 * objc-lang.c (info_selectors_command, info_classes_command)
12337 (find_methods): Update.
12338 * minsyms.c (find_solib_trampoline_target): Update.
12339 * maint.c (maintenance_info_sections)
12340 (maintenance_translate_address, count_symtabs_and_blocks):
12341 Update.
12342 * main.c (captured_main_1): Update.
12343 * linux-thread-db.c (try_thread_db_load_from_pdir)
12344 (has_libpthread): Update.
12345 * linespec.c (iterate_over_all_matching_symtabs)
12346 (search_minsyms_for_name): Update.
12347 * jit.c (jit_find_objf_with_entry_addr): Update.
12348 * hppa-tdep.c (find_unwind_entry)
12349 (hppa_lookup_stub_minimal_symbol): Update.
12350 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12351 Update.
12352 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12353 (elf_gnu_ifunc_resolve_by_got): Update.
12354 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12355 * dwarf-index-write.c (save_gdb_index_command): Update.
12356 * cp-support.c (add_symbol_overload_list_qualified): Update.
12357 * breakpoint.c (create_overlay_event_breakpoint)
12358 (create_longjmp_master_breakpoint)
12359 (create_std_terminate_master_breakpoint)
12360 (create_exception_master_breakpoint): Update.
12361 * blockframe.c (find_pc_partial_function): Update.
12362 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12363 (ada_collect_symbol_completion_matches)
12364 (ada_add_global_exceptions): Update.
12365
776489e0
TT
123662019-01-17 Tom Tromey <tom@tromey.com>
12367
12368 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12369 declare VEC.
12370 (solib_target_parse_libraries): Change return type.
12371 (library_list_start_segment, library_list_start_section)
12372 (library_list_end_library, library_list_start_library); Update.
12373 (solib_target_free_library_list): Remove.
12374 (solib_target_parse_libraries): Remove cleanup. Change return
12375 type.
12376 (solib_target_current_sos): Update.
12377
6471e7d2
TT
123782019-01-17 Tom Tromey <tromey@bapiya>
12379
12380 * valprint.c: Replace "the the" with "the".
12381 * symtab.c: Replace "the the" with "the".
12382 * solib.c: Replace "the the" with "the".
12383 * solib-dsbt.c: Replace "the the" with "the".
12384 * linespec.c: Replace "the the" with "the".
12385 * dwarf2loc.h: Replace "the the" with "the".
12386 * amd64-windows-tdep.c: Replace "the the" with "the".
12387 * aarch64-tdep.c: Replace "the the" with "the".
12388
c24bdb02
KS
123892019-01-16 Keith Seitz <keiths@redhat.com>
12390
12391 PR gdb/23773
12392 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12393 <builder>: Rename to ..
12394 <m_builder>: ... this and make private.
12395 (dwarf2_cu::get_builder): New method. Change all users of
12396 `builder' to use this method.
12397 (dwarf2_start_symtab): Move to ...
12398 (dwarf2_cu::start_symtab): ... here. Update all callers
12399 (setup_type_unit_groups): Move to ...
12400 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12401 callers.
12402 (dwarf2_cu::reset_builder): New method.
12403 (process_full_compunit, process_full_type_unit): Use
12404 dwarf2_cu::reset_builder.
12405 (follow_die_offset): Record the ancestor CU if it is different
12406 from the followed DIE's CU.
12407 (follow_die_sig_1): Likewise.
12408
8d64371b
TT
124092019-01-15 Tom Tromey <tom@tromey.com>
12410
12411 * remote.c (class remote_state) <buf>: Now a char_vector.
12412 <buf_size>: Remove.
12413 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12414 parameter.
12415 (remote_target::getpkt_or_notif_sane_1)
12416 (remote_target::getpkt_sane)
12417 (remote_target::getpkt_or_notif_sane): Likewise.
12418 (class remote_target) <putpkt>: New overload.
12419 (remote_target::read_frame): Change type of "buf_p". Remove
12420 sizeof_p parameter.
12421 (packet_ok): New overload.
12422 (packet_check_result): New overload.
12423 Update all uses.
12424
bb277751
TT
124252019-01-14 Tom Tromey <tom@tromey.com>
12426
12427 * remote-notif.c (handle_notification, remote_notif_ack)
12428 (remote_notif_parse): Make "buf" const.
12429 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12430 const.
12431 (remote_notif_parse, remote_notif_ack, handle_notification):
12432 Likewise.
12433 * remote.c (remote_notif_stop_parse): Make "buf" const.
12434 (remote_target::remote_parse_stop_reply): Make "buf" const.
12435 (remote_notif_stop_ack): Make "buf" const.
12436
05be00a8
TT
124372019-01-14 Tom Tromey <tom@tromey.com>
12438
12439 * remote.c (remote_console_output): Make parameter const.
12440
491adeca
TT
124412019-01-14 Tom Tromey <tom@tromey.com>
12442
12443 * target-debug.h (target_debug_print_signals): Constify.
12444 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12445 * procfs.c (procfs_target::pass_signals): Update.
12446 * linux-nat.c (linux_nat_target::pass_signals): Update.
12447 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12448 * target-delegates.c: Rebuild.
12449 * remote.c (remote_target::program_signals): Update.
12450 (remote_target::pass_signals): Update.
12451 * target.c (target_pass_signals): Constify argument.
12452 (target_program_signals): Likewise.
12453 * target.h (struct target_ops) <pass_signals, program_signals>:
12454 Constify argument.
12455 (target_pass_signals, target_program_signals): Constify argument.
12456
bbd94648
TT
124572019-01-14 Tom Tromey <tom@tromey.com>
12458
12459 PR tui/28819:
12460 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12461
6f072a10
PFC
124622019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12463
12464 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12465 field.
12466 * rs6000-tdep.c: Include reggroups.h.
12467 (IS_V_ALIAS_PSEUDOREG): Define.
12468 (rs6000_register_name): Return names for the "vX" aliases.
12469 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12470 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12471 aliases. Call default_register_reggroup_p for all other
12472 pseudo-registers.
12473 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12474 New functions.
12475 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12476 Handle "vX" aliases.
12477 (v_alias_pseudo_register_collect): New function.
12478 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12479 (rs6000_gdbarch_init): Initialize "vX" aliases as
12480 pseudo-registers. Restore registration of
12481 rs6000_pseudo_register_reggroup_p with
12482 set_tdesc_pseudo_register_reggroup_p.
12483
1a782351
MF
124842019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12485
12486 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12487 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12488 set_gdbarch_num_pseudo_regs.
12489
d73cff18
PW
124902019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12491
12492 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12493 Remove arg prefixname, add do_set and do_show.
12494 Add member functions set_list and show_list.
12495 * cli/cli-style.c (class cli_style_option): Update accordingly.
12496 (style_set_list): Move to file scope.
12497 (style_show_list): Likewise.
12498 (set_style): Call help_list.
12499 (show_style): Call cmd_show_list.
12500 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12501 Update to use the new macro.
12502
60a90376
JB
125032019-10-12 Joel Brobecker <brobecker@adacore.com>
12504
12505 * ada-lang.c (_initialize_ada_language): Expand the help text
12506 for the "catch exception" command.
12507
9d7c67bf
PW
125082019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12509
12510 * symtab.c (matching_obj_sections): Initialize obj,
12511 declare it closer to its usage.
12512
7cf47dc4
TT
125132019-01-10 Tom Tromey <tom@tromey.com>
12514
12515 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12516 (basic_inf_threads_range): Remove.
12517 (inf_threads_range, inf_non_exited_threads_range)
12518 (safe_inf_threads_range): Use next_adapter.
12519
d3cb6808
KS
125202019-01-10 Keith Seitz <keiths@redhat.com>
12521
12522 PR gdb/23712
12523 PR symtab/23010
12524 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12525 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12526
63a20375
KS
125272019-01-10 Keith Seitz <keiths@redhat.com>
12528
12529 PR gdb/23712
12530 PR symtab/23010
12531 * dictionary.c (pending_to_vector): Remove.
12532 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12533 Remove _1 suffix, replacing functions of the same name. Update
12534 all callers.
12535 (dict_create_hashed, dict_create_hashed_expandable)
12536 (dict_create_linear, dict_create_linear_expandable, dict_free)
12537 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12538 Make functions static.
12539
b026f593
KS
125402019-01-10 Keith Seitz <keiths@redhat.com>
12541
12542 PR gdb/23712
12543 PR symtab/23010
12544 * dictionary.h (struct dictionary): Replace declaration with
12545 multidictionary.
12546 (dict_create_hashed, dict_create_hashed_expandable)
12547 (dict_create_linear, dict_create_linear_expandable)
12548 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12549 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12550 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12551 taking multidictionary argument.
12552 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12553 * block.h (struct block) <dict>: Change to multidictionary
12554 and rename `multidict'.
12555 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12556 symmisc.c: Update all dictionary references to multidictionary.
12557
c7748ee9
KS
125582019-01-10 Keith Seitz <keiths@redhat.com>
12559
12560 PR gdb/23712
12561 PR symtab/23010
12562 * dictionary.c: Include unordered_map.
12563 (pending_to_vector): New function.
12564 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12565 Rewrite the non-"_1" functions to take vector instead
12566 of linked list.
12567 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12568 "new" _1 versions of the same name.
12569 (multidictionary): Define.
12570 (std::hash<enum language): New definition.
12571 (collate_pending_symbols_by_language, mdict_create_hashed)
12572 (mdict_create_hashed_expandable, mdict_create_linear)
12573 (mdict_create_linear_expandable, mdict_free)
12574 (find_language_dictionary, create_new_language_dictionary)
12575 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12576 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12577 (mdict_size, mdict_empty): New functions.
12578 * dictionary.h (mdict_iterator): Define.
12579
67aa1f3c
PA
125802019-01-10 Pedro Alves <palves@redhat.com>
12581
12582 * breakpoint.c (read_uploaded_action)
12583 (create_tracepoint_from_upload): Adjust to use
12584 gdb::unique_xmalloc_ptr.
12585 * ctf.c (ctf_write_uploaded_tp):
12586 (SET_ARRAY_FIELD): Use emplace_back.
12587 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12588 * tracefile-tfile.c (tfile_write_uploaded_tp):
12589 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12590 gdb::unique_xmalloc_ptr.
12591 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12592 at_string, cond_string, cmd_strings>: Replace char pointers
12593 with gdb::unique_xmalloc_ptr.
12594
2f667667
PA
125952019-01-10 Pedro Alves <palves@redhat.com>
12596
12597 * solib-target.c (library_list_start_library): Don't xstrdup name.
12598
36cb7237
PA
125992019-01-10 Pedro Alves <palves@redhat.com>
12600
12601 * mdebugread.c (parse_partial_symbols): Use
12602 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12603
da584958
AB
126042019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12605
12606 * linux-fork.c (scoped_switch_fork_info)
12607 <~scoped_switch_fork_info>: Fix incorrect variable name.
12608
1ef8573c
AB
126092019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12610
12611 * linux-fork.c (scoped_switch_fork_info)
12612 <scoped_switch_fork_info>: Make explicit.
12613 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12614
8d7bcccb
TT
126152019-01-10 Tom Tromey <tom@tromey.com>
12616
12617 * objfiles.h (objfile::reset_psymtabs): Update.
12618 * objfiles.c (objfile::objfile): Update.
12619 * psymtab.h (psymtab_storage::obstack): Update.
12620 (psymtab_storage::m_obstack): Use gdb::optional.
12621 (class psymtab_storage): Update comment. Remove objfile
12622 parameter.
12623 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12624
b596a3c7
TT
126252019-01-10 Tom Tromey <tom@tromey.com>
12626
12627 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12628 <free_psymtabs>: Now private.
12629 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12630 (allocate_psymtab): Use new method.
12631
a9342b62
TT
126322019-01-10 Tom Tromey <tom@tromey.com>
12633
12634 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12635 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12636 * mdebugread.c (parse_partial_symbols): Use
12637 allocate_dependencies.
12638 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12639 allocate_dependencies.
12640 (process_psymtab_comp_unit_reader)
12641 (build_type_psymtab_dependencies): Likewise.
12642 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12643
5af70966
TT
126442019-01-10 Tom Tromey <tom@tromey.com>
12645
12646 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12647 PSYMBOL_SET_LANGUAGE.
12648 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12649
5923a04c
TT
126502019-01-10 Tom Tromey <tom@tromey.com>
12651
12652 * psymtab.h (psymtab_storage::obstack): New method.
12653 <m_obstack>: Rename from obstack; now private.
12654 * psymtab.c (psymtab_storage): Update.
12655 * dwarf2read.c (create_addrmap_from_index)
12656 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12657 Update.
12658
6d6a12bf
TT
126592019-01-10 Tom Tromey <tom@tromey.com>
12660
12661 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12662 * objfiles.h (objfile::reset_psymtabs): New method.
12663
d320c2b5
TT
126642019-01-10 Tom Tromey <tom@tromey.com>
12665
12666 * symmisc.c (print_symbol_bcache_statistics): Update.
12667 (print_objfile_statistics): Update.
12668 * symfile.c (reread_symbols): Update.
12669 * psymtab.h (class psymtab_storage): New.
12670 * psymtab.c (psymtab_storage): New constructor.
12671 (~psymtab_storage): New destructor.
12672 (require_partial_symbols): Update.
12673 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12674 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12675 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12676 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12677 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12678 (start_psymtab_common, end_psymtab_common)
12679 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12680 (allocate_psymtab): Update.
12681 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12682 Update.
12683 (dump_psymtab_addrmap, maintenance_print_psymbols)
12684 (maintenance_check_psymtabs): Update.
12685 (class objfile_psymtabs): Move to objfiles.h.
12686 * psympriv.h (discard_psymtab): Now inline.
12687 (psymtab_discarder::psymtab_discarder): Update.
12688 (psymtab_discarder::~psymtab_discarder): Update.
12689 (ALL_OBJFILE_PSYMTABS): Rewrite.
12690 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12691 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12692 Remove fields.
12693 <partial_symtabs>: New field.
12694 (class objfile_psymtabs): Move from psymtab.h. Update.
12695 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12696 psymbol_cache.
12697 (objfile::~objfile): Don't destroy psymbol_cache.
12698 * mdebugread.c (parse_partial_symbols): Update.
12699 * dwarf2read.c (create_addrmap_from_index)
12700 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12701 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12702 (add_partial_subprogram, dwarf2_ranges_read): Update.
12703 * dwarf-index-write.c (write_address_map)
12704 (write_one_signatured_type, recursively_write_psymbols)
12705 (class debug_names, class debug_names, write_psymtabs_to_index):
12706 Update.
12707
1d94a5a3
TT
127082019-01-10 Tom Tromey <tom@tromey.com>
12709
12710 * symtab.h (SYMBOL_SET_NAMES): Update.
12711 (symbol_set_names): Update.
12712 (MSYMBOL_SET_NAMES): Update.
12713 * symtab.c (symbol_set_names): Change argument to be an
12714 objfile_per_bfd_storage.
12715 * psymtab.c (add_psymbol_to_bcache): Update.
12716 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12717
0f14768a
TT
127182019-01-10 Tom Tromey <tom@tromey.com>
12719
12720 * symtab.c (create_demangled_names_hash): Change argument to be an
12721 objfile_per_bfd_storage.
12722 (symbol_set_names): Update.
12723
6eee24ce
TT
127242019-01-10 Tom Tromey <tom@tromey.com>
12725
12726 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12727 init_psymbol_list.
12728 * psymtab.c (init_psymbol_list): Do nothing if already called.
12729 * psympriv.h (init_psymbol_list): Add comment.
12730 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12731 init_psymbol_list.
12732 * dbxread.c (dbx_symfile_read): Unconditionally call
12733 init_psymbol_list.
12734
75aedd27
TT
127352019-01-10 Tom Tromey <tom@tromey.com>
12736
12737 * xcoffread.c (scan_xcoff_symtab): Update.
12738 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12739 "where".
12740 * mdebugread.c (parse_partial_symbols)
12741 (handle_psymbol_enumerators): Update.
12742 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12743 * dbxread.c (read_dbx_symtab): Update.
12744 * psympriv.h (psymbol_placement): New enum.
12745 (add_psymbol_to_list): Update.
12746
939652a5
TT
127472019-01-10 Tom Tromey <tom@tromey.com>
12748
12749 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12750 static_psymbols parameters.
12751 (scan_xcoff_symtab): Update.
12752 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12753 static_psymbols parameters.
12754 * psympriv.h (start_psymtab_common): Update.
12755 * mdebugread.c (parse_partial_symbols): Update.
12756 * dwarf2read.c (create_partial_symtab): Update.
12757 * dbxread.c (read_dbx_symtab): Update.
12758 (start_psymtab): Remove global_psymbols and static_psymbols
12759 parameters.
12760
baa62830
TT
127612019-01-10 Tom Tromey <tom@tromey.com>
12762
12763 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12764 * psymtab.c (allocate_psymtab): Add comment.
12765 * psympriv.h (allocate_psymtab): Add comment.
12766 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12767 initializations.
12768 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12769
0e8f53ba
TT
127702019-01-10 Tom Tromey <tom@tromey.com>
12771
12772 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12773 Don't declare.
12774 * mipsread.c: Include mdebugread.h.
12775 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12776 Declare.
12777 * elfread.c: Include mdebugread.h.
12778
b22a7c6a
TT
127792019-01-09 Tom Tromey <tom@tromey.com>
12780
12781 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12782 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12783 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12784 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12785 (psym_lookup_symbol, psym_find_last_source_symtab)
12786 (psym_forget_cached_source_info, psym_print_stats)
12787 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12788 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12789 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12790 (psym_find_compunit_symtab_by_address)
12791 (maintenance_print_psymbols, maintenance_info_psymtabs)
12792 (maintenance_check_psymtabs): Use ranged for.
12793 * psymtab.h (class objfile_psymtabs): New.
12794 (require_partial_symbols): Return objfile_psymtabs.
12795 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12796
3b9d3ac2
TT
127972019-01-09 Tom Tromey <tom@tromey.com>
12798
12799 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12800 (find_pc_mapped_section, list_overlays_command)
12801 (map_overlay_command, unmap_overlay_command)
12802 (simple_overlay_update): Use all_objfiles.
12803 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12804 * printcmd.c (info_symbol_command): Use all_objfiles.
12805 * objfiles.h (ALL_OBJSECTIONS): Remove.
12806 * maint.c (maintenance_translate_address): Use all_objfiles.
12807 * gcore.c (gcore_create_callback): Use all_objfiles.
12808 (objfile_find_memory_regions): Likewise.
12809
8b31193a
TT
128102019-01-09 Tom Tromey <tom@tromey.com>
12811
12812 * symtab.c (find_line_symtab, info_sources_command)
12813 (make_source_files_completion_list): Use objfile_compunits.
12814 * source.c (select_source_symtab): Use objfile_compunits.
12815 * objfiles.h (struct objfile): Update comment.
12816 (ALL_OBJFILES): Remove.
12817 (ALL_FILETABS): Remove.
12818 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12819 objfile_compunits.
12820
d5da8b3c
TT
128212019-01-09 Tom Tromey <tom@tromey.com>
12822
12823 * symmisc.c (print_objfile_statistics, dump_objfile)
12824 (maintenance_print_symbols): Use compunit_filetabs.
12825 * source.c (forget_cached_source_info_for_objfile): Use
12826 compunit_filetabs.
12827 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12828 (ALL_FILETABS): Use compunit_filetabs.
12829 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12830 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12831
5accd1a0
TT
128322019-01-09 Tom Tromey <tom@tromey.com>
12833
12834 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12835 (compunit_filetabs): New.
12836 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12837 compunit_filetabs.
12838 (info_sources_command, make_source_files_completion_list): Remove
12839 declaration.
12840 * symmisc.c (print_objfile_statistics, dump_objfile)
12841 (maintenance_print_symbols): Remove declaration.
12842 (maintenance_info_symtabs): Use compunit_filetabs.
12843 (maintenance_info_line_tables): Likewise.
12844 * source.c (select_source_symtab): Change local variable name.
12845 (forget_cached_source_info_for_objfile): Remove declaration.
12846 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12847 * objfiles.c (objfile_relocate1): Remove declaration.
12848 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12849 declaration.
12850 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12851 * coffread.c (coff_symtab_read): Remove declaration.
12852 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12853 compunit_filetabs.
12854
d8aeb77f
TT
128552019-01-09 Tom Tromey <tom@tromey.com>
12856
12857 * symtab.c (lookup_objfile_from_block)
12858 (find_pc_sect_compunit_symtab, search_symbols)
12859 (default_collect_symbol_completion_matches_break_on): Use
12860 objfile_compunits.
12861 * objfiles.h (ALL_COMPUNITS): Remove.
12862 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12863 * cp-support.c (add_symbol_overload_list_qualified): Use
12864 objfile_compunits.
12865 * ada-lang.c (ada_collect_symbol_completion_matches)
12866 (ada_add_global_exceptions): Use objfile_compunits.
12867
592553c4
TT
128682019-01-09 Tom Tromey <tom@tromey.com>
12869
12870 * source.c (select_source_symtab)
12871 (forget_cached_source_info_for_objfile): Remove declaration.
12872 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12873 declaration.
12874 * maint.c (count_symtabs_and_blocks): Remove declaration.
12875 * cp-support.c (add_symbol_overload_list_qualified): Remove
12876 declaration.
12877 * coffread.c (coff_symtab_read): Remove declaration.
12878 * symtab.c (lookup_symbol_in_objfile_symtabs)
12879 (basic_lookup_transparent_type_1): Use objfile_compunits.
12880 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12881 (info_sources_command, search_symbols)
12882 (default_collect_symbol_completion_matches_break_on)
12883 (make_source_files_completion_list): Remove declaration.
12884 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12885 (ada_collect_symbol_completion_matches)
12886 (ada_add_global_exceptions): Remove declaration.
12887 * linespec.c (iterate_over_all_matching_symtabs): Use
12888 objfile_compunits.
12889 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12890 (class objfile_compunits): New.
12891 (ALL_COMPUNITS): Use objfile_compunits.
12892 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12893 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12894 objfile_compunits.
12895 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12896
5325b9bf
TT
128972019-01-09 Tom Tromey <tom@tromey.com>
12898
12899 * symtab.c (search_symbols)
12900 (default_collect_symbol_completion_matches_break_on): Use
12901 objfile_msymbols.
12902 * ada-lang.c (ada_lookup_simple_minsym)
12903 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12904 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12905 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12906 objfile_msymbols.
12907 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12908 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12909 * objc-lang.c (find_methods): Use objfile_msymbols.
12910 (info_selectors_command, info_classes_command): Likewise.
12911 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12912 * objfiles.h (class objfile_msymbols): New.
12913 (ALL_OBJFILE_MSYMBOLS): Remove.
12914 (ALL_MSYMBOLS): Remove.
12915
cac85af2
TT
129162019-01-09 Tom Tromey <tom@tromey.com>
12917
12918 * common/next-iterator.h (next_adapter): Add Iterator template
12919 parameter.
12920 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12921 (class all_objfiles_safe): New.
12922 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12923 * objfiles.c (put_objfile_before): Update comment.
12924 (add_separate_debug_objfile): Likewise.
12925 (free_all_objfiles): Use all_objfiles_safe.
12926 (objfile_purge_solibs): Likewise.
12927
aed57c53
TT
129282019-01-09 Tom Tromey <tom@tromey.com>
12929
12930 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12931 (expand_symtab_containing_pc, lookup_static_symbol)
12932 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12933 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12934 all_objfiles.
12935 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12936 * breakpoint.c (create_overlay_event_breakpoint)
12937 (create_longjmp_master_breakpoint)
12938 (create_std_terminate_master_breakpoint)
12939 (create_exception_master_breakpoint): Use all_objfiles.
12940 * linux-thread-db.c (try_thread_db_load_from_pdir)
12941 (has_libpthread): Use all_objfiles.
12942 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12943 * linespec.c (iterate_over_all_matching_symtabs)
12944 (search_minsyms_for_name): Use all_objfiles.
12945 * maint.c (maintenance_info_sections): Use all_objfiles.
12946 * main.c (captured_main_1): Use all_objfiles.
12947 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12948 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12949 * guile/scm-pretty-print.c
12950 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12951 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12952 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12953 (maintenance_print_msymbols): Use all_objfiles.
12954 * source.c (select_source_symtab): Use all_objfiles.
12955 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12956 * symfile.c (remove_symbol_file_command)
12957 (expand_symtabs_matching, map_symbol_filenames): Use
12958 all_objfiles.
12959 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12960 all_objfiles.
12961 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12962 * objc-lang.c (find_methods): Use all_objfiles.
12963 * objfiles.c (have_partial_symbols, have_full_symbols)
12964 (have_minimal_symbols, qsort_cmp)
12965 (default_iterate_over_objfiles_in_search_order): Use
12966 all_objfiles.
12967 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12968 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12969 (maintenance_check_psymtabs): Use all_objfiles.
12970 (ALL_PSYMTABS): Remove.
12971 * compile/compile-object-run.c (do_module_cleanup): Use
12972 all_objfiles.
12973 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12974 * cp-support.c (add_symbol_overload_list_qualified): Use
12975 all_objfiles.
12976 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12977 Use all_objfiles.
12978 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12979 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12980 all_objfiles.
12981 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12982 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12983 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12984 Uses all_objfiles.
12985 * solib.c (solib_read_symbols): Use all_objfiles
12986
99d89cde
TT
129872019-01-09 Tom Tromey <tom@tromey.com>
12988
12989 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12990 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12991 all_objfiles.
12992 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12993 * symmisc.c (print_symbol_bcache_statistics)
12994 (print_objfile_statistics, maintenance_print_objfiles)
12995 (maintenance_info_symtabs, maintenance_check_symtabs)
12996 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12997 all_objfiles.
12998 * source.c (forget_cached_source_info): Use all_objfiles.
12999 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13000 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13001 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13002 * objfiles.c (update_section_map): Use all_objfiles.
13003 (shared_objfile_contains_address_p): Likewise.
13004 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13005 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13006
21708325
TT
130072019-01-09 Tom Tromey <tom@tromey.com>
13008
13009 * common/next-iterator.h: New file.
13010 * objfiles.h (class all_objfiles): New.
13011 (struct objfile_iterator): New.
13012
669e09f6
PW
130132019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13014
13015 * NEWS: Move the description of the changed "frame", "select-frame",
13016 and "info frame" commands to the Changed commands section.
13017
041be526
SM
130182019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13019
13020 * gdbtypes.c (check_stub_method_group): Remove handling of old
13021 mangling schemes.
13022 * linespec.c (find_methods): Likewise.
13023 * stabsread.c (read_member_functions): Likewise.
13024 * valops.c (search_struct_method): Likewise.
13025 (value_struct_elt_for_reference): Likewise.
13026 * NEWS: Mention this change.
13027
0e2a2133
AB
130282019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13029
13030 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13031 print_source_lines.
13032 * source.c (print_source_lines_base): Update line number check.
13033 (print_source_lines): New function.
13034 (source_lines_range::source_lines_range): New function.
13035 * source.h (class source_lines_range): New class.
13036 (print_source_lines): New declaration.
13037
1055a3b4
PW
130382019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13039
13040 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13041
cfeadda5
TT
130422019-01-08 Tom Tromey <tom@tromey.com>
13043 Simon Marchi <simon.marchi@ericsson.com>
13044
13045 PR gdb/24060
13046 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13047 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13048 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13049 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13050 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13051 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13052
583068ca
AB
130532019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13054
13055 * source.c (select_source_symtab): Move header comment to
13056 declaration in source.h.
13057 (forget_cached_source_info_for_objfile): Likewise.
13058 (forget_cached_source_info): Likewise.
13059 (identify_source_line): Likewise.
13060 * source.h (identify_source_line): Move declaration from symtab.h
13061 and add comment from source.c
13062 (print_source_lines): Likewise.
13063 (forget_cached_source_info_for_objfile): Likewise.
13064 (forget_cached_source_info): Likewise.
13065 (select_source_symtab): Likewise.
13066 (enum print_source_lines_flag): Move definition from symtab.h.
13067 * symtab.h (identify_source_line): Move declaration to source.h.
13068 (print_source_lines): Likewise.
13069 (forget_cached_source_info_for_objfile): Likewise.
13070 (forget_cached_source_info): Likewise.
13071 (select_source_symtab): Likewise.
13072 (enum print_source_lines_flag): Move definition to source.h.
13073 * tui/tui-hooks.c: Add 'source.h' include.
13074
ec98a4ad
AB
130752019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13076
13077 * source.c (print_source_lines_base): Handle requests to print
13078 reverse line number sequences, and guard against empty lines
13079 string.
13080
62ea19c1
AB
130812019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13082
13083 * source.c (print_source_lines_base): Fix skip of '\r' if next
13084 character is '\n'.
13085
9d30e1fd
TT
130862019-01-06 Tom Tromey <tom@tromey.com>
13087
13088 * c-exp.y (struct c_parse_state) <macro_original_text,
13089 expansion_obstack>: New member.
13090 (macro_original_text, expansion_obstack): Remove globals.
13091 (scan_macro_expansion, scanning_macro_expansion)
13092 (finished_macro_expansion): Update.
13093 (scan_macro_cleanup): Remove.
13094 (yylex, c_parse): Update.
13095
c65bac38
TT
130962019-01-06 Tom Tromey <tom@tromey.com>
13097
13098 * c-exp.y (struct c_parse_state) <strings>: New member.
13099 (operator_stoken): Update.
13100
02e12e38
TT
131012019-01-06 Tom Tromey <tom@tromey.com>
13102
13103 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13104 (union type_stack_elt) <typelist_val>: Now a pointer to
13105 std::vector.
13106 (type_stack_cleanup): Don't declare.
13107 (push_typelist): Update.
13108 * parse.c (pop_typelist): Return a std::vector.
13109 (push_typelist): Take a std::vector.
13110 (follow_types): Update. Do not free args.
13111 (type_stack_cleanup): Remove.
13112 * c-exp.y (struct c_parse_state): New.
13113 (cpstate): New global.
13114 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13115 (nonempty_typelist): Update.
13116 (func_mod): Create a new vector.
13117 (c_parse): Create a c_parse_state.
13118 (check_parameter_typelist): Do not delete params.
13119 (function_method): Update. Do not delete type_list.
13120
f097f5ad
TT
131212019-01-06 Tom Tromey <tom@tromey.com>
13122
13123 PR gdb/28155:
13124 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13125 check_typedef.
13126 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13127 (print_return_value): Likewise.
13128
d2adf9f1
TT
131292019-01-05 Tom Tromey <tom@tromey.com>
13130
13131 * contrib/cleanup_check.py: Remove.
13132 * contrib/gcc-with-excheck: Remove.
13133 * contrib/exsummary.py: Remove.
13134 * contrib/excheck.py: Remove.
13135
2eab46b1
JB
131362019-01-05 Joel Brobecker <brobecker@adacore.com>
13137
13138 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13139 NULL. Initialize tpprev to NULL instead of assigning it
13140 to NULL on the next statement.
13141 * windows-nat.c (windows_delete_thread): Remove check for
13142 main_thread_id before printing thread exit notifications.
13143 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13144 Remove thread ID check against main_thread_id.
13145 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13146 windows_delete_thread.
13147 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13148
48c5e7e2
TT
131492019-01-04 Tom Tromey <tom@tromey.com>
13150
13151 * compile/compile.c (_initialize_compile): Use upper case for
13152 metasyntactic variables.
13153 * symmisc.c (_initialize_symmisc): Use upper case for
13154 metasyntactic variables.
13155 * psymtab.c (_initialize_psymtab): Use upper case for
13156 metasyntactic variables.
13157 * demangle.c (demangle_command): Use upper case for metasyntactic
13158 variables.
13159 (_initialize_demangler): Likewise.
13160 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13161 variables.
13162
986041cd
TT
131632019-01-03 Tom Tromey <tom@tromey.com>
13164
13165 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13166
7c711119
TT
131672019-01-03 Tom Tromey <tom@tromey.com>
13168
13169 * python/py-symtab.c (salpy_str): Update.
13170 (struct salpy_sal_object) <symtab>: Now a PyObject.
13171 (salpy_dealloc): Update.
13172 (del_objfile_sal): Use gdbpy_ref.
13173
1b20edf0
TT
131742019-01-03 Tom Tromey <tom@tromey.com>
13175
13176 * python/py-type.c (convert_field): Use new_reference. Return
13177 gdbpy_ref.
13178 (make_fielditem): Return gdbpy_ref.
13179 (typy_fields): Update.
13180 (typy_getitem): Update.
13181 (field_name): Return gdbpy_ref. Use new_reference.
13182 (typy_iterator_iternext): Update.
13183
ea41325b
TT
131842019-01-03 Tom Tromey <tom@tromey.com>
13185
13186 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13187
2a3c71d6
TT
131882019-01-03 Tom Tromey <tom@tromey.com>
13189
13190 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13191 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13192 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13193 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13194 (pspy_set_type_printers): Likewise.
13195 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13196 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13197 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13198 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13199 (objfpy_set_type_printers): Likewise.
13200
5c329e6a
TT
132012019-01-03 Tom Tromey <tom@tromey.com>
13202
13203 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13204 (gdbpy_print_stack): Use gdbpy_err_fetch.
13205 * python/python-internal.h (class gdbpy_err_fetch): New class.
13206 (class gdbpy_enter) <m_error_type, m_error_value,
13207 m_error_traceback>: Remove.
13208 <m_error>: New member.
13209 (gdbpy_exception_to_string): Don't declare.
13210 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13211 * python/py-value.c (convert_value_from_python): Use
13212 gdbpy_err_fetch.
13213 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13214 gdbpy_exception_to_string.
13215 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13216 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13217 gdbpy_err_fetch.
13218
169bb27b
AB
132192019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13220
13221 * linux-nat.c (delete_lwp_cleanup): Delete.
13222 (struct lwp_deleter): New struct.
13223 (lwp_info_up): New typedef.
13224 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13225 lwp_info_up.
13226
a07c8880
AB
132272019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13228
13229 * linux-fork.c (class scoped_switch_fork_info): New class.
13230 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13231
26089c49
AB
132322019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13233
13234 * valops.c (find_overload_match): Remove use of null_cleanup, and
13235 calls to do_cleanups.
13236
06d3e5b0
AB
132372019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13238
13239 * compile/compile-cplus-types.c
13240 (compile_cplus_instance::decl_name): Handle changes to
13241 cp_func_name.
13242 * cp-support.c (cp_func_name): Update header comment, update
13243 return type.
13244 * cp-support.h (cp_func_name): Update return type in declaration.
13245 * valops.c (find_overload_match): Move temp_func local to top
13246 level of function and change its type. Use temp_func to hold and
13247 delete temporary string obtained from cp_func_name.
13248
66644cd3
AB
132492019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13250
13251 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13252 gdb::char_vector, remove cleanup, and update uses of `msg`.
13253
592d8c0a
JW
132542019-01-03 Jim Wilson <jimw@sifive.com>
13255
13256 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13257
c55d06ec
TT
132582019-01-02 Tom Tromey <tom@tromey.com>
13259
13260 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13261 (tdesc_parse_xml): Remove cleanups.
13262 * target-descriptions.h (make_cleanup_free_target_description):
13263 Don't declare.
13264 (target_desc_deleter): New struct.
13265 (target_desc_up): New typedef.
13266 * target-descriptions.c (target_desc_deleter::operator()): Rename
13267 from free_target_description.
13268 (make_cleanup_free_target_description): Remove.
13269
3a6ae42d
TT
132702019-01-02 Tom Tromey <tom@tromey.com>
13271
13272 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
13273 constructor, destructor.
13274 (linespec_parser): Remove typedef.
13275 (~linespec_parser): Rename from linespec_parser_delete.
13276 (linespec_lex_to_end, linespec_complete_label)
13277 (linespec_complete): Update.
13278 (decode_line_full): Remove cleanups.
13279 (decode_line_1): Update.
13280
61fd3e73
TT
132812019-01-02 Tom Tromey <tom@tromey.com>
13282
13283 * python/python-internal.h (inferior_to_inferior_object): Change
13284 return type.
13285 * python/py-exitedevent.c (create_exited_event_object): Update.
13286 * python/py-inferior.c (inferior_to_inferior_object): Return
13287 gdbpy_ref.
13288 (python_new_inferior, python_inferior_deleted)
13289 (thread_to_thread_object, delete_thread_object)
13290 (build_inferior_list, gdbpy_selected_inferior): Update.
13291 * python/py-infthread.c (create_thread_object): Update. Also fail
13292 if inferior_to_inferior_object fails.
13293
d20172fc
SM
132942019-01-02 Simon Marchi <simon.marchi@ericsson.com>
13295
13296 * inferior.h (class inferior) <displaced_step_state>: New field.
13297 * infrun.h (struct displaced_step_state): Move here from
13298 infrun.c. Initialize fields, add constructor.
13299 <inf>: Remove field.
13300 <reset>: New method.
13301 * infrun.c (struct displaced_step_inferior_state): Move to
13302 infrun.h.
13303 (displaced_step_inferior_states): Remove.
13304 (get_displaced_stepping_state): Adust.
13305 (displaced_step_in_progress_any_inferior): Adjust.
13306 (displaced_step_in_progress_thread): Adjust.
13307 (displaced_step_in_progress): Adjust.
13308 (add_displaced_stepping_state): Remove.
13309 (get_displaced_step_closure_by_addr): Adjust.
13310 (remove_displaced_stepping_state): Remove.
13311 (infrun_inferior_exit): Call displaced_step_state.reset.
13312 (use_displaced_stepping): Don't check for NULL.
13313 (displaced_step_prepare_throw): Call
13314 get_displaced_stepping_state.
13315 (displaced_step_fixup): Don't check for NULL.
13316 (prepare_for_detach): Don't check for NULL.
13317
e3319240
PW
133182019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13319
13320 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13321 in case of call that did not complete.
13322
5d36dfb9
AU
133232019-01-02 Andrey Utkin <autkin@undo.io>
13324
13325 * symfile.c (find_separate_debug_file): Fix search of debug files for
13326 remote debuggee.
13327
8833fbf0
TT
133282019-01-02 Tom Tromey <tom@tromey.com>
13329
13330 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13331 indentation.
13332 * python/py-frame.c (frapy_older): Remove cast.
13333 (frapy_newer): Likewise.
13334 * python/py-breakpoint.c (local_setattro): Remove cast.
13335 * python/py-arch.c (archpy_name): Remove local variable.
13336 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13337
4ada3dfd
JB
133382019-01-02 Joel Brobecker <brobecker@adacore.com>
13339
13340 * unittests/basic_string_view/element_access/char/empty.cc:
13341 Fix year range in copyright header.
13342
113b7b81
AB
133432019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13344
13345 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13346 Delete.
13347 <operator==>: Update with for removed field.
13348 <hash>: Likewise.
13349 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13350 <isa_features>: ...this.
13351 <abi_features>: New field.
13352 (riscv_isa_flen): Update comment.
13353 (riscv_abi_xlen): New declaration.
13354 (riscv_abi_flen): New declaration.
13355 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13356 isa_features.
13357 (riscv_abi_xlen): New function.
13358 (riscv_isa_flen): Update to get answer from isa_features.
13359 (riscv_abi_flen): New function.
13360 (riscv_has_fp_abi): Update to get answer from abi_features.
13361 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13362 xlen and flen.
13363 (riscv_call_info) <xlen, flen>: Update comment.
13364 (riscv_call_arg_struct): Remove invalid assertions
13365 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13366 is removed.
13367 (riscv_gdbarch_init): Gather isa features and abi features
13368 separately, ensure both match on the gdbarch when reusing an old
13369 gdbarch. Relax an error check to allow 32-bit abi float to run on
13370 a target with 64-bit float hardware.
13371
b18ca514
PW
133722019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13373
13374 * source.c (search_command_helper): Stop reverse search
13375 when line 1 has been searched.
13376
ec70d8db
PW
133772019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13378
13379 * record-full.c (record_full_base_target::close): Rewrite
13380 record_full_core_buf_list free logic.
13381
5b38f9c1
PW
133822019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13383
13384 * break-catch-syscall.c (print_one_catch_syscall): xfree
13385 the last text.
13386
66d91b39
JB
133872019-01-01 Joel Brobecker <brobecker@adacore.com>
13388
13389 * top.c (print_gdb_version): Update Copyright year in version
13390 message.
13391
42a4f53d
JB
133922019-01-01 Joel Brobecker <brobecker@adacore.com>
13393
13394 Update copyright year range in all GDB files.
13395
7e955d83 133962019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 13397
5bbd631d 13398 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 13399
5bbd631d 13400For older changes see ChangeLog-2018.
c906108c
SS
13401\f
13402Local Variables:
13403mode: change-log
13404left-margin: 8
13405fill-column: 74
13406version-control: never
57da7796 13407coding: utf-8
c906108c 13408End:
5bbd631d 13409
This page took 3.437939 seconds and 4 git commands to generate.