Use gdb_static_assert in charset.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2
3 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
4 gdb_static_assert.
5
6 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
7
8 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
9 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
10 * ctfread.c: New file.
11 * ctfread.h: New file.
12 * elfread.c: Include ctfread.h.
13 (struct elfinfo text_p): New member ctfsect.
14 (elf_locate_sections): Mark CTF section.
15 (elf_symfile_read): Call elfctf_build_psymtabs.
16 * Makefile.in (LIBCTF): Add.
17 (CLIBS): Use it.
18 (CDEPS): Likewise.
19 (DIST): Add ctfread.c.
20
21 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
22
23 * ctfread.c (struct nextfield): Renamed to ...
24 (struct ctf_nextfield): ... this.
25 (struct field_info): Renamed to ...
26 (strut ctf_field_info): ... this.
27 (attach_fields_to_type): Update for renamed structures.
28 (ctf_add_member_cb): Likewise.
29 (ctf_add_enum_member_cb): Likewise.
30 (process_struct_members): Likewise.
31 (process_enum_type): Likewise.
32
33 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
34
35 * tracectf.h: Rename, was ctf.h.
36 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
37 * tracefile.c: Likewise.
38 * tracepoint.c: Remove unused include ctf.h.
39 * mi/mi-main.c: Likewise.
40 * Makefile.in Replace ctf.c with tracectf.c.
41
42 2019-10-06 Joel Brobecker <brobecker@adacore.com>
43
44 * version.in: Change version number to "9.0.50.DATE-git".
45
46 2019-10-03 Tom Tromey <tom@tromey.com>
47
48 PR rust/24976:
49 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
50
51 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
52
53 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
54 cp_search_name_hash.
55 * NEWS: Add entry about nested function support.
56
57 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
58 Andrew Burgess <andrew.burgess@embecosm.com>
59
60 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
61 for nested static variables when searchin VAR_DOMAIN.
62 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
63 global scope, update comment.
64 (add_partial_subprogram): Call add_partial_subprogram recursively
65 for nested subroutines when processinng Fortran.
66 (load_partial_dies): Process the child entities of a subprogram
67 when processing Fortran.
68 (partial_die_parent_scope): Handle building scope
69 for Fortran nested functions.
70 (process_die): Record that nested functions have a scope.
71 (new_symbol): Always record Fortran subprograms on the global
72 symbol list.
73 (determine_prefix): How to build the prefix for Fortran
74 subprograms.
75
76 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
77
78 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
79 have just sent the thread a SIGSTOP and are waiting for it to
80 arrive.
81
82 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
83
84 * btrace.c (btrace_add_pc): Remove whitespace before the template
85 parameter in 'std::vector <...>'.
86 (parse_xml_btrace_block): Likewise.
87 (btrace_maint_decode_pt): Likewise.
88 (btrace_maint_update_packets): Likewise.
89 (btrace_maint_print_packets): Likewise.
90 * btrace.h (struct btrace_maint_info): Likewise.
91 * dwarf2read.c (struct type_unit_group): Likewise.
92 (build_type_psymtabs_reader): Likewise.
93 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
94 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
95 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
96
97 2019-10-03 Tom de Vries <tdevries@suse.de>
98
99 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
100 the first line of the help text for set/show style metadata.
101
102 2019-10-02 Tom Tromey <tromey@adacore.com>
103
104 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
105 * gdbsupport/common-inferior.c: New file.
106 * infcmd.c (startup_with_shell): Don't define.
107 * nat/fork-inferior.h (startup_with_shell): Don't declare.
108 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
109 * inferior.h (startup_with_shell): Don't declare.
110
111 2019-10-02 Christian Biesinger <cbiesinger@google.com>
112
113 * gdbsupport/gdb_assert.h: Include errors.h.
114 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
115
116 2019-10-02 Tom Tromey <tromey@adacore.com>
117
118 * NEWS: Add $_ada_exception entry.
119 * ada-lang.c (struct ada_catchpoint): Add constructor.
120 <m_kind>: New member.
121 (allocate_location_exception, re_set_exception): Remove
122 "ex" parameter.
123 (should_stop_exception): Compute $_ada_exception.
124 (check_status_exception, print_it_exception)
125 (print_one_exception, print_mention_exception): Remove
126 "ex" parameter.
127 (allocate_location_catch_exception, re_set_catch_exception)
128 (check_status_exception, print_it_catch_exception)
129 (print_one_catch_exception, print_mention_catch_exception)
130 (print_recreate_catch_exception)
131 (allocate_location_catch_exception_unhandled)
132 (re_set_catch_exception_unhandled)
133 (check_status_exception, print_it_catch_exception_unhandled)
134 (print_one_catch_exception_unhandled)
135 (print_mention_catch_exception_unhandled)
136 (print_recreate_catch_exception_unhandled)
137 (allocate_location_catch_assert, re_set_catch_assert)
138 (check_status_assert, print_it_catch_assert)
139 (print_one_catch_assert, print_mention_catch_assert)
140 (print_recreate_catch_assert)
141 (allocate_location_catch_handlers, re_set_catch_handlers)
142 (check_status_handlers, print_it_catch_handlers)
143 (print_one_catch_handlers, print_mention_catch_handlers)
144 (print_recreate_catch_handlers): Remove.
145 (create_ada_exception_catchpoint): Update.
146 (initialize_ada_catchpoint_ops): Update.
147
148 2019-10-02 Tom Tromey <tromey@adacore.com>
149
150 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
151 (create_excep_cond_exprs): Simplify exception string computation.
152 (ada_exception_catchpoint_cond_string): Likewise.
153
154 2019-10-02 Tom Tromey <tromey@adacore.com>
155
156 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
157 * ada-lang.c (lesseq_defined_than): Handle
158 LOC_STATIC.
159 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
160 parameter.
161 (dwarf2_has_info): Likewise.
162 (new_symbol): Set maybe_copied on symbol when
163 appropriate.
164 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
165 parameter.
166 <can_copy>: New member.
167 * elfread.c (record_minimal_symbol): Set maybe_copied
168 on symbol when appropriate.
169 (elf_symfile_read): Update call to dwarf2_has_info.
170 * minsyms.c (lookup_minimal_symbol_linkage): New
171 function.
172 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
173 * symtab.c (get_symbol_address, get_msymbol_address):
174 New functions.
175 * symtab.h (get_symbol_address, get_msymbol_address):
176 Declare.
177 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
178 maybe_copied.
179 (struct symbol, struct minimal_symbol) <maybe_copied>:
180 New member.
181
182 2019-10-02 Tom Tromey <tromey@adacore.com>
183
184 * source.c (struct current_source_location): New.
185 (current_source_key): New global.
186 (current_source_symtab, current_source_line)
187 (current_source_pspace): Remove.
188 (get_source_location): New function.
189 (get_current_source_symtab_and_line)
190 (set_default_source_symtab_and_line)
191 (set_current_source_symtab_and_line)
192 (clear_current_source_symtab_and_line, select_source_symtab)
193 (info_source_command, print_source_lines_base)
194 (info_line_command, search_command_helper, _initialize_source):
195 Update.
196
197 2019-10-02 Tom Tromey <tromey@adacore.com>
198
199 * source.c (select_source_symtab): Don't call
200 decode_line_with_current_source.
201
202 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
203
204 * symtab.c (lookup_global_symbol): Search global block.
205
206 2019-10-02 Tom Tromey <tromey@adacore.com>
207
208 * coffread.c (process_coff_symbol): Update.
209 * dwarf2read.c (var_decode_location, new_symbol): Update.
210 * mdebugread.c (parse_symbol): Update.
211 * objfiles.c (relocate_one_symbol): Update.
212 * stabsread.c (define_symbol, fix_common_block)
213 (scan_file_globals): Update.
214 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
215 (SET_SYMBOL_VALUE_ADDRESS): New macro.
216 * xcoffread.c (process_xcoff_symbol): Update.
217
218 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
219
220 * MAINTAINERS: Update my email address.
221
222 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
223
224 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
225 std::vector.
226 (build_type_psymtabs_reader): Update for std::vector.
227 (build_type_psymtab_dependencies): Likewise.
228 * dwarf2read.h: Remove use of DEF_VEC_P.
229 (typedef sig_type_ptr): Delete.
230
231 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
232
233 * btrace.c (btrace_maint_clear): Update to handle change from VEC
234 to std::vector.
235 (btrace_maint_decode_pt): Likewise, and move allocation of the
236 vector outside of the loop.
237 (btrace_maint_update_packets): Update to handle change from VEC to
238 std::vector.
239 (btrace_maint_print_packets): Likewise.
240 (maint_info_btrace_cmd): Likewise.
241 * btrace.h: Remove use of DEF_VEC_O.
242 (typedef btrace_pt_packet_s): Delete.
243 (struct btrace_maint_info) <packets>: Change fromm VEC to
244 std::vector.
245 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
246
247 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
248
249 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
250 make accesses into the vector constant references.
251 (btrace_add_pc): Update for std::vector.
252 (btrace_stitch_bts): Likewise.
253 (parse_xml_btrace_block): Likewise.
254 (btrace_maint_update_packets): Likewise.
255 (btrace_maint_print_packets): Likewise.
256 (maint_info_btrace_cmd): Likewise.
257 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
258 std::vector.
259 (btrace_data::empty): Likewise.
260 (btrace_data_append): Likewise.
261 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
262 (typedef btrace_block_s): Delete.
263 (struct btrace_block): Add constructor.
264 (struct btrace_data_bts) <blocks>: Change to std::vector.
265 * nat/linux-btrace.c (perf_event_read_bts): Update for
266 std::vector.
267 (linux_read_bts): Likewise.
268
269 2019-10-01 Tom Tromey <tom@tromey.com>
270
271 * cli/cli-logging.c (show_logging_filename): Use styled_string.
272
273 2019-10-01 Tom Tromey <tom@tromey.com>
274
275 * stack.c (print_frame, info_frame_command_core): Use
276 styled_string.
277 * linux-thread-db.c (try_thread_db_load_1)
278 (try_thread_db_load_from_pdir_1): Use styled_string.
279 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
280 (auto_load_section_scripts, info_auto_load_local_gdbinit)
281 (maybe_print_unsupported_script_warning)
282 (maybe_print_script_not_found_warning): Use styled_string.
283 * ada-lang.c (user_select_syms): Use styled_string.
284
285 2019-10-01 Tom Tromey <tom@tromey.com>
286
287 * p-lang.c (pascal_printstr): Use metadata style.
288 * value.c (show_convenience): Use metadata style.
289 * valprint.c (valprint_check_validity, val_print_optimized_out)
290 (val_print_not_saved, val_print_unavailable)
291 (val_print_invalid_address, generic_val_print, val_print)
292 (value_check_printable, val_print_array_elements): Use metadata
293 style.
294 * ui-out.h (class ui_out) <field_fmt>: New overload.
295 <do_field_fmt>: Add style parameter.
296 * ui-out.c (ui_out::field_fmt): New overload.
297 * typeprint.c (type_print_unknown_return_type)
298 (val_print_not_allocated, val_print_not_associated): Use metadata
299 style.
300 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
301 parameter.
302 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
303 * tracepoint.c (tvariables_info_1): Use metadata style.
304 * stack.c (print_frame_arg, print_frame_info, print_frame)
305 (info_frame_command_core): Use metadata style.
306 * skip.c (info_skip_command): Use metadata style.
307 * rust-lang.c (rust_print_enum): Use metadata style.
308 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
309 metadata style.
310 * python/py-framefilter.c (py_print_single_arg): Use metadata
311 style.
312 * printcmd.c (do_one_display, print_variable_and_value): Use
313 metadata style.
314 * p-valprint.c (pascal_val_print)
315 (pascal_object_print_value_fields): Use metadata style.
316 * p-typeprint.c (pascal_type_print_base): Use metadata style.
317 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
318 parameter.
319 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
320 * m2-valprint.c (m2_print_long_set): Use metadata style.
321 * m2-typeprint.c (m2_print_type): Use metadata style.
322 * infcmd.c (print_return_value_1): Use metadata style.
323 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
324 * f-valprint.c (info_common_command_for_block): Use metadata
325 style.
326 * f-typeprint.c (f_type_print_base): Use metadata style.
327 * expprint.c (print_subexp_standard): Use metadata style.
328 * cp-valprint.c (cp_print_value_fields): Use metadata style.
329 * cli/cli-style.h (class cli_style_option): Add constructor.
330 (metadata_style): Declare.
331 * cli/cli-style.c (metadata_style): New global.
332 (_initialize_cli_style): Register metadata style.
333 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
334 parameter.
335 * cli-out.c (cli_ui_out::do_field_fmt): Update.
336 * c-typeprint.c (c_type_print_base_struct_union)
337 (c_type_print_base_1): Use metadata style.
338 * breakpoint.c (watchpoint_value_print)
339 (print_one_breakpoint_location): Use metadata style.
340 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
341 style.
342 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
343 style.
344 * ada-valprint.c (val_print_packed_array_elements, printstr)
345 (print_field_values, ada_val_print_ref, ada_val_print): Use
346 metadata style.
347 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
348 style.
349 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
350 style.
351 * ada-lang.c (user_select_syms): Use metadata style.
352
353 2019-10-01 Tom Tromey <tom@tromey.com>
354
355 * cli/cli-cmds.c (pwd_command): Style output.
356
357 2019-10-01 Pedro Alves <palves@redhat.com>
358 Tom Tromey <tom@tromey.com>
359
360 * symtab.c (print_symbol_info): Use %ps.
361 (print_msymbol_info): Use %ps.
362 * symfile.c (symbol_file_add_with_addrs): Use %ps.
363 * printcmd.c (print_variable_and_value): Use %ps.
364 * macrocmd.c (show_pp_source_pos): Use %ps.
365 * infrun.c (print_exited_reason): Use ui_out::message.
366 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
367 (describe_other_breakpoints): Use ui_out::message and new
368 formats.
369 (say_where): Use new formats.
370 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
371 and new formats.
372
373 2019-10-01 Pedro Alves <palves@redhat.com>
374 Tom Tromey <tom@tromey.com>
375
376 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
377 (test_gdb_formats): New function.
378 (run_tests): Call it.
379 (test_format_specifier): Update.
380 * utils.h (fputs_filtered): Update comment.
381 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
382 (fputs_styled_unfiltered): Declare.
383 * utils.c (fputs_styled_unfiltered): New function.
384 (vfprintf_maybe_filtered): Add gdbfmt parameter.
385 (vfprintf_filtered): Update.
386 (vfprintf_unfiltered, vprintf_filtered): Update.
387 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
388 * ui-out.h (enum ui_out_flag) <unfiltered_output,
389 disallow_ui_out_field>: New constants.
390 (enum class field_kind): New.
391 (struct base_field_s, struct signed_field_s): New.
392 (signed_field): New function.
393 (struct string_field_s): New.
394 (string_field): New function.
395 (struct styled_string_s): New.
396 (styled_string): New function.
397 (class ui_out) <message>: Add comment.
398 <vmessage, call_do_message>: New methods.
399 <do_message>: Add style parameter.
400 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
401 methods.
402 (ui_out::message): Rewrite.
403 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
404 parameter.
405 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
406 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
407 gdb_extensions parameter.
408 (class format_piece): Add parameter to constructor.
409 (n_int_args): New field.
410 * gdbsupport/format.c (format_pieces::format_pieces): Add
411 gdb_extensions parameter. Handle '*'.
412 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
413 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
414 vfprintf_styled_no_gdbfmt.
415 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
416 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
417 unfiltered output.
418 * ui-style.h (struct ui_file_style) <ptr>: New method.
419
420 2019-10-01 Tom Tromey <tom@tromey.com>
421
422 * unittests/format_pieces-selftests.c: Update. Add final format.
423 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
424 empty literal pieces.
425
426 2019-10-01 Tom Tromey <tom@tromey.com>
427
428 * ui-out.h (enum class ui_out_style_kind): Remove.
429 (class ui_out) <field_string, field_stsream, do_field_string>:
430 Change type of "style".
431 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
432 (ui_out::field_string): Update.
433 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
434 of "style".
435 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
436 * tracepoint.c (print_one_static_tracepoint_marker): Update.
437 * stack.c (print_frame_arg, print_frame_info, print_frame):
438 Update.
439 * source.c (print_source_lines_base): Update.
440 * solib.c (info_sharedlibrary_command): Update.
441 * skip.c (info_skip_command): Update.
442 * record-btrace.c (btrace_call_history_src_line)
443 (btrace_call_history): Update.
444 * python/py-framefilter.c (py_print_frame): Update.
445 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
446 "style".
447 * mi/mi-out.c (mi_ui_out::do_table_header)
448 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
449 (mi_ui_out::do_field_string): Update.
450 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
451 Update.
452 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
453 "style".
454 * cli-out.c (cli_ui_out::do_table_header)
455 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
456 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
457 (cli_ui_out::do_field_fmt): Update.
458 * breakpoint.c (print_breakpoint_location): Update.
459 (update_static_tracepoint): Update.
460
461 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
462
463 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
464 conversion of gdb_datadir.
465 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
466 remove not needed c_str ().
467
468 2019-09-30 Ali Tamur <tamur@google.com>
469
470 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
471 (dwarf2_string_attr): Likewise.
472
473 2019-09-30 Ali Tamur <tamur@google.com>
474
475 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
476 (process_full_type_unit): Likewise.
477 (dump_die_shallow): Likewise.
478 (cu_debug_loc_section): Likewise.
479
480 2019-09-28 Christian Biesinger <cbiesinger@google.com>
481
482 * minsyms.c (compare_minimal_symbols): Rename to...
483 (minimal_symbol_is_less_than): ...this, and adjust to STL
484 conventions (return bool, take arguments as references)
485 (minimal_symbol_reader::install): Call std::sort instead
486 of qsort.
487
488 2019-09-29 Christian Biesinger <cbiesinger@google.com>
489
490 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
491 hash and why.
492 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
493 msymbol_hash, msymbol_demangled_hash>: Improve comments.
494
495 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
496
497 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
498 * psympriv.h (add_psymbol_to_list): Move comment here and update
499 it.
500
501 2019-09-29 Tom de Vries <tdevries@suse.de>
502
503 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
504 Use $tmpdir/$(basename "$output_file").dwz instead of
505 "${output_file}.dwz".
506
507 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
508
509 PR gdb/25045
510 * hppa-linux-nat.c: Include gdbarch.h.
511
512 2019-09-26 Christian Biesinger <cbiesinger@google.com>
513
514 * blockframe.c (find_pc_partial_function): Change return type to bool.
515 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
516 * minsyms.c (in_gnu_ifunc_stub): Likewise.
517 (stub_gnu_ifunc_resolve_name): Likewise.
518 * symtab.c (compare_filenames_for_search): Likewise.
519 (compare_glob_filenames_for_search): Likewise.
520 (matching_obj_sections): Likewise.
521 (symbol_matches_domain): Likewise.
522 (find_line_symtab): Change out param EXACT_MATCH to bool *.
523 (find_line_pc): Change return type to bool.
524 (find_line_pc_range): Likewise.
525 (producer_is_realview): Likewise.
526 * symtab.h (symbol_matches_domain): Likewise.
527 (find_pc_partial_function): Likewise.
528 (find_pc_line_pc_range): Likewise.
529 (in_gnu_ifunc_stub): Likewise.
530 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
531 (find_line_pc): Likewise.
532 (find_line_pc_range): Likewise.
533 (matching_obj_sections): Likewise.
534 (find_line_symtab): Change out parameter to bool.
535 (producer_is_realview): Change return type to bool.
536 (compare_filenames_for_search): Likewise.
537 (compare_glob_filenames_for_search): Likewise.
538
539 2019-09-26 Tom Tromey <tom@tromey.com>
540
541 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
542 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
543 * gdb_usleep.h: Remove.
544 * gdb_usleep.c: Remove.
545 * utils.c: Don't include gdb_usleep.h.
546
547 2019-09-26 Tom Tromey <tromey@adacore.com>
548
549 * python/py-type.c (type_to_type_object): Call check_typedef
550 for stub types.
551
552 2019-09-26 Tom Tromey <tom@tromey.com>
553
554 * utils.h (initialize_utils): Don't declare.
555 * top.c (gdb_init): Don't call initialize_utils.
556 * utils.c (initialize_utils): Remove. Move contents...
557 (_initialize_utils): ... here.
558
559 2019-09-25 Tom Tromey <tom@tromey.com>
560
561 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
562 * utils.h (make_hex_string): Don't declare.
563 * utils.c (make_hex_string): Remove.
564
565 2019-09-24 Tom de Vries <tdevries@suse.de>
566
567 PR gdb/23815
568 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
569 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
570
571 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
572
573 * NEWS: Mention new simulator port for PRU.
574
575 2019-09-23 Christian Biesinger <cbiesinger@google.com>
576
577 * ada-exp.y (write_object_remaining): Update.
578 * ada-lang.c (ada_decode): Return a std::string instead of a char*
579 and eliminate the static buffer.
580 (ada_decode_symbol): Update.
581 (ada_la_decode): Update.
582 (ada_sniff_from_mangled_name): Update.
583 (is_valid_name_for_wild_match): Update.
584 (ada_lookup_name_info::matches): Update and simplify.
585 (name_matches_regex): Update.
586 (ada_add_global_exceptions): Update.
587 * ada-lang.h (ada_decode): Update signature.
588 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
589 * dwarf-index-write.c (debug_names::insert): Update.
590
591 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
592
593 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
594 formatting.
595
596 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
597
598 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
599 Change "nonzero" to "true" in documentation.
600
601 2019-09-20 Christian Biesinger <cbiesinger@google.com>
602
603 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
604 (_initialize_darwin_solib): Don't set
605 darwin_so_ops.lookup_lib_global_symbol.
606 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
607 set_gdbarch_iterate_over_objfiles_in_search_order.
608 (elf_lookup_lib_symbol): Rename to...
609 (svr4_iterate_over_objfiles_in_search_order): this, and update
610 to iterate semantics.
611 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
612 * solib.c (solib_global_lookup): Remove.
613 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
614 (solib_global_lookup): Remove.
615 * symtab.c (lookup_global_or_static_symbol): Remove call to
616 solib_global_lookup.
617
618 2019-09-20 Joel Brobecker <brobecker@adacore.com>
619
620 * NEWS: Move entries about default MI version now being
621 version 3, and about the GDB/MI fix for multi-location
622 breakpoints to the "since GDB 8.3" section.
623
624 2019-09-20 Joel Brobecker <brobecker@adacore.com>
625
626 GDB 8.3.1 released.
627
628 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
629
630 * NEWS: Mention that Cell/B.E. debugging support was removed.
631 * MAINTAINERS: Remove spu target.
632
633 * config/djgpp/fnchange.lst: Remove entries for removed files.
634
635 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
636 spu-multiarch.o, and spu-tdep.o.
637 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
638 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
639 spu-multiarch.c, and spu-tdep.c.
640 * spu-linux-nat.c: Remove file.
641 * spu-multiarch.c: Remove file.
642 * spu-tdep.c: Remove file.
643 * spu-tdep.h: Remove file.
644 * solib-spu.c: Remove file.
645 * solib-spu.h: Remove file.
646
647 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
648 * configure.nat (spu-linux): Remove.
649 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
650 solib-multiarch.o from gdb_target_obs.
651 (spu*-*-*): Remove.
652
653 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
654 feature flag.
655 (ppc_linux_no_features): Update.
656 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
657 Cell/B.E. support.
658 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
659 (tdesc_powerpc_cell64l): Likewise.
660 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
661 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
662 Cell/B.E. support.
663 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
664 Do not include "features/rs6000/powerpc-cell32l.c" or
665 "features/rs6000/powerpc-cell64l.c".
666 (ppc_linux_spu_section): Remove.
667 (ppc_linux_core_read_description): Remove Cell/B.E. support.
668 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
669 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
670 (ppc_linux_spe_context_lookup): Remove.
671 (ppc_linux_spe_context_inferior_created): Remove.
672 (ppc_linux_spe_context_solib_loaded): Remove.
673 (ppc_linux_spe_context_solib_unloaded): Remove.
674 (ppc_linux_spe_context): Remove.
675 (struct ppu2spu_cache): Remove.
676 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
677 (struct ppu2spu_data): Remove.
678 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
679 ppu2spu_unwind): Remove.
680 (ppc_linux_init_abi): Remove Cell/B.E. support.
681 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
682
683 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
684 (rs6000/powerpc-cell64l-expedite): Likewise
685 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
686 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
687 rs6000/powerpc-cell64l.xml.
688 * features/rs6000/powerpc-cell32l.xml: Remove.
689 * features/rs6000/powerpc-cell64l.xml: Likewise.
690 * features/rs6000/powerpc-cell32l.c: Remove generated file.
691 * features/rs6000/powerpc-cell64l.c: Likewise.
692 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
693 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
694 * regformats/reg-spu.dat: Remove.
695
696 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
697 * corelow.c (struct spuid_list): Remove.
698 (add_to_spuid_list): Remove.
699 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
700 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
701 (remote_protocol_features): Remove associated entries.
702 (_initialize_remote): No longer initialize them.
703 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
704 * linux-nat.c (SPUFS_MAGIC): Remove.
705 (linux_proc_xfer_spu): Remove.
706 (spu_enumerate_spu_ids): Remove.
707 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
708 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
709 (linux_make_corefile_notes): No longer call it.
710
711 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
712 (cooked_write_test): Likewise.
713
714 2019-09-20 Tom Tromey <tom@tromey.com>
715
716 * NEWS: Mention case-sensitivity of TUI commands.
717 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
718 (tui_set_win_height_command, parse_scrolling_args): Likewise.
719 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
720
721 2019-09-20 Tom Tromey <tom@tromey.com>
722
723 * tui/tui-source.c (tui_source_window::set_contents): Use
724 make_unique_xstrdup.
725 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
726 make_unique_xstrdup.
727
728 2019-09-20 Tom Tromey <tom@tromey.com>
729
730 * tui/tui-data.c: Remove separator comments.
731 * tui/tui-layout.c: Remove separator comments.
732 * tui/tui-win.c: Remove separator comments.
733 * tui/tui-wingeneral.c: Remove separator comments.
734
735 2019-09-20 Tom Tromey <tom@tromey.com>
736
737 * tui/tui.h (strcat_to_buf): Don't declare.
738 * tui/tui.c (strcat_to_buf): Remove.
739
740 2019-09-20 Tom Tromey <tom@tromey.com>
741
742 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
743 from "fullname".
744 * tui/tui-source.c (tui_source_window::set_contents)
745 (tui_source_window::location_matches_p)
746 (tui_source_window::maybe_update): Update.
747
748 2019-09-20 Tom Tromey <tom@tromey.com>
749
750 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
751 Update.
752 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
753 prefix.
754 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
755 (tui_data_window::line_from_reg_element_no)
756 (tui_data_window::first_reg_element_no_inline)
757 (tui_data_window::show_registers)
758 (tui_data_window::show_register_group)
759 (tui_data_window::display_registers_from)
760 (tui_data_window::display_registers_from_line)
761 (tui_data_window::first_data_item_displayed)
762 (tui_data_window::delete_data_content_windows)
763 (tui_data_window::erase_data_content)
764 (tui_data_window::do_scroll_vertical)
765 (tui_data_window::refresh_window)
766 (tui_data_window::check_register_values): Update.
767
768 2019-09-20 Tom Tromey <tom@tromey.com>
769
770 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
771 (struct tui_locator_window) <full_name, proc_name>: Now
772 std::string.
773 * tui/tui-stack.c (tui_locator_window::make_status_line)
774 (tui_locator_window::set_locator_fullname)
775 (tui_locator_window::set_locator_info): Update.
776 * tui/tui-source.c (tui_source_window::set_contents)
777 (tui_source_window::showing_source_p): Update.
778
779 2019-09-20 Tom Tromey <tom@tromey.com>
780
781 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
782 Don't call tui_locator_win_info_ptr.
783
784 2019-09-20 Tom Tromey <tom@tromey.com>
785
786 * tui/tui-win.c (tui_resize_all): Don't call refresh.
787
788 2019-09-20 Tom Tromey <tom@tromey.com>
789
790 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
791 height for locator.
792 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
793 * tui/tui-layout.c (show_source_disasm_command, show_data)
794 (show_source_or_disasm_and_command): Use 1 as height for locator.
795
796 2019-09-20 Tom Tromey <tom@tromey.com>
797
798 * tui/tui.c (tui_enable): Update.
799 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
800 Update.
801 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
802 Update.
803 * tui/tui-data.c (win_resized): Now bool.
804 (tui_win_resized): Return bool.
805 (tui_set_win_resized_to): Accept a bool.
806
807 2019-09-20 Tom Tromey <tom@tromey.com>
808
809 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
810 Change type of "refresh_values_only".
811 * tui/tui-regs.c (tui_data_window::show_register_group): Change
812 type of "refresh_values_only".
813
814 2019-09-20 Tom Tromey <tom@tromey.com>
815
816 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
817 std::string.
818 (tui_disassemble): Add "pos" parameter.
819 (tui_disasm_window::set_contents): Simplify.
820
821 2019-09-20 Tom Tromey <tom@tromey.com>
822
823 * tui/tui-winsource.h (struct tui_source_window_base)
824 <show_source_content>: Now private.
825 * tui/tui-winsource.c
826 (tui_source_window_base::show_source_content): Don't handle empty
827 content case.
828
829 2019-09-20 Tom Tromey <tom@tromey.com>
830
831 * tui/tui-layout.c (show_source_disasm_command)
832 (show_source_or_disasm_and_command): Don't call
833 show_source_content.
834
835 2019-09-20 Tom Tromey <tom@tromey.com>
836
837 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
838 Declare.
839 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
840 from tui_make_status_line.
841 (tui_locator_window::rerender): Update.
842
843 2019-09-20 Tom Tromey <tom@tromey.com>
844
845 * tui/tui-stack.c (tui_make_status_line): Return std::string.
846 (tui_locator_window::rerender): Update.
847
848 2019-09-20 Tom Tromey <tom@tromey.com>
849
850 * tui/tui-winsource.h (struct tui_source_window_base)
851 <~tui_source_window_base>: Don't declare.
852 <fullname>: Remove.
853 * tui/tui-winsource.c (~tui_source_window_base): Remove.
854 * tui/tui-source.h (struct tui_source_window) <fullname>: New
855 member.
856 * tui/tui-source.c (tui_source_window::set_contents): Update.
857 (tui_source_window::location_matches_p)
858 (tui_source_window::maybe_update): Update.
859
860 2019-09-20 Tom Tromey <tom@tromey.com>
861
862 * tui/tui-winsource.h (~tui_source_element): Remove.
863 (tui_source_element): Update.
864 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
865 * tui/tui-winsource.c (tui_show_source_line): Update.
866 * tui/tui-source.c (tui_source_window::set_contents): Update.
867 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
868
869 2019-09-20 Tom Tromey <tom@tromey.com>
870
871 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
872 declare.
873 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
874 tui_clear_source_windows_detail.
875 * tui/tui-winsource.h (struct tui_source_window_base)
876 <clear_detail>: Don't declare.
877 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
878 Remove.
879 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
880
881 2019-09-20 Tom Tromey <tromey@adacore.com>
882
883 PR ada/24919:
884 * block.c (contained_in): Fix final return value.
885
886 2019-09-20 Alan Modra <amodra@gmail.com>
887
888 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
889 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
890 (read_indirect_string_from_dwz): Use bfd accessor.
891 * dwarf2read.h (struct dwz_file <filename>): Likewise.
892 * machoread.c (macho_symfile_read_all_oso): Likewise.
893 * solib.c (solib_bfd_open): Likewise.
894
895 2019-09-19 Christian Biesinger <cbiesinger@google.com>
896
897 * eval.c: Move declaration of overload_resolution to...
898 * value.h: ...here.
899
900 2019-09-19 Christian Biesinger <cbiesinger@google.com>
901
902 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
903 * arm-linux-tdep.c: Likewise.
904 * arm-nbsd-nat.c: Likewise.
905 * arm-tdep.h: Declare arm_apcs_32.
906 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
907
908 2019-09-19 Christian Biesinger <cbiesinger@google.com>
909
910 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
911 * dwarf2read.h: Declare dwarf_always_disassemble.
912
913 2019-09-19 Tom de Vries <tdevries@suse.de>
914
915 PR gdb/25009
916 * source-cache.c (source_cache::ensure): Catch exception thrown during
917 construction of the highlighter.
918
919 2019-09-18 Alan Modra <amodra@gmail.com>
920
921 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
922 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
923 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
924 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
925 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
926 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
927 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
928 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
929 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
930 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
931 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
932 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
933 * solib-spu.c, * solib-svr4.c, * solib-target.c,
934 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
935 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
936 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
937 * mi/mi-interp.c: Update throughout for bfd section macro and
938 function changes.
939 * gcore (gcore_create_callback): Use bfd_set_section_lma.
940 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
941
942 2019-09-18 Tom Tromey <tom@tromey.com>
943
944 * NEWS: Add entry.
945 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
946 call rl_initialize.
947 (tui_enable): Do not call rl_initialize.
948
949 2019-09-18 Christian Groessler <chris@groessler.org>
950
951 * alpha-linux-nat.c: Include gdbarch.h.
952
953 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
954
955 * ui-file.c: Include cli/cli-style.h.
956 (term_cli_styling): Remove cli_styling declaration.
957
958 2019-09-18 Alan Modra <amodra@gmail.com>
959
960 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
961 to bfd_asymbol_section.
962
963 2019-09-18 Alan Modra <amodra@gmail.com>
964
965 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
966 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
967 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
968
969 2019-09-18 Alan Modra <amodra@gmail.com>
970
971 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
972 * spu-linux-nat.c (spu_bfd_open): Likewise.
973
974 2019-09-18 Christian Biesinger <cbiesinger@google.com>
975
976 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
977 to bool to match definition in dwarf2read.c.
978
979 2019-09-17 Christian Biesinger <cbiesinger@google.com>
980
981 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
982 (print_signatures): Likewise.
983 (trust_pad_over_xvs): Likewise.
984 * arch/aarch64-insn.c (aarch64_debug): Likewise.
985 * arch/aarch64-insn.h (aarch64_debug): Likewise.
986 * arm-linux-nat.c (arm_apcs_32): Likewise.
987 * arm-linux-tdep.c (arm_apcs_32): Likewise.
988 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
989 * arm-tdep.c (arm_debug): Likewise.
990 (arm_apcs_32): Likewise.
991 * auto-load.c (debug_auto_load): Likewise.
992 (auto_load_gdb_scripts): Likewise.
993 (global_auto_load): Likewise.
994 (auto_load_local_gdbinit): Likewise.
995 (auto_load_local_gdbinit_loaded): Likewise.
996 * auto-load.h (global_auto_load): Likewise.
997 (auto_load_local_gdbinit): Likewise.
998 (auto_load_local_gdbinit_loaded): Likewise.
999 * breakpoint.c (disconnected_dprintf): Likewise.
1000 (breakpoint_proceeded): Likewise.
1001 (automatic_hardware_breakpoints): Likewise.
1002 (always_inserted_mode): Likewise.
1003 (target_exact_watchpoints): Likewise.
1004 (_initialize_breakpoint): Update.
1005 * breakpoint.h (target_exact_watchpoints): Change to bool.
1006 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1007 * cli/cli-cmds.c (trace_commands): Likewise.
1008 * cli/cli-cmds.h (trace_commands): Likewise.
1009 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1010 to bool*.
1011 * cli/cli-logging.c (logging_overwrite): Change to bool.
1012 (logging_redirect): Likewise.
1013 (debug_redirect): Likewise.
1014 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1015 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1016 to bool.
1017 <boolean_option_def>: Update.
1018 (struct flag_option_def): Change default type of Context to bool
1019 from int.
1020 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1021 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1022 (get_setshow_command_value_string): Likewise.
1023 * cli/cli-style.c (cli_styling): Change to bool.
1024 (source_styling): Likewise.
1025 * cli/cli-style.h (source_styling): Likewise.
1026 (cli_styling): Likewise.
1027 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1028 to bool.
1029 * command.h (var_types): Update comment.
1030 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1031 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1032 bool.
1033 (debug_compile_cplus_scopes): Likewise.
1034 * compile/compile-internal.h (compile_debug): Likewise.
1035 * compile/compile.c (compile_debug): Likewise.
1036 (struct compile_options) <raw>: Likewise.
1037 * cp-support.c (catch_demangler_crashes): Likewise.
1038 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1039 (usr_cmd_cris_dwarf2_cfi): Likewise.
1040 * csky-tdep.c (csky_debug): Likewise.
1041 * darwin-nat.c (enable_mach_exceptions): Likewise.
1042 * dcache.c (dcache_enabled_p): Likewise.
1043 * defs.h (info_verbose): Likewise.
1044 * demangle.c (demangle): Likewise.
1045 (asm_demangle): Likewise.
1046 * dwarf-index-cache.c (debug_index_cache): Likewise.
1047 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1048 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1049 * dwarf2read.c (check_physname): Likewise.
1050 (use_deprecated_index_sections): Likewise.
1051 (dwarf_always_disassemble): Likewise.
1052 * eval.c (overload_resolution): Likewise.
1053 * event-top.c (set_editing_cmd_var): Likewise.
1054 (exec_done_display_p): Likewise.
1055 * event-top.h (set_editing_cmd_var): Likewise.
1056 (exec_done_display_p): Likewise.
1057 * exec.c (write_files): Likewise.
1058 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1059 (debug_fbsd_nat): Likewise.
1060 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1061 Likewise.
1062 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1063 <backtrace_past_entry> Likewise.
1064 * gdb-demangle.h (demangle): Likewise.
1065 (asm_demangle): Likewise.
1066 * gdb_bfd.c (bfd_sharing): Likewise.
1067 * gdbcore.h (write_files): Likewise.
1068 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1069 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1070 * gdbthread.h (print_thread_events): Likewise.
1071 * gdbtypes.c (opaque_type_resolution): Likewise.
1072 (strict_type_checking): Likewise.
1073 * gnu-nat.c (gnu_debug_flag): Likewise.
1074 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1075 * guile/scm-param.c (pascm_variable): Add boolval.
1076 (add_setshow_generic): Update.
1077 (pascm_param_value): Update.
1078 (pascm_set_param_value_x): Update.
1079 * hppa-tdep.c (hppa_debug): Change to bool..
1080 * infcall.c (may_call_functions_p): Likewise.
1081 (coerce_float_to_double_p): Likewise.
1082 (unwind_on_signal_p): Likewise.
1083 (unwind_on_terminating_exception_p): Likewise.
1084 * infcmd.c (startup_with_shell): Likewise.
1085 * inferior.c (print_inferior_events): Likewise.
1086 * inferior.h (startup_with_shell): Likewise.
1087 (print_inferior_events): Likewise.
1088 * infrun.c (step_stop_if_no_debug): Likewise.
1089 (detach_fork): Likewise.
1090 (debug_displaced): Likewise.
1091 (disable_randomization): Likewise.
1092 (non_stop): Likewise.
1093 (non_stop_1): Likewise.
1094 (observer_mode): Likewise.
1095 (observer_mode_1): Likewise.
1096 (set_observer_mode): Update.
1097 (sched_multi): Change to bool.
1098 * infrun.h (debug_displaced): Likewise.
1099 (sched_multi): Likewise.
1100 (step_stop_if_no_debug): Likewise.
1101 (non_stop): Likewise.
1102 (disable_randomization): Likewise.
1103 * linux-tdep.c (use_coredump_filter): Likewise.
1104 (dump_excluded_mappings): Likewise.
1105 * linux-thread-db.c (auto_load_thread_db): Likewise.
1106 (check_thread_db_on_load): Likewise.
1107 * main.c (captured_main_1): Update.
1108 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1109 xx2_opt, boolean_opt>: Change to bool.
1110 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1111 * maint.c (maintenance_profile_p): Likewise.
1112 (per_command_time): Likewise.
1113 (per_command_space): Likewise.
1114 (per_command_symtab): Likewise.
1115 * memattr.c (inaccessible_by_default): Likewise.
1116 * mi/mi-main.c (mi_async): Likewise.
1117 (mi_async_1): Likewise.
1118 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1119 * nat/fork-inferior.h (startup_with_shell): Likewise.
1120 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1121 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1122 * nios2-tdep.c (nios2_debug): Likewise.
1123 * or1k-tdep.c (or1k_debug): Likewise.
1124 * parse.c (parser_debug): Likewise.
1125 * parser-defs.h (parser_debug): Likewise.
1126 * printcmd.c (print_symbol_filename): Likewise.
1127 * proc-api.c (procfs_trace): Likewise.
1128 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1129 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1130 (set_parameter_value): Update.
1131 (add_setshow_generic): Update.
1132 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1133 to bool*.
1134 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1135 int*.
1136 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1137 * record-btrace.c (record_btrace_target::store_registers): Update.
1138 * record-full.c (record_full_memory_query): Change to bool.
1139 (record_full_stop_at_limit): Likewise.
1140 * record-full.h (record_full_memory_query): Likewise.
1141 * remote-notif.c (notif_debug): Likewise.
1142 * remote-notif.h (notif_debug): Likewise.
1143 * remote.c (use_range_stepping): Likewise.
1144 (interrupt_on_connect): Likewise.
1145 (remote_break): Likewise.
1146 * ser-tcp.c (tcp_auto_retry): Likewise.
1147 * ser-unix.c (serial_hwflow): Likewise.
1148 * skip.c (debug_skip): Likewise.
1149 * solib-aix.c (solib_aix_debug): Likewise.
1150 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1151 (spu_auto_flush_cache_p): Likewise.
1152 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1153 Likewise.
1154 (struct info_print_options) <quiet>: Likewise.
1155 * symfile-debug.c (debug_symfile): Likewise.
1156 * symfile.c (auto_solib_add): Likewise.
1157 (separate_debug_file_debug): Likewise.
1158 * symfile.h (auto_solib_add): Likewise.
1159 (separate_debug_file_debug): Likewise.
1160 * symtab.c (basenames_may_differ): Likewise.
1161 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1162 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1163 (struct info_types_options) <quiet>: Likewise.
1164 * symtab.h (demangle): Likewise.
1165 (basenames_may_differ): Likewise.
1166 * target-dcache.c (stack_cache_enabled_1): Likewise.
1167 (code_cache_enabled_1): Likewise.
1168 * target.c (trust_readonly): Likewise.
1169 (may_write_registers): Likewise.
1170 (may_write_memory): Likewise.
1171 (may_insert_breakpoints): Likewise.
1172 (may_insert_tracepoints): Likewise.
1173 (may_insert_fast_tracepoints): Likewise.
1174 (may_stop): Likewise.
1175 (auto_connect_native_target): Likewise.
1176 (target_stop_and_wait): Update.
1177 (target_async_permitted): Change to bool.
1178 (target_async_permitted_1): Likewise.
1179 (may_write_registers_1): Likewise.
1180 (may_write_memory_1): Likewise.
1181 (may_insert_breakpoints_1): Likewise.
1182 (may_insert_tracepoints_1): Likewise.
1183 (may_insert_fast_tracepoints_1): Likewise.
1184 (may_stop_1): Likewise.
1185 * target.h (target_async_permitted): Likewise.
1186 (may_write_registers): Likewise.
1187 (may_write_memory): Likewise.
1188 (may_insert_breakpoints): Likewise.
1189 (may_insert_tracepoints): Likewise.
1190 (may_insert_fast_tracepoints): Likewise.
1191 (may_stop): Likewise.
1192 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1193 (make_thread_apply_all_options_def_group): Change argument from int*
1194 to bool*.
1195 (thread_apply_all_command): Update.
1196 (print_thread_events): Change to bool.
1197 * top.c (confirm): Likewise.
1198 (command_editing_p): Likewise.
1199 (history_expansion_p): Likewise.
1200 (write_history_p): Likewise.
1201 (info_verbose): Likewise.
1202 * top.h (confirm): Likewise.
1203 (history_expansion_p): Likewise.
1204 * tracepoint.c (disconnected_tracing): Likewise.
1205 (circular_trace_buffer): Likewise.
1206 * typeprint.c (print_methods): Likewise.
1207 (print_typedefs): Likewise.
1208 * utils.c (debug_timestamp): Likewise.
1209 (sevenbit_strings): Likewise.
1210 (pagination_enabled): Likewise.
1211 * utils.h (sevenbit_strings): Likewise.
1212 (pagination_enabled): Likewise.
1213 * valops.c (overload_resolution): Likewise.
1214 * valprint.h (struct value_print_options) <prettyformat_arrays,
1215 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1216 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1217 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1218 Likewise.
1219 * windows-nat.c (new_console): Likewise.
1220 (cygwin_exceptions): Likewise.
1221 (new_group): Likewise.
1222 (debug_exec): Likewise.
1223 (debug_events): Likewise.
1224 (debug_memory): Likewise.
1225 (debug_exceptions): Likewise.
1226 (useshell): Likewise.
1227 * windows-tdep.c (maint_display_all_tib): Likewise.
1228 * xml-support.c (debug_xml): Likewise.
1229
1230 2019-09-17 Mike Gulick <mgulick@mathworks.com>
1231
1232 * source.c (prepare_path_for_appending): New function.
1233 (openp): Make use of new function.
1234 (find_and_open_source): Search for the compilation directory and
1235 source file as a relative path beneath the directory search path.
1236
1237 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1238
1239 * source-cache.c (source_cache::get_line_charpos): Catch
1240 exceptions and return false, this matches the behaviour documented
1241 in the header file.
1242
1243 2019-09-17 Joel Brobecker <brobecker@adacore.com>
1244
1245 * ada-tasks.c (info_task): Remove quoting of the task's name.
1246
1247 2019-09-16 Christian Biesinger <cbiesinger@google.com>
1248
1249 * symfile.c (auto_solib_add): Replace comment with a reference
1250 to the header file.
1251
1252 2019-09-14 Christian Biesinger <cbiesinger@google.com>
1253
1254 * NEWS: Mention that gdb can now be compiled with Python 3
1255 on Windows.
1256
1257 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1258
1259 * maint.c (maint_print_section_data::maint_print_section_data):
1260 Force use of 'float log10 (float)' by casting the argument to
1261 float.
1262
1263 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1264
1265 * maint.c: Add 'cmath' include.
1266 (struct maint_print_section_data): New structure.
1267 (print_section_index): New function.
1268 (print_bfd_section_info): Add header comment, small whitespace
1269 cleanup, and update to call new print_section_index function.
1270 (print_objfile_section_info): Likewise.
1271 (maint_obj_section_from_bfd_section): New function.
1272 (print_bfd_section_info_maybe_relocated): New function.
1273 (maintenance_info_sections): Add header comment, always use
1274 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1275
1276 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1277
1278 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1279 inner scope, add check that the objfile has psymtabs before
1280 checking psymtabs_addrmap.
1281 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1282
1283 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1284
1285 * NEWS: Announce that Ada task names are now shown at more places,
1286 and between quotes (except in info task output).
1287 * gdb/ada-tasks.c (task_to_str): New function.
1288 (display_current_task_id): Call task_to_str.
1289 (task_command_1): Likewise.
1290 (print_ada_task_info): In non-mi mode, Properly align headers and data
1291 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1292
1293 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1294
1295 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1296 prstatus.pr_lwp.pr_info instead of making it up.
1297
1298 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1299
1300 * auto-load.c (auto_load_expand_dir_vars): Update.
1301 * defs.h (gdb_datadir): Change to std::string.
1302 (python_libdir): Likewise.
1303 (relocate_gdb_directory): Change return type to std::string.
1304 * guile/guile.c (gdbscm_data_directory): Update.
1305 (initialize_scheme_side): Update.
1306 * jit.c (jit_reader_dir): Change to std::string.
1307 (jit_reader_load_command): Update.
1308 * main.c (gdb_datadir): Change to std::string.
1309 (python_libdir): Likewise.
1310 (set_gdb_data_directory): Update.
1311 (relocate_path): Change to return std::string.
1312 (relocate_gdb_directory): Change to return std::string.
1313 (relocate_gdbinit_path_maybe_in_datadir): Update.
1314 (captured_main_1): Update.
1315 * python/python.c (do_start_initialization): Update.
1316 * top.c (show_gdb_datadir): Update.
1317 * xml-syscall.c (xml_init_syscalls_info): Update.
1318 (init_syscalls_info): Update.
1319
1320 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1321
1322 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1323 out of get_init_files.
1324 (get_init_files): Update.
1325
1326 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1327
1328 * main.c (get_init_files): Change to use std::string.
1329 (captured_main_1): Update.
1330 (print_gdb_help): Update.
1331
1332 2019-09-11 Ali Tamur <tamur@google.com>
1333
1334 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1335 implementation.
1336
1337 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1338
1339 * dbxread.c (read_dbx_symtab): Update.
1340 * dwarf2read.c (load_partial_dies): Update.
1341 * mdebugread.c (parse_partial_symbols): Update.
1342 (handle_psymbol_enumerators): Update.
1343 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1344 * psymtab.c (add_psymbol_to_bcache): Likewise.
1345 (add_psymbol_to_list): Likewise.
1346 * symtab.c (symbol_set_names): Likewise.
1347 * symtab.h (symbol_set_names): Likewise.
1348 * xcoffread.c (scan_xcoff_symtab): Update.
1349
1350 2019-09-11 Tom Tromey <tom@tromey.com>
1351
1352 * symfile-mem.c (symbol_file_add_from_memory): Use
1353 bfd_set_filename.
1354 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1355 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1356
1357 2019-09-10 Tom Tromey <tromey@adacore.com>
1358
1359 * dwarf-index-write.c (write_psymbols): Extend error message.
1360 (debug_names::insert): Add Ada code.
1361 (debug_names::write_psymbols): Remove Ada check.
1362 (debug_names) <m_string_obstack>: New member.
1363 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1364 (gdb_index_symbol_name_matcher::matches): Remove.
1365 (mapped_index_base::find_name_components_bounds): Add "lang"
1366 parameter.
1367 (mapped_index_base::build_name_components): Also split names
1368 according to Ada syntax.
1369 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1370 type of "match_callback".
1371 (check_match, check_find_bounds_finds)
1372 (dw2_expand_symtabs_matching): Update.
1373 (dw2_debug_names_iterator): Add new constructor.
1374 (dw2_debug_names_map_matching_symbols): New function.
1375 (dw2_debug_names_expand_symtabs_matching): Update.
1376 (dwarf2_debug_names_functions): Use
1377 dw2_debug_names_map_matching_symbols.
1378
1379 2019-09-10 Tom Tromey <tromey@adacore.com>
1380
1381 * dwarf2read.c (dw2_get_file_names_reader): Add the
1382 CU's file name to the results.
1383
1384 2019-09-10 Tom Tromey <tromey@adacore.com>
1385
1386 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1387 map_matching_symbols. Update.
1388 * dwarf2read.c (dw2_map_matching_symbols): Update.
1389 * psymtab.c (match_partial_symbol): Change type; update.
1390 (psym_map_matching_symbols): Likewise.
1391 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1392 type; update.
1393 * symfile.h (struct quick_symbol_functions)
1394 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1395 Remove "match".
1396
1397 2019-09-10 Tom Tromey <tromey@adacore.com>
1398
1399 * psymtab.c (map_block): Remove.
1400 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1401 * symtab.c (iterate_over_symbols_terminated): New function.
1402 * symtab.c (iterate_over_symbols_terminated): Declare.
1403
1404 2019-09-10 Tom Tromey <tromey@adacore.com>
1405
1406 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1407 * language.h (struct language_defn) <la_iterate_over_symbols>:
1408 Return bool.
1409 * symtab.c (iterate_over_symbols): Return bool.
1410 * symtab.h (iterate_over_symbols): Return bool.
1411
1412 2019-09-10 Tom Tromey <tromey@adacore.com>
1413
1414 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1415 (add_nonlocal_symbols): Update.
1416 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1417 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1418 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1419 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1420 Change type of "callback". Remove "data".
1421
1422
1423 2019-09-09 Ali Tamur <tamur@google.com>
1424
1425 * dwarf2read.c (comp_unit_head): Update comment.
1426 (dwarf2_dwo_name): New function declaration.
1427 (dwarf_unit_type_name): New function declaration.
1428 (read_comp_unit_head): Add support for new compilation units,
1429 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
1430 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
1431 (currently named as "signature") in their header. Also clarify error
1432 messages.
1433 (lookup_dwo_id): New function. Returns the dwo id of the given
1434 compile unit.
1435 (lookup_dwo_unit): Use the new lookup_dwo_id function.
1436 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
1437 functions.
1438 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
1439 (dwarf2_dwo_name): Get the dwo name if present.
1440 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
1441 purposes.
1442
1443 2019-09-09 Tom Tromey <tom@tromey.com>
1444
1445 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1446
1447 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1448
1449 * python/python.c (do_start_initialization): Make progname_copy static,
1450 to avoid a leak report.
1451
1452 2019-09-08 Tom Tromey <tom@tromey.com>
1453
1454 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1455
1456 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
1457
1458 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1459 Change type to gdb::optional<block_enum>.
1460 (dw2_symtab_iter_init): Change block_index parameter type
1461 to gdb::optional<block_enum>.
1462 (dw2_lookup_symbol): Change block_index parameter
1463 type to block_enum.c
1464 (dw2_debug_names_lookup_symbol): Likewise.
1465 * psymtab.c (psym_lookup_symbol): Likewise.
1466 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1467 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1468 Likewise.
1469
1470 2019-09-06 Christian Biesinger <cbiesinger@google.com>
1471
1472 * defs.h (relocate_gdb_directory): Change int to bool in
1473 signature and rename flag to relocatable.
1474 * main.c (relocate_path): Likewise.
1475 (relocate_gdb_directory): Likewise.
1476
1477 2019-09-06 Alan Modra <amodra@gmail.com>
1478
1479 * coffread.c (coff_symfile_read): Constify filename variable.
1480 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
1481 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
1482 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
1483 * solib.c (reload_shared_libraries_1): Likewise.
1484 * symfile.c (reread_symbols): Likewise.
1485 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
1486 * solib-darwin.c (darwin_bfd_open): Likewise.
1487 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1488
1489 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1490
1491 * psymtab.c (print_partial_symbols): Handle missing domain_enum
1492 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
1493
1494 2019-09-03 Tom Tromey <tromey@adacore.com>
1495
1496 * ada-valprint.c (ada_val_print_num): Don't recurse for range
1497 types.
1498 (has_negatives): Unbias a range type bound.
1499 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
1500 * gdbtypes.c (operator==): Handle new field.
1501 (create_range_type): Add "bias" parameter.
1502 (create_static_range_type, resolve_dynamic_range): Update.
1503 * gdbtypes.h (struct range_bounds) <bias>: New member.
1504 (create_range_type): Add bias parameter.
1505 * printcmd.c (print_scalar_formatted): Unbias range types.
1506 * value.c (unpack_long): Unbias range types.
1507 (pack_long): Bias range types.
1508
1509 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1510
1511 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
1512 probe arguments.
1513
1514 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1515
1516 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
1517 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
1518 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
1519 (compile_probe_arg): Likewise.
1520 * probe.h (get_argument_count): Likewise.
1521 * solib-svr4.c (solib_event_probe_action): Likewise.
1522 * stap-probe.c (stap_probe::get_argument_count): Likewise.
1523
1524 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1525
1526 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
1527 code to here...
1528 (svr4_create_solib_event_breakpoints): ...from here.
1529
1530 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
1531
1532 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
1533 suffix from warning message.
1534
1535 2019-08-30 Tom Tromey <tom@tromey.com>
1536
1537 * tui/tui-winsource.h (struct tui_source_window_base)
1538 <refresh_all>: Don't declare.
1539 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1540 Remove.
1541 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1542 tui_show_locator_content.
1543 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1544 declare.
1545 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1546 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1547 declare.
1548
1549 2019-08-30 Tom Tromey <tom@tromey.com>
1550
1551 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1552
1553 2019-08-30 Tom Tromey <tom@tromey.com>
1554
1555 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1556 Remove unnecessary forward declarations.
1557
1558 2019-08-30 Tom Tromey <tom@tromey.com>
1559
1560 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1561 rerender.
1562 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1563 tui_show_locator_content.
1564
1565 2019-08-30 Tom Tromey <tom@tromey.com>
1566
1567 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1568 (tui_locator_window::rerender): Rewrite using body of previous
1569 tui_show_locator_content.
1570
1571 2019-08-30 Tom Tromey <tom@tromey.com>
1572
1573 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1574 set_locator_fullname>: New methods.
1575 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1576 Rename from tui_set_locator_fullname.
1577 (tui_locator_window::set_locator_info): Rename from
1578 tui_set_locator_info. Return bool.
1579 (tui_update_locator_fullname, tui_show_frame_info): Update.
1580
1581 2019-08-30 Tom Tromey <tom@tromey.com>
1582
1583 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1584
1585 2019-08-30 Tom Tromey <tom@tromey.com>
1586
1587 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1588 call touchwin.
1589
1590 2019-08-30 Tom Tromey <tom@tromey.com>
1591
1592 * tui/tui-wingeneral.c (box_win): Assume win_info and
1593 win_info->handle cannot be NULL.
1594
1595 2019-08-30 Tom Tromey <tom@tromey.com>
1596
1597 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1598 refresh_window>: Declare.
1599 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1600 resize.
1601 (tui_data_item_window::rerender): Rename from
1602 tui_display_register.
1603 (tui_data_item_window::refresh_window): New method.
1604 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1605 no-op.
1606
1607 2019-08-30 Tom Tromey <tom@tromey.com>
1608
1609 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1610 regs_column_count, current_group>: Move later. Now private.
1611 <get_current_group>: New method.
1612 * tui/tui-regs.c (tui_reg_command): Update.
1613 * tui/tui-layout.c (tui_set_layout): Update.
1614
1615 2019-08-30 Tom Tromey <tom@tromey.com>
1616
1617 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1618 (tui_data_window::rerender): Don't call
1619 check_and_display_highlight_if_needed.
1620 (tui_data_window::refresh_all): Remove call to
1621 erase_data_content.
1622
1623 2019-08-30 Tom Tromey <tom@tromey.com>
1624
1625 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1626 (tui_data_window::display_registers_from)
1627 (tui_data_window::display_reg_element_at_line)
1628 (tui_data_window::display_registers_from_line): Remove checks of
1629 "empty".
1630
1631 2019-08-30 Tom Tromey <tom@tromey.com>
1632
1633 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1634 Don't declare.
1635 * tui/tui-regs.c (tui_data_window::show_registers): Call
1636 rerender.
1637 (tui_data_window::rerender): Rename from display_all_data.
1638 (tui_data_window::rerender): Remove old implementation.
1639
1640 2019-08-30 Tom Tromey <tom@tromey.com>
1641
1642 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1643 text.
1644 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1645
1646 2019-08-29 Bernhard Wodok <barto@gmx.net>
1647 Sergio Durigan Junior <sergiodj@redhat.com>
1648
1649 PR win32/24284
1650 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1651
1652 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1653
1654 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1655 when searching for types.
1656
1657 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1658
1659 * f-lang.c (f_language_defn): Use f_print_typedef.
1660 * f-lang.h (f_print_typedef): Declare.
1661 * f-typeprint.c (f_print_typedef): Define.
1662
1663 2019-08-27 Christian Biesinger <cbiesinger@google.com>
1664
1665 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1666
1667 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1668
1669 * cli/cli-utils.c (info_print_options_defs): Delete.
1670 (make_info_print_options_def_group): Delete.
1671 (extract_info_print_options): Delete.
1672 (info_print_command_completer): Delete.
1673 (info_print_args_help): Add extra parameter, and optionally
1674 include text about -n flag.
1675 * cli/cli-utils.h (struct info_print_options): Delete.
1676 (extract_info_print_options): Delete declaration.
1677 (info_print_command_completer): Delete declaration.
1678 (info_print_args_help): Add extra parameter, extend header
1679 comment.
1680 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1681 search_symbols.
1682 * stack.c (struct info_print_options): New type.
1683 (info_print_options_defs): New file scoped variable.
1684 (make_info_print_options_def_group): New static function.
1685 (info_print_command_completer): New static function.
1686 (info_locals_command): Update to use new local functions.
1687 (info_args_command): Likewise.
1688 (_initialize_stack): Add extra parameter to calls to
1689 info_print_args_help.
1690 * symtab.c (search_symbols): Add extra parameter, use this to
1691 possibly excluse non-debug symbols.
1692 (symtab_symbol_info): Add extra parameter, which is passed on to
1693 search_symbols.
1694 (struct info_print_options): New type.
1695 (info_print_options_defs): New file scoped variable.
1696 (make_info_print_options_def_group): New static function.
1697 (info_print_command_completer): New static function.
1698 (info_variables_command): Update to use local functions, and pass
1699 extra parameter through to symtab_symbol_info.
1700 (info_functions_command): Likewise.
1701 (info_types_command): Pass additional argument through to
1702 symtab_symbol_info.
1703 (rbreak_command): Pass extra argument to search_symbols.
1704 (_initialize_symtab): Add extra arguments for calls to
1705 info_print_args_help, and update help text for 'info variables',
1706 'whereis', and 'info functions' commands.
1707 * symtab.h (search_symbols): Add extra argument to declaration.
1708 * NEWS: Mention new flags.
1709
1710 2019-08-26 Christian Biesinger <cbiesinger@google.com>
1711
1712 * symtab.c (lookup_static_symbol): Call the new function (and move
1713 it down to be next to lookup_global_symbol).
1714 (struct global_sym_lookup_data): Add block_enum member and rename to...
1715 (struct global_or_static_sym_lookup_data): ...this.
1716 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1717 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1718 (lookup_symbol_global_or_static_iterator_cb): ...this.
1719 (lookup_global_or_static_symbol): New function.
1720 (lookup_global_symbol): Call new function.
1721
1722 2019-08-26 Tom de Vries <tdevries@suse.de>
1723
1724 PR c++/24852
1725 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1726 when pc_probe.prob == NULL.
1727
1728 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
1729
1730 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1731 variable symbol_linkage to symbol_linkage_.
1732
1733 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
1734
1735 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1736 represent whether the symbol is static, dynamic, or we don't
1737 know.
1738
1739 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1740
1741 * gdb/rx-tdep.c (rx_register_names): New.
1742 (rx_register_name): Delete.
1743 (rx_psw_type): Delete.
1744 (rx_fpsw_type): Delete.
1745 (rx_register_type): Delete.
1746 (rx_gdbarch_init): Convert target-descriptions.
1747 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1748 * gdb/features/Makefile: Add rx.xml.
1749 * gdb/features/rx.xml: New.
1750 * gdb/features/rx.c: Generated.
1751 * gdb/NEWS: Mention target description support.
1752
1753 2019-08-22 Christian Biesinger <cbiesinger@google.com>
1754
1755 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1756 *slot_ptr.
1757
1758 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1759
1760 * configure.ac: Don't check for 'dlfcn.h' (moved to
1761 gdbsupport/common.m4).
1762 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1763 'gdbsupport/'.
1764 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1765 * compile/compile-c-support.c: Include
1766 'gdbsupport/gdb-dlfcn.h'.
1767 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1768 * gdb-dlfcn.c: Move to...
1769 * gdbsupport/gdb-dlfcn.c: ... here.
1770 * gdb-dlfcn.h: Move to...
1771 * gdbsupport/gdb-dlfcn.h: ... here.
1772
1773 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1774
1775 * nios2-tdep.c (struct reg_value): Improve comments. Make
1776 the offset field signed.
1777
1778 2019-08-22 Christian Biesinger <cbiesinger@google.com>
1779
1780 * python/lib/gdb/__init__.py (_execute_file): New function.
1781 * python/python.c (python_run_simple_file): Call gdb._execute_file
1782 on Windows.
1783
1784 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1785
1786 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1787 all uses as this was never set to anything but a zero value.
1788
1789 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1790
1791 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1792
1793 2019-08-21 Christian Biesinger <cbiesinger@google.com>
1794
1795 * tui/tui-data.h (tui_gen_win_info): Add an =default
1796 move constructor, required by some GCC versions.
1797
1798 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
1799
1800 * go32-nat.c (go32_sysinfo): Add hygon_p.
1801
1802 2019-08-20 Tom Tromey <tom@tromey.com>
1803
1804 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1805 line_from_reg_element_no, first_reg_element_no_inline,
1806 display_all_data, delete_data_content_windows,
1807 erase_data_content>: Now private.
1808
1809 2019-08-20 Tom Tromey <tom@tromey.com>
1810
1811 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1812 (tui_unhighlight_win, tui_highlight_win)
1813 (tui_win_info::make_window): Update.
1814 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1815
1816 2019-08-20 Tom Tromey <tom@tromey.com>
1817
1818 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1819 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1820 (MAX_PID_WIDTH): Move to tui-stack.c.
1821 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1822 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1823 (MAX_PID_WIDTH): Move from tui-data.h.
1824
1825 2019-08-20 Tom Tromey <tom@tromey.com>
1826
1827 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1828 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1829 (box_win): Update.
1830 (tui_gen_win_info::make_window): Rename from tui_make_window.
1831 (tui_win_info::make_window): New method.
1832 (tui_gen_win_info::make_visible): Update.
1833 * tui/tui-source.c (tui_source_window::set_contents): Update.
1834 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1835 (tui_data_window::display_registers_from): Update.
1836 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1837 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1838 Declare.
1839 <can_box>: Remove.
1840 <title>: Remove.
1841 (struct tui_win_info) <make_window>: Declare.
1842 <can_box>: Now virtual.
1843 <title>: New member.
1844 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1845 * tui/tui-command.c (tui_cmd_window::resize): Update.
1846
1847 2019-08-20 Tom Tromey <tom@tromey.com>
1848
1849 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1850 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1851 (tui_data_window::check_register_values): Update.
1852
1853 2019-08-20 Tom Tromey <tom@tromey.com>
1854
1855 * tui/tui-regs.h (struct tui_data_window): Use
1856 DISABLE_COPY_AND_ASSIGN.
1857 <regs_content>: Change type, removing unique_ptr.
1858 <tui_data_window>: Add move constructor.
1859 * tui/tui-regs.c (tui_data_window::show_registers)
1860 (tui_data_window::show_register_group)
1861 (tui_data_window::display_registers_from)
1862 (tui_data_window::display_registers_from)
1863 (tui_data_window::first_data_item_displayed)
1864 (tui_data_window::delete_data_content_windows)
1865 (tui_data_window::rerender, tui_data_window::refresh_window)
1866 (tui_data_window::check_register_values): Update.
1867
1868 2019-08-20 Tom Tromey <tom@tromey.com>
1869
1870 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1871 show_register_group>: Declare.
1872 (tui_show_register_group): Don't declare.
1873 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1874 tui_show_registers.
1875 (tui_data_window::show_register_group): Rename from
1876 tui_show_register_group.
1877 (tui_data_window::check_register_values, tui_reg_command):
1878 Update.
1879 * tui/tui-layout.c (tui_set_layout): Update.
1880
1881 2019-08-20 Tom Tromey <tom@tromey.com>
1882
1883 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1884 Declare.
1885 (tui_check_register_values): Don't declare.
1886 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1887 from tui_check_register_values.
1888 * tui/tui-hooks.c (tui_register_changed): Update.
1889
1890 2019-08-20 Tom Tromey <tom@tromey.com>
1891
1892 * tui/tui-regs.c (tui_reg_layout): Move later.
1893 (tui_show_registers): Don't enable TUI mode or change layout.
1894
1895 2019-08-20 Tom Tromey <tom@tromey.com>
1896
1897 * tui/tui-regs.h (struct tui_data_item_window)
1898 <~tui_data_item_window>: Remove.
1899 <content>: Now a unique_xmalloc_ptr.
1900 * tui/tui-regs.c (tui_register_format): Return a
1901 unique_xmalloc_ptr.
1902 (tui_get_register): Update.
1903 (~tui_data_item_window): Remove.
1904 (tui_data_window::display_registers_from, tui_display_register):
1905 Update.
1906 * tui/tui-io.h (tui_expand_tabs): Update.
1907 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1908 Remove "col" parameter.
1909
1910 2019-08-20 Tom Tromey <tom@tromey.com>
1911
1912 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1913 field.
1914 * tui/tui-regs.c (~tui_data_item_window): Update.
1915
1916 2019-08-20 Tom Tromey <tom@tromey.com>
1917
1918 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1919 earlier.
1920
1921 2019-08-20 Tom Tromey <tom@tromey.com>
1922
1923 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1924
1925 2019-08-20 Tom Tromey <tom@tromey.com>
1926
1927 * tui/tui-source.h (struct tui_source_window): Update.
1928 * tui/tui-regs.c (tui_show_registers): Update.
1929 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1930 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1931 (NO_REGS_STRING): Remove defines.
1932
1933 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
1934
1935 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1936 unnecessary thread walk if remote doesn't support the packet.
1937
1938 2019-08-19 Tom Tromey <tromey@adacore.com>
1939
1940 * python/py-value.c (value_has_field): Fix indentation.
1941
1942 2019-08-19 Tom Tromey <tromey@adacore.com>
1943
1944 * printcmd.c (do_one_display, info_display_command): Update.
1945 * block.h (contained_in): Return bool. Add allow_nested
1946 parameter.
1947 * block.c (contained_in): Return bool. Add allow_nested
1948 parameter.
1949
1950 2019-08-19 Tom Tromey <tom@tromey.com>
1951
1952 * configure: Rebuild.
1953 * configure.ac: Disallow the combination of -static-libstdc++ and
1954 source highlight.
1955 * source-cache.c (get_language_name): Handle rust.
1956 (source_cache::get_source_lines): Ignore highlighting exceptions.
1957
1958 2019-08-16 Tom Tromey <tom@tromey.com>
1959
1960 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1961 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1962 (struct tui_source_window_base) <make_visible, refresh_window,
1963 resize>: Remove methods.
1964 <execution_info>: Remove field.
1965 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1966 (tui_show_source_line, tui_source_window_base)
1967 (~tui_source_window_base): Update.
1968 (tui_source_window_base::resize)
1969 (tui_source_window_base::make_visible)
1970 (tui_source_window_base::refresh_window): Remove.
1971 (tui_source_window_base::update_exec_info): Update.
1972 * tui/tui-source.c (tui_source_window::set_contents): Update.
1973 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1974
1975 2019-08-16 Tom Tromey <tom@tromey.com>
1976
1977 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1978 deprecated_query_hook.
1979
1980 2019-08-16 Tom Tromey <tom@tromey.com>
1981
1982 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1983 (tui_update_source_windows_with_line): Update.
1984 * tui/tui-source.h (struct tui_source_window)
1985 <show_symtab_source>: Declare.
1986 (tui_show_symtab_source): Don't declare.
1987 * tui/tui-source.c (tui_show_symtab_source): Rename from
1988 tui_show_symtab_source.
1989
1990 2019-08-16 Tom Tromey <tom@tromey.com>
1991
1992 * tui/tui-winsource.h (struct tui_source_window_base)
1993 <set_contents>: Declare.
1994 * tui/tui-winsource.c
1995 (tui_source_window_base::update_source_window_as_is): Update.
1996 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1997 Declare.
1998 (tui_set_source_content): Don't declare.
1999 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2000 tui_set_source_content.
2001 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2002 Declare.
2003 (tui_set_disassem_content): Don't declare.
2004 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2005 tui_set_disassem_content.
2006
2007 2019-08-16 Tom Tromey <tom@tromey.com>
2008
2009 * tui/tui-winsource.h (struct tui_source_window_base)
2010 <update_breakpoint_info>: Declare.
2011 (tui_update_breakpoint_info): Don't declare.
2012 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2013 (tui_update_all_breakpoint_info): Update.
2014 (tui_source_window_base::update_breakpoint_info): Rename from
2015 tui_update_breakpoint_info.
2016 (tui_source_window_base::update_exec_info): Update.
2017
2018 2019-08-16 Tom Tromey <tom@tromey.com>
2019
2020 * tui/tui-winsource.h (struct tui_source_window_base)
2021 <update_source_window>: Declare.
2022 (tui_update_source_window): Don't declare.
2023 * tui/tui-winsource.c
2024 (tui_source_window_base::update_source_window): Rename from
2025 tui_update_source_window.
2026 (tui_source_window_base::rerender): Update.
2027 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2028 * tui/tui-disasm.c (tui_show_disassem)
2029 (tui_show_disassem_and_update_source)
2030 (tui_disasm_window::maybe_update): Update.
2031
2032 2019-08-16 Tom Tromey <tom@tromey.com>
2033
2034 * tui/tui-winsource.h (struct tui_source_window_base)
2035 <update_source_window_as_is>: Declare.
2036 (tui_update_source_window_as_is): Don't declare.
2037 * tui/tui-winsource.c (tui_update_source_window): Update
2038 (tui_source_window_base::update_source_window_as_is): Rename from
2039 tui_update_source_window_as_is.
2040 (tui_source_window_base::refill): Update.
2041 * tui/tui-source.c (tui_show_symtab_source): Update.
2042 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2043 Update.
2044
2045 2019-08-16 Tom Tromey <tom@tromey.com>
2046
2047 * tui/tui-winsource.h (tui_update_source_window)
2048 (tui_update_source_window_as_is): Remove "noerror" parameter.
2049 * tui/tui-winsource.c (tui_update_source_window)
2050 (tui_update_source_window_as_is): Remove "noerror" parameter.
2051 (tui_update_source_windows_with_addr)
2052 (tui_update_source_windows_with_line)
2053 (tui_source_window_base::rerender)
2054 (tui_source_window_base::refill): Update.
2055 * tui/tui-source.h (tui_set_source_content)
2056 (tui_show_symtab_source): Remove "noerror" parameter.
2057 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2058 parameter.
2059 (tui_show_symtab_source): Likewise.
2060 (tui_source_window::maybe_update): Update.
2061 * tui/tui-disasm.c (tui_show_disassem)
2062 (tui_show_disassem_and_update_source)
2063 (tui_disasm_window::do_scroll_vertical)
2064 (tui_disasm_window::maybe_update): Update.
2065
2066 2019-08-16 Tom Tromey <tom@tromey.com>
2067
2068 * tui/tui.c (tui_is_window_visible): Update.
2069 * tui/tui-wingeneral.c (tui_make_window)
2070 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2071 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2072 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2073 (tui_set_win_height_command, parse_scrolling_args): Update.
2074 * tui/tui-source.c (tui_source_window::style_changed): Update.
2075 * tui/tui-regs.c (tui_show_registers)
2076 (tui_data_window::first_data_item_displayed)
2077 (tui_data_window::delete_data_content_windows)
2078 (tui_check_register_values, tui_reg_command): Update.
2079 * tui/tui-disasm.c (tui_show_disassem): Update.
2080 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2081 method.
2082 <is_visible>: Remove field.
2083 * tui/tui-data.c (tui_next_win, tui_prev_win)
2084 (tui_delete_invisible_windows): Update.
2085
2086 2019-08-16 Tom Tromey <tom@tromey.com>
2087
2088 * tui/tui-winsource.h (struct tui_source_window_base)
2089 <m_has_locator>: Remove.
2090 * tui/tui-layout.c (show_source_disasm_command, show_data)
2091 (show_source_or_disasm_and_command): Update.
2092
2093 2019-08-16 Alan Hayward <alan.hayward@arm.com>
2094
2095 * NEWS (Other MI changes): New subsection.
2096 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2097 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2098 * arch-utils.c (default_get_pc_address_flags): New function.
2099 * arch-utils.h (default_get_pc_address_flags): New declaration.
2100 * gdbarch.sh: Add get_pc_address_flags.
2101 * gdbarch.c: Regenerate.
2102 * gdbarch.h: Likewise.
2103 * stack.c (print_pc): New function.
2104 (print_frame_info) (print_frame): Call print_pc.
2105
2106 2019-08-16 Tom de Vries <tdevries@suse.de>
2107
2108 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2109 print_objfile_section_info.
2110
2111 2019-08-15 Tom Tromey <tom@tromey.com>
2112
2113 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2114 calling update_cmdwin_start_line.
2115 * tui/tui-winsource.h (struct tui_source_window_base)
2116 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2117 <rerender>: Declare.
2118 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2119 Call rerender.
2120 (tui_source_window_base::set_new_height): Remove.
2121 (tui_source_window_base::rerender): Rename from
2122 do_make_visible_with_new_height.
2123 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2124 resize method.
2125 (tui_win_info::make_invisible_and_set_new_height)
2126 (tui_win_info::make_visible_with_new_height): Remove.
2127 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2128 Declare.
2129 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2130 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2131 do_make_visible_with_new_height>: Don't declare.
2132 <rerender>: Declare.
2133 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2134 set_new_height.
2135 (tui_data_window::do_make_visible_with_new_height): Remove.
2136 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2137 call tui_show_locator_content.
2138 (tui_gen_win_info::resize): Call rerender.
2139 (show_source_or_disasm_and_command): Don't call
2140 tui_show_locator_content.
2141 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2142 method.
2143 (struct tui_win_info) <rerender>: Declare.
2144 <set_new_height, make_invisible_and_set_new_height,
2145 make_visible_with_new_height>: Don't declare.
2146 * tui/tui-data.c (tui_win_list::rerender): New method.
2147 * tui/tui-command.h (struct tui_cmd_window)
2148 <do_make_visible_with_new_height>: Don't declare.
2149 * tui/tui-command.c
2150 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2151
2152 2019-08-15 Tom Tromey <tromey@adacore.com>
2153
2154 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2155 * ada-lang.c (ada_enum_name): Likewise.
2156
2157 2019-08-15 Christian Biesinger <cbiesinger@google.com>
2158
2159 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2160 leading underscore.
2161 (GdbOutputErrorFile): Likewise.
2162 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2163 accordingly.
2164 (execute_unwinders): Rename to have a leading underscore.
2165 (auto_load_packages): Likewise.
2166 (global scope): Adjust call to auto_load_packages accordingly.
2167 (GdbSetPythonDirectory): Likewise.
2168 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2169 instead of execute_unwinders.
2170
2171 2019-08-15 Tom Tromey <tom@tromey.com>
2172
2173 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2174 (show_data): Don't change window visibility.
2175 (tui_gen_win_info::resize): Remove special case for command
2176 window. Use wresize, when available.
2177 (show_source_or_disasm_and_command): Don't change window
2178 visibility.
2179 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2180 <make_visible>: New method.
2181 * tui/tui-command.c (tui_cmd_window::resize): New method.
2182
2183 2019-08-15 Tom Tromey <tom@tromey.com>
2184
2185 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2186 (struct tui_source_windows): New.
2187 * tui/tui-winsource.c (tui_display_main): Update.
2188 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2189 (new_height_ok, parse_scrolling_args): Update.
2190 * tui/tui-layout.c (show_layout, show_data): Update.
2191 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2192 (tui_add_to_source_windows): Don't declare.
2193 * tui/tui-data.c (source_windows, tui_source_windows)
2194 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2195
2196 2019-08-15 Tom Tromey <tom@tromey.com>
2197
2198 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2199 Rename from reset.
2200 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2201 * tui/tui-layout.c (show_source_disasm_command, show_data):
2202 Update.
2203 (tui_gen_win_info::resize): Rename.
2204 (show_source_or_disasm_and_command): Update.
2205 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2206 reset.
2207
2208 2019-08-15 Tom Tromey <tom@tromey.com>
2209
2210 * tui/tui-stack.c (tui_initialize_static_data): Remove.
2211 * tui/tui-interp.c (tui_interp::init): Don't call
2212 tui_initialize_static_data.
2213 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2214
2215 2019-08-15 Tom Tromey <tom@tromey.com>
2216
2217 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2218 examine tui_win_list.
2219
2220 2019-08-15 Tom Tromey <tom@tromey.com>
2221
2222 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2223 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2224 tui_clear_source_content.
2225 (tui_clear_source_content): Remove.
2226 (tui_source_window_base::do_erase_source_content): Hoist call to
2227 content.clear().
2228 * tui/tui-stack.c (tui_show_frame_info): Don't call
2229 tui_clear_source_content.
2230
2231 2019-08-15 Tom Tromey <tom@tromey.com>
2232
2233 * tui/tui-winsource.h (struct tui_source_window_base)
2234 <do_erase_source_content>: New method.
2235 <erase_source_content>: New method.
2236 (tui_erase_source_content): Don't declare.
2237 * tui/tui-winsource.c (tui_clear_source_content): Update.
2238 (tui_source_window_base::do_erase_source_content): Rename from
2239 tui_erase_source_content.
2240 (tui_source_window_base::show_source_content): Update.
2241 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2242 * tui/tui-source.h (struct tui_source_window)
2243 <erase_source_content>: New method.
2244 * tui/tui-disasm.h (struct tui_disasm_window)
2245 <erase_source_content>: New method.
2246
2247 2019-08-15 Tom Tromey <tom@tromey.com>
2248
2249 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2250 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2251 constructor.
2252 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2253 * tui/tui-source.c (tui_set_source_content): Update.
2254 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2255
2256 2019-08-15 Tom Tromey <tom@tromey.com>
2257
2258 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2259 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2260 tui-source.c.
2261 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2262 Declare.
2263 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2264 method.
2265 (tui_source_window::maybe_update): Update.
2266
2267 2019-08-15 Tom Tromey <tom@tromey.com>
2268
2269 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2270 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2271 tui-disasm.c.
2272 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2273 Declare.
2274 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2275 method.
2276 (tui_disasm_window::maybe_update): Update.
2277
2278 2019-08-15 Tom Tromey <tom@tromey.com>
2279
2280 * tui/tui-winsource.h (struct tui_source_window_base)
2281 <maybe_update>: Declare.
2282 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2283 method.
2284 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2285 Declare.
2286 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2287 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2288 Declare.
2289 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2290
2291 2019-08-15 Tom Tromey <tom@tromey.com>
2292
2293 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2294
2295 2019-08-15 Tom Tromey <tom@tromey.com>
2296
2297 * tui/tui-wingeneral.c: Include tui-stack.h.
2298 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2299 (struct tui_locator_window): Move from tui-data.h.
2300 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2301 (tui_initialize_static_data): Move from tui-data.c.
2302 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2303 (struct tui_locator_window): Move to tui-stack.c.
2304 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2305 (tui_initialize_static_data): Move to tui-stack.c.
2306
2307 2019-08-15 Tom Tromey <tom@tromey.com>
2308
2309 * tui/tui-layout.c (show_source_disasm_command)
2310 (show_source_or_disasm_and_command): Use make_visible method, not
2311 tui_make_window.
2312 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2313 Remove.
2314
2315 2019-08-15 Tom Tromey <tom@tromey.com>
2316
2317 * tui/tui-wingeneral.h (tui_make_window): Update.
2318 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2319 parameter.
2320 (tui_gen_win_info::make_visible): Update.
2321 * tui/tui-regs.c (tui_data_window::display_registers_from):
2322 Update.
2323 * tui/tui-layout.c (show_source_disasm_command)
2324 (show_source_or_disasm_and_command): Update.
2325 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2326 (enum tui_box): Remove.
2327 (struct tui_win_info) <can_box>: New method.
2328 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2329 method.
2330
2331 2019-08-15 Tom de Vries <tdevries@suse.de>
2332
2333 * linux-nat-trad.c: Include gdbarch.h.
2334
2335 2019-08-14 Alan Hayward <alan.hayward@arm.com>
2336
2337 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2338 register sizes.
2339
2340 2019-08-14 Tom Tromey <tromey@adacore.com>
2341
2342 * darwin-nat.c: Include gdbarch.h.
2343 * darwin-nat-info.c: Include gdbarch.h.
2344
2345 2019-08-13 Tom Tromey <tom@tromey.com>
2346
2347 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2348 Remove.
2349 * tui/tui-data.c (tui_initialize_static_data): Update.
2350
2351 2019-08-13 Tom Tromey <tom@tromey.com>
2352
2353 * tui/tui-winsource.h (struct tui_exec_info_window)
2354 <~tui_exec_info_window, maybe_allocate_content, get_content,
2355 m_content>: Remove.
2356 (struct tui_source_window_base) <set_exec_info_content,
2357 show_exec_info_content>: Don't declare.
2358 * tui/tui-winsource.c
2359 (tui_exec_info_window::maybe_allocate_content): Remove.
2360 (tui_source_window_base::update_exec_info): Rename from
2361 set_exec_info_content.
2362 (tui_source_window_base::show_exec_info_content)
2363 (tui_source_window_base::update_exec_info): Remove.
2364
2365 2019-08-13 Tom Tromey <tom@tromey.com>
2366
2367 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2368 declare.
2369 * tui/tui-winsource.c (tui_update_source_window_as_is)
2370 (tui_update_source_windows_with_addr, tui_erase_source_content):
2371 Update.
2372 (tui_clear_exec_info_content): Remove.
2373
2374 2019-08-13 Tom Tromey <tom@tromey.com>
2375
2376 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2377 declare.
2378 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2379 call tui_erase_exec_info_content.
2380 (tui_clear_exec_info_content): Rename from
2381 tui_erase_exec_info_content.
2382 (tui_clear_exec_info_content): Delete.
2383
2384 2019-08-13 Tom Tromey <tom@tromey.com>
2385
2386 * tui/tui-winsource.h (struct tui_source_window_base)
2387 <show_exec_info_content>: Declare.
2388 (tui_show_exec_info_content): Don't declare.
2389 * tui/tui-winsource.c
2390 (tui_source_window_base::show_exec_info_content): Rename from
2391 tui_show_exec_info_content.
2392 (tui_source_window_base::update_exec_info): Update.
2393
2394 2019-08-13 Tom Tromey <tom@tromey.com>
2395
2396 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2397 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2398 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2399 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2400 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2401 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2402 ... here.
2403
2404 2019-08-13 Tom Tromey <tom@tromey.com>
2405
2406 * tui/tui-winsource.h (struct tui_source_window_base)
2407 <update_exec_info>: Declare.
2408 (tui_update_exec_info): Don't declare.
2409 * tui/tui-winsource.c (tui_update_source_window_as_is)
2410 (tui_source_window_base::refresh_all)
2411 (tui_update_all_breakpoint_info): Update.
2412 (tui_source_window_base::update_exec_info): Rename from
2413 tui_update_exec_info.
2414 * tui/tui-stack.c (tui_show_frame_info): Update.
2415
2416 2019-08-13 Tom Tromey <tom@tromey.com>
2417
2418 * tui/tui-winsource.h (struct tui_source_window_base)
2419 <set_exec_info_content>: Declare.
2420 (tui_set_exec_info_content): Don't declare.
2421 * tui/tui-winsource.c
2422 (tui_source_window_base::set_exec_info_content): Rename from
2423 tui_set_exec_info_content.
2424 (tui_update_exec_info): Update.
2425
2426 2019-08-13 Tom Tromey <tom@tromey.com>
2427
2428 * tui/tui-winsource.h (struct tui_source_window_base)
2429 <show_source_content>: Declare.
2430 (tui_show_source_content): Don't declare.
2431 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2432 (tui_source_window_base::show_source_content): Rename from
2433 tui_show_source_content.
2434 (tui_source_window_base::refresh_all): Update.
2435 * tui/tui-layout.c (show_source_disasm_command)
2436 (show_source_or_disasm_and_command): Update.
2437
2438 2019-08-13 Tom Tromey <tom@tromey.com>
2439
2440 * tui/tui-winsource.c (tui_erase_source_content)
2441 (tui_show_source_content, tui_source_window_base::refresh_all):
2442 Update.
2443 * tui/tui-wingeneral.h
2444 (tui_check_and_display_highlight_if_needed): Don't declare.
2445 * tui/tui-wingeneral.c
2446 (tui_win_info::check_and_display_highlight_if_needed): Rename from
2447 check_and_display_highlight_if_needed.
2448 * tui/tui-win.c (tui_rehighlight_all)
2449 (tui_win_info::make_visible_with_new_height): Update.
2450 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2451 (tui_data_window::erase_data_content)
2452 (tui_data_window::display_all_data): Update.
2453 * tui/tui-data.h (struct tui_win_info)
2454 <check_and_display_highlight_if_needed>: Declare.
2455
2456 2019-08-13 Tom Tromey <tom@tromey.com>
2457
2458 * tui/tui-win.c (tui_resize_all): Call
2459 tui_delete_invisible_windows.
2460 * tui/tui-layout.c (show_layout): Call
2461 tui_delete_invisible_windows.
2462 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2463 * tui/tui-data.c (tui_delete_invisible_windows): New function.
2464
2465 2019-08-13 Tom Tromey <tom@tromey.com>
2466
2467 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
2468 tui_add_win_to_layout.
2469
2470 2019-08-13 Tom Tromey <tom@tromey.com>
2471
2472 * tui/tui-layout.h (tui_default_win_height): Don't declare.
2473 * tui/tui-layout.c (tui_default_win_height): Now static.
2474
2475 2019-08-13 Tom Tromey <tom@tromey.com>
2476
2477 * tui/tui-layout.c (show_layout): Unify all layout cases into a
2478 single switch.
2479 (show_source_disasm_command, show_source_or_disasm_and_command):
2480 Don't check current layout.
2481
2482 2019-08-13 Tom Tromey <tom@tromey.com>
2483
2484 * tui/tui-wingeneral.c (make_all_visible): Remove.
2485 (tui_make_all_invisible): Simplify.
2486 * tui/tui-layout.c (tui_make_all_invisible): Move from
2487 tui-wingeneral.c; simplify.
2488 (show_layout): Hoist call to tui_make_all_invisible.
2489 (show_data): Don't call tui_make_all_invisible.
2490
2491 2019-08-13 Tom Tromey <tom@tromey.com>
2492
2493 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
2494 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
2495
2496 2019-08-13 Tom Tromey <tom@tromey.com>
2497
2498 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
2499 tui-data.c.
2500 (show_source_disasm_command, show_data)
2501 (show_source_or_disasm_and_command): Don't use
2502 tui_set_current_layout_to.
2503 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
2504 * tui/tui-data.c (current_layout, tui_current_layout): Move to
2505 tui-layout.c.
2506 (tui_set_current_layout_to): Remove.
2507
2508 2019-08-13 Tom Tromey <tom@tromey.com>
2509
2510 * tui/tui-layout.c (tui_set_layout): Update.
2511 * tui/tui-data.h (struct tui_layout_def): Remove.
2512 (tui_layout_def): Don't declare.
2513 * tui/tui-data.c (layout_def): Remove.
2514 (tui_layout_def): Remove.
2515
2516 2019-08-13 Tom Tromey <tom@tromey.com>
2517
2518 * tui/tui-winsource.h (struct tui_source_window_base)
2519 <clear_detail>: No longer "override".
2520 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
2521 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
2522 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
2523 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
2524 Remove.
2525 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
2526
2527 2019-08-13 Tom Tromey <tromey@adacore.com>
2528
2529 * tracepoint.c: Don't include readline.h or history.h.
2530
2531 2019-08-12 Tom Tromey <tom@tromey.com>
2532
2533 * configure: Rebuild.
2534 * configure.ac: Check for readline 7.
2535 * NEWS: Mention readline 7 requirement.
2536 * README: Update.
2537
2538 2019-08-12 Tom Tromey <tom@tromey.com>
2539
2540 * mingw-hdep.c (gdb_select): Remove readline hack.
2541
2542 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2543
2544 * blockframe.c (find_pc_partial_function): Set *block to nullptr
2545 when the function fails.
2546
2547 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2548
2549 * s390-tdep.c (s390_type_align): New function.
2550 (s390_gdbarch_init): Set it as type_align gdbarch method.
2551
2552 2019-08-09 Tom de Vries <tdevries@suse.de>
2553
2554 PR gdb/24591
2555 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2556 pc_low with relocation offset.
2557
2558 2019-08-07 Tom Tromey <tromey@adacore.com>
2559
2560 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2561 (print_frame_args): Update.
2562 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2563 Update.
2564 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2565 * frame.h (struct frame_arg): Add initializers.
2566 <error>: Now a unique_xmalloc_ptr.
2567
2568 2019-08-07 Alan Hayward <alan.hayward@arm.com>
2569
2570 * NEWS: Expand the Pointer Authentication entry.
2571 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2572 (aarch64_frame_unmask_lr): ... to this.
2573 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2574 Call aarch64_frame_unmask_lr.
2575 * frame.c (struct frame_info): Add "masked" variable.
2576 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2577 (fprint_frame): Check for masked pc.
2578 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2579 declarations.
2580 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2581 * stack.c (print_frame): Check for masked pc.
2582
2583 2019-08-06 Tom Tromey <tom@tromey.com>
2584
2585 * stabsread.c (patch_block_stabs, read_one_struct_field)
2586 (read_enum_type): Use obstack_strndup.
2587 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2588 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2589 * dwarf2read.c (guess_full_die_structure_name)
2590 (anonymous_struct_prefix): Use obstack_strndup.
2591 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2592 * c-exp.y (yylex): Use obstack_strndup.
2593 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2594 (write_var_or_type): Use obstack_strndup.
2595
2596 2019-08-06 Tom Tromey <tom@tromey.com>
2597
2598 * symfile.c (reread_symbols): Use obstack_strdup.
2599 * stabsread.c (read_type): Use obstack_strdup.
2600 * gdb_obstack.h (obstack_strdup): New overload.
2601 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2602 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2603 (dwarf2_canonicalize_name): Use obstack_strdup.
2604 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2605 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2606 Use obstack_strdup.
2607
2608 2019-08-06 Tom Tromey <tom@tromey.com>
2609
2610 * gdb_obstack.h (obstack_strdup): Define.
2611 * gdb_obstack.c (obstack_strdup): Don't define.
2612
2613 2019-08-06 Tom Tromey <tom@tromey.com>
2614
2615 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2616 obstack_strdup.
2617 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2618 obstack_strdup.
2619 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2620 * stabsread.c (common_block_start): Use obstack_strdup.
2621 * objfiles.c (set_objfile_main_name, objfile): Use
2622 obstack_strdup.
2623 * namespace.c (add_using_directive): Use obstack_strdup.
2624 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2625 * jit.c (finalize_symtab): Use obstack_strdup.
2626 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2627 (guess_partial_die_structure_name, partial_die_info::fixup)
2628 (dwarf2_name): Use obstack_strdup.
2629 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2630 obstack_strdup.
2631 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2632 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2633 obstack_strdup.
2634 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2635
2636 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2637
2638 * unittests/help-doc-selftests.c: New file.
2639 * Makefile.in: Add the new file.
2640
2641 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2642
2643 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2644 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2645 the full first line, except when FOR_VALUE_PREFIX. In this case,
2646 the trailing '.' is not output, and the first character is uppercased.
2647 (print_help_for_command): Update call to print_doc_line.
2648 (print_doc_of_command): Likewise.
2649 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2650 * cli/cli-option.c (append_indented_doc): Do not append newline.
2651 (build_help_option): Append newline after first appended_indented_doc
2652 only if a second call is done.
2653 (build_help): Append 2 new lines before each option, except the first
2654 one.
2655 * compile/compile.c (_initialize_compile): Add new lines after
2656 %OPTIONS%, when not at the end of the help.
2657 Change help doc or code
2658 producing the help doc to respect the invariants.
2659 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2660 Also removed the new line after 'Options:', as all other commands
2661 do not put an empty line between 'Options:' and the first option.
2662 * printcmd.c (_initialize_printcmd): Likewise.
2663 * stack.c (_initialize_stack): Likewise.
2664 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2665 incorrectly telling COMMAND is optional.
2666 * ada-lang.c (_initialize_ada_language): Change help doc or code
2667 producing the help doc to respect the invariants.
2668 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2669 * breakpoint.c (_initialize_breakpoint): Likewise.
2670 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2671 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2672 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2673 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2674 _initialize_cli_style): Likewise.
2675 * corelow.c (core_target_info): Likewise.
2676 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2677 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2678 * filesystem.c (_initialize_filesystem): Likewise.
2679 * frame.c (_initialize_frame): Likewise.
2680 * gnu-nat.c (add_task_commands): Likewise.
2681 * infcall.c (_initialize_infcall): Likewise.
2682 * infcmd.c (_initialize_infcmd): Likewise.
2683 * interps.c (_initialize_interpreter): Likewise.
2684 * language.c (_initialize_language): Likewise.
2685 * linux-fork.c (_initialize_linux_fork): Likewise.
2686 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2687 * maint.c (_initialize_maint_cmds): Likewise.
2688 * memattr.c (_initialize_mem): Likewise.
2689 * printcmd.c (_initialize_printcmd): Likewise.
2690 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2691 _RegEx): Likewise.
2692 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2693 * record-btrace.c (_initialize_record_btrace): Likewise.
2694 * record-full.c (_initialize_record_full): Likewise.
2695 * record.c (_initialize_record): Likewise.
2696 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2697 * regcache.c (_initialize_regcache): Likewise.
2698 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2699 _initialize_remote): Likewise.
2700 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2701 * serial.c (_initialize_serial): Likewise.
2702 * skip.c (_initialize_step_skip): Likewise.
2703 * source.c (_initialize_source): Likewise.
2704 * stack.c (_initialize_stack): Likewise.
2705 * symfile.c (_initialize_symfile): Likewise.
2706 * symtab.c (_initialize_symtab): Likewise.
2707 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2708 * top.c (init_main): Likewise.
2709 * tracefile-tfile.c (tfile_target_info): Likewise.
2710 * tracepoint.c (_initialize_tracepoint): Likewise.
2711 * tui/tui-win.c (_initialize_tui_win): Likewise.
2712 * utils.c (add_internal_problem_command): Likewise.
2713 * valprint.c (value_print_option_defs): Likewise.
2714
2715 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
2716
2717 PR build/24886
2718 * configure.ac: Drop enable-libmcheck support.
2719 * configure, config.in: Rebuild.
2720 * libmcheck.m4: Remove.
2721 * acinclude.m4: Don't include it.
2722 * Makefile.in: Don't distribute it.
2723 * top.c (print_gdb_configuration): Don't mention it.
2724
2725 2019-08-06 Tom Tromey <tom@tromey.com>
2726
2727 * utils.c (set_output_style): Sometimes pass stream to
2728 emit_style_escape.
2729 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2730 * record-btrace.c (btrace_insn_history): Update.
2731 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2732 method.
2733 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2734 Update initializers.
2735 <m_uiout>: New field.
2736 <m_di>: Move lower.
2737 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2738 Remove "uiout" parameter.
2739 (dump_insns): Update.
2740 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2741 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2742
2743 2019-08-06 Christian Biesinger <cbiesinger@google.com>
2744
2745 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2746 (error_in_psymtab_expansion): Likewise.
2747 (lookup_symbol_via_quick_fns): Likewise.
2748 (basic_lookup_transparent_type_quick): Likewise.
2749 (basic_lookup_transparent_type_1): Likewise.
2750
2751 2019-08-06 Tom Tromey <tromey@adacore.com>
2752
2753 * source.c (last_source_error): Now bool.
2754 (print_source_lines_base): Make "noprint" bool. Only open
2755 source file when last_source_visited changes.
2756
2757 2019-08-06 Tom Tromey <tromey@adacore.com>
2758
2759 * annotate.c (annotate_source_line): Use g_source_cache.
2760 * source-cache.c (source_cache::get_plain_source_lines): Change
2761 parameters. Populate m_offset_cache.
2762 (source_cache::ensure): New method.
2763 (source_cache::get_line_charpos): New method.
2764 (extract_lines): Move lower. Change parameters.
2765 (source_cache::get_source_lines): Move lower.
2766 * source-cache.h (class source_cache): Update comment.
2767 <get_line_charpos>: New method.
2768 <get_source_lines>: Update comment.
2769 <clear>: Clear m_offset_cache.
2770 <get_plain_source_lines>: Change parameters.
2771 <ensure>: New method
2772 <m_offset_cache>: New member.
2773 * source.c (forget_cached_source_info_for_objfile): Update.
2774 (info_source_command): Use g_source_cache.
2775 (find_source_lines, open_source_file_with_line_charpos): Remove.
2776 (print_source_lines_base, search_command_helper): Use g_source_cache.
2777 * source.h (open_source_file_with_line_charpos): Don't declare.
2778 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2779 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2780 Use g_source_cache.
2781
2782 2019-08-06 Tom Tromey <tromey@adacore.com>
2783
2784 * source-cache.c (source_cache::get_plain_source_lines):
2785 Remove "first_line" and "last_line" parameters.
2786 (source_cache::get_source_lines): Cache plain text.
2787 * source-cache.h (class source_cache)
2788 <get_plain_source_lines>: Update.
2789
2790 2019-08-06 Tom Tromey <tromey@adacore.com>
2791
2792 * source-cache.c (extract_lines): No longer a method.
2793 Changed type of parameter. Include final newline.
2794 (selftests::extract_lines_test): New function.
2795 (_initialize_source_cache): Likewise.
2796 * source-cache.h (class source_cache)
2797 <extract_lines>: Don't declare.
2798
2799 2019-08-06 Tom Tromey <tromey@adacore.com>
2800
2801 * breakpoint.c (init_breakpoint_sal): Update.
2802 (breakpoint): Update.
2803 * breakpoint.h (struct breakpoint) <filter>: Now a
2804 unique_xmalloc_ptr.
2805
2806 2019-08-05 Christian Biesinger <cbiesinger@google.com>
2807
2808 * NEWS: Mention dictionary access on blocks.
2809 * python/py-block.c (blpy_getitem): New function.
2810 (block_object_as_mapping): New struct.
2811 (block_object_type): Use new struct for tp_as_mapping field.
2812
2813 2019-08-05 Christian Biesinger <cbiesinger@google.com>
2814
2815 * objfiles.h (objfile): Add a comment describing partial symbols.
2816
2817 2019-08-05 Tom Tromey <tromey@adacore.com>
2818
2819 * compile/compile.c (_initialize_compile): Use _(), not N_().
2820 * thread.c (_initialize_thread): Use _(), not N_().
2821 * stack.c (_initialize_stack): Use _(), not N_().
2822 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2823
2824 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2825
2826 * dwarf2read.c (struct dw2_symtab_iterator):
2827 <want_specific_block>: Remove.
2828 <block_index>: Change type to gdb::optional.
2829 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2830 change type of BLOCK_INDEX parameter to gdb::optional.
2831 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2832 (dw2_lookup_symbol): Don't pass argument for
2833 WANT_SPECIFIC_BLOCK.
2834 (dw2_expand_symtabs_for_function): Don't pass argument for
2835 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2836 (class dw2_debug_names_iterator)
2837 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2838 parameter, change BLOCK_INDEX type to gdb::optional.
2839 <m_want_specific_block>: Remove.
2840 <m_block_index>: Change type to gdb::optional.
2841 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2842 gdb::optional. Re-write in function of gdb::optional.
2843 (dw2_debug_names_lookup_symbol): Don't pass argument for
2844 WANT_SPECIFIC_BLOCK.
2845 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2846 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2847 BLOCK_INDEX.
2848
2849 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2850
2851 * NEWS: Mention changes to "info sources" command.
2852
2853 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2854
2855 * symtab.c (filename_partial_match_opts): New struct type.
2856 (struct output_source_filename_data): New members
2857 regexp, c_regexp, partial_match.
2858 (output_source_filename): Use new members to decide to print file.
2859 (info_sources_option_defs): New variable.
2860 (make_info_sources_options_def_group, print_info_sources_header,
2861 info_sources_command_completer):
2862 New functions.
2863 (info_sources_command): Read new optional arguments.
2864 (_initialize_symtab): Update info sources help.
2865
2866 2019-08-02 Alexandre Oliva <oliva@adacore.com>
2867
2868 * ada-lang.c (exception_support_info_v0): Renamed from...
2869 (default_exception_support_info): ... this. Create new
2870 definition for v1.
2871 (ada_has_this_exception_support): Look up catch_handlers_sym.
2872 (ada_exception_support_info_sniffer): Try v0 after default.
2873
2874 2019-08-01 Tom Tromey <tromey@adacore.com>
2875
2876 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2877 gdbarch.h.
2878
2879 2019-08-01 Christian Biesinger <cbiesinger@google.com>
2880
2881 * s12z-tdep.c: Fix include path for s12z-opc.h.
2882
2883 2019-08-01 Alan Hayward <alan.hayward@arm.com>
2884
2885 * NEWS: Require GNU make 3.82.
2886
2887 2019-07-16 Tom Tromey <tom@tromey.com>
2888
2889 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2890 declare.
2891
2892 2019-07-30 Tom Tromey <tromey@adacore.com>
2893
2894 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2895
2896 2019-07-30 Kevin Buettner <kevinb@redhat.com>
2897
2898 * printcmd.c (print_address_symbolic): Print negative offsets.
2899 (build_address_symbolic): Force signed arithmetic when computing
2900 offset.
2901
2902 2019-07-30 Christian Biesinger <cbiesinger@google.com>
2903
2904 PR/24474: Add a function to lookup static variables.
2905 * NEWS: Mention this new function.
2906 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2907 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2908 * python/python.c (python_GdbMethods): Add new function.
2909
2910 2019-07-29 Christian Biesinger <cbiesinger@google.com>
2911
2912 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2913 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2914 (objfpy_lookup_static_symbol): New function.
2915 (objfile_object_methods): Add new functions.
2916
2917 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2918
2919 * NEWS: Mention 'set|show print frame-info'. Mention new
2920 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2921 backtrace argument. Mention that python frame filtering code
2922 is now consistent with what 'backtrace' command prints.
2923
2924 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2925
2926 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2927 comments.
2928 (print_frame_info_auto, print_frame_info_source_line,
2929 print_frame_info_location, print_frame_info_source_and_location,
2930 print_frame_info_location_and_address, print_frame_info_short_location):
2931 New declarations.
2932 (struct frame_print_options): New member print_frame_info.
2933 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2934 * stack.h (get_user_print_what_frame_info): New declaration.
2935 (frame_show_address): New declaration.
2936 * stack.c (print_frame_arguments_choices): New value 'presence'.
2937 (print_frame_info_auto, print_frame_info_source_line,
2938 print_frame_info_location, print_frame_info_source_and_location,
2939 print_frame_info_location_and_address, print_frame_info_short_location,
2940 print_frame_info_choices, print_frame_info_print_what): New definitions.
2941 (print_frame_args): Only print dots for args if print frame-arguments
2942 is 'presence'.
2943 (frame_print_option_defs): New element for "frame-info".
2944 (get_user_print_what_frame_info): New function.
2945 (frame_show_address): Make non static. Move comment to stack.h.
2946 (print_frame_info_to_print_what): New function.
2947 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2948 to decide what to print.
2949 (backtrace_command_1): Handle the new print_frame_arguments_presence
2950 value.
2951 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2952 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2953 (py_print_frame): In non-mi mode, use LOCATION as default for
2954 print_what, similarly to frame information printed directly by
2955 backtrace command. Handle frame-info user option in non MI mode.
2956
2957 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2958
2959 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2960 Add case for debugging 32-bit target on 64-bit host. Revise
2961 comment.
2962
2963 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2964
2965 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2966 instead of find_function_entry_range_from_pc.
2967
2968 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2969
2970 * stack.c (find_frame_funname): Remove code which preferred
2971 minsym over symtab sym in "certain pathological cases".
2972
2973 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2974 parameter. Change type of "do_demangle" to bool.
2975 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2976 Pass suitable "prefer_sym_over_minsym" flag to
2977 build_address_symbolic(). Don't output "+" for negative offsets.
2978 * printcmd.c (print_address_symbolic): Update invocation of
2979 build_address_symbolic to include a "prefer_sym_over_minsym"
2980 flag.
2981 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2982 Restrict cases in which use of minimal symbol is preferred to that
2983 of a found symbol. Update comments.
2984
2985 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2986 for entry pc when entry pc is out of range for that FDE.
2987
2988 2019-07-26 Brian Callahan <bcallah@openbsd.org>
2989
2990 PR gdb/24839:
2991 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2992 type.
2993
2994 2019-07-25 Christian Biesinger <cbiesinger@google.com>
2995
2996 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2997 this function's Python signature.
2998
2999
3000 2019-07-24 Christian Biesinger <cbiesinger@google.com>
3001
3002 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3003 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3004 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3005 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3006 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3007
3008
3009 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3010
3011 * h8300-tdep.c (h8300_register_name_common): New.
3012 h8300_register_name): Use h8300_register_name_common.
3013 (h8300s_register_name): Likewise.
3014 (h8300sx_register_name): Likewise.
3015 (h8300h_register_nam): New.
3016 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3017
3018
3019 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3020
3021 * arm-tdep.c (arm_skip_cmse_entry): New function.
3022 (arm_is_sgstubs_section): New function.
3023 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3024
3025 2019-07-22 Tom Tromey <tom@tromey.com>
3026
3027 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3028 Don't self-assign.
3029
3030 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3031
3032 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3033 type_print.
3034
3035 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3036
3037 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3038 so that GDB doesn't match any msymbols when searching in the
3039 TYPES_DOMAIN.
3040 (print_symbol_info): Print using typedef_print or type_print based
3041 on the type of the symbol. Add updated FIXME comment moved from...
3042 (_initialize_symtab): ... move and update FIXME comment to above.
3043
3044 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3045
3046 * NEWS: Mention adding -q option to "info types".
3047 * symtab.c (struct info_types_options): New struct.
3048 (info_types_options_defs): New variable.
3049 (make_info_types_options_def_group): New function.
3050 (info_types_command): Use gdb::option framework to parse options.
3051 (info_types_command_completer): New function.
3052 (_initialize_symtab): Extend the help text on "info types" and
3053 register command completer.
3054
3055 2019-07-21 Christian Biesinger <cbiesinger@google.com>
3056
3057 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3058 (lookup_symbol_in_objfile): Change int to block_enum and add a
3059 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3060
3061 2019-07-20 Christian Biesinger <cbiesinger@google.com>
3062
3063 * MAINTAINERS (Write After Approval): Add self.
3064
3065 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3066
3067 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3068 instruction to the dummy code region.
3069
3070 2019-07-19 Tom Tromey <tromey@adacore.com>
3071
3072 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3073 (ARGSUSED, PARAMS, __func__): Remove rules.
3074
3075 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3076
3077 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3078 * features/arm/arm-with-iwmmxt.c: Remove.
3079 * features/arm/arm-with-iwmmxt.xml: Remove.
3080 * features/arm/arm-with-m-fpa-layout.c: Remove.
3081 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3082 * features/arm/arm-with-m-vfp-d16.c: Remove.
3083 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3084 * features/arm/arm-with-m.c: Remove.
3085 * features/arm/arm-with-m.xml: Remove.
3086 * features/arm/arm-with-neon.c: Remove.
3087 * features/arm/arm-with-neon.xml: Remove.
3088 * features/arm/arm-with-vfpv2.c: Remove.
3089 * features/arm/arm-with-vfpv2.xml: Remove.
3090 * features/arm/arm-with-vfpv3.c: Remove.
3091 * features/arm/arm-with-vfpv3.xml: Remove.
3092
3093 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3094
3095 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3096
3097 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3098
3099 * arch/aarch32.c (aarch32_create_target_description): Create
3100 target descriptions using features.
3101 * arch/arm.c (arm_create_target_description)
3102 (arm_create_mprofile_target_description): Likewise.
3103 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3104
3105 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3106
3107 * Makefile.in: Add new files.
3108 * aarch32-tdep.c: New file.
3109 * aarch32-tdep.h: New file.
3110 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3111 Call aarch32_read_description.
3112 * arch/aarch32.c: New file.
3113 * arch/aarch32.h: New file.
3114 * arch/arm.c (arm_create_target_description)
3115 (arm_create_mprofile_target_description): New function.
3116 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3117 (arm_create_target_description)
3118 (arm_create_mprofile_target_description): New declaration.
3119 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3120 read_description functions.
3121 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3122 Likewise.
3123 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3124 * arm-tdep.c (tdesc_arm_list): New variable.
3125 (arm_register_g_packet_guesses): Call create description functions.
3126 (arm_read_description) (arm_read_mprofile_description): New
3127 function.
3128 * arm-tdep.h (arm_read_description)
3129 (arm_read_mprofile_description): Add declaration.
3130 * configure.tgt: Add new files.
3131
3132 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3133
3134 * top.c (new_ui_command): Open specified terminal just once.
3135
3136 2019-07-18 Tom Tromey <tromey@adacore.com>
3137
3138 * symtab.c (main_name): Constify return type.
3139 * symfile.c (set_initial_language): Update.
3140 * symtab.h (main_name): Constify return type.
3141
3142 2019-07-17 Tom Tromey <tom@tromey.com>
3143
3144 * tui/tui-winsource.c (tui_update_source_window)
3145 (tui_update_source_window_as_is)
3146 (tui_update_source_windows_with_line): Remove return.
3147 * tui/tui-disasm.c (tui_show_disassem)
3148 (tui_show_disassem_and_update_source): Remove return.
3149 * tui/tui.c (tui_reset): Remove return.
3150 * tui/tui-wingeneral.c
3151 (tui_check_and_display_highlight_if_needed): Remove return.
3152
3153 2019-07-17 Tom Tromey <tom@tromey.com>
3154
3155 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3156
3157 2019-07-17 Tom Tromey <tom@tromey.com>
3158
3159 * tui/tui-winsource.h (struct tui_exec_info_window)
3160 (struct tui_source_window_base): Move from tui-data.h.
3161 * tui/tui-winsource.c: Move many method definitions from
3162 elsewhere. Remove "structuring" comments.
3163 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3164 (tui_source_window_base::refresh_window): Move to
3165 tui-winsource.c.
3166 * tui/tui-win.c (tui_source_window_base::refresh_all)
3167 (tui_source_window_base::update_tab_width)
3168 (tui_source_window_base::set_new_height)
3169 (tui_source_window_base::do_make_visible_with_new_height): Move to
3170 tui-winsource.c.
3171 * tui/tui-source.h: Update.
3172 * tui/tui-source.c (tui_source_window_base::reset): Move to
3173 tui-winsource.c.
3174 * tui/tui-disasm.h: Update.
3175 * tui/tui-data.h (struct tui_exec_info_window): Move to
3176 tui-winsource.h.
3177 (struct tui_source_window_base): Likewise.
3178 * tui/tui-data.c (tui_source_window_base::clear_detail)
3179 (tui_source_window_base, ~tui_source_window_base): Move to
3180 tui-winsource.c.
3181
3182 2019-07-17 Tom Tromey <tom@tromey.com>
3183
3184 * tui/tui-win.c (tui_resize_all)
3185 (tui_source_window_base::update_tab_width)
3186 (tui_adjust_win_heights): Update.
3187 (tui_win_info::make_invisible_and_set_new_height): Rename from
3188 make_invisible_and_set_new_height.
3189 * tui/tui-data.h (struct tui_win_info)
3190 <make_invisible_and_set_new_height>: New method.
3191
3192 2019-07-17 Tom Tromey <tom@tromey.com>
3193
3194 * tui/tui.c: Update.
3195 * tui/tui-source.h (struct tui_source_window): Move from
3196 tui-data.h.
3197 * tui/tui-layout.c: Update.
3198 * tui/tui-disasm.c: Update.
3199 * tui/tui-data.h (struct tui_source_window): Move to
3200 tui-source.h.
3201
3202 2019-07-17 Tom Tromey <tom@tromey.com>
3203
3204 * tui/tui-disasm.h (struct tui_disasm_window): Move from
3205 tui-data.h.
3206 * tui/tui-data.h (struct tui_disasm_window): Move to
3207 tui-disasm.h.
3208
3209 2019-07-17 Tom Tromey <tom@tromey.com>
3210
3211 * tui/tui-regs.h (struct tui_data_item_window): Move from
3212 tui-data.h.
3213 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3214 * tui/tui-data.h (struct tui_data_item_window): Move to
3215 tui-regs.h.
3216 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3217
3218 2019-07-17 Tom Tromey <tom@tromey.com>
3219
3220 * tui/tui.c: Update.
3221 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3222 (tui_cmd_window::max_height): Move to tui-command.c.
3223 * tui/tui-layout.c: Update.
3224 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3225 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3226 tui-command.c.
3227 * tui/tui-command.h (struct tui_cmd_window): Move from
3228 tui-data.h.
3229 * tui/tui-command.c: Remove "structuring" comments.
3230 (tui_cmd_window::clear_detail)
3231 (tui_cmd_window::do_make_visible_with_new_height)
3232 (tui_cmd_window::max_height): Move from elsewhere.
3233
3234 2019-07-17 Tom Tromey <tom@tromey.com>
3235
3236 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3237 Now static.
3238 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3239 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3240
3241 2019-07-17 Tom Tromey <tom@tromey.com>
3242
3243 * tui/tui.c: Update.
3244 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3245 tui-regs.c.
3246 * tui/tui-windata.h: Remove file.
3247 * tui/tui-windata.c: Remove file.
3248 * tui/tui-win.c (tui_data_window::set_new_height)
3249 (tui_data_window::do_make_visible_with_new_height): Move to
3250 tui-regs.c.
3251 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3252 * tui/tui-regs.c: Remove "structuring" comments.
3253 (tui_data_window::first_data_item_displayed)
3254 (tui_data_window::delete_data_content_windows)
3255 (tui_data_window::erase_data_content)
3256 (tui_data_window::display_all_data)
3257 (tui_data_window::refresh_all)
3258 (tui_data_window::do_scroll_vertical)
3259 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3260 (tui_data_window::do_make_visible_with_new_height)
3261 (tui_data_window::refresh_window): Move from elsewhere.
3262 (_initialize_tui_regs): Move to end of file.
3263 * tui/tui-layout.c: Update.
3264 * tui/tui-hooks.c: Update.
3265 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3266 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3267 tui-regs.c.
3268 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3269
3270 2019-07-17 Tom Tromey <tom@tromey.com>
3271
3272 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3273 seen.
3274
3275 2019-07-17 Tom Tromey <tom@tromey.com>
3276
3277 * tui/tui-win.c (tui_source_window_base::set_new_height)
3278 (tui_source_window_base::do_make_visible_with_new_height): Use
3279 m_has_locator field directly.
3280 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3281 method.
3282 (struct tui_source_window_base) <has_locator>: Likewise.
3283
3284 2019-07-17 Tom Tromey <tom@tromey.com>
3285
3286 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3287 Don't declare.
3288 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3289 Remove.
3290 * tui/tui-win.c (tui_source_window_base::set_new_height)
3291 (tui_source_window_base::set_new_height)
3292 (make_invisible_and_set_new_height)
3293 (tui_source_window_base::do_make_visible_with_new_height)
3294 (tui_source_window_base::do_make_visible_with_new_height):
3295 Update.
3296 * tui/tui-layout.c (show_source_disasm_command, show_data)
3297 (show_source_or_disasm_and_command): Update.
3298 * tui/tui-layout.c (show_layout): Update.
3299
3300 2019-07-17 Tom Tromey <tom@tromey.com>
3301
3302 * tui/tui-layout.c (make_data_window): Remove.
3303 (show_data): Unify creation and re-initialization cases.
3304
3305 2019-07-17 Tom Tromey <tom@tromey.com>
3306
3307 * tui/tui-layout.c (make_source_window, make_disasm_window):
3308 Remove.
3309 (show_data): Unify creation and re-initialization cases.
3310
3311 2019-07-17 Tom Tromey <tom@tromey.com>
3312
3313 * tui/tui-layout.c (make_command_window): Remove.
3314 (show_source_disasm_command, show_source_or_disasm_and_command):
3315 Unify creation and re-initialization cases.
3316
3317 2019-07-17 Tom Tromey <tom@tromey.com>
3318
3319 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3320 creation and re-initialization cases.
3321
3322 2019-07-17 Tom Tromey <tom@tromey.com>
3323
3324 * tui/tui-regs.c (tui_get_register): Return void.
3325
3326 2019-07-17 Tom Tromey <tom@tromey.com>
3327
3328 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3329 Simplify.
3330
3331 2019-07-17 Tom Tromey <tom@tromey.com>
3332
3333 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3334 resetting.
3335
3336 2019-07-17 Tom Tromey <tom@tromey.com>
3337
3338 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3339 * tui/tui-regs.c (tui_reg_layout): New function.
3340 (tui_show_registers, tui_reg_command): Use it.
3341 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3342 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3343 parameters.
3344 (tui_layout_command): Remove.
3345
3346 2019-07-17 Tom Tromey <tom@tromey.com>
3347
3348 * tui/tui-layout.h (tui/tui-layout): Return void.
3349 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3350
3351 2019-07-17 Tom Tromey <tom@tromey.com>
3352
3353 * tui/tui-layout.c (show_source_disasm_command, show_data):
3354 Update.
3355 (reset_locator): Remove.
3356 (show_source_or_disasm_and_command): Update.
3357
3358 2019-07-17 Tom Tromey <tom@tromey.com>
3359
3360 * tui/tui-source.c (tui_source_window_base::reset): Remove
3361 win_type parameter.
3362 * tui/tui-layout.c (make_command_window, make_source_window)
3363 (make_disasm_window, make_data_window)
3364 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3365 (reset_locator, show_source_or_disasm_and_command): Update.
3366 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3367 win_type parameter.
3368 (struct tui_source_window_base) <reset>: Likewise.
3369
3370 2019-07-17 Tom Tromey <tom@tromey.com>
3371
3372 * tui/tui-layout.c (show_source_disasm_command): Use
3373 reset_locator.
3374 (reset_locator): New function.
3375 (init_and_make_win): Remove.
3376 (show_source_or_disasm_and_command): Use reset_locator.
3377
3378 2019-07-17 Tom Tromey <tom@tromey.com>
3379
3380 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3381 condition.
3382 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3383 Remove condition.
3384 * tui/tui-source.c (tui_source_window_base::reset): New method.
3385 * tui/tui-layout.c (make_command_window): Don't call
3386 init_and_make_win.
3387 (make_source_window, make_disasm_window): Don't call
3388 make_source_or_disasm_window.
3389 (make_data_window): Don't call init_and_make_win. Change calling
3390 convention.
3391 (show_source_disasm_command, show_data): Simplify.
3392 (make_source_or_disasm_window): Remove.
3393 (show_source_or_disasm_and_command): Simplify.
3394 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3395 (struct tui_source_window_base) <reset>: Likewise.
3396 <execution_info>: Remove initializer.
3397 * tui/tui-data.c (tui_source_window_base): Initialize
3398 execution_info.
3399
3400 2019-07-17 Tom Tromey <tom@tromey.com>
3401
3402 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3403 variable.
3404
3405 2019-07-17 Tom Tromey <tom@tromey.com>
3406
3407 * tui/tui.c (tui_rl_other_window): Update.
3408 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3409 superclass method first. Always iterate over regs_content.
3410 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3411 method.
3412 * tui/tui-win.c (tui_set_focus_command): Update.
3413
3414 2019-07-17 Tom Tromey <tom@tromey.com>
3415
3416 * tui/tui-win.c (tui_set_focus_command): Rename from
3417 tui_set_focus. Call tui_enable.
3418 (tui_set_focus_command): Remove.
3419
3420 2019-07-17 Tom Tromey <tom@tromey.com>
3421
3422 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3423 refresh_window.
3424 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3425 touchwin.
3426 (tui_data_window::refresh_window): Call refresh_window on data
3427 items. Always call superclass refresh_window.
3428 (tui_win_info::refresh): Remove.
3429 (tui_source_window_base::refresh_window): Update.
3430 (tui_refresh_all): Update.
3431 * tui/tui-layout.c (show_source_disasm_command): Remove call to
3432 refresh_window.
3433 (show_source_or_disasm_and_command): Likewise.
3434 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3435 (struct tui_source_window_base) <refresh>: Likewise.
3436
3437 2019-07-17 Tom Tromey <tom@tromey.com>
3438
3439 * tui/tui-winsource.c (tui_clear_source_content)
3440 (tui_show_source_content): Update.
3441 * tui/tui-source.c (tui_source_window::showing_source_p): Check
3442 whether content is empty.
3443 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3444 Remove.
3445
3446 2019-07-17 Tom Tromey <tom@tromey.com>
3447
3448 * tui/tui-winsource.c (tui_erase_source_content): Clear the
3449 window's contents.
3450 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3451 * tui/tui-source.c (tui_set_source_content_nil): Remove.
3452
3453 2019-07-17 Tom Tromey <tom@tromey.com>
3454
3455 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3456 (struct tui_data_item_window): Update.
3457
3458 2019-07-17 Tom Tromey <tom@tromey.com>
3459
3460 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3461 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3462 defines.
3463
3464 2019-07-17 Tom Tromey <tom@tromey.com>
3465
3466 * tui/tui-winsource.h (tui_erase_source_content)
3467 (tui_clear_source_content): Remove "display_prompt" parameter.
3468 * tui/tui-winsource.c (tui_update_source_window_as_is)
3469 (tui_update_source_windows_with_addr): Update.
3470 (tui_clear_source_content): Remove "display_prompt" parameter.
3471 (tui_erase_source_content): Likewise. Simplify.
3472 (tui_show_source_content): Update.
3473 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3474 * tui/tui-stack.c (tui_show_frame_info): Update.
3475 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3476 Remove defines.
3477
3478 2019-07-17 Tom Tromey <tom@tromey.com>
3479
3480 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3481 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
3482 parameter.
3483 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
3484 parameter.
3485
3486 2019-07-17 Tom Tromey <tom@tromey.com>
3487
3488 * tui/tui-winsource.c (tui_clear_source_content)
3489 (tui_show_source_content, tui_show_exec_info_content)
3490 (tui_clear_exec_info_content): Update.
3491 * tui/tui-stack.c (tui_show_locator_content): Update.
3492 (tui_show_frame_info): Update.
3493 * tui/tui-source.h (tui_source_window): Don't declare.
3494 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
3495 from tui_source_is_displayed.
3496 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
3497 Remove field.
3498 (struct tui_source_window_base) <content_in_use>: New field. Now
3499 bool.
3500 (struct tui_source_window) <showing_source_p>: New method.
3501 (TUI_SRC_WIN): Change cast.
3502 * tui/tui-data.c (tui_initialize_static_data): Update.
3503
3504 2019-07-17 Tom Tromey <tom@tromey.com>
3505
3506 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
3507 location_matches_p.
3508 * tui/tui-source.c (tui_source_window::location_matches_p): New
3509 method.
3510 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
3511 method.
3512 * tui/tui-data.h (struct tui_source_window_base)
3513 <location_matches_p>: New method.
3514 (struct tui_source_window, struct tui_disasm_window)
3515 <location_matches_p>: Likewise.
3516
3517 2019-07-17 Tom Tromey <tom@tromey.com>
3518
3519 * tui/tui-win.c (tui_set_win_height_command): Rename from
3520 tui_set_win_height.
3521 (tui_set_win_height_command): Remove.
3522
3523 2019-07-17 Tom Tromey <tom@tromey.com>
3524
3525 * tui/tui-source.c (tui_source_window): New constructor. Add
3526 observer.
3527 (~tui_source_window): New destructor.
3528 (tui_source_window::style_changed): New method.
3529 * tui/tui-hooks.c (tui_redisplay_source): Remove.
3530 (tui_attach_detach_observers): Update.
3531 * tui/tui-data.h (struct tui_source_window): Make constructor not
3532 inline. Add destructor.
3533 (struct tui_source_window) <style_changed>: New method.
3534 <m_observable>: New member.
3535
3536 2019-07-17 Tom Tromey <tom@tromey.com>
3537
3538 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3539 * tui/tui-win.c (tui_resize_all): Fix typo.
3540
3541 2019-07-17 Tom Tromey <tom@tromey.com>
3542
3543 * tui/tui-wingeneral.h (tui_refresh_all): Update.
3544 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3545 (tui_refresh_all): Remove "list" parameter. Use foreach.
3546 * tui/tui-win.c (window_name_completer): Use foreach.
3547 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3548 (update_tab_width): Likewise.
3549 * tui/tui-layout.c (show_layout): Update.
3550 * tui/tui-data.h (class tui_window_iterator): New.
3551 (struct all_tui_windows): New.
3552 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3553
3554 2019-07-17 Tom Tromey <tom@tromey.com>
3555
3556 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3557 parameter. Don't reference globals.
3558 (tui_reg_command): Update.
3559
3560 2019-07-17 Tom Tromey <tom@tromey.com>
3561
3562 * tui/tui-regs.c (tui_show_registers): Simplify.
3563
3564 2019-07-17 Tom Tromey <tom@tromey.com>
3565
3566 * tui/tui-regs.c (tui_show_registers): Update.
3567 (tui_show_register_group): Add win_info parameter.
3568
3569 2019-07-17 Tom Tromey <tom@tromey.com>
3570
3571 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3572 Rename from tui_display_reg_element_at_line.
3573 (tui_data_window::display_registers_from_line): Update.
3574 * tui/tui-data.h (struct tui_data_window)
3575 <display_reg_element_at_line>: New method.
3576
3577 2019-07-17 Tom Tromey <tom@tromey.com>
3578
3579 * tui/tui-regs.h (tui_display_registers_from)
3580 (tui_display_registers_from_line): Don't declare.
3581 * tui/tui-windata.c (tui_data_window::display_all_data)
3582 (tui_data_window::refresh_all)
3583 (tui_data_window::do_scroll_vertical): Update.
3584 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3585 from tui_display_registers_from.
3586 (tui_display_reg_element_at_line): Update.
3587 (tui_data_window::display_registers_from_line): Rename from
3588 tui_display_registers_from_line.
3589 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3590 display_registers_from_line>: New methods.
3591
3592 2019-07-17 Tom Tromey <tom@tromey.com>
3593
3594 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3595 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3596 from tui_erase_data_content.
3597 (tui_data_window::display_all_data)
3598 (tui_data_window::refresh_all)
3599 (tui_data_window::do_scroll_vertical): Update.
3600 * tui/tui-regs.c (tui_show_registers): Update.
3601 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3602 New method.
3603
3604 2019-07-17 Tom Tromey <tom@tromey.com>
3605
3606 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3607 declare.
3608 * tui/tui-windata.c
3609 (tui_data_window::delete_data_content_windows): Rename from
3610 tui_delete_data_content_windows.
3611 (tui_data_window::display_all_data)
3612 (tui_data_window::do_scroll_vertical): Update.
3613 * tui/tui-data.h (struct tui_data_window)
3614 <delete_data_content_windows>: New method.
3615
3616 2019-07-17 Tom Tromey <tom@tromey.com>
3617
3618 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3619 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3620
3621 2019-07-17 Tom Tromey <tom@tromey.com>
3622
3623 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3624 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3625 from tui_display_all_data.
3626 * tui/tui-win.c
3627 (tui_data_window::do_make_visible_with_new_height): Update.
3628 * tui/tui-regs.c (tui_show_registers): Update.
3629 * tui/tui-layout.c (tui_set_layout): Update.
3630 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3631 method.
3632
3633 2019-07-17 Tom Tromey <tom@tromey.com>
3634
3635 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3636 * tui/tui-windata.c (tui_display_data_from): Remove.
3637 (tui_data_window::refresh_all): Update.
3638
3639 2019-07-17 Tom Tromey <tom@tromey.com>
3640
3641 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3642 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3643 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3644 tui_display_registers_from_line.
3645 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3646 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3647 "force_display" parameter.
3648
3649 2019-07-17 Tom Tromey <tom@tromey.com>
3650
3651 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3652 declare.
3653 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3654 Rename from tui_first_reg_element_no_inline.
3655 (tui_display_reg_element_at_line)
3656 (tui_display_registers_from_line): Update.
3657 * tui/tui-data.h (struct tui_data_window)
3658 <first_reg_element_no_inline>: New method.
3659
3660 2019-07-17 Tom Tromey <tom@tromey.com>
3661
3662 * tui/tui-windata.c (tui_display_data_from)
3663 (tui_data_window::do_scroll_vertical): Update.
3664 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3665 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3666 Rename from tui_line_from_reg_element_no.
3667 (tui_display_registers_from_line): Update.
3668 * tui/tui-data.h (struct tui_data_window)
3669 <line_from_reg_element_no>: New method.
3670
3671 2019-07-17 Tom Tromey <tom@tromey.com>
3672
3673 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3674 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3675 tui_last_regs_line_no.
3676 (tui_display_reg_element_at_line)
3677 (tui_display_registers_from_line): Update.
3678 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3679 method.
3680
3681 2019-07-17 Tom Tromey <tom@tromey.com>
3682
3683 PR tui/24722:
3684 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3685 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3686 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3687 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3688 (tui_update_breakpoint_info): Likewise.
3689 * tui/tui-hooks.c (tui_event_create_breakpoint)
3690 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3691 Update.
3692
3693 2019-07-17 Tom Tromey <tom@tromey.com>
3694
3695 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3696
3697 2019-07-17 Tom Tromey <tom@tromey.com>
3698
3699 * tui/tui-winsource.c (tui_update_source_window_as_is)
3700 (tui_update_source_windows_with_addr): Update.
3701 * tui/tui-source.h (tui_set_source_content)
3702 (tui_show_symtab_source): Add "win_info" parameter.
3703 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3704 parameter.
3705 (tui_show_symtab_source): Likewise.
3706
3707 2019-07-17 Tom Tromey <tom@tromey.com>
3708
3709 * tui/tui-wingeneral.c
3710 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3711
3712 2019-07-17 Tom Tromey <tom@tromey.com>
3713
3714 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3715 (struct tui_cmd_window) <can_scroll>: New method.
3716 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3717 method.
3718
3719 2019-07-17 Tom Tromey <tromey@adacore.com>
3720
3721 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3722 do_field_signed>: Rename. Change type of "value".
3723 * ui-out.c (ui_out::field_signed): Rename from field_int.
3724 Change type of "value".
3725 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3726 type of "value".
3727 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3728 do_field_int. Change type of "value".
3729 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3730 do_field_int. Change type of "value".
3731 * tracepoint.c (trace_status_mi, tfind_1)
3732 (print_one_static_tracepoint_marker): Update.
3733 * thread.c (print_thread_info_1, print_selected_thread_frame):
3734 Update.
3735 * stack.c (print_frame, print_frame_info): Update.
3736 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3737 Update.
3738 * source.c (print_source_lines_base): Update.
3739 * skip.c (info_skip_command): Update.
3740 * record-btrace.c (btrace_ui_out_decode_error)
3741 (btrace_call_history_src_line): Update.
3742 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3743 Update.
3744 * progspace.c (print_program_space): Update.
3745 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3746 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3747 do_field_int. Change type of "value".
3748 * mi/mi-out.c (mi_ui_out::do_table_begin)
3749 (mi_ui_out::do_table_header): Update.
3750 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3751 type of "value".
3752 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3753 (mi_cmd_data_list_changed_registers, output_register)
3754 (mi_cmd_data_read_memory, mi_load_progress)
3755 (mi_cmd_trace_frame_collected): Update.
3756 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3757 Update.
3758 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3759 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3760 (mi_cmd_var_list_children, varobj_update_one): Update.
3761 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3762 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3763 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3764 * inferior.c (print_inferior): Update.
3765 * gdb_bfd.c (print_one_bfd): Update.
3766 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3767 Update.
3768 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3769 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3770 do_field_int. Change type of "value".
3771 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3772 do_field_int. Change type of "value".
3773 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3774 (print_one_breakpoint_location, print_it_catch_fork)
3775 (print_one_catch_fork, print_it_catch_vfork)
3776 (print_one_catch_vfork, print_it_catch_solib)
3777 (print_it_catch_exec, print_it_ranged_breakpoint)
3778 (print_mention_watchpoint, print_mention_masked_watchpoint)
3779 (bkpt_print_it, update_static_tracepoint): Update.
3780 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3781 * break-catch-syscall.c (print_it_catch_syscall): Update.
3782 * ada-tasks.c (print_ada_task_info): Update.
3783 * ada-lang.c (print_it_exception, print_mention_exception):
3784 Update.
3785
3786 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3787
3788 PR breakpoints/24541
3789 * gdbarch.c: Regenerate.
3790 * gdbarch.h: Regenerate.
3791 * gdbarch.sh: Adjust return type and parameter types for
3792 'stap_adjust_register'.
3793 (i386_stap_adjust_register): Adjust signature and return new
3794 register name.
3795 * stap-probe.c (stap_parse_register_operand): Adjust use of
3796 'gdbarch_stap_adjust_register'.
3797
3798 2019-07-17 Tom Tromey <tromey@adacore.com>
3799
3800 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3801 declare VEC.
3802 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3803 std::vector.
3804 (struct s390_process_info): Add initializers.
3805 (s390_add_process): Use new.
3806 (s390_linux_nat_target::low_forget_process): Use delete.
3807 (s390_linux_nat_target::low_new_fork)
3808 (s390_linux_nat_target::stopped_by_watchpoint)
3809 (s390_linux_nat_target::low_prepare_to_resume)
3810 (s390_linux_nat_target::insert_watchpoint)
3811 (s390_linux_nat_target::insert_hw_breakpoint)
3812 (s390_linux_nat_target::remove_watchpoint)
3813 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3814
3815 2019-07-16 John Baldwin <jhb@FreeBSD.org>
3816
3817 * aarch64-fbsd-nat.c: Include regcache.h.
3818 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3819 argument.
3820 (aarch64_fbsd_nat_target::fetch_registers)
3821 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3822 variable.
3823 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3824
3825 2019-07-16 John Baldwin <jhb@FreeBSD.org>
3826
3827 * fbsd-nat.c: Include gdbarch.h.
3828
3829 2019-07-15 Tom Tromey <tromey@adacore.com>
3830
3831 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3832
3833 2019-07-15 Tom Tromey <tromey@adacore.com>
3834
3835 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3836 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3837 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3838 * cli-out.c (cli_ui_out::do_field_int): New method.
3839 * ui-out.c (ui_out::field_unsigned): New method.
3840 * symfile.c (generic_load): Use field_unsigned.
3841 (print_transfer_performance): Likewise.
3842 * record-btrace.c (ui_out_field_uint): Remove.
3843 (btrace_call_history_insn_range, btrace_call_history): Use
3844 field_unsigned.
3845 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3846 field_unsigned.
3847 * ui-out.h (class ui_out) <field_unsigned>: New method.
3848 <do_field_unsigned>: Likewise.
3849
3850 2019-07-15 Tom Tromey <tromey@adacore.com>
3851
3852 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3853 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3854 * target.c (flash_erase_command): Use field_string.
3855 * infrun.c (print_signal_received_reason): Use field_string.
3856 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3857 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3858 field_string.
3859 * ada-tasks.c (print_ada_task_info): Use field_string.
3860
3861 2019-07-15 Tom Tromey <tromey@adacore.com>
3862
3863 * target.c (flash_erase_command): Use field_core_addr.
3864 * symfile.c (generic_load): Use field_core_addr.
3865 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3866 Use field_core_addr.
3867 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3868 field_core_addr.
3869
3870 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3871
3872 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3873 value if its desired type is smaller than a CORE_ADDR and signed.
3874
3875 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3876
3877 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3878 of changes to field names, and use new is_reference field to
3879 decide if a property is a reference or not.
3880 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3881 field.
3882 (struct dwarf2_property_baton): Update header comment, rename
3883 'referenced_type' to 'property_type' and update comments.
3884 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3885 default property type, store in property baton, update to take
3886 accound of renamed field.
3887 (read_func_scope): Update call to attr_to_dynamic_prop.
3888 (read_array_type): Likewise.
3889 (dwarf2_per_cu_addr_sized_int_type): New function.
3890 (read_subrange_index_type): Move type finding code to
3891 dwarf2_per_cu_addr_sized_int_type.
3892 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3893 (dwarf2_per_cu_addr_type): New function.
3894 (set_die_type): Update calls to attr_to_dynamic_prop.
3895
3896 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3897
3898 * dwarf2read.c (read_subrange_index_type): New function.
3899 (read_subrange_type): Move code into new function and call it.
3900 * gdbtypes.c (create_range_type): Add some asserts.
3901
3902 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3903
3904 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3905 update return statements.
3906 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3907 declaration, and update comment to match.
3908 * gdbtypes.c (resolve_dynamic_array): Update call to
3909 dwarf2_evaluate_property to match new return type.
3910
3911 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3912
3913 * valarith.c (value_subscripted_rvalue): Change lowerbound
3914 parameter type from int to LONGEST.
3915 * value.h (value_subscripted_rvalue): Likewise in declaration.
3916
3917 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3918
3919 * cli/cli-utils.c (info_print_command_completer): New function.
3920 * cli/cli-utils.h: Add 'completer.h' include, and forward
3921 declaration for 'struct cmd_list_element'.
3922 (info_print_command_completer): Declare.
3923 * stack.c (_initialize_stack): Add completer for 'info locals' and
3924 'info args'.
3925 * symtab.c (_initialize_symtab): Add completer for 'info
3926 variables' and 'info functions'.
3927 * NEWS: Mention completion for additional info commands.
3928
3929 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3930
3931 * cli/cli-utils.c (extract_info_print_args): Delete.
3932 (extract_arg_maybe_quoted): Delete.
3933 (info_print_options_defs): New variable.
3934 (make_info_print_options_def_group): New function.
3935 (extract_info_print_options): Define new function.
3936 * cli/cli-utils.h (extract_info_print_args): Delete.
3937 (struct info_print_options): New structure.
3938 (extract_info_print_options): Declare new function.
3939 * stack.c (info_locals_command): Update to use new
3940 extract_info_print_options, also add a header comment.
3941 (info_args_command): Likewise.
3942 * symtab.c (info_variables_command): Likewise.
3943 (info_functions_command): Likewise.
3944
3945 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3946
3947 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3948 to extract string arguments.
3949 * common/common-utils.c (extract_string_maybe_quoted): New function.
3950 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3951
3952 2019-07-11 Tom Tromey <tromey@adacore.com>
3953
3954 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3955 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3956 * top.h (gdbinit): Don't declare.
3957 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3958 into...
3959 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3960 * top.c (gdb_init): Don't call init_cli_cmds.
3961 (gdbinit): Remove.
3962 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3963
3964 2019-07-11 Tom Tromey <tromey@adacore.com>
3965
3966 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3967 after it has been moved.
3968
3969 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3970
3971 * valops.c (value_must_coerce_to_target): Change return type to
3972 bool.
3973 * value.h (value_must_coerce_to_target): Likewise.
3974
3975 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
3976
3977 * breakpoint.c (is_hardware_watchpoint): Remove
3978 forward-declaration.
3979 (is_masked_watchpoint): Change return type to bool.
3980 (is_tracepoint): Likewise.
3981 (is_breakpoint): Likewise.
3982 (is_hardware_watchpoint): Likewise.
3983 (is_watchpoint): Likewise.
3984 (is_no_memory_software_watchpoint): Likewise.
3985 (is_catchpoint): Likewise.
3986 (breakpoint_1): Make FILTER parameter's return type bool.
3987 is_masked_watchpoint): Change return type to bool.
3988 (save_breakpoints): Make FILTER parameter's return type bool.
3989 * breakpoint.h (is_breakpoint): Change return type to bool.
3990 (is_watchpoint): Likewise.
3991 (is_catchpoint): Likewise.
3992 (is_tracepoint): Likewise.
3993
3994 2019-07-10 Tom Tromey <tom@tromey.com>
3995
3996 * defs.h: Don't include gdbarch.h.
3997 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3998 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3999 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4000 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4001 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4002 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4003 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4004 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4005 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4006 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4007 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4008 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4009 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4010 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4011 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4012 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4013 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4014 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4015 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4016 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4017 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4018 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4019 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4020 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4021 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4022 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4023 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4024
4025 2019-07-10 Tom Tromey <tromey@adacore.com>
4026
4027 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4028 * breakpoint.c (init_ada_exception_breakpoint): Register as
4029 bp_catchpoint.
4030 (print_one_breakpoint_location, print_one_breakpoint): Use
4031 is_ada_exception_catchpoint.
4032 * ada-lang.c (class ada_catchpoint_location): Pass
4033 bp_loc_software_breakpoint to bp_location constructor.
4034 (is_ada_exception_catchpoint): New function.
4035
4036 2019-07-10 Tom Tromey <tromey@adacore.com>
4037
4038 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4039 VEC.
4040 (struct arm_exidx_entry): New method operator<.
4041 (struct arm_exidx_data) <section_maps>: Change type.
4042 (arm_exidx_data_free): Remove.
4043 (arm_exidx_data_key): Change type. Move lower.
4044 (arm_exidx_new_objfile): Update.
4045 (arm_compare_exidx_entries): Remove.
4046 (arm_find_exidx_entry, _initialize_arm_tdep)
4047
4048 2019-07-10 Tom Tromey <tromey@adacore.com>
4049
4050 * solib-spu.c (ocl_program_data_key): Change type.
4051 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4052 Update.
4053
4054 2019-07-10 Tom Tromey <tromey@adacore.com>
4055
4056 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4057 (struct solib_aix_inferior_data) <library_list>: Change type.
4058 (solib_aix_inferior_data_handle): Change type.
4059 (get_solib_aix_inferior_data): Update.
4060 (solib_aix_free_library_list): Remove.
4061 (library_list_start_library): Update.
4062 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4063 return type.
4064 (solib_aix_get_library_list)
4065 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4066 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4067
4068 2019-07-10 Tom Tromey <tromey@adacore.com>
4069
4070 * solib-dsbt.c (struct dsbt_info): Add initializers.
4071 (solib_dsbt_pspace_data): Change type.
4072 (dsbt_pspace_data_cleanup): Remove.
4073 (get_dsbt_info, _initialize_dsbt_solib): Update.
4074
4075 2019-07-10 Tom Tromey <tromey@adacore.com>
4076
4077 * spu-tdep.c (spu_overlay_data): Change type.
4078 (spu_get_overlay_table, spu_overlay_new_objfile)
4079 (_initialize_spu_tdep): Update.
4080
4081 2019-07-10 Tom Tromey <tromey@adacore.com>
4082
4083 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4084 destructor.
4085 (dbx_objfile_data_key): Change type and declare later.
4086 (DBX_SYMFILE_INFO): Rewrite.
4087 * dbxread.c (dbx_objfile_data_key): Change type.
4088 (dbx_symfile_init): Update.
4089 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4090 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4091 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4092
4093 2019-07-10 Tom Tromey <tromey@adacore.com>
4094
4095 * jit.c (jit_program_space_key): Change type. Move lower.
4096 (get_jit_program_space_data): Update.
4097 (jit_program_space_data_cleanup): Remove.
4098 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4099 Update.
4100 (struct jit_program_space_data): Add initializers.
4101
4102 2019-07-10 Tom Tromey <tromey@adacore.com>
4103
4104 * solib-darwin.c (struct darwin_info): Add initializers.
4105 (solib_darwin_pspace_data): Change type.
4106 (darwin_pspace_data_cleanup): Remove.
4107 (get_darwin_info, _initialize_darwin_solib): Update.
4108
4109 2019-07-10 Tom Tromey <tromey@adacore.com>
4110
4111 * remote-sim.c (struct sim_inferior_data): Add initializers,
4112 constructor, and destructor.
4113 (sim_inferior_data_key): Change type. Move lower.
4114 (check_for_duplicate_sim_descriptor): Update.
4115 (get_sim_inferior_data): Use new. Update.
4116 (~sim_inferior_data_cleanup): Rename from
4117 sim_inferior_data_cleanup. Simplify.
4118 (gdbsim_close_inferior, simulator_command)
4119 (sim_command_completer, _initialize_remote_sim): Update.
4120 (next_pid, INITIAL_PID): Move earlier.
4121
4122 2019-07-10 Tom Tromey <tromey@adacore.com>
4123
4124 * python/python-internal.h (create_thread_object): Return
4125 gdbpy_ref.
4126 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4127 * python/py-inferior.c (struct threadlist_entry): Add
4128 constructor.
4129 <thread_obj>: Now a gdbpy_ref.
4130 (thread_to_thread_object): Update.
4131 (add_thread_object): Use new.
4132 (delete_thread_object): Use delete.
4133 (infpy_threads): Update.
4134 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4135 GIL.
4136
4137 2019-07-10 Tom Tromey <tromey@adacore.com>
4138
4139 * valops.c (value_cast): Specialize error message for Ada.
4140
4141 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4142
4143 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4144
4145 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4146
4147 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4148 bpstat_should_step): Return bool, adjust comments.
4149 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4150 bpstat_should_step): Likewise.
4151
4152 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4153
4154 * features/Makefile: Use feature target descriptions for Arm.
4155 * features/arm/arm-core.c: Generate new file.
4156 * features/arm/arm-fpa.c: Likewise.
4157 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4158 * features/arm/arm-m-profile.c: Likewise.
4159 * features/arm/arm-vfpv2.c: Likewise.
4160 * features/arm/arm-vfpv3.c: Likewise.
4161 * features/arm/xscale-iwmmxt.c: Likewise.
4162 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4163
4164 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4165
4166 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4167 ptrace earlier.
4168
4169 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4170
4171 * features/aarch64-pauth.c: Regenerate.
4172
4173 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4174
4175 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4176 bool.
4177 (bpstat_what): Use false instead of 0.
4178
4179 2019-07-09 Pedro Alves <palves@redhat.com>
4180
4181 * break-catch-throw.c (is_exception_catchpoint): New.
4182 * breakpoint.c (print_one_breakpoint_location): New parameter
4183 'raw_loc'. Handle it. Use
4184 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4185 looking at the breakpoint's type.
4186 (print_one_breakpoint): If handling "maint info breakpoints", also
4187 print locations of exception catchpoints.
4188 * breakpoint.h (is_exception_catchpoint): Declare.
4189
4190 2019-07-09 Pedro Alves <palves@redhat.com>
4191
4192 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4193 "addr" field.
4194 (allocate_location_exception_catchpoint): New.
4195 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4196 (initialize_throw_catchpoint_ops): Install
4197 allocate_location_exception_catchpoint as allocate_location
4198 method.
4199 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4200 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4201 bp_loc_other.
4202 (breakpoint_address_is_meaningful): Delete.
4203 (bl_address_is_meaningful): New.
4204 (breakpoint_locations_match): Adjust comment.
4205 (bp_location_from_bp_type): New, factored out of...
4206 (bp_location::bp_location(breakpoint *)): ... this.
4207 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4208 factored out of...
4209 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
4210 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4211 breakpoint_address_is_meaningful.
4212 (bp_locations_compare): Adjust comment.
4213 (update_global_location_list): Use bl_address_is_meaningful
4214 instead of breakpoint_address_is_meaningful.
4215 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4216 explicit.
4217 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4218 * python/py-breakpoint.c (bppy_get_location): No longer check
4219 whether location is null.
4220
4221 2019-07-09 Pedro Alves <palves@redhat.com>
4222
4223 PR c++/15468
4224 * breakpoint.c (print_one_breakpoint_location): Remove
4225 single-location assert.
4226
4227 2019-07-09 Tom Tromey <tom@tromey.com>
4228
4229 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4230 * configure: Rebuild.
4231 * configure.ac: Change common to gdbsupport.
4232 * gdbsupport: Rename from common.
4233 * acinclude.m4: Change common to gdbsupport.
4234 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4235 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4236 gdbsupport.
4237 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4238 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4239 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4240 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4241 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4242 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4243 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4244 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4245 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4246 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4247 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4248 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4249 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4250 coff-pe-read.c, command.h, compile/compile-c-support.c,
4251 compile/compile-c.h, compile/compile-cplus-symbols.c,
4252 compile/compile-cplus-types.c, compile/compile-cplus.h,
4253 compile/compile-loc2c.c, compile/compile.c, completer.c,
4254 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4255 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4256 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4257 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4258 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4259 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4260 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4261 features/aarch64-core.c, features/aarch64-fpu.c,
4262 features/aarch64-pauth.c, features/aarch64-sve.c,
4263 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4264 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4265 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4266 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4267 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4268 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4269 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4270 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4271 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4272 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4273 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4274 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4275 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4276 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4277 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4278 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4279 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4280 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4281 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4282 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4283 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4284 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4285 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4286 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4287 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4288 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4289 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4290 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4291 minsyms.c, mips-linux-tdep.c, namespace.h,
4292 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4293 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4294 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4295 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4296 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4297 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4298 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4299 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4300 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4301 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4302 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4303 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4304 procfs.c, producer.c, progspace.h, psymtab.h,
4305 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4306 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4307 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4308 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4309 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4310 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4311 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4312 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4313 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4314 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4315 target-memory.c, target.c, target.h, target/waitstatus.c,
4316 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4317 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4318 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4319 unittests/array-view-selftests.c,
4320 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4321 unittests/common-utils-selftests.c,
4322 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4323 unittests/format_pieces-selftests.c,
4324 unittests/function-view-selftests.c,
4325 unittests/lookup_name_info-selftests.c,
4326 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4327 unittests/mkdir-recursive-selftests.c,
4328 unittests/observable-selftests.c,
4329 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4330 unittests/parse-connection-spec-selftests.c,
4331 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4332 unittests/scoped_fd-selftests.c,
4333 unittests/scoped_mmap-selftests.c,
4334 unittests/scoped_restore-selftests.c,
4335 unittests/string_view-selftests.c, unittests/style-selftests.c,
4336 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4337 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4338 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4339 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4340 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4341 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4342
4343 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4344
4345 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4346 bool value.
4347 (decode_digits_ordinary): Set explicit_line field in sal.
4348 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4349 symtab_and_line that was set on an explicit line number in
4350 assembler code. Do always update the recorded symtab and line if
4351 we do skip the prologue.
4352
4353 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4354
4355 * breakpoint.c (set_breakpoint_location_function): Remove
4356 explicit_loc parameter.
4357 (momentary_breakpoint_from_master): Update call to
4358 set_breakpoint_location_function.
4359 (add_location_to_breakpoint): Likewise.
4360
4361 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4362
4363 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4364 required features based on default bfd type when no specific bfd
4365 is present.
4366
4367 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4368
4369 * NEWS: Mention that GDB printf and eval commands can now print
4370 C-style and Ada-style convenience var strings without
4371 calling the inferior.
4372 * printcmd.c (printf_c_string): Locally print GDB internal var
4373 instead of transiting via the inferior.
4374 (printf_wide_c_string): Likewise.
4375
4376 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4377
4378 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4379
4380 2019-07-04 Tom Tromey <tom@tromey.com>
4381
4382 PR tui/24724:
4383 * tui/tui-winsource.c (tui_clear_source_content): Update.
4384 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4385 (tui_update_breakpoint_info): Update.
4386 (tui_set_exec_info_content): Update.
4387 * tui/tui-source.c (tui_set_source_content_nil): Update.
4388 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4389 has_break.
4390 * tui/tui-data.h (enum tui_bp_flag): New.
4391 (tui_bp_flags): New enum flags type.
4392 (struct tui_source_element) <break_mode>: Change type. Rename
4393 from has_break.
4394 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4395 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4396 constants.
4397 * tui/tui-winsource.h: Fix comment.
4398
4399 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4400
4401 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4402 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4403 (store_fpregs_to_thread)
4404 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4405 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4406 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4407 (IWMMXT_REGS_SIZE): Add define.
4408 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4409 (fetch_vfp_regs, store_vfp_regs)
4410 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4411 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4412
4413 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4414
4415 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4416 defines.
4417 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4418 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4419 (ARM_INT_REGISTER_SIZE): ...to this.
4420 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4421 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4422 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4423 (arm_linux_collect_gregset, supply_nwfpe_register)
4424 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4425 defines.
4426 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4427 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4428 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4429 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4430 (arm_return_in_memory, arm_store_return_value)
4431 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4432 (arm_record_ld_st_multiple): Likewise.
4433 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4434 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4435
4436 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4437
4438 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4439 AARCH64_DISPLACED_MODIFIED_INSNS.
4440 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4441 (aarch64_displaced_step_copy_insn): Likewise.
4442 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4443 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4444 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4445 ARM_DISPLACED_MODIFIED_INSNS.
4446 * arm-tdep.c (arm_gdbarch_init): Likewise.
4447 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4448 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4449 (struct arm_displaced_step_closure): Use
4450 ARM_DISPLACED_MODIFIED_INSNS.
4451
4452 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4453
4454 * features/Makefile: Remove unused xml files.
4455 * features/aarch64.xml: Remove.
4456 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4457 * features/i386/amd64-avx-avx512.xml: Remove.
4458 * features/i386/amd64-avx-linux.xml: Remove.
4459 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4460 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4461 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4462 * features/i386/amd64-avx-mpx.xml: Remove.
4463 * features/i386/amd64-avx.xml: Remove.
4464 * features/i386/amd64-linux.xml: Remove.
4465 * features/i386/amd64-mpx-linux.xml: Remove.
4466 * features/i386/amd64-mpx.xml: Remove.
4467 * features/i386/amd64.xml: Remove.
4468 * features/i386/i386-avx-avx512-linux.xml: Remove.
4469 * features/i386/i386-avx-avx512.xml: Remove.
4470 * features/i386/i386-avx-linux.xml: Remove.
4471 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4472 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4473 * features/i386/i386-avx-mpx-linux.xml: Remove.
4474 * features/i386/i386-avx-mpx.xml: Remove.
4475 * features/i386/i386-avx.xml: Remove.
4476 * features/i386/i386-linux.xml: Remove.
4477 * features/i386/i386-mmx-linux.xml: Remove.
4478 * features/i386/i386-mmx.xml: Remove.
4479 * features/i386/i386-mpx-linux.xml: Remove.
4480 * features/i386/i386-mpx.xml: Remove.
4481 * features/i386/i386.xml: Remove.
4482 * features/i386/x32-avx-avx512-linux.xml: Remove.
4483 * features/i386/x32-avx-linux.xml: Remove.
4484 * features/i386/x32-linux.xml: Remove.
4485
4486 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4487
4488 * regformats/aarch64.dat: Remove.
4489 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4490 * regformats/i386/amd64-avx-linux.dat: Remove.
4491 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4492 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4493 * regformats/i386/amd64-linux.dat: Remove.
4494 * regformats/i386/amd64-mpx-linux.dat: Remove.
4495 * regformats/i386/amd64.dat: Remove.
4496 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4497 * regformats/i386/i386-avx-linux.dat: Remove.
4498 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4499 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4500 * regformats/i386/i386-linux.dat: Remove.
4501 * regformats/i386/i386-mmx-linux.dat: Remove.
4502 * regformats/i386/i386-mpx-linux.dat: Remove.
4503 * regformats/i386/i386.dat: Remove.
4504 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4505 * regformats/i386/x32-avx-linux.dat: Remove.
4506 * regformats/i386/x32-linux.dat: Remove.
4507
4508 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4509
4510 * aarch64-tdep.c: Remove xml self tests.
4511 * amd64-linux-tdep.c: Likewise.
4512 * amd64-tdep.c: Likewise.
4513 * i386-linux-tdep.c: Likewise.
4514 * i386-tdep.c: Likewise.
4515
4516 2019-07-03 Pedro Alves <palves@redhat.com>
4517
4518 PR cli/24732
4519 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4520 (pipe_cmd_option_defs): New.
4521 (make_pipe_cmd_options_def_group): New.
4522 (pipe_command): Use gdb::option::process_options.
4523 (pipe_command_completer): New function.
4524 (_initialize_cli_cmds): Install completer for "pipe" command.
4525
4526 2019-07-03 Pedro Alves <palves@redhat.com>
4527
4528 * cli/cli-option.c (union option_value) <string>: New field.
4529 (struct option_def_and_value): Add ctor, move ctor, dtor and
4530 use DISABLE_COPY_AND_ASSIGN.
4531 (option_def_and_value::clear_value): New.
4532 (parse_option, save_option_value_in_ctx, get_val_type_str)
4533 (add_setshow_cmds_for_options): Handle var_string.
4534 * cli-option.h (union option_def::var_address) <string>: New
4535 field.
4536 (struct string_option_def): New.
4537 * maint-test-options.c (struct test_options_opts): Add default
4538 ctor and use DISABLE_COPY_AND_ASSIGN.
4539 <string_opt>: New field.
4540 (test_options_opts::~test_options_opts): New.
4541 (test_options_opts::dump): Also dump "-string".
4542 (test_options_option_defs): Install "string.
4543
4544 2019-07-03 Pedro Alves <palves@redhat.com>
4545
4546 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4547 option_value with a null enumeration.
4548 (complete_options): Save the option values in the context.
4549 (save_option_value_in_ctx): New, factored out from ...
4550 (process_options): ... here.
4551 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4552 of the function.
4553 * maint-test-options.c (test_options_opts::dump): New, factored
4554 out from ...
4555 (maintenance_test_options_command_mode): ... here.
4556 (maintenance_test_options_command_completion_result): Delete.
4557 (maintenance_test_options_command_completion_text): Update
4558 comment.
4559 (maintenance_show_test_options_completion_result): Change
4560 prototype. Just print
4561 maintenance_test_options_command_completion_text.
4562 (save_completion_result): New.
4563 (maintenance_test_options_completer_mode): Pass options context to
4564 complete_options, and then save a dump.
4565 (_initialize_maint_test_options): Use add_cmd to install "maint
4566 show test-options-completion-result".
4567
4568 2019-07-03 Pedro Alves <palves@redhat.com>
4569
4570 * NEWS (New commands): Mention "with" and "maint with".
4571 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4572 (with_command, with_command_completer): New.
4573 (pipe_command): Adjust to new repeat_previous
4574 interface.
4575 (_initialize_cli_cmds): Install the "with" command and its "w"
4576 alias.
4577 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4578 declarations.
4579 * cli/cli-setshow.c (parse_cli_var_uinteger)
4580 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4581 argument strings for all var_types.
4582 (get_setshow_command_value_string): New, factored out from ...
4583 (do_show_command): ... this.
4584 * cli/cli-setshow.h: Include <string>.
4585 (get_setshow_command_value_string): Declare.
4586 * command.h (repeat_previous): Now returns const char *. Adjust
4587 comment.
4588 * maint.c: Include "cli/cli-cmds.h".
4589 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4590 (_initialize_maint_cmds): Register the "maintenance with" command.
4591 * top.c (repeat_previous): Move bits from pipe_command here:
4592 Return the saved command line, if any; error out if there's no
4593 command to relaunch.
4594
4595 2019-07-03 Pedro Alves <palves@redhat.com>
4596
4597 * NEWS (New commands): Mention "maint set/show test-settings"
4598 instead of "maint test-settings".
4599 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4600 (maintenance_test_settings_set_list): Rename to ...
4601 (maintenance_set_test_settings_list): ... this.
4602 (maintenance_test_settings_show_list): Rename to ...
4603 (maintenance_show_test_settings_list): ... this.
4604 (maintenance_test_settings_cmd): Delete.
4605 (maintenance_test_settings_set_cmd): ...
4606 (maintenance_set_test_settings_cmd): ... this.
4607 (maintenance_test_settings_show_cmd): ...
4608 (maintenance_show_test_settings_cmd): ... this.
4609 (maintenance_test_settings_show_value_cmd):
4610 (maintenance_show_test_settings_value_cmd): ... this.
4611 (_initialize_maint_test_settings): No longer install the "maint
4612 test-settings" prefix command. Rename "maint test-settings set"
4613 to "maint set test-settings", and "maint test-settings show" to
4614 "maint show test-settings". Adjust all subcommands.
4615
4616 2019-07-03 Pedro Alves <palves@redhat.com>
4617
4618 * maint-test-settings.c: Fix file's intro comment. Replace all
4619 references to "test-options" with references to "test-settings",
4620 in comments.
4621
4622 2019-07-03 Pedro Alves <palves@redhat.com>
4623
4624 * maint-test-settings.c (maintenance_test_settings_xxx)
4625 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4626 New.
4627 (maintenance_test_settings_enums): Use them.
4628 (maintenance_test_settings_enum): Default to
4629 maintenance_test_settings_xxx.
4630 (_initialize_maint_test_settings): Initialize
4631 MAINTENANCE_TEST_SETTINGS_FILENAME.
4632
4633 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4634
4635 * breakpoint.h (remove_breakpoints_inf): Change return type to
4636 void, move function documentation here.
4637 * breakpoint.c (remove_breakpoints_inf): Change return type to
4638 void, move function documentation to header.
4639
4640 2019-07-02 Pedro Alves <palves@redhat.com>
4641
4642 * NEWS (Completion improvements): Mention "info threads".
4643 * thread.c (struct info_threads_opts, info_threads_option_defs)
4644 (make_info_threads_options_def_group): New.
4645 (info_threads_command): Use gdb::option::process_options.
4646 (info_threads_command_completer): New.
4647 (_initialize_thread): Use gdb::option::build_help to build the
4648 help text for "info threads".
4649
4650 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4651
4652 * defs.h (generic_load): Move from here...
4653 * symfile.h (generic_load): ... to here. Rename name parameter
4654 to args.
4655 * symfile.c (generic_load): Add comment.
4656
4657 2019-07-01 Tom Tromey <tromey@adacore.com>
4658
4659 * dwarf2read.c
4660 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4661 declaration of without_params. Fix formatting.
4662
4663 2019-07-01 Tom Tromey <tromey@adacore.com>
4664
4665 * ada-exp.y (find_primitive_type): Update.
4666 * ada-lang.h (ada_lookup_symbol): Update.
4667 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4668 parameter.
4669 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4670
4671 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4672
4673 PR breakpoints/24541
4674 * gdbarch.c: Regenerate.
4675 * gdbarch.h: Regenerate.
4676 * gdbarch.sh: Add 'stap_adjust_register'.
4677 * i386-tdep.c: Include '<unordered_set>'.
4678 (i386_stap_adjust_register): New function.
4679 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4680 * stap-probe.c (stap_parse_register_operand): Call
4681 'gdbarch_stap_adjust_register'.
4682
4683 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4684
4685 PR python/24742
4686 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4687 * python/python.c (do_start_initialization): Use 'xmalloc'
4688 instead of 'PyMem_Malloc'.
4689
4690 2019-06-28 Tom Tromey <tromey@adacore.com>
4691
4692 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4693 for Ada.
4694
4695 2019-06-27 Tom Tromey <tromey@adacore.com>
4696
4697 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4698 objfile_key.
4699 (arm_find_mapping_symbol, arm_record_special_symbol)
4700 (_initialize_arm_tdep): Update.
4701 (arm_objfile_data_free): Remove.
4702
4703 2019-06-27 Tom Tromey <tromey@adacore.com>
4704
4705 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4706 to cp_print_static_field.
4707
4708 2019-06-26 Tom Tromey <tromey@adacore.com>
4709
4710 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4711 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4712 declare.
4713
4714 2019-06-26 Alan Hayward <alan.hayward@arm.com>
4715
4716 * features/aarch64-core.c (create_feature_aarch64_core):
4717 Regenerate.
4718 * features/aarch64-core.xml: Add cpsr flags.
4719
4720 2019-06-26 Alan Hayward <alan.hayward@arm.com>
4721
4722 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4723 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4724
4725 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4726
4727 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4728 field.
4729 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4730 use.
4731 (arm_record_special_symbol): Don't insert new symbol in sorted
4732 position, push it at the end.
4733
4734 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4735
4736 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4737 (arm_mapping_symbol_s): Remove.
4738 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4739 (arm_mapping_symbol_vec): New typedef.
4740 (struct arm_per_objfile): Add constructor.
4741 <section_maps>: Change type to
4742 std::unique_ptr<arm_mapping_symbol_vec[]>.
4743 (arm_compare_mapping_symbols): Remove.
4744 (arm_find_mapping_symbol): Adjust to section_maps type change.
4745 (arm_objfile_data_free): Call delete on arm_per_objfile.
4746 (arm_record_special_symbol): Adjust to section_maps type change.
4747 Allocate arm_per_objfile with new.
4748
4749 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4750
4751 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4752 with the command prefix.
4753
4754 2019-06-25 Tom Tromey <tom@tromey.com>
4755
4756 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4757 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4758
4759 2019-06-25 Tom Tromey <tom@tromey.com>
4760
4761 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4762 type.
4763 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4764 protected.
4765
4766 2019-06-25 Tom Tromey <tom@tromey.com>
4767
4768 * tui/tui-winsource.c
4769 (tui_source_window_base::set_is_exec_point_at): Add check against
4770 LOA_ADDRESS.
4771
4772 2019-06-25 Tom Tromey <tom@tromey.com>
4773
4774 * tui/tui-source.c (tui_set_source_content): Don't check before
4775 xfree.
4776 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4777
4778 2019-06-25 Tom Tromey <tom@tromey.com>
4779
4780 * tui/tui-winsource.h (tui_update_source_window_as_is)
4781 (tui_alloc_source_buffer, tui_line_is_displayed)
4782 (tui_addr_is_displayed): Change type of win_info.
4783 * tui/tui-winsource.c (tui_update_source_window_as_is)
4784 (tui_clear_source_content, tui_show_source_line)
4785 (tui_show_source_content, tui_source_window_base::refill)
4786 (tui_source_window_base::set_is_exec_point_at)
4787 (tui_source_window_base::set_is_exec_point_at)
4788 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4789 (tui_alloc_source_buffer, tui_line_is_displayed)
4790 (tui_addr_is_displayed): Change type of win_info. Update.
4791 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4792 (tui_source_window_base::do_make_visible_with_new_height):
4793 Update.
4794 * tui/tui-source.c (tui_set_source_content)
4795 (tui_set_source_content_nil)
4796 (tui_source_window::do_scroll_vertical): Update.
4797 * tui/tui-layout.c (show_layout): Update.
4798 * tui/tui-disasm.c (tui_set_disassem_content)
4799 (tui_disasm_window::do_scroll_vertical): Update.
4800 * tui/tui-data.h (tui_win_content): Remove.
4801 (struct tui_gen_win_info) <content, content_size>: Remove.
4802 (struct tui_source_element): Add initializers and destructor.
4803 (union tui_which_element, struct tui_win_element): Remove.
4804 (struct tui_source_window_base) <content>: New field.
4805 (struct tui_data_window): Remove destructor.
4806 (tui_alloc_content, tui_free_win_content)
4807 (tui_free_all_source_wins_content): Don't declare.
4808 * tui/tui-data.c (tui_initialize_static_data): Update.
4809 (init_content_element, tui_alloc_content): Remove.
4810 (~tui_gen_win_info): Update.
4811 (~tui_data_window, tui_free_all_source_wins_content)
4812 (tui_free_win_content, free_content, free_content_elements):
4813 Remove.
4814
4815 2019-06-25 Tom Tromey <tom@tromey.com>
4816
4817 * tui/tui-winsource.h (tui_clear_source_content)
4818 (tui_erase_source_content, tui_show_source_content): Change type
4819 of win_info.
4820 * tui/tui-winsource.c (tui_clear_source_content)
4821 (tui_erase_source_content, tui_show_source_content): Change type
4822 of win_info.
4823 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4824 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4825 win_info.
4826 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4827 win_info.
4828 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4829
4830 2019-06-25 Tom Tromey <tom@tromey.com>
4831
4832 * tui/tui-winsource.c (tui_clear_source_content)
4833 (tui_source_window_base::set_is_exec_point_at): Update.
4834 * tui/tui-source.c (tui_set_source_content_nil): Update.
4835 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4836 a bool.
4837 * tui/tui-data.c (init_content_element): Update.
4838
4839 2019-06-25 Tom Tromey <tom@tromey.com>
4840
4841 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4842 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4843 * tui/tui-layout.c (init_and_make_win): Update.
4844 * tui/tui.h (enum tui_win_type): Update.
4845 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4846 tui_win_is_auxillary.
4847 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4848 tui_win_is_auxillary.
4849
4850 2019-06-25 Tom Tromey <tom@tromey.com>
4851
4852 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4853 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4854 (tui_delete_data_content_windows, tui_display_all_data)
4855 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4856 Update.
4857 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4858 * tui/tui-regs.c (tui_last_regs_line_no)
4859 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4860 (tui_show_registers): Update.
4861 (tui_show_register_group): Return void. Update.
4862 (tui_display_registers_from, tui_display_reg_element_at_line)
4863 (tui_display_registers_from_line, tui_check_register_values):
4864 Update.
4865 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4866 member.
4867 (struct tui_data_window) <regs_content>: Now a std::vector.
4868 <regs_content_count>: Remove.
4869 (tui_add_content_elements, tui_free_data_content): Don't declare.
4870 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4871 (init_content_element): Remove DATA_WIN case. Add assert.
4872 (tui_add_content_elements): Remove.
4873 (tui_data_window): Update.
4874 (tui_free_data_content): Remove.
4875 (free_content_elements): Remove DATA_WIN case.
4876
4877 2019-06-25 Tom Tromey <tom@tromey.com>
4878
4879 * tui/tui-data.c (tui_data_item_window): Update.
4880 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4881 * tui/tui-windata.c (tui_display_all_data)
4882 (tui_display_data_from_line): Update.
4883 (tui_check_data_values): Remove.
4884 * tui/tui-regs.c (tui_show_register_group)
4885 (tui_display_reg_element_at_line): Update.
4886 * tui/tui-hooks.c (tui_register_changed)
4887 (tui_refresh_frame_and_register_information): Call
4888 tui_check_register_values.
4889 * tui/tui-data.h (struct tui_data_window) <data_content,
4890 data_content_count, data_type>: Remove.
4891 (enum tui_data_type): Remove.
4892
4893 * tui/tui-data.c (tui_data_window::clear_detail)
4894 (~tui_data_window): Update.
4895
4896 2019-06-25 Tom Tromey <tom@tromey.com>
4897
4898 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4899 declare.
4900 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4901 Rename from tui_first_data_item_displayed. Update.
4902 (tui_data_window::refresh_all)
4903 (tui_data_window::do_scroll_vertical): Update.
4904 * tui/tui-data.h (struct tui_data_window)
4905 <first_data_item_displayed>: Declare new method.
4906
4907 2019-06-25 Tom Tromey <tom@tromey.com>
4908
4909 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4910 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4911 contents...
4912 (tui_initialize_static_data): ...here.
4913
4914 2019-06-25 Tom Tromey <tom@tromey.com>
4915
4916 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4917 (tui_display_registers_from, tui_check_register_values): Update.
4918 (tui_display_register): Remove win_info parameter; update.
4919 (tui_get_register): Change type of parameters.
4920 * tui/tui-data.h (struct tui_data_element): Remove.
4921 (union tui_which_element) <data>: Remove.
4922 <data_window>: Change type.
4923 (struct tui_data_item_window): New.
4924 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4925 case. Add assert.
4926 (~tui_data_item_window): New destructor.
4927 (free_content_elements): Remove DATA_ITEM_WIN case.
4928
4929 2019-06-25 Tom Tromey <tom@tromey.com>
4930
4931 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4932 Remove.
4933
4934 2019-06-25 Tom Tromey <tom@tromey.com>
4935
4936 * tui/tui-data.h (struct tui_command_element): Remove.
4937 (union tui_which_element) <command>: Remove.
4938 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4939 assert.
4940 (free_content_elements): Remove CMD_WIN case.
4941
4942 2019-06-25 Tom Tromey <tom@tromey.com>
4943
4944 * tui/tui-layout.c (tui_set_layout): Update.
4945 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4946 * tui/tui-data.c (layout_def): Update.
4947
4948 2019-06-25 Tom Tromey <tom@tromey.com>
4949
4950 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4951 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4952 (tui_source_window_base::set_new_height): Update.
4953 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4954 Update.
4955 (tui_set_locator_fullname, tui_set_locator_info)
4956 (tui_show_frame_info): Update.
4957 * tui/tui-source.c (tui_set_source_content)
4958 (tui_source_is_displayed): Update.
4959 * tui/tui-layout.c (show_source_disasm_command, show_data)
4960 (show_source_or_disasm_and_command): Update.
4961 * tui/tui-disasm.c (tui_set_disassem_content)
4962 (tui_get_begin_asm_address): Update.
4963 * tui/tui-data.h (struct tui_locator_element): Remove.
4964 (union tui_which_element) <locator>: Remove.
4965 (struct tui_locator_window): New.
4966 (tui_locator_win_info_ptr): Change return type.
4967 * tui/tui-data.c (_locator): Change type.
4968 (tui_locator_win_info_ptr): Change return type.
4969 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4970 (tui_alloc_content): Add assert.
4971
4972 2019-06-25 Tom Tromey <tom@tromey.com>
4973
4974 * tui/tui-winsource.c
4975 (tui_exec_info_window::maybe_allocate_content): New method.
4976 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4977 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4978 (make_source_or_disasm_window): Add cast.
4979 * tui/tui-data.h (union tui_which_element) <simple_string>:
4980 Remove.
4981 (struct tui_source_info): New.
4982 (struct tui_source_window_base) <execution_info>: Change type.
4983 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4984 case, and add assert.
4985 (tui_alloc_content): Add assert.
4986
4987 2019-06-25 Tom Tromey <tom@tromey.com>
4988
4989 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4990 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4991 * tui/tui-data.c (tui_alloc_win_info): Remove.
4992
4993 2019-06-25 Tom Tromey <tom@tromey.com>
4994
4995 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4996 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4997 can_highlight.
4998
4999 2019-06-25 Tom Tromey <tom@tromey.com>
5000
5001 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5002 make_visible_with_new_height method.
5003 (tui_win_info::make_visible_with_new_height): New method.
5004 (tui_source_window_base::do_make_visible_with_new_height)
5005 (tui_data_window::do_make_visible_with_new_height)
5006 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5007 (make_visible_with_new_height): Remove.
5008 (tui_resize_all, tui_adjust_win_heights): Use
5009 make_visible_with_new_height method.
5010 * tui/tui-data.h (struct tui_win_info)
5011 <do_make_visible_with_new_height, make_visible_with_new_height>:
5012 New methods.
5013 (struct tui_source_window_base, struct tui_data_window)
5014 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5015 methods.
5016
5017 2019-06-25 Tom Tromey <tom@tromey.com>
5018
5019 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5020 method.
5021 (update_tab_width): Call update_tab_width method.
5022 * tui/tui-data.h (struct tui_win_info)
5023 (struct tui_source_window_base) <update_tab_width>: New methods.
5024
5025 2019-06-25 Tom Tromey <tom@tromey.com>
5026
5027 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5028 parameter.
5029 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5030 parameter.
5031 (tui_gen_win_info::make_visible): Update.
5032 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5033 parameter.
5034 * tui/tui-data.h (enum tui_box): New enum.
5035 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5036
5037 2019-06-25 Tom Tromey <tom@tromey.com>
5038
5039 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5040 init_and_make_win for EXEC_INFO_WIN.
5041 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5042 longer inline.
5043 (struct tui_win_info) <~tui_win_info>: Inline.
5044 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5045 Don't declare.
5046 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5047 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5048 Remove.
5049 (tui_initialize_static_data): Update.
5050 (~tui_gen_win_info): Handle more cleanup here.
5051 (~tui_source_window_base): Delete "execution_info".
5052 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5053
5054 2019-06-25 Tom Tromey <tom@tromey.com>
5055
5056 * tui/tui-layout.c (make_command_window): Don't set
5057 can_highlight.
5058 (show_source_disasm_command): Call the reset method.
5059 (show_data): Don't set can_highlight. Call the reset method.
5060 (tui_gen_win_info::reset): Rename from init_gen_win_info
5061 (init_and_make_win): Simplify. Return tui_gen_win_info.
5062 (show_source_or_disasm_and_command): Call the reset method.
5063 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5064 (struct tui_cmd_window): Set can_highlight.
5065
5066 2019-06-25 Tom Tromey <tom@tromey.com>
5067
5068 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5069 from make_visible.
5070 (tui_make_visible, tui_make_invisible): Rewrite.
5071 (tui_win_info::make_visible): Remove.
5072 (tui_source_window_base::make_visible): Update.
5073 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5074 method. Moved from...
5075 (struct tui_win_info) <make_visible>: ...here.
5076
5077 2019-06-25 Tom Tromey <tom@tromey.com>
5078
5079 * tui/tui-winsource.c
5080 (tui_source_window_base::do_scroll_horizontal): Remove direction
5081 parameter.
5082 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5083 direction parameter.
5084 * tui/tui-win.c (tui_win_info::forward_scroll)
5085 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5086 (tui_win_info::right_scroll): Update.
5087 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5088 direction parameter.
5089 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5090 direction parameter.
5091 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5092 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5093 Remove direction parameter.
5094 (struct tui_source_window_base, struct tui_source_window)
5095 (struct tui_disasm_window, struct tui_data_window)
5096 (struct tui_cmd_window): Update.
5097
5098 2019-06-25 Tom Tromey <tom@tromey.com>
5099
5100 * tui/tui-winsource.h (tui_set_exec_info_content)
5101 (tui_show_exec_info_content, tui_erase_exec_info_content)
5102 (tui_clear_exec_info_content, tui_update_exec_info): Change
5103 argument to tui_source_window_base.
5104 * tui/tui-winsource.c (tui_set_exec_info_content)
5105 (tui_show_exec_info_content, tui_erase_exec_info_content)
5106 (tui_clear_exec_info_content, tui_update_exec_info): Change
5107 argument to tui_source_window_base.
5108
5109 2019-06-25 Tom Tromey <tom@tromey.com>
5110
5111 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5112 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5113
5114 2019-06-25 Tom Tromey <tom@tromey.com>
5115
5116 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5117 check.
5118
5119 2019-06-25 Tom Tromey <tom@tromey.com>
5120
5121 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5122 type to void.
5123 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5124 type to void.
5125 * tui/tui-source.c (tui_set_source_content): Update.
5126 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5127
5128 2019-06-25 Tom Tromey <tom@tromey.com>
5129
5130 * tui/tui-win.c (window_name_completer, tui_set_focus)
5131 (tui_all_windows_info): Use name method.
5132 * tui/tui-data.h (struct tui_gen_win_info)
5133 (struct tui_source_window, struct tui_disasm_window)
5134 (struct tui_data_window, struct tui_cmd_window) <name>: New
5135 method.
5136 (tui_win_name): Don't declare.
5137 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5138 (tui_win_name): Remove.
5139
5140 2019-06-25 Tom Tromey <tom@tromey.com>
5141
5142 * tui/tui-winsource.h (tui_update_source_window)
5143 (tui_update_source_window_as_is): Change parameter type.
5144 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5145 to be a tui_source_window_base.
5146 (tui_update_source_window_as_is): Likewise.
5147 * tui/tui-win.c (make_visible_with_new_height): Update.
5148
5149 2019-06-25 Tom Tromey <tom@tromey.com>
5150
5151 * tui/tui-winsource.c (tui_erase_source_content)
5152 (tui_show_source_content, tui_show_exec_info_content)
5153 (tui_erase_exec_info_content): Use refresh_window method.
5154 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5155 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5156 from tui_refresh_win.
5157 (tui_data_window::refresh_window): New method.
5158 (tui_win_info::refresh, tui_source_window_base::refresh)
5159 (tui_refresh_all): Use refresh_window method.
5160 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5161 method.
5162 * tui/tui-regs.c (tui_display_register): Call refresh_window
5163 method.
5164 * tui/tui-layout.c (show_source_disasm_command)
5165 (show_source_or_disasm_and_command): Call refresh_window method.
5166 * tui/tui-data.h (struct tui_gen_win_info)
5167 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5168 New method.
5169
5170 2019-06-25 Tom Tromey <tom@tromey.com>
5171
5172 * tui/tui.c (tui_rl_other_window, tui_enable)
5173 (tui_is_window_visible, tui_get_command_dimension): Update.
5174 * tui/tui-winsource.c (tui_update_source_window_as_is)
5175 (tui_clear_source_content, tui_erase_source_content)
5176 (tui_show_source_line, tui_source_window_base::refill)
5177 (tui_source_window_base::do_scroll_horizontal)
5178 (tui_source_window_base::set_is_exec_point_at)
5179 (tui_update_breakpoint_info, tui_set_exec_info_content)
5180 (tui_alloc_source_buffer, tui_line_is_displayed)
5181 (tui_addr_is_displayed): Update.
5182 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5183 (tui_check_and_display_highlight_if_needed)
5184 (tui_win_info::make_visible, tui_win_info::refresh)
5185 (tui_refresh_all): Update.
5186 * tui/tui-windata.c (tui_first_data_item_displayed)
5187 (tui_delete_data_content_windows, tui_erase_data_content)
5188 (tui_display_all_data, tui_data_window::refresh_all)
5189 (tui_check_data_values): Update.
5190 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5191 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5192 (tui_win_info::backward_scroll, tui_refresh_all_win)
5193 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5194 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5195 (tui_source_window_base::set_new_height)
5196 (tui_data_window::set_new_height)
5197 (make_invisible_and_set_new_height)
5198 (make_visible_with_new_height, new_height_ok)
5199 (parse_scrolling_args): Update.
5200 * tui/tui-stack.c (tui_show_frame_info): Update.
5201 * tui/tui-source.c (tui_set_source_content)
5202 (tui_set_source_content_nil, tui_source_is_displayed)
5203 (tui_source_window::do_scroll_vertical): Update.
5204 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5205 (tui_display_registers_from, tui_display_reg_element_at_line)
5206 (tui_check_register_values, tui_reg_command): Update.
5207 * tui/tui-layout.c (tui_default_win_height)
5208 (show_source_disasm_command, show_data, init_and_make_win)
5209 (show_source_or_disasm_and_command): Update.
5210 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5211 (tui_redisplay_readline, tui_mld_flush)
5212 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5213 (tui_getc): Update.
5214 * tui/tui-disasm.c (tui_set_disassem_content)
5215 (tui_disasm_window::do_scroll_vertical): Update.
5216 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5217 Now virtual.
5218 (struct tui_win_info): Derive from tui_gen_win_info.
5219 <~tui_win_info>: Mark as override.
5220 <generic>: Remove member.
5221 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5222 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5223 (~tui_data_window, ~tui_win_info)
5224 (tui_free_all_source_wins_content): Update.
5225 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5226
5227 2019-06-25 Tom Tromey <tom@tromey.com>
5228
5229 * tui/tui-layout.c (init_and_make_win): Use new.
5230 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5231 destructor, initializers.
5232 (tui_alloc_generic_win_info): Don't declare.
5233 * tui/tui-data.c (_locator): Add argument to constructor.
5234 (source_win, disasm_win): New globals.
5235 (exec_info): Remove.
5236 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5237 Update.
5238 (tui_alloc_generic_win_info): Remove.
5239 (init_content_element): Use new.
5240 (tui_win_info::tui_win_info): Update.
5241 (free_content_elements) <case DATA_WIN>: Use delete.
5242
5243 2019-06-25 Tom Tromey <tom@tromey.com>
5244
5245 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5246 * tui/tui-windata.c (tui_first_data_item_displayed)
5247 (tui_delete_data_content_windows): Update.
5248 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5249 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5250 (tui_display_registers_from, tui_check_register_values): Update.
5251 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5252 pointer.
5253 * tui/tui-data.c (init_content_element): Update. Allocate the new
5254 window.
5255 (tui_free_data_content): Update.
5256 (free_content_elements) <case DATA_WIN>: Free the window.
5257
5258 2019-06-25 Tom Tromey <tom@tromey.com>
5259
5260 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5261 Update.
5262 * tui/tui-layout.c (make_command_window)
5263 (show_source_disasm_command, show_data, init_and_make_win)
5264 (show_source_or_disasm_and_command): Update.
5265 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5266 method.
5267 <can_highight, is_highlighted>: Now bool.
5268 (tui_set_win_highlight): Don't declare.
5269 * tui/tui-data.c (tui_set_win_highlight): Remove.
5270
5271 2019-06-25 Tom Tromey <tom@tromey.com>
5272
5273 * tui/tui-wingeneral.c (make_visible): Remove check of window
5274 type.
5275
5276 2019-06-25 Tom Tromey <tom@tromey.com>
5277
5278 * tui/tui-win.c (tui_win_info::max_height)
5279 (tui_cmd_window::max_height): New methods.
5280 (new_height_ok): Call max_height.
5281 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5282 <max_height>: New method.
5283
5284 2019-06-25 Tom Tromey <tom@tromey.com>
5285
5286 * tui/tui-win.c (tui_source_window_base::set_new_height)
5287 (tui_data_window::set_new_height): New methods.
5288 (make_invisible_and_set_new_height): Call set_new_height method.
5289 * tui/tui-data.h (struct tui_win_info)
5290 (struct tui_source_window_base, struct tui_data_window)
5291 <set_new_height>: New method.
5292
5293 2019-06-25 Tom Tromey <tom@tromey.com>
5294
5295 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5296 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5297 tui_refresh_data_win.
5298 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5299 method.
5300 (tui_refresh_all_win): Call the refresh_all method.
5301 (tui_set_focus): Likewise.
5302 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5303 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5304 Likewise.
5305
5306 2019-06-25 Tom Tromey <tom@tromey.com>
5307
5308 * tui/tui-winsource.h (tui_refill_source_window)
5309 (tui_set_is_exec_point_at): Don't declare.
5310 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5311 (tui_source_window_base::refill): Rename from
5312 tui_refill_source_window.
5313 (tui_source_window_base::do_scroll_horizontal): Update.
5314 (tui_source_window_base::set_is_exec_point_at): Rename from
5315 tui_set_is_exec_point_at.
5316 (tui_update_all_breakpoint_info): Update.
5317 * tui/tui-stack.c (tui_show_frame_info): Update.
5318 * tui/tui-layout.c (show_data): Add cast.
5319 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5320 * tui/tui-data.h (struct tui_source_window_base) <refill,
5321 set_is_exec_point_at>: New methods.
5322 (tui_source_windows, tui_add_to_source_windows): Update types.
5323 (tui_add_to_source_windows): Remove redundant declaration.
5324 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5325 (tui_source_windows): Change return type.
5326 (tui_clear_source_windows_detail): Update.
5327 (tui_add_to_source_windows): Change type of parameter.
5328 (tui_free_all_source_wins_content): Update.
5329
5330 2019-06-25 Tom Tromey <tom@tromey.com>
5331
5332 * tui/tui-wingeneral.c (tui_win_info::refresh)
5333 (tui_source_window_base::refresh): New methods.
5334 (tui_refresh_all): Call the refresh method.
5335 * tui/tui-data.h (struct tui_win_info)
5336 (struct tui_source_window_base) <refresh>: New method.
5337
5338 2019-06-25 Tom Tromey <tom@tromey.com>
5339
5340 * tui/tui.h (tui_is_window_visible): Return bool.
5341 * tui/tui.c (tui_is_window_visible): Return bool.
5342 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5343 (tui_make_visible, tui_make_invisible)
5344 (tui_win_info::make_visible)
5345 (tui_source_window_base::make_visible, make_all_visible)
5346 (tui_make_all_visible, tui_make_all_invisible): Update.
5347 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5348 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5349 bool.
5350 (struct tui_win_info, struct tui_source_window_base)
5351 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5352 * tui/tui-data.c (tui_init_generic_part): Update.
5353
5354 2019-06-25 Tom Tromey <tom@tromey.com>
5355
5356 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5357 (tui_source_window_base::make_visible): New methods.
5358 (make_all_visible): Make method call.
5359 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5360 (struct tui_source_window_base, struct tui_cmd_window): Override
5361 make_visible.
5362 (tui_win_is_source_type): Don't declare.
5363 * tui/tui-data.c (tui_win_is_source_type): Remove.
5364
5365 2019-06-25 Tom Tromey <tom@tromey.com>
5366
5367 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5368 NULL check.
5369
5370 2019-06-25 Tom Tromey <tom@tromey.com>
5371
5372 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5373 Inline constructor. Add initializers for members.
5374 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5375 constructors; now inline in class.
5376
5377 2019-06-25 Tom Tromey <tom@tromey.com>
5378
5379 * tui/tui-regs.c (tui_show_registers): Update.
5380 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5381 bool.
5382 * tui/tui-data.c (tui_data_window::clear_detail)
5383 (tui_data_window): Update.
5384
5385 2019-06-25 Tom Tromey <tom@tromey.com>
5386
5387 * tui/tui-windata.c (tui_display_all_data)
5388 (tui_display_data_from_line, tui_display_data_from)
5389 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5390 Update.
5391 * tui/tui-regs.c (tui_last_regs_line_no)
5392 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5393 (tui_show_registers, tui_show_register_group)
5394 (tui_display_registers_from, tui_display_reg_element_at_line)
5395 (tui_display_registers_from_line, tui_check_register_values)
5396 (tui_reg_next, tui_reg_prev): Update.
5397 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5398 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5399 tui_data_window.
5400 (struct tui_win_info) <detail>: Remove. Add new fields from
5401 tui_data_info.
5402 (TUI_DATA_WIN): Add cast.
5403 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5404 (~tui_data_window): Simplify.
5405
5406 2019-06-25 Tom Tromey <tom@tromey.com>
5407
5408 * tui/tui-layout.c (show_source_disasm_command)
5409 (show_source_or_disasm_and_command): Update.
5410 * tui/tui-io.c (update_cmdwin_start_line)
5411 (tui_redisplay_readline): Update.
5412 * tui/tui-data.h (struct tui_command_info): Remove.
5413 (struct tui_win_info) <detail>: Remove command_info member.
5414 (struct tui_data_window) <start_line>: New member, from
5415 tui_command_info.
5416 (TUI_CMD_WIN): Add casts.
5417
5418 2019-06-25 Tom Tromey <tom@tromey.com>
5419
5420 * tui/tui-winsource.c (tui_update_source_window)
5421 (tui_refill_source_window)
5422 (tui_source_window_base::do_scroll_horizontal)
5423 (tui_update_breakpoint_info, tui_set_exec_info_content)
5424 (tui_show_exec_info_content, tui_erase_exec_info_content)
5425 (tui_clear_exec_info_content): Update.
5426 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5427 Update.
5428 * tui/tui-win.c (make_invisible_and_set_new_height)
5429 (make_visible_with_new_height): Update.
5430 * tui/tui-source.c (tui_set_source_content)
5431 (tui_show_symtab_source): Update.
5432 * tui/tui-layout.c (extract_display_start_addr)
5433 (show_source_disasm_command, show_data)
5434 (make_source_or_disasm_window)
5435 (show_source_or_disasm_and_command): Update.
5436 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5437 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5438 "gdbarch".
5439 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5440 to tui_source_window_base.
5441 (struct tui_win_info) <detail>: Remove source_info member.
5442 (struct tui_source_window_base) <has_locator>: Inline.
5443 Move contents from tui_source_info; rename has_locator member to
5444 m_has_locator.
5445 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5446 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5447 header file.
5448 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5449 Simplify.
5450 (tui_free_all_source_wins_content): Cast to
5451 tui_source_window_base.
5452
5453 2019-06-25 Tom Tromey <tom@tromey.com>
5454
5455 * tui/tui-win.c (make_invisible_and_set_new_height)
5456 (make_visible_with_new_height): Call has_locator method.
5457 * tui/tui-layout.c (show_source_disasm_command, show_data)
5458 (show_source_or_disasm_and_command): Update for bool change.
5459 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5460 (tui_win_info) <has_locator>: New method.
5461 (struct tui_source_window_base) <has_locator>: New method.
5462 (tui_win_has_locator): Don't declare.
5463 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5464 from tui_win_has_locator.
5465 (tui_source_window_base): Use false, not FALSE.
5466
5467 2019-06-25 Tom Tromey <tom@tromey.com>
5468
5469 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5470 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5471 clear_detail method directly.
5472 (tui_clear_win_detail): Remove.
5473
5474 2019-06-25 Tom Tromey <tom@tromey.com>
5475
5476 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5477 "this", not TUI_DISASM_WIN.
5478
5479 2019-06-25 Tom Tromey <tom@tromey.com>
5480
5481 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
5482 declare.
5483 * tui/tui-winsource.c
5484 (tui_source_window_base::do_scroll_horizontal): Rename from
5485 tui_horizontal_source_scroll.
5486 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5487 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5488 from tui_vertical_data_scroll.
5489 * tui/tui-win.h (tui_scroll): Don't declare.
5490 * tui/tui-win.c (tui_win_info::forward_scroll)
5491 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5492 (tui_win_info::right_scroll): Rename and update.
5493 (tui_scroll_forward_command, tui_scroll_backward_command)
5494 (tui_scroll_left_command, tui_scroll_right_command): Update.
5495 (tui_scroll): Remove.
5496 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5497 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5498 from tui_vertical_source_scroll.
5499 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5500 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5501 from tui_vertical_disassem_scroll.
5502 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5503 do_scroll_horizontal>: New methods.
5504 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5505 Likewise.
5506 (struct tui_source_window_base): Add do_scroll_horizontal.
5507 (struct tui_source_window, struct tui_disasm_window): Add
5508 do_scroll_vertical.
5509 (struct tui_data_window, struct tui_cmd_window): Add
5510 do_scroll_horizontal and do_scroll_vertical.
5511 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5512
5513 2019-06-25 Tom Tromey <tom@tromey.com>
5514
5515 * tui/tui-data.h (struct tui_source_window_base): New struct.
5516 (struct tui_source_window): Derive from tui_source_window_base.
5517 (struct tui_disasm_window): New struct.
5518 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5519 from tui_source_window::clear_detail.
5520 (tui_source_window_base): Rename from tui_source_window.
5521 (~tui_source_window_base): Rename from ~tui_source_window.
5522 (tui_alloc_win_info): Create a tui_disasm_window.
5523
5524 2019-06-25 Tom Tromey <tom@tromey.com>
5525
5526 * tui/tui-data.h (struct tui_source_window)
5527 (struct tui_data_window): Declare destructors.
5528 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5529 destructors.
5530 (tui_win_info): Simplify.
5531
5532 2019-06-25 Tom Tromey <tom@tromey.com>
5533
5534 * tui/tui-winsource.c (tui_display_main)
5535 (tui_update_source_windows_with_addr)
5536 (tui_update_all_breakpoint_info): Update.
5537 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5538 (new_height_ok, parse_scrolling_args): Update.
5539 * tui/tui-stack.c (tui_show_frame_info): Update.
5540 * tui/tui-data.h (struct tui_list): Remove.
5541 (tui_source_windows): Return a reference to a std::vector.
5542 * tui/tui-data.c (source_windows): Now a std::vector.
5543 (tui_source_windows): Change return type.
5544 (tui_clear_source_windows): Rewrite.
5545 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5546 (tui_free_all_source_wins_content): Rewrite.
5547
5548 2019-06-25 Tom Tromey <tom@tromey.com>
5549
5550 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5551 (struct tui_data_window, struct tui_cmd_window): Declare
5552 clear_detail method.
5553 * tui/tui-data.c (tui_source_window::clear_detail)
5554 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5555 methods.
5556 (tui_clear_win_detail): Simplify.
5557
5558 2019-06-25 Tom Tromey <tom@tromey.com>
5559
5560 * tui/tui-layout.c (make_source_window, make_disasm_window)
5561 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5562 Return the new window.
5563 (show_source_disasm_command, show_data)
5564 (show_source_or_disasm_and_command): Update.
5565
5566 2019-06-25 Tom Tromey <tom@tromey.com>
5567
5568 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5569 parameter. Return the new window.
5570 (show_source_disasm_command): Update and remove NULL check.
5571 (show_source_or_disasm_and_command): Update.
5572
5573 2019-06-25 Tom Tromey <tom@tromey.com>
5574
5575 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5576
5577 2019-06-25 Tom Tromey <tom@tromey.com>
5578
5579 * tui/tui-data.h (struct tui_win_info): Make constructor
5580 protected. Make destructor virtual. Add initializers.
5581 (tui_source_window, tui_data_window, tui_cmd_window): New
5582 classes.
5583 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5584 constructor. Add "type" parameter.
5585 (tui_source_window, tui_data_window, tui_cmd_window): New
5586 constructors.
5587 (tui_alloc_win_info): Instantiate the appropriate subclass.
5588
5589 2019-06-25 Tom Tromey <tom@tromey.com>
5590
5591 * tui/tui-win.c (tui_resize_all): Use delete.
5592 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5593 destructor.
5594 (tui_free_window): Don't declare.
5595 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5596 Update.
5597
5598 2019-06-25 Tom Tromey <tom@tromey.com>
5599
5600 * tui/tui-data.h (struct tui_win_info): Add constructor.
5601 * tui/tui-data.c (tui_alloc_win_info): Use new.
5602 (tui_free_window): Use delete.
5603
5604 2019-06-22 Tom Tromey <tom@tromey.com>
5605
5606 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5607 declare.
5608 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5609
5610 2019-06-22 Tom Tromey <tom@tromey.com>
5611
5612 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5613 declare.
5614 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5615
5616 2019-06-22 Tom de Vries <tdevries@suse.de>
5617
5618 * dwarf2read.c (create_addrmap_from_aranges)
5619 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5620 instead of '%zu'.
5621
5622 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
5623
5624 * dwarf2read.h (dwarf2_section_info_def): Remove.
5625 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5626 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5627 std::vector<dwarf2_section_info>.
5628 (struct dwo_file) <~dwo_file>: Remove.
5629 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5630 types field.
5631 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5632 (dwarf2_read_debug_names): Likewise.
5633 (create_debug_types_hash_table): Change parameter type to
5634 array_view, adjust code accordingly.
5635 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5636 (partial_die_info::fixup): Likewise.
5637 (determine_prefix): Likewise.
5638 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5639
5640 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5641
5642 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5643 gdb_bfd_ref_ptr.
5644 <~dwo_file>: Remove call to gdb_bfd_unref.
5645 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5646 gdb_bfd_ref_ptr::get.
5647
5648 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5649
5650 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5651 type to htab_up.
5652 * dwarf2read.c (struct dwo_file): Initialize fields.
5653 <~dwo_file>: New.
5654 (free_dwo_file): Remove, move content to ~dwo_file.
5655 (struct dwo_file_deleter): Remove.
5656 (dwo_file_up>: Remove custom deleter.
5657 (free_dwo_files): Remove.
5658 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5659 dwo_files.
5660 (process_skeletonless_type_units): Call unique_ptr::get.
5661 (allocate_dwo_file_hash_table): Add deleter to created hash
5662 table. Change return type to htab_up.
5663 (lookup_dwo_file_slot): Don't memset dwo_file, call
5664 unique_ptr::get.
5665 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5666 (create_dwo_unit_in_dwp_v2): Likewise.
5667 (open_and_init_dwo_file): Likewise.
5668 (free_dwo_file_from_slot): Remove.
5669
5670 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5671
5672 * dwarf2read.h (struct dwarf2_section_info) <readin,
5673 is_virtual>: Change type to bool.
5674 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5675 true instead of 1.
5676
5677 2019-06-19 Tom Tromey <tom@tromey.com>
5678
5679 * tui/tui-data.h (tui_init_content_element): Don't declare.
5680
5681 2019-06-19 Tom Tromey <tom@tromey.com>
5682
5683 * tui/tui-data.h (tui_init_win_info): Don't declare.
5684
5685 2019-06-19 Tom de Vries <tdevries@suse.de>
5686
5687 * dwarf2read.h (abstract_to_concrete): Change type to
5688 std::unordered_map<sect_offset, std::vector<sect_offset>,
5689 gdb::hash_enum<sect_offset>>.
5690
5691 2019-06-19 Tom Tromey <tromey@adacore.com>
5692
5693 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5694 EVAL_AVOID_SIDE_EFFECTS specially.
5695
5696 2019-06-19 Tom Tromey <tromey@adacore.com>
5697
5698 * source-cache.c (highlighter): New global.
5699 (source_cache::get_source_lines): Create a highlighter on demand.
5700
5701 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5702
5703 * defs.h (deprecated_interactive_hook): Delete declaration.
5704 * interps.c (clear_interpreter_hooks): Remove use of
5705 deprecated_interactive_hook.
5706 * top.c (deprecated_interactive_hook): Delete definition.
5707 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5708
5709 2019-06-18 Tom de Vries <tdevries@suse.de>
5710
5711 PR gdb/24515
5712 * dwarf2read.h (abstract_to_concrete): Change type from
5713 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5714 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5715 * dwarf2read.c (read_variable): Update.
5716 (dwarf2_fetch_die_loc_sect_off): Update.
5717
5718 2019-06-17 Tom de Vries <tdevries@suse.de>
5719
5720 PR gdb/24617
5721 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5722 accessing parent[parent_len - 1].
5723
5724 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5725
5726 PR gdb/24364
5727 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5728 call dtrace_process_dof with NULL dof.
5729
5730 2019-06-16 Tom de Vries <tdevries@suse.de>
5731
5732 PR gdb/24445
5733 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5734
5735 2019-06-16 Tom Tromey <tom@tromey.com>
5736
5737 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5738 (make_all_visible): Use address of member.
5739
5740 2019-06-16 Tom Tromey <tom@tromey.com>
5741
5742 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5743 (tui_free_window, free_content, free_content_elements): Remove
5744 unnecessary cast.
5745 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5746 cast.
5747 * tui/tui-regs.c (tui_show_register_group)
5748 (tui_display_registers_from, tui_display_reg_element_at_line):
5749 Remove unnecessary cast.
5750
5751 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5752
5753 * linux-nat.c (normal_mask): Delete.
5754 (_initialize_linux_nat): Don't initialise normal_mask.
5755
5756 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5757
5758 PR gdb/24445
5759 * dwarf-index-write.h (write_psymtabs_to_index): Add
5760 dwz_basename parameter.
5761 * dwarf-index-write.c (write_gdbindex): Move file writing to
5762 write_gdbindex_1. Change return type void.
5763 (assert_file_size): Move up, remove filename parameter.
5764 (write_gdbindex_1): New function.
5765 (write_debug_names): Change return type to void, call
5766 assert_file_size.
5767 (struct index_wip_file): New struct.
5768 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5769 file logic to index_wip_file. Write index for dwz file if
5770 needed.
5771 (save_gdb_index_command): Pass basename of dwz file, if present.
5772 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5773 build-id of dwz file, if present.
5774 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5775 (dwarf2_get_dwz_file): Likewise.
5776 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5777 (dwarf2_get_dwz_file): Likewise.
5778
5779 2019-06-16 Tom Tromey <tom@tromey.com>
5780
5781 * coffread.c (process_coff_symbol): Use xstrdup.
5782 * value.c (create_internalvar): Use xstrdup.
5783
5784 2019-06-16 Tom Tromey <tom@tromey.com>
5785
5786 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5787 * breakpoint.c (stopin_command, stopat_command)
5788 (until_break_command, decode_location_default): Remove unnecessary
5789 cast.
5790 * utils.c (subset_compare): Remove unnecessary cast.
5791 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5792 cast.
5793 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5794 cast.
5795 * infcmd.c (path_command): Remove unnecessary cast.
5796 * coffread.c (decode_type): Remove unnecessary cast.
5797 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5798 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5799 * tui/tui-stack.c (tui_show_locator_content)
5800 (tui_show_frame_info): Remove unnecessary cast.
5801 * tui/tui-win.c (tui_scroll_forward_command)
5802 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5803 (parse_scrolling_args): Remove unnecessary cast.
5804 * tui/tui-data.c (init_win_info, tui_del_window)
5805 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5806 (free_content_elements): Remove unnecessary cast.
5807 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5808 unnecessary cast.
5809 * tui/tui-source.c (tui_set_source_content)
5810 (tui_vertical_source_scroll): Remove unnecessary cast.
5811 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5812 cast.
5813 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5814 * tui/tui-regs.c (tui_display_registers_from)
5815 (tui_display_register): Remove unnecessary cast.
5816 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5817 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5818 (make_visible): Remove unnecessary cast.
5819 * tui/tui-winsource.c (tui_erase_source_content)
5820 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5821 unnecessary cast.
5822 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5823 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5824 * stabsread.c (read_type, read_array_type, read_range_type):
5825 Remove unnecessary cast.
5826 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5827 (parse_symbol, parse_type, upgrade_type, parse_external)
5828 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5829 unnecessary cast.
5830 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5831
5832 2019-06-16 Tom Tromey <tom@tromey.com>
5833
5834 * tui/tui-data.c (tui_alloc_generic_win_info)
5835 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5836 checks.
5837
5838 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5839 Andrew Burgess <andrew.burgess@embecosm.com>
5840
5841 * f-typeprint.c (f_print_type): Don't return early for not
5842 associated or not allocated types.
5843 (f_type_print_varspec_suffix): Add print_rank parameter and print
5844 ranks of array types in case they dangling.
5845 (f_type_print_base): Add print_rank parameter.
5846
5847 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5848
5849 * NEWS: Mention new MI commands.
5850 * break-catch-throw.c (enum exception_event_kind): Move to
5851 breakpoint.h.
5852 (print_mention_exception_catchpoint): Output text as a single
5853 message.
5854 (catch_exception_command_1): Rename to...
5855 (catch_exception_event): ...this, make non-static, update header
5856 command, and change some parameter types.
5857 (catch_catch_command): Update for changes to
5858 catch_exception_command_1.
5859 (catch_throw_command): Likewise.
5860 (catch_rethrow_command): Likewise.
5861 * breakpoint.c (enum exception_event_kind): Delete.
5862 * breakpoint.h (enum exception_event_kind): Moved here from
5863 break-catch-throw.c.
5864 (catch_exception_event): Declare.
5865 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5866 (mi_cmd_catch_throw): New function.
5867 (mi_cmd_catch_rethrow): New function.
5868 (mi_cmd_catch_catch): New function.
5869 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5870 'catch-catch' entries.
5871 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5872 (mi_cmd_catch_rethrow): Declare.
5873 (mi_cmd_catch_catch): Declare.
5874
5875 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5876
5877 * annotate.c (annotate_source_line): Change return type to void,
5878 update implementation to match.
5879 * annotate.h (annotate_source_line): Change return type to void,
5880 update header comment.
5881 * stack.c (print_frame_info): Don't change what frame information
5882 is printed based on whether annotations are on or not.
5883
5884 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5885
5886 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5887 (annotate_source): Make static.
5888 (annotate_source_line): Moved from source.c and renamed from
5889 identify_source_line. Update the return type.
5890 * annotate.h (annotate_source): Delete declaration.
5891 (annotate_source_line): Declaration moved from source.h, and
5892 renamed from identify_source_line. Return type updated.
5893 * source.c (identify_source_line): Moved to annotate.c and renamed
5894 to annotate_source_line.
5895 (info_line_command): Remove check of annotation_level.
5896 * source.h (identify_source_line): Move declaration to annotate.h
5897 and rename to annotate_source_line.
5898 * stack.c: Add 'annotate.h' include.
5899 (print_frame_info): Remove check of annotation_level before
5900 calling annotate_source_line.
5901
5902 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5903
5904 * source-cache.c (source_cache::get_plain_source_lines): Use
5905 open_source_file_with_line_charpos instead of just
5906 open_source_file, remove call to find_source_lines.
5907 (source_cache::get_source_lines): Likewise.
5908 * source.c (find_source_lines): Make static.
5909 (get_filename_and_charpos): Renamed into...
5910 (open_source_file_with_line_charpos): ..this along with changes to
5911 return a scoped_fd, and some other minor clean ups.
5912 (identify_source_line): Use open_source_file_with_line_charpos.
5913 (search_command_helper): Use open_source_file_with_line_charpos
5914 instead of just open_source_file, remove call to
5915 find_source_lines.
5916 * source.h (open_source_file_with_line_charpos): Declare new
5917 function.
5918 (find_source_lines): Delete declaration.
5919
5920 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5921
5922 * source.c (get_filename_and_charpos): Remove fullname
5923 parameter.
5924 (identify_source_line): Update call to get_filename_and_charpos.
5925
5926 2019-06-14 Tom Tromey <tromey@adacore.com>
5927
5928 PR gdb/24502:
5929 * ui-style.h (skip_ansi_escape): Update comment.
5930 * ui-file.h (class no_terminal_escape_file): New class.
5931 * ui-file.c (no_terminal_escape_file::write)
5932 (no_terminal_escape_file::puts): New methods.
5933 * cli/cli-logging.c (handle_redirections): Use
5934 no_terminal_escape_file.
5935
5936 2019-06-14 Tom Tromey <tromey@adacore.com>
5937
5938 * NEWS: Move convenience variable news above Python news.
5939
5940 2019-06-14 Tom Tromey <tom@tromey.com>
5941
5942 * gnulib: Move directory to top-level.
5943 * configure.ac: Don't configure gnulib.
5944 * configure: Rebuild.
5945 * common/common-defs.h: Use new path to gnulib.
5946 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5947 (GNULIB_H): Remove.
5948 (INCGNU): Look in new gnulib location.
5949 (HFILES_NO_SRCDIR): Remove gnulib files.
5950 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5951 (generated_files): Remove GNULIB_H.
5952 ($(LIBGNU), all-lib): Remove targets.
5953 (distclean): Don't mention GNULIB_BUILDDIR.
5954 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5955
5956 2019-06-14 Tom Tromey <tromey@adacore.com>
5957
5958 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5959 Warn if symbol file does not provide any symbols.
5960
5961 2019-06-14 Tom Tromey <tromey@adacore.com>
5962
5963 * source.c (find_and_open_source): Respect basenames_may_differ.
5964
5965 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5966
5967 * annotate.c (annotate_breakpoints_invalid): Make use of
5968 scoped_restore_terminal_state.
5969 (annotate_frames_invalid): Likewise.
5970
5971 2019-06-14 Tom Tromey <tromey@adacore.com>
5972
5973 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5974 allow assignment to an internalvar.
5975
5976 2019-06-14 Tom Tromey <tromey@adacore.com>
5977
5978 * ada-lex.l: Allow "_" in attribute names.
5979
5980 2019-06-14 Tom Tromey <tromey@adacore.com>
5981
5982 PR gdb/24653:
5983 * regcache.c (registers_changed): Don't call alloca.
5984 * top.c (execute_command): Don't call alloca.
5985
5986 2019-06-13 Pedro Alves <palves@redhat.com>
5987
5988 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5989 'expression'. When parsing an expression, error out if there's
5990 junk after "unlimited".
5991 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5992 (do_set_command): Adjust calls to is_unlimited_literal.
5993
5994 2019-06-13 Pedro Alves <palves@redhat.com>
5995
5996 * compile/compile.c (make_compile_options_def_group): Add braces
5997 around array_view initializer.
5998 * thread.c (make_thread_apply_all_options_def_group)
5999 (make_thread_apply_all_options_def_group): Likewise.
6000
6001 2019-06-13 Pedro Alves <palves@redhat.com>
6002
6003 * NEWS (New commands): Mention "maint test-options
6004 require-delimiter", "maint test-options unknown-is-error", "maint
6005 test-options unknown-is-operand" and "maint show
6006 test-options-completion-result".
6007 (New command options, command completion): New section.
6008 (Completion improvements): New section.
6009 Mention that you can abbreviate "unlimited".
6010
6011 2019-06-13 Pedro Alves <palves@redhat.com>
6012
6013 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6014 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6015 * unittests/cli-utils-selftests.c (test_parse_flags)
6016 (test_parse_flags_qcs): Delete.
6017 (test_cli_utils): Don't call deleted functions.
6018
6019 2019-06-13 Pedro Alves <palves@redhat.com>
6020
6021 * thread.c: Include "cli/cli-option.h".
6022 (tp_array_compar_ascending): Global.
6023 (tp_array_compar): Delete function.
6024 (tp_array_compar_ascending, tp_array_compar_descending): New
6025 functions.
6026 (ascending_option_def, qcs_flag_option_def)
6027 (thr_qcs_flags_option_defs)
6028 (make_thread_apply_all_options_def_group)
6029 (make_thread_apply_options_def_group): New.
6030 (thread_apply_all_command): Use gdb::option::process_options.
6031 (thread_apply_command_completer)
6032 (thread_apply_all_command_completer): New.
6033 (thread_apply_command): Use gdb::option::process_options.
6034 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6035 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6036 to generate help text of "thread apply". Adjust "taas"'s help.
6037 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6038 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6039
6040 2019-06-13 Pedro Alves <palves@redhat.com>
6041
6042 * thread.c (thread_apply_command): Check for invalid TID with
6043 isdigit instead of !isalpha.
6044
6045 2019-06-13 Pedro Alves <palves@redhat.com>
6046
6047 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6048 (validate_flags_qcs): New.
6049 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6050 (validate_flags_qcs): Declare.
6051 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6052 (make_frame_apply_options_def_group): New.
6053 (frame_apply_command_count): Process options with
6054 gdb::option::process_options.
6055 (frame_apply_completer): New.
6056 (frame_apply_level_completer, frame_apply_all_completer)
6057 (frame_apply_completer): New.
6058 (_initialize_stack): Update help of "frame apply", "frame apply
6059 level", "frame apply all" and "faas" to mention supported options
6060 and install command completers.
6061 * stack.h (frame_apply_all_completer): Declare.
6062 * thread.c: Include "stack.h".
6063 (tfaas_command): Add "--".
6064 (_initialize_thread): Update help "tfaas" to mention supported
6065 options and install command completer.
6066
6067 2019-06-13 Pedro Alves <palves@redhat.com>
6068
6069 * completer.c (complete_nested_command_line): New.
6070 (gdb_completion_word_break_characters_throw): Add assertion.
6071 * completer.h (complete_nested_command_line): Declare.
6072
6073 2019-06-13 Pedro Alves <palves@redhat.com>
6074
6075 * stack.c (parse_backtrace_qualifiers): New.
6076 (backtrace_command): Use it.
6077 (backtrace_command_completer): Complete on qualifiers.
6078
6079 2019-06-13 Pedro Alves <palves@redhat.com>
6080
6081 * frame.c: Include "cli/cli-option.h.
6082 (user_set_backtrace_options): New.
6083 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6084 Delete.
6085 (get_prev_frame): Adjust.
6086 (boolean_option_def, uinteger_option_def)
6087 (set_backtrace_option_defs): New.
6088 (_initialize_frame): Adjust and use
6089 gdb::option::add_setshow_cmds_for_options to install "set
6090 backtrace past-main" and "set backtrace past-entry".
6091 * frame.h: Include "cli/cli-option.h".
6092 (struct frame_print_options): Forward declare.
6093 (print_frame_arguments_all, print_frame_arguments_scalars)
6094 (print_frame_arguments_none): Declare.
6095 (print_entry_values): Delete declaration.
6096 (struct frame_print_options, user_frame_print_options): New.
6097 (struct set_backtrace_options): New.
6098 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6099 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6100 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6101 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6102 (list_args_or_locals): Add frame_print_options parameter.
6103 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6104 * python/py-framefilter.c (enumerate_args): Pass down
6105 USER_FRAME_PRINT_OPTIONS.
6106 * stack.c: Include "cli/cli-option.h".
6107 (print_frame_arguments_all, print_frame_arguments_scalars)
6108 (print_frame_arguments_none): Declare.
6109 (print_raw_frame_arguments, print_entry_values): Delete.
6110 (user_frame_print_options): New.
6111 (boolean_option_def, enum_option_def, frame_print_option_defs):
6112 New.
6113 (struct backtrace_cmd_options): New.
6114 (bt_flag_option_def): New.
6115 (backtrace_command_option_defs): New.
6116 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6117 (print_frame_arg, read_frame_arg, print_frame_args)
6118 (print_frame_info, print_frame): Add frame_print_options parameter
6119 and use it.
6120 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6121 (backtrace_command_1): Add frame_print_options and
6122 backtrace_cmd_options parameters and use them.
6123 (make_backtrace_options_def_group): New.
6124 (backtrace_command): Process command options with
6125 gdb::option::process_options.
6126 (backtrace_command_completer): New.
6127 (_initialize_stack): Extend "backtrace"'s help to mention
6128 supported options. Install completer for "backtrace".
6129 Install some settings commands with add_setshow_cmds_for_options.
6130
6131 2019-06-13 Pedro Alves <palves@redhat.com>
6132
6133 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6134 and that "set/show print raw frame-arguments" are now deprecated.
6135
6136 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6137 command.
6138 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6139 * stack.c (_initialize_stack): Install "set/show print
6140 raw-frame-arguments", and deprecate "set/show print raw
6141 frame-arguments".
6142 * valprint.c (_initialize_valprint): Deprecate "set/show print
6143 raw".
6144
6145 2019-06-13 Pedro Alves <palves@redhat.com>
6146
6147 * compile/compile.c (struct compile_options): New.
6148 (compile_flag_option_def, compile_command_option_defs)
6149 (make_compile_options_def_group): New.
6150 (compile_file_command): Handle options with
6151 gdb::option::process_options.
6152 (compile_file_command_completer): New function.
6153 (compile_code_command): Handle options with
6154 gdb::option::process_options.
6155 (compile_code_command_completer): New function.
6156 (_initialize_compiler): Install completers for "compile code" and
6157 "compile file". Mention available options in "compile code" and
6158 "compile code"'s help.
6159 * completer.c (advance_to_completion_word): New, factored out from
6160 ...
6161 (advance_to_expression_complete_word_point): ... this.
6162 (advance_to_filename_complete_word_point): New.
6163 * completer.h (advance_to_filename_complete_word_point): New
6164 declaration.
6165
6166 2019-06-13 Pedro Alves <palves@redhat.com>
6167
6168 * compile/compile.c: Include "cli/cli-option.h".
6169 (compile_print_value): Scope data pointer is now a
6170 value_print_options pointer; adjust.
6171 (compile_print_command): Process options. Scope data pointer is
6172 now a value_print_options pointer; adjust.
6173 (_initialize_compile): Update "compile print"'s help to include
6174 supported options. Install a completer for "compile print".
6175 * cp-valprint.c (show_vtblprint, show_objectprint)
6176 (show_static_field_print): Delete.
6177 (_initialize_cp_valprint): Don't install "set print
6178 static-members", "set print vtbl", "set print object" here.
6179 * printcmd.c: Include "cli/cli-option.h" and
6180 "common/gdb_optional.h".
6181 (print_command_parse_format): Rework to fill in a
6182 value_print_options instead of a format_data.
6183 (print_value): Change parameter type from format_data pointer to
6184 value_print_options reference. Adjust.
6185 (print_command_1): Process options. Adjust to pass down a
6186 value_print_options.
6187 (print_command_completer): New.
6188 (_initialize_printcmd): Install print_command_completer as
6189 handle_brkchars completer for the "print" command. Update
6190 "print"'s help to include supported options.
6191 * valprint.c: Include "cli/cli-option.h".
6192 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6193 here from cp-valprint.c.
6194 (boolean_option_def, uinteger_option_def)
6195 (value_print_option_defs, make_value_print_options_def_group):
6196 New. Use gdb::option::add_setshow_cmds_for_options to install
6197 "set print elements", "set print null-stop", "set print repeats",
6198 "set print pretty", "set print union", "set print array", "set
6199 print address", "set print symbol", "set print array-indexes".
6200 * valprint.h: Include <string> and "cli/cli-option.h".
6201 (make_value_print_options_def_group): Declare.
6202 (print_value): Change parameter type from format_data pointer to
6203 value_print_options reference.
6204 (print_command_completer): Declare.
6205
6206 2019-06-13 Pedro Alves <palves@redhat.com>
6207
6208 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6209 (COMMON_SFILES): Add maint-test-settings.c.
6210 * cli/cli-decode.c (boolean_enums): New global, factored out from
6211 ...
6212 (add_setshow_boolean_cmd): ... here.
6213 * cli/cli-decode.h (boolean_enums): Declare.
6214 * cli/cli-option.c: New file.
6215 * cli/cli-option.h: New file.
6216 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6217 factored out from ...
6218 (parse_cli_boolean_value(const char *)): ... this.
6219 (is_unlimited_literal): Change parameter type to pointer to
6220 pointer. Adjust and advance ARG pointer.
6221 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6222 (parse_cli_var_enum): New, factored out from ...
6223 (do_set_command): ... this. Adjust.
6224 * cli/cli-setshow.h (parse_cli_boolean_value)
6225 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6226 (parse_cli_var_enum): Declare.
6227 * cli/cli-utils.c: Include "cli/cli-option.h".
6228 (get_ulongest): New.
6229 * cli/cli-utils.h (get_ulongest): Declare.
6230 (check_for_argument): New overloads.
6231 * maint-test-options.c: New file.
6232
6233 2019-06-13 Pedro Alves <palves@redhat.com>
6234
6235 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6236 parse a range if "-" is at the end of the string.
6237
6238 2019-06-13 Pedro Alves <palves@redhat.com>
6239
6240 * cli/cli-setshow.c (parse_auto_binary_operation)
6241 (parse_cli_boolean_value): Don't allow "o".
6242
6243 2019-06-13 Pedro Alves <palves@redhat.com>
6244
6245 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6246 * NEWS: Mention maint test-settings KIND.
6247 * maint-test-settings.c: New file.
6248
6249 2019-06-13 Pedro Alves <palves@redhat.com>
6250
6251 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6252 completer.
6253 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6254 "set" completers.
6255
6256 2019-06-13 Pedro Alves <palves@redhat.com>
6257
6258 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6259 after item.
6260
6261 2019-06-13 Pedro Alves <palves@redhat.com>
6262
6263 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6264
6265 2019-06-13 Pedro Alves <palves@redhat.com>
6266
6267 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6268 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6269 call.
6270 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6271 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6272 calls.
6273 (check_for_argument): Skip spaces after argument.
6274
6275 2019-06-13 Pedro Alves <palves@redhat.com>
6276
6277 * thread.c (thread_apply_command): Adjust TID parsing.
6278 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6279 detected before end of string.
6280 (tid_is_in_list): Error out if LIST is invalid.
6281
6282 2019-06-13 Pedro Alves <palves@redhat.com>
6283
6284 * completer.c (complete_line_internal_1): Rewind completion word
6285 point.
6286 (completion_tracker::advance_custom_word_point_by): Change
6287 parameter type to int.
6288 * completer.h (completion_tracker::advance_custom_word_point_by):
6289 Likewise.
6290
6291 2019-06-13 Pedro Alves <palves@redhat.com>
6292
6293 * completer.c (advance_to_completion_word): Handle delimiters.
6294
6295 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6296
6297 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6298
6299 2019-06-11 Tom Tromey <tom@tromey.com>
6300
6301 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6302 (xmalloc_failed): Move to alloc.c.
6303 * alloc.c: New file.
6304 * Makefile.in (COMMON_SFILES): Add alloc.c.
6305
6306 2019-06-11 Tom Tromey <tom@tromey.com>
6307
6308 * nat/linux-waitpid.c: Don't include server.h.
6309 (linux_debug): Remove.
6310 (my_waitpid): Update.
6311
6312 2019-06-11 Tom Tromey <tromey@adacore.com>
6313
6314 * infcall.c (_initialize_infcall): Remove trailing newline from
6315 help.
6316 * user-regs.c (_initialize_user_regs): Remove trailing newline
6317 from help.
6318 * typeprint.c (_initialize_typeprint): Remove trailing newline
6319 from help.
6320 * reverse.c (_initialize_reverse): Remove trailing newlines from
6321 help.
6322 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6323 from help.
6324 * language.c (add_set_language_command): Remove trailing newline
6325 from help.
6326 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6327 help.
6328 * disasm.c (_initialize_disasm): Remove trailing newline from
6329 help.
6330 * top.c (init_main): Remove trailing newline from help.
6331 * interps.c (_initialize_interpreter): Remove trailing newline
6332 from help.
6333 * btrace.c (_initialize_btrace): Remove trailing newlines from
6334 help.
6335 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6336 from help.
6337 * python/python.c (_initialize_python): Remove trailing newline
6338 from help.
6339 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6340 help.
6341 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6342 from help. Reformat some text.
6343 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6344 from help.
6345 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6346 newline from help.
6347
6348 2019-06-11 Tom Tromey <tromey@adacore.com>
6349
6350 * darwin-nat.c (darwin_decode_exception_message)
6351 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6352
6353 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6354
6355 * valops.c (value_slice): Check for not allocated or not
6356 associated values.
6357
6358 2019-06-10 Tom de Vries <tdevries@suse.de>
6359
6360 PR gdb/24618
6361 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6362 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6363 invalid.
6364
6365 2019-06-10 Tom de Vries <tdevries@suse.de>
6366
6367 PR gdb/24611
6368 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6369 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6370
6371 2019-06-10 Tom de Vries <tdevries@suse.de>
6372
6373 PR symtab/24545
6374 * symtab.c (struct demangled_name_entry): Add language field.
6375 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6376 static minimal symbol". Set and use language field.
6377
6378 2019-06-10 Tom Tromey <tromey@adacore.com>
6379
6380 * ada-lang.c (_initialize_ada_language): Update help text.
6381
6382 2019-06-10 Tom Tromey <tromey@adacore.com>
6383
6384 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6385 with a newline.
6386 * guile/guile.c (handle_boot_error): Don't end warning with a
6387 newline.
6388 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6389 warning with a newline.
6390 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6391 newline.
6392 (s12z_frame_cache): Likewise.
6393 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6394 a newline.
6395 * solib-svr4.c (disable_probes_interface): Don't end warning with
6396 a newline.
6397 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6398 newline.
6399 * python/python.c (do_finish_initialization): Don't end warning
6400 with a newline.
6401
6402 2019-06-10 Tom Tromey <tom@tromey.com>
6403
6404 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6405 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6406 gdbpy_enter.
6407
6408 2019-06-10 Tom Tromey <tromey@adacore.com>
6409
6410 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6411 data.
6412 (elf_new_init): Don't call stabsread_new_init.
6413 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6414 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6415 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6416
6417 2019-06-10 Tom de Vries <tdevries@suse.de>
6418
6419 PR symtab/16264
6420 PR symtab/24517
6421 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6422
6423 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6424
6425 * source.c (find_and_open_source): Also rewrite relative file
6426 names.
6427
6428 2019-04-26 Amos Bird <amosbird@gmail.com>
6429
6430 * annotate.c (annotate_thread_exited): Add "thread-exited"
6431 annotation.
6432
6433 2019-06-06 Tom Tromey <tromey@adacore.com>
6434
6435 * maint.h (class scoped_command_stats): Use
6436 DISABLE_COPY_AND_ASSIGN.
6437 <print_time>: New method.
6438 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6439 print_time.
6440 (scoped_command_stats::print_time): New method.
6441
6442 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6443
6444 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6445 instructions of lengths 6 or 8 bytes.
6446
6447 2019-06-04 Pedro Alves <palves@redhat.com>
6448
6449 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6450
6451 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6452 * breakpoint.c (condition_completer): Likewise.
6453 * cli/cli-dump.c (scan_expression): Likewise.
6454 * common/filestuff.c (mkdir_recursive): Likewise.
6455 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6456 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6457 (gdb_abspath): Likewise.
6458 * compile/compile-cplus-types.c
6459 (compile_cplus_instance::decl_name): Likewise.
6460 * completer.c (complete_explicit_location):
6461 (signal_completer, reg_or_group_completer_1): Likewise.
6462 * cp-support.c (cp_remove_params_if_any): Likewise.
6463 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6464 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6465 * infcmd.c (strip_bg_char): Likewise.
6466 * linespec.c (copy_token_string): Likewise.
6467 * mi/mi-main.c (output_cores): Likewise.
6468 * psymtab.c (psymtab_search_name):
6469 * symfile.c (test_set_ext_lang_command): Likewise.
6470 * target.c (target_fileio_read_stralloc): Likewise.
6471 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6472 * value.c (complete_internalvar): Likewise.
6473
6474 2019-06-04 Christian Biesinger <cbiesinger@google.com>
6475
6476 Add objfile property to gdb.Type.
6477 * NEWS: Mention Python API addition.
6478 * python/py-type.c (typy_get_objfile): New method.
6479
6480 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6481
6482 * NEWS: Mention the new set|show style [title|highlight].
6483 Mention changes to "show style", "help" and "apropos".
6484
6485 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6486
6487 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6488 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
6489 instead of print_help_for_command.
6490 (print_doc_of_command): New function.
6491 (help_list): Add 'apropos -v word' suggestion.
6492 (print_help_for_command): Style the command name using title style.
6493 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6494 (_initialize_cli_cmds): Describe -v in apropos_command help.
6495
6496 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6497
6498 * cli/cli-style.h (cli_style_option): Add name in constructor,
6499 add m_name class member, add constructor with intensity,
6500 add name class function.
6501 (cli_style_option::add_setshow_commands): Remove name argument.
6502 (highlight_style, title_style): New styles.
6503 * cli/cli-style.c (do_show): New function that shows a style
6504 characteristic styling the style name with itself.
6505 (set_style_name): New function.
6506 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6507 Update all callers according to the changes in cli/cli-style.h.
6508 * utils.h (fputs_highlighted): New function.
6509 * utils.c (fputs_highlighted): Likewise.
6510
6511 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6512
6513 * NEWS: Mention new pipe command and new convenience variables.
6514
6515 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6516
6517 * cli/cli-cmds.c (pipe_command): New function.
6518 (_initialize_cli_cmds): Call add_com for pipe_command.
6519 Define | as an alias for pipe.
6520 (exit_status_set_internal_vars): New function.
6521 (shell_escape): Call exit_status_set_internal_vars.
6522 cli/cli-decode.c (find_command_name_length): Recognize | as
6523 a single character command.
6524
6525 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6526
6527 * gdbcmd.h (execute_command_to_ui_file): New declaration.
6528 top.c (execute_command_to_ui_file): New function, mostly a copy
6529 of execute_command_to_string.
6530 (execute_command_to_string): Implement by calling
6531 execute_command_to_ui_file.
6532
6533 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6534
6535 * top.h (saved_command_line): Remove declaration.
6536 * top.c (previous_saved_command_line, previous_repeat_arguments):
6537 New variables.
6538 (saved_command_line): Make static, define together with other
6539 'repeat variables'.
6540 (dont_repeat): Clear repeat_arguments.
6541 (repeat_previous, get_saved_command_line, save_command_line):
6542 New functions.
6543 (gdb_init): Initialize saved_command_line
6544 and previous_saved_command_line.
6545 * main.c (captured_main_1): Remove saved_command_line initialization.
6546 * event-top.c (handle_line_of_input): Update to use
6547 the new 'repeat' related functions instead of direct access to
6548 saved_command_line.
6549 * command.h (repeat_previous, get_saved_command_line,
6550 save_command_line): New declarations.
6551 (dont_repeat): Add comment.
6552
6553 2019-05-30 Tom Tromey <tromey@adacore.com>
6554
6555 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6556 Fix comment.
6557 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6558
6559 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6560
6561 PR cli/24587
6562 * completer.c (complete): Initialize variable word.
6563
6564 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6565
6566 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6567 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6568 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6569 'body' is NULL to the outter 'if', protecting the '!is_define'
6570 situation as well.
6571
6572 2019-05-29 Tom Tromey <tromey@adacore.com>
6573
6574 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6575 (dwarf_unknown): New function.
6576 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6577 (dwarf_type_encoding_name): Use dwarf_unknown.
6578
6579 2019-05-29 Tom Tromey <tromey@adacore.com>
6580
6581 PR c++/20020:
6582 * cp-valprint.c (cp_print_value_fields): Call
6583 cp_print_static_field inside "try".
6584
6585 2019-05-29 Tom Tromey <tromey@adacore.com>
6586
6587 * inflow.c (struct terminal_info): Add default operator=.
6588 * configure: Rebuild.
6589 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6590 -Wdeprecated-copy-dtor, -Wredundant-move.
6591
6592 2019-05-29 Tom Tromey <tromey@adacore.com>
6593
6594 * NEWS: Add entry.
6595 * infcmd.c (print_return_value_1): Handle finish_print
6596 option.
6597 (show_print_finish): New function.
6598 (_initialize_infcmd): Add "set/show print finish" commands.
6599 * valprint.c (user_print_options): Initialize new member.
6600 * valprint.h (struct value_print_options) <finish_print>: New
6601 member.
6602
6603 2019-05-28 Tom Tromey <tromey@adacore.com>
6604
6605 * ada-lang.c (ada_remove_Xbn_suffix)
6606 (find_old_style_renaming_symbol)
6607 (parse_old_style_renaming): Remove.
6608 (ada_find_renaming_symbol): Don't call
6609 find_old_style_renaming_symbol.
6610 (ada_is_renaming_symbol): Rename from
6611 ada_find_renaming_symbol. Remove "block" parameter. Return
6612 bool. Now static.
6613 (ada_read_var_value): Update and simplify.
6614 * ada-exp.y (write_var_or_type): Remove old code.
6615
6616 2019-05-28 Alan Hayward <alan.hayward@arm.com>
6617
6618 * event-top.c: Remove include comment.
6619 * inflow.c (class scoped_ignore_sigttou): Move from here...
6620 * inflow.h (class scoped_ignore_sigttou): ...to here.
6621 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6622 * top.c: Remove include comment.
6623
6624 2019-05-27 Tom Tromey <tom@tromey.com>
6625
6626 * NEWS: Fix typo.
6627
6628 2019-05-22 Tom Tromey <tromey@adacore.com>
6629
6630 * target.c (target_follow_exec): Constify parameter.
6631 * target-delegates.c: Rebuild.
6632 * remote.c (remote_target::follow_exec): Constify parameter.
6633 * infrun.c (follow_exec): Constify parameter.
6634 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6635 (target_follow_exec): Likewise.
6636
6637 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6638
6639 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6640 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6641
6642 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6643
6644 * NEWS: Add debugredirect and testsuite sections.
6645
6646 2019-05-22 Simon Cook <simon.cook@embecosm.com>
6647
6648 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6649 target descriptions using exclusively floating point register name
6650 aliases.
6651
6652 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6653
6654 PR gdb/18644:
6655 * f-lang.c (build_fortran_types): Handle the case where
6656 gdbarch_floatformat_for_type returns a nullptr.
6657
6658 2019-05-21 Tom de Vries <tdevries@suse.de>
6659
6660 PR cli/24587
6661 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6662
6663 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6664
6665 PR gdb/18644:
6666 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6667 16-byte floats.
6668 * i386-tdep.c (i386_floatformat_for_type): Use
6669 floatformats_ia64_quad for the 16-byte floating point component
6670 within a fortran 32-byte complex number.
6671
6672 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6673
6674 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6675 delete default constructor.
6676 (find_partial_die): Update to return const struct.
6677 (partial_die_parent_scope): Move variable declaration into scope
6678 of its use and change its type to auto.
6679 (guess_partial_die_structure_name): Likewise.
6680 (partial_die_info::fixup): Likewise.
6681
6682 2019-05-17 Tom Tromey <tromey@adacore.com>
6683
6684 * source.c (find_and_open_source): Remove cast.
6685
6686 2019-05-17 Tom Tromey <tromey@adacore.com>
6687
6688 * annotate.c (annotate_source): Make "filename" const.
6689 * annotate.h (annotate_source): Use const.
6690
6691 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6692
6693 * disasm.c (set_disassembler_options): Send errors to stderr.
6694
6695 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6696
6697 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6698 (cli_interp_base::set_logging): Check debug_redirect.
6699 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6700 * cli/cli-logging.c (debug_redirect): Add static variable.
6701 (pop_output_files): Add default param.
6702 (handle_redirections): Print debug setting.
6703 (show_logging_command): Likewise.
6704 (_initialize_cli_logging): Add debugredirect command.
6705 * interps.c (current_interp_set_logging): Add debug_redirect
6706 parameter.
6707 * interps.h (set_logging): Add debug_redirect parameter.
6708 (current_interp_set_logging): Likewise.
6709 * mi/mi-common.h: Likewise.
6710 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6711
6712 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6713 Tom Tromey <tromey@adacore.com>
6714
6715 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6716 directly.
6717 * cli/cli-interp.h (make_logging_output): Remove declaration.
6718 * cli/cli-logging.c (make_logging_output): Remove function.
6719 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6720 directly.
6721 * ui-file.c (tee_file::tee_file): Remove bools.
6722 (tee_file::~tee_file): Remove deletes.
6723 * ui-file.h (tee_file): Remove bools.
6724
6725 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6726
6727 * mi/mi-cmds.h (mi_cmd_complete): New function.
6728 * mi/mi-main.c (mi_cmd_complete): Likewise.
6729 * mi/mi-cmds.c: Define new MI command -complete.
6730 * NEWS: Mention new -complete command.
6731
6732 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6733
6734 * completer.h (complete): New function.
6735 * completer.c (complete): Likewise.
6736 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6737 function defined in completer.h.
6738
6739 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6740
6741 * MAINTAINERS (Write After Approval): Add myself.
6742
6743 2019-05-17 Tom de Vries <tdevries@suse.de>
6744
6745 PR gdb/24094
6746 * dwarf2read.c (struct cu_partial_die_info): New struct.
6747 (find_partial_die): Return cu_partial_die_info.
6748 (partial_die_parent_scope, guess_partial_die_structure_name)
6749 (partial_die_info::fixup): Handle new return type of find_partial_die.
6750
6751 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6752
6753 PR breakpoints/24541
6754 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6755 "std::string", simplifying the algorithm.
6756
6757 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6758
6759 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6760 (stap_static_probe_ops::get_probes): Likewise.
6761
6762 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6763
6764 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6765 '-')" and "else if".
6766 (stap_parse_single_operand): Join checks for
6767 "gdbarch_stap_parse_special_token_p" and
6768 "gdbarch_stap_parse_special_token" in the same "if" statement.
6769 Invert check when verifying for operation on register
6770 displacement.
6771
6772 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6773
6774 * stap-probe.c (stap_get_opcode): Update comment.
6775 (stap_get_expected_argument_type): Likewise.
6776 (handle_stap_probe): Likewise.
6777
6778 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6779
6780 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6781 return type to 'bool'. Adjust comment. Use 'bool' when
6782 appropriate.
6783 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6784 * stap-probe.c (stap_parse_argument_1): Likewise.
6785 (stap_is_operator): Likewise.
6786 (stap_is_generic_prefix): Likewise.
6787 (stap_is_register_prefix): Likewise.
6788 (stap_is_register_indirection_prefix): Likewise.
6789 (stap_is_integer_prefix): Likewise.
6790 (stap_generic_check_suffix): Likewise.
6791 (stap_check_integer_suffix): Likewise.
6792 (stap_check_register_suffix): Likewise.
6793 (stap_check_register_indirection_suffix): Likewise.
6794 (stap_parse_register_operand): Likewise.
6795 (stap_parse_single_operand): Likewise.
6796 (stap_parse_argument_1): Likewise.
6797 (stap_probe::get_argument_count): Likewise.
6798 (stap_is_operator): Likewise.
6799
6800 2019-05-16 Tom Tromey <tromey@adacore.com>
6801
6802 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6803 keyword to foreach.
6804
6805 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
6806
6807 * linux-thread-db.c (try_thread_db_load_1): Change return type
6808 to bool.
6809 (try_thread_db_load): Likewise.
6810 (try_thread_db_load_from_pdir_1): Likewise.
6811 (try_thread_db_load_from_pdir): Likewise.
6812 (try_thread_db_load_from_sdir): Likewise.
6813 (try_thread_db_load_from_dir): Likewise.
6814 (thread_db_load_search): Likewise.
6815 (has_libpthread): Likewise.
6816 (thread_db_load): Likewise.
6817
6818 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6819
6820 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6821 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6822 NULL, and complain/return if that's the case.
6823
6824 2019-05-15 John Darrington <john@darrington.wattle.id.au>
6825
6826 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6827 (advance, posn, abstract_read_memory): New functions.
6828 [struct mem_read_abstraction]: New struct.
6829 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6830
6831 2019-05-14 Tom Tromey <tromey@adacore.com>
6832
6833 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6834 value is not lval_memory.
6835
6836 2019-05-14 Tom Tromey <tromey@adacore.com>
6837
6838 * solib.c (info_sharedlibrary_command): Style the file name.
6839
6840 2019-05-14 Alan Hayward <alan.hayward@arm.com>
6841
6842 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6843 (aarch64_vnv_type): Likewise.
6844 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6845 * common/tdesc.c: Likewise.
6846 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6847 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6848 * features/aarch64-fpu.xml: Add ieee half view.
6849 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6850 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6851 * gdbtypes.h (struct builtin_type): Likewise.
6852 (struct objfile_type): Likewise.
6853
6854 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
6855
6856 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6857 typo.
6858 * location.h (string_to_event_location): Likewise.
6859
6860 2019-05-11 Joel Brobecker <brobecker@adacore.com>
6861
6862 GDB 8.3 released.
6863
6864 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
6865
6866 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6867 New variable declaration.
6868 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6869 New variable.
6870 (print_one_breakpoint): Use ui_out::test_flags and new global
6871 variable to compute use_fixed_output.
6872 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6873 Remove.
6874 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6875 (mi_multi_location_breakpoint_output_fixed): Remove.
6876 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6877 new variable.
6878 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6879 fix_multi_location_breakpoint_output flag if version >= 3.
6880 * ui-out.h (enum ui_out_flag)
6881 <fix_multi_location_breakpoint_output>: New enumerator.
6882
6883 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
6884
6885 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6886
6887 2019-05-10 Tom Tromey <tromey@adacore.com>
6888
6889 * ada-lang.c (catch_ada_completer): New function.
6890 (_initialize_ada_language): Use it.
6891
6892 2019-05-10 Tom Tromey <tromey@adacore.com>
6893
6894 * thread.c (print_thread_info): Make "requested_threads" const.
6895 * gdbthread.h (print_thread_info): Make "requested_threads"
6896 const.
6897 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6898 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6899
6900 2019-05-08 Tom Tromey <tom@tromey.com>
6901
6902 * gdbtypes.c (objfile_type_data): Change type.
6903 (objfile_type, _initialize_gdbtypes): Update.
6904
6905 2019-05-08 Tom Tromey <tom@tromey.com>
6906
6907 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6908 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6909 (_initialize_dwarf2_frame): Update.
6910
6911 2019-05-08 Tom Tromey <tom@tromey.com>
6912
6913 * objc-lang.c (objc_objfile_data): Change type.
6914 (find_methods): Update.
6915 (_initialize_objc_lang): Remove.
6916
6917 2019-05-08 Tom Tromey <tom@tromey.com>
6918
6919 * stabsread.c (rs6000_builtin_type_data): Change type.
6920 (rs6000_builtin_type, _initialize_stabsread): Update.
6921
6922 2019-05-08 Tom Tromey <tom@tromey.com>
6923
6924 * mips-tdep.c (mips_pdr_data): Remove.
6925 (_initialize_mips_tdep): Update.
6926
6927 2019-05-08 Tom Tromey <tom@tromey.com>
6928
6929 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6930 (hppa_init_objfile_priv_data, read_unwind_info)
6931 (find_unwind_entry, _initialize_hppa_tdep): Update.
6932
6933 2019-05-08 Tom Tromey <tom@tromey.com>
6934
6935 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6936 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6937 on obstack.
6938 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6939
6940 2019-05-08 Tom Tromey <tom@tromey.com>
6941
6942 * mdebugread.c (basic_type_data): Change type.
6943 (basic_type, _initialize_mdebugread): Update.
6944
6945 2019-05-08 Tom Tromey <tom@tromey.com>
6946
6947 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6948
6949 2019-05-08 Tom Tromey <tom@tromey.com>
6950
6951 * nto-tdep.c (nto_inferior_data_reg): Change type.
6952 (nto_inferior_data): Update.
6953 (nto_inferior_data_cleanup, nto_new_inferior_data)
6954 (_initialize_nto_tdep): Remove.
6955 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6956
6957 2019-05-08 Tom Tromey <tom@tromey.com>
6958
6959 * ada-lang.c (struct ada_inferior_data): Add initializers.
6960 (ada_inferior_data): Change type.
6961 (ada_inferior_data_cleanup): Remove.
6962 (get_ada_inferior_data, ada_inferior_exit)
6963 (struct ada_pspace_data): Add initializers, destructor.
6964 (ada_pspace_data_handle): Change type.
6965 (get_ada_pspace_data): Update.
6966 (ada_pspace_data_cleanup): Remove.
6967
6968 2019-05-08 Tom Tromey <tom@tromey.com>
6969
6970 * coffread.c (struct coff_symfile_info): Add initializers.
6971 (coff_objfile_data_key): Move lower. Change type.
6972 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6973 Update.
6974 (coff_free_info): Remove.
6975
6976 2019-05-08 Tom Tromey <tom@tromey.com>
6977
6978 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6979 (fbsd_pspace_data_handle): Move lower. Change type.
6980 (get_fbsd_pspace_data): Update.
6981 (fbsd_pspace_data_cleanup): Remove.
6982 (_initialize_fbsd_tdep): Update.
6983
6984 2019-05-08 Tom Tromey <tom@tromey.com>
6985
6986 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6987 (get_ada_tasks_pspace_data): Update.
6988 (ada_tasks_pspace_data_cleanup): Remove.
6989 (_initialize_tasks): Update.
6990 (ada_tasks_inferior_data_handle): Change type.
6991 (get_ada_tasks_inferior_data): Update.
6992 (ada_tasks_inferior_data_cleanup): Remove.
6993 (struct ada_tasks_pspace_data): Add initializers.
6994
6995 2019-05-08 Tom Tromey <tom@tromey.com>
6996
6997 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6998 * symfile-debug.c (debug_sym_get_probes): Change type.
6999 * stap-probe.c (handle_stap_probe):
7000 (stap_static_probe_ops::get_probes): Change type.
7001 * probe.h (class static_probe_ops) <get_probes>: Change type.
7002 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7003 (parse_probes_in_pspace): Update.
7004 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7005 Update.
7006 (any_static_probe_ops::get_probes): Change type.
7007 * elfread.c (elfread_data): New typedef.
7008 (probe_key): Change type.
7009 (elf_get_probes): Likewise. Update.
7010 (probe_key_free): Remove.
7011 (_initialize_elfread): Update.
7012 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7013 Change type.
7014 (dtrace_process_dof_probe, dtrace_process_dof)
7015 (dtrace_static_probe_ops::get_probe): Change type.
7016
7017 2019-05-08 Tom Tromey <tom@tromey.com>
7018
7019 * xcoffread.c (struct xcoff_symfile_info): Rename from
7020 coff_symfile_info. Add initializers.
7021 (xcoff_objfile_data_key): Move lower. Change type.
7022 (XCOFF_DATA): Rewrite.
7023 (xcoff_free_info): Remove.
7024 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7025 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7026 (xcoff_initial_scan): Update.
7027
7028 2019-05-08 Tom Tromey <tom@tromey.com>
7029
7030 * solib-svr4.c (struct svr4_info): Add initializers and
7031 destructor.
7032 <probes_table>: Now an htab_up.
7033 (solib_svr4_pspace_data): Change type.
7034 (free_probes_table): Simplify.
7035 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7036 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7037 (probes_table_remove_objfile_probes, register_solib_event_probe)
7038 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7039 (_initialize_svr4_solib): Update.
7040
7041 2019-05-08 Tom Tromey <tom@tromey.com>
7042
7043 * remote.c (remote_pspace_data): Change type.
7044 (remote_pspace_data_cleanup): Remove.
7045 (get_remote_exec_file, set_pspace_remote_exec_file)
7046 (_initialize_remote): Update.
7047
7048 2019-05-08 Tom Tromey <tom@tromey.com>
7049
7050 * breakpoint.c (breakpoint_objfile_key): Change type.
7051 (get_breakpoint_objfile_data): Update.
7052 (free_breakpoint_objfile_data): Remove.
7053 (_initialize_breakpoint): Update.
7054
7055 2019-05-08 Tom Tromey <tom@tromey.com>
7056
7057 * linux-tdep.c (struct linux_info): Add initializers.
7058 (linux_inferior_data): Move. Change type.
7059 (invalidate_linux_cache_inf): Update.
7060 (linux_inferior_data_cleanup): Remove.
7061 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7062
7063 2019-05-08 Tom Tromey <tom@tromey.com>
7064
7065 * auxv.c (auxv_inferior_data): Move. Change type.
7066 (auxv_inferior_data_cleanup): Remove.
7067 (invalidate_auxv_cache_inf): Rewrite.
7068 (get_auxv_inferior_data, _initialize_auxv): Update.
7069
7070 2019-05-08 Tom Tromey <tom@tromey.com>
7071
7072 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7073 (symfile_debug_objfile_data_key): Change type.
7074 (symfile_debug_installed, debug_qf_has_symbols)
7075 (debug_qf_find_last_source_symtab)
7076 (debug_qf_forget_cached_source_info)
7077 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7078 (debug_qf_print_stats, debug_qf_dump)
7079 (debug_qf_expand_symtabs_for_function)
7080 (debug_qf_expand_all_symtabs)
7081 (debug_qf_expand_symtabs_with_fullname)
7082 (debug_qf_map_matching_symbols)
7083 (debug_qf_expand_symtabs_matching)
7084 (debug_qf_find_pc_sect_compunit_symtab)
7085 (debug_qf_map_symbol_filenames)
7086 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7087 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7088 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7089 (debug_sym_read_linetable, debug_sym_relocate): Update.
7090 (symfile_debug_free_objfile): Remove.
7091 (install_symfile_debug_logging, _initialize_symfile_debug):
7092 Update.
7093
7094 2019-05-08 Tom Tromey <tom@tromey.com>
7095
7096 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7097 allocate_on_obstack.
7098 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7099 (get_dwarf2_per_objfile): Update.
7100 (set_dwarf2_per_objfile): Remove.
7101 (dwarf2_has_info, dwarf2_get_section_info): Update.
7102 (dwarf2_free_objfile): Remove.
7103 (_initialize_dwarf2_read): Update.
7104
7105 2019-05-08 Tom Tromey <tom@tromey.com>
7106
7107 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7108 initializers.
7109 <unsupported_script_warning_printed,
7110 script_not_found_warning_printed>: Now bool.
7111 (auto_load_pspace_data): Change type.
7112 (~auto_load_pspace_info): Rename from
7113 auto_load_pspace_data_cleanup.
7114 (get_auto_load_pspace_data, init_loaded_scripts_info)
7115 (clear_section_scripts, maybe_print_unsupported_script_warning)
7116 (maybe_print_script_not_found_warning, _initialize_auto_load):
7117 Update.
7118
7119 2019-05-08 Tom Tromey <tom@tromey.com>
7120
7121 * objfiles.c (objfile_pspace_info): Add destructor and
7122 initializers.
7123 (objfiles_pspace_data): Change type.
7124 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7125 (get_objfile_pspace_data): Update.
7126 (objfiles_bfd_data): Change type.
7127 (get_objfile_bfd_data): Update.
7128 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7129
7130 2019-05-08 Tom Tromey <tom@tromey.com>
7131
7132 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7133 Change type.
7134 (get_catch_syscall_inferior_data): Update.
7135 (catch_syscall_inferior_data_cleanup): Remove.
7136 (_initialize_break_catch_syscall): Update.
7137
7138 2019-05-08 Tom Tromey <tom@tromey.com>
7139
7140 * inflow.c (struct terminal_info): Add destructor and
7141 initializers.
7142 (inflow_inferior_data): Change type.
7143 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7144 (get_inflow_inferior_data, inflow_inferior_exit)
7145 (swap_terminal_info, _initialize_inflow): Update.
7146
7147 2019-05-08 Tom Tromey <tom@tromey.com>
7148
7149 * target-dcache.c (target_dcache_cleanup): Remove.
7150 (target_dcache_aspace_key): Change type.
7151 (target_dcache_init_p, target_dcache_invalidate)
7152 (target_dcache_get, target_dcache_get_or_init)
7153 (_initialize_target_dcache): Update.
7154 * dcache.h (struct dcache_deleter): New.
7155
7156 2019-05-08 Tom Tromey <tom@tromey.com>
7157
7158 * symtab.c (struct symbol_cache): Add destructor and
7159 initializers.
7160 (symbol_cache_key): Move. Change type.
7161 (make_symbol_cache, free_symbol_cache): Remove.
7162 (get_symbol_cache): Update.
7163 (symbol_cache_cleanup): Remove.
7164 (ALL_PSPACES, symbol_cache_flush)
7165 (maintenance_print_symbol_cache)
7166 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7167 Update.
7168
7169 2019-05-08 Tom Tromey <tom@tromey.com>
7170
7171 * symtab.c (struct main_info): Add destructor and initializers.
7172 (main_progspace_key): Move. Change type.
7173 (get_main_info): Update.
7174 (main_info_cleanup): Remove.
7175 (_initialize_symtab): Update.
7176
7177 2019-05-08 Tom Tromey <tom@tromey.com>
7178
7179 * registry.h (DECLARE_REGISTRY): Define the _key class.
7180
7181 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7182
7183 * NEWS: Merge two 'New commands' sections.
7184
7185 2019-05-08 Joel Brobecker <brobecker@adacore.com>
7186
7187 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7188 parameter and use Ada language definition instead.
7189 (ada_val_print_ptr): Remove unused language parameter.
7190 (ada_val_print_num): Remove language parameter and use Ada language
7191 definition instead.
7192 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7193 parameter.
7194 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7195 parameter and use Ada language definition instead.
7196 (ada_val_print_1): Update all ada_val_print_xxx calls.
7197 Remove language parameter.
7198 (ada_val_print): Update ada_val_print_1 call.
7199
7200 2019-05-08 Tom Tromey <tromey@adacore.com>
7201
7202 * remote.c (remote_hw_watchpoint_limit)
7203 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7204 Now static.
7205
7206 2019-05-08 Tom Tromey <tromey@adacore.com>
7207
7208 * maint.c (_initialize_maint_cmds): Move initialization code to
7209 remote.c.
7210 (watchdog, show_watchdog): Move to remote.c.
7211 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7212 "watchdog" static.
7213 (_initialize_remote): Move initialization code from maint.c.
7214 * defs.h (watchdog): Don't declare.
7215
7216 2019-05-08 Tom Tromey <tromey@adacore.com>
7217
7218 * tui/tui-interp.c: Include main.h.
7219 * interps.c: Include main.h.
7220 * main.h (interpreter_p): Declare.
7221 * defs.h (interpreter_p): Don't declare.
7222
7223 2019-05-08 Tom Tromey <tromey@adacore.com>
7224
7225 * dwarf2loc.c: Include dwarf2read.h.
7226 * defs.h (read_unsigned_leb128): Don't declare.
7227 * dwarf2read.h (read_unsigned_leb128): Declare.
7228
7229 2019-05-08 Tom Tromey <tromey@adacore.com>
7230
7231 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7232 method.
7233
7234 2019-05-08 Tom Tromey <tromey@adacore.com>
7235
7236 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7237 when no wrap column is set.
7238
7239 2019-05-08 Tom Tromey <tromey@adacore.com>
7240
7241 * c-lang.c (c_get_string): Handle non-C-style arrays.
7242
7243 2019-05-08 Tom Tromey <tromey@adacore.com>
7244
7245 * typeprint.c (print_offset_data::update): Print the bit offset,
7246 not the number of bits remaining.
7247
7248 2019-05-08 Tom Tromey <tromey@adacore.com>
7249
7250 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7251 padding at end of comment.
7252
7253 2019-05-08 Tom Tromey <tromey@adacore.com>
7254
7255 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7256 Compare main types.
7257
7258 2019-05-06 Tom Tromey <tom@tromey.com>
7259
7260 * common/scoped_mmap.c: Include common-defs.h.
7261 * common/scoped_mmap.h: Don't include config.h.
7262
7263 2019-05-04 Tom Tromey <tom@tromey.com>
7264
7265 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7266 (struct aarch64_call_info): Add initializers.
7267 <si>: Now a std::vector.
7268 (pass_on_stack, aarch64_push_dummy_call): Update.
7269
7270 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
7271 Tom Tromey <tom@tromey.com>
7272
7273 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7274 (ppc_threads): Now a std::vector. Now static.
7275 (hwdebug_find_thread_points_by_tid)
7276 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7277 Update.
7278
7279 2019-05-04 Tom Tromey <tom@tromey.com>
7280
7281 * arc-tdep.c (arc_tdesc_init): Return bool.
7282
7283 2019-05-04 Tom Tromey <tom@tromey.com>
7284
7285 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7286 Use gdb_assert_not_reached.
7287
7288 2019-05-04 Tom Tromey <tom@tromey.com>
7289
7290 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7291 "false".
7292
7293 2019-05-04 Tom Tromey <tom@tromey.com>
7294
7295 * arc-tdep.c (arc_tdesc_init): Use bool.
7296
7297 2019-05-04 Tom Tromey <tom@tromey.com>
7298
7299 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7300
7301 2019-05-04 Tom Tromey <tom@tromey.com>
7302
7303 * cli/cli-cmds.c (valid_command_p): Return bool.
7304
7305 2019-05-04 Tom Tromey <tom@tromey.com>
7306
7307 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7308 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7309
7310 2019-05-04 Raul Tambre <raul@tambre.ee>
7311
7312 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7313 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7314 operator for comparison.
7315
7316 2019-05-04 Tom Tromey <tom@tromey.com>
7317
7318 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7319 (lookup_partial_symbol, print_partial_symbols)
7320 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7321 (psymbol_compare): Update.
7322 (add_psymbol_to_bcache): Clear the entire psymbol.
7323 (maintenance_check_psymtabs): Update.
7324 * psympriv.h (struct partial_symbol): Don't derive from
7325 general_symbol_info.
7326 <obj_section, unrelocated_address, address,
7327 set_unrelocated_address>: Update.
7328 <ginfo>: New member.
7329 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7330 (debug_names::write_psymbols): Update.
7331
7332 2019-05-04 Tom de Vries <tdevries@suse.de>
7333
7334 * contrib/cc-with-tweaks.sh: Support -n arg.
7335
7336 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7337
7338 * corelow.c (core_target::detach): Ensure frame cache and
7339 register caches are cleared.
7340 inferior.c (exit_inferior_1): Likewise.
7341
7342 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7343 Tom Tromey <tom@tromey.com>
7344
7345 * dictionary.c (collate_pending_symbols_by_language): Remove
7346 "struct" from foreach.
7347 * symtab.c (lookup_global_symbol_from_objfile)
7348 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7349 foreach.
7350 * ser-tcp.c (net_open): Remove "struct" from foreach.
7351 * objfiles.c (objfile_relocate, objfile_rebase)
7352 (objfile_has_symbols): Remove "struct" from foreach.
7353 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7354 from foreach.
7355 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7356 foreach.
7357 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7358 "struct" from foreach.
7359 * ada-lang.c (create_excep_cond_exprs)
7360 (ada_exception_catchpoint_cond_string): Remove "struct" from
7361 foreach.
7362
7363 2019-05-03 Tom Tromey <tromey@adacore.com>
7364
7365 * ada-exp.y (convert_char_literal): Check suffix of each
7366 enumerator.
7367
7368 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7369
7370 PR ada/21406:
7371 * ada-exp.y (yywrap): Don't define.
7372 * ada-lex.l (%option): Add noyywrap
7373 (yywrap): Remove.
7374
7375 2019-05-03 Eli Zaretskii <eliz@gnu.org>
7376
7377 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7378 _WIN32_WINNT to the XP level, unless already defined to a higher
7379 level.
7380
7381 * unittests/parse-connection-spec-selftests.c:
7382 * ser-tcp.c:
7383 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7384 override.
7385
7386 * symfile.c (find_separate_debug_file): Remove colon from the
7387 drive spec of DOS/Windows file names of the target, so that the
7388 file name produced from DEBUGDIR and the target's directory will
7389 be valid on DOS/Windows systems.
7390
7391 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7392
7393 * rust-lang.c (val_print_struct): Handle printing structures
7394 containing strings.
7395
7396 2019-05-02 Tom Tromey <tromey@adacore.com>
7397
7398 * valarith.c (_initialize_valarith): Remove.
7399
7400 2019-05-01 Tom Tromey <tromey@adacore.com>
7401
7402 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7403 bitfields.
7404
7405 2019-05-01 Tom Tromey <tromey@adacore.com>
7406
7407 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7408 for big-endian copies.
7409
7410 2019-04-30 Ali Tamur <tamur@google.com>
7411 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7412 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7413 (read_3_bytes): New function.
7414
7415 2019-04-30 Joel Brobecker <brobecker@adacore.com>
7416
7417 * windows-nat.c (main_thread_id): Delete.
7418 (handle_output_debug_string): Replace main_thread_id by
7419 current_event.dwThreadId.
7420 (fake_create_process): Likewise.
7421 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7422 Do not set main_thread_id.
7423 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7424 current_event.dwThreadId.
7425 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7426
7427 2019-04-30 Joel Brobecker <brobecker@adacore.com>
7428
7429 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7430 Use current_event.dwThreadId instead of main_thread_id.
7431
7432 2019-04-30 Tom Tromey <tromey@adacore.com>
7433
7434 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7435 (create_excep_cond_exprs): Iterate over program spaces.
7436 (ada_exception_catchpoint_cond_string): Examine all minimal
7437 symbols for exception types.
7438
7439 2019-04-30 Tom Tromey <tromey@adacore.com>
7440
7441 PR c++/24470:
7442 * dwarf2read.c (process_structure_scope): Handle case where type
7443 has template parameters but no symbol was created.
7444
7445 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7446 Chris January <chris.january@arm.com>
7447
7448 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7449 qualifier.
7450 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7451
7452 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7453
7454 * f-typeprint.c (f_print_type): Update rules for printing
7455 whitespace.
7456 (f_type_print_varspec_suffix): Likewise.
7457
7458 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7459 Chris January <chris.january@arm.com>
7460
7461 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7462 function arguments.
7463
7464 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7465
7466 * f-lang.c (build_fortran_types): Change name of void type to
7467 lower case.
7468 * f-typeprint.c (f_type_print_base): Print the name of the void
7469 type, rather than a fixed string.
7470 * f-valprint.c (f_decorations): Use lower case void string.
7471
7472 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7473 Chris January <chris.january@arm.com>
7474
7475 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7476 types for Fortran.
7477
7478 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7479 Chris January <chris.january@arm.com>
7480 David Lecomber <david.lecomber@arm.com>
7481
7482 * f-exp.y (BINOP_INTRINSIC): New token.
7483 (exp): New parser rule handling BINOP_INTRINSIC.
7484 (f77_keywords): Add new builtin procedures.
7485 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7486 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7487 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7488 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7489 (print_unop_subexp_f): New function.
7490 (print_binop_subexp_f): New function.
7491 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7492 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7493 (dump_subexp_body_f): Likewise.
7494 (operator_check_f): Likewise.
7495 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7496 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7497
7498 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7499
7500 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7501 UNOP_KIND.
7502 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7503 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7504 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7505 (operator_length_f): New fuction.
7506 (print_subexp_f): New function.
7507 (op_name_f): New function.
7508 (dump_subexp_body_f): New function.
7509 (operator_check_f): New function.
7510 (exp_descriptor_f): Replace standard expression handling functions
7511 with new functions.
7512 * gdb/fortran-operator.def: New file.
7513 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7514 * gdb/std-operator.def: Remove UNOP_KIND.
7515
7516 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7517
7518 * std-operator.def: Remove unbalanced, stray double quote
7519 character.
7520
7521 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7522 Chris January <chris.january@arm.com>
7523 Daniel Everett <daniel.everett@arm.com>
7524 Nick Forrington <nick.forrington@arm.com>
7525 Richard Bunt <richard.bunt@arm.com>
7526
7527 * cp-valprint.c (cp_print_value_fields): Allow an additional level
7528 of depth when printing anonymous structs or unions.
7529 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7530 Don't print either the top-level value, or the children if the
7531 max-depth is exceeded.
7532 (ppscm_print_children): When printing the key of a map, allow one
7533 extra level of depth.
7534 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7535 print either the top-level value, or the children if the max-depth
7536 is exceeded.
7537 (print_children): When printing the key of a map, allow one extra
7538 level of depth.
7539 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7540 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7541 (user_print_options): Initialise max_depth field.
7542 (val_print_scalar_or_string_type_p): New function.
7543 (val_print): Check to see if the max depth has been reached.
7544 (val_print_check_max_depth): Define new function.
7545 (show_print_max_depth): New function.
7546 (_initialize_valprint): Add 'print max-depth' option.
7547 * valprint.h (struct value_print_options) <max_depth>: New field.
7548 (val_print_check_max_depth): Declare new function.
7549 * NEWS: Document new feature.
7550
7551 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7552
7553 * ada-lang.c (ada_language_defn): Initialise new field.
7554 * c-lang.c (c_is_string_type_p): New function.
7555 (c_language_defn): Initialise new field.
7556 (cplus_language_defn): Initialise new field.
7557 (asm_language_defn): Initialise new field.
7558 (minimal_language_defn): Initialise new field.
7559 * c-lang.h (c_is_string_type_p): Declare new function.
7560 * d-lang.c (d_language_defn): Initialise new field.
7561 * f-lang.c (f_is_string_type_p): New function.
7562 (f_language_defn): Initialise new field.
7563 * go-lang.c (go_is_string_type_p): New function.
7564 (go_language_defn): Initialise new field.
7565 * language.c (default_is_string_type_p): New function.
7566 (unknown_language_defn): Initialise new field.
7567 (auto_language_defn): Initialise new field.
7568 * language.h (struct language_defn) <la_is_string_type_p>: New
7569 member variable.
7570 (default_is_string_type_p): Declare new function.
7571 * m2-lang.c (m2_language_defn): Initialise new field.
7572 * objc-lang.c (objc_language_defn): Initialise new field.
7573 * opencl-lang.c (opencl_language_defn): Initialise new field.
7574 * p-lang.c (pascal_is_string_type_p): New function.
7575 (pascal_language_defn): Initialise new field.
7576 * rust-lang.c (rust_is_string_type_p): New function.
7577 (rust_language_defn): Initialise new field.
7578
7579 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7580
7581 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7582 New field.
7583 * ada-lang.c (ada_language_defn): Initialise new field.
7584 * c-lang.c (c_language_defn): Likewise.
7585 (cplus_language_defn): Likewise.
7586 (asm_language_defn): Likewise.
7587 (minimal_language_defn): Likewise.
7588 * d-lang.c (d_language_defn): Likewise.
7589 * f-lang.c (f_language_defn): Likewise.
7590 * go-lang.c (go_language_defn): Likewise.
7591 * language.c (unknown_language_defn): Likewise.
7592 (auto_language_defn): Likewise.
7593 * m2-lang.c (m2_language_defn): Likewise.
7594 * objc-lang.c (objc_language_defn): Likewise.
7595 * opencl-lang.c (opencl_language_defn): Likewise.
7596 * p-lang.c (pascal_language_defn): Likewise.
7597 * rust-lang.c (rust_language_defn): Likewise.
7598
7599 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7600
7601 * ada-lang.c (ada_is_character_type): Change return type to bool.
7602 (ada_is_string_type): Likewise.
7603 * ada-lang.h (ada_is_character_type): Update declaration
7604 (ada_is_string_type): Likewise.
7605
7606 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7607
7608 Support style in 'frame|thread apply'
7609
7610 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7611 * record.c (record_start, record_stop): Update callers of
7612 execute_command_to_string with false.
7613 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7614 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7615 methods.
7616 (class string_file): New constructor with term_out parameter.
7617 Override methods term_out and can_emit_style_escape. New member
7618 term_out.
7619 (class stdio_file): Override can_emit_style_escape.
7620 (class tee_file): Override term_out and can_emit_style_escape.
7621 * utils.h (can_emit_style_escape): Remove.
7622 * utils.c (can_emit_style_escape): Likewise.
7623 Update all callers of can_emit_style_escape (SOMESTREAM) to
7624 SOMESTREAM->can_emit_style_escape.
7625 * source-cache.c (source_cache::get_source_lines): Likewise.
7626 * stack.c (frame_apply_command_count): Call execute_command_to_string
7627 passing the term_out characteristic of the current gdb_stdout.
7628 * thread.c (thr_try_catch_cmd): Likewise.
7629 * top.c (execute_command_to_string): pass term_out parameter
7630 to construct the string_file for the command output.
7631 * ui-file.c (term_cli_styling): New function (most code moved
7632 from utils.c can_emit_style_escape).
7633 (string_file::string_file, string_file::can_emit_style_escape,
7634 stdio_file::can_emit_style_escape, tee_file::term_out,
7635 tee_file::can_emit_style_escape): New functions.
7636
7637 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7638
7639 * NEWS: Mention the new set|show may-call-functions.
7640 * infcall.c (may_call_functions_p): New variable.
7641 (show_may_call_functions_p): New function.
7642 (call_function_by_hand_dummy): Throws an error if not
7643 may-call-functions.
7644 (_initialize_infcall): Call add_setshow_boolean_cmd for
7645 may-call-functions.
7646
7647 2019-04-25 Keith Seitz <keiths@redhat.com>
7648
7649 PR c++/24367
7650 * cp-support.c (inspect_type): Don't attempt substitutions
7651 of symbol with the same name.
7652
7653 2019-04-25 Tom Tromey <tromey@adacore.com>
7654
7655 PR gdb/24475:
7656 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7657 static.
7658
7659 2019-04-25 Tom Tromey <tromey@adacore.com>
7660
7661 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7662 rvalue reference.
7663 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7664 (gdb_xml_parser::parse): Use std::move.
7665 * python/python-internal.h (gdbpy_convert_exception): Take a const
7666 reference.
7667 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7668 std::move.
7669 * python/py-utils.c (gdbpy_convert_exception): Take a const
7670 reference.
7671 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7672 Use std::move.
7673 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7674 Use std::move.
7675 * mi/mi-main.c (mi_print_exception): Take a const reference.
7676 * main.c (handle_command_errors): Take a const reference.
7677 * linespec.c (parse_linespec): Use std::move.
7678 * infcall.c (run_inferior_call): Use std::move.
7679 (call_function_by_hand_dummy): Use std::move.
7680 * exec.c (try_open_exec_file): Use std::move.
7681 * exceptions.h (exception_print, exception_fprintf)
7682 (exception_print_same): Update.
7683 * exceptions.c (print_exception, exception_print)
7684 (exception_fprintf, exception_print_same): Change parameters to
7685 const reference.
7686 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7687 * common/new-op.c: Use std::move.
7688 * common/common-exceptions.h (struct gdb_exception): Add move
7689 constructor.
7690 (struct gdb_exception_error, struct gdb_exception_quit, struct
7691 gdb_quit_bad_alloc): Change constructor to move constructor.
7692 (throw_exception): Change parameter to rvalue reference.
7693 * common/common-exceptions.c (throw_exception): Take rvalue
7694 reference.
7695 * cli/cli-interp.c (safe_execute_command): Use std::move.
7696 * breakpoint.c (insert_bp_location, location_to_sals): Use
7697 std::move.
7698
7699 2019-04-25 Tom Tromey <tromey@adacore.com>
7700
7701 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7702 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7703 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7704 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7705 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7706 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7707 guile/scm-value.c: Use unpack.
7708 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7709 gdbscm_gdb_exception.
7710 (gdbscm_throw_gdb_exception): Likewise.
7711 (struct gdbscm_gdb_exception): New.
7712 (unpack): New function.
7713 (gdbscm_wrap): Use unpack.
7714
7715 2019-04-25 Tom Tromey <tromey@adacore.com>
7716
7717 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7718 (gdb_rl_callback_handler): Use std::move.
7719 * common/common-exceptions.h (struct gdb_exception): Add move
7720 assignment operator.
7721 (throw_exception_sjlj): Change "exception" to const reference.
7722 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7723 (throw_exception_sjlj): Change "exception" to const reference.
7724
7725 2019-04-25 Tom Tromey <tromey@adacore.com>
7726
7727 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7728 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7729 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7730 Update.
7731 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7732 Update.
7733 * mi/mi-interp.c (mi_interp::exec): Update.
7734 * linespec.c (parse_linespec): Update.
7735 * infcall.c (run_inferior_call): Update.
7736 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7737 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7738 (gdbscm_lookup_global_symbol): Update.
7739 * guile/scm-param.c (gdbscm_parameter_value): Update.
7740 * guile/scm-frame.c (gdbscm_frame_read_register)
7741 (gdbscm_frame_read_var): Update.
7742 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7743 * exec.c (try_open_exec_file): Update.
7744 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7745 (gdb_rl_callback_handler): Update.
7746 * common/common-exceptions.h (exception_none): Don't declare.
7747 * common/common-exceptions.c (exception_none): Don't define.
7748 (struct catcher) <exception>: Update.
7749 * cli/cli-interp.c (safe_execute_command): Update.
7750 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7751
7752 2019-04-25 Ali Tamur <tamur@google.com>
7753
7754 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7755 (read_attribute_value): Likewise.
7756 (dwarf2_read_addr_index): Update comment.
7757 (read_str_index): Add DW_FORM_strx.
7758 (dwarf2_string_attr): Likewise.
7759 (dwarf2_const_value_attr): Likewise.
7760 (dump_die_shallow): Likewise.
7761 (dwarf2_fetch_constant_bytes): Likewise.
7762 (skip_form_bytes): Likewise.
7763 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7764
7765 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7766
7767 PR corefiles/11608
7768 PR corefiles/18187
7769 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7770 OFFSET. Verify if current mapping contains an ELF header.
7771 (linux_find_memory_regions_full): Adjust call to
7772 dump_mapping_p.
7773
7774 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7775 Kang Li <kanglictf@gmail.com>
7776
7777 PR gdb/21600
7778
7779 * dwarf2-frame.c (read_initial_length): Be consistent about using
7780 unsigned representation of length.
7781 (decode_frame_entry_1): Likewise. Check for wraparound of
7782 end pointer as well as buffer overflow.
7783
7784 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7785
7786 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7787 "vq".
7788
7789 2019-04-24 Tom Tromey <tromey@adacore.com>
7790
7791 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7792
7793 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7794
7795 * s12z-tdep.c (s12z_unwind_pc): Delete.
7796 (s12z_unwind_sp): Delete.
7797 (s12z_gdbarch_init): Don't register deleted functions with
7798 gdbarch.
7799
7800 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7801
7802 * rl78-tdep.c (rl78_unwind_sp): Delete.
7803 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7804
7805 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7806
7807 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7808 (xstormy16_unwind_pc): Delete.
7809 (xstormy16_dummy_id): Delete.
7810 (xstormy16_gdbarch_init): Don't register deleted functions with
7811 gdbarch.
7812
7813 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7814
7815 * vax-tdep.c (vax_unwind_pc): Delete.
7816 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7817
7818 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7819
7820 * v850-tdep.c (v850_unwind_sp): Delete.
7821 (v850_unwind_pc): Delete.
7822 (v850_dummy_id): Delete.
7823 (v850_gdbarch_init): Don't register deleted functions with
7824 gdbarch.
7825
7826 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7827
7828 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7829 (tilegx_unwind_pc): Delete.
7830 (tilegx_unwind_dummy_id): Delete.
7831 (tilegx_gdbarch_init): Don't register deleted functions with
7832 gdbarch.
7833
7834 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7835
7836 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7837 (tic6x_dummy_id): Delete.
7838 (tic6x_gdbarch_init): Don't register deleted functions with
7839 gdbarch.
7840
7841 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7842
7843 * sparc-tdep.c (sparc_unwind_pc): Delete.
7844 (sparc32_gdbarch_init): Don't register deleted function with
7845 gdbarch.
7846
7847 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7848
7849 * sh-tdep.c (sh_unwind_sp): Delete.
7850 (sh_unwind_pc): Delete.
7851 (sh_dummy_id): Delete.
7852 (sh_gdbarch_init): Don't register deleted functions with
7853 gdbarch.
7854
7855 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7856
7857 * score-tdep.c (score_unwind_sp): Delete.
7858 (score_unwind_pc): Delete.
7859 (score_dummy_id): Delete.
7860 (score_gdbarch_init): Don't register deleted functions with
7861 gdbarch.
7862
7863 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7864
7865 * rx-tdep.c (rx_unwind_pc): Delete.
7866 (rx_unwind_sp): Delete.
7867 (rx_dummy_id): Delete.
7868 (rx_gdbarch_init): Don't register deleted functions with
7869 gdbarch. Update comment.
7870
7871 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7872
7873 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7874 (rs6000_dummy_id): Delete.
7875 (rs6000_gdbarch_init): Don't register deleted functions with
7876 gdbarch.
7877
7878 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7879
7880 * or1k-tdep.c (or1k_dummy_id): Delete.
7881 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7882
7883 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7884
7885 * nios2-tdep.c (nios2_dummy_id): Delete.
7886 (nios2_unwind_sp): Delete.
7887 (nios2_gdbarch_init): Don't register deleted functions with
7888 gdbarch.
7889
7890 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7891
7892 * nds32-tdep.c (nds32_dummy_id): Delete.
7893 (nds32_unwind_pc): Delete.
7894 (nds32_unwind_sp): Delete.
7895 (nds32_gdbarch_init): Don't register deleted functions with
7896 gdbarch.
7897
7898 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7899
7900 * msp430-tdep.c (msp430_unwind_pc): Delete.
7901 (msp430_unwind_sp): Delete.
7902 (msp430_dummy_id): Delete.
7903 (msp430_gdbarch_init): Don't register deleted functions with
7904 gdbarch.
7905
7906 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7907
7908 * moxie-tdep.c (moxie_unwind_sp): Delete.
7909 (moxie_unwind_pc): Delete.
7910 (moxie_dummy_id): Delete.
7911 (moxie_gdbarch_init): Don't register deleted functions with
7912 gdbarch.
7913
7914 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7915
7916 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7917 (mn10300_unwind_pc): Delete.
7918 (mn10300_unwind_sp): Delete.
7919 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7920 mn10300_unwind_sp.
7921 (mn10300_frame_unwind_init): Don't register deleted functions with
7922 gdbarch.
7923
7924 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7925
7926 * mep-tdep.c (mep_unwind_pc): Delete.
7927 (mep_unwind_sp): Delete.
7928 (mep_dummy_id): Delete.
7929 (mep_gdbarch_init): Don't register deleted functions with
7930 gdbarch.
7931
7932 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7933
7934 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7935 (m68hc11_unwind_sp): Delete.
7936 (m68hc11_gdbarch_init): Don't register deleted functions with
7937 gdbarch.
7938
7939 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7940
7941 * m32r-tdep.c (m32r_unwind_sp): Delete.
7942 (m32r_unwind_pc): Delete.
7943 (m32r_dummy_id): Delete.
7944 (m32r_gdbarch_init): Don't register deleted functions with
7945 gdbarch.
7946
7947 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7948
7949 * m32c-tdep.c (m32c_unwind_pc): Delete.
7950 (m32c_unwind_sp): Delete.
7951 (m32c_dummy_id): Delete.
7952 (m32c_gdbarch_init): Don't register deleted functions with
7953 gdbarch.
7954
7955 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7956
7957 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7958 (lm32_unwind_pc): Delete.
7959 (lm32_dummy_id): Delete.
7960 (lm32_gdbarch_init): Don't register deleted functions with
7961 gdbarch.
7962
7963 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7964
7965 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7966 (iq2000_unwind_pc): Delete.
7967 (iq2000_dummy_id): Delete.
7968 (iq2000_gdbarch_init): Don't register deleted functions with
7969 gdbarch.
7970
7971 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7972
7973 * nds32-tdep.c (nds32_type_align): Delete.
7974 (nds32_push_dummy_call): Use type_align instead.
7975
7976 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7977
7978 * arm-tdep.c (arm_type_align): Only handle vector override case.
7979 (arm_push_dummy_call): Use type_align.
7980 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7981
7982 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7983
7984 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7985 case.
7986 (pass_on_stack): Use type_align.
7987 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7988 function.
7989
7990 2019-04-23 Tom Tromey <tromey@adacore.com>
7991
7992 * dwarf2read.c (line_header::file_name_at): Remove unused
7993 overload.
7994
7995 2019-04-23 Tom de Vries <tdevries@suse.de>
7996
7997 PR gdb/24438
7998 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7999 invocation.
8000
8001
8002 2019-03-27 Ali Tamur <tamur@google.com>
8003
8004 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8005 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8006 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8007 (dwarf_expr_context::get_addr_index): Likewise
8008 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8009 (symbol_needs_eval_context::get_addr_index): Likewise
8010 (disassemble_dwarf_expression): Add DW_OP_addrx
8011 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8012 (read_cutu_die_from_dwo): Update comment
8013 (skip_one_die): Add DW_FORM_addrx
8014 (read_attribute_value): Likewise
8015 (var_decode_location): Add DW_OP_addrx
8016 (dwarf2_const_value_attr): Add DW_FORM_addrx
8017 (dump_die_shallow): Likewise
8018 (dwarf2_fetch_constant_bytes): Likewise
8019 (decode_locdesc): Add DW_OP_addrx
8020 (skip_form_bytes): Add DW_FORM_addrx
8021
8022 2019-04-22 Ali Tamur <tamur@google.com>
8023
8024 * MAINTAINERS (Write After Approval): Add self.
8025
8026 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
8027
8028 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8029 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8030 (open_symbol_file_object): Likewise.
8031 (svr4_default_sos): Add info parameter.
8032 (svr4_read_so_list): Likewise.
8033 (svr4_current_sos_direct): Adjust functions calls to pass down
8034 info.
8035 (svr4_current_sos_1): Add info parameter.
8036 (svr4_current_sos): Call get_svr4_info, pass info down to
8037 svr4_current_sos_1.
8038 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8039 get_svr4_info.
8040 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8041 get_svr4_info.
8042 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8043 to get_svr4_info.
8044 (probes_table_remove_objfile_probes): Likewise.
8045 (register_solib_event_probe): Add info parameter.
8046 (solist_update_incremental): Pass info parameter down to
8047 svr4_read_so_list.
8048 (disable_probes_interface): Add info parameter.
8049 (svr4_handle_solib_event): Pass current_program_space to
8050 get_svr4_info. Adjust disable_probes_interface cleanup.
8051 (svr4_create_probe_breakpoints): Add info parameter, pass it
8052 down to register_solib_event_probe.
8053 (svr4_create_solib_event_breakpoints): Add info parameter,
8054 pass it down to svr4_create_probe_breakpoints.
8055 (enable_break): Pass info down to
8056 svr4_create_solib_event_breakpoints.
8057 (svr4_solib_create_inferior_hook): Pass current_program_space to
8058 get_svr4_info.
8059 (svr4_clear_solib): Likewise.
8060
8061 2019-04-22 Pedro Alves <palves@redhat.com>
8062
8063 * solib-svr4.c (svr4_free_objfile_observer): New.
8064 (probe_and_action::objfile): New field.
8065 (probes_table_htab_remove_objfile_probes)
8066 (probes_table_remove_objfile_probes): New functions.
8067 (register_solib_event_probe): Add 'objfile' parameter. Store it
8068 in the new probe_and_action. Don't store the probe in 'lookup'.
8069 (svr4_create_probe_breakpoints): Pass objfile to
8070 register_solib_event_probe.
8071 (_initialize_svr4_solib): Register a free_objfile observer.
8072
8073 2019-04-19 Tom Tromey <tom@tromey.com>
8074
8075 * common/queue.h: Remove.
8076
8077 2019-04-19 Tom Tromey <tom@tromey.com>
8078
8079 * event-loop.c: Don't include "common/queue.h".
8080
8081 2019-04-19 Tom Tromey <tom@tromey.com>
8082
8083 * remote.c (remote_target): Use delete.
8084 * remote-notif.h: Include <list>, not "common/queue.h".
8085 (notif_client_p): Remove typedef.
8086 (remote_notif_state): Add constructor, destructor, initializer.
8087 <notif_queue>: Now a std::list.
8088 (remote_notif_state_xfree): Don't declare.
8089 * remote-notif.c (remote_notif_process, handle_notification)
8090 (remote_notif_state_allocate): Update.
8091 (~remote_notif_state): Rename from remote_notif_state_xfree.
8092
8093 2019-04-19 Tom Tromey <tom@tromey.com>
8094
8095 * symfile.c (reread_symbols): Update.
8096 * objfiles.c (objfile_register_static_link)
8097 (objfile_lookup_static_link): Update
8098 (~objfile) Don't delete static_links.
8099 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8100
8101 2019-04-19 Tom Tromey <tom@tromey.com>
8102
8103 * type-stack.h (struct type_stack) <insert>: Constify string.
8104 * type-stack.c (type_stack::insert): Constify string.
8105 * gdbtypes.h (lookup_template_type): Update.
8106 (address_space_name_to_int): Update.
8107 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8108 const.
8109 (lookup_template_type): Make name const.
8110 * c-exp.y: Update rules.
8111 (lex_one_token, classify_name, classify_inner_name)
8112 (c_print_token): Update.
8113 * p-exp.y: Update rules.
8114 (yylex): Update.
8115 * f-exp.y: Update rules.
8116 (yylex): Update.
8117 * d-exp.y: Update rules.
8118 (lex_one_token, classify_name, classify_inner_name): Update.
8119 * parse.c (write_dollar_variable, copy_name): Return std::string.
8120 * parser-defs.h (copy_name): Change return type.
8121 * m2-exp.y: Update rules.
8122 (yylex): Update.
8123 * go-exp.y (lex_one_token): Update.
8124 Update rules.
8125 (classify_unsafe_function, classify_packaged_name)
8126 (classify_name, yylex): Update.
8127
8128 2019-04-19 Sergei Trofimovich <siarheit@google.com>
8129
8130 * configure.ac: add --enable-source-highlight switch.
8131 * configure: Regenerate.
8132 * top.c (print_gdb_version): plumb --enable-source-highlight
8133 status to "show configuration".
8134
8135 2019-04-19 Tom Tromey <tromey@adacore.com>
8136
8137 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8138 Check ADA_TYPE_P.
8139 (empty_record, ada_template_to_fixed_record_type_1)
8140 (template_to_static_fixed_type)
8141 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8142 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8143 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8144 macros.
8145
8146 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8147
8148 PR symtab/24423:
8149 * source.c (print_source_lines_base): Advance "iter" when a
8150 control character is seen.
8151
8152 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8153
8154 * inferior.h (struct infcall_suspend_state_deleter):
8155 Catch exception in destructor to avoid crash.
8156
8157 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8158
8159 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8160 close to the add_com "shell".
8161
8162 2019-04-18 Tom Tromey <tromey@adacore.com>
8163
8164 * process-stratum-target.h (class process_stratum_target)
8165 <stratum>: Add "final".
8166
8167 2019-04-17 Tom Tromey <tromey@adacore.com>
8168
8169 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8170 against nullptr before use.
8171
8172 2019-04-17 Alan Hayward <alan.hayward@arm.com>
8173
8174 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8175
8176 2019-04-17 Jim Wilson <jimw@sifive.com>
8177 Andrew Burgess <andrew.burgess@embecosm.com>
8178
8179 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8180 code read might fail, assume 4-byte breakpoint in that case.
8181
8182 2019-04-15 Leszek Swirski <leszeks@google.com>
8183
8184 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8185 rather than a hand-rolled POD check when checking for forced MEMORY
8186 classification.
8187
8188 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8189
8190 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8191 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8192 function.
8193 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8194 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8195 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8196 declaration.
8197
8198 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8199
8200 * aarch64-linux-nat.c
8201 (aarch64_linux_nat_target::thread_architecture): Add override.
8202 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8203 each VQ.
8204
8205 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8206
8207 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8208
8209 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8210
8211 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8212 target types of size 96-bits, add some additional comments, and
8213 check that the builtin type we found was the correct size.
8214
8215 2019-04-12 Eli Zaretskii <eliz@gnu.org>
8216
8217 * utils.c (prompt_for_continue): Don't restore the styling at the
8218 end, as applied_style has the wrong value. This fixes styling in
8219 long lists of file names that are interrupted by the "Continue?"
8220 prompt.
8221
8222 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8223
8224 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8225 * c-lang.c (c_language_defn): Likewise.
8226 (cplus_language_defn): Likewise.
8227 (asm_language_defn): Likewise.
8228 (minimal_language_defn): Likewise.
8229 * d-lang.c (d_language_defn): Likewise.
8230 * f-lang.c (f_language_defn): Likewise.
8231 * go-lang.c (go_language_defn): Likewise.
8232 * language.c (unknown_language_defn): Likewise.
8233 (auto_language_defn): Likewise.
8234 * language.h (struct language_defn): Remove la_magic field.
8235 (LANG_MAGIC): Delete.
8236 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8237 * objc-lang.c (objc_language_defn): Likewise.
8238 * opencl-lang.c (opencl_language_defn): Likewise.
8239 * p-lang.c (pascal_language_defn): Likewise.
8240 * rust-lang.c (rust_language_defn): Likewise.
8241
8242 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8243
8244 * riscv-tdep.c (riscv_type_align): New function.
8245 (riscv_type_alignment): Delete.
8246 (riscv_arg_location): Use 'type_align'.
8247 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8248
8249 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8250
8251 * gdbtypes.c (type_align): A struct with no non-static fields also
8252 has alignment of 1.
8253
8254 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8255
8256 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8257 component to 0.
8258 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8259 member.
8260 (riscv_struct_info::analyse): New implementation using new
8261 analyse_inner member function.
8262 (riscv_struct_info::field_offset): New member function.
8263 (riscv_struct_info::m_offsets): New member variable.
8264 (riscv_struct_info::analyse_inner): New private member function,
8265 takes the old implementation of riscv_struct_info::analyse but
8266 extended to track field offsets.
8267 (riscv_call_arg_struct): Update the struct folding special cases
8268 to handle cases where empty C++ structs, which are non-zero
8269 length, are found.
8270 (riscv_arg_location): Initialise the length of each location, a
8271 non-zero length now indicates the location is in use.
8272 (riscv_push_dummy_call): Allow for the first location having a
8273 non-zero offset when setting up arguments.
8274 (riscv_return_value): Likewise, but for return values.
8275
8276 2019-04-11 Tom Tromey <tromey@adacore.com>
8277
8278 * utils.c (internal_vproblem): Make "msg" const.
8279
8280 2019-04-11 Alan Hayward <alan.hayward@arm.com>
8281
8282 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8283 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8284 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8285 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8286
8287 2019-04-10 Kevin Buettner <kevinb@redhat.com>
8288
8289 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8290 function.
8291 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8292 of amd64_collect_native_gregset.
8293 (amd64_linux_nat_target::store_registers): Likewise.
8294
8295 2019-04-10 Tom Tromey <tom@tromey.com>
8296
8297 * symtab.c (lookup_global_symbol_from_objfile)
8298 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8299 * objfiles.h (class separate_debug_iterator): New.
8300 (class separate_debug_range): New.
8301 (struct objfile) <separate_debug_objfiles>: New method.
8302 (objfile_separate_debug_iterate): Don't declare.
8303 * objfiles.c (separate_debug_iterator::operator++): Rename from
8304 objfile_separate_debug_iterate.
8305 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8306 iterator.
8307 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8308 iterator.
8309
8310 2019-04-10 Tom Tromey <tom@tromey.com>
8311
8312 * symfile.c (reread_symbols): Remove old comment.
8313 * objfiles.c (free_all_objfiles): Fix a typo.
8314
8315 2019-04-10 Tom Tromey <tom@tromey.com>
8316
8317 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8318 * minsyms.c (lookup_minimal_symbol): Use foreach.
8319 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8320 (lookup_minimal_symbol_solib_trampoline): Likewise.
8321 * symfile.c (reread_symbols): Use foreach.
8322
8323 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
8324 Tom Tromey <tromey@adacore.com>
8325
8326 PR rust/24414:
8327 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8328 (rust_lex_int_test): Change "value" to be LONGEST.
8329 (rust_lex_tests): Add test for long integer literal.
8330
8331 2019-04-09 Tom Tromey <tromey@adacore.com>
8332
8333 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8334 to bool.
8335 (extended_remote_target::attach): Update.
8336 (remote_target::remote_notice_new_inferior): Update.
8337 (remote_target::add_current_inferior_and_thread): Update.
8338 * inferior.c (exit_inferior_1): Use "false".
8339 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8340
8341 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
8342
8343 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
8344 the "start" command.
8345
8346 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8347
8348 * python/py-inferior.c (infpy_thread_from_thread_handle):
8349 Adjust comments to reflect renaming of thread_from_thread_handle
8350 to thread_from_handle. Adjust keywords. Fix type error message.
8351 (inferior_object_methods): Add thread_from_handle. Retain
8352 thread_from_thread_handle, but mark it as deprecated.
8353
8354 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8355
8356 * gdbthread.h (find_thread_by_handle): Revise declaration.
8357 * thread.c (find_thread_by_handle): Likewise. Adjust
8358 implementation too.
8359 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8360 support for buffer objects as handles.
8361
8362 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8363
8364 * python/py-infthread.c (thpy_thread_handle): New function.
8365 (thread_object_methods): Register thpy_thread_handle.
8366
8367 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8368
8369 * gdbthread.h (thread_to_thread_handle): Declare.
8370 * thread.c (gdbtypes.h): Include.
8371 (thread_to_thread_handle): New function.
8372
8373 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8374 (target_thread_info_to_thread_handle): Declare.
8375 * target.c (target_thread_info_to_thread_handle): New function.
8376 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8377 * target-delegates.c: Regenerate.
8378
8379 * linux-thread-db.c (class thread_db_target): Add method
8380 thread_info_to_thread_handle.
8381 (thread_db_target::thread_info_to_thread_handle): Define.
8382 * remote.c (class remote_target): Add new method
8383 thread_info_to_thread_handle.
8384 (remote_target::thread_info_to_thread_handle): Define.
8385
8386 2019-04-08 Pedro Alves <palves@redhat.com>
8387
8388 * common/common-exceptions.c (throw_exception): Don't create
8389 named object to throw; throw directly.
8390 (throw_it): Likewise. Don't initialize gdb_exception::message
8391 here, with new; pass FMT and AP to the ctor instead.
8392 * common/common-exceptions.h: Include <string>.
8393 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8394 const char *, va_list)): New ctor. Use std::make_shared.
8395 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8396 errors)): Delete.
8397 (gdb_exception_error::gdb_exception_error(enum errors, const char
8398 *, va_list)): New.
8399 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8400 Add assertion.
8401 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8402 errors)): Delete.
8403 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8404 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8405 Add assertion.
8406
8407 2019-04-08 Tom Tromey <tom@tromey.com>
8408
8409 * valops.c (value_rtti_indirect_type): Replace throw_exception
8410 with throw.
8411 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8412 with throw.
8413 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8414 throw.
8415 * target.c (target_translate_tls_address): Replace throw_exception
8416 with throw.
8417 * stack.c (frame_apply_command_count): Replace throw_exception
8418 with throw.
8419 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8420 throw.
8421 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8422 with throw.
8423 * rs6000-tdep.c (rs6000_frame_cache)
8424 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8425 * remote.c: Replace throw_exception with throw.
8426 * record-full.c (record_full_message, record_full_wait_1)
8427 (record_full_restore): Replace throw_exception with throw.
8428 * record-btrace.c:
8429 (get_thread_current_frame_id, record_btrace_start_replaying)
8430 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8431 (cmd_record_btrace_start): Replace throw_exception with throw.
8432 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8433 throw.
8434 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8435 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8436 * linespec.c:
8437 (find_linespec_symbols): Replace throw_exception with throw.
8438 * infrun.c (displaced_step_prepare, resume): Replace
8439 throw_exception with throw.
8440 * infcmd.c (post_create_inferior): Replace throw_exception with
8441 throw.
8442 * inf-loop.c (inferior_event_handler): Replace throw_exception
8443 with throw.
8444 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8445 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8446 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8447 (get_prev_frame_always, get_frame_pc_if_available)
8448 (get_frame_address_in_block_if_available, get_frame_language):
8449 Replace throw_exception with throw.
8450 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8451 throw_exception with throw.
8452 * eval.c (fetch_subexp_value, evaluate_var_value)
8453 (evaluate_funcall, evaluate_subexp_standard): Replace
8454 throw_exception with throw.
8455 * dwarf2loc.c (call_site_find_chain)
8456 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8457 Replace throw_exception with throw.
8458 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8459 with throw.
8460 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8461 throw.
8462 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8463 * completer.c (complete_line_internal): Replace throw_exception
8464 with throw.
8465 * compile/compile-object-run.c (compile_object_run): Replace
8466 throw_exception with throw.
8467 * cli/cli-script.c (process_next_line): Replace throw_exception
8468 with throw.
8469 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8470 (btrace_enable, btrace_maint_update_pt_packets): Replace
8471 throw_exception with throw.
8472 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8473 throw_exception with throw.
8474 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8475 throw_exception with throw.
8476 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8477 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8478 * aarch64-tdep.c (aarch64_make_prologue_cache)
8479 (aarch64_make_stub_cache): Replace throw_exception with throw.
8480
8481 2019-04-08 Tom Tromey <tom@tromey.com>
8482
8483 * common/common-exceptions.c (throw_exception): Rename from
8484 throw_exception_cxx. Remove old copy. Make argument const.
8485 (throw_it): Create and throw exception objects directly.
8486 * common/common-exceptions.h (throw_exception): Make argument
8487 const.
8488 (struct gdb_exception_error): Add constructor.
8489 (struct gdb_exception_quit): Add constructor.
8490
8491 2019-04-08 Tom Tromey <tom@tromey.com>
8492
8493 * common/common-exceptions.h (exception_rethrow): Don't declare.
8494 (TRY_SJLJ): Update comment.
8495 (TRY, CATCH, END_CATCH): Remove.
8496 * common/common-exceptions.c (exception_rethrow): Remove.
8497
8498 2019-04-08 Tom Tromey <tom@tromey.com>
8499
8500 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8501 Remove.
8502 (gdb_exception_error): Rename from
8503 gdb_exception_RETURN_MASK_ERROR.
8504 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8505 (gdb_quit_bad_alloc): Update.
8506 * aarch64-tdep.c: Update.
8507 * ada-lang.c: Update.
8508 * ada-typeprint.c: Update.
8509 * ada-valprint.c: Update.
8510 * amd64-tdep.c: Update.
8511 * arch-utils.c: Update.
8512 * break-catch-throw.c: Update.
8513 * breakpoint.c: Update.
8514 * btrace.c: Update.
8515 * c-varobj.c: Update.
8516 * cli/cli-cmds.c: Update.
8517 * cli/cli-interp.c: Update.
8518 * cli/cli-script.c: Update.
8519 * common/common-exceptions.c: Update.
8520 * common/new-op.c: Update.
8521 * common/selftest.c: Update.
8522 * compile/compile-c-symbols.c: Update.
8523 * compile/compile-cplus-symbols.c: Update.
8524 * compile/compile-object-load.c: Update.
8525 * compile/compile-object-run.c: Update.
8526 * completer.c: Update.
8527 * corelow.c: Update.
8528 * cp-abi.c: Update.
8529 * cp-support.c: Update.
8530 * cp-valprint.c: Update.
8531 * darwin-nat.c: Update.
8532 * disasm-selftests.c: Update.
8533 * dtrace-probe.c: Update.
8534 * dwarf-index-cache.c: Update.
8535 * dwarf-index-write.c: Update.
8536 * dwarf2-frame-tailcall.c: Update.
8537 * dwarf2-frame.c: Update.
8538 * dwarf2loc.c: Update.
8539 * dwarf2read.c: Update.
8540 * eval.c: Update.
8541 * event-loop.c: Update.
8542 * event-top.c: Update.
8543 * exec.c: Update.
8544 * f-valprint.c: Update.
8545 * fbsd-tdep.c: Update.
8546 * frame-unwind.c: Update.
8547 * frame.c: Update.
8548 * gdbtypes.c: Update.
8549 * gnu-v3-abi.c: Update.
8550 * guile/guile-internal.h: Update.
8551 * guile/scm-block.c: Update.
8552 * guile/scm-breakpoint.c: Update.
8553 * guile/scm-cmd.c: Update.
8554 * guile/scm-disasm.c: Update.
8555 * guile/scm-frame.c: Update.
8556 * guile/scm-lazy-string.c: Update.
8557 * guile/scm-math.c: Update.
8558 * guile/scm-param.c: Update.
8559 * guile/scm-ports.c: Update.
8560 * guile/scm-pretty-print.c: Update.
8561 * guile/scm-symbol.c: Update.
8562 * guile/scm-symtab.c: Update.
8563 * guile/scm-type.c: Update.
8564 * guile/scm-value.c: Update.
8565 * i386-linux-tdep.c: Update.
8566 * i386-tdep.c: Update.
8567 * inf-loop.c: Update.
8568 * infcall.c: Update.
8569 * infcmd.c: Update.
8570 * infrun.c: Update.
8571 * jit.c: Update.
8572 * language.c: Update.
8573 * linespec.c: Update.
8574 * linux-fork.c: Update.
8575 * linux-nat.c: Update.
8576 * linux-tdep.c: Update.
8577 * linux-thread-db.c: Update.
8578 * main.c: Update.
8579 * mi/mi-cmd-break.c: Update.
8580 * mi/mi-cmd-stack.c: Update.
8581 * mi/mi-interp.c: Update.
8582 * mi/mi-main.c: Update.
8583 * objc-lang.c: Update.
8584 * p-valprint.c: Update.
8585 * parse.c: Update.
8586 * ppc-linux-tdep.c: Update.
8587 * printcmd.c: Update.
8588 * python/py-arch.c: Update.
8589 * python/py-breakpoint.c: Update.
8590 * python/py-cmd.c: Update.
8591 * python/py-finishbreakpoint.c: Update.
8592 * python/py-frame.c: Update.
8593 * python/py-framefilter.c: Update.
8594 * python/py-gdb-readline.c: Update.
8595 * python/py-inferior.c: Update.
8596 * python/py-infthread.c: Update.
8597 * python/py-lazy-string.c: Update.
8598 * python/py-linetable.c: Update.
8599 * python/py-objfile.c: Update.
8600 * python/py-param.c: Update.
8601 * python/py-prettyprint.c: Update.
8602 * python/py-progspace.c: Update.
8603 * python/py-record-btrace.c: Update.
8604 * python/py-record.c: Update.
8605 * python/py-symbol.c: Update.
8606 * python/py-type.c: Update.
8607 * python/py-unwind.c: Update.
8608 * python/py-utils.c: Update.
8609 * python/py-value.c: Update.
8610 * python/python.c: Update.
8611 * record-btrace.c: Update.
8612 * record-full.c: Update.
8613 * remote-fileio.c: Update.
8614 * remote.c: Update.
8615 * riscv-tdep.c: Update.
8616 * rs6000-aix-tdep.c: Update.
8617 * rs6000-tdep.c: Update.
8618 * rust-exp.y: Update.
8619 * rust-lang.c: Update.
8620 * s390-tdep.c: Update.
8621 * selftest-arch.c: Update.
8622 * solib-dsbt.c: Update.
8623 * solib-frv.c: Update.
8624 * solib-spu.c: Update.
8625 * solib-svr4.c: Update.
8626 * solib.c: Update.
8627 * sparc64-linux-tdep.c: Update.
8628 * stack.c: Update.
8629 * symfile-mem.c: Update.
8630 * symmisc.c: Update.
8631 * target.c: Update.
8632 * thread.c: Update.
8633 * top.c: Update.
8634 * tracefile-tfile.c: Update.
8635 * tui/tui.c: Update.
8636 * typeprint.c: Update.
8637 * unittests/cli-utils-selftests.c: Update.
8638 * unittests/parse-connection-spec-selftests.c: Update.
8639 * valops.c: Update.
8640 * valprint.c: Update.
8641 * value.c: Update.
8642 * varobj.c: Update.
8643 * windows-nat.c: Update.
8644 * x86-linux-nat.c: Update.
8645 * xml-support.c: Update.
8646
8647 2019-04-08 Tom Tromey <tom@tromey.com>
8648
8649 * xml-support.c: Use C++ exception handling.
8650 * x86-linux-nat.c: Use C++ exception handling.
8651 * windows-nat.c: Use C++ exception handling.
8652 * varobj.c: Use C++ exception handling.
8653 * value.c: Use C++ exception handling.
8654 * valprint.c: Use C++ exception handling.
8655 * valops.c: Use C++ exception handling.
8656 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8657 handling.
8658 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8659 * typeprint.c: Use C++ exception handling.
8660 * tui/tui.c: Use C++ exception handling.
8661 * tracefile-tfile.c: Use C++ exception handling.
8662 * top.c: Use C++ exception handling.
8663 * thread.c: Use C++ exception handling.
8664 * target.c: Use C++ exception handling.
8665 * symmisc.c: Use C++ exception handling.
8666 * symfile-mem.c: Use C++ exception handling.
8667 * stack.c: Use C++ exception handling.
8668 * sparc64-linux-tdep.c: Use C++ exception handling.
8669 * solib.c: Use C++ exception handling.
8670 * solib-svr4.c: Use C++ exception handling.
8671 * solib-spu.c: Use C++ exception handling.
8672 * solib-frv.c: Use C++ exception handling.
8673 * solib-dsbt.c: Use C++ exception handling.
8674 * selftest-arch.c: Use C++ exception handling.
8675 * s390-tdep.c: Use C++ exception handling.
8676 * rust-lang.c: Use C++ exception handling.
8677 * rust-exp.y: Use C++ exception handling.
8678 * rs6000-tdep.c: Use C++ exception handling.
8679 * rs6000-aix-tdep.c: Use C++ exception handling.
8680 * riscv-tdep.c: Use C++ exception handling.
8681 * remote.c: Use C++ exception handling.
8682 * remote-fileio.c: Use C++ exception handling.
8683 * record-full.c: Use C++ exception handling.
8684 * record-btrace.c: Use C++ exception handling.
8685 * python/python.c: Use C++ exception handling.
8686 * python/py-value.c: Use C++ exception handling.
8687 * python/py-utils.c: Use C++ exception handling.
8688 * python/py-unwind.c: Use C++ exception handling.
8689 * python/py-type.c: Use C++ exception handling.
8690 * python/py-symbol.c: Use C++ exception handling.
8691 * python/py-record.c: Use C++ exception handling.
8692 * python/py-record-btrace.c: Use C++ exception handling.
8693 * python/py-progspace.c: Use C++ exception handling.
8694 * python/py-prettyprint.c: Use C++ exception handling.
8695 * python/py-param.c: Use C++ exception handling.
8696 * python/py-objfile.c: Use C++ exception handling.
8697 * python/py-linetable.c: Use C++ exception handling.
8698 * python/py-lazy-string.c: Use C++ exception handling.
8699 * python/py-infthread.c: Use C++ exception handling.
8700 * python/py-inferior.c: Use C++ exception handling.
8701 * python/py-gdb-readline.c: Use C++ exception handling.
8702 * python/py-framefilter.c: Use C++ exception handling.
8703 * python/py-frame.c: Use C++ exception handling.
8704 * python/py-finishbreakpoint.c: Use C++ exception handling.
8705 * python/py-cmd.c: Use C++ exception handling.
8706 * python/py-breakpoint.c: Use C++ exception handling.
8707 * python/py-arch.c: Use C++ exception handling.
8708 * printcmd.c: Use C++ exception handling.
8709 * ppc-linux-tdep.c: Use C++ exception handling.
8710 * parse.c: Use C++ exception handling.
8711 * p-valprint.c: Use C++ exception handling.
8712 * objc-lang.c: Use C++ exception handling.
8713 * mi/mi-main.c: Use C++ exception handling.
8714 * mi/mi-interp.c: Use C++ exception handling.
8715 * mi/mi-cmd-stack.c: Use C++ exception handling.
8716 * mi/mi-cmd-break.c: Use C++ exception handling.
8717 * main.c: Use C++ exception handling.
8718 * linux-thread-db.c: Use C++ exception handling.
8719 * linux-tdep.c: Use C++ exception handling.
8720 * linux-nat.c: Use C++ exception handling.
8721 * linux-fork.c: Use C++ exception handling.
8722 * linespec.c: Use C++ exception handling.
8723 * language.c: Use C++ exception handling.
8724 * jit.c: Use C++ exception handling.
8725 * infrun.c: Use C++ exception handling.
8726 * infcmd.c: Use C++ exception handling.
8727 * infcall.c: Use C++ exception handling.
8728 * inf-loop.c: Use C++ exception handling.
8729 * i386-tdep.c: Use C++ exception handling.
8730 * i386-linux-tdep.c: Use C++ exception handling.
8731 * guile/scm-value.c: Use C++ exception handling.
8732 * guile/scm-type.c: Use C++ exception handling.
8733 * guile/scm-symtab.c: Use C++ exception handling.
8734 * guile/scm-symbol.c: Use C++ exception handling.
8735 * guile/scm-pretty-print.c: Use C++ exception handling.
8736 * guile/scm-ports.c: Use C++ exception handling.
8737 * guile/scm-param.c: Use C++ exception handling.
8738 * guile/scm-math.c: Use C++ exception handling.
8739 * guile/scm-lazy-string.c: Use C++ exception handling.
8740 * guile/scm-frame.c: Use C++ exception handling.
8741 * guile/scm-disasm.c: Use C++ exception handling.
8742 * guile/scm-cmd.c: Use C++ exception handling.
8743 * guile/scm-breakpoint.c: Use C++ exception handling.
8744 * guile/scm-block.c: Use C++ exception handling.
8745 * guile/guile-internal.h: Use C++ exception handling.
8746 * gnu-v3-abi.c: Use C++ exception handling.
8747 * gdbtypes.c: Use C++ exception handling.
8748 * frame.c: Use C++ exception handling.
8749 * frame-unwind.c: Use C++ exception handling.
8750 * fbsd-tdep.c: Use C++ exception handling.
8751 * f-valprint.c: Use C++ exception handling.
8752 * exec.c: Use C++ exception handling.
8753 * event-top.c: Use C++ exception handling.
8754 * event-loop.c: Use C++ exception handling.
8755 * eval.c: Use C++ exception handling.
8756 * dwarf2read.c: Use C++ exception handling.
8757 * dwarf2loc.c: Use C++ exception handling.
8758 * dwarf2-frame.c: Use C++ exception handling.
8759 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8760 * dwarf-index-write.c: Use C++ exception handling.
8761 * dwarf-index-cache.c: Use C++ exception handling.
8762 * dtrace-probe.c: Use C++ exception handling.
8763 * disasm-selftests.c: Use C++ exception handling.
8764 * darwin-nat.c: Use C++ exception handling.
8765 * cp-valprint.c: Use C++ exception handling.
8766 * cp-support.c: Use C++ exception handling.
8767 * cp-abi.c: Use C++ exception handling.
8768 * corelow.c: Use C++ exception handling.
8769 * completer.c: Use C++ exception handling.
8770 * compile/compile-object-run.c: Use C++ exception handling.
8771 * compile/compile-object-load.c: Use C++ exception handling.
8772 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8773 * compile/compile-c-symbols.c: Use C++ exception handling.
8774 * common/selftest.c: Use C++ exception handling.
8775 * common/new-op.c: Use C++ exception handling.
8776 * cli/cli-script.c: Use C++ exception handling.
8777 * cli/cli-interp.c: Use C++ exception handling.
8778 * cli/cli-cmds.c: Use C++ exception handling.
8779 * c-varobj.c: Use C++ exception handling.
8780 * btrace.c: Use C++ exception handling.
8781 * breakpoint.c: Use C++ exception handling.
8782 * break-catch-throw.c: Use C++ exception handling.
8783 * arch-utils.c: Use C++ exception handling.
8784 * amd64-tdep.c: Use C++ exception handling.
8785 * ada-valprint.c: Use C++ exception handling.
8786 * ada-typeprint.c: Use C++ exception handling.
8787 * ada-lang.c: Use C++ exception handling.
8788 * aarch64-tdep.c: Use C++ exception handling.
8789
8790 2019-04-08 Tom Tromey <tom@tromey.com>
8791
8792 * xml-support.c (gdb_xml_parser::parse): Update.
8793 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8794 * value.c (show_convenience): Update.
8795 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8796 (test_parse_flags_qcs): Update.
8797 * thread.c (thr_try_catch_cmd): Update.
8798 * target.c (target_translate_tls_address): Update.
8799 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8800 (info_frame_command_core, frame_apply_command_count): Update.
8801 * rust-exp.y (rust_lex_exception_test): Update.
8802 * riscv-tdep.c (riscv_print_one_register_info): Update.
8803 * remote.c (remote_target::enable_btrace): Update.
8804 * record-btrace.c (record_btrace_enable_warn): Update.
8805 * python/py-utils.c (gdbpy_convert_exception): Update.
8806 * printcmd.c (do_one_display, print_variable_and_value): Update.
8807 * mi/mi-main.c (mi_print_exception): Update.
8808 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8809 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8810 * linux-nat.c (linux_nat_target::attach): Update.
8811 * linux-fork.c (class scoped_switch_fork_info): Update.
8812 * infrun.c (displaced_step_prepare): Update.
8813 * infcall.c (call_function_by_hand_dummy): Update.
8814 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8815 * gnu-v3-abi.c (print_one_vtable): Update.
8816 * frame.c (get_prev_frame_always): Update.
8817 * f-valprint.c (info_common_command_for_block): Update.
8818 * exec.c (try_open_exec_file): Update.
8819 * exceptions.c (print_exception, exception_print)
8820 (exception_fprintf, exception_print_same): Update.
8821 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8822 * dwarf-index-cache.c (index_cache::store)
8823 (index_cache::lookup_gdb_index): Update.
8824 * darwin-nat.c (maybe_cache_shell): Update.
8825 * cp-valprint.c (cp_print_value_fields): Update.
8826 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8827 (gcc_cplus_symbol_address): Update.
8828 * compile/compile-c-symbols.c (gcc_convert_symbol)
8829 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8830 * common/selftest.c: Update.
8831 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8832 a std::string.
8833 (exception_try_scope_entry, exception_try_scope_exit): Don't
8834 declare.
8835 (struct exception_try_scope): Remove.
8836 (TRY): Don't use exception_try_scope.
8837 (struct gdb_exception): Add constructor, operator=.
8838 <what>: New method.
8839 (struct gdb_exception_RETURN_MASK_ALL)
8840 (struct gdb_exception_RETURN_MASK_ERROR)
8841 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8842 (struct gdb_quit_bad_alloc): Update.
8843 * common/common-exceptions.c (exception_none): Change
8844 initializer.
8845 (struct catcher) <state, exception>: Initialize inline.
8846 <prev>: Remove member.
8847 (current_catcher): Remove.
8848 (catchers): New global.
8849 (exceptions_state_mc_init): Simplify.
8850 (catcher_pop): Remove.
8851 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8852 (try_scope_depth, exception_try_scope_entry)
8853 (exception_try_scope_exit): Remove.
8854 (throw_exception_sjlj): Update.
8855 (exception_messages, exception_messages_size): Remove.
8856 (throw_it): Simplify.
8857 (gdb_exception_sliced_copy): Remove.
8858 (throw_exception_cxx): Update.
8859 * cli/cli-script.c (script_from_file): Update.
8860 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8861 Update.
8862 * ada-valprint.c (ada_val_print): Update.
8863 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8864 (create_excep_cond_exprs): Update.
8865
8866 2019-04-08 Tom Tromey <tom@tromey.com>
8867
8868 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8869 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8870 (TRY, CATCH, END_CATCH): Remove some definitions.
8871 * common/common-exceptions.c: Don't use GDB_XCPT.
8872 (catcher_list_size): Remove.
8873 (throw_exception, throw_it): Simplify.
8874
8875 2019-04-05 Tom Tromey <tom@tromey.com>
8876
8877 Revert the header-sorting patch.
8878 * ft32-tdep.c: Revert.
8879 * frv-tdep.c: Revert.
8880 * frv-linux-tdep.c: Revert.
8881 * frame.c: Revert.
8882 * frame-unwind.c: Revert.
8883 * frame-base.c: Revert.
8884 * fork-child.c: Revert.
8885 * findvar.c: Revert.
8886 * findcmd.c: Revert.
8887 * filesystem.c: Revert.
8888 * filename-seen-cache.h: Revert.
8889 * filename-seen-cache.c: Revert.
8890 * fbsd-tdep.c: Revert.
8891 * fbsd-nat.h: Revert.
8892 * fbsd-nat.c: Revert.
8893 * f-valprint.c: Revert.
8894 * f-typeprint.c: Revert.
8895 * f-lang.c: Revert.
8896 * extension.h: Revert.
8897 * extension.c: Revert.
8898 * extension-priv.h: Revert.
8899 * expprint.c: Revert.
8900 * exec.h: Revert.
8901 * exec.c: Revert.
8902 * exceptions.c: Revert.
8903 * event-top.c: Revert.
8904 * event-loop.c: Revert.
8905 * eval.c: Revert.
8906 * elfread.c: Revert.
8907 * dwarf2read.h: Revert.
8908 * dwarf2read.c: Revert.
8909 * dwarf2loc.c: Revert.
8910 * dwarf2expr.h: Revert.
8911 * dwarf2expr.c: Revert.
8912 * dwarf2-frame.c: Revert.
8913 * dwarf2-frame-tailcall.c: Revert.
8914 * dwarf-index-write.h: Revert.
8915 * dwarf-index-write.c: Revert.
8916 * dwarf-index-common.c: Revert.
8917 * dwarf-index-cache.h: Revert.
8918 * dwarf-index-cache.c: Revert.
8919 * dummy-frame.c: Revert.
8920 * dtrace-probe.c: Revert.
8921 * disasm.h: Revert.
8922 * disasm.c: Revert.
8923 * disasm-selftests.c: Revert.
8924 * dictionary.c: Revert.
8925 * dicos-tdep.c: Revert.
8926 * demangle.c: Revert.
8927 * dcache.h: Revert.
8928 * dcache.c: Revert.
8929 * darwin-nat.h: Revert.
8930 * darwin-nat.c: Revert.
8931 * darwin-nat-info.c: Revert.
8932 * d-valprint.c: Revert.
8933 * d-namespace.c: Revert.
8934 * d-lang.c: Revert.
8935 * ctf.c: Revert.
8936 * csky-tdep.c: Revert.
8937 * csky-linux-tdep.c: Revert.
8938 * cris-tdep.c: Revert.
8939 * cris-linux-tdep.c: Revert.
8940 * cp-valprint.c: Revert.
8941 * cp-support.c: Revert.
8942 * cp-namespace.c: Revert.
8943 * cp-abi.c: Revert.
8944 * corelow.c: Revert.
8945 * corefile.c: Revert.
8946 * continuations.c: Revert.
8947 * completer.h: Revert.
8948 * completer.c: Revert.
8949 * complaints.c: Revert.
8950 * coffread.c: Revert.
8951 * coff-pe-read.c: Revert.
8952 * cli-out.h: Revert.
8953 * cli-out.c: Revert.
8954 * charset.c: Revert.
8955 * c-varobj.c: Revert.
8956 * c-valprint.c: Revert.
8957 * c-typeprint.c: Revert.
8958 * c-lang.c: Revert.
8959 * buildsym.c: Revert.
8960 * buildsym-legacy.c: Revert.
8961 * build-id.h: Revert.
8962 * build-id.c: Revert.
8963 * btrace.c: Revert.
8964 * bsd-uthread.c: Revert.
8965 * breakpoint.h: Revert.
8966 * breakpoint.c: Revert.
8967 * break-catch-throw.c: Revert.
8968 * break-catch-syscall.c: Revert.
8969 * break-catch-sig.c: Revert.
8970 * blockframe.c: Revert.
8971 * block.c: Revert.
8972 * bfin-tdep.c: Revert.
8973 * bfin-linux-tdep.c: Revert.
8974 * bfd-target.c: Revert.
8975 * bcache.c: Revert.
8976 * ax-general.c: Revert.
8977 * ax-gdb.h: Revert.
8978 * ax-gdb.c: Revert.
8979 * avr-tdep.c: Revert.
8980 * auxv.c: Revert.
8981 * auto-load.c: Revert.
8982 * arm-wince-tdep.c: Revert.
8983 * arm-tdep.c: Revert.
8984 * arm-symbian-tdep.c: Revert.
8985 * arm-pikeos-tdep.c: Revert.
8986 * arm-obsd-tdep.c: Revert.
8987 * arm-nbsd-tdep.c: Revert.
8988 * arm-nbsd-nat.c: Revert.
8989 * arm-linux-tdep.c: Revert.
8990 * arm-linux-nat.c: Revert.
8991 * arm-fbsd-tdep.c: Revert.
8992 * arm-fbsd-nat.c: Revert.
8993 * arm-bsd-tdep.c: Revert.
8994 * arch-utils.c: Revert.
8995 * arc-tdep.c: Revert.
8996 * arc-newlib-tdep.c: Revert.
8997 * annotate.h: Revert.
8998 * annotate.c: Revert.
8999 * amd64-windows-tdep.c: Revert.
9000 * amd64-windows-nat.c: Revert.
9001 * amd64-tdep.c: Revert.
9002 * amd64-sol2-tdep.c: Revert.
9003 * amd64-obsd-tdep.c: Revert.
9004 * amd64-obsd-nat.c: Revert.
9005 * amd64-nbsd-tdep.c: Revert.
9006 * amd64-nbsd-nat.c: Revert.
9007 * amd64-nat.c: Revert.
9008 * amd64-linux-tdep.c: Revert.
9009 * amd64-linux-nat.c: Revert.
9010 * amd64-fbsd-tdep.c: Revert.
9011 * amd64-fbsd-nat.c: Revert.
9012 * amd64-dicos-tdep.c: Revert.
9013 * amd64-darwin-tdep.c: Revert.
9014 * amd64-bsd-nat.c: Revert.
9015 * alpha-tdep.c: Revert.
9016 * alpha-obsd-tdep.c: Revert.
9017 * alpha-nbsd-tdep.c: Revert.
9018 * alpha-mdebug-tdep.c: Revert.
9019 * alpha-linux-tdep.c: Revert.
9020 * alpha-linux-nat.c: Revert.
9021 * alpha-bsd-tdep.c: Revert.
9022 * alpha-bsd-nat.c: Revert.
9023 * aix-thread.c: Revert.
9024 * agent.c: Revert.
9025 * addrmap.c: Revert.
9026 * ada-varobj.c: Revert.
9027 * ada-valprint.c: Revert.
9028 * ada-typeprint.c: Revert.
9029 * ada-tasks.c: Revert.
9030 * ada-lang.c: Revert.
9031 * aarch64-tdep.c: Revert.
9032 * aarch64-ravenscar-thread.c: Revert.
9033 * aarch64-newlib-tdep.c: Revert.
9034 * aarch64-linux-tdep.c: Revert.
9035 * aarch64-linux-nat.c: Revert.
9036 * aarch64-fbsd-tdep.c: Revert.
9037 * aarch64-fbsd-nat.c: Revert.
9038 * aarch32-linux-nat.c: Revert.
9039
9040 2019-04-05 Tom Tromey <tom@tromey.com>
9041
9042 * ft32-tdep.c: Sort headers.
9043 * frv-tdep.c: Sort headers.
9044 * frv-linux-tdep.c: Sort headers.
9045 * frame.c: Sort headers.
9046 * frame-unwind.c: Sort headers.
9047 * frame-base.c: Sort headers.
9048 * fork-child.c: Sort headers.
9049 * findvar.c: Sort headers.
9050 * findcmd.c: Sort headers.
9051 * filesystem.c: Sort headers.
9052 * filename-seen-cache.h: Sort headers.
9053 * filename-seen-cache.c: Sort headers.
9054 * fbsd-tdep.c: Sort headers.
9055 * fbsd-nat.h: Sort headers.
9056 * fbsd-nat.c: Sort headers.
9057 * f-valprint.c: Sort headers.
9058 * f-typeprint.c: Sort headers.
9059 * f-lang.c: Sort headers.
9060 * extension.h: Sort headers.
9061 * extension.c: Sort headers.
9062 * extension-priv.h: Sort headers.
9063 * expprint.c: Sort headers.
9064 * exec.h: Sort headers.
9065 * exec.c: Sort headers.
9066 * exceptions.c: Sort headers.
9067 * event-top.c: Sort headers.
9068 * event-loop.c: Sort headers.
9069 * eval.c: Sort headers.
9070 * elfread.c: Sort headers.
9071 * dwarf2read.h: Sort headers.
9072 * dwarf2read.c: Sort headers.
9073 * dwarf2loc.c: Sort headers.
9074 * dwarf2expr.h: Sort headers.
9075 * dwarf2expr.c: Sort headers.
9076 * dwarf2-frame.c: Sort headers.
9077 * dwarf2-frame-tailcall.c: Sort headers.
9078 * dwarf-index-write.h: Sort headers.
9079 * dwarf-index-write.c: Sort headers.
9080 * dwarf-index-common.c: Sort headers.
9081 * dwarf-index-cache.h: Sort headers.
9082 * dwarf-index-cache.c: Sort headers.
9083 * dummy-frame.c: Sort headers.
9084 * dtrace-probe.c: Sort headers.
9085 * disasm.h: Sort headers.
9086 * disasm.c: Sort headers.
9087 * disasm-selftests.c: Sort headers.
9088 * dictionary.c: Sort headers.
9089 * dicos-tdep.c: Sort headers.
9090 * demangle.c: Sort headers.
9091 * dcache.h: Sort headers.
9092 * dcache.c: Sort headers.
9093 * darwin-nat.h: Sort headers.
9094 * darwin-nat.c: Sort headers.
9095 * darwin-nat-info.c: Sort headers.
9096 * d-valprint.c: Sort headers.
9097 * d-namespace.c: Sort headers.
9098 * d-lang.c: Sort headers.
9099 * ctf.c: Sort headers.
9100 * csky-tdep.c: Sort headers.
9101 * csky-linux-tdep.c: Sort headers.
9102 * cris-tdep.c: Sort headers.
9103 * cris-linux-tdep.c: Sort headers.
9104 * cp-valprint.c: Sort headers.
9105 * cp-support.c: Sort headers.
9106 * cp-namespace.c: Sort headers.
9107 * cp-abi.c: Sort headers.
9108 * corelow.c: Sort headers.
9109 * corefile.c: Sort headers.
9110 * continuations.c: Sort headers.
9111 * completer.h: Sort headers.
9112 * completer.c: Sort headers.
9113 * complaints.c: Sort headers.
9114 * coffread.c: Sort headers.
9115 * coff-pe-read.c: Sort headers.
9116 * cli-out.h: Sort headers.
9117 * cli-out.c: Sort headers.
9118 * charset.c: Sort headers.
9119 * c-varobj.c: Sort headers.
9120 * c-valprint.c: Sort headers.
9121 * c-typeprint.c: Sort headers.
9122 * c-lang.c: Sort headers.
9123 * buildsym.c: Sort headers.
9124 * buildsym-legacy.c: Sort headers.
9125 * build-id.h: Sort headers.
9126 * build-id.c: Sort headers.
9127 * btrace.c: Sort headers.
9128 * bsd-uthread.c: Sort headers.
9129 * breakpoint.h: Sort headers.
9130 * breakpoint.c: Sort headers.
9131 * break-catch-throw.c: Sort headers.
9132 * break-catch-syscall.c: Sort headers.
9133 * break-catch-sig.c: Sort headers.
9134 * blockframe.c: Sort headers.
9135 * block.c: Sort headers.
9136 * bfin-tdep.c: Sort headers.
9137 * bfin-linux-tdep.c: Sort headers.
9138 * bfd-target.c: Sort headers.
9139 * bcache.c: Sort headers.
9140 * ax-general.c: Sort headers.
9141 * ax-gdb.h: Sort headers.
9142 * ax-gdb.c: Sort headers.
9143 * avr-tdep.c: Sort headers.
9144 * auxv.c: Sort headers.
9145 * auto-load.c: Sort headers.
9146 * arm-wince-tdep.c: Sort headers.
9147 * arm-tdep.c: Sort headers.
9148 * arm-symbian-tdep.c: Sort headers.
9149 * arm-pikeos-tdep.c: Sort headers.
9150 * arm-obsd-tdep.c: Sort headers.
9151 * arm-nbsd-tdep.c: Sort headers.
9152 * arm-nbsd-nat.c: Sort headers.
9153 * arm-linux-tdep.c: Sort headers.
9154 * arm-linux-nat.c: Sort headers.
9155 * arm-fbsd-tdep.c: Sort headers.
9156 * arm-fbsd-nat.c: Sort headers.
9157 * arm-bsd-tdep.c: Sort headers.
9158 * arch-utils.c: Sort headers.
9159 * arc-tdep.c: Sort headers.
9160 * arc-newlib-tdep.c: Sort headers.
9161 * annotate.h: Sort headers.
9162 * annotate.c: Sort headers.
9163 * amd64-windows-tdep.c: Sort headers.
9164 * amd64-windows-nat.c: Sort headers.
9165 * amd64-tdep.c: Sort headers.
9166 * amd64-sol2-tdep.c: Sort headers.
9167 * amd64-obsd-tdep.c: Sort headers.
9168 * amd64-obsd-nat.c: Sort headers.
9169 * amd64-nbsd-tdep.c: Sort headers.
9170 * amd64-nbsd-nat.c: Sort headers.
9171 * amd64-nat.c: Sort headers.
9172 * amd64-linux-tdep.c: Sort headers.
9173 * amd64-linux-nat.c: Sort headers.
9174 * amd64-fbsd-tdep.c: Sort headers.
9175 * amd64-fbsd-nat.c: Sort headers.
9176 * amd64-dicos-tdep.c: Sort headers.
9177 * amd64-darwin-tdep.c: Sort headers.
9178 * amd64-bsd-nat.c: Sort headers.
9179 * alpha-tdep.c: Sort headers.
9180 * alpha-obsd-tdep.c: Sort headers.
9181 * alpha-nbsd-tdep.c: Sort headers.
9182 * alpha-mdebug-tdep.c: Sort headers.
9183 * alpha-linux-tdep.c: Sort headers.
9184 * alpha-linux-nat.c: Sort headers.
9185 * alpha-bsd-tdep.c: Sort headers.
9186 * alpha-bsd-nat.c: Sort headers.
9187 * aix-thread.c: Sort headers.
9188 * agent.c: Sort headers.
9189 * addrmap.c: Sort headers.
9190 * ada-varobj.c: Sort headers.
9191 * ada-valprint.c: Sort headers.
9192 * ada-typeprint.c: Sort headers.
9193 * ada-tasks.c: Sort headers.
9194 * ada-lang.c: Sort headers.
9195 * aarch64-tdep.c: Sort headers.
9196 * aarch64-ravenscar-thread.c: Sort headers.
9197 * aarch64-newlib-tdep.c: Sort headers.
9198 * aarch64-linux-tdep.c: Sort headers.
9199 * aarch64-linux-nat.c: Sort headers.
9200 * aarch64-fbsd-tdep.c: Sort headers.
9201 * aarch64-fbsd-nat.c: Sort headers.
9202 * aarch32-linux-nat.c: Sort headers.
9203
9204 2019-04-04 Tom Tromey <tom@tromey.com>
9205
9206 * varobj.c (varobj_create): Update.
9207 * rust-exp.y (struct rust_parser) <update_innermost_block,
9208 lookup_symbol>: New methods.
9209 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9210 Rename.
9211 (rust_parser::rust_lookup_type)
9212 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9213 * printcmd.c (display_command, do_one_display): Update.
9214 * parser-defs.h (struct parser_state) <parser_state>: Add
9215 "tracker" parameter.
9216 (block_tracker): New member.
9217 (class innermost_block_tracker) <innermost_block_tracker>: Add
9218 "types" parameter.
9219 <reset>: Remove method.
9220 (innermost_block): Don't declare.
9221 (null_post_parser): Update.
9222 * parse.c (innermost_block): Remove global.
9223 (write_dollar_variable): Update.
9224 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9225 Remove "tracker_types" parameter.
9226 (parse_expression): Add "tracker" parameter.
9227 (parse_expression_for_completion): Update.
9228 (null_post_parser): Add "tracker" parameter.
9229 * p-exp.y: Update rules.
9230 * m2-exp.y: Update rules.
9231 * language.h (struct language_defn) <la_post_parser>: Add
9232 "tracker" parameter.
9233 * go-exp.y: Update rules.
9234 * f-exp.y: Update rules.
9235 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9236 parameter.
9237 * d-exp.y: Update rules.
9238 * c-exp.y: Update rules.
9239 * breakpoint.c (set_breakpoint_condition): Create an
9240 innermost_block_tracker.
9241 (watch_command_1): Likewise.
9242 * ada-lang.c (resolve): Add "tracker" parameter.
9243 (resolve_subexp): Likewise.
9244 * ada-exp.y (write_var_from_sym): Update.
9245
9246 2019-04-04 Tom Tromey <tom@tromey.com>
9247
9248 * type-stack.h: New file.
9249 * type-stack.c: New file.
9250 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9251 type-stack.h.
9252 (insert_into_type_stack, insert_type, push_type, push_type_int)
9253 (insert_type_address_space, pop_type, pop_type_int)
9254 (pop_typelist, pop_type_stack, append_type_stack)
9255 (push_type_stack, get_type_stack, push_typelist)
9256 (follow_type_instance_flags, follow_types): Don't declare.
9257 * parse.c (type_stack): Remove global.
9258 (parse_exp_in_context): Update.
9259 (insert_into_type_stack, insert_type, push_type, push_type_int)
9260 (insert_type_address_space, pop_type, pop_type_int)
9261 (pop_typelist, pop_type_stack, append_type_stack)
9262 (push_type_stack, get_type_stack, push_typelist)
9263 (follow_type_instance_flags, follow_types): Remove (moved to
9264 type-stack.c).
9265 * f-exp.y (type_stack): New global.
9266 Update rules.
9267 (push_kind_type, f_parse): Update.
9268 * d-exp.y (type_stack): New global.
9269 Update rules.
9270 (d_parse): Update.
9271 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9272 Update rules.
9273 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9274 (HFILES_NO_SRCDIR): Add type-stack.h.
9275
9276 2019-04-04 Tom Tromey <tom@tromey.com>
9277
9278 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9279 (rust_parser::convert_ast_to_expression, rust_parse)
9280 (rust_lex_test_completion, rust_lex_tests): Update.
9281 * parser-defs.h (struct expr_completion_state): New.
9282 (struct parser_state) <parser_state>: Add completion parameter.
9283 <mark_struct_expression, mark_completion_tag>: New methods.
9284 <parse_completion, m_completion_state>: New members.
9285 (prefixify_expression, null_post_parser): Update.
9286 (mark_struct_expression, mark_completion_tag): Don't declare.
9287 * parse.c (parse_completion, expout_last_struct)
9288 (expout_tag_completion_type, expout_completion_name): Remove
9289 globals.
9290 (parser_state::mark_struct_expression)
9291 (parser_state::mark_completion_tag): Now methods.
9292 (prefixify_expression): Add last_struct parameter.
9293 (prefixify_subexp): Likewise.
9294 (parse_exp_1): Update.
9295 (parse_exp_in_context): Add cstate parameter. Update.
9296 (parse_expression_for_completion): Create an
9297 expr_completion_state.
9298 (null_post_parser): Add "completion" parameter.
9299 * p-exp.y: Update rules.
9300 (yylex): Update.
9301 * language.h (struct language_defn) <la_post_parser>: Add
9302 "completing" parameter.
9303 * go-exp.y: Update rules.
9304 (lex_one_token): Update.
9305 * expression.h (parse_completion): Don't declare.
9306 * d-exp.y: Update rules.
9307 (lex_one_token): Update rules.
9308 * c-exp.y: Update rules.
9309 (lex_one_token): Update.
9310 * ada-lang.c (resolve): Add "parse_completion" parameter.
9311 (resolve_subexp): Likewise.
9312 (ada_resolve_function): Likewise.
9313
9314 2019-04-04 Tom Tromey <tom@tromey.com>
9315
9316 * parser-defs.h (struct parser_state) <start_arglist,
9317 end_arglist>: New methods.
9318 <arglist_len, m_funcall_chain>: New members.
9319 (arglist_len, start_arglist, end_arglist): Don't declare.
9320 * parse.c (arglist_len, funcall_chain): Remove global.
9321 (start_arglist, end_arglist): Remove functions.
9322 (parse_exp_in_context): Update.
9323 * p-exp.y: Update rules.
9324 * m2-exp.y: Update rules.
9325 * go-exp.y: Update rules.
9326 * f-exp.y: Update rules.
9327 * d-exp.y: Update rules.
9328 * c-exp.y: Update rules.
9329
9330 2019-04-04 Tom Tromey <tom@tromey.com>
9331
9332 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9333 lex_operator, push_back>: New methods.
9334 Update all rules.
9335 (rust_parser::lex_hex, lex_escape): Rename and update.
9336 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9337 (rust_parser::lex_operator): Rename and update.
9338 (rust_parser::lex_number, rustyylex, rustyyerror)
9339 (rust_lex_test_init, rust_lex_test_sequence)
9340 (rust_lex_test_push_back, rust_lex_tests): Update.
9341 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9342 parameter.
9343 <lexptr, prev_lexptr>: New members.
9344 (lexptr, prev_lexptr): Don't declare.
9345 * parse.c (lexptr, prev_lexptr): Remove globals.
9346 (parse_exp_in_context): Update.
9347 * p-exp.y (yylex, yyerror): Update.
9348 * m2-exp.y (parse_number, yylex, yyerror): Update.
9349 * go-exp.y (lex_one_token, yyerror): Update.
9350 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9351 * d-exp.y (lex_one_token, yyerror): Update.
9352 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9353 (lex_one_token, yyerror): Update.
9354 * ada-lex.l (YY_INPUT): Update.
9355 (rewind_to_char): Update.
9356 * ada-exp.y (yyerror): Update.
9357
9358 2019-04-04 Tom Tromey <tom@tromey.com>
9359
9360 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9361 * parser-defs.h (struct parser_state) <parser_state>: Add new
9362 parameter.
9363 <comma_terminates>: New member.
9364 (comma_terminates): Don't declare global.
9365 * parse.c (comma_terminates): Remove global.
9366 (parse_exp_in_context): Update.
9367 * p-exp.y (yylex): Update.
9368 * m2-exp.y (yylex): Update.
9369 * go-exp.y (lex_one_token): Update.
9370 * f-exp.y (yylex): Update.
9371 * d-exp.y (lex_one_token): Update.
9372 * c-exp.y (lex_one_token): Update.
9373 * ada-lex.l: Update.
9374
9375 2019-04-04 Tom Tromey <tom@tromey.com>
9376
9377 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9378 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9379 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9380 * parser-defs.h (paren_depth): Don't declare.
9381 * parse.c (paren_depth): Remove global.
9382 (parse_exp_in_context): Update.
9383 * p-exp.y (paren_depth): New global.
9384 (pascal_parse): Initialize it.
9385 * m2-exp.y (paren_depth): New global.
9386 (m2_parse): Initialize it.
9387 * go-exp.y (paren_depth): New global.
9388 (go_parse): Initialize it.
9389 * f-exp.y (paren_depth): New global.
9390 (f_parse): Initialize it.
9391 * d-exp.y (paren_depth): New global.
9392 (d_parse): Initialize it.
9393 * c-exp.y (paren_depth): New global.
9394 (c_parse): Initialize it.
9395 * ada-lex.l (paren_depth): New global.
9396 (lexer_init): Initialize it.
9397
9398 2019-04-04 Tom Tromey <tom@tromey.com>
9399
9400 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9401 (rust_parser::convert_ast_to_type)
9402 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9403 * parser-defs.h (struct parser_state) <parser_state>: Add
9404 parameters. Initialize new members.
9405 <expression_context_block, expression_context_pc>: New members.
9406 * parse.c (expression_context_block, expression_context_pc):
9407 Remove globals.
9408 (parse_exp_in_context): Update.
9409 * p-exp.y: Update all rules.
9410 (yylex): Update.
9411 * m2-exp.y: Update all rules.
9412 (yylex): Update.
9413 * go-exp.y (yylex): Update.
9414 * f-exp.y (yylex): Update.
9415 * d-exp.y: Update all rules.
9416 (yylex): Update.
9417 * c-exp.y: Update all rules.
9418 (lex_one_token, classify_name, yylex, c_parse): Update.
9419 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9420
9421 2019-04-04 Tom Tromey <tom@tromey.com>
9422
9423 * gdbarch.h, gdbarch.c: Rebuild.
9424 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9425 * stap-probe.h:
9426 (struct stap_parse_info): Replace "parser_state" with
9427 "expr_builder".
9428 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9429 (parser_state): New class.
9430 * parse.c (expr_builder): Rename.
9431 (expr_builder::release): Rename.
9432 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9433 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9434 (write_exp_elt_longcst, write_exp_elt_floatcst)
9435 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9436 (write_exp_string_vector, write_exp_bitstring)
9437 (write_exp_msymbol, mark_struct_expression)
9438 (write_dollar_variable)
9439 (insert_type_address_space, increase_expout_size): Replace
9440 "parser_state" with "expr_builder".
9441 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9442 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9443 "parser_state" with "expr_builder".
9444
9445 2019-04-04 Tom Tromey <tom@tromey.com>
9446
9447 * rust-exp.y: Replace "parse_language" with method call.
9448 * p-exp.y:
9449 (yylex): Replace "parse_language" with method call.
9450 * m2-exp.y:
9451 (yylex): Replace "parse_language" with method call.
9452 * go-exp.y (classify_name): Replace "parse_language" with method
9453 call.
9454 * f-exp.y (yylex): Replace "parse_language" with method call.
9455 * d-exp.y (lex_one_token): Replace "parse_language" with method
9456 call.
9457 * c-exp.y:
9458 (lex_one_token, classify_name, yylex): Replace "parse_language"
9459 with method call.
9460 * ada-exp.y (find_primitive_type, type_char)
9461 (type_system_address): Replace "parse_language" with method call.
9462
9463 2019-04-04 Tom Tromey <tom@tromey.com>
9464
9465 * rust-exp.y: Replace "parse_gdbarch" with method call.
9466 * parse.c (write_dollar_variable, insert_type_address_space):
9467 Replace "parse_gdbarch" with method call.
9468 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9469 call.
9470 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9471 call.
9472 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9473 "parse_gdbarch" with method call.
9474 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9475 with method call.
9476 * f-exp.y (parse_type, parse_f_type, yylex): Replace
9477 "parse_gdbarch" with method call.
9478 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9479 "parse_gdbarch" with method call.
9480 * c-exp.y (parse_type, parse_number, classify_name): Replace
9481 "parse_gdbarch" with method call.
9482 * ada-lex.l: Replace "parse_gdbarch" with method call.
9483 * ada-exp.y (parse_type, find_primitive_type, type_char)
9484 (type_system_address): Replace "parse_gdbarch" with method call.
9485
9486 2019-04-04 Tom Tromey <tom@tromey.com>
9487
9488 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9489 * stap-probe.c (stap_parse_argument): Update.
9490 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9491 initial_size parameter.
9492 * rust-exp.y (rust_lex_tests): Update.
9493 * parse.c (parser_state): Update.
9494 (parse_exp_in_context): Update.
9495 * parser-defs.h (struct parser_state) <parser_state>: Remove
9496 "initial_size" parameter.
9497
9498 2019-04-04 Tom Tromey <tom@tromey.com>
9499
9500 * parser-defs.h (increase_expout_size): Don't declare.
9501 * parse.c (increase_expout_size): Now static.
9502
9503 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
9504
9505 * gnu-nat.c (gnu_nat_target::wait): Fix
9506 target_waitstatus_to_string call.
9507
9508 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9509
9510 * eval.c (evaluate_subexp_standard): Handle internal functions
9511 during Fortran function call handling.
9512
9513 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9514
9515 * NEWS: Mention new internal functions.
9516 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9517 (read_base_type): Use dwarf2_init_complex_target_type.
9518 * value.c (creal_internal_fn): New function.
9519 (cimag_internal_fn): New function.
9520 (_initialize_values): Register new internal functions.
9521
9522 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9523
9524 * infrun.c (stop_all_threads): If debug_infrun, always
9525 trace the wait status after wait_one, using
9526 target_waitstatus_to_string and target_pid_to_str.
9527 (handle_inferior_event): Replace various trace of
9528 wait status kind by a single trace.
9529 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9530 wait status kind image by target_waitstatus_to_string.
9531 * target/waitstatus.c (target_waitstatus_to_string): Fix
9532 obsolete comment.
9533
9534 2019-04-01 Tom Tromey <tromey@adacore.com>
9535
9536 PR symtab/23331:
9537 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9538
9539 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9540 Pedro Alves <palves@redhat.com>
9541
9542 * top.c (quit_force): Call 'finalize_values'.
9543 * value.c (finalize_values): New function.
9544 * value.h (finalize_values): Declare.
9545
9546 2019-03-30 Eli Zaretskii <eliz@gnu.org>
9547
9548 * NEWS: Announce $_gdb_major and $_gdb_minor.
9549
9550 * top.c (init_gdb_version_vars): New function.
9551 (gdb_init): Call init_gdb_version_vars.
9552
9553 2019-03-29 Tom Tromey <tromey@adacore.com>
9554
9555 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9556 help text. Remove dead code.
9557
9558 2019-03-29 Keith Seitz <keiths@redhat.com>
9559
9560 From Siddhesh Poyarekar:
9561 * f-lang.h (f77_get_upperbound): Return LONGEST.
9562 (f77_get_lowerbound): Likewise.
9563 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9564 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9565 print them.
9566 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9567 plongest to format print it.
9568 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9569 (f77_get_upperbound): Likewise.
9570 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9571 LOWER_BOUND to LONGEST.
9572 (f77_create_arrayprint_offset_tbl): Likewise.
9573
9574 2019-03-29 Keith Seitz <keiths@redhat.com>
9575
9576 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9577 %s/pulongest for TYPE_LENGTH instead of %d in format
9578 strings.
9579 * ada-typerint.c (ada_print_type): Likewise.
9580 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9581 * compile/compile-c-support.c (generate_register_struct): Likewise.
9582 * gdbtypes.c (recursive_dump_type): Likewise.
9583 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9584 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9585 instead of %d in format strings.
9586 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9587 to std::min to ULONGEST.
9588 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9589 instead of %d in format strings.
9590 * tracepoint.c (info_scope_command): Likewise.
9591 * typeprint.c (print_offset_data::update)
9592 (print_offset_data::finish): Likewise.
9593 * xtensa-tdep.c (xtensa_store_return_value)
9594 (xtensa_push_dummy_call): Likewise.
9595
9596 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9597
9598 * windows-nat.c (display_selector): Fixed format specifications
9599 for 64-bit Cygwin.
9600
9601 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9602
9603 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9604
9605 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9606
9607 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9608 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9609 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9610 (nios2_linux_init_abi): Install it.
9611
9612 2019-03-28 Alan Hayward <alan.hayward@arm.com>
9613
9614 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9615
9616 2019-03-28 Alan Hayward <alan.hayward@arm.com>
9617
9618 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9619
9620 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9621 Tom Tromey <tromey@adacore.com>
9622
9623 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9624
9625 2019-03-26 Joel Brobecker <brobecker@adacore.com>
9626
9627 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9628 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9629 method to compute the bounds of range types. Also print "[evaluated]"
9630 if the bounds' values come from a dynamic evaluation.
9631
9632 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9633
9634 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9635 whitespace when pretty printing is on.
9636
9637 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9638
9639 * ppc-linux-nat.c: Add include.
9640
9641 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9642
9643 * NEWS: Mention AArch64 Pointer Authentication.
9644
9645 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9646
9647 * arm-linux-nat.c: Add include.
9648
9649 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9650
9651 * source-cache.c (source_cache::get_source_lines): Re-read
9652 fullname after calling open_source_file.
9653
9654 2019-03-25 John Baldwin <jhb@FreeBSD.org>
9655
9656 * NEWS: Mention TLS support for FreeBSD.
9657
9658 2019-03-25 Tom Tromey <tromey@adacore.com>
9659
9660 * minsyms.c (BUNCH_SIZE): Update comment.
9661 (~minimal_symbol_reader): Remove old comment.
9662 (compact_minimal_symbols): Update comment.
9663 (minimal_symbol_reader::install): Remove old comment. Update
9664 other comments.
9665
9666 2019-03-25 Alan Hayward <alan.hayward@arm.com>
9667
9668 * s390-linux-nat.c: Add include.
9669
9670 2019-03-25 Alan Hayward <alan.hayward@arm.com>
9671
9672 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9673 Call linux_get_hwcap.
9674 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9675 Likewise.
9676 (aarch64_linux_get_hwcap): Remove function.
9677 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9678 declaration.
9679 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9680 linux_get_hwcap.
9681 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9682 * linux-tdep.c (linux_get_hwcap): Add function.
9683 (linux_get_hwcap2): Likewise.
9684 * linux-tdep.h (linux_get_hwcap): Add declaration.
9685 (linux_get_hwcap2): Likewise.
9686 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9687 (ppc_linux_get_hwcap2): Likewise.
9688 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9689 linux_get_hwcap.
9690 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9691 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9692 (ppc_linux_nat_target::read_description): Likewise.
9693 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9694 * s390-linux-nat.c: Likewise.
9695 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9696
9697 2019-03-24 Tom Tromey <tom@tromey.com>
9698
9699 * ada-lang.c (standard_lookup): Simplify initialization.
9700 (ada_lookup_symbol_nonlocal): Simplify return.
9701 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9702 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9703 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9704 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9705 initialization.
9706 * solib.c (solib_global_lookup): Simplify.
9707 * symtab.c (null_block_symbol): Remove.
9708 (symbol_cache_lookup): Simplify returns.
9709 (lookup_language_this): Simplify returns.
9710 (lookup_symbol_aux): Simplify return.
9711 (lookup_local_symbol): Simplify returns.
9712 (lookup_global_symbol_from_objfile): Simplify return.
9713 (lookup_symbol_in_objfile_symtabs)
9714 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9715 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9716 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9717 * cp-namespace.c (cp_lookup_bare_symbol)
9718 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9719 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9720 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9721 (cp_lookup_symbol_via_imports): Simplify initialization.
9722 (find_symbol_in_baseclass): Likewise.
9723 * symtab.h (null_block_symbol): Remove.
9724 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9725 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9726 (d_lookup_symbol_module): Likewise.
9727 (find_symbol_in_baseclass): Simplify initialization.
9728
9729 2019-03-24 Tom Tromey <tom@tromey.com>
9730
9731 * expression.h: Don't include symtab.h.
9732 (struct block): Forward declare.
9733
9734 2019-03-24 Tom Tromey <tom@tromey.com>
9735
9736 * c-exp.y (typebase): Remove casts.
9737 * gdbtypes.c (lookup_unsigned_typename, )
9738 (lookup_signed_typename): Remove cast.
9739 * eval.c (parse_to_comma_and_eval): Remove cast.
9740 * parse.c (write_dollar_variable): Remove cast.
9741 * block.h (struct block) <superblock>: Now const.
9742 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9743 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9744 (map_block): Make "block" const.
9745 * symfile.h (struct quick_symbol_functions)
9746 <map_matching_symbols>: Constify block argument to "callback".
9747 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9748 const.
9749 (find_pc_sect_compunit_symtab): Make "b" const.
9750 (find_symbol_at_address): Likewise.
9751 (search_symbols): Likewise.
9752 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9753 (dw2_debug_names_lookup_symbol): Likewise.
9754 (dw2_map_matching_symbols): Update.
9755 * p-valprint.c (pascal_val_print): Remove "block".
9756 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9757 (aux_add_nonlocal_symbols): Make "block" const.
9758 (resolve_subexp): Remove cast.
9759 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9760 const.
9761 (iterate_over_file_blocks): Likewise.
9762 * f-exp.y (%union) <bval>: Remove.
9763 * coffread.c (patch_opaque_types): Make "b" const.
9764 * spu-tdep.c (spu_catch_start): Make "block" const.
9765 * c-valprint.c (print_unpacked_pointer): Remove "block".
9766 * symmisc.c (dump_symtab_1): Make "b" const.
9767 (block_depth): Make "block" const.
9768 * d-exp.y (%union) <bval>: Remove.
9769 * cp-support.h (cp_lookup_rtti_type): Update.
9770 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9771 * psymtab.c (psym_lookup_symbol): Make "block" const.
9772 (maintenance_check_psymtabs): Make "b" const.
9773 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9774 (enumerate_locals, enumerate_args): Update.
9775 * python/py-symtab.c (stpy_global_block): Make "block" const.
9776 (stpy_static_block): Likewise.
9777 * inline-frame.c (block_starting_point_at): Make "new_block"
9778 const.
9779 * block.c (find_block_in_blockvector): Make return type const.
9780 (blockvector_for_pc_sect): Make "b" const.
9781 (find_block_in_blockvector): Make "b" const.
9782
9783 2019-03-23 Tom Tromey <tom@tromey.com>
9784
9785 * varobj.c (varobj_create): Update.
9786 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9787 * printcmd.c (display_command, do_one_display): Don't reset
9788 innermost_block.
9789 * parser-defs.h (enum innermost_block_tracker_type): Move to
9790 expression.h.
9791 (innermost_block): Update comment.
9792 * parse.c (parse_exp_1): Add tracker_types parameter.
9793 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9794 tracker_types parameter. Reset innermost_block.
9795 (parse_exp_in_context): Remove.
9796 (parse_expression_for_completion): Update.
9797 * objfiles.c (~objfile): Don't reset expression_context_block or
9798 innermost_block.
9799 * expression.h (enum innermost_block_tracker_type): Move from
9800 parser-defs.h.
9801 (parse_exp_1): Add tracker_types parameter.
9802 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9803 reset innermost_block.
9804
9805 2019-03-23 Tom Tromey <tom@tromey.com>
9806
9807 * objfiles.h: Include bcache.h.
9808
9809 2019-03-23 Tom Tromey <tom@tromey.com>
9810
9811 * linespec.c (get_current_search_block): Use
9812 scoped_restore_current_language.
9813 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9814
9815 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9816 Jiong Wang <jiong.wang@arm.com>
9817
9818 * aarch64-linux-tdep.c
9819 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9820 section.
9821 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9822
9823 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9824 Jiong Wang <jiong.wang@arm.com>
9825
9826 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9827 instructions.
9828 (aarch64_analyze_prologue_test): Add PACIASP test.
9829 (aarch64_prologue_prev_register): Unmask PC value.
9830
9831 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9832 Jiong Wang <jiong.wang@arm.com>
9833
9834 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9835 (aarch64_dwarf2_prev_register): Unmask PC value.
9836 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9837 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9838 DW_CFA_AARCH64_negate_ra_state.
9839 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9840
9841 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9842 Jiong Wang <jiong.wang@arm.com>
9843
9844 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9845 registers.
9846 (aarch64_pseudo_register_name): Likewise.
9847 (aarch64_pseudo_register_type): Likewise.
9848 (aarch64_pseudo_register_reggroup_p): Likewise.
9849 (aarch64_gdbarch_init): Add pauth registers.
9850 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9851 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9852 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9853 (struct gdbarch_tdep): Add regnum for ra_state.
9854
9855 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9856 Jiong Wang <jiong.wang@arm.com>
9857
9858 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9859
9860 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9861 Jiong Wang <jiong.wang@arm.com>
9862
9863 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9864 function.
9865 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9866 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9867 (aarch64_gdbarch_init): Add puth registers.
9868 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9869 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9870 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9871
9872 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9873 Jiong Wang <jiong.wang@arm.com>
9874
9875 * aarch64-linux-nat.c
9876 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9877 * aarch64-linux-tdep.c
9878 (aarch64_linux_core_read_description): Likewise.
9879 (aarch64_linux_get_hwcap): New function.
9880 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9881 (aarch64_linux_get_hwcap): New declaration.
9882
9883 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9884 Jiong Wang <jiong.wang@arm.com>
9885
9886 * aarch64-linux-nat.c
9887 (aarch64_linux_nat_target::read_description): Add pauth param.
9888 * aarch64-linux-tdep.c
9889 (aarch64_linux_core_read_description): Likewise.
9890 * aarch64-tdep.c (struct target_desc): Add in pauth.
9891 (aarch64_read_description): Add pauth param.
9892 (aarch64_gdbarch_init): Likewise.
9893 * aarch64-tdep.h (aarch64_read_description): Likewise.
9894 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9895 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9896 * features/Makefile: Add new files.
9897 * features/aarch64-pauth.c: New file.
9898 * features/aarch64-pauth.xml: New file.
9899
9900 2019-03-20 Tom Tromey <tromey@adacore.com>
9901
9902 * infrun.c (handle_inferior_event): Rename from
9903 handle_inferior_event_1. Create a scoped_value_mark.
9904 (handle_inferior_event): Remove.
9905
9906 2019-03-19 Tom Tromey <tromey@adacore.com>
9907
9908 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9909 * infrun.h (print_stop_event): Add "displays" parameter.
9910 * infrun.c (print_stop_event): Add "displays" parameter.
9911
9912 2019-03-19 Pedro Alves <palves@redhat.com>
9913
9914 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9915 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9916 to -1. Fix TABs vs spaces.
9917 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9918 * tui/tui-out.h (tui_ui_out) Add intro comments.
9919 <m_line, m_start_of_line>: In-class initialize, and add describing
9920 comment.
9921
9922 2019-03-18 Alan Hayward <alan.hayward@arm.com>
9923
9924 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9925 variable names.
9926 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9927
9928 2019-03-18 Pedro Alves <palves@redhat.com>
9929 Eli Zaretskii <eliz@gnu.org>
9930
9931 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9932 m_line and m_start_of_line.
9933
9934 2019-03-18 Eli Zaretskii <eliz@gnu.org>
9935
9936 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9937 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9938 it returns a newline. This fixes a regression in TU mode, whereby
9939 the next line is output on the same screen line as the user input.
9940
9941 2019-03-18 Tom Tromey <tromey@adacore.com>
9942
9943 * minsyms.c (minimal_symbol_reader::install): Remove call to
9944 obstack_blank.
9945
9946 2019-03-18 Pedro Alves <palves@redhat.com>
9947
9948 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9949 New globals.
9950 (apply_style): New, factored out from ...
9951 (apply_ansi_escape): ... this. Handle reverse video mode.
9952 (tui_set_reverse_mode): New function.
9953 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9954 * tui/tui-winsource.c (tui_show_source_line): Use
9955 tui_set_reverse_mode instead of setting A_STANDOUT.
9956 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9957 New setter methods.
9958
9959 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
9960
9961 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9962 Handle tabs.
9963
9964 2019-03-18 Tom Tromey <tromey@adacore.com>
9965
9966 * ada-lang.c (empty_array): Add "high" parameter.
9967 (ada_evaluate_subexp): Update.
9968
9969 2019-03-17 Sergei Trofimovich <siarheit@google.com>
9970
9971 * unittests/string_view-selftests.c: Define
9972 _initialize_string_view_selftests unconditionally.
9973
9974 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9975
9976 PR gdb/24350
9977 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9978
9979 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9980
9981 PR gdb/24351
9982 * windows-nat.c (display_selector): Fix format specifiers.
9983
9984 2019-03-17 Eli Zaretskii <eliz@gnu.org>
9985
9986 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9987 tui_refill_source_window instead of tui_refresh_win, to update the
9988 current execution line. This fixes redisplay of the current line
9989 when stepping through the code with "next" or "step".
9990
9991 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9992
9993 * source-cache.c (source_cache::get_source_lines): Call
9994 find_source_lines to initialize s->nlines. This fixes vertical
9995 scrolling of TUI source window when the DOWN arrow is pressed.
9996
9997 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9998
9999 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10000 linux-thread-db.c (_initialize_thread_db): Likewise.
10001
10002 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10003
10004 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10005 wclrtoeol in tui_show_source_line". This reverts changes made in
10006 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10007
10008 2019-03-15 Tom Tromey <tom@tromey.com>
10009
10010 * symtab.h (struct minimal_symbol): Derive from
10011 general_symbol_info.
10012 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10013 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10014 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10015 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10016 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10017 (MSYMBOL_SEARCH_NAME): Update.
10018 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10019 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10020 * minsyms.c (minimal_symbol_reader::record_full): Update.
10021
10022 2019-03-15 Tom Tromey <tom@tromey.com>
10023
10024 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10025
10026 2019-03-15 Tom Tromey <tom@tromey.com>
10027
10028 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10029 unique_xmalloc_ptr.
10030 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10031 Update.
10032 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10033 (build_minimal_symbol_hash_tables)
10034 (minimal_symbol_reader::install): Update.
10035
10036 2019-03-15 Tom Tromey <tom@tromey.com>
10037
10038 * symtab.c (create_demangled_names_hash): Update.
10039 (symbol_set_names): Update.
10040 * objfiles.h (struct objfile_per_bfd_storage)
10041 <demangled_names_hash>: Now an htab_up.
10042 * objfiles.c (objfile_per_bfd_storage): Simplify.
10043
10044 2019-03-15 Tom Tromey <tom@tromey.com>
10045
10046 * objfiles.h (struct objfile_per_bfd_storage): Declare
10047 destructor.
10048 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10049 New.
10050 (get_objfile_bfd_data): Use new. Don't initialize
10051 language_of_main.
10052 (free_objfile_per_bfd_storage): Remove.
10053 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10054
10055 2019-03-15 Tom Tromey <tom@tromey.com>
10056
10057 * symfile.c (reread_symbols): Update.
10058 * objfiles.c (objfile::objfile): Update.
10059 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10060 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10061 comment.
10062 (minimal_symbol_reader::install): Update.
10063 (terminate_minimal_symbol_table): Remove.
10064 * jit.c (jit_object_close_impl): Update.
10065
10066 2019-03-15 Tom Tromey <tom@tromey.com>
10067
10068 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10069 initializations.
10070
10071 2019-03-15 Tom Tromey <tom@tromey.com>
10072
10073 * objfiles.h (struct objfile_per_bfd_storage)
10074 <demangled_hash_languages>: Now a bitset.
10075 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10076 (lookup_minimal_symbol): Update.
10077
10078 2019-03-15 Tom Tromey <tom@tromey.com>
10079
10080 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10081 Don't return the symbol.
10082 * coffread.c (record_minimal_symbol): Use record_full.
10083
10084 2019-03-14 Eli Zaretskii <eliz@gnu.org>
10085
10086 The MS-Windows port of ncurses fails to switch to a color pair if
10087 one or both of the colors are the implicit default colors. This
10088 change records the default colors when TUI is initialized, and
10089 then specifies them explicitly when a color pair uses the default
10090 colors. This allows color styling in TUI mode on MS-Windows.
10091
10092 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10093 ncurses_norm_attr.
10094 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10095 colors in ncurses_norm_attr.
10096 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10097 "none", replace it with the default color recorded in
10098 ncurses_norm_attr.
10099
10100 2019-03-14 Tom Tromey <tromey@adacore.com>
10101
10102 * source-cache.h (class source_cache) <get_source_lines>: Return
10103 std::string.
10104 * source-cache.c (source_cache::extract_lines): Handle case where
10105 first_pos==npos. Return std::string.
10106 (source_cache::get_source_lines): Update.
10107
10108 2019-03-14 Tom Tromey <tromey@adacore.com>
10109
10110 * NEWS: Add item for "style sources" commands.
10111 * source-cache.c (source_cache::get_source_lines): Check
10112 source_styling.
10113 * cli/cli-style.c (source_styling): New global.
10114 (_initialize_cli_style): Add "style sources" commands.
10115 (show_style_sources): New function.
10116 * cli/cli-style.h (source_styling): Declare.
10117
10118 2019-03-14 Pedro Alves <palves@redhat.com>
10119 Tom Tromey <tromey@adacore.com>
10120
10121 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10122 * tui/tui-winsource.c (tui_refill_source_window): New function,
10123 from...
10124 (tui_horizontal_source_scroll): ... here. Move some logic.
10125 * cli/cli-style.c (set_style_enabled): Notify new observable.
10126 * tui/tui-hooks.c (tui_redisplay_source): New function.
10127 (tui_attach_detach_observers): Attach or detach
10128 tui_redisplay_source.
10129 * observable.h (source_styling_changed): New observable.
10130 * observable.c: Define source_styling_changed observable.
10131
10132 2019-03-13 Tom Tromey <tromey@adacore.com>
10133
10134 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10135 (i386_gnu_nat_target::store_registers): Update.
10136 * target-debug.h (target_debug_print_std_string): New macro.
10137 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10138 * windows-tdep.c (display_one_tib): Update.
10139 * tui/tui-stack.c (tui_make_status_line): Update.
10140 * top.c (print_inferior_quit_action): Update.
10141 * thread.c (thr_try_catch_cmd): Update.
10142 (add_thread_with_info): Update.
10143 (thread_target_id_str): Update.
10144 (thr_try_catch_cmd): Update.
10145 (thread_command): Update.
10146 (thread_find_command): Update.
10147 * record-btrace.c (record_btrace_target::info_record)
10148 (record_btrace_resume_thread, record_btrace_target::resume)
10149 (record_btrace_cancel_resume, record_btrace_step_thread)
10150 (record_btrace_target::wait, record_btrace_target::wait)
10151 (record_btrace_target::wait, record_btrace_target::stop): Update.
10152 * progspace.c (print_program_space): Update.
10153 * process-stratum-target.c
10154 (process_stratum_target::thread_address_space): Update.
10155 * linux-fork.c (linux_fork_mourn_inferior)
10156 (detach_checkpoint_command, info_checkpoints_command)
10157 (linux_fork_context): Update.
10158 (linux_fork_detach): Update.
10159 (class scoped_switch_fork_info): Update.
10160 (delete_checkpoint_command): Update.
10161 * infrun.c (follow_fork_inferior): Update.
10162 (follow_fork_inferior): Update.
10163 (proceed_after_vfork_done): Update.
10164 (handle_vfork_child_exec_or_exit): Update.
10165 (follow_exec): Update.
10166 (displaced_step_prepare_throw): Update.
10167 (displaced_step_restore): Update.
10168 (start_step_over): Update.
10169 (resume_1): Update.
10170 (clear_proceed_status_thread): Update.
10171 (proceed): Update.
10172 (print_target_wait_results): Update.
10173 (do_target_wait): Update.
10174 (context_switch): Update.
10175 (stop_all_threads): Update.
10176 (restart_threads): Update.
10177 (finish_step_over): Update.
10178 (handle_signal_stop): Update.
10179 (switch_back_to_stepped_thread): Update.
10180 (keep_going_pass_signal): Update.
10181 (print_exited_reason): Update.
10182 (normal_stop): Update.
10183 * inferior.c (inferior_pid_to_str): Change return type.
10184 (print_selected_inferior): Update.
10185 (add_inferior): Update.
10186 (detach_inferior): Update.
10187 * dummy-frame.c (fprint_dummy_frames): Update.
10188 * dcache.c (dcache_info_1): Update.
10189 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10190 (btrace_fetch, btrace_clear): Update.
10191 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10192 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10193 type.
10194 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10195 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10196 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10197 * gdbarch.c, gdbarch.h: Rebuild.
10198 * gdbarch.sh (core_pid_to_str): Change return type.
10199 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10200 return type.
10201 (windows_nat_target::pid_to_str): Change return type.
10202 (windows_delete_thread): Update.
10203 (windows_nat_target::attach): Update.
10204 (windows_nat_target::files_info): Update.
10205 * target-delegates.c: Rebuild.
10206 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10207 return type.
10208 (sol_thread_target::pid_to_str): Change return type.
10209 * remote.c (class remote_target) <pid_to_str>: Change return
10210 type.
10211 (remote_target::pid_to_str): Change return type.
10212 (extended_remote_target::attach, remote_target::remote_stop_ns)
10213 (remote_target::remote_notif_remove_queued_reply)
10214 (remote_target::push_stop_reply, remote_target::disable_btrace):
10215 Update.
10216 (extended_remote_target::attach): Update.
10217 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10218 type.
10219 (gdbsim_target::pid_to_str): Change return type.
10220 * ravenscar-thread.c (struct ravenscar_thread_target)
10221 <pid_to_str>: Change return type.
10222 (ravenscar_thread_target::pid_to_str): Change return type.
10223 * procfs.c (class procfs_target) <pid_to_str>: Change return
10224 type.
10225 (procfs_target::pid_to_str): Change return type.
10226 (procfs_target::attach): Update.
10227 (procfs_target::detach): Update.
10228 (procfs_target::fetch_registers): Update.
10229 (procfs_target::store_registers): Update.
10230 (procfs_target::wait): Update.
10231 (procfs_target::files_info): Update.
10232 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10233 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10234 return type.
10235 (nto_procfs_target::pid_to_str): Change return type.
10236 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10237 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10238 return type.
10239 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10240 (exit_lwp): Update.
10241 (attach_proc_task_lwp_callback, get_detach_signal)
10242 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10243 (linux_nat_target::resume, wait_lwp, stop_callback)
10244 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10245 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10246 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10247 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10248 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10249 type.
10250 (inf_ptrace_target::attach): Update.
10251 (inf_ptrace_target::files_info): Update.
10252 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10253 type.
10254 (go32_nat_target::pid_to_str): Change return type.
10255 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10256 (gnu_nat_target::wait): Update.
10257 (gnu_nat_target::wait): Update.
10258 (gnu_nat_target::resume): Update.
10259 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10260 (fbsd_nat_target::wait): Update.
10261 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10262 type.
10263 (darwin_nat_target::attach): Update.
10264 * corelow.c (class core_target) <pid_to_str>: Change return type.
10265 (core_target::pid_to_str): Change return type.
10266 * target.c (normal_pid_to_str): Change return type.
10267 (default_pid_to_str): Likewise.
10268 (target_pid_to_str): Change return type.
10269 (target_translate_tls_address): Update.
10270 (target_announce_detach): Update.
10271 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10272 return type.
10273 (bsd_uthread_target::pid_to_str): Change return type.
10274 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10275 type.
10276 (bsd_kvm_target::pid_to_str): Change return type.
10277 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10278 return type.
10279 (aix_thread_target::pid_to_str): Change return type.
10280 * target.h (struct target_ops) <pid_to_str>: Change return type.
10281 (target_pid_to_str, normal_pid_to_str): Likewise.
10282 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10283 type.
10284 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10285 type.
10286 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10287 return type.
10288 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10289 type.
10290 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10291 type.
10292 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10293 return type.
10294
10295 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10296
10297 * NEWS: Mention that the new default MI version is 3. Mention
10298 changes to the output of commands and events that deal with
10299 multi-location breakpoints.
10300 * breakpoint.c: Include "mi/mi-out.h".
10301 (print_one_breakpoint): Change output syntax if using MI version
10302 >= 3.
10303 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10304 New.
10305 (mi_multi_location_breakpoint_output_fixed): New.
10306 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10307 (mi_cmd_fix_multi_location_breakpoint_output): New.
10308 (mi_multi_location_breakpoint_output_fixed): New.
10309 * mi/mi-cmds.c (mi_cmds): Register command
10310 -fix-multi-location-breakpoint-output.
10311 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10312 interpreter "mi".
10313
10314 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10315
10316 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10317 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10318 instantiate mi_ui_out based on interpreter name.
10319 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10320 * mi/mi-main.c (mi_load_progress): Likewise.
10321
10322 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10323
10324 * NEWS: Combine separate "New targets" sections for 8.3.
10325
10326 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10327
10328 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10329 (ppcfbsd_init_abi): Install gdbarch
10330 "fetch_tls_load_module_address" and "get_thread_local_address"
10331 methods.
10332
10333 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10334
10335 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10336 (riscv_fbsd_init_abi): Install gdbarch
10337 "fetch_tls_load_module_address" and "get_thread_local_address"
10338 methods.
10339
10340 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10341
10342 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10343 (i386fbsd_init_abi): Install gdbarch
10344 "fetch_tls_load_module_address" and "get_thread_local_address"
10345 methods.
10346
10347 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10348
10349 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10350 (amd64fbsd_init_abi): Install gdbarch
10351 "fetch_tls_load_module_address" and "get_thread_local_address"
10352 methods.
10353
10354 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10355
10356 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10357 (struct fbsd_pspace_data): New type.
10358 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10359 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10360 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10361 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10362 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10363
10364 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10365
10366 * gdbtypes.c (lookup_struct_elt): New function.
10367 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10368 * gdbtypes.h (struct struct_elt): New type.
10369 (lookup_struct_elt): New prototype.
10370
10371 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10372
10373 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10374 remove disabled code block.
10375
10376 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10377
10378 * gdbarch.sh (get_thread_local_address): New method.
10379 * gdbarch.h, gdbarch.c: Regenerate.
10380 * target.c (target_translate_tls_address): Use
10381 gdbarch_get_thread_local_address if present instead of
10382 target::get_thread_local_address.
10383
10384 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10385
10386 * target.h (target::get_thread_local_address): Update comment.
10387
10388 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10389
10390 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10391 objfile->separate_debug_objfile_backlink if not NULL.
10392
10393 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10394
10395 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10396 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10397 (amd64bsd_store_inferior_registers): Likewise.
10398 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10399 Enable segment base registers.
10400 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10401 PT_GETFSBASE and PT_GETGSBASE.
10402 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10403 PT_SETGSBASE.
10404 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10405 segment base registers.
10406 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10407
10408 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10409
10410 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10411 Update calls to i386_target_description to add 'segments'
10412 parameter.
10413 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10414 add segment base registers.
10415 * arch/i386.c (i386_create_target_description): Add 'segments'
10416 parameter to enable segment base registers.
10417 * arch/i386.h (i386_create_target_description): Likewise.
10418 * features/i386/32bit-segments.xml: New file.
10419 * features/i386/32bit-segments.c: Generate.
10420 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10421 call to i386_target_description to add 'segments' parameter.
10422 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10423 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10424 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10425 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10426 if feature is present.
10427 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10428 Add 'segments' parameter to call to i386_target_description.
10429 (i386_target_description): Add 'segments' parameter to enable
10430 segment base registers.
10431 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10432 to call to i386_target_description.
10433 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10434 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10435 Define I386_NUM_REGS.
10436 (i386_target_description): Add 'segments' parameter to enable
10437 segment base registers.
10438
10439 2019-03-12 Eli Zaretskii <eliz@gnu.org>
10440
10441 PR/24325
10442 * source-cache.c: #undef open and close, to avoid unresolved
10443 externals during linking.
10444
10445 2019-03-12 Tom Tromey <tromey@adacore.com>
10446
10447 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10448 const. Add initializers.
10449 (_initialize_remote): Don't initialize ptid globals.
10450
10451 2019-03-12 Pedro Alves <palves@redhat.com>
10452
10453 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10454
10455 2019-03-12 Pedro Alves <palves@redhat.com>
10456
10457 * cp-name-parser.y (main): Remove unused 'len' variable.
10458
10459 2019-03-12 Tom Tromey <tromey@adacore.com>
10460
10461 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10462 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10463
10464 2019-03-12 Tom Tromey <tromey@adacore.com>
10465
10466 * linux-nat.c (iterate_over_lwps): Update.
10467 (stop_callback): Remove parameter.
10468 (stop_wait_callback, detach_callback, resume_set_callback)
10469 (select_singlestep_lwp_callback, set_ignore_sigint)
10470 (status_callback, resumed_callback, resume_clear_callback)
10471 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10472 data parameter.
10473 (linux_nat_target::detach, linux_nat_target::resume)
10474 (linux_stop_and_wait_all_lwps, select_event_lwp)
10475 (linux_nat_filter_event, linux_nat_wait_1)
10476 (linux_nat_target::kill, linux_nat_target::stop)
10477 (linux_nat_target::stop): Update.
10478 (linux_nat_resume_callback): Change type.
10479 (resume_stopped_resumed_lwps, count_events_callback)
10480 (select_event_lwp_callback): Likewise.
10481 (linux_stop_lwp, linux_nat_stop_lwp): Update.
10482 * arm-linux-nat.c (struct update_registers_data): Remove.
10483 (update_registers_callback): Change type.
10484 (arm_linux_insert_hw_breakpoint1): Update.
10485 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10486 parameter.
10487 (x86_linux_dr_set_addr): Update.
10488 (x86_linux_dr_set_control): Update.
10489 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10490 (iterate_over_lwps): Use gdb::function_view.
10491 * nat/aarch64-linux-hw-point.c (struct
10492 aarch64_dr_update_callback_param): Remove.
10493 (debug_reg_change_callback): Change type.
10494 (aarch64_notify_debug_reg_change): Update.
10495 * s390-linux-nat.c (s390_refresh_per_info): Update.
10496
10497 2019-03-11 Tom Tromey <tromey@adacore.com>
10498
10499 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10500 redundant assignment to "this_cu".
10501
10502 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10503
10504 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10505
10506 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10507
10508 * gdbtypes.c (rank_one_type_parm_set): New function extracted
10509 from...
10510 (rank_one_type): ... this.
10511
10512 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10513
10514 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10515 from...
10516 (rank_one_type): ... this.
10517
10518 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10519
10520 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10521 from...
10522 (rank_one_type): ... this.
10523
10524 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10525
10526 * gdbtypes.c (rank_one_type_parm_float): New function extracted
10527 from...
10528 (rank_one_type): ... this.
10529
10530 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10531
10532 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10533 from...
10534 (rank_one_type): ... this.
10535
10536 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10537
10538 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10539 from...
10540 (rank_one_type): ... this.
10541
10542 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10543
10544 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10545 from...
10546 (rank_one_type): ... this.
10547
10548 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10549
10550 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10551 from...
10552 (rank_one_type): ... this.
10553
10554 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10555
10556 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10557 from...
10558 (rank_one_type): ... this.
10559
10560 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10561
10562 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10563 from...
10564 (rank_one_type): ... this.
10565
10566 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10567
10568 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10569 from...
10570 (rank_one_type): ... this.
10571
10572 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10573
10574 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10575 from...
10576 (rank_one_type): ... this.
10577
10578 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10579
10580 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10581 inferior-events' shows the example events.
10582
10583 2019-03-08 Eli Zaretskii <eliz@gnu.org>
10584
10585 Support styling on native MS-Windows console
10586
10587 PR/24315
10588 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10589 on MS-Windows if $TERM is not defined.
10590
10591 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10592
10593 * posix-hdep.c (gdb_console_fputs):
10594 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10595 functions.
10596 * ui-file.h (gdb_console_fputs): Add prototype.
10597
10598 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10599 back to fputs only if the former returns zero.
10600
10601 2019-03-07 Tom Tromey <tom@tromey.com>
10602
10603 * symmisc.c (print_symbol_bcache_statistics): Update.
10604 (print_objfile_statistics): Update.
10605 * symfile.c (allocate_symtab): Update.
10606 * stabsread.c: Don't include bcache.h.
10607 * psymtab.h (struct psymbol_bcache): Don't declare.
10608 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10609 (psymbol_bcache_init, psymbol_bcache_free)
10610 (psymbol_bcache_get_bcache): Don't declare.
10611 * psymtab.c (struct psymbol_bcache): Remove.
10612 (psymtab_storage::psymtab_storage): Update.
10613 (psymtab_storage::~psymtab_storage): Update.
10614 (psymbol_bcache_init, psymbol_bcache_free)
10615 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10616 (add_psymbol_to_bcache): Update.
10617 (allocate_psymtab): Update.
10618 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10619 macro_cache>: No longer pointers.
10620 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10621 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10622 * macrotab.c (macro_bcache): Update.
10623 * macroexp.c: Don't include bcache.h.
10624 * gdbtypes.c (check_types_worklist): Update.
10625 (types_deeply_equal): Remove TRY/CATCH. Update.
10626 * elfread.c (elf_symtab_read): Update.
10627 * dwarf2read.c: Don't include bcache.h.
10628 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10629 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10630 (print_bcache_statistics, bcache_memory_used): Don't declare.
10631 (struct bcache): Move from bcache.c. Add constructor, destructor,
10632 methods. Rename all data members.
10633 * bcache.c (struct bcache): Move to bcache.h.
10634 (bcache::expand_hash_table): Rename from expand_hash_table.
10635 (bcache): Remove.
10636 (bcache::insert): Rename from bcache_full.
10637 (bcache::compare): Rename from bcache_compare.
10638 (bcache_xmalloc): Remove.
10639 (bcache::~bcache): Rename from bcache_xfree.
10640 (bcache::print_statistics): Rename from print_bcache_statistics.
10641 (bcache::memory_used): Rename from bcache_memory_used.
10642
10643 2019-03-07 Pedro Alves <palves@redhat.com>
10644
10645 * infrun.c (normal_stop): Also check for
10646 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10647
10648 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10649
10650 * f-lang.c (value_from_host_double): Moved to...
10651 * value.c (value_from_host_double): ...here.
10652 * value.h (value_from_host_double): Declare.
10653 * guile/scm-math.c (vlscm_convert_typed_number): Use
10654 value_from_host_double.
10655 (vlscm_convert_number): Likewise.
10656 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10657 * python/py-value.c (convert_value_from_python): Likewise.
10658
10659 2019-03-06 Tom Tromey <tom@tromey.com>
10660
10661 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10662
10663 2019-03-06 Tom Tromey <tom@tromey.com>
10664
10665 * utils.h (free_current_contents): Don't declare.
10666 * utils.c (free_current_contents): Remove.
10667
10668 2019-03-06 Tom Tromey <tom@tromey.com>
10669
10670 * top.c (quit_force): Update.
10671 * main.c (captured_command_loop): Update.
10672 * common/new-op.c (operator new): Update.
10673 * common/common-exceptions.c (struct catcher)
10674 <save_cleanup_chain>: Remove member.
10675 (exceptions_state_mc_init): Update.
10676 (exception_try_scope_entry): Return nullptr.
10677 (exception_try_scope_exit, exception_rethrow)
10678 (throw_exception_sjlj, throw_exception_cxx): Update.
10679 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10680 (all_cleanups, do_cleanups, discard_cleanups)
10681 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10682 (restore_cleanups, restore_final_cleanups): Don't declare.
10683 (do_final_cleanups): Remove parameter.
10684 * common/cleanups.c (cleanup_chain, make_cleanup)
10685 (make_cleanup_dtor, all_cleanups, do_cleanups)
10686 (discard_my_cleanups, discard_cleanups)
10687 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10688 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10689 (null_cleanup): Remove.
10690 (do_final_cleanups): Remove parameter.
10691
10692 2019-03-06 Tom Tromey <tom@tromey.com>
10693
10694 * remote.c (remote_target::remote_parse_stop_reply): Use
10695 unique_xmalloc_ptr.
10696
10697 2019-03-06 Tom Tromey <tom@tromey.com>
10698
10699 * stabsread.c (struct stabs_field_info): Rename from field_info.
10700 <list, fnlist>: Add initializers.
10701 <obstack>: New member.
10702 (read_member_functions, read_struct_fields, read_baseclasses):
10703 Allocate on obstack. Don't use cleanups.
10704 (read_one_struct_field, read_member_functions, read_struct_fields)
10705 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10706 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10707 (read_struct_type): Update.
10708
10709 2019-03-06 Tom Tromey <tom@tromey.com>
10710
10711 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10712 * common/filestuff.h (make_cleanup_close): Don't declare.
10713 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10714 Remove.
10715
10716 2019-03-06 Tom Tromey <tom@tromey.com>
10717
10718 * solib-aix.c: Use make_scope_exit.
10719
10720 2019-03-06 Tom Tromey <tom@tromey.com>
10721
10722 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10723 Use make_scope_exit.
10724
10725 2019-03-06 Tom Tromey <tom@tromey.com>
10726
10727 * solib-svr4.c (disable_probes_interface): Remove parameter.
10728 (svr4_handle_solib_event): Use make_scope_exit.
10729
10730 2019-03-06 Tom Tromey <tom@tromey.com>
10731
10732 * remote.c (struct stop_reply_deleter): Remove.
10733 (stop_reply_up): Update.
10734 (struct stop_reply): Derive from notif_event. Don't typedef.
10735 <regcache>: Now a std::vector.
10736 (stop_reply_xfree): Remove.
10737 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10738 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10739 (remote_target::discard_pending_stop_replies): Use delete.
10740 (remote_target::remote_parse_stop_reply): Update.
10741 (remote_target::process_stop_reply): Update.
10742 * remote-notif.h (struct notif_event): Add virtual destructor.
10743 Remove "dtr" member.
10744 (struct notif_client) <alloc_event>: Return a unique_ptr.
10745 (notif_event_xfree): Don't declare.
10746 (notif_event_up): New typedef.
10747 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10748 (notif_event_xfree, do_notif_event_xfree): Remove.
10749 (remote_notif_state_xfree): Update.
10750
10751 2019-03-06 Tom Tromey <tom@tromey.com>
10752
10753 * infrun.c (displaced_step_clear_cleanup): Now a
10754 forward_scope_exit type.
10755 (displaced_step_prepare_throw): Update.
10756 (displaced_step_fixup): Update.
10757
10758 2019-03-06 Tom Tromey <tom@tromey.com>
10759
10760 * inferior.h (class inferior): Update comment.
10761 * gdbthread.h (class thread_info): Update comment.
10762
10763 2019-03-06 Joel Brobecker <brobecker@adacore.com>
10764 Tom Tromey <tom@tromey.com>
10765
10766 * stabsread.h (struct stab_section_list): Remove.
10767 (coffstab_build_psymtabs): Update.
10768 * dbxread.c (symbuf_sections): Now a std::vector.
10769 (sect_idx): New global.
10770 (fill_symbuf): Update.
10771 (coffstab_build_psymtabs): Change type of stabsects parameter.
10772 Update.
10773 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10774 std::vector.
10775 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10776 (coff_locate_sections): Update.
10777 (coff_symfile_read): Remove cleanups. Update.
10778 (init_stringtab): Add storage parameter.
10779 (free_stringtab, free_stringtab_cleanup): Remove.
10780 (init_lineno): Add storage parameter.
10781 (free_linetab, free_linetab_cleanup): Remove.
10782
10783 2019-03-06 Pedro Alves <palves@redhat.com>
10784
10785 * linux-fork.c (fork_info::clobber_regs): Delete.
10786 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10787 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10788 comment. Adjust.
10789 (scoped_switch_fork_info::scoped_switch_fork_info)
10790 (checkpoint_command, linux_fork_context): Adjust
10791 fork_save_infrun_state calls.
10792
10793 2019-03-06 Pedro Alves <palves@redhat.com>
10794
10795 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10796 (inf_has_multiple_threads): Return 'bool' and rewrite using
10797 inferior_info::threads().
10798
10799 2019-03-06 Pedro Alves <palves@redhat.com>
10800
10801 * linux-fork.c: Include <list>.
10802 (fork_list): Now a std::list instance.
10803 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10804 (forks_exist_p, find_last_fork): Adjust.
10805 (new_fork): Delete.
10806 (one_fork_p): New.
10807 (add_fork): Adjust.
10808 (free_fork): Delete, folded into fork_info::~fork_info().
10809 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10810 Adjust.
10811 (init_fork_list): Delete.
10812 (linux_fork_killall, linux_fork_mourn_inferior)
10813 (linux_fork_detach, info_checkpoints_command): Adjust.
10814 (_initialize_linux_fork): No longer call init_fork_list.
10815
10816 2019-03-06 Pedro Alves <palves@redhat.com>
10817
10818 * linux-fork.c (new_fork): New, split out of ...
10819 (add_fork): ... this. Return void. Move "first fork" special
10820 case from here, to ...
10821 (checkpoint_command): ... here.
10822 * linux-linux.h (add_fork): Return void.
10823
10824 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10825
10826 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10827
10828 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10829 Chris January <chris.january@arm.com>
10830 David Lecomber <david.lecomber@arm.com>
10831
10832 * f-exp.y: New token, UNOP_INTRINSIC.
10833 (exp): New pattern using UNOP_INTRINSIC token.
10834 (f77_keywords): Add 'abs' keyword.
10835 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10836 (value_from_host_double): New function.
10837 (evaluate_subexp_f): Support UNOP_ABS.
10838
10839 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10840
10841 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10842 types.
10843
10844 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10845
10846 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10847 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10848 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10849
10850 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10851
10852 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10853
10854 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10855 Chris January <chris.january@arm.com>
10856
10857 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10858 * f-exp.y: Define 'KIND' token.
10859 (exp): New pattern for KIND expressions.
10860 (ptype): Handle types with a kind extension.
10861 (direct_abs_decl): Extend to spot kind extensions.
10862 (f77_keywords): Add 'kind' to the list.
10863 (push_kind_type): New function.
10864 (convert_to_kind_type): New function.
10865 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10866 * parse.c (operator_length_standard): Likewise.
10867 * parser-defs.h (enum type_pieces): Add tp_kind.
10868 * std-operator.def: Add UNOP_KIND.
10869
10870 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10871
10872 * f-exp.y (f_parse): Set yydebug.
10873
10874 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10875
10876 * f-lang.c (evaluate_subexp_f): New function.
10877 (exp_descriptor_f): New global.
10878 (f_language_defn): Use exp_descriptor_f instead of
10879 exp_descriptor_standard.
10880
10881 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10882
10883 * f-exp.y (struct token): Add comments.
10884 (dot_ops): Remove uppercase versions and the end marker.
10885 (f77_keywords): Likewise.
10886 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10887 entries in the dot_ops array are case insensitive, and use
10888 strncasecmp to compare strings. Also some whitespace cleanup in
10889 this area. Similar for the f77_keywords array, except entries in
10890 this list might be case sensitive.
10891
10892 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10893
10894 * f-exp.y (struct f77_boolean_val): Add comments.
10895 (boolean_values): Remove uppercase versions, and end marker.
10896 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10897 and use strncasecmp to achieve case insensitivity. Additionally,
10898 perform whitespace cleanup around this code.
10899
10900 2019-03-06 Tom Tromey <tromey@adacore.com>
10901
10902 * remote-sim.c (gdbsim_target_open): Use result of
10903 gdb_argv::release.
10904
10905 2019-03-06 Richard Bunt <richard.bunt@arm.com>
10906 Dirk Schubert <dirk.schubert@arm.com>
10907 Chris January <chris.january@arm.com>
10908
10909 * eval.c (evaluate_subexp_standard): Call Fortran argument
10910 wrapping logic.
10911 * f-lang.c (struct value): A value which can be passed into a
10912 Fortran function call.
10913 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10914 where appropriate.
10915 (struct type): Value ready for a Fortran function call.
10916 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10917 is needed.
10918 * f-lang.h (fortran_argument_convert): Declaration.
10919 (fortran_preserve_arg_pointer): Declaration.
10920 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10921
10922 2019-03-05 Tom Tromey <tromey@adacore.com>
10923
10924 * python/py-prettyprint.c (print_string_repr): Remove #if.
10925 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10926
10927 2019-03-05 Tom Tromey <tromey@adacore.com>
10928
10929 * target.c (the_dummy_target): Move later. Change type to
10930 "dummy_target".
10931 (initialize_targets): Don't initialize the_dummy_target.
10932
10933 2019-03-05 Tom Tromey <tromey@adacore.com>
10934
10935 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10936 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10937
10938 2019-03-05 Tom Tromey <tromey@adacore.com>
10939
10940 * windows-nat.c (windows_nat_target::attach)
10941 (windows_nat_target::detach): Don't call gdb_flush.
10942 * valprint.c (generic_val_print, val_print, val_print_string):
10943 Don't call gdb_flush.
10944 * utils.c (defaulted_query): Don't call gdb_flush.
10945 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10946 * target.c (target_announce_detach): Don't call gdb_flush.
10947 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10948 * remote.c (extended_remote_target::attach): Don't call
10949 gdb_flush.
10950 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10951 * printcmd.c (do_examine): Don't call gdb_flush.
10952 (info_display_command): Don't call gdb_flush.
10953 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10954 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10955 * memattr.c (info_mem_command): Don't call gdb_flush.
10956 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10957 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10958 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10959 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10960 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10961 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10962 (gnu_nat_target::detach): Don't call gdb_flush.
10963 * f-valprint.c (f_val_print): Don't call gdb_flush.
10964 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10965 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10966 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10967 gdb_flush.
10968 * c-valprint.c (c_val_print): Don't call gdb_flush.
10969 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10970
10971 2019-03-05 Tom Tromey <tromey@adacore.com>
10972
10973 * varobj.c (update_dynamic_varobj_children): Update.
10974 (install_default_visualizer): Use reset, not release.
10975 * value.c (set_internalvar): Update.
10976 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10977 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10978 ATTRIBUTE_UNUSED_RESULT.
10979
10980 2019-03-05 Tom Tromey <tromey@adacore.com>
10981
10982 * remote.c (class scoped_remote_fd) <release>: Add
10983 ATTRIBUTE_UNUSED_RESULT.
10984
10985 2019-03-05 Tom Tromey <tromey@adacore.com>
10986
10987 * macroexp.c (struct macro_buffer) <release>: Add
10988 ATTRIBUTE_UNUSED_RESULT.
10989
10990 2019-03-05 Tom Tromey <tromey@adacore.com>
10991
10992 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10993 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10994 ATTRIBUTE_UNUSED_RESULT.
10995
10996 2019-03-05 Tom Tromey <tromey@adacore.com>
10997
10998 * common/scoped_fd.h (class scoped_fd) <release>: Add
10999 ATTRIBUTE_UNUSED_RESULT.
11000
11001 2019-03-05 Tom Tromey <tromey@adacore.com>
11002
11003 * parser-defs.h (struct parser_state) <release>: Add
11004 ATTRIBUTE_UNUSED_RESULT.
11005
11006 2019-03-05 Tom Tromey <tromey@adacore.com>
11007
11008 * utils.h (class gdb_argv) <release>: Add
11009 ATTRIBUTE_UNUSED_RESULT.
11010 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11011
11012 2019-03-02 Eli Zaretskii <eliz@gnu.org>
11013
11014 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11015 for-loop range, to avoid compiler warnings.
11016
11017 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11018 avoid compiler warnings about unused variables.
11019
11020 * NEWS: Mention end of support for native debugging on MS-Windows
11021 before XP.
11022
11023 PR gdb/24292
11024 * common/netstuff.c:
11025 * gdbserver/gdbreplay.c
11026 * gdbserver/remote-utils.c:
11027 * ser-tcp.c:
11028 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11029 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11030 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11031 'getaddrinfo' and 'freeaddrinfo' were not available before
11032 Windows XP, and mingw.org's MinGW headers by default define
11033 _WIN32_WINNT to 0x500.
11034
11035 2019-03-01 Gary Benson <gbenson@redhat.com>
11036
11037 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11038
11039 2019-02-28 Brian Vandenberg <phantall@gmail.com>
11040 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11041
11042 PR gdb/8527
11043 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11044 set_sigint_trap, clear_sigint_trap.
11045
11046 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11047
11048 * target.c (target_detach): Clear the regcache and the
11049 frame cache.
11050
11051 2019-02-27 Pedro Alves <palves@redhat.com>
11052
11053 * utils.c (set_screen_size): When we cap the height/width sizes,
11054 tweak the corresponding command variable to show "unlimited":
11055
11056 2019-02-27 Saagar Jha <saagar@saagarjha.com>
11057 Pedro Alves <palves@redhat.com>
11058
11059 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11060 before calling rl_set_screen_size.
11061
11062 2019-02-27 Tom Tromey <tromey@adacore.com>
11063
11064 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11065 define.
11066 * python/py-value.c: Remove Python 2.4 workaround.
11067 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11068 workaround.
11069 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11070 Python 2.4 workaround.
11071 * python/python-internal.h: Remove Python 2.4 comment.
11072 (Py_ssize_t): Don't define.
11073 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11074 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11075 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11076 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11077 * python/python.c (do_start_initialization): Remove Python 2.4
11078 workaround.
11079 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11080 (print_children): Remove Python 2.4 workaround.
11081 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11082 workaround.
11083 (CHARBUFFERPROC_NAME): Remove.
11084 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11085 Python 2.4 workaround.
11086
11087 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11088
11089 * NEWS: Note minimum Python version.
11090
11091 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11092
11093 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11094 code from these functions. Remove corresponding ifdefs. Use
11095 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11096 Remove gotos and target of gotos.
11097 (infpy_search_memory): Likewise.
11098
11099 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11100
11101 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11102 (hppa_gdbarch_init): Don't register deleted functions with
11103 gdbarch.
11104
11105 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11106
11107 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11108 (h8300_unwind_sp): Delete.
11109 (h8300_dummy_id): Delete.
11110 (h8300_gdbarch_init): Don't register deleted functions with
11111 gdbarch.
11112
11113 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11114
11115 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11116 (ft32_unwind_pc): Delete.
11117 (ft32_unwind_sp): Delete.
11118 (ft32_gdbarch_init): Don't register deleted functions with
11119 gdbarch.
11120
11121 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11122
11123 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11124 (frv_unwind_pc): Delete.
11125 (frv_unwind_sp): Delete.
11126 (frv_gdbarch_init): Don't register deleted functions with
11127 gdbarch.
11128
11129 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11130
11131 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11132 (riscv_unwind_pc): Delete.
11133 (riscv_unwind_sp): Delete.
11134 (riscv_gdbarch_init): Don't register deleted functions with
11135 gdbarch.
11136
11137 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11138
11139 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11140 (csky_unwind_pc): Delete.
11141 (csky_unwind_sp): Delete.
11142 (csky_gdbarch_init): Don't register deleted functions with
11143 gdbarch.
11144
11145 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11146
11147 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11148 (cris_unwind_pc): Delete.
11149 (cris_unwind_sp): Delete.
11150 (cris_gdbarch_init): Don't register deleted functions with
11151 gdbarch.
11152
11153 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11154
11155 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11156 (bfin_unwind_pc): Delete.
11157 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11158
11159 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11160
11161 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11162 (arm_unwind_pc): Delete.
11163 (arm_unwind_sp): Delete.
11164 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11165
11166 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11167
11168 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11169 (arc_unwind_pc): Delete.
11170 (arc_unwind_sp): Delete.
11171 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11172
11173 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11174
11175 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11176 (alpha_unwind_pc): Delete.
11177 (alpha_gdbarch_init): Don't register deleted functions with
11178 gdbarch.
11179
11180 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11181
11182 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11183 (aarch64_unwind_pc): Delete.
11184 (aarch64_unwind_sp): Delete.
11185 (aarch64_gdbarch_init): Don't register deleted functions with
11186 gdbarch.
11187
11188 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11189
11190 * gdbtypes.c (type_align): Don't consider static members when
11191 computing structure alignment.
11192
11193 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11194
11195 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11196 return 0 for other types.
11197 * arch-utils.c (default_type_align): Always return 0.
11198 * gdbarch.h: Regenerate.
11199 * gdbarch.sh (type_align): Extend comment.
11200 * gdbtypes.c (type_align): Add additional comments, always call
11201 gdbarch_type_align before applying the default rules.
11202 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11203 generic code will then apply a suitable default.
11204 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11205 types, return 0 for other types.
11206
11207 2019-02-27 Joel Brobecker <brobecker@adacore.com>
11208
11209 * NEWS: Create a new section for the next release branch.
11210 Rename the section of the current branch, now that it has
11211 been cut.
11212
11213 2019-02-27 Joel Brobecker <brobecker@adacore.com>
11214
11215 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11216 * version.in: Bump version to 8.3.50.DATE-git.
11217
11218 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
11219
11220 * aix-thread.c (ptid_cmp): Remove unused variable.
11221 (get_signaled_thread): Likewise.
11222 (store_regs_user_thread): Likewise.
11223 (store_regs_kernel_thread): Likewise.
11224 (fetch_regs_kernel_thread): Remove shadowed variable.
11225
11226 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11227
11228 * features/riscv/32bit-cpu.xml: Add register numbers.
11229 * features/riscv/32bit-fpu.c: Regenerate.
11230 * features/riscv/32bit-fpu.xml: Add register numbers.
11231 * features/riscv/64bit-cpu.xml: Add register numbers.
11232 * features/riscv/64bit-fpu.c: Regenerate.
11233 * features/riscv/64bit-fpu.xml: Add register numbers.
11234
11235 2019-02-26 Kevin Buettner <kevinb@redhat.com>
11236
11237 * NEWS: Mention two argument form of gdb.Value constructor.
11238 * python/py-value.c (convert_buffer_and_type_to_value): New
11239 function.
11240 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11241 Add support for handling an optional second argument. Call
11242 convert_buffer_and_type_to_value as appropriate.
11243 * python/python-internal.h (Py_buffer_deleter): New struct.
11244 (Py_buffer_up): New typedef.
11245
11246 2019-02-25 John Baldwin <jhb@FreeBSD.org>
11247
11248 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11249 instead of releasing ownership.
11250
11251 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
11252
11253 * dwarf2read.c (open_and_init_dwp_file): Call
11254 elf_numsections instead of bfd_count_sections to initialize
11255 dwp_file->num_sections.
11256
11257 2019-02-25 Tom Tromey <tromey@adacore.com>
11258
11259 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11260
11261 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11262
11263 * gcore.in: Add '--readnever' option when invoking GDB.
11264
11265 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11266
11267 * MAINTAINERS: Update my email address.
11268
11269 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11270
11271 * build-id.c (build_id_to_debug_bfd_1): New function.
11272 (build_id_to_debug_bfd): Look for separate debug file in
11273 sysroot.
11274
11275 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11276
11277 * gdbarch.sh: Update the copyright year range that is placed into
11278 generated files.
11279
11280 2019-02-22 Keith Seitz <keiths@redhat.com>
11281
11282 PR symtab/23853
11283 * linespec.c (create_sals_line_offset): Search for the default
11284 symtab's filename instead of its fullname.
11285
11286 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11287
11288 * NEWS: Update style defaults.
11289
11290 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11291
11292 * main.c (captured_main_1): Disable styling in batch mode.
11293
11294 2019-02-20 Tom Tromey <tom@tromey.com>
11295
11296 * symtab.c (symtab_symbol_info): Fix typos.
11297
11298 2019-02-20 Tom Tromey <tromey@adacore.com>
11299
11300 * findcmd.c (_initialize_mem_search): Use upper case for
11301 metasyntactic variables.
11302
11303 2019-02-20 Alan Hayward <alan.hayward@arm.com>
11304
11305 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11306 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11307
11308 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11309
11310 * top.h (source_file_name): Change to std::string.
11311 * top.c (source_file_name): Likewise.
11312 (command_line_input): Adjust.
11313 * cli/cli-script.c (script_from_file): Adjust.
11314
11315 2019-02-19 Tom Tromey <tromey@adacore.com>
11316
11317 * ravenscar-thread.c
11318 (ravenscar_thread_target::update_thread_list): Don't call
11319 ada_build_task_list.
11320 * ada-lang.h (ada_build_task_list): Don't declare.
11321 * ada-tasks.c (struct ada_tasks_inferior_data)
11322 <task_list_valid_p>: Now bool.
11323 (read_known_tasks, ada_task_list_changed)
11324 (ada_tasks_invalidate_inferior_data): Update.
11325 (read_known_tasks_array): Return bool.
11326 (read_known_tasks_list): Likewise.
11327 (read_known_tasks): Return void.
11328 (ada_build_task_list): Now static.
11329
11330 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11331
11332 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11333 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11334
11335 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11336
11337 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11338 variant for ada_tasks_pspace_data_handle and
11339 ada_tasks_inferior_data_handle.
11340 (ada_tasks_pspace_data_cleanup): New function.
11341 (ada_tasks_inferior_data_cleanup): New function.
11342
11343 2019-02-17 Tom Tromey <tom@tromey.com>
11344
11345 * macrotab.h (macro_source_fullname): Return a std::string.
11346 * macrotab.c (macro_include, check_for_redefinition)
11347 (macro_undef, macro_lookup_definition, foreach_macro)
11348 (foreach_macro_in_scope): Update.
11349 (macro_source_fullname): Return a std::string.
11350 * macrocmd.c (show_pp_source_pos): Update.
11351
11352 2019-02-17 Tom Tromey <tom@tromey.com>
11353
11354 * macrocmd.c (show_pp_source_pos): Style the file names.
11355
11356 2019-02-17 Tom Tromey <tom@tromey.com>
11357
11358 PR tui/24197:
11359 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11360
11361 2019-02-17 Tom Tromey <tom@tromey.com>
11362
11363 * ada-lang.c (user_select_syms): Use filtered printing.
11364 * utils.c (wrap_style): New global.
11365 (desired_style): Remove.
11366 (emit_style_escape): Add stream parameter.
11367 (set_output_style, reset_terminal_style, prompt_for_continue):
11368 Update.
11369 (flush_wrap_buffer): Only flush gdb_stdout.
11370 (wrap_here): Set wrap_style.
11371 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11372 treat escape sequences as a character. Change when wrap buffer is
11373 flushed.
11374 (fputs_styled): Do not set the output style when the default is
11375 requested.
11376 * ui-style.h (struct ui_file_style) <is_default>: New method.
11377 * source.c (print_source_lines_base): Emit escape sequences in one
11378 piece.
11379
11380 2019-02-17 Joel Brobecker <brobecker@adacore.com>
11381
11382 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11383 integers and enumeration types.
11384
11385 2019-02-17 Joel Brobecker <brobecker@adacore.com>
11386
11387 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11388 instead of lookup_symbol_in_language
11389 (do_exact_match): New function.
11390 (ada_get_symbol_name_matcher): Return do_exact_match when
11391 doing a verbatim match.
11392
11393 2019-02-15 Tom Tromey <tromey@adacore.com>
11394
11395 * ravenscar-thread.c (ravenscar_thread_target::resume)
11396 (ravenscar_thread_target::wait): Special case wildcard requests.
11397
11398 2019-02-15 Tom Tromey <tromey@adacore.com>
11399
11400 * ravenscar-thread.c (base_ptid): Remove.
11401 (struct ravenscar_thread_target) <close>: New method.
11402 <m_base_ptid>: New member.
11403 <update_inferior_ptid, active_task, task_is_currently_active,
11404 runtime_initialized>: Declare methods.
11405 <ravenscar_thread_target>: Add constructor.
11406 (ravenscar_thread_target::task_is_currently_active)
11407 (ravenscar_thread_target::update_inferior_ptid)
11408 (ravenscar_runtime_initialized): Rename. Now methods.
11409 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11410 (ravenscar_thread_target::update_thread_list): Update.
11411 (ravenscar_thread_target::active_task): Now method.
11412 (ravenscar_thread_target::store_registers)
11413 (ravenscar_thread_target::prepare_to_store)
11414 (ravenscar_thread_target::prepare_to_store)
11415 (ravenscar_thread_target::mourn_inferior): Update.
11416 (ravenscar_inferior_created): Use "new" to create target.
11417 (ravenscar_thread_target::get_ada_task_ptid): Update.
11418 (_initialize_ravenscar): Don't initialize base_ptid.
11419 (ravenscar_ops): Remove global.
11420
11421 2019-02-15 Tom Tromey <tromey@adacore.com>
11422
11423 * target.h (push_target): Declare new overload.
11424 * target.c (push_target): New overload, taking an rvalue reference.
11425 * remote.c (remote_target::open_1): Use push_target overload.
11426 * corelow.c (core_target_open): Use push_target overload.
11427
11428 2019-02-15 Tom Tromey <tromey@adacore.com>
11429
11430 * ravenscar-thread.c (is_ravenscar_task)
11431 (ravenscar_task_is_currently_active): Return bool.
11432 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11433 (_initialize_ravenscar): Remove "(void)".
11434 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11435 Return bool.
11436
11437 2019-02-15 Tom Tromey <tromey@adacore.com>
11438
11439 * ravenscar-thread.c (ravenscar_runtime_initializer)
11440 (has_ravenscar_runtime, get_running_thread_id)
11441 (ravenscar_thread_target::resume): Fix indentation.
11442
11443 2019-02-15 Tom Tromey <tromey@adacore.com>
11444
11445 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11446 from ravenscar_arch_ops.
11447 (sparc_ravenscar_ops::fetch_registers)
11448 (sparc_ravenscar_ops::store_registers): Now methods.
11449 (sparc_ravenscar_prepare_to_store): Remove.
11450 (sparc_ravenscar_ops): Redefine.
11451 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11452 methods and destructor. Remove members.
11453 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11454 (ravenscar_thread_target::store_registers)
11455 (ravenscar_thread_target::prepare_to_store): Update.
11456 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11457 Remove.
11458 (struct ppc_ravenscar_powerpc_ops): Derive from
11459 ravenscar_arch_ops.
11460 (ppc_ravenscar_powerpc_ops::fetch_registers)
11461 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11462 (ppc_ravenscar_powerpc_ops): Redefine.
11463 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11464 (ppc_ravenscar_e500_ops::fetch_registers)
11465 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11466 (ppc_ravenscar_e500_ops): Redefine.
11467 * aarch64-ravenscar-thread.c
11468 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11469 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11470 (aarch64_ravenscar_fetch_registers)
11471 (aarch64_ravenscar_store_registers): Now methods.
11472 (aarch64_ravenscar_ops): Redefine.
11473
11474 2019-02-15 Tom Tromey <tromey@adacore.com>
11475
11476 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11477 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11478 (ravenscar_thread_target::stopped_by_watchpoint)
11479 (ravenscar_thread_target::stopped_data_address)
11480 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11481
11482 2019-02-15 Tom Tromey <tromey@adacore.com>
11483
11484 * ravenscar-thread.c: Fix some typos.
11485
11486 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11487 Tom Tromey <tromey@adacore.com>
11488
11489 * ada-lang.c (ada_exception_sal): Change addr_string to a
11490 std::string.
11491 (create_ada_exception_catchpoint): Update.
11492
11493 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11494 Tom Tromey <tromey@adacore.com>
11495
11496 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11497 (bp_location_ops): Remove.
11498 (base_breakpoint_allocate_location): Update.
11499 (free_bp_location): Update.
11500 * ada-lang.c (class ada_catchpoint_location)
11501 <ada_catchpoint_location>: Remove ops parameter.
11502 (ada_catchpoint_location_dtor): Remove.
11503 (ada_catchpoint_location_ops): Remove.
11504 (allocate_location_exception): Update.
11505 * breakpoint.h (struct bp_location_ops): Remove.
11506 (class bp_location) <bp_location>: Remove bp_location_ops
11507 parameter.
11508 <~bp_location>: Add destructor.
11509 <ops>: Remove.
11510
11511 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11512 Pedro Alves <palves@redhat.com>
11513
11514 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11515 'PATH_MAX'.
11516
11517 2019-02-14 David Michael <fedora.dm0@gmail.com>
11518 Samuel Thibault <samuel.thibault@gnu.org>
11519 Thomas Schwinge <thomas@codesourcery.com>
11520
11521 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11522 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11523
11524 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11525
11526 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11527 (check_empty): Use "const char *".
11528
11529 * gnu-nat.c (gnu_nat_target::detach): Instead of
11530 'detach_inferior (pid)' call
11531 'detach_inferior (find_inferior_pid (pid))'.
11532
11533 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11534 'nat/fork-inferior.o'.
11535 * gnu-nat.c: #include "nat/fork-inferior.h".
11536
11537 * gnu-nat.c (gnu_nat_target::detach): Instead of
11538 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11539 * gnu-nat.h: #include "inf-child.h".
11540 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11541 'i386_gnu_nat_target::fetch_registers'.
11542 (gnu_store_registers): Rename/move to
11543 'i386_gnu_nat_target::store_registers'.
11544
11545 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11546 * gnu-nat.h (mach_thread_info): New function.
11547 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11548
11549 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11550
11551 2019-02-14 Frederic Konrad <konrad@adacore.com>
11552
11553 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11554
11555 2019-02-14 Joel Brobecker <brobecker@adacore.com>
11556
11557 * windows-nat.c (windows_add_thread): Add new parameter
11558 "main_thread_p" with default value set to false. Update
11559 function documentation as well as all callers.
11560 (windows_delete_thread): Likewise.
11561 (fake_create_process): Update call to windows_add_thread.
11562 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11563 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11564 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11565 call to windows_delete_thread.
11566
11567 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11568
11569 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11570
11571 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11572
11573 * symfile.c (find_separate_debug_file): Use canonical path of
11574 sysroot with child_path instead of gdb_sysroot if it is valid.
11575
11576 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11577
11578 * symfile.c (find_separate_debug_file): Use child_path to
11579 determine if an object file is under a sysroot.
11580
11581 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11582
11583 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11584 unittests/child-path-selftests.c.
11585 * common/pathstuff.c (child_path): New function.
11586 * common/pathstuff.h (child_path): New prototype.
11587 * unittests/child-path-selftests.c: New file.
11588
11589 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11590
11591 * symfile.c (find_separate_debug_file): Look for separate debug
11592 files in debug directories under the sysroot.
11593
11594 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11595
11596 * symtab.h (struct minimal_symbol data_p): New const method.
11597 (struct minimal_symbol text_p): Likewise.
11598 * symtab.c (output_source_filename): Use file name style
11599 to print file name.
11600 (print_symbol_info): Likewise.
11601 (print_msymbol_info): Use address style to print addresses.
11602 Use function name style to print executable text symbols.
11603 (expand_symtab_containing_pc): Use data_p.
11604 (find_pc_sect_compunit_symtab): Likewise.
11605
11606 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11607
11608 * breakpoint.c (describe_other_breakpoints): Use address style
11609 to print addresses.
11610 (say_where): Likewise.
11611
11612 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11613
11614 * ada-typeprint.c (print_func_type): Print function name
11615 style to print function name.
11616 * c-typeprint.c (c_print_type_1): Likewise.
11617
11618 2019-02-11 Alan Hayward <alan.hayward@arm.com>
11619
11620 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11621 for execve.
11622
11623 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11624
11625 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11626 type_stack.
11627
11628 2019-02-10 Joel Brobecker <brobecker@adacore.com>
11629
11630 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11631 TYPE_CODE_REF types.
11632
11633 2019-02-08 Jim Wilson <jimw@sifive.com>
11634
11635 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11636 (riscv_linux_fregset): New.
11637 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11638
11639 2019-02-07 Tom Tromey <tom@tromey.com>
11640
11641 * thread.c (thread_cancel_execution_command): Update.
11642 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11643 methods.
11644 (struct thread_fsm_ops): Remove.
11645 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11646 (thread_fsm_should_stop, thread_fsm_return_value)
11647 (thread_fsm_set_finished, thread_fsm_finished_p)
11648 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11649 Don't declare.
11650 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11651 * infrun.c (clear_proceed_status_thread)
11652 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11653 (print_stop_event): Update.
11654 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11655 Add constructor.
11656 (step_command_fsm_ops): Remove.
11657 (new_step_command_fsm): Remove.
11658 (step_1): Update.
11659 (step_command_fsm::should_stop): Rename from
11660 step_command_fsm_should_stop.
11661 (step_command_fsm::clean_up): Rename from
11662 step_command_fsm_clean_up.
11663 (step_command_fsm::do_async_reply_reason): Rename from
11664 step_command_fsm_async_reply_reason.
11665 (struct until_next_fsm): Inherit from thread_fsm. Add
11666 constructor.
11667 (until_next_fsm_ops): Remove.
11668 (new_until_next_fsm): Remove.
11669 (until_next_fsm::should_stop): Rename from
11670 until_next_fsm_should_stop.
11671 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11672 (until_next_fsm::do_async_reply_reason): Rename from
11673 until_next_fsm_async_reply_reason.
11674 (struct finish_command_fsm): Inherit from thread_fsm. Add
11675 constructor. Change type of breakpoint.
11676 (finish_command_fsm_ops): Remove.
11677 (new_finish_command_fsm): Remove.
11678 (finish_command_fsm::should_stop): Rename from
11679 finish_command_fsm_should_stop.
11680 (finish_command_fsm::clean_up): Rename from
11681 finish_command_fsm_clean_up.
11682 (finish_command_fsm::return_value): Rename from
11683 finish_command_fsm_return_value.
11684 (finish_command_fsm::do_async_reply_reason): Rename from
11685 finish_command_fsm_async_reply_reason.
11686 (finish_command): Update.
11687 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11688 Add constructor.
11689 (call_thread_fsm_ops): Remove.
11690 (call_thread_fsm::call_thread_fsm): Rename from
11691 new_call_thread_fsm.
11692 (call_thread_fsm::should_stop): Rename from
11693 call_thread_fsm_should_stop.
11694 (call_thread_fsm::should_notify_stop): Rename from
11695 call_thread_fsm_should_notify_stop.
11696 (run_inferior_call, call_function_by_hand_dummy): Update.
11697 * cli/cli-interp.c (should_print_stop_to_console): Update.
11698 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11699 Add constructor. Change type of location_breakpoint,
11700 caller_breakpoint.
11701 (until_break_fsm_ops): Remove.
11702 (new_until_break_fsm): Remove.
11703 (until_break_fsm::should_stop): Rename from
11704 until_break_fsm_should_stop.
11705 (until_break_fsm::clean_up): Rename from
11706 until_break_fsm_clean_up.
11707 (until_break_fsm::do_async_reply_reason): Rename from
11708 until_break_fsm_async_reply_reason.
11709 (until_break_command): Update.
11710 * thread-fsm.c: Remove.
11711 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11712
11713 2019-02-07 Tom Tromey <tom@tromey.com>
11714
11715 * yy-remap.h: Add include guard.
11716 * xtensa-tdep.h: Add include guard.
11717 * xcoffread.h: Rename include guard.
11718 * varobj-iter.h: Add include guard.
11719 * tui/tui.h: Rename include guard.
11720 * tui/tui-winsource.h: Rename include guard.
11721 * tui/tui-wingeneral.h: Rename include guard.
11722 * tui/tui-windata.h: Rename include guard.
11723 * tui/tui-win.h: Rename include guard.
11724 * tui/tui-stack.h: Rename include guard.
11725 * tui/tui-source.h: Rename include guard.
11726 * tui/tui-regs.h: Rename include guard.
11727 * tui/tui-out.h: Rename include guard.
11728 * tui/tui-layout.h: Rename include guard.
11729 * tui/tui-io.h: Rename include guard.
11730 * tui/tui-hooks.h: Rename include guard.
11731 * tui/tui-file.h: Rename include guard.
11732 * tui/tui-disasm.h: Rename include guard.
11733 * tui/tui-data.h: Rename include guard.
11734 * tui/tui-command.h: Rename include guard.
11735 * tic6x-tdep.h: Add include guard.
11736 * target/waitstatus.h: Rename include guard.
11737 * target/wait.h: Rename include guard.
11738 * target/target.h: Rename include guard.
11739 * target/resume.h: Rename include guard.
11740 * target-float.h: Rename include guard.
11741 * stabsread.h: Add include guard.
11742 * rs6000-tdep.h: Add include guard.
11743 * riscv-fbsd-tdep.h: Add include guard.
11744 * regformats/regdef.h: Rename include guard.
11745 * record.h: Rename include guard.
11746 * python/python.h: Rename include guard.
11747 * python/python-internal.h: Rename include guard.
11748 * python/py-stopevent.h: Rename include guard.
11749 * python/py-ref.h: Rename include guard.
11750 * python/py-record.h: Rename include guard.
11751 * python/py-record-full.h: Rename include guard.
11752 * python/py-record-btrace.h: Rename include guard.
11753 * python/py-instruction.h: Rename include guard.
11754 * python/py-events.h: Rename include guard.
11755 * python/py-event.h: Rename include guard.
11756 * procfs.h: Add include guard.
11757 * proc-utils.h: Add include guard.
11758 * p-lang.h: Add include guard.
11759 * or1k-tdep.h: Rename include guard.
11760 * observable.h: Rename include guard.
11761 * nto-tdep.h: Rename include guard.
11762 * nat/x86-linux.h: Rename include guard.
11763 * nat/x86-linux-dregs.h: Rename include guard.
11764 * nat/x86-gcc-cpuid.h: Add include guard.
11765 * nat/x86-dregs.h: Rename include guard.
11766 * nat/x86-cpuid.h: Rename include guard.
11767 * nat/ppc-linux.h: Rename include guard.
11768 * nat/mips-linux-watch.h: Rename include guard.
11769 * nat/linux-waitpid.h: Rename include guard.
11770 * nat/linux-ptrace.h: Rename include guard.
11771 * nat/linux-procfs.h: Rename include guard.
11772 * nat/linux-osdata.h: Rename include guard.
11773 * nat/linux-nat.h: Rename include guard.
11774 * nat/linux-namespaces.h: Rename include guard.
11775 * nat/linux-btrace.h: Rename include guard.
11776 * nat/glibc_thread_db.h: Rename include guard.
11777 * nat/gdb_thread_db.h: Rename include guard.
11778 * nat/gdb_ptrace.h: Rename include guard.
11779 * nat/fork-inferior.h: Rename include guard.
11780 * nat/amd64-linux-siginfo.h: Rename include guard.
11781 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11782 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11783 * nat/aarch64-linux.h: Rename include guard.
11784 * nat/aarch64-linux-hw-point.h: Rename include guard.
11785 * mn10300-tdep.h: Add include guard.
11786 * mips-linux-tdep.h: Add include guard.
11787 * mi/mi-parse.h: Rename include guard.
11788 * mi/mi-out.h: Rename include guard.
11789 * mi/mi-main.h: Rename include guard.
11790 * mi/mi-interp.h: Rename include guard.
11791 * mi/mi-getopt.h: Rename include guard.
11792 * mi/mi-console.h: Rename include guard.
11793 * mi/mi-common.h: Rename include guard.
11794 * mi/mi-cmds.h: Rename include guard.
11795 * mi/mi-cmd-break.h: Rename include guard.
11796 * m2-lang.h: Add include guard.
11797 * location.h: Rename include guard.
11798 * linux-record.h: Rename include guard.
11799 * linux-nat.h: Add include guard.
11800 * linux-fork.h: Add include guard.
11801 * i386-darwin-tdep.h: Rename include guard.
11802 * hppa-linux-offsets.h: Add include guard.
11803 * guile/guile.h: Rename include guard.
11804 * guile/guile-internal.h: Rename include guard.
11805 * gnu-nat.h: Rename include guard.
11806 * gdb-stabs.h: Rename include guard.
11807 * frv-tdep.h: Add include guard.
11808 * f-lang.h: Add include guard.
11809 * event-loop.h: Add include guard.
11810 * darwin-nat.h: Rename include guard.
11811 * cp-abi.h: Rename include guard.
11812 * config/sparc/nm-sol2.h: Rename include guard.
11813 * config/nm-nto.h: Rename include guard.
11814 * config/nm-linux.h: Add include guard.
11815 * config/i386/nm-i386gnu.h: Rename include guard.
11816 * config/djgpp/nl_types.h: Rename include guard.
11817 * config/djgpp/langinfo.h: Rename include guard.
11818 * compile/gcc-cp-plugin.h: Add include guard.
11819 * compile/gcc-c-plugin.h: Add include guard.
11820 * compile/compile.h: Rename include guard.
11821 * compile/compile-object-run.h: Rename include guard.
11822 * compile/compile-object-load.h: Rename include guard.
11823 * compile/compile-internal.h: Rename include guard.
11824 * compile/compile-cplus.h: Rename include guard.
11825 * compile/compile-c.h: Rename include guard.
11826 * common/xml-utils.h: Rename include guard.
11827 * common/x86-xstate.h: Rename include guard.
11828 * common/version.h: Rename include guard.
11829 * common/vec.h: Rename include guard.
11830 * common/tdesc.h: Rename include guard.
11831 * common/selftest.h: Rename include guard.
11832 * common/scoped_restore.h: Rename include guard.
11833 * common/scoped_mmap.h: Rename include guard.
11834 * common/scoped_fd.h: Rename include guard.
11835 * common/safe-iterator.h: Rename include guard.
11836 * common/run-time-clock.h: Rename include guard.
11837 * common/refcounted-object.h: Rename include guard.
11838 * common/queue.h: Rename include guard.
11839 * common/ptid.h: Rename include guard.
11840 * common/print-utils.h: Rename include guard.
11841 * common/preprocessor.h: Rename include guard.
11842 * common/pathstuff.h: Rename include guard.
11843 * common/observable.h: Rename include guard.
11844 * common/netstuff.h: Rename include guard.
11845 * common/job-control.h: Rename include guard.
11846 * common/host-defs.h: Rename include guard.
11847 * common/gdb_wait.h: Rename include guard.
11848 * common/gdb_vecs.h: Rename include guard.
11849 * common/gdb_unlinker.h: Rename include guard.
11850 * common/gdb_unique_ptr.h: Rename include guard.
11851 * common/gdb_tilde_expand.h: Rename include guard.
11852 * common/gdb_sys_time.h: Rename include guard.
11853 * common/gdb_string_view.h: Rename include guard.
11854 * common/gdb_splay_tree.h: Rename include guard.
11855 * common/gdb_setjmp.h: Rename include guard.
11856 * common/gdb_ref_ptr.h: Rename include guard.
11857 * common/gdb_optional.h: Rename include guard.
11858 * common/gdb_locale.h: Rename include guard.
11859 * common/gdb_assert.h: Rename include guard.
11860 * common/filtered-iterator.h: Rename include guard.
11861 * common/filestuff.h: Rename include guard.
11862 * common/fileio.h: Rename include guard.
11863 * common/environ.h: Rename include guard.
11864 * common/common-utils.h: Rename include guard.
11865 * common/common-types.h: Rename include guard.
11866 * common/common-regcache.h: Rename include guard.
11867 * common/common-inferior.h: Rename include guard.
11868 * common/common-gdbthread.h: Rename include guard.
11869 * common/common-exceptions.h: Rename include guard.
11870 * common/common-defs.h: Rename include guard.
11871 * common/common-debug.h: Rename include guard.
11872 * common/cleanups.h: Rename include guard.
11873 * common/buffer.h: Rename include guard.
11874 * common/btrace-common.h: Rename include guard.
11875 * common/break-common.h: Rename include guard.
11876 * cli/cli-utils.h: Rename include guard.
11877 * cli/cli-style.h: Rename include guard.
11878 * cli/cli-setshow.h: Rename include guard.
11879 * cli/cli-script.h: Rename include guard.
11880 * cli/cli-interp.h: Rename include guard.
11881 * cli/cli-decode.h: Rename include guard.
11882 * cli/cli-cmds.h: Rename include guard.
11883 * charset-list.h: Add include guard.
11884 * buildsym-legacy.h: Rename include guard.
11885 * bfin-tdep.h: Add include guard.
11886 * ax.h: Rename include guard.
11887 * arm-linux-tdep.h: Add include guard.
11888 * arm-fbsd-tdep.h: Add include guard.
11889 * arch/xtensa.h: Rename include guard.
11890 * arch/tic6x.h: Add include guard.
11891 * arch/i386.h: Add include guard.
11892 * arch/arm.h: Rename include guard.
11893 * arch/arm-linux.h: Rename include guard.
11894 * arch/arm-get-next-pcs.h: Rename include guard.
11895 * arch/amd64.h: Add include guard.
11896 * arch/aarch64-insn.h: Rename include guard.
11897 * arch-utils.h: Rename include guard.
11898 * annotate.h: Add include guard.
11899 * amd64-darwin-tdep.h: Rename include guard.
11900 * aarch64-linux-tdep.h: Add include guard.
11901 * aarch64-fbsd-tdep.h: Add include guard.
11902 * aarch32-linux-nat.h: Add include guard.
11903
11904 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11905
11906 * macrotab.c (macro_define_internal): New function that
11907 factorizes macro_define_object_internal and macro_define_function
11908 code.
11909 (macro_define_object_internal): Use macro_define_internal.
11910 (macro_define_function): Likewise.
11911
11912 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11913
11914 * macrocmd.c (extract_identifier): Return
11915 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11916 callers.
11917
11918 2019-02-06 John Baldwin <jhb@FreeBSD.org>
11919
11920 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11921
11922 2019-02-05 Tom Tromey <tom@tromey.com>
11923
11924 * target.c (target_stack::unpush): Move assertion earlier.
11925
11926 2019-01-30 Tom Tromey <tom@tromey.com>
11927
11928 PR python/23615:
11929 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11930 (gdbpy_parse_and_eval): Likewise.
11931 * python/python-internal.h (gdbpy_allow_threads): New class.
11932
11933 2019-01-28 John Baldwin <jhb@FreeBSD.org>
11934
11935 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11936 (aarch64_fbsd_fpregmap): Move earlier.
11937 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11938 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11939 instead of individual calls to trad_frame_set_reg_addr.
11940 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11941 earlier.
11942 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11943 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11944 instead of individual calls to trad_frame_set_reg_addr.
11945
11946 2019-01-28 Alan Hayward <alan.hayward@arm.com>
11947
11948 * CONTRIBUTE: Replace contribution list with wiki link.
11949
11950 2019-01-25 Tom Tromey <tom@tromey.com>
11951
11952 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11953
11954 2019-01-25 Tom Tromey <tom@tromey.com>
11955
11956 * xtensa-linux-nat.c: Fix common/ includes.
11957 * xml-support.h: Fix common/ includes.
11958 * xml-support.c: Fix common/ includes.
11959 * x86-linux-nat.c: Fix common/ includes.
11960 * windows-nat.c: Fix common/ includes.
11961 * varobj.h: Fix common/ includes.
11962 * varobj.c: Fix common/ includes.
11963 * value.c: Fix common/ includes.
11964 * valops.c: Fix common/ includes.
11965 * utils.c: Fix common/ includes.
11966 * unittests/xml-utils-selftests.c: Fix common/ includes.
11967 * unittests/utils-selftests.c: Fix common/ includes.
11968 * unittests/unpack-selftests.c: Fix common/ includes.
11969 * unittests/tracepoint-selftests.c: Fix common/ includes.
11970 * unittests/style-selftests.c: Fix common/ includes.
11971 * unittests/string_view-selftests.c: Fix common/ includes.
11972 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11973 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11974 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11975 * unittests/rsp-low-selftests.c: Fix common/ includes.
11976 * unittests/parse-connection-spec-selftests.c: Fix common/
11977 includes.
11978 * unittests/optional-selftests.c: Fix common/ includes.
11979 * unittests/offset-type-selftests.c: Fix common/ includes.
11980 * unittests/observable-selftests.c: Fix common/ includes.
11981 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11982 * unittests/memrange-selftests.c: Fix common/ includes.
11983 * unittests/memory-map-selftests.c: Fix common/ includes.
11984 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11985 * unittests/function-view-selftests.c: Fix common/ includes.
11986 * unittests/environ-selftests.c: Fix common/ includes.
11987 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11988 * unittests/common-utils-selftests.c: Fix common/ includes.
11989 * unittests/cli-utils-selftests.c: Fix common/ includes.
11990 * unittests/array-view-selftests.c: Fix common/ includes.
11991 * ui-file.c: Fix common/ includes.
11992 * tui/tui-io.c: Fix common/ includes.
11993 * tracepoint.h: Fix common/ includes.
11994 * tracepoint.c: Fix common/ includes.
11995 * tracefile-tfile.c: Fix common/ includes.
11996 * top.h: Fix common/ includes.
11997 * top.c: Fix common/ includes.
11998 * thread.c: Fix common/ includes.
11999 * target/waitstatus.h: Fix common/ includes.
12000 * target/waitstatus.c: Fix common/ includes.
12001 * target.h: Fix common/ includes.
12002 * target.c: Fix common/ includes.
12003 * target-memory.c: Fix common/ includes.
12004 * target-descriptions.c: Fix common/ includes.
12005 * symtab.h: Fix common/ includes.
12006 * symfile.c: Fix common/ includes.
12007 * stap-probe.c: Fix common/ includes.
12008 * spu-linux-nat.c: Fix common/ includes.
12009 * sparc-nat.c: Fix common/ includes.
12010 * source.c: Fix common/ includes.
12011 * solib.c: Fix common/ includes.
12012 * solib-target.c: Fix common/ includes.
12013 * ser-unix.c: Fix common/ includes.
12014 * ser-tcp.c: Fix common/ includes.
12015 * ser-pipe.c: Fix common/ includes.
12016 * ser-base.c: Fix common/ includes.
12017 * selftest-arch.c: Fix common/ includes.
12018 * s12z-tdep.c: Fix common/ includes.
12019 * rust-exp.y: Fix common/ includes.
12020 * rs6000-aix-tdep.c: Fix common/ includes.
12021 * riscv-tdep.c: Fix common/ includes.
12022 * remote.c: Fix common/ includes.
12023 * remote-notif.h: Fix common/ includes.
12024 * remote-fileio.h: Fix common/ includes.
12025 * remote-fileio.c: Fix common/ includes.
12026 * regcache.h: Fix common/ includes.
12027 * regcache.c: Fix common/ includes.
12028 * record-btrace.c: Fix common/ includes.
12029 * python/python.c: Fix common/ includes.
12030 * python/py-type.c: Fix common/ includes.
12031 * python/py-inferior.c: Fix common/ includes.
12032 * progspace.h: Fix common/ includes.
12033 * producer.c: Fix common/ includes.
12034 * procfs.c: Fix common/ includes.
12035 * proc-api.c: Fix common/ includes.
12036 * printcmd.c: Fix common/ includes.
12037 * ppc-linux-nat.c: Fix common/ includes.
12038 * parser-defs.h: Fix common/ includes.
12039 * osdata.c: Fix common/ includes.
12040 * obsd-nat.c: Fix common/ includes.
12041 * nat/x86-linux.c: Fix common/ includes.
12042 * nat/x86-linux-dregs.c: Fix common/ includes.
12043 * nat/x86-dregs.h: Fix common/ includes.
12044 * nat/x86-dregs.c: Fix common/ includes.
12045 * nat/ppc-linux.c: Fix common/ includes.
12046 * nat/mips-linux-watch.h: Fix common/ includes.
12047 * nat/mips-linux-watch.c: Fix common/ includes.
12048 * nat/linux-waitpid.c: Fix common/ includes.
12049 * nat/linux-ptrace.h: Fix common/ includes.
12050 * nat/linux-ptrace.c: Fix common/ includes.
12051 * nat/linux-procfs.c: Fix common/ includes.
12052 * nat/linux-personality.c: Fix common/ includes.
12053 * nat/linux-osdata.c: Fix common/ includes.
12054 * nat/linux-namespaces.c: Fix common/ includes.
12055 * nat/linux-btrace.h: Fix common/ includes.
12056 * nat/linux-btrace.c: Fix common/ includes.
12057 * nat/fork-inferior.c: Fix common/ includes.
12058 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12059 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12060 * nat/aarch64-linux.c: Fix common/ includes.
12061 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12062 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12063 * namespace.h: Fix common/ includes.
12064 * mips-linux-tdep.c: Fix common/ includes.
12065 * minsyms.c: Fix common/ includes.
12066 * mi/mi-parse.h: Fix common/ includes.
12067 * mi/mi-main.c: Fix common/ includes.
12068 * mi/mi-cmd-env.c: Fix common/ includes.
12069 * memrange.h: Fix common/ includes.
12070 * memattr.c: Fix common/ includes.
12071 * maint.h: Fix common/ includes.
12072 * maint.c: Fix common/ includes.
12073 * main.c: Fix common/ includes.
12074 * machoread.c: Fix common/ includes.
12075 * location.c: Fix common/ includes.
12076 * linux-thread-db.c: Fix common/ includes.
12077 * linux-nat.c: Fix common/ includes.
12078 * linux-fork.c: Fix common/ includes.
12079 * inline-frame.c: Fix common/ includes.
12080 * infrun.c: Fix common/ includes.
12081 * inflow.c: Fix common/ includes.
12082 * inferior.h: Fix common/ includes.
12083 * inferior.c: Fix common/ includes.
12084 * infcmd.c: Fix common/ includes.
12085 * inf-ptrace.c: Fix common/ includes.
12086 * inf-child.c: Fix common/ includes.
12087 * ia64-linux-nat.c: Fix common/ includes.
12088 * i387-tdep.c: Fix common/ includes.
12089 * i386-tdep.c: Fix common/ includes.
12090 * i386-linux-tdep.c: Fix common/ includes.
12091 * i386-linux-nat.c: Fix common/ includes.
12092 * i386-go32-tdep.c: Fix common/ includes.
12093 * i386-fbsd-tdep.c: Fix common/ includes.
12094 * i386-fbsd-nat.c: Fix common/ includes.
12095 * guile/scm-type.c: Fix common/ includes.
12096 * guile/guile.c: Fix common/ includes.
12097 * go32-nat.c: Fix common/ includes.
12098 * gnu-nat.c: Fix common/ includes.
12099 * gdbthread.h: Fix common/ includes.
12100 * gdbarch-selftests.c: Fix common/ includes.
12101 * gdb_usleep.c: Fix common/ includes.
12102 * gdb_select.h: Fix common/ includes.
12103 * gdb_bfd.c: Fix common/ includes.
12104 * gcore.c: Fix common/ includes.
12105 * fork-child.c: Fix common/ includes.
12106 * findvar.c: Fix common/ includes.
12107 * fbsd-nat.c: Fix common/ includes.
12108 * event-top.c: Fix common/ includes.
12109 * event-loop.c: Fix common/ includes.
12110 * dwarf2read.c: Fix common/ includes.
12111 * dwarf2loc.c: Fix common/ includes.
12112 * dwarf2-frame.c: Fix common/ includes.
12113 * dwarf-index-cache.c: Fix common/ includes.
12114 * dtrace-probe.c: Fix common/ includes.
12115 * disasm-selftests.c: Fix common/ includes.
12116 * defs.h: Fix common/ includes.
12117 * csky-tdep.c: Fix common/ includes.
12118 * cp-valprint.c: Fix common/ includes.
12119 * cp-support.h: Fix common/ includes.
12120 * cp-support.c: Fix common/ includes.
12121 * corelow.c: Fix common/ includes.
12122 * completer.h: Fix common/ includes.
12123 * completer.c: Fix common/ includes.
12124 * compile/compile.c: Fix common/ includes.
12125 * compile/compile-loc2c.c: Fix common/ includes.
12126 * compile/compile-cplus-types.c: Fix common/ includes.
12127 * compile/compile-cplus-symbols.c: Fix common/ includes.
12128 * command.h: Fix common/ includes.
12129 * cli/cli-dump.c: Fix common/ includes.
12130 * cli/cli-cmds.c: Fix common/ includes.
12131 * charset.c: Fix common/ includes.
12132 * build-id.c: Fix common/ includes.
12133 * btrace.h: Fix common/ includes.
12134 * btrace.c: Fix common/ includes.
12135 * breakpoint.h: Fix common/ includes.
12136 * breakpoint.c: Fix common/ includes.
12137 * ax.h:
12138 (enum agent_op): Fix common/ includes.
12139 * ax-general.c (struct aop_map): Fix common/ includes.
12140 * ax-gdb.c: Fix common/ includes.
12141 * auxv.c: Fix common/ includes.
12142 * auto-load.c: Fix common/ includes.
12143 * arm-tdep.c: Fix common/ includes.
12144 * arch/riscv.c: Fix common/ includes.
12145 * arch/ppc-linux-common.c: Fix common/ includes.
12146 * arch/i386.c: Fix common/ includes.
12147 * arch/arm.c: Fix common/ includes.
12148 * arch/arm-linux.c: Fix common/ includes.
12149 * arch/arm-get-next-pcs.c: Fix common/ includes.
12150 * arch/amd64.c: Fix common/ includes.
12151 * arch/aarch64.c: Fix common/ includes.
12152 * arch/aarch64-insn.c: Fix common/ includes.
12153 * arch-utils.c: Fix common/ includes.
12154 * amd64-windows-tdep.c: Fix common/ includes.
12155 * amd64-tdep.c: Fix common/ includes.
12156 * amd64-sol2-tdep.c: Fix common/ includes.
12157 * amd64-obsd-tdep.c: Fix common/ includes.
12158 * amd64-nbsd-tdep.c: Fix common/ includes.
12159 * amd64-linux-tdep.c: Fix common/ includes.
12160 * amd64-linux-nat.c: Fix common/ includes.
12161 * amd64-fbsd-tdep.c: Fix common/ includes.
12162 * amd64-fbsd-nat.c: Fix common/ includes.
12163 * amd64-dicos-tdep.c: Fix common/ includes.
12164 * amd64-darwin-tdep.c: Fix common/ includes.
12165 * agent.c: Fix common/ includes.
12166 * ada-lang.h: Fix common/ includes.
12167 * ada-lang.c: Fix common/ includes.
12168 * aarch64-tdep.c: Fix common/ includes.
12169
12170 2019-01-25 Tom Tromey <tom@tromey.com>
12171
12172 * common/create-version.sh: Use common/version.h.
12173
12174 2019-01-24 Pedro Alves <palves@redhat.com>
12175
12176 * infrun.c (signal_stop, signal_print, signal_program)
12177 (signal_catch, signal_pass): Now arrays instead of pointers.
12178 (update_signals_program_target, do_target_resume)
12179 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12180 * linux-nat.c (linux_nat_target::pass_signals)
12181 (linux_nat_target::create_inferior, linux_nat_target::attach):
12182 Adjust.
12183 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12184 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12185 * procfs.c (procfs_target::pass_signals): Adjust.
12186 * record-full.c (record_full_target::resume): Adjust.
12187 * remote.c (remote_target::pass_signals)
12188 (remote_target::program_signals): Adjust.
12189 * target-debug.h (target_debug_print_signals): Now takes a
12190 gdb::array_view as parameter. Adjust.
12191 * target.h (target_ops) <pass_signals, program_signals>: Replace
12192 pointer and length parameters with gdb::array_view.
12193 (target_pass_signals, target_program_signals): Likewise.
12194 * target-delegates.c: Regenerate.
12195
12196 2019-01-24 Pedro Alves <palves@redhat.com>
12197
12198 * common/forward-scope-exit.h
12199 (forward_scope_exit::forward_scope_exit): Pass arguments to
12200 m_bind_function directly, instead of creating a std::bind and
12201 copying that.
12202
12203 2019-01-24 Alan Hayward <alan.hayward@arm.com>
12204
12205 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12206 for static members.
12207 (pass_in_v_vfp_candidate): Likewise.
12208
12209 2019-01-23 Tom Tromey <tom@tromey.com>
12210 Pedro Alves <palves@redhat.com>
12211
12212 * regcache.c (class regcache_invalidator): Remove.
12213 (regcache::raw_write): Use make_scope_exit.
12214
12215 2019-01-23 Tom Tromey <tom@tromey.com>
12216
12217 * ui-out.h (class ui_out_emit_type): Update comment.
12218
12219 2019-01-23 Tom Tromey <tom@tromey.com>
12220
12221 * infrun.c (fetch_inferior_event): Update comment.
12222
12223 2019-01-23 Tom Tromey <tom@tromey.com>
12224 Pedro Alves <palves@redhat.com>
12225
12226 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12227 parameter.
12228 (fetch_inferior_event): Use SCOPE_EXIT.
12229
12230
12231 2019-01-23 Tom Tromey <tom@tromey.com>
12232 Pedro Alves <palves@redhat.com>
12233
12234 * infrun.c (disable_thread_events): Delete.
12235 (stop_all_threads): Use SCOPE_EXIT.
12236
12237 2019-01-23 Tom Tromey <tom@tromey.com>
12238 Pedro Alves <palves@redhat.com>
12239
12240 * symfile.c: Include forward-scope-exit.h.
12241 (clear_symtab_users_cleanup): Replace forward declaration with
12242 a FORWARD_SCOPE_EXIT.
12243 (syms_from_objfile_1): Use the forward_scope_exit and
12244 gdb::optional instead of cleanup_function.
12245 (reread_symbols): Use the forward_scope_exit instead of
12246 cleanup_function.
12247 (clear_symtab_users_cleanup): Remove function.
12248
12249 2019-01-23 Tom Tromey <tom@tromey.com>
12250 Pedro Alves <palves@redhat.com>
12251
12252 * linux-nat.c: Include scope-exit.h.
12253 (cleanup_target_stop): Remove.
12254 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12255 SCOPE_EXIT.
12256
12257 2019-01-23 Tom Tromey <tom@tromey.com>
12258 Pedro Alves <palves@redhat.com>
12259
12260 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12261 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12262
12263 2019-01-23 Tom Tromey <tom@tromey.com>
12264 Andrew Burgess <andrew.burgess@embecosm.com>
12265 Pedro Alves <palves@redhat.com>
12266
12267 * infrun.c (fetch_inferior_event): Use scope_exit.
12268 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12269 * top.c (execute_command): Use scope_exit.
12270 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12271 * utils.c (do_bpstat_clear_actions_cleanup)
12272 (make_bpstat_clear_actions_cleanup): Remove.
12273
12274 2019-01-23 Tom Tromey <tom@tromey.com>
12275 Pedro Alves <palves@redhat.com>
12276
12277 * infrun.c: Include "common/scope-exit.h"
12278 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12279 (wait_for_inferior): Use SCOPE_EXIT.
12280 (fetch_inferior_event): Use scope_exit.
12281
12282 2019-01-23 Tom Tromey <tom@tromey.com>
12283 Pedro Alves <palves@redhat.com>
12284
12285 * breakpoint.c (create_breakpoint): Remove cleanup.
12286
12287 2019-01-23 Tom Tromey <tom@tromey.com>
12288 Andrew Burgess <andrew.burgess@embecosm.com>
12289 Pedro Alves <palves@redhat.com>
12290
12291 2019-01-23 Pedro Alves <palves@redhat.com>
12292
12293 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12294
12295 2019-01-23 Pedro Alves <palves@redhat.com>
12296 Andrew Burgess <andrew.burgess@embecosm.com>
12297
12298 * gdbthread.h: Include "common/forward-scope-exit.h".
12299 (scoped_finish_thread_state): Redefine custom class in terms of
12300 forward_scope_exit.
12301
12302 2019-01-23 Pedro Alves <palves@redhat.com>
12303 Andrew Burgess <andrew.burgess@embecosm.com>
12304
12305 * common/forward-scope-exit.h: New file.
12306
12307 2019-01-23 Pedro Alves <palves@redhat.com>
12308 Andrew Burgess <andrew.burgess@embecosm.com>
12309 Tom Tromey <tom@tromey.com>
12310
12311 * common/scope-exit.h: New file.
12312
12313 2019-01-23 Pedro Alves <palves@redhat.com>
12314
12315 * common/preprocessor.h (ESC): Rename to ...
12316 (ESC_PARENS): ... this.
12317 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12318 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12319
12320 2019-01-23 Tom Tromey <tom@tromey.com>
12321
12322 * language.h (class scoped_switch_to_sym_language_if_auto):
12323 Initialize m_lang in both cases.
12324
12325 2019-01-23 Alan Hayward <alan.hayward@arm.com>
12326
12327 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12328 with XCNEW.
12329
12330 2019-01-22 Tom Tromey <tom@tromey.com>
12331
12332 * corelow.c: Do not include sys/file.h.
12333
12334 2019-01-22 Tom Tromey <tom@tromey.com>
12335
12336 * tui/tui-wingeneral.h: Include gdb_curses.h.
12337
12338 2019-01-22 Tom Tromey <tom@tromey.com>
12339
12340 * source-cache.h (class source_cache) <get_source_lines,
12341 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12342
12343 2019-01-22 Tom Tromey <tom@tromey.com>
12344
12345 * remote-fileio.h (struct remote_target): Declare.
12346
12347 2019-01-22 Tom Tromey <tom@tromey.com>
12348
12349 * python/py-arch.c: Do not include py-ref.h.
12350 * python/py-bpevent.c: Do not include py-ref.h.
12351 * python/py-cmd.c: Do not include py-ref.h.
12352 * python/py-continueevent.c: Do not include py-ref.h.
12353 * python/py-event.h: Do not include py-ref.h.
12354 * python/py-evtregistry.c: Do not include py-ref.h.
12355 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12356 * python/py-frame.c: Do not include py-ref.h.
12357 * python/py-framefilter.c: Do not include py-ref.h.
12358 * python/py-function.c: Do not include py-ref.h.
12359 * python/py-infevents.c: Do not include py-ref.h.
12360 * python/py-linetable.c: Do not include py-ref.h.
12361 * python/py-objfile.c: Do not include py-ref.h.
12362 * python/py-param.c: Do not include py-ref.h.
12363 * python/py-prettyprint.c: Do not include py-ref.h.
12364 * python/py-progspace.c: Do not include py-ref.h.
12365 * python/py-symbol.c: Do not include py-ref.h.
12366 * python/py-symtab.c: Do not include py-ref.h.
12367 * python/py-type.c: Do not include py-ref.h.
12368 * python/py-unwind.c: Do not include py-ref.h.
12369 * python/py-utils.c: Do not include py-ref.h.
12370 * python/py-value.c: Do not include py-ref.h.
12371 * python/py-varobj.c: Do not include py-ref.h.
12372 * python/py-xmethods.c: Do not include py-ref.h.
12373 * python/python.c: Do not include py-ref.h.
12374 * varobj.c: Do not include py-ref.h.
12375
12376 2019-01-22 Tom Tromey <tom@tromey.com>
12377
12378 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12379 keyword for bcache.
12380
12381 2019-01-22 Tom Tromey <tom@tromey.com>
12382
12383 * compile/compile-cplus-types.c: Remove a comment by #include.
12384
12385 2019-01-22 Tom Tromey <tom@tromey.com>
12386
12387 * compile/gcc-c-plugin.h: Include compile-internal.h.
12388
12389 2019-01-22 Tom Tromey <tom@tromey.com>
12390
12391 * stabsread.c (EXTERN): Do not define.
12392 (symnum, next_symbol_text_func, processing_gcc_compilation)
12393 (within_function, global_sym_chain, global_stabs)
12394 (previous_stab_code, this_object_header_files)
12395 (n_this_object_header_files)
12396 (n_allocated_this_object_header_files): Define.
12397 * stabsread.h (EXTERN): Never define. Use "extern".
12398
12399 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12400
12401 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12402 history_value.
12403
12404 2019-01-21 Tom Tromey <tom@tromey.com>
12405
12406 * ui-out.c: Fix includes.
12407 * tui/tui-source.c: Fix includes.
12408 * target.c: Fix includes.
12409 * remote.c: Fix includes.
12410 * regcache.c: Fix includes.
12411 * python/py-block.c: Fix includes.
12412 * printcmd.c: Fix includes.
12413 * or1k-tdep.c: Fix includes.
12414 * mi/mi-main.c: Fix includes.
12415 * m32r-tdep.c: Fix includes.
12416 * csky-tdep.c: Fix includes.
12417 * compile/compile-cplus-types.c: Fix includes.
12418 * cli/cli-interp.c: Fix includes.
12419
12420 2019-01-21 Alan Hayward <alan.hayward@arm.com>
12421
12422 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12423 for padding.
12424
12425 2019-01-16 Tom Tromey <tom@tromey.com>
12426
12427 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12428 earlier.
12429 (struct objfile) <msymbols_range>: Move from top level.
12430 <msymbols>: New method.
12431 (class objfile_msymbols): Remove.
12432 * symtab.c (default_collect_symbol_completion_matches_break_on):
12433 Update.
12434 * symmisc.c (dump_msymbols): Update.
12435 * stabsread.c (scan_file_globals): Update.
12436 * objc-lang.c (info_selectors_command, info_classes_command)
12437 (find_methods): Update.
12438 * minsyms.c (find_solib_trampoline_target): Update.
12439 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12440 * coffread.c (coff_symfile_read): Update.
12441 * ada-lang.c (ada_lookup_simple_minsym)
12442 (ada_collect_symbol_completion_matches): Update.
12443
12444 2019-01-16 Tom Tromey <tom@tromey.com>
12445
12446 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12447 type. Remove no-argument constructor.
12448 <iterator::operator++>: Simplify.
12449 <begin>: Update.
12450 <end>: Use minimal_symbol_count.
12451
12452 2019-01-16 Tom Tromey <tom@tromey.com>
12453
12454 * objfiles.h (struct objfile) <psymtabs>: New method.
12455 (class objfile_psymtabs): Remove.
12456 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12457 typedef.
12458 <range>: New method.
12459 (require_partial_symbols): Change return type.
12460 * psymtab.c (require_partial_symbols)
12461 (psym_expand_symtabs_matching): Update.
12462 * mdebugread.c (parse_partial_symbols): Update.
12463 * dbxread.c (dbx_end_psymtab): Update.
12464
12465 2019-01-15 Tom Tromey <tom@tromey.com>
12466
12467 * symtab.c (lookup_objfile_from_block)
12468 (lookup_symbol_in_objfile_symtabs)
12469 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12470 (find_line_symtab, info_sources_command)
12471 (default_collect_symbol_completion_matches_break_on)
12472 (make_source_files_completion_list): Update.
12473 * symmisc.c (print_objfile_statistics, dump_objfile)
12474 (maintenance_print_symbols, maintenance_info_symtabs)
12475 (maintenance_check_symtabs, maintenance_info_line_tables):
12476 Update.
12477 * source.c (select_source_symtab)
12478 (forget_cached_source_info_for_objfile): Update.
12479 * objfiles.h (class objfile_compunits): Remove.
12480 (struct objfile) <compunits_range>: New typedef.
12481 (compunits): New method.
12482 * objfiles.c (objfile_relocate1): Update.
12483 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12484 * maint.c (count_symtabs_and_blocks): Update.
12485 * linespec.c (iterate_over_all_matching_symtabs): Update.
12486 * cp-support.c (add_symbol_overload_list_qualified): Update.
12487 * coffread.c (coff_symtab_read): Update.
12488 * ada-lang.c (add_nonlocal_symbols)
12489 (ada_collect_symbol_completion_matches)
12490 (ada_add_global_exceptions): Update.
12491
12492 2019-01-15 Tom Tromey <tom@tromey.com>
12493
12494 * progspace.h (program_space) <objfiles_safe_range>: New
12495 typedef.
12496 <objfiles_safe>: New method.
12497 * objfiles.h (class all_objfiles_safe): Remove.
12498 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12499 * jit.c (jit_inferior_exit_hook): Update.
12500
12501 2019-01-17 Tom Tromey <tom@tromey.com>
12502
12503 * progspace.h (program_space) <objfiles_range>: New typedef.
12504 <objfiles>: New method.
12505 <objfiles_head>: Rename from objfiles.
12506 (object_files): Update.
12507 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12508 * guile/scm-pretty-print.c
12509 (ppscm_find_pretty_printer_from_objfiles): Update.
12510 * guile/scm-objfile.c (gdbscm_objfiles): Update.
12511 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12512 Update.
12513 * python/py-progspace.c (pspy_get_objfiles): Update.
12514 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12515 Update.
12516 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12517 (objfpy_lookup_objfile_by_build_id): Update.
12518 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12519 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12520 Update.
12521 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12522 (expand_symtab_containing_pc, lookup_objfile_from_block)
12523 (lookup_static_symbol, basic_lookup_transparent_type)
12524 (find_pc_sect_compunit_symtab, find_symbol_at_address)
12525 (find_line_symtab, info_sources_command)
12526 (default_collect_symbol_completion_matches_break_on)
12527 (make_source_files_completion_list, find_main_name): Update.
12528 * symmisc.c (print_symbol_bcache_statistics)
12529 (print_objfile_statistics, maintenance_print_symbols)
12530 (maintenance_print_msymbols, maintenance_print_objfiles)
12531 (maintenance_info_symtabs, maintenance_check_symtabs)
12532 (maintenance_expand_symtabs, maintenance_info_line_tables):
12533 Update.
12534 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12535 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12536 (map_overlay_command, unmap_overlay_command)
12537 (simple_overlay_update, expand_symtabs_matching)
12538 (map_symbol_filenames): Update.
12539 * symfile-debug.c (set_debug_symfile): Update.
12540 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12541 Update.
12542 * source.c (select_source_symtab, forget_cached_source_info):
12543 Update.
12544 * solib.c (solib_read_symbols): Update.
12545 * solib-spu.c (append_ocl_sos): Update.
12546 * psymtab.c (maintenance_print_psymbols)
12547 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12548 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12549 * printcmd.c (info_symbol_command): Update.
12550 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12551 Update.
12552 * objfiles.h (class all_objfiles): Remove.
12553 * objfiles.c (have_partial_symbols, have_full_symbols)
12554 (have_minimal_symbols, qsort_cmp, update_section_map)
12555 (shared_objfile_contains_address_p)
12556 (default_iterate_over_objfiles_in_search_order): Update.
12557 * objc-lang.c (info_selectors_command, info_classes_command)
12558 (find_methods): Update.
12559 * minsyms.c (find_solib_trampoline_target): Update.
12560 * maint.c (maintenance_info_sections)
12561 (maintenance_translate_address, count_symtabs_and_blocks):
12562 Update.
12563 * main.c (captured_main_1): Update.
12564 * linux-thread-db.c (try_thread_db_load_from_pdir)
12565 (has_libpthread): Update.
12566 * linespec.c (iterate_over_all_matching_symtabs)
12567 (search_minsyms_for_name): Update.
12568 * jit.c (jit_find_objf_with_entry_addr): Update.
12569 * hppa-tdep.c (find_unwind_entry)
12570 (hppa_lookup_stub_minimal_symbol): Update.
12571 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12572 Update.
12573 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12574 (elf_gnu_ifunc_resolve_by_got): Update.
12575 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12576 * dwarf-index-write.c (save_gdb_index_command): Update.
12577 * cp-support.c (add_symbol_overload_list_qualified): Update.
12578 * breakpoint.c (create_overlay_event_breakpoint)
12579 (create_longjmp_master_breakpoint)
12580 (create_std_terminate_master_breakpoint)
12581 (create_exception_master_breakpoint): Update.
12582 * blockframe.c (find_pc_partial_function): Update.
12583 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12584 (ada_collect_symbol_completion_matches)
12585 (ada_add_global_exceptions): Update.
12586
12587 2019-01-17 Tom Tromey <tom@tromey.com>
12588
12589 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12590 declare VEC.
12591 (solib_target_parse_libraries): Change return type.
12592 (library_list_start_segment, library_list_start_section)
12593 (library_list_end_library, library_list_start_library); Update.
12594 (solib_target_free_library_list): Remove.
12595 (solib_target_parse_libraries): Remove cleanup. Change return
12596 type.
12597 (solib_target_current_sos): Update.
12598
12599 2019-01-17 Tom Tromey <tromey@bapiya>
12600
12601 * valprint.c: Replace "the the" with "the".
12602 * symtab.c: Replace "the the" with "the".
12603 * solib.c: Replace "the the" with "the".
12604 * solib-dsbt.c: Replace "the the" with "the".
12605 * linespec.c: Replace "the the" with "the".
12606 * dwarf2loc.h: Replace "the the" with "the".
12607 * amd64-windows-tdep.c: Replace "the the" with "the".
12608 * aarch64-tdep.c: Replace "the the" with "the".
12609
12610 2019-01-16 Keith Seitz <keiths@redhat.com>
12611
12612 PR gdb/23773
12613 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12614 <builder>: Rename to ..
12615 <m_builder>: ... this and make private.
12616 (dwarf2_cu::get_builder): New method. Change all users of
12617 `builder' to use this method.
12618 (dwarf2_start_symtab): Move to ...
12619 (dwarf2_cu::start_symtab): ... here. Update all callers
12620 (setup_type_unit_groups): Move to ...
12621 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12622 callers.
12623 (dwarf2_cu::reset_builder): New method.
12624 (process_full_compunit, process_full_type_unit): Use
12625 dwarf2_cu::reset_builder.
12626 (follow_die_offset): Record the ancestor CU if it is different
12627 from the followed DIE's CU.
12628 (follow_die_sig_1): Likewise.
12629
12630 2019-01-15 Tom Tromey <tom@tromey.com>
12631
12632 * remote.c (class remote_state) <buf>: Now a char_vector.
12633 <buf_size>: Remove.
12634 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12635 parameter.
12636 (remote_target::getpkt_or_notif_sane_1)
12637 (remote_target::getpkt_sane)
12638 (remote_target::getpkt_or_notif_sane): Likewise.
12639 (class remote_target) <putpkt>: New overload.
12640 (remote_target::read_frame): Change type of "buf_p". Remove
12641 sizeof_p parameter.
12642 (packet_ok): New overload.
12643 (packet_check_result): New overload.
12644 Update all uses.
12645
12646 2019-01-14 Tom Tromey <tom@tromey.com>
12647
12648 * remote-notif.c (handle_notification, remote_notif_ack)
12649 (remote_notif_parse): Make "buf" const.
12650 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12651 const.
12652 (remote_notif_parse, remote_notif_ack, handle_notification):
12653 Likewise.
12654 * remote.c (remote_notif_stop_parse): Make "buf" const.
12655 (remote_target::remote_parse_stop_reply): Make "buf" const.
12656 (remote_notif_stop_ack): Make "buf" const.
12657
12658 2019-01-14 Tom Tromey <tom@tromey.com>
12659
12660 * remote.c (remote_console_output): Make parameter const.
12661
12662 2019-01-14 Tom Tromey <tom@tromey.com>
12663
12664 * target-debug.h (target_debug_print_signals): Constify.
12665 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12666 * procfs.c (procfs_target::pass_signals): Update.
12667 * linux-nat.c (linux_nat_target::pass_signals): Update.
12668 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12669 * target-delegates.c: Rebuild.
12670 * remote.c (remote_target::program_signals): Update.
12671 (remote_target::pass_signals): Update.
12672 * target.c (target_pass_signals): Constify argument.
12673 (target_program_signals): Likewise.
12674 * target.h (struct target_ops) <pass_signals, program_signals>:
12675 Constify argument.
12676 (target_pass_signals, target_program_signals): Constify argument.
12677
12678 2019-01-14 Tom Tromey <tom@tromey.com>
12679
12680 PR tui/28819:
12681 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12682
12683 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12684
12685 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12686 field.
12687 * rs6000-tdep.c: Include reggroups.h.
12688 (IS_V_ALIAS_PSEUDOREG): Define.
12689 (rs6000_register_name): Return names for the "vX" aliases.
12690 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12691 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12692 aliases. Call default_register_reggroup_p for all other
12693 pseudo-registers.
12694 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12695 New functions.
12696 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12697 Handle "vX" aliases.
12698 (v_alias_pseudo_register_collect): New function.
12699 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12700 (rs6000_gdbarch_init): Initialize "vX" aliases as
12701 pseudo-registers. Restore registration of
12702 rs6000_pseudo_register_reggroup_p with
12703 set_tdesc_pseudo_register_reggroup_p.
12704
12705 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12706
12707 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12708 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12709 set_gdbarch_num_pseudo_regs.
12710
12711 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12712
12713 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12714 Remove arg prefixname, add do_set and do_show.
12715 Add member functions set_list and show_list.
12716 * cli/cli-style.c (class cli_style_option): Update accordingly.
12717 (style_set_list): Move to file scope.
12718 (style_show_list): Likewise.
12719 (set_style): Call help_list.
12720 (show_style): Call cmd_show_list.
12721 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12722 Update to use the new macro.
12723
12724 2019-10-12 Joel Brobecker <brobecker@adacore.com>
12725
12726 * ada-lang.c (_initialize_ada_language): Expand the help text
12727 for the "catch exception" command.
12728
12729 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12730
12731 * symtab.c (matching_obj_sections): Initialize obj,
12732 declare it closer to its usage.
12733
12734 2019-01-10 Tom Tromey <tom@tromey.com>
12735
12736 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12737 (basic_inf_threads_range): Remove.
12738 (inf_threads_range, inf_non_exited_threads_range)
12739 (safe_inf_threads_range): Use next_adapter.
12740
12741 2019-01-10 Keith Seitz <keiths@redhat.com>
12742
12743 PR gdb/23712
12744 PR symtab/23010
12745 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12746 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12747
12748 2019-01-10 Keith Seitz <keiths@redhat.com>
12749
12750 PR gdb/23712
12751 PR symtab/23010
12752 * dictionary.c (pending_to_vector): Remove.
12753 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12754 Remove _1 suffix, replacing functions of the same name. Update
12755 all callers.
12756 (dict_create_hashed, dict_create_hashed_expandable)
12757 (dict_create_linear, dict_create_linear_expandable, dict_free)
12758 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12759 Make functions static.
12760
12761 2019-01-10 Keith Seitz <keiths@redhat.com>
12762
12763 PR gdb/23712
12764 PR symtab/23010
12765 * dictionary.h (struct dictionary): Replace declaration with
12766 multidictionary.
12767 (dict_create_hashed, dict_create_hashed_expandable)
12768 (dict_create_linear, dict_create_linear_expandable)
12769 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12770 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12771 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12772 taking multidictionary argument.
12773 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12774 * block.h (struct block) <dict>: Change to multidictionary
12775 and rename `multidict'.
12776 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12777 symmisc.c: Update all dictionary references to multidictionary.
12778
12779 2019-01-10 Keith Seitz <keiths@redhat.com>
12780
12781 PR gdb/23712
12782 PR symtab/23010
12783 * dictionary.c: Include unordered_map.
12784 (pending_to_vector): New function.
12785 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12786 Rewrite the non-"_1" functions to take vector instead
12787 of linked list.
12788 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12789 "new" _1 versions of the same name.
12790 (multidictionary): Define.
12791 (std::hash<enum language): New definition.
12792 (collate_pending_symbols_by_language, mdict_create_hashed)
12793 (mdict_create_hashed_expandable, mdict_create_linear)
12794 (mdict_create_linear_expandable, mdict_free)
12795 (find_language_dictionary, create_new_language_dictionary)
12796 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12797 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12798 (mdict_size, mdict_empty): New functions.
12799 * dictionary.h (mdict_iterator): Define.
12800
12801 2019-01-10 Pedro Alves <palves@redhat.com>
12802
12803 * breakpoint.c (read_uploaded_action)
12804 (create_tracepoint_from_upload): Adjust to use
12805 gdb::unique_xmalloc_ptr.
12806 * ctf.c (ctf_write_uploaded_tp):
12807 (SET_ARRAY_FIELD): Use emplace_back.
12808 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12809 * tracefile-tfile.c (tfile_write_uploaded_tp):
12810 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12811 gdb::unique_xmalloc_ptr.
12812 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12813 at_string, cond_string, cmd_strings>: Replace char pointers
12814 with gdb::unique_xmalloc_ptr.
12815
12816 2019-01-10 Pedro Alves <palves@redhat.com>
12817
12818 * solib-target.c (library_list_start_library): Don't xstrdup name.
12819
12820 2019-01-10 Pedro Alves <palves@redhat.com>
12821
12822 * mdebugread.c (parse_partial_symbols): Use
12823 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12824
12825 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12826
12827 * linux-fork.c (scoped_switch_fork_info)
12828 <~scoped_switch_fork_info>: Fix incorrect variable name.
12829
12830 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12831
12832 * linux-fork.c (scoped_switch_fork_info)
12833 <scoped_switch_fork_info>: Make explicit.
12834 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12835
12836 2019-01-10 Tom Tromey <tom@tromey.com>
12837
12838 * objfiles.h (objfile::reset_psymtabs): Update.
12839 * objfiles.c (objfile::objfile): Update.
12840 * psymtab.h (psymtab_storage::obstack): Update.
12841 (psymtab_storage::m_obstack): Use gdb::optional.
12842 (class psymtab_storage): Update comment. Remove objfile
12843 parameter.
12844 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12845
12846 2019-01-10 Tom Tromey <tom@tromey.com>
12847
12848 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12849 <free_psymtabs>: Now private.
12850 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12851 (allocate_psymtab): Use new method.
12852
12853 2019-01-10 Tom Tromey <tom@tromey.com>
12854
12855 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12856 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12857 * mdebugread.c (parse_partial_symbols): Use
12858 allocate_dependencies.
12859 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12860 allocate_dependencies.
12861 (process_psymtab_comp_unit_reader)
12862 (build_type_psymtab_dependencies): Likewise.
12863 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12864
12865 2019-01-10 Tom Tromey <tom@tromey.com>
12866
12867 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12868 PSYMBOL_SET_LANGUAGE.
12869 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12870
12871 2019-01-10 Tom Tromey <tom@tromey.com>
12872
12873 * psymtab.h (psymtab_storage::obstack): New method.
12874 <m_obstack>: Rename from obstack; now private.
12875 * psymtab.c (psymtab_storage): Update.
12876 * dwarf2read.c (create_addrmap_from_index)
12877 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12878 Update.
12879
12880 2019-01-10 Tom Tromey <tom@tromey.com>
12881
12882 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12883 * objfiles.h (objfile::reset_psymtabs): New method.
12884
12885 2019-01-10 Tom Tromey <tom@tromey.com>
12886
12887 * symmisc.c (print_symbol_bcache_statistics): Update.
12888 (print_objfile_statistics): Update.
12889 * symfile.c (reread_symbols): Update.
12890 * psymtab.h (class psymtab_storage): New.
12891 * psymtab.c (psymtab_storage): New constructor.
12892 (~psymtab_storage): New destructor.
12893 (require_partial_symbols): Update.
12894 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12895 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12896 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12897 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12898 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12899 (start_psymtab_common, end_psymtab_common)
12900 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12901 (allocate_psymtab): Update.
12902 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12903 Update.
12904 (dump_psymtab_addrmap, maintenance_print_psymbols)
12905 (maintenance_check_psymtabs): Update.
12906 (class objfile_psymtabs): Move to objfiles.h.
12907 * psympriv.h (discard_psymtab): Now inline.
12908 (psymtab_discarder::psymtab_discarder): Update.
12909 (psymtab_discarder::~psymtab_discarder): Update.
12910 (ALL_OBJFILE_PSYMTABS): Rewrite.
12911 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12912 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12913 Remove fields.
12914 <partial_symtabs>: New field.
12915 (class objfile_psymtabs): Move from psymtab.h. Update.
12916 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12917 psymbol_cache.
12918 (objfile::~objfile): Don't destroy psymbol_cache.
12919 * mdebugread.c (parse_partial_symbols): Update.
12920 * dwarf2read.c (create_addrmap_from_index)
12921 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12922 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12923 (add_partial_subprogram, dwarf2_ranges_read): Update.
12924 * dwarf-index-write.c (write_address_map)
12925 (write_one_signatured_type, recursively_write_psymbols)
12926 (class debug_names, class debug_names, write_psymtabs_to_index):
12927 Update.
12928
12929 2019-01-10 Tom Tromey <tom@tromey.com>
12930
12931 * symtab.h (SYMBOL_SET_NAMES): Update.
12932 (symbol_set_names): Update.
12933 (MSYMBOL_SET_NAMES): Update.
12934 * symtab.c (symbol_set_names): Change argument to be an
12935 objfile_per_bfd_storage.
12936 * psymtab.c (add_psymbol_to_bcache): Update.
12937 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12938
12939 2019-01-10 Tom Tromey <tom@tromey.com>
12940
12941 * symtab.c (create_demangled_names_hash): Change argument to be an
12942 objfile_per_bfd_storage.
12943 (symbol_set_names): Update.
12944
12945 2019-01-10 Tom Tromey <tom@tromey.com>
12946
12947 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12948 init_psymbol_list.
12949 * psymtab.c (init_psymbol_list): Do nothing if already called.
12950 * psympriv.h (init_psymbol_list): Add comment.
12951 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12952 init_psymbol_list.
12953 * dbxread.c (dbx_symfile_read): Unconditionally call
12954 init_psymbol_list.
12955
12956 2019-01-10 Tom Tromey <tom@tromey.com>
12957
12958 * xcoffread.c (scan_xcoff_symtab): Update.
12959 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12960 "where".
12961 * mdebugread.c (parse_partial_symbols)
12962 (handle_psymbol_enumerators): Update.
12963 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12964 * dbxread.c (read_dbx_symtab): Update.
12965 * psympriv.h (psymbol_placement): New enum.
12966 (add_psymbol_to_list): Update.
12967
12968 2019-01-10 Tom Tromey <tom@tromey.com>
12969
12970 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12971 static_psymbols parameters.
12972 (scan_xcoff_symtab): Update.
12973 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12974 static_psymbols parameters.
12975 * psympriv.h (start_psymtab_common): Update.
12976 * mdebugread.c (parse_partial_symbols): Update.
12977 * dwarf2read.c (create_partial_symtab): Update.
12978 * dbxread.c (read_dbx_symtab): Update.
12979 (start_psymtab): Remove global_psymbols and static_psymbols
12980 parameters.
12981
12982 2019-01-10 Tom Tromey <tom@tromey.com>
12983
12984 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12985 * psymtab.c (allocate_psymtab): Add comment.
12986 * psympriv.h (allocate_psymtab): Add comment.
12987 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12988 initializations.
12989 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12990
12991 2019-01-10 Tom Tromey <tom@tromey.com>
12992
12993 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12994 Don't declare.
12995 * mipsread.c: Include mdebugread.h.
12996 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12997 Declare.
12998 * elfread.c: Include mdebugread.h.
12999
13000 2019-01-09 Tom Tromey <tom@tromey.com>
13001
13002 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13003 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13004 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13005 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13006 (psym_lookup_symbol, psym_find_last_source_symtab)
13007 (psym_forget_cached_source_info, psym_print_stats)
13008 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13009 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13010 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13011 (psym_find_compunit_symtab_by_address)
13012 (maintenance_print_psymbols, maintenance_info_psymtabs)
13013 (maintenance_check_psymtabs): Use ranged for.
13014 * psymtab.h (class objfile_psymtabs): New.
13015 (require_partial_symbols): Return objfile_psymtabs.
13016 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13017
13018 2019-01-09 Tom Tromey <tom@tromey.com>
13019
13020 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13021 (find_pc_mapped_section, list_overlays_command)
13022 (map_overlay_command, unmap_overlay_command)
13023 (simple_overlay_update): Use all_objfiles.
13024 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13025 * printcmd.c (info_symbol_command): Use all_objfiles.
13026 * objfiles.h (ALL_OBJSECTIONS): Remove.
13027 * maint.c (maintenance_translate_address): Use all_objfiles.
13028 * gcore.c (gcore_create_callback): Use all_objfiles.
13029 (objfile_find_memory_regions): Likewise.
13030
13031 2019-01-09 Tom Tromey <tom@tromey.com>
13032
13033 * symtab.c (find_line_symtab, info_sources_command)
13034 (make_source_files_completion_list): Use objfile_compunits.
13035 * source.c (select_source_symtab): Use objfile_compunits.
13036 * objfiles.h (struct objfile): Update comment.
13037 (ALL_OBJFILES): Remove.
13038 (ALL_FILETABS): Remove.
13039 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13040 objfile_compunits.
13041
13042 2019-01-09 Tom Tromey <tom@tromey.com>
13043
13044 * symmisc.c (print_objfile_statistics, dump_objfile)
13045 (maintenance_print_symbols): Use compunit_filetabs.
13046 * source.c (forget_cached_source_info_for_objfile): Use
13047 compunit_filetabs.
13048 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13049 (ALL_FILETABS): Use compunit_filetabs.
13050 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13051 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13052
13053 2019-01-09 Tom Tromey <tom@tromey.com>
13054
13055 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13056 (compunit_filetabs): New.
13057 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13058 compunit_filetabs.
13059 (info_sources_command, make_source_files_completion_list): Remove
13060 declaration.
13061 * symmisc.c (print_objfile_statistics, dump_objfile)
13062 (maintenance_print_symbols): Remove declaration.
13063 (maintenance_info_symtabs): Use compunit_filetabs.
13064 (maintenance_info_line_tables): Likewise.
13065 * source.c (select_source_symtab): Change local variable name.
13066 (forget_cached_source_info_for_objfile): Remove declaration.
13067 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13068 * objfiles.c (objfile_relocate1): Remove declaration.
13069 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13070 declaration.
13071 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13072 * coffread.c (coff_symtab_read): Remove declaration.
13073 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13074 compunit_filetabs.
13075
13076 2019-01-09 Tom Tromey <tom@tromey.com>
13077
13078 * symtab.c (lookup_objfile_from_block)
13079 (find_pc_sect_compunit_symtab, search_symbols)
13080 (default_collect_symbol_completion_matches_break_on): Use
13081 objfile_compunits.
13082 * objfiles.h (ALL_COMPUNITS): Remove.
13083 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13084 * cp-support.c (add_symbol_overload_list_qualified): Use
13085 objfile_compunits.
13086 * ada-lang.c (ada_collect_symbol_completion_matches)
13087 (ada_add_global_exceptions): Use objfile_compunits.
13088
13089 2019-01-09 Tom Tromey <tom@tromey.com>
13090
13091 * source.c (select_source_symtab)
13092 (forget_cached_source_info_for_objfile): Remove declaration.
13093 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13094 declaration.
13095 * maint.c (count_symtabs_and_blocks): Remove declaration.
13096 * cp-support.c (add_symbol_overload_list_qualified): Remove
13097 declaration.
13098 * coffread.c (coff_symtab_read): Remove declaration.
13099 * symtab.c (lookup_symbol_in_objfile_symtabs)
13100 (basic_lookup_transparent_type_1): Use objfile_compunits.
13101 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13102 (info_sources_command, search_symbols)
13103 (default_collect_symbol_completion_matches_break_on)
13104 (make_source_files_completion_list): Remove declaration.
13105 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13106 (ada_collect_symbol_completion_matches)
13107 (ada_add_global_exceptions): Remove declaration.
13108 * linespec.c (iterate_over_all_matching_symtabs): Use
13109 objfile_compunits.
13110 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13111 (class objfile_compunits): New.
13112 (ALL_COMPUNITS): Use objfile_compunits.
13113 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13114 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13115 objfile_compunits.
13116 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13117
13118 2019-01-09 Tom Tromey <tom@tromey.com>
13119
13120 * symtab.c (search_symbols)
13121 (default_collect_symbol_completion_matches_break_on): Use
13122 objfile_msymbols.
13123 * ada-lang.c (ada_lookup_simple_minsym)
13124 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13125 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13126 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13127 objfile_msymbols.
13128 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13129 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13130 * objc-lang.c (find_methods): Use objfile_msymbols.
13131 (info_selectors_command, info_classes_command): Likewise.
13132 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13133 * objfiles.h (class objfile_msymbols): New.
13134 (ALL_OBJFILE_MSYMBOLS): Remove.
13135 (ALL_MSYMBOLS): Remove.
13136
13137 2019-01-09 Tom Tromey <tom@tromey.com>
13138
13139 * common/next-iterator.h (next_adapter): Add Iterator template
13140 parameter.
13141 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13142 (class all_objfiles_safe): New.
13143 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13144 * objfiles.c (put_objfile_before): Update comment.
13145 (add_separate_debug_objfile): Likewise.
13146 (free_all_objfiles): Use all_objfiles_safe.
13147 (objfile_purge_solibs): Likewise.
13148
13149 2019-01-09 Tom Tromey <tom@tromey.com>
13150
13151 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13152 (expand_symtab_containing_pc, lookup_static_symbol)
13153 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13154 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13155 all_objfiles.
13156 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13157 * breakpoint.c (create_overlay_event_breakpoint)
13158 (create_longjmp_master_breakpoint)
13159 (create_std_terminate_master_breakpoint)
13160 (create_exception_master_breakpoint): Use all_objfiles.
13161 * linux-thread-db.c (try_thread_db_load_from_pdir)
13162 (has_libpthread): Use all_objfiles.
13163 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13164 * linespec.c (iterate_over_all_matching_symtabs)
13165 (search_minsyms_for_name): Use all_objfiles.
13166 * maint.c (maintenance_info_sections): Use all_objfiles.
13167 * main.c (captured_main_1): Use all_objfiles.
13168 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13169 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13170 * guile/scm-pretty-print.c
13171 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13172 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13173 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13174 (maintenance_print_msymbols): Use all_objfiles.
13175 * source.c (select_source_symtab): Use all_objfiles.
13176 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13177 * symfile.c (remove_symbol_file_command)
13178 (expand_symtabs_matching, map_symbol_filenames): Use
13179 all_objfiles.
13180 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13181 all_objfiles.
13182 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13183 * objc-lang.c (find_methods): Use all_objfiles.
13184 * objfiles.c (have_partial_symbols, have_full_symbols)
13185 (have_minimal_symbols, qsort_cmp)
13186 (default_iterate_over_objfiles_in_search_order): Use
13187 all_objfiles.
13188 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13189 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13190 (maintenance_check_psymtabs): Use all_objfiles.
13191 (ALL_PSYMTABS): Remove.
13192 * compile/compile-object-run.c (do_module_cleanup): Use
13193 all_objfiles.
13194 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13195 * cp-support.c (add_symbol_overload_list_qualified): Use
13196 all_objfiles.
13197 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13198 Use all_objfiles.
13199 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13200 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13201 all_objfiles.
13202 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13203 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13204 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13205 Uses all_objfiles.
13206 * solib.c (solib_read_symbols): Use all_objfiles
13207
13208 2019-01-09 Tom Tromey <tom@tromey.com>
13209
13210 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13211 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13212 all_objfiles.
13213 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13214 * symmisc.c (print_symbol_bcache_statistics)
13215 (print_objfile_statistics, maintenance_print_objfiles)
13216 (maintenance_info_symtabs, maintenance_check_symtabs)
13217 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13218 all_objfiles.
13219 * source.c (forget_cached_source_info): Use all_objfiles.
13220 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13221 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13222 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13223 * objfiles.c (update_section_map): Use all_objfiles.
13224 (shared_objfile_contains_address_p): Likewise.
13225 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13226 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13227
13228 2019-01-09 Tom Tromey <tom@tromey.com>
13229
13230 * common/next-iterator.h: New file.
13231 * objfiles.h (class all_objfiles): New.
13232 (struct objfile_iterator): New.
13233
13234 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13235
13236 * NEWS: Move the description of the changed "frame", "select-frame",
13237 and "info frame" commands to the Changed commands section.
13238
13239 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13240
13241 * gdbtypes.c (check_stub_method_group): Remove handling of old
13242 mangling schemes.
13243 * linespec.c (find_methods): Likewise.
13244 * stabsread.c (read_member_functions): Likewise.
13245 * valops.c (search_struct_method): Likewise.
13246 (value_struct_elt_for_reference): Likewise.
13247 * NEWS: Mention this change.
13248
13249 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13250
13251 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13252 print_source_lines.
13253 * source.c (print_source_lines_base): Update line number check.
13254 (print_source_lines): New function.
13255 (source_lines_range::source_lines_range): New function.
13256 * source.h (class source_lines_range): New class.
13257 (print_source_lines): New declaration.
13258
13259 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13260
13261 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13262
13263 2019-01-08 Tom Tromey <tom@tromey.com>
13264 Simon Marchi <simon.marchi@ericsson.com>
13265
13266 PR gdb/24060
13267 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13268 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13269 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13270 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13271 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13272 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13273
13274 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13275
13276 * source.c (select_source_symtab): Move header comment to
13277 declaration in source.h.
13278 (forget_cached_source_info_for_objfile): Likewise.
13279 (forget_cached_source_info): Likewise.
13280 (identify_source_line): Likewise.
13281 * source.h (identify_source_line): Move declaration from symtab.h
13282 and add comment from source.c
13283 (print_source_lines): Likewise.
13284 (forget_cached_source_info_for_objfile): Likewise.
13285 (forget_cached_source_info): Likewise.
13286 (select_source_symtab): Likewise.
13287 (enum print_source_lines_flag): Move definition from symtab.h.
13288 * symtab.h (identify_source_line): Move declaration to source.h.
13289 (print_source_lines): Likewise.
13290 (forget_cached_source_info_for_objfile): Likewise.
13291 (forget_cached_source_info): Likewise.
13292 (select_source_symtab): Likewise.
13293 (enum print_source_lines_flag): Move definition to source.h.
13294 * tui/tui-hooks.c: Add 'source.h' include.
13295
13296 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13297
13298 * source.c (print_source_lines_base): Handle requests to print
13299 reverse line number sequences, and guard against empty lines
13300 string.
13301
13302 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13303
13304 * source.c (print_source_lines_base): Fix skip of '\r' if next
13305 character is '\n'.
13306
13307 2019-01-06 Tom Tromey <tom@tromey.com>
13308
13309 * c-exp.y (struct c_parse_state) <macro_original_text,
13310 expansion_obstack>: New member.
13311 (macro_original_text, expansion_obstack): Remove globals.
13312 (scan_macro_expansion, scanning_macro_expansion)
13313 (finished_macro_expansion): Update.
13314 (scan_macro_cleanup): Remove.
13315 (yylex, c_parse): Update.
13316
13317 2019-01-06 Tom Tromey <tom@tromey.com>
13318
13319 * c-exp.y (struct c_parse_state) <strings>: New member.
13320 (operator_stoken): Update.
13321
13322 2019-01-06 Tom Tromey <tom@tromey.com>
13323
13324 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13325 (union type_stack_elt) <typelist_val>: Now a pointer to
13326 std::vector.
13327 (type_stack_cleanup): Don't declare.
13328 (push_typelist): Update.
13329 * parse.c (pop_typelist): Return a std::vector.
13330 (push_typelist): Take a std::vector.
13331 (follow_types): Update. Do not free args.
13332 (type_stack_cleanup): Remove.
13333 * c-exp.y (struct c_parse_state): New.
13334 (cpstate): New global.
13335 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13336 (nonempty_typelist): Update.
13337 (func_mod): Create a new vector.
13338 (c_parse): Create a c_parse_state.
13339 (check_parameter_typelist): Do not delete params.
13340 (function_method): Update. Do not delete type_list.
13341
13342 2019-01-06 Tom Tromey <tom@tromey.com>
13343
13344 PR gdb/28155:
13345 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13346 check_typedef.
13347 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13348 (print_return_value): Likewise.
13349
13350 2019-01-05 Tom Tromey <tom@tromey.com>
13351
13352 * contrib/cleanup_check.py: Remove.
13353 * contrib/gcc-with-excheck: Remove.
13354 * contrib/exsummary.py: Remove.
13355 * contrib/excheck.py: Remove.
13356
13357 2019-01-05 Joel Brobecker <brobecker@adacore.com>
13358
13359 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13360 NULL. Initialize tpprev to NULL instead of assigning it
13361 to NULL on the next statement.
13362 * windows-nat.c (windows_delete_thread): Remove check for
13363 main_thread_id before printing thread exit notifications.
13364 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13365 Remove thread ID check against main_thread_id.
13366 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13367 windows_delete_thread.
13368 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13369
13370 2019-01-04 Tom Tromey <tom@tromey.com>
13371
13372 * compile/compile.c (_initialize_compile): Use upper case for
13373 metasyntactic variables.
13374 * symmisc.c (_initialize_symmisc): Use upper case for
13375 metasyntactic variables.
13376 * psymtab.c (_initialize_psymtab): Use upper case for
13377 metasyntactic variables.
13378 * demangle.c (demangle_command): Use upper case for metasyntactic
13379 variables.
13380 (_initialize_demangler): Likewise.
13381 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13382 variables.
13383
13384 2019-01-03 Tom Tromey <tom@tromey.com>
13385
13386 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13387
13388 2019-01-03 Tom Tromey <tom@tromey.com>
13389
13390 * python/py-symtab.c (salpy_str): Update.
13391 (struct salpy_sal_object) <symtab>: Now a PyObject.
13392 (salpy_dealloc): Update.
13393 (del_objfile_sal): Use gdbpy_ref.
13394
13395 2019-01-03 Tom Tromey <tom@tromey.com>
13396
13397 * python/py-type.c (convert_field): Use new_reference. Return
13398 gdbpy_ref.
13399 (make_fielditem): Return gdbpy_ref.
13400 (typy_fields): Update.
13401 (typy_getitem): Update.
13402 (field_name): Return gdbpy_ref. Use new_reference.
13403 (typy_iterator_iternext): Update.
13404
13405 2019-01-03 Tom Tromey <tom@tromey.com>
13406
13407 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13408
13409 2019-01-03 Tom Tromey <tom@tromey.com>
13410
13411 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13412 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13413 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13414 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13415 (pspy_set_type_printers): Likewise.
13416 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13417 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13418 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13419 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13420 (objfpy_set_type_printers): Likewise.
13421
13422 2019-01-03 Tom Tromey <tom@tromey.com>
13423
13424 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13425 (gdbpy_print_stack): Use gdbpy_err_fetch.
13426 * python/python-internal.h (class gdbpy_err_fetch): New class.
13427 (class gdbpy_enter) <m_error_type, m_error_value,
13428 m_error_traceback>: Remove.
13429 <m_error>: New member.
13430 (gdbpy_exception_to_string): Don't declare.
13431 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13432 * python/py-value.c (convert_value_from_python): Use
13433 gdbpy_err_fetch.
13434 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13435 gdbpy_exception_to_string.
13436 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13437 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13438 gdbpy_err_fetch.
13439
13440 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13441
13442 * linux-nat.c (delete_lwp_cleanup): Delete.
13443 (struct lwp_deleter): New struct.
13444 (lwp_info_up): New typedef.
13445 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13446 lwp_info_up.
13447
13448 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13449
13450 * linux-fork.c (class scoped_switch_fork_info): New class.
13451 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13452
13453 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13454
13455 * valops.c (find_overload_match): Remove use of null_cleanup, and
13456 calls to do_cleanups.
13457
13458 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13459
13460 * compile/compile-cplus-types.c
13461 (compile_cplus_instance::decl_name): Handle changes to
13462 cp_func_name.
13463 * cp-support.c (cp_func_name): Update header comment, update
13464 return type.
13465 * cp-support.h (cp_func_name): Update return type in declaration.
13466 * valops.c (find_overload_match): Move temp_func local to top
13467 level of function and change its type. Use temp_func to hold and
13468 delete temporary string obtained from cp_func_name.
13469
13470 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13471
13472 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13473 gdb::char_vector, remove cleanup, and update uses of `msg`.
13474
13475 2019-01-03 Jim Wilson <jimw@sifive.com>
13476
13477 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13478
13479 2019-01-02 Tom Tromey <tom@tromey.com>
13480
13481 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13482 (tdesc_parse_xml): Remove cleanups.
13483 * target-descriptions.h (make_cleanup_free_target_description):
13484 Don't declare.
13485 (target_desc_deleter): New struct.
13486 (target_desc_up): New typedef.
13487 * target-descriptions.c (target_desc_deleter::operator()): Rename
13488 from free_target_description.
13489 (make_cleanup_free_target_description): Remove.
13490
13491 2019-01-02 Tom Tromey <tom@tromey.com>
13492
13493 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
13494 constructor, destructor.
13495 (linespec_parser): Remove typedef.
13496 (~linespec_parser): Rename from linespec_parser_delete.
13497 (linespec_lex_to_end, linespec_complete_label)
13498 (linespec_complete): Update.
13499 (decode_line_full): Remove cleanups.
13500 (decode_line_1): Update.
13501
13502 2019-01-02 Tom Tromey <tom@tromey.com>
13503
13504 * python/python-internal.h (inferior_to_inferior_object): Change
13505 return type.
13506 * python/py-exitedevent.c (create_exited_event_object): Update.
13507 * python/py-inferior.c (inferior_to_inferior_object): Return
13508 gdbpy_ref.
13509 (python_new_inferior, python_inferior_deleted)
13510 (thread_to_thread_object, delete_thread_object)
13511 (build_inferior_list, gdbpy_selected_inferior): Update.
13512 * python/py-infthread.c (create_thread_object): Update. Also fail
13513 if inferior_to_inferior_object fails.
13514
13515 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
13516
13517 * inferior.h (class inferior) <displaced_step_state>: New field.
13518 * infrun.h (struct displaced_step_state): Move here from
13519 infrun.c. Initialize fields, add constructor.
13520 <inf>: Remove field.
13521 <reset>: New method.
13522 * infrun.c (struct displaced_step_inferior_state): Move to
13523 infrun.h.
13524 (displaced_step_inferior_states): Remove.
13525 (get_displaced_stepping_state): Adust.
13526 (displaced_step_in_progress_any_inferior): Adjust.
13527 (displaced_step_in_progress_thread): Adjust.
13528 (displaced_step_in_progress): Adjust.
13529 (add_displaced_stepping_state): Remove.
13530 (get_displaced_step_closure_by_addr): Adjust.
13531 (remove_displaced_stepping_state): Remove.
13532 (infrun_inferior_exit): Call displaced_step_state.reset.
13533 (use_displaced_stepping): Don't check for NULL.
13534 (displaced_step_prepare_throw): Call
13535 get_displaced_stepping_state.
13536 (displaced_step_fixup): Don't check for NULL.
13537 (prepare_for_detach): Don't check for NULL.
13538
13539 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13540
13541 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13542 in case of call that did not complete.
13543
13544 2019-01-02 Andrey Utkin <autkin@undo.io>
13545
13546 * symfile.c (find_separate_debug_file): Fix search of debug files for
13547 remote debuggee.
13548
13549 2019-01-02 Tom Tromey <tom@tromey.com>
13550
13551 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13552 indentation.
13553 * python/py-frame.c (frapy_older): Remove cast.
13554 (frapy_newer): Likewise.
13555 * python/py-breakpoint.c (local_setattro): Remove cast.
13556 * python/py-arch.c (archpy_name): Remove local variable.
13557 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13558
13559 2019-01-02 Joel Brobecker <brobecker@adacore.com>
13560
13561 * unittests/basic_string_view/element_access/char/empty.cc:
13562 Fix year range in copyright header.
13563
13564 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13565
13566 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13567 Delete.
13568 <operator==>: Update with for removed field.
13569 <hash>: Likewise.
13570 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13571 <isa_features>: ...this.
13572 <abi_features>: New field.
13573 (riscv_isa_flen): Update comment.
13574 (riscv_abi_xlen): New declaration.
13575 (riscv_abi_flen): New declaration.
13576 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13577 isa_features.
13578 (riscv_abi_xlen): New function.
13579 (riscv_isa_flen): Update to get answer from isa_features.
13580 (riscv_abi_flen): New function.
13581 (riscv_has_fp_abi): Update to get answer from abi_features.
13582 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13583 xlen and flen.
13584 (riscv_call_info) <xlen, flen>: Update comment.
13585 (riscv_call_arg_struct): Remove invalid assertions
13586 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13587 is removed.
13588 (riscv_gdbarch_init): Gather isa features and abi features
13589 separately, ensure both match on the gdbarch when reusing an old
13590 gdbarch. Relax an error check to allow 32-bit abi float to run on
13591 a target with 64-bit float hardware.
13592
13593 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13594
13595 * source.c (search_command_helper): Stop reverse search
13596 when line 1 has been searched.
13597
13598 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13599
13600 * record-full.c (record_full_base_target::close): Rewrite
13601 record_full_core_buf_list free logic.
13602
13603 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13604
13605 * break-catch-syscall.c (print_one_catch_syscall): xfree
13606 the last text.
13607
13608 2019-01-01 Joel Brobecker <brobecker@adacore.com>
13609
13610 * top.c (print_gdb_version): Update Copyright year in version
13611 message.
13612
13613 2019-01-01 Joel Brobecker <brobecker@adacore.com>
13614
13615 Update copyright year range in all GDB files.
13616
13617 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
13618
13619 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
13620
13621 For older changes see ChangeLog-2018.
13622 \f
13623 Local Variables:
13624 mode: change-log
13625 left-margin: 8
13626 fill-column: 74
13627 version-control: never
13628 coding: utf-8
13629 End:
13630
This page took 0.352358 seconds and 5 git commands to generate.