gdb/testsuite: Reduce test name duplication in gdb.python tests
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d8c06f22
AB
12019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
4 have just sent the thread a SIGSTOP and are waiting for it to
5 arrive.
6
a8b3b8e9
AB
72019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
8
9 * btrace.c (btrace_add_pc): Remove whitespace before the template
10 parameter in 'std::vector <...>'.
11 (parse_xml_btrace_block): Likewise.
12 (btrace_maint_decode_pt): Likewise.
13 (btrace_maint_update_packets): Likewise.
14 (btrace_maint_print_packets): Likewise.
15 * btrace.h (struct btrace_maint_info): Likewise.
16 * dwarf2read.c (struct type_unit_group): Likewise.
17 (build_type_psymtabs_reader): Likewise.
18 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
19 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
20 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
21
4d825eab
TV
222019-10-03 Tom de Vries <tdevries@suse.de>
23
24 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
25 the first line of the help text for set/show style metadata.
26
80fd2826
TT
272019-10-02 Tom Tromey <tromey@adacore.com>
28
29 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
30 * gdbsupport/common-inferior.c: New file.
31 * infcmd.c (startup_with_shell): Don't define.
32 * nat/fork-inferior.h (startup_with_shell): Don't declare.
33 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
34 * inferior.h (startup_with_shell): Don't declare.
35
70054538
CB
362019-10-02 Christian Biesinger <cbiesinger@google.com>
37
38 * gdbsupport/gdb_assert.h: Include errors.h.
39 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
40
37f6a7f4
TT
412019-10-02 Tom Tromey <tromey@adacore.com>
42
43 * NEWS: Add $_ada_exception entry.
44 * ada-lang.c (struct ada_catchpoint): Add constructor.
45 <m_kind>: New member.
46 (allocate_location_exception, re_set_exception): Remove
47 "ex" parameter.
48 (should_stop_exception): Compute $_ada_exception.
49 (check_status_exception, print_it_exception)
50 (print_one_exception, print_mention_exception): Remove
51 "ex" parameter.
52 (allocate_location_catch_exception, re_set_catch_exception)
53 (check_status_exception, print_it_catch_exception)
54 (print_one_catch_exception, print_mention_catch_exception)
55 (print_recreate_catch_exception)
56 (allocate_location_catch_exception_unhandled)
57 (re_set_catch_exception_unhandled)
58 (check_status_exception, print_it_catch_exception_unhandled)
59 (print_one_catch_exception_unhandled)
60 (print_mention_catch_exception_unhandled)
61 (print_recreate_catch_exception_unhandled)
62 (allocate_location_catch_assert, re_set_catch_assert)
63 (check_status_assert, print_it_catch_assert)
64 (print_one_catch_assert, print_mention_catch_assert)
65 (print_recreate_catch_assert)
66 (allocate_location_catch_handlers, re_set_catch_handlers)
67 (check_status_handlers, print_it_catch_handlers)
68 (print_one_catch_handlers, print_mention_catch_handlers)
69 (print_recreate_catch_handlers): Remove.
70 (create_ada_exception_catchpoint): Update.
71 (initialize_ada_catchpoint_ops): Update.
72
fccf9de1
TT
732019-10-02 Tom Tromey <tromey@adacore.com>
74
75 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
76 (create_excep_cond_exprs): Simplify exception string computation.
77 (ada_exception_catchpoint_cond_string): Likewise.
78
4b610737
TT
792019-10-02 Tom Tromey <tromey@adacore.com>
80
81 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
82 * ada-lang.c (lesseq_defined_than): Handle
83 LOC_STATIC.
84 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
85 parameter.
86 (dwarf2_has_info): Likewise.
87 (new_symbol): Set maybe_copied on symbol when
88 appropriate.
89 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
90 parameter.
91 <can_copy>: New member.
92 * elfread.c (record_minimal_symbol): Set maybe_copied
93 on symbol when appropriate.
94 (elf_symfile_read): Update call to dwarf2_has_info.
95 * minsyms.c (lookup_minimal_symbol_linkage): New
96 function.
97 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
98 * symtab.c (get_symbol_address, get_msymbol_address):
99 New functions.
100 * symtab.h (get_symbol_address, get_msymbol_address):
101 Declare.
102 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
103 maybe_copied.
104 (struct symbol, struct minimal_symbol) <maybe_copied>:
105 New member.
106
1dd58850
TT
1072019-10-02 Tom Tromey <tromey@adacore.com>
108
109 * source.c (struct current_source_location): New.
110 (current_source_key): New global.
111 (current_source_symtab, current_source_line)
112 (current_source_pspace): Remove.
113 (get_source_location): New function.
114 (get_current_source_symtab_and_line)
115 (set_default_source_symtab_and_line)
116 (set_current_source_symtab_and_line)
117 (clear_current_source_symtab_and_line, select_source_symtab)
118 (info_source_command, print_source_lines_base)
119 (info_line_command, search_command_helper, _initialize_source):
120 Update.
121
5c281dbb
TT
1222019-10-02 Tom Tromey <tromey@adacore.com>
123
124 * source.c (select_source_symtab): Don't call
125 decode_line_with_current_source.
126
d3d32391
AB
1272019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
128
129 * symtab.c (lookup_global_symbol): Search global block.
130
38583298
TT
1312019-10-02 Tom Tromey <tromey@adacore.com>
132
133 * coffread.c (process_coff_symbol): Update.
134 * dwarf2read.c (var_decode_location, new_symbol): Update.
135 * mdebugread.c (parse_symbol): Update.
136 * objfiles.c (relocate_one_symbol): Update.
137 * stabsread.c (define_symbol, fix_common_block)
138 (scan_file_globals): Update.
139 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
140 (SET_SYMBOL_VALUE_ADDRESS): New macro.
141 * xcoffread.c (process_xcoff_symbol): Update.
142
9344c18f
AA
1432019-10-02 Andreas Arnez <arnez@linux.ibm.com>
144
145 * MAINTAINERS: Update my email address.
146
df07e2c7
AB
1472019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
148
149 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
150 std::vector.
151 (build_type_psymtabs_reader): Update for std::vector.
152 (build_type_psymtab_dependencies): Likewise.
153 * dwarf2read.h: Remove use of DEF_VEC_P.
154 (typedef sig_type_ptr): Delete.
155
554ac434
AB
1562019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
157
158 * btrace.c (btrace_maint_clear): Update to handle change from VEC
159 to std::vector.
160 (btrace_maint_decode_pt): Likewise, and move allocation of the
161 vector outside of the loop.
162 (btrace_maint_update_packets): Update to handle change from VEC to
163 std::vector.
164 (btrace_maint_print_packets): Likewise.
165 (maint_info_btrace_cmd): Likewise.
166 * btrace.h: Remove use of DEF_VEC_O.
167 (typedef btrace_pt_packet_s): Delete.
168 (struct btrace_maint_info) <packets>: Change fromm VEC to
169 std::vector.
170 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
171
46f29a9a
AB
1722019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
173
174 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
175 make accesses into the vector constant references.
176 (btrace_add_pc): Update for std::vector.
177 (btrace_stitch_bts): Likewise.
178 (parse_xml_btrace_block): Likewise.
179 (btrace_maint_update_packets): Likewise.
180 (btrace_maint_print_packets): Likewise.
181 (maint_info_btrace_cmd): Likewise.
182 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
183 std::vector.
184 (btrace_data::empty): Likewise.
185 (btrace_data_append): Likewise.
186 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
187 (typedef btrace_block_s): Delete.
188 (struct btrace_block): Add constructor.
189 (struct btrace_data_bts) <blocks>: Change to std::vector.
190 * nat/linux-btrace.c (perf_event_read_bts): Update for
191 std::vector.
192 (linux_read_bts): Likewise.
193
d770d56f
TT
1942019-10-01 Tom Tromey <tom@tromey.com>
195
196 * cli/cli-logging.c (show_logging_filename): Use styled_string.
197
9d636d67
TT
1982019-10-01 Tom Tromey <tom@tromey.com>
199
200 * stack.c (print_frame, info_frame_command_core): Use
201 styled_string.
202 * linux-thread-db.c (try_thread_db_load_1)
203 (try_thread_db_load_from_pdir_1): Use styled_string.
204 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
205 (auto_load_section_scripts, info_auto_load_local_gdbinit)
206 (maybe_print_unsupported_script_warning)
207 (maybe_print_script_not_found_warning): Use styled_string.
208 * ada-lang.c (user_select_syms): Use styled_string.
209
7f6aba03
TT
2102019-10-01 Tom Tromey <tom@tromey.com>
211
212 * p-lang.c (pascal_printstr): Use metadata style.
213 * value.c (show_convenience): Use metadata style.
214 * valprint.c (valprint_check_validity, val_print_optimized_out)
215 (val_print_not_saved, val_print_unavailable)
216 (val_print_invalid_address, generic_val_print, val_print)
217 (value_check_printable, val_print_array_elements): Use metadata
218 style.
219 * ui-out.h (class ui_out) <field_fmt>: New overload.
220 <do_field_fmt>: Add style parameter.
221 * ui-out.c (ui_out::field_fmt): New overload.
222 * typeprint.c (type_print_unknown_return_type)
223 (val_print_not_allocated, val_print_not_associated): Use metadata
224 style.
225 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
226 parameter.
227 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
228 * tracepoint.c (tvariables_info_1): Use metadata style.
229 * stack.c (print_frame_arg, print_frame_info, print_frame)
230 (info_frame_command_core): Use metadata style.
231 * skip.c (info_skip_command): Use metadata style.
232 * rust-lang.c (rust_print_enum): Use metadata style.
233 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
234 metadata style.
235 * python/py-framefilter.c (py_print_single_arg): Use metadata
236 style.
237 * printcmd.c (do_one_display, print_variable_and_value): Use
238 metadata style.
239 * p-valprint.c (pascal_val_print)
240 (pascal_object_print_value_fields): Use metadata style.
241 * p-typeprint.c (pascal_type_print_base): Use metadata style.
242 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
243 parameter.
244 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
245 * m2-valprint.c (m2_print_long_set): Use metadata style.
246 * m2-typeprint.c (m2_print_type): Use metadata style.
247 * infcmd.c (print_return_value_1): Use metadata style.
248 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
249 * f-valprint.c (info_common_command_for_block): Use metadata
250 style.
251 * f-typeprint.c (f_type_print_base): Use metadata style.
252 * expprint.c (print_subexp_standard): Use metadata style.
253 * cp-valprint.c (cp_print_value_fields): Use metadata style.
254 * cli/cli-style.h (class cli_style_option): Add constructor.
255 (metadata_style): Declare.
256 * cli/cli-style.c (metadata_style): New global.
257 (_initialize_cli_style): Register metadata style.
258 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
259 parameter.
260 * cli-out.c (cli_ui_out::do_field_fmt): Update.
261 * c-typeprint.c (c_type_print_base_struct_union)
262 (c_type_print_base_1): Use metadata style.
263 * breakpoint.c (watchpoint_value_print)
264 (print_one_breakpoint_location): Use metadata style.
265 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
266 style.
267 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
268 style.
269 * ada-valprint.c (val_print_packed_array_elements, printstr)
270 (print_field_values, ada_val_print_ref, ada_val_print): Use
271 metadata style.
272 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
273 style.
274 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
275 style.
276 * ada-lang.c (user_select_syms): Use metadata style.
277
14309bb6
TT
2782019-10-01 Tom Tromey <tom@tromey.com>
279
280 * cli/cli-cmds.c (pwd_command): Style output.
281
6a831f06
PA
2822019-10-01 Pedro Alves <palves@redhat.com>
283 Tom Tromey <tom@tromey.com>
284
285 * symtab.c (print_symbol_info): Use %ps.
286 (print_msymbol_info): Use %ps.
287 * symfile.c (symbol_file_add_with_addrs): Use %ps.
288 * printcmd.c (print_variable_and_value): Use %ps.
289 * macrocmd.c (show_pp_source_pos): Use %ps.
290 * infrun.c (print_exited_reason): Use ui_out::message.
291 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
292 (describe_other_breakpoints): Use ui_out::message and new
293 formats.
294 (say_where): Use new formats.
295 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
296 and new formats.
297
2a3c1174
PA
2982019-10-01 Pedro Alves <palves@redhat.com>
299 Tom Tromey <tom@tromey.com>
300
301 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
302 (test_gdb_formats): New function.
303 (run_tests): Call it.
304 (test_format_specifier): Update.
305 * utils.h (fputs_filtered): Update comment.
306 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
307 (fputs_styled_unfiltered): Declare.
308 * utils.c (fputs_styled_unfiltered): New function.
309 (vfprintf_maybe_filtered): Add gdbfmt parameter.
310 (vfprintf_filtered): Update.
311 (vfprintf_unfiltered, vprintf_filtered): Update.
312 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
313 * ui-out.h (enum ui_out_flag) <unfiltered_output,
314 disallow_ui_out_field>: New constants.
315 (enum class field_kind): New.
316 (struct base_field_s, struct signed_field_s): New.
317 (signed_field): New function.
318 (struct string_field_s): New.
319 (string_field): New function.
320 (struct styled_string_s): New.
321 (styled_string): New function.
322 (class ui_out) <message>: Add comment.
323 <vmessage, call_do_message>: New methods.
324 <do_message>: Add style parameter.
325 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
326 methods.
327 (ui_out::message): Rewrite.
328 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
329 parameter.
330 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
331 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
332 gdb_extensions parameter.
333 (class format_piece): Add parameter to constructor.
334 (n_int_args): New field.
335 * gdbsupport/format.c (format_pieces::format_pieces): Add
336 gdb_extensions parameter. Handle '*'.
337 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
338 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
339 vfprintf_styled_no_gdbfmt.
340 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
341 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
342 unfiltered output.
343 * ui-style.h (struct ui_file_style) <ptr>: New method.
344
0dfe5bfb
TT
3452019-10-01 Tom Tromey <tom@tromey.com>
346
347 * unittests/format_pieces-selftests.c: Update. Add final format.
348 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
349 empty literal pieces.
350
e43b10e1
TT
3512019-10-01 Tom Tromey <tom@tromey.com>
352
353 * ui-out.h (enum class ui_out_style_kind): Remove.
354 (class ui_out) <field_string, field_stsream, do_field_string>:
355 Change type of "style".
356 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
357 (ui_out::field_string): Update.
358 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
359 of "style".
360 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
361 * tracepoint.c (print_one_static_tracepoint_marker): Update.
362 * stack.c (print_frame_arg, print_frame_info, print_frame):
363 Update.
364 * source.c (print_source_lines_base): Update.
365 * solib.c (info_sharedlibrary_command): Update.
366 * skip.c (info_skip_command): Update.
367 * record-btrace.c (btrace_call_history_src_line)
368 (btrace_call_history): Update.
369 * python/py-framefilter.c (py_print_frame): Update.
370 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
371 "style".
372 * mi/mi-out.c (mi_ui_out::do_table_header)
373 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
374 (mi_ui_out::do_field_string): Update.
375 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
376 Update.
377 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
378 "style".
379 * cli-out.c (cli_ui_out::do_table_header)
380 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
381 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
382 (cli_ui_out::do_field_fmt): Update.
383 * breakpoint.c (print_breakpoint_location): Update.
384 (update_static_tracepoint): Update.
385
cd7c32c3
PW
3862019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
387
388 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
389 conversion of gdb_datadir.
390 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
391 remove not needed c_str ().
392
8fe0f950
AT
3932019-09-30 Ali Tamur <tamur@google.com>
394
395 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
396 (dwarf2_string_attr): Likewise.
397
5f48f8f3
AT
3982019-09-30 Ali Tamur <tamur@google.com>
399
400 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
401 (process_full_type_unit): Likewise.
402 (dump_die_shallow): Likewise.
403 (cu_debug_loc_section): Likewise.
404
6fb08628
CB
4052019-09-28 Christian Biesinger <cbiesinger@google.com>
406
407 * minsyms.c (compare_minimal_symbols): Rename to...
408 (minimal_symbol_is_less_than): ...this, and adjust to STL
409 conventions (return bool, take arguments as references)
410 (minimal_symbol_reader::install): Call std::sort instead
411 of qsort.
412
c7ee338a
CB
4132019-09-29 Christian Biesinger <cbiesinger@google.com>
414
415 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
416 hash and why.
417 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
418 msymbol_hash, msymbol_demangled_hash>: Improve comments.
419
703a86c2
SM
4202019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
421
422 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
423 * psympriv.h (add_psymbol_to_list): Move comment here and update
424 it.
425
0df0352a
TV
4262019-09-29 Tom de Vries <tdevries@suse.de>
427
428 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
429 Use $tmpdir/$(basename "$output_file").dwz instead of
430 "${output_file}.dwz".
431
ad75efa6
SM
4322019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
433
434 PR gdb/25045
435 * hppa-linux-nat.c: Include gdbarch.h.
436
ececd218
CB
4372019-09-26 Christian Biesinger <cbiesinger@google.com>
438
439 * blockframe.c (find_pc_partial_function): Change return type to bool.
440 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
441 * minsyms.c (in_gnu_ifunc_stub): Likewise.
442 (stub_gnu_ifunc_resolve_name): Likewise.
443 * symtab.c (compare_filenames_for_search): Likewise.
444 (compare_glob_filenames_for_search): Likewise.
445 (matching_obj_sections): Likewise.
446 (symbol_matches_domain): Likewise.
447 (find_line_symtab): Change out param EXACT_MATCH to bool *.
448 (find_line_pc): Change return type to bool.
449 (find_line_pc_range): Likewise.
450 (producer_is_realview): Likewise.
451 * symtab.h (symbol_matches_domain): Likewise.
452 (find_pc_partial_function): Likewise.
453 (find_pc_line_pc_range): Likewise.
454 (in_gnu_ifunc_stub): Likewise.
455 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
456 (find_line_pc): Likewise.
457 (find_line_pc_range): Likewise.
458 (matching_obj_sections): Likewise.
459 (find_line_symtab): Change out parameter to bool.
460 (producer_is_realview): Change return type to bool.
461 (compare_filenames_for_search): Likewise.
462 (compare_glob_filenames_for_search): Likewise.
463
27a900b8
TT
4642019-09-26 Tom Tromey <tom@tromey.com>
465
466 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
467 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
468 * gdb_usleep.h: Remove.
469 * gdb_usleep.c: Remove.
470 * utils.c: Don't include gdb_usleep.h.
471
5d63b30a
TT
4722019-09-26 Tom Tromey <tromey@adacore.com>
473
474 * python/py-type.c (type_to_type_object): Call check_typedef
475 for stub types.
476
12904d37
TT
4772019-09-26 Tom Tromey <tom@tromey.com>
478
479 * utils.h (initialize_utils): Don't declare.
480 * top.c (gdb_init): Don't call initialize_utils.
481 * utils.c (initialize_utils): Remove. Move contents...
482 (_initialize_utils): ... here.
483
858f25f0
TT
4842019-09-25 Tom Tromey <tom@tromey.com>
485
486 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
487 * utils.h (make_hex_string): Don't declare.
488 * utils.c (make_hex_string): Remove.
489
3d435220
TV
4902019-09-24 Tom de Vries <tdevries@suse.de>
491
492 PR gdb/23815
493 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
494 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
495
ddd44b70
DD
4962019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
497
498 * NEWS: Mention new simulator port for PRU.
499
f945dedf
CB
5002019-09-23 Christian Biesinger <cbiesinger@google.com>
501
502 * ada-exp.y (write_object_remaining): Update.
503 * ada-lang.c (ada_decode): Return a std::string instead of a char*
504 and eliminate the static buffer.
505 (ada_decode_symbol): Update.
506 (ada_la_decode): Update.
507 (ada_sniff_from_mangled_name): Update.
508 (is_valid_name_for_wild_match): Update.
509 (ada_lookup_name_info::matches): Update and simplify.
510 (name_matches_regex): Update.
511 (ada_add_global_exceptions): Update.
512 * ada-lang.h (ada_decode): Update signature.
513 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
514 * dwarf-index-write.c (debug_names::insert): Update.
515
7ab78ccb
SM
5162019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
517
518 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
519 formatting.
520
9252448b
SM
5212019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
522
523 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
524 Change "nonzero" to "true" in documentation.
525
626ca2c0
CB
5262019-09-20 Christian Biesinger <cbiesinger@google.com>
527
528 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
529 (_initialize_darwin_solib): Don't set
530 darwin_so_ops.lookup_lib_global_symbol.
531 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
532 set_gdbarch_iterate_over_objfiles_in_search_order.
533 (elf_lookup_lib_symbol): Rename to...
534 (svr4_iterate_over_objfiles_in_search_order): this, and update
535 to iterate semantics.
536 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
537 * solib.c (solib_global_lookup): Remove.
538 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
539 (solib_global_lookup): Remove.
540 * symtab.c (lookup_global_or_static_symbol): Remove call to
541 solib_global_lookup.
542
5a3a0d63
JB
5432019-09-20 Joel Brobecker <brobecker@adacore.com>
544
545 * NEWS: Move entries about default MI version now being
546 version 3, and about the GDB/MI fix for multi-location
547 breakpoints to the "since GDB 8.3" section.
548
ffea1427
JB
5492019-09-20 Joel Brobecker <brobecker@adacore.com>
550
551 GDB 8.3.1 released.
552
abf516c6
UW
5532019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
554
555 * NEWS: Mention that Cell/B.E. debugging support was removed.
556 * MAINTAINERS: Remove spu target.
557
558 * config/djgpp/fnchange.lst: Remove entries for removed files.
559
560 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
561 spu-multiarch.o, and spu-tdep.o.
562 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
563 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
564 spu-multiarch.c, and spu-tdep.c.
565 * spu-linux-nat.c: Remove file.
566 * spu-multiarch.c: Remove file.
567 * spu-tdep.c: Remove file.
568 * spu-tdep.h: Remove file.
569 * solib-spu.c: Remove file.
570 * solib-spu.h: Remove file.
571
572 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
573 * configure.nat (spu-linux): Remove.
574 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
575 solib-multiarch.o from gdb_target_obs.
576 (spu*-*-*): Remove.
577
578 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
579 feature flag.
580 (ppc_linux_no_features): Update.
581 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
582 Cell/B.E. support.
583 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
584 (tdesc_powerpc_cell64l): Likewise.
585 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
586 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
587 Cell/B.E. support.
588 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
589 Do not include "features/rs6000/powerpc-cell32l.c" or
590 "features/rs6000/powerpc-cell64l.c".
591 (ppc_linux_spu_section): Remove.
592 (ppc_linux_core_read_description): Remove Cell/B.E. support.
593 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
594 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
595 (ppc_linux_spe_context_lookup): Remove.
596 (ppc_linux_spe_context_inferior_created): Remove.
597 (ppc_linux_spe_context_solib_loaded): Remove.
598 (ppc_linux_spe_context_solib_unloaded): Remove.
599 (ppc_linux_spe_context): Remove.
600 (struct ppu2spu_cache): Remove.
601 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
602 (struct ppu2spu_data): Remove.
603 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
604 ppu2spu_unwind): Remove.
605 (ppc_linux_init_abi): Remove Cell/B.E. support.
606 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
607
608 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
609 (rs6000/powerpc-cell64l-expedite): Likewise
610 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
611 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
612 rs6000/powerpc-cell64l.xml.
613 * features/rs6000/powerpc-cell32l.xml: Remove.
614 * features/rs6000/powerpc-cell64l.xml: Likewise.
615 * features/rs6000/powerpc-cell32l.c: Remove generated file.
616 * features/rs6000/powerpc-cell64l.c: Likewise.
617 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
618 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
619 * regformats/reg-spu.dat: Remove.
620
621 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
622 * corelow.c (struct spuid_list): Remove.
623 (add_to_spuid_list): Remove.
624 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
625 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
626 (remote_protocol_features): Remove associated entries.
627 (_initialize_remote): No longer initialize them.
628 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
629 * linux-nat.c (SPUFS_MAGIC): Remove.
630 (linux_proc_xfer_spu): Remove.
631 (spu_enumerate_spu_ids): Remove.
632 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
633 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
634 (linux_make_corefile_notes): No longer call it.
635
636 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
637 (cooked_write_test): Likewise.
638
78e8cb91
TT
6392019-09-20 Tom Tromey <tom@tromey.com>
640
641 * NEWS: Mention case-sensitivity of TUI commands.
642 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
643 (tui_set_win_height_command, parse_scrolling_args): Likewise.
644 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
645
f074b67e
TT
6462019-09-20 Tom Tromey <tom@tromey.com>
647
648 * tui/tui-source.c (tui_source_window::set_contents): Use
649 make_unique_xstrdup.
650 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
651 make_unique_xstrdup.
652
63c4bf19
TT
6532019-09-20 Tom Tromey <tom@tromey.com>
654
655 * tui/tui-data.c: Remove separator comments.
656 * tui/tui-layout.c: Remove separator comments.
657 * tui/tui-win.c: Remove separator comments.
658 * tui/tui-wingeneral.c: Remove separator comments.
659
43df9b2f
TT
6602019-09-20 Tom Tromey <tom@tromey.com>
661
662 * tui/tui.h (strcat_to_buf): Don't declare.
663 * tui/tui.c (strcat_to_buf): Remove.
664
7226433c
TT
6652019-09-20 Tom Tromey <tom@tromey.com>
666
667 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
668 from "fullname".
669 * tui/tui-source.c (tui_source_window::set_contents)
670 (tui_source_window::location_matches_p)
671 (tui_source_window::maybe_update): Update.
672
80df3337
TT
6732019-09-20 Tom Tromey <tom@tromey.com>
674
675 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
676 Update.
677 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
678 prefix.
679 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
680 (tui_data_window::line_from_reg_element_no)
681 (tui_data_window::first_reg_element_no_inline)
682 (tui_data_window::show_registers)
683 (tui_data_window::show_register_group)
684 (tui_data_window::display_registers_from)
685 (tui_data_window::display_registers_from_line)
686 (tui_data_window::first_data_item_displayed)
687 (tui_data_window::delete_data_content_windows)
688 (tui_data_window::erase_data_content)
689 (tui_data_window::do_scroll_vertical)
690 (tui_data_window::refresh_window)
691 (tui_data_window::check_register_values): Update.
692
9923f347
TT
6932019-09-20 Tom Tromey <tom@tromey.com>
694
695 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
696 (struct tui_locator_window) <full_name, proc_name>: Now
697 std::string.
698 * tui/tui-stack.c (tui_locator_window::make_status_line)
699 (tui_locator_window::set_locator_fullname)
700 (tui_locator_window::set_locator_info): Update.
701 * tui/tui-source.c (tui_source_window::set_contents)
702 (tui_source_window::showing_source_p): Update.
703
b76251ab
TT
7042019-09-20 Tom Tromey <tom@tromey.com>
705
706 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
707 Don't call tui_locator_win_info_ptr.
708
0891be08
TT
7092019-09-20 Tom Tromey <tom@tromey.com>
710
711 * tui/tui-win.c (tui_resize_all): Don't call refresh.
712
1b935acf
TT
7132019-09-20 Tom Tromey <tom@tromey.com>
714
715 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
716 height for locator.
717 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
718 * tui/tui-layout.c (show_source_disasm_command, show_data)
719 (show_source_or_disasm_and_command): Use 1 as height for locator.
720
9abd8a65
TT
7212019-09-20 Tom Tromey <tom@tromey.com>
722
723 * tui/tui.c (tui_enable): Update.
724 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
725 Update.
726 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
727 Update.
728 * tui/tui-data.c (win_resized): Now bool.
729 (tui_win_resized): Return bool.
730 (tui_set_win_resized_to): Accept a bool.
731
b5457826
TT
7322019-09-20 Tom Tromey <tom@tromey.com>
733
734 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
735 Change type of "refresh_values_only".
736 * tui/tui-regs.c (tui_data_window::show_register_group): Change
737 type of "refresh_values_only".
738
6b915f7d
TT
7392019-09-20 Tom Tromey <tom@tromey.com>
740
741 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
742 std::string.
743 (tui_disassemble): Add "pos" parameter.
744 (tui_disasm_window::set_contents): Simplify.
745
2ad52f6f
TT
7462019-09-20 Tom Tromey <tom@tromey.com>
747
748 * tui/tui-winsource.h (struct tui_source_window_base)
749 <show_source_content>: Now private.
750 * tui/tui-winsource.c
751 (tui_source_window_base::show_source_content): Don't handle empty
752 content case.
753
b3b1bde6
TT
7542019-09-20 Tom Tromey <tom@tromey.com>
755
756 * tui/tui-layout.c (show_source_disasm_command)
757 (show_source_or_disasm_and_command): Don't call
758 show_source_content.
759
71a25ed2
TT
7602019-09-20 Tom Tromey <tom@tromey.com>
761
762 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
763 Declare.
764 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
765 from tui_make_status_line.
766 (tui_locator_window::rerender): Update.
767
f8532154
TT
7682019-09-20 Tom Tromey <tom@tromey.com>
769
770 * tui/tui-stack.c (tui_make_status_line): Return std::string.
771 (tui_locator_window::rerender): Update.
772
2d81b349
TT
7732019-09-20 Tom Tromey <tom@tromey.com>
774
775 * tui/tui-winsource.h (struct tui_source_window_base)
776 <~tui_source_window_base>: Don't declare.
777 <fullname>: Remove.
778 * tui/tui-winsource.c (~tui_source_window_base): Remove.
779 * tui/tui-source.h (struct tui_source_window) <fullname>: New
780 member.
781 * tui/tui-source.c (tui_source_window::set_contents): Update.
782 (tui_source_window::location_matches_p)
783 (tui_source_window::maybe_update): Update.
784
f14bec58
TT
7852019-09-20 Tom Tromey <tom@tromey.com>
786
787 * tui/tui-winsource.h (~tui_source_element): Remove.
788 (tui_source_element): Update.
789 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
790 * tui/tui-winsource.c (tui_show_source_line): Update.
791 * tui/tui-source.c (tui_source_window::set_contents): Update.
792 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
793
78d5933a
TT
7942019-09-20 Tom Tromey <tom@tromey.com>
795
796 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
797 declare.
798 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
799 tui_clear_source_windows_detail.
800 * tui/tui-winsource.h (struct tui_source_window_base)
801 <clear_detail>: Don't declare.
802 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
803 Remove.
804 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
805
d4207696
TT
8062019-09-20 Tom Tromey <tromey@adacore.com>
807
808 PR ada/24919:
809 * block.c (contained_in): Fix final return value.
810
00f93c44
AM
8112019-09-20 Alan Modra <amodra@gmail.com>
812
813 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
814 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
815 (read_indirect_string_from_dwz): Use bfd accessor.
816 * dwarf2read.h (struct dwz_file <filename>): Likewise.
817 * machoread.c (macho_symfile_read_all_oso): Likewise.
818 * solib.c (solib_bfd_open): Likewise.
819
e4153ae6
CB
8202019-09-19 Christian Biesinger <cbiesinger@google.com>
821
822 * eval.c: Move declaration of overload_resolution to...
823 * value.h: ...here.
824
c7ae7675
CB
8252019-09-19 Christian Biesinger <cbiesinger@google.com>
826
827 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
828 * arm-linux-tdep.c: Likewise.
829 * arm-nbsd-nat.c: Likewise.
830 * arm-tdep.h: Declare arm_apcs_32.
831 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
832
e86f08d2
CB
8332019-09-19 Christian Biesinger <cbiesinger@google.com>
834
835 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
836 * dwarf2read.h: Declare dwarf_always_disassemble.
837
f64e2f40
TV
8382019-09-19 Tom de Vries <tdevries@suse.de>
839
840 PR gdb/25009
841 * source-cache.c (source_cache::ensure): Catch exception thrown during
842 construction of the highlighter.
843
fd361982
AM
8442019-09-18 Alan Modra <amodra@gmail.com>
845
846 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
847 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
848 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
849 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
850 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
851 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
852 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
853 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
854 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
855 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
856 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
857 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
858 * solib-spu.c, * solib-svr4.c, * solib-target.c,
859 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
860 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
861 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
862 * mi/mi-interp.c: Update throughout for bfd section macro and
863 function changes.
864 * gcore (gcore_create_callback): Use bfd_set_section_lma.
865 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
866
11061048
TT
8672019-09-18 Tom Tromey <tom@tromey.com>
868
869 * NEWS: Add entry.
870 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
871 call rl_initialize.
872 (tui_enable): Do not call rl_initialize.
873
7a27b85f
CG
8742019-09-18 Christian Groessler <chris@groessler.org>
875
876 * alpha-linux-nat.c: Include gdbarch.h.
877
f64eea3a
SM
8782019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
879
880 * ui-file.c: Include cli/cli-style.h.
881 (term_cli_styling): Remove cli_styling declaration.
882
e6f7f6d1
AM
8832019-09-18 Alan Modra <amodra@gmail.com>
884
885 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
886 to bfd_asymbol_section.
887
1d38e9d1
AM
8882019-09-18 Alan Modra <amodra@gmail.com>
889
890 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
891 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
892 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
893
90d92a63
AM
8942019-09-18 Alan Modra <amodra@gmail.com>
895
896 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
897 * spu-linux-nat.c (spu_bfd_open): Likewise.
898
a3d181d2
CB
8992019-09-18 Christian Biesinger <cbiesinger@google.com>
900
901 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
902 to bool to match definition in dwarf2read.c.
903
491144b5
CB
9042019-09-17 Christian Biesinger <cbiesinger@google.com>
905
906 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
907 (print_signatures): Likewise.
908 (trust_pad_over_xvs): Likewise.
909 * arch/aarch64-insn.c (aarch64_debug): Likewise.
910 * arch/aarch64-insn.h (aarch64_debug): Likewise.
911 * arm-linux-nat.c (arm_apcs_32): Likewise.
912 * arm-linux-tdep.c (arm_apcs_32): Likewise.
913 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
914 * arm-tdep.c (arm_debug): Likewise.
915 (arm_apcs_32): Likewise.
916 * auto-load.c (debug_auto_load): Likewise.
917 (auto_load_gdb_scripts): Likewise.
918 (global_auto_load): Likewise.
919 (auto_load_local_gdbinit): Likewise.
920 (auto_load_local_gdbinit_loaded): Likewise.
921 * auto-load.h (global_auto_load): Likewise.
922 (auto_load_local_gdbinit): Likewise.
923 (auto_load_local_gdbinit_loaded): Likewise.
924 * breakpoint.c (disconnected_dprintf): Likewise.
925 (breakpoint_proceeded): Likewise.
926 (automatic_hardware_breakpoints): Likewise.
927 (always_inserted_mode): Likewise.
928 (target_exact_watchpoints): Likewise.
929 (_initialize_breakpoint): Update.
930 * breakpoint.h (target_exact_watchpoints): Change to bool.
931 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
932 * cli/cli-cmds.c (trace_commands): Likewise.
933 * cli/cli-cmds.h (trace_commands): Likewise.
934 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
935 to bool*.
936 * cli/cli-logging.c (logging_overwrite): Change to bool.
937 (logging_redirect): Likewise.
938 (debug_redirect): Likewise.
939 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
940 (struct boolean_option_def) <get_var_address_cb_>: Change return type
941 to bool.
942 <boolean_option_def>: Update.
943 (struct flag_option_def): Change default type of Context to bool
944 from int.
945 <flag_option_def>: Change return type of var_address_cb_ to bool*.
946 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
947 (get_setshow_command_value_string): Likewise.
948 * cli/cli-style.c (cli_styling): Change to bool.
949 (source_styling): Likewise.
950 * cli/cli-style.h (source_styling): Likewise.
951 (cli_styling): Likewise.
952 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
953 to bool.
954 * command.h (var_types): Update comment.
955 (add_setshow_boolean_cmd): Change int* var argument to bool*.
956 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
957 bool.
958 (debug_compile_cplus_scopes): Likewise.
959 * compile/compile-internal.h (compile_debug): Likewise.
960 * compile/compile.c (compile_debug): Likewise.
961 (struct compile_options) <raw>: Likewise.
962 * cp-support.c (catch_demangler_crashes): Likewise.
963 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
964 (usr_cmd_cris_dwarf2_cfi): Likewise.
965 * csky-tdep.c (csky_debug): Likewise.
966 * darwin-nat.c (enable_mach_exceptions): Likewise.
967 * dcache.c (dcache_enabled_p): Likewise.
968 * defs.h (info_verbose): Likewise.
969 * demangle.c (demangle): Likewise.
970 (asm_demangle): Likewise.
971 * dwarf-index-cache.c (debug_index_cache): Likewise.
972 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
973 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
974 * dwarf2read.c (check_physname): Likewise.
975 (use_deprecated_index_sections): Likewise.
976 (dwarf_always_disassemble): Likewise.
977 * eval.c (overload_resolution): Likewise.
978 * event-top.c (set_editing_cmd_var): Likewise.
979 (exec_done_display_p): Likewise.
980 * event-top.h (set_editing_cmd_var): Likewise.
981 (exec_done_display_p): Likewise.
982 * exec.c (write_files): Likewise.
983 * fbsd-nat.c (debug_fbsd_lwp): Likewise
984 (debug_fbsd_nat): Likewise.
985 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
986 Likewise.
987 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
988 <backtrace_past_entry> Likewise.
989 * gdb-demangle.h (demangle): Likewise.
990 (asm_demangle): Likewise.
991 * gdb_bfd.c (bfd_sharing): Likewise.
992 * gdbcore.h (write_files): Likewise.
993 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
994 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
995 * gdbthread.h (print_thread_events): Likewise.
996 * gdbtypes.c (opaque_type_resolution): Likewise.
997 (strict_type_checking): Likewise.
998 * gnu-nat.c (gnu_debug_flag): Likewise.
999 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1000 * guile/scm-param.c (pascm_variable): Add boolval.
1001 (add_setshow_generic): Update.
1002 (pascm_param_value): Update.
1003 (pascm_set_param_value_x): Update.
1004 * hppa-tdep.c (hppa_debug): Change to bool..
1005 * infcall.c (may_call_functions_p): Likewise.
1006 (coerce_float_to_double_p): Likewise.
1007 (unwind_on_signal_p): Likewise.
1008 (unwind_on_terminating_exception_p): Likewise.
1009 * infcmd.c (startup_with_shell): Likewise.
1010 * inferior.c (print_inferior_events): Likewise.
1011 * inferior.h (startup_with_shell): Likewise.
1012 (print_inferior_events): Likewise.
1013 * infrun.c (step_stop_if_no_debug): Likewise.
1014 (detach_fork): Likewise.
1015 (debug_displaced): Likewise.
1016 (disable_randomization): Likewise.
1017 (non_stop): Likewise.
1018 (non_stop_1): Likewise.
1019 (observer_mode): Likewise.
1020 (observer_mode_1): Likewise.
1021 (set_observer_mode): Update.
1022 (sched_multi): Change to bool.
1023 * infrun.h (debug_displaced): Likewise.
1024 (sched_multi): Likewise.
1025 (step_stop_if_no_debug): Likewise.
1026 (non_stop): Likewise.
1027 (disable_randomization): Likewise.
1028 * linux-tdep.c (use_coredump_filter): Likewise.
1029 (dump_excluded_mappings): Likewise.
1030 * linux-thread-db.c (auto_load_thread_db): Likewise.
1031 (check_thread_db_on_load): Likewise.
1032 * main.c (captured_main_1): Update.
1033 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1034 xx2_opt, boolean_opt>: Change to bool.
1035 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1036 * maint.c (maintenance_profile_p): Likewise.
1037 (per_command_time): Likewise.
1038 (per_command_space): Likewise.
1039 (per_command_symtab): Likewise.
1040 * memattr.c (inaccessible_by_default): Likewise.
1041 * mi/mi-main.c (mi_async): Likewise.
1042 (mi_async_1): Likewise.
1043 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1044 * nat/fork-inferior.h (startup_with_shell): Likewise.
1045 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1046 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1047 * nios2-tdep.c (nios2_debug): Likewise.
1048 * or1k-tdep.c (or1k_debug): Likewise.
1049 * parse.c (parser_debug): Likewise.
1050 * parser-defs.h (parser_debug): Likewise.
1051 * printcmd.c (print_symbol_filename): Likewise.
1052 * proc-api.c (procfs_trace): Likewise.
1053 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1054 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1055 (set_parameter_value): Update.
1056 (add_setshow_generic): Update.
1057 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1058 to bool*.
1059 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1060 int*.
1061 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1062 * record-btrace.c (record_btrace_target::store_registers): Update.
1063 * record-full.c (record_full_memory_query): Change to bool.
1064 (record_full_stop_at_limit): Likewise.
1065 * record-full.h (record_full_memory_query): Likewise.
1066 * remote-notif.c (notif_debug): Likewise.
1067 * remote-notif.h (notif_debug): Likewise.
1068 * remote.c (use_range_stepping): Likewise.
1069 (interrupt_on_connect): Likewise.
1070 (remote_break): Likewise.
1071 * ser-tcp.c (tcp_auto_retry): Likewise.
1072 * ser-unix.c (serial_hwflow): Likewise.
1073 * skip.c (debug_skip): Likewise.
1074 * solib-aix.c (solib_aix_debug): Likewise.
1075 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1076 (spu_auto_flush_cache_p): Likewise.
1077 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1078 Likewise.
1079 (struct info_print_options) <quiet>: Likewise.
1080 * symfile-debug.c (debug_symfile): Likewise.
1081 * symfile.c (auto_solib_add): Likewise.
1082 (separate_debug_file_debug): Likewise.
1083 * symfile.h (auto_solib_add): Likewise.
1084 (separate_debug_file_debug): Likewise.
1085 * symtab.c (basenames_may_differ): Likewise.
1086 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1087 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1088 (struct info_types_options) <quiet>: Likewise.
1089 * symtab.h (demangle): Likewise.
1090 (basenames_may_differ): Likewise.
1091 * target-dcache.c (stack_cache_enabled_1): Likewise.
1092 (code_cache_enabled_1): Likewise.
1093 * target.c (trust_readonly): Likewise.
1094 (may_write_registers): Likewise.
1095 (may_write_memory): Likewise.
1096 (may_insert_breakpoints): Likewise.
1097 (may_insert_tracepoints): Likewise.
1098 (may_insert_fast_tracepoints): Likewise.
1099 (may_stop): Likewise.
1100 (auto_connect_native_target): Likewise.
1101 (target_stop_and_wait): Update.
1102 (target_async_permitted): Change to bool.
1103 (target_async_permitted_1): Likewise.
1104 (may_write_registers_1): Likewise.
1105 (may_write_memory_1): Likewise.
1106 (may_insert_breakpoints_1): Likewise.
1107 (may_insert_tracepoints_1): Likewise.
1108 (may_insert_fast_tracepoints_1): Likewise.
1109 (may_stop_1): Likewise.
1110 * target.h (target_async_permitted): Likewise.
1111 (may_write_registers): Likewise.
1112 (may_write_memory): Likewise.
1113 (may_insert_breakpoints): Likewise.
1114 (may_insert_tracepoints): Likewise.
1115 (may_insert_fast_tracepoints): Likewise.
1116 (may_stop): Likewise.
1117 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1118 (make_thread_apply_all_options_def_group): Change argument from int*
1119 to bool*.
1120 (thread_apply_all_command): Update.
1121 (print_thread_events): Change to bool.
1122 * top.c (confirm): Likewise.
1123 (command_editing_p): Likewise.
1124 (history_expansion_p): Likewise.
1125 (write_history_p): Likewise.
1126 (info_verbose): Likewise.
1127 * top.h (confirm): Likewise.
1128 (history_expansion_p): Likewise.
1129 * tracepoint.c (disconnected_tracing): Likewise.
1130 (circular_trace_buffer): Likewise.
1131 * typeprint.c (print_methods): Likewise.
1132 (print_typedefs): Likewise.
1133 * utils.c (debug_timestamp): Likewise.
1134 (sevenbit_strings): Likewise.
1135 (pagination_enabled): Likewise.
1136 * utils.h (sevenbit_strings): Likewise.
1137 (pagination_enabled): Likewise.
1138 * valops.c (overload_resolution): Likewise.
1139 * valprint.h (struct value_print_options) <prettyformat_arrays,
1140 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1141 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1142 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1143 Likewise.
1144 * windows-nat.c (new_console): Likewise.
1145 (cygwin_exceptions): Likewise.
1146 (new_group): Likewise.
1147 (debug_exec): Likewise.
1148 (debug_events): Likewise.
1149 (debug_memory): Likewise.
1150 (debug_exceptions): Likewise.
1151 (useshell): Likewise.
1152 * windows-tdep.c (maint_display_all_tib): Likewise.
1153 * xml-support.c (debug_xml): Likewise.
1154
f1b620e9
MG
11552019-09-17 Mike Gulick <mgulick@mathworks.com>
1156
1157 * source.c (prepare_path_for_appending): New function.
1158 (openp): Make use of new function.
1159 (find_and_open_source): Search for the compilation directory and
1160 source file as a relative path beneath the directory search path.
1161
67f3ed6a
AB
11622019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1163
1164 * source-cache.c (source_cache::get_line_charpos): Catch
1165 exceptions and return false, this matches the behaviour documented
1166 in the header file.
1167
74332189
JB
11682019-09-17 Joel Brobecker <brobecker@adacore.com>
1169
1170 * ada-tasks.c (info_task): Remove quoting of the task's name.
1171
f2f24aa9
CB
11722019-09-16 Christian Biesinger <cbiesinger@google.com>
1173
1174 * symfile.c (auto_solib_add): Replace comment with a reference
1175 to the header file.
1176
6a062a93
CB
11772019-09-14 Christian Biesinger <cbiesinger@google.com>
1178
1179 * NEWS: Mention that gdb can now be compiled with Python 3
1180 on Windows.
1181
ec6c8338
AB
11822019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1183
1184 * maint.c (maint_print_section_data::maint_print_section_data):
1185 Force use of 'float log10 (float)' by casting the argument to
1186 float.
1187
aa17805f
AB
11882019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1189
1190 * maint.c: Add 'cmath' include.
1191 (struct maint_print_section_data): New structure.
1192 (print_section_index): New function.
1193 (print_bfd_section_info): Add header comment, small whitespace
1194 cleanup, and update to call new print_section_index function.
1195 (print_objfile_section_info): Likewise.
1196 (maint_obj_section_from_bfd_section): New function.
1197 (print_bfd_section_info_maybe_relocated): New function.
1198 (maintenance_info_sections): Add header comment, always use
1199 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1200
3dd9bb46
AB
12012019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1202
1203 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1204 inner scope, add check that the objfile has psymtabs before
1205 checking psymtabs_addrmap.
1206 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1207
4993045d
PW
12082019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1209
1210 * NEWS: Announce that Ada task names are now shown at more places,
1211 and between quotes (except in info task output).
1212 * gdb/ada-tasks.c (task_to_str): New function.
1213 (display_current_task_id): Call task_to_str.
1214 (task_command_1): Likewise.
1215 (print_ada_task_info): In non-mi mode, Properly align headers and data
1216 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1217
7a289707
RO
12182019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1219
1220 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1221 prstatus.pr_lwp.pr_info instead of making it up.
1222
f2aec7f6
CB
12232019-09-11 Christian Biesinger <cbiesinger@google.com>
1224
1225 * auto-load.c (auto_load_expand_dir_vars): Update.
1226 * defs.h (gdb_datadir): Change to std::string.
1227 (python_libdir): Likewise.
1228 (relocate_gdb_directory): Change return type to std::string.
1229 * guile/guile.c (gdbscm_data_directory): Update.
1230 (initialize_scheme_side): Update.
1231 * jit.c (jit_reader_dir): Change to std::string.
1232 (jit_reader_load_command): Update.
1233 * main.c (gdb_datadir): Change to std::string.
1234 (python_libdir): Likewise.
1235 (set_gdb_data_directory): Update.
1236 (relocate_path): Change to return std::string.
1237 (relocate_gdb_directory): Change to return std::string.
1238 (relocate_gdbinit_path_maybe_in_datadir): Update.
1239 (captured_main_1): Update.
1240 * python/python.c (do_start_initialization): Update.
1241 * top.c (show_gdb_datadir): Update.
1242 * xml-syscall.c (xml_init_syscalls_info): Update.
1243 (init_syscalls_info): Update.
1244
9224a013
CB
12452019-09-11 Christian Biesinger <cbiesinger@google.com>
1246
1247 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1248 out of get_init_files.
1249 (get_init_files): Update.
1250
f48cd836
CB
12512019-09-11 Christian Biesinger <cbiesinger@google.com>
1252
1253 * main.c (get_init_files): Change to use std::string.
1254 (captured_main_1): Update.
1255 (print_gdb_help): Update.
1256
9cab7ecd
AT
12572019-09-11 Ali Tamur <tamur@google.com>
1258
1259 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1260 implementation.
1261
67547d89
CB
12622019-09-11 Christian Biesinger <cbiesinger@google.com>
1263
1264 * dbxread.c (read_dbx_symtab): Update.
1265 * dwarf2read.c (load_partial_dies): Update.
1266 * mdebugread.c (parse_partial_symbols): Update.
1267 (handle_psymbol_enumerators): Update.
1268 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1269 * psymtab.c (add_psymbol_to_bcache): Likewise.
1270 (add_psymbol_to_list): Likewise.
1271 * symtab.c (symbol_set_names): Likewise.
1272 * symtab.h (symbol_set_names): Likewise.
1273 * xcoffread.c (scan_xcoff_symtab): Update.
1274
64b2d4a0
TT
12752019-09-11 Tom Tromey <tom@tromey.com>
1276
1277 * symfile-mem.c (symbol_file_add_from_memory): Use
1278 bfd_set_filename.
1279 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1280 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1281
3b00ef10
TT
12822019-09-10 Tom Tromey <tromey@adacore.com>
1283
1284 * dwarf-index-write.c (write_psymbols): Extend error message.
1285 (debug_names::insert): Add Ada code.
1286 (debug_names::write_psymbols): Remove Ada check.
1287 (debug_names) <m_string_obstack>: New member.
1288 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1289 (gdb_index_symbol_name_matcher::matches): Remove.
1290 (mapped_index_base::find_name_components_bounds): Add "lang"
1291 parameter.
1292 (mapped_index_base::build_name_components): Also split names
1293 according to Ada syntax.
1294 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1295 type of "match_callback".
1296 (check_match, check_find_bounds_finds)
1297 (dw2_expand_symtabs_matching): Update.
1298 (dw2_debug_names_iterator): Add new constructor.
1299 (dw2_debug_names_map_matching_symbols): New function.
1300 (dw2_debug_names_expand_symtabs_matching): Update.
1301 (dwarf2_debug_names_functions): Use
1302 dw2_debug_names_map_matching_symbols.
1303
aa391654
TT
13042019-09-10 Tom Tromey <tromey@adacore.com>
1305
1306 * dwarf2read.c (dw2_get_file_names_reader): Add the
1307 CU's file name to the results.
1308
b054970d
TT
13092019-09-10 Tom Tromey <tromey@adacore.com>
1310
1311 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1312 map_matching_symbols. Update.
1313 * dwarf2read.c (dw2_map_matching_symbols): Update.
1314 * psymtab.c (match_partial_symbol): Change type; update.
1315 (psym_map_matching_symbols): Likewise.
1316 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1317 type; update.
1318 * symfile.h (struct quick_symbol_functions)
1319 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1320 Remove "match".
1321
6a3dbf1b
TT
13222019-09-10 Tom Tromey <tromey@adacore.com>
1323
1324 * psymtab.c (map_block): Remove.
1325 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1326 * symtab.c (iterate_over_symbols_terminated): New function.
1327 * symtab.c (iterate_over_symbols_terminated): Declare.
1328
6969f124
TT
13292019-09-10 Tom Tromey <tromey@adacore.com>
1330
1331 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1332 * language.h (struct language_defn) <la_iterate_over_symbols>:
1333 Return bool.
1334 * symtab.c (iterate_over_symbols): Return bool.
1335 * symtab.h (iterate_over_symbols): Return bool.
1336
199b4314
TT
13372019-09-10 Tom Tromey <tromey@adacore.com>
1338
1339 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1340 (add_nonlocal_symbols): Update.
1341 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1342 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1343 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1344 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1345 Change type of "callback". Remove "data".
1346
a084a2a6
AT
1347
13482019-09-09 Ali Tamur <tamur@google.com>
1349
1350 * dwarf2read.c (comp_unit_head): Update comment.
1351 (dwarf2_dwo_name): New function declaration.
1352 (dwarf_unit_type_name): New function declaration.
1353 (read_comp_unit_head): Add support for new compilation units,
1354 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
1355 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
1356 (currently named as "signature") in their header. Also clarify error
1357 messages.
1358 (lookup_dwo_id): New function. Returns the dwo id of the given
1359 compile unit.
1360 (lookup_dwo_unit): Use the new lookup_dwo_id function.
1361 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
1362 functions.
1363 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
1364 (dwarf2_dwo_name): Get the dwo name if present.
1365 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
1366 purposes.
1367
25a2915e
TT
13682019-09-09 Tom Tromey <tom@tromey.com>
1369
1370 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1371
e4df0874
PW
13722019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1373
1374 * python/python.c (do_start_initialization): Make progname_copy static,
1375 to avoid a leak report.
1376
8634b462
TT
13772019-09-08 Tom Tromey <tom@tromey.com>
1378
1379 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1380
c7f839cb
SM
13812019-09-07 Simon Marchi <simon.marchi@efficios.com>
1382
1383 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1384 Change type to gdb::optional<block_enum>.
1385 (dw2_symtab_iter_init): Change block_index parameter type
1386 to gdb::optional<block_enum>.
1387 (dw2_lookup_symbol): Change block_index parameter
1388 type to block_enum.c
1389 (dw2_debug_names_lookup_symbol): Likewise.
1390 * psymtab.c (psym_lookup_symbol): Likewise.
1391 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1392 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1393 Likewise.
1394
ead0e69a
CB
13952019-09-06 Christian Biesinger <cbiesinger@google.com>
1396
1397 * defs.h (relocate_gdb_directory): Change int to bool in
1398 signature and rename flag to relocatable.
1399 * main.c (relocate_path): Likewise.
1400 (relocate_gdb_directory): Likewise.
1401
b16c44de
AM
14022019-09-06 Alan Modra <amodra@gmail.com>
1403
1404 * coffread.c (coff_symfile_read): Constify filename variable.
1405 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
1406 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
1407 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
1408 * solib.c (reload_shared_libraries_1): Likewise.
1409 * symfile.c (reread_symbols): Likewise.
1410 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
1411 * solib-darwin.c (darwin_bfd_open): Likewise.
1412 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1413
06ff036e
AB
14142019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1415
1416 * psymtab.c (print_partial_symbols): Handle missing domain_enum
1417 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
1418
4e962e74
TT
14192019-09-03 Tom Tromey <tromey@adacore.com>
1420
1421 * ada-valprint.c (ada_val_print_num): Don't recurse for range
1422 types.
1423 (has_negatives): Unbias a range type bound.
1424 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
1425 * gdbtypes.c (operator==): Handle new field.
1426 (create_range_type): Add "bias" parameter.
1427 (create_static_range_type, resolve_dynamic_range): Update.
1428 * gdbtypes.h (struct range_bounds) <bias>: New member.
1429 (create_range_type): Add bias parameter.
1430 * printcmd.c (print_scalar_formatted): Unbias range types.
1431 * value.c (unpack_long): Unbias range types.
1432 (pack_long): Bias range types.
1433
d90b8f26
AH
14342019-09-02 Alan Hayward <alan.hayward@arm.com>
1435
1436 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
1437 probe arguments.
1438
fe01123e
AH
14392019-09-02 Alan Hayward <alan.hayward@arm.com>
1440
1441 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
1442 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
1443 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
1444 (compile_probe_arg): Likewise.
1445 * probe.h (get_argument_count): Likewise.
1446 * solib-svr4.c (solib_event_probe_action): Likewise.
1447 * stap-probe.c (stap_probe::get_argument_count): Likewise.
1448
e661ef01
AH
14492019-09-02 Alan Hayward <alan.hayward@arm.com>
1450
1451 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
1452 code to here...
1453 (svr4_create_solib_event_breakpoints): ...from here.
1454
47a536d9
SDJ
14552019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
1456
1457 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
1458 suffix from warning message.
1459
d6a00eba
TT
14602019-08-30 Tom Tromey <tom@tromey.com>
1461
1462 * tui/tui-winsource.h (struct tui_source_window_base)
1463 <refresh_all>: Don't declare.
1464 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1465 Remove.
1466 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1467 tui_show_locator_content.
1468 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1469 declare.
1470 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1471 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1472 declare.
1473
55b2657b
TT
14742019-08-30 Tom Tromey <tom@tromey.com>
1475
1476 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1477
12a8555a
TT
14782019-08-30 Tom Tromey <tom@tromey.com>
1479
1480 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1481 Remove unnecessary forward declarations.
1482
900ac242
TT
14832019-08-30 Tom Tromey <tom@tromey.com>
1484
1485 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1486 rerender.
1487 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1488 tui_show_locator_content.
1489
99ab33fb
TT
14902019-08-30 Tom Tromey <tom@tromey.com>
1491
1492 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1493 (tui_locator_window::rerender): Rewrite using body of previous
1494 tui_show_locator_content.
1495
e594a5d1
TT
14962019-08-30 Tom Tromey <tom@tromey.com>
1497
1498 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1499 set_locator_fullname>: New methods.
1500 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1501 Rename from tui_set_locator_fullname.
1502 (tui_locator_window::set_locator_info): Rename from
1503 tui_set_locator_info. Return bool.
1504 (tui_update_locator_fullname, tui_show_frame_info): Update.
1505
715bb467
TT
15062019-08-30 Tom Tromey <tom@tromey.com>
1507
1508 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1509
772f3f03
TT
15102019-08-30 Tom Tromey <tom@tromey.com>
1511
1512 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1513 call touchwin.
1514
108e13ab
TT
15152019-08-30 Tom Tromey <tom@tromey.com>
1516
1517 * tui/tui-wingeneral.c (box_win): Assume win_info and
1518 win_info->handle cannot be NULL.
1519
cdaa6eb4
TT
15202019-08-30 Tom Tromey <tom@tromey.com>
1521
1522 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1523 refresh_window>: Declare.
1524 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1525 resize.
1526 (tui_data_item_window::rerender): Rename from
1527 tui_display_register.
1528 (tui_data_item_window::refresh_window): New method.
1529 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1530 no-op.
1531
89df7f90
TT
15322019-08-30 Tom Tromey <tom@tromey.com>
1533
1534 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1535 regs_column_count, current_group>: Move later. Now private.
1536 <get_current_group>: New method.
1537 * tui/tui-regs.c (tui_reg_command): Update.
1538 * tui/tui-layout.c (tui_set_layout): Update.
1539
1bf2866a
TT
15402019-08-30 Tom Tromey <tom@tromey.com>
1541
1542 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1543 (tui_data_window::rerender): Don't call
1544 check_and_display_highlight_if_needed.
1545 (tui_data_window::refresh_all): Remove call to
1546 erase_data_content.
1547
0670413d
TT
15482019-08-30 Tom Tromey <tom@tromey.com>
1549
1550 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1551 (tui_data_window::display_registers_from)
1552 (tui_data_window::display_reg_element_at_line)
1553 (tui_data_window::display_registers_from_line): Remove checks of
1554 "empty".
1555
18bb55c7
TT
15562019-08-30 Tom Tromey <tom@tromey.com>
1557
1558 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1559 Don't declare.
1560 * tui/tui-regs.c (tui_data_window::show_registers): Call
1561 rerender.
1562 (tui_data_window::rerender): Rename from display_all_data.
1563 (tui_data_window::rerender): Remove old implementation.
1564
1f6d2f10
TT
15652019-08-30 Tom Tromey <tom@tromey.com>
1566
1567 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1568 text.
1569 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1570
16d01f9c
BW
15712019-08-29 Bernhard Wodok <barto@gmx.net>
1572 Sergio Durigan Junior <sergiodj@redhat.com>
1573
1574 PR win32/24284
1575 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1576
d8f27c60
AB
15772019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1578
1579 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1580 when searching for types.
1581
1f20c35e
AB
15822019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1583
1584 * f-lang.c (f_language_defn): Use f_print_typedef.
1585 * f-lang.h (f_print_typedef): Declare.
1586 * f-typeprint.c (f_print_typedef): Define.
1587
550105b7
CB
15882019-08-27 Christian Biesinger <cbiesinger@google.com>
1589
1590 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1591
4acfdd20
AB
15922019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1593
1594 * cli/cli-utils.c (info_print_options_defs): Delete.
1595 (make_info_print_options_def_group): Delete.
1596 (extract_info_print_options): Delete.
1597 (info_print_command_completer): Delete.
1598 (info_print_args_help): Add extra parameter, and optionally
1599 include text about -n flag.
1600 * cli/cli-utils.h (struct info_print_options): Delete.
1601 (extract_info_print_options): Delete declaration.
1602 (info_print_command_completer): Delete declaration.
1603 (info_print_args_help): Add extra parameter, extend header
1604 comment.
1605 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1606 search_symbols.
1607 * stack.c (struct info_print_options): New type.
1608 (info_print_options_defs): New file scoped variable.
1609 (make_info_print_options_def_group): New static function.
1610 (info_print_command_completer): New static function.
1611 (info_locals_command): Update to use new local functions.
1612 (info_args_command): Likewise.
1613 (_initialize_stack): Add extra parameter to calls to
1614 info_print_args_help.
1615 * symtab.c (search_symbols): Add extra parameter, use this to
1616 possibly excluse non-debug symbols.
1617 (symtab_symbol_info): Add extra parameter, which is passed on to
1618 search_symbols.
1619 (struct info_print_options): New type.
1620 (info_print_options_defs): New file scoped variable.
1621 (make_info_print_options_def_group): New static function.
1622 (info_print_command_completer): New static function.
1623 (info_variables_command): Update to use local functions, and pass
1624 extra parameter through to symtab_symbol_info.
1625 (info_functions_command): Likewise.
1626 (info_types_command): Pass additional argument through to
1627 symtab_symbol_info.
1628 (rbreak_command): Pass extra argument to search_symbols.
1629 (_initialize_symtab): Add extra arguments for calls to
1630 info_print_args_help, and update help text for 'info variables',
1631 'whereis', and 'info functions' commands.
1632 * symtab.h (search_symbols): Add extra argument to declaration.
1633 * NEWS: Mention new flags.
1634
9aa55206
CB
16352019-08-26 Christian Biesinger <cbiesinger@google.com>
1636
1637 * symtab.c (lookup_static_symbol): Call the new function (and move
1638 it down to be next to lookup_global_symbol).
1639 (struct global_sym_lookup_data): Add block_enum member and rename to...
1640 (struct global_or_static_sym_lookup_data): ...this.
1641 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1642 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1643 (lookup_symbol_global_or_static_iterator_cb): ...this.
1644 (lookup_global_or_static_symbol): New function.
1645 (lookup_global_symbol): Call new function.
1646
5c31b358
TV
16472019-08-26 Tom de Vries <tdevries@suse.de>
1648
1649 PR c++/24852
1650 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1651 when pc_probe.prob == NULL.
1652
23c13d42
SM
16532019-08-25 Simon Marchi <simon.marchi@efficios.com>
1654
1655 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1656 variable symbol_linkage to symbol_linkage_.
1657
beadd3e8
SM
16582019-08-25 Simon Marchi <simon.marchi@efficios.com>
1659
1660 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1661 represent whether the symbol is static, dynamic, or we don't
1662 know.
1663
e3ec872f
YS
16642019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1665
1666 * gdb/rx-tdep.c (rx_register_names): New.
1667 (rx_register_name): Delete.
1668 (rx_psw_type): Delete.
1669 (rx_fpsw_type): Delete.
1670 (rx_register_type): Delete.
1671 (rx_gdbarch_init): Convert target-descriptions.
1672 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1673 * gdb/features/Makefile: Add rx.xml.
1674 * gdb/features/rx.xml: New.
1675 * gdb/features/rx.c: Generated.
1676 * gdb/NEWS: Mention target description support.
1677
d0509ba4
CB
16782019-08-22 Christian Biesinger <cbiesinger@google.com>
1679
1680 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1681 *slot_ptr.
1682
2d41fa11
SDJ
16832019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1684
1685 * configure.ac: Don't check for 'dlfcn.h' (moved to
1686 gdbsupport/common.m4).
1687 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1688 'gdbsupport/'.
1689 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1690 * compile/compile-c-support.c: Include
1691 'gdbsupport/gdb-dlfcn.h'.
1692 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1693 * gdb-dlfcn.c: Move to...
1694 * gdbsupport/gdb-dlfcn.c: ... here.
1695 * gdb-dlfcn.h: Move to...
1696 * gdbsupport/gdb-dlfcn.h: ... here.
1697
de8af808
SL
16982019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1699
1700 * nios2-tdep.c (struct reg_value): Improve comments. Make
1701 the offset field signed.
1702
27204489
CB
17032019-08-22 Christian Biesinger <cbiesinger@google.com>
1704
1705 * python/lib/gdb/__init__.py (_execute_file): New function.
1706 * python/python.c (python_run_simple_file): Call gdb._execute_file
1707 on Windows.
1708
43771869
AB
17092019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1710
1711 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1712 all uses as this was never set to anything but a zero value.
1713
26c957f1
PA
17142019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1715
1716 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1717
c07aae6e
CB
17182019-08-21 Christian Biesinger <cbiesinger@google.com>
1719
1720 * tui/tui-data.h (tui_gen_win_info): Add an =default
1721 move constructor, required by some GCC versions.
1722
3960cb7a
JF
17232019-08-21 Jinke Fan <fanjinke51@yeah.net>
1724
1725 * go32-nat.c (go32_sysinfo): Add hygon_p.
1726
04c72a68
TT
17272019-08-20 Tom Tromey <tom@tromey.com>
1728
1729 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1730 line_from_reg_element_no, first_reg_element_no_inline,
1731 display_all_data, delete_data_content_windows,
1732 erase_data_content>: Now private.
1733
072272ce
TT
17342019-08-20 Tom Tromey <tom@tromey.com>
1735
1736 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1737 (tui_unhighlight_win, tui_highlight_win)
1738 (tui_win_info::make_window): Update.
1739 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1740
973961bd
TT
17412019-08-20 Tom Tromey <tom@tromey.com>
1742
1743 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1744 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1745 (MAX_PID_WIDTH): Move to tui-stack.c.
1746 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1747 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1748 (MAX_PID_WIDTH): Move from tui-data.h.
1749
ab0e1f1a
TT
17502019-08-20 Tom Tromey <tom@tromey.com>
1751
1752 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1753 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1754 (box_win): Update.
1755 (tui_gen_win_info::make_window): Rename from tui_make_window.
1756 (tui_win_info::make_window): New method.
1757 (tui_gen_win_info::make_visible): Update.
1758 * tui/tui-source.c (tui_source_window::set_contents): Update.
1759 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1760 (tui_data_window::display_registers_from): Update.
1761 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1762 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1763 Declare.
1764 <can_box>: Remove.
1765 <title>: Remove.
1766 (struct tui_win_info) <make_window>: Declare.
1767 <can_box>: Now virtual.
1768 <title>: New member.
1769 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1770 * tui/tui-command.c (tui_cmd_window::resize): Update.
1771
100c2bf3
TT
17722019-08-20 Tom Tromey <tom@tromey.com>
1773
1774 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1775 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1776 (tui_data_window::check_register_values): Update.
1777
fa4dc567
TT
17782019-08-20 Tom Tromey <tom@tromey.com>
1779
1780 * tui/tui-regs.h (struct tui_data_window): Use
1781 DISABLE_COPY_AND_ASSIGN.
1782 <regs_content>: Change type, removing unique_ptr.
1783 <tui_data_window>: Add move constructor.
1784 * tui/tui-regs.c (tui_data_window::show_registers)
1785 (tui_data_window::show_register_group)
1786 (tui_data_window::display_registers_from)
1787 (tui_data_window::display_registers_from)
1788 (tui_data_window::first_data_item_displayed)
1789 (tui_data_window::delete_data_content_windows)
1790 (tui_data_window::rerender, tui_data_window::refresh_window)
1791 (tui_data_window::check_register_values): Update.
1792
ca02d7c8
TT
17932019-08-20 Tom Tromey <tom@tromey.com>
1794
1795 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1796 show_register_group>: Declare.
1797 (tui_show_register_group): Don't declare.
1798 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1799 tui_show_registers.
1800 (tui_data_window::show_register_group): Rename from
1801 tui_show_register_group.
1802 (tui_data_window::check_register_values, tui_reg_command):
1803 Update.
1804 * tui/tui-layout.c (tui_set_layout): Update.
1805
63356bfd
TT
18062019-08-20 Tom Tromey <tom@tromey.com>
1807
1808 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1809 Declare.
1810 (tui_check_register_values): Don't declare.
1811 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1812 from tui_check_register_values.
1813 * tui/tui-hooks.c (tui_register_changed): Update.
1814
42cc14a7
TT
18152019-08-20 Tom Tromey <tom@tromey.com>
1816
1817 * tui/tui-regs.c (tui_reg_layout): Move later.
1818 (tui_show_registers): Don't enable TUI mode or change layout.
1819
b9ad3686
TT
18202019-08-20 Tom Tromey <tom@tromey.com>
1821
1822 * tui/tui-regs.h (struct tui_data_item_window)
1823 <~tui_data_item_window>: Remove.
1824 <content>: Now a unique_xmalloc_ptr.
1825 * tui/tui-regs.c (tui_register_format): Return a
1826 unique_xmalloc_ptr.
1827 (tui_get_register): Update.
1828 (~tui_data_item_window): Remove.
1829 (tui_data_window::display_registers_from, tui_display_register):
1830 Update.
1831 * tui/tui-io.h (tui_expand_tabs): Update.
1832 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1833 Remove "col" parameter.
1834
8e114aab
TT
18352019-08-20 Tom Tromey <tom@tromey.com>
1836
1837 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1838 field.
1839 * tui/tui-regs.c (~tui_data_item_window): Update.
1840
1a4f81dd
TT
18412019-08-20 Tom Tromey <tom@tromey.com>
1842
1843 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1844 earlier.
1845
0f8d8876
TT
18462019-08-20 Tom Tromey <tom@tromey.com>
1847
1848 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1849
605dc2c2
TT
18502019-08-20 Tom Tromey <tom@tromey.com>
1851
1852 * tui/tui-source.h (struct tui_source_window): Update.
1853 * tui/tui-regs.c (tui_show_registers): Update.
1854 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1855 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1856 (NO_REGS_STRING): Remove defines.
1857
aedbe3bb
CM
18582019-08-20 Conrad Meyer <cem@FreeBSD.org>
1859
1860 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1861 unnecessary thread walk if remote doesn't support the packet.
1862
7ce8f214
TT
18632019-08-19 Tom Tromey <tromey@adacore.com>
1864
1865 * python/py-value.c (value_has_field): Fix indentation.
1866
f21c2bd7
TT
18672019-08-19 Tom Tromey <tromey@adacore.com>
1868
1869 * printcmd.c (do_one_display, info_display_command): Update.
1870 * block.h (contained_in): Return bool. Add allow_nested
1871 parameter.
1872 * block.c (contained_in): Return bool. Add allow_nested
1873 parameter.
1874
d806ea2d
TT
18752019-08-19 Tom Tromey <tom@tromey.com>
1876
1877 * configure: Rebuild.
1878 * configure.ac: Disallow the combination of -static-libstdc++ and
1879 source highlight.
1880 * source-cache.c (get_language_name): Handle rust.
1881 (source_cache::get_source_lines): Ignore highlighting exceptions.
1882
398fdd60
TT
18832019-08-16 Tom Tromey <tom@tromey.com>
1884
1885 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1886 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1887 (struct tui_source_window_base) <make_visible, refresh_window,
1888 resize>: Remove methods.
1889 <execution_info>: Remove field.
1890 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1891 (tui_show_source_line, tui_source_window_base)
1892 (~tui_source_window_base): Update.
1893 (tui_source_window_base::resize)
1894 (tui_source_window_base::make_visible)
1895 (tui_source_window_base::refresh_window): Remove.
1896 (tui_source_window_base::update_exec_info): Update.
1897 * tui/tui-source.c (tui_source_window::set_contents): Update.
1898 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1899
e699d331
TT
19002019-08-16 Tom Tromey <tom@tromey.com>
1901
1902 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1903 deprecated_query_hook.
1904
bb01dbfc
TT
19052019-08-16 Tom Tromey <tom@tromey.com>
1906
1907 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1908 (tui_update_source_windows_with_line): Update.
1909 * tui/tui-source.h (struct tui_source_window)
1910 <show_symtab_source>: Declare.
1911 (tui_show_symtab_source): Don't declare.
1912 * tui/tui-source.c (tui_show_symtab_source): Rename from
1913 tui_show_symtab_source.
1914
81c82c4b
TT
19152019-08-16 Tom Tromey <tom@tromey.com>
1916
1917 * tui/tui-winsource.h (struct tui_source_window_base)
1918 <set_contents>: Declare.
1919 * tui/tui-winsource.c
1920 (tui_source_window_base::update_source_window_as_is): Update.
1921 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1922 Declare.
1923 (tui_set_source_content): Don't declare.
1924 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1925 tui_set_source_content.
1926 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1927 Declare.
1928 (tui_set_disassem_content): Don't declare.
1929 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1930 tui_set_disassem_content.
1931
2ddaf614
TT
19322019-08-16 Tom Tromey <tom@tromey.com>
1933
1934 * tui/tui-winsource.h (struct tui_source_window_base)
1935 <update_breakpoint_info>: Declare.
1936 (tui_update_breakpoint_info): Don't declare.
1937 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1938 (tui_update_all_breakpoint_info): Update.
1939 (tui_source_window_base::update_breakpoint_info): Rename from
1940 tui_update_breakpoint_info.
1941 (tui_source_window_base::update_exec_info): Update.
1942
017f9828
TT
19432019-08-16 Tom Tromey <tom@tromey.com>
1944
1945 * tui/tui-winsource.h (struct tui_source_window_base)
1946 <update_source_window>: Declare.
1947 (tui_update_source_window): Don't declare.
1948 * tui/tui-winsource.c
1949 (tui_source_window_base::update_source_window): Rename from
1950 tui_update_source_window.
1951 (tui_source_window_base::rerender): Update.
1952 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1953 * tui/tui-disasm.c (tui_show_disassem)
1954 (tui_show_disassem_and_update_source)
1955 (tui_disasm_window::maybe_update): Update.
1956
ed8358e9
TT
19572019-08-16 Tom Tromey <tom@tromey.com>
1958
1959 * tui/tui-winsource.h (struct tui_source_window_base)
1960 <update_source_window_as_is>: Declare.
1961 (tui_update_source_window_as_is): Don't declare.
1962 * tui/tui-winsource.c (tui_update_source_window): Update
1963 (tui_source_window_base::update_source_window_as_is): Rename from
1964 tui_update_source_window_as_is.
1965 (tui_source_window_base::refill): Update.
1966 * tui/tui-source.c (tui_show_symtab_source): Update.
1967 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1968 Update.
1969
20149b6b
TT
19702019-08-16 Tom Tromey <tom@tromey.com>
1971
1972 * tui/tui-winsource.h (tui_update_source_window)
1973 (tui_update_source_window_as_is): Remove "noerror" parameter.
1974 * tui/tui-winsource.c (tui_update_source_window)
1975 (tui_update_source_window_as_is): Remove "noerror" parameter.
1976 (tui_update_source_windows_with_addr)
1977 (tui_update_source_windows_with_line)
1978 (tui_source_window_base::rerender)
1979 (tui_source_window_base::refill): Update.
1980 * tui/tui-source.h (tui_set_source_content)
1981 (tui_show_symtab_source): Remove "noerror" parameter.
1982 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1983 parameter.
1984 (tui_show_symtab_source): Likewise.
1985 (tui_source_window::maybe_update): Update.
1986 * tui/tui-disasm.c (tui_show_disassem)
1987 (tui_show_disassem_and_update_source)
1988 (tui_disasm_window::do_scroll_vertical)
1989 (tui_disasm_window::maybe_update): Update.
1990
2d83e710
TT
19912019-08-16 Tom Tromey <tom@tromey.com>
1992
1993 * tui/tui.c (tui_is_window_visible): Update.
1994 * tui/tui-wingeneral.c (tui_make_window)
1995 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1996 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1997 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1998 (tui_set_win_height_command, parse_scrolling_args): Update.
1999 * tui/tui-source.c (tui_source_window::style_changed): Update.
2000 * tui/tui-regs.c (tui_show_registers)
2001 (tui_data_window::first_data_item_displayed)
2002 (tui_data_window::delete_data_content_windows)
2003 (tui_check_register_values, tui_reg_command): Update.
2004 * tui/tui-disasm.c (tui_show_disassem): Update.
2005 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2006 method.
2007 <is_visible>: Remove field.
2008 * tui/tui-data.c (tui_next_win, tui_prev_win)
2009 (tui_delete_invisible_windows): Update.
2010
d4ab829a
TT
20112019-08-16 Tom Tromey <tom@tromey.com>
2012
2013 * tui/tui-winsource.h (struct tui_source_window_base)
2014 <m_has_locator>: Remove.
2015 * tui/tui-layout.c (show_source_disasm_command, show_data)
2016 (show_source_or_disasm_and_command): Update.
2017
aa7ca1bb
AH
20182019-08-16 Alan Hayward <alan.hayward@arm.com>
2019
2020 * NEWS (Other MI changes): New subsection.
2021 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2022 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2023 * arch-utils.c (default_get_pc_address_flags): New function.
2024 * arch-utils.h (default_get_pc_address_flags): New declaration.
2025 * gdbarch.sh: Add get_pc_address_flags.
2026 * gdbarch.c: Regenerate.
2027 * gdbarch.h: Likewise.
2028 * stack.c (print_pc): New function.
2029 (print_frame_info) (print_frame): Call print_pc.
2030
6eac171f
TV
20312019-08-16 Tom de Vries <tdevries@suse.de>
2032
2033 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2034 print_objfile_section_info.
2035
3df505f6
TT
20362019-08-15 Tom Tromey <tom@tromey.com>
2037
2038 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2039 calling update_cmdwin_start_line.
2040 * tui/tui-winsource.h (struct tui_source_window_base)
2041 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2042 <rerender>: Declare.
2043 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2044 Call rerender.
2045 (tui_source_window_base::set_new_height): Remove.
2046 (tui_source_window_base::rerender): Rename from
2047 do_make_visible_with_new_height.
2048 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2049 resize method.
2050 (tui_win_info::make_invisible_and_set_new_height)
2051 (tui_win_info::make_visible_with_new_height): Remove.
2052 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2053 Declare.
2054 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2055 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2056 do_make_visible_with_new_height>: Don't declare.
2057 <rerender>: Declare.
2058 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2059 set_new_height.
2060 (tui_data_window::do_make_visible_with_new_height): Remove.
2061 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2062 call tui_show_locator_content.
2063 (tui_gen_win_info::resize): Call rerender.
2064 (show_source_or_disasm_and_command): Don't call
2065 tui_show_locator_content.
2066 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2067 method.
2068 (struct tui_win_info) <rerender>: Declare.
2069 <set_new_height, make_invisible_and_set_new_height,
2070 make_visible_with_new_height>: Don't declare.
2071 * tui/tui-data.c (tui_win_list::rerender): New method.
2072 * tui/tui-command.h (struct tui_cmd_window)
2073 <do_make_visible_with_new_height>: Don't declare.
2074 * tui/tui-command.c
2075 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2076
272560b5
TT
20772019-08-15 Tom Tromey <tromey@adacore.com>
2078
2079 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2080 * ada-lang.c (ada_enum_name): Likewise.
2081
08235187
CB
20822019-08-15 Christian Biesinger <cbiesinger@google.com>
2083
2084 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2085 leading underscore.
2086 (GdbOutputErrorFile): Likewise.
2087 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2088 accordingly.
2089 (execute_unwinders): Rename to have a leading underscore.
2090 (auto_load_packages): Likewise.
2091 (global scope): Adjust call to auto_load_packages accordingly.
2092 (GdbSetPythonDirectory): Likewise.
2093 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2094 instead of execute_unwinders.
2095
db502012
TT
20962019-08-15 Tom Tromey <tom@tromey.com>
2097
2098 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2099 (show_data): Don't change window visibility.
2100 (tui_gen_win_info::resize): Remove special case for command
2101 window. Use wresize, when available.
2102 (show_source_or_disasm_and_command): Don't change window
2103 visibility.
2104 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2105 <make_visible>: New method.
2106 * tui/tui-command.c (tui_cmd_window::resize): New method.
2107
3891b65e
TT
21082019-08-15 Tom Tromey <tom@tromey.com>
2109
2110 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2111 (struct tui_source_windows): New.
2112 * tui/tui-winsource.c (tui_display_main): Update.
2113 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2114 (new_height_ok, parse_scrolling_args): Update.
2115 * tui/tui-layout.c (show_layout, show_data): Update.
2116 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2117 (tui_add_to_source_windows): Don't declare.
2118 * tui/tui-data.c (source_windows, tui_source_windows)
2119 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2120
ee556432
TT
21212019-08-15 Tom Tromey <tom@tromey.com>
2122
2123 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2124 Rename from reset.
2125 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2126 * tui/tui-layout.c (show_source_disasm_command, show_data):
2127 Update.
2128 (tui_gen_win_info::resize): Rename.
2129 (show_source_or_disasm_and_command): Update.
2130 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2131 reset.
2132
46f438e3
TT
21332019-08-15 Tom Tromey <tom@tromey.com>
2134
2135 * tui/tui-stack.c (tui_initialize_static_data): Remove.
2136 * tui/tui-interp.c (tui_interp::init): Don't call
2137 tui_initialize_static_data.
2138 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2139
f4ce562c
TT
21402019-08-15 Tom Tromey <tom@tromey.com>
2141
2142 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2143 examine tui_win_list.
2144
c398c3d0
TT
21452019-08-15 Tom Tromey <tom@tromey.com>
2146
2147 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2148 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2149 tui_clear_source_content.
2150 (tui_clear_source_content): Remove.
2151 (tui_source_window_base::do_erase_source_content): Hoist call to
2152 content.clear().
2153 * tui/tui-stack.c (tui_show_frame_info): Don't call
2154 tui_clear_source_content.
2155
e25d2004
TT
21562019-08-15 Tom Tromey <tom@tromey.com>
2157
2158 * tui/tui-winsource.h (struct tui_source_window_base)
2159 <do_erase_source_content>: New method.
2160 <erase_source_content>: New method.
2161 (tui_erase_source_content): Don't declare.
2162 * tui/tui-winsource.c (tui_clear_source_content): Update.
2163 (tui_source_window_base::do_erase_source_content): Rename from
2164 tui_erase_source_content.
2165 (tui_source_window_base::show_source_content): Update.
2166 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2167 * tui/tui-source.h (struct tui_source_window)
2168 <erase_source_content>: New method.
2169 * tui/tui-disasm.h (struct tui_disasm_window)
2170 <erase_source_content>: New method.
2171
002f15c2
TT
21722019-08-15 Tom Tromey <tom@tromey.com>
2173
2174 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2175 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2176 constructor.
2177 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2178 * tui/tui-source.c (tui_set_source_content): Update.
2179 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2180
c9033fe8
TT
21812019-08-15 Tom Tromey <tom@tromey.com>
2182
2183 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2184 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2185 tui-source.c.
2186 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2187 Declare.
2188 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2189 method.
2190 (tui_source_window::maybe_update): Update.
2191
088f37dd
TT
21922019-08-15 Tom Tromey <tom@tromey.com>
2193
2194 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2195 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2196 tui-disasm.c.
2197 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2198 Declare.
2199 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2200 method.
2201 (tui_disasm_window::maybe_update): Update.
2202
a54700c6
TT
22032019-08-15 Tom Tromey <tom@tromey.com>
2204
2205 * tui/tui-winsource.h (struct tui_source_window_base)
2206 <maybe_update>: Declare.
2207 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2208 method.
2209 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2210 Declare.
2211 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2212 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2213 Declare.
2214 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2215
e2a678a5
TT
22162019-08-15 Tom Tromey <tom@tromey.com>
2217
2218 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2219
f2dda477
TT
22202019-08-15 Tom Tromey <tom@tromey.com>
2221
2222 * tui/tui-wingeneral.c: Include tui-stack.h.
2223 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2224 (struct tui_locator_window): Move from tui-data.h.
2225 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2226 (tui_initialize_static_data): Move from tui-data.c.
2227 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2228 (struct tui_locator_window): Move to tui-stack.c.
2229 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2230 (tui_initialize_static_data): Move to tui-stack.c.
2231
ed4a1084
TT
22322019-08-15 Tom Tromey <tom@tromey.com>
2233
2234 * tui/tui-layout.c (show_source_disasm_command)
2235 (show_source_or_disasm_and_command): Use make_visible method, not
2236 tui_make_window.
2237 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2238 Remove.
2239
65962b20
TT
22402019-08-15 Tom Tromey <tom@tromey.com>
2241
2242 * tui/tui-wingeneral.h (tui_make_window): Update.
2243 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2244 parameter.
2245 (tui_gen_win_info::make_visible): Update.
2246 * tui/tui-regs.c (tui_data_window::display_registers_from):
2247 Update.
2248 * tui/tui-layout.c (show_source_disasm_command)
2249 (show_source_or_disasm_and_command): Update.
2250 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2251 (enum tui_box): Remove.
2252 (struct tui_win_info) <can_box>: New method.
2253 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2254 method.
2255
2208ee91
TV
22562019-08-15 Tom de Vries <tdevries@suse.de>
2257
2258 * linux-nat-trad.c: Include gdbarch.h.
2259
75faf5c4
AH
22602019-08-14 Alan Hayward <alan.hayward@arm.com>
2261
2262 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2263 register sizes.
2264
b1c896b3
TT
22652019-08-14 Tom Tromey <tromey@adacore.com>
2266
2267 * darwin-nat.c: Include gdbarch.h.
2268 * darwin-nat-info.c: Include gdbarch.h.
2269
6405cd73
TT
22702019-08-13 Tom Tromey <tom@tromey.com>
2271
2272 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2273 Remove.
2274 * tui/tui-data.c (tui_initialize_static_data): Update.
2275
5216580d
TT
22762019-08-13 Tom Tromey <tom@tromey.com>
2277
2278 * tui/tui-winsource.h (struct tui_exec_info_window)
2279 <~tui_exec_info_window, maybe_allocate_content, get_content,
2280 m_content>: Remove.
2281 (struct tui_source_window_base) <set_exec_info_content,
2282 show_exec_info_content>: Don't declare.
2283 * tui/tui-winsource.c
2284 (tui_exec_info_window::maybe_allocate_content): Remove.
2285 (tui_source_window_base::update_exec_info): Rename from
2286 set_exec_info_content.
2287 (tui_source_window_base::show_exec_info_content)
2288 (tui_source_window_base::update_exec_info): Remove.
2289
93858ad3
TT
22902019-08-13 Tom Tromey <tom@tromey.com>
2291
2292 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2293 declare.
2294 * tui/tui-winsource.c (tui_update_source_window_as_is)
2295 (tui_update_source_windows_with_addr, tui_erase_source_content):
2296 Update.
2297 (tui_clear_exec_info_content): Remove.
2298
e321e7ce
TT
22992019-08-13 Tom Tromey <tom@tromey.com>
2300
2301 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2302 declare.
2303 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2304 call tui_erase_exec_info_content.
2305 (tui_clear_exec_info_content): Rename from
2306 tui_erase_exec_info_content.
2307 (tui_clear_exec_info_content): Delete.
2308
8270ac62
TT
23092019-08-13 Tom Tromey <tom@tromey.com>
2310
2311 * tui/tui-winsource.h (struct tui_source_window_base)
2312 <show_exec_info_content>: Declare.
2313 (tui_show_exec_info_content): Don't declare.
2314 * tui/tui-winsource.c
2315 (tui_source_window_base::show_exec_info_content): Rename from
2316 tui_show_exec_info_content.
2317 (tui_source_window_base::update_exec_info): Update.
2318
7b56485d
TT
23192019-08-13 Tom Tromey <tom@tromey.com>
2320
2321 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2322 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2323 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2324 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2325 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2326 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2327 ... here.
2328
7ba913dc
TT
23292019-08-13 Tom Tromey <tom@tromey.com>
2330
2331 * tui/tui-winsource.h (struct tui_source_window_base)
2332 <update_exec_info>: Declare.
2333 (tui_update_exec_info): Don't declare.
2334 * tui/tui-winsource.c (tui_update_source_window_as_is)
2335 (tui_source_window_base::refresh_all)
2336 (tui_update_all_breakpoint_info): Update.
2337 (tui_source_window_base::update_exec_info): Rename from
2338 tui_update_exec_info.
2339 * tui/tui-stack.c (tui_show_frame_info): Update.
2340
37a4a131
TT
23412019-08-13 Tom Tromey <tom@tromey.com>
2342
2343 * tui/tui-winsource.h (struct tui_source_window_base)
2344 <set_exec_info_content>: Declare.
2345 (tui_set_exec_info_content): Don't declare.
2346 * tui/tui-winsource.c
2347 (tui_source_window_base::set_exec_info_content): Rename from
2348 tui_set_exec_info_content.
2349 (tui_update_exec_info): Update.
2350
0bd27e07
TT
23512019-08-13 Tom Tromey <tom@tromey.com>
2352
2353 * tui/tui-winsource.h (struct tui_source_window_base)
2354 <show_source_content>: Declare.
2355 (tui_show_source_content): Don't declare.
2356 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2357 (tui_source_window_base::show_source_content): Rename from
2358 tui_show_source_content.
2359 (tui_source_window_base::refresh_all): Update.
2360 * tui/tui-layout.c (show_source_disasm_command)
2361 (show_source_or_disasm_and_command): Update.
2362
b4ef5aeb
TT
23632019-08-13 Tom Tromey <tom@tromey.com>
2364
2365 * tui/tui-winsource.c (tui_erase_source_content)
2366 (tui_show_source_content, tui_source_window_base::refresh_all):
2367 Update.
2368 * tui/tui-wingeneral.h
2369 (tui_check_and_display_highlight_if_needed): Don't declare.
2370 * tui/tui-wingeneral.c
2371 (tui_win_info::check_and_display_highlight_if_needed): Rename from
2372 check_and_display_highlight_if_needed.
2373 * tui/tui-win.c (tui_rehighlight_all)
2374 (tui_win_info::make_visible_with_new_height): Update.
2375 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2376 (tui_data_window::erase_data_content)
2377 (tui_data_window::display_all_data): Update.
2378 * tui/tui-data.h (struct tui_win_info)
2379 <check_and_display_highlight_if_needed>: Declare.
2380
fede5273
TT
23812019-08-13 Tom Tromey <tom@tromey.com>
2382
2383 * tui/tui-win.c (tui_resize_all): Call
2384 tui_delete_invisible_windows.
2385 * tui/tui-layout.c (show_layout): Call
2386 tui_delete_invisible_windows.
2387 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2388 * tui/tui-data.c (tui_delete_invisible_windows): New function.
2389
22c3f490
TT
23902019-08-13 Tom Tromey <tom@tromey.com>
2391
2392 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
2393 tui_add_win_to_layout.
2394
16cb7910
TT
23952019-08-13 Tom Tromey <tom@tromey.com>
2396
2397 * tui/tui-layout.h (tui_default_win_height): Don't declare.
2398 * tui/tui-layout.c (tui_default_win_height): Now static.
2399
cc0c3ffb
TT
24002019-08-13 Tom Tromey <tom@tromey.com>
2401
2402 * tui/tui-layout.c (show_layout): Unify all layout cases into a
2403 single switch.
2404 (show_source_disasm_command, show_source_or_disasm_and_command):
2405 Don't check current layout.
2406
3f3ffe54
TT
24072019-08-13 Tom Tromey <tom@tromey.com>
2408
2409 * tui/tui-wingeneral.c (make_all_visible): Remove.
2410 (tui_make_all_invisible): Simplify.
2411 * tui/tui-layout.c (tui_make_all_invisible): Move from
2412 tui-wingeneral.c; simplify.
2413 (show_layout): Hoist call to tui_make_all_invisible.
2414 (show_data): Don't call tui_make_all_invisible.
2415
69258091
TT
24162019-08-13 Tom Tromey <tom@tromey.com>
2417
2418 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
2419 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
2420
62cf57fe
TT
24212019-08-13 Tom Tromey <tom@tromey.com>
2422
2423 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
2424 tui-data.c.
2425 (show_source_disasm_command, show_data)
2426 (show_source_or_disasm_and_command): Don't use
2427 tui_set_current_layout_to.
2428 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
2429 * tui/tui-data.c (current_layout, tui_current_layout): Move to
2430 tui-layout.c.
2431 (tui_set_current_layout_to): Remove.
2432
2afade5d
TT
24332019-08-13 Tom Tromey <tom@tromey.com>
2434
2435 * tui/tui-layout.c (tui_set_layout): Update.
2436 * tui/tui-data.h (struct tui_layout_def): Remove.
2437 (tui_layout_def): Don't declare.
2438 * tui/tui-data.c (layout_def): Remove.
2439 (tui_layout_def): Remove.
2440
a3504e96
TT
24412019-08-13 Tom Tromey <tom@tromey.com>
2442
2443 * tui/tui-winsource.h (struct tui_source_window_base)
2444 <clear_detail>: No longer "override".
2445 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
2446 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
2447 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
2448 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
2449 Remove.
2450 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
2451
29c92911
TT
24522019-08-13 Tom Tromey <tromey@adacore.com>
2453
2454 * tracepoint.c: Don't include readline.h or history.h.
2455
86c6b807
TT
24562019-08-12 Tom Tromey <tom@tromey.com>
2457
2458 * configure: Rebuild.
2459 * configure.ac: Check for readline 7.
2460 * NEWS: Mention readline 7 requirement.
2461 * README: Update.
2462
5db2718c
TT
24632019-08-12 Tom Tromey <tom@tromey.com>
2464
2465 * mingw-hdep.c (gdb_select): Remove readline hack.
2466
dac36daf
PFC
24672019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2468
2469 * blockframe.c (find_pc_partial_function): Set *block to nullptr
2470 when the function fails.
2471
1022c627
AA
24722019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2473
2474 * s390-tdep.c (s390_type_align): New function.
2475 (s390_gdbarch_init): Set it as type_align gdbarch method.
2476
eba4caf2
TV
24772019-08-09 Tom de Vries <tdevries@suse.de>
2478
2479 PR gdb/24591
2480 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2481 pc_low with relocation offset.
2482
123cd851
TT
24832019-08-07 Tom Tromey <tromey@adacore.com>
2484
2485 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2486 (print_frame_args): Update.
2487 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2488 Update.
2489 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2490 * frame.h (struct frame_arg): Add initializers.
2491 <error>: Now a unique_xmalloc_ptr.
2492
3d31bc39
AH
24932019-08-07 Alan Hayward <alan.hayward@arm.com>
2494
2495 * NEWS: Expand the Pointer Authentication entry.
2496 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2497 (aarch64_frame_unmask_lr): ... to this.
2498 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2499 Call aarch64_frame_unmask_lr.
2500 * frame.c (struct frame_info): Add "masked" variable.
2501 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2502 (fprint_frame): Check for masked pc.
2503 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2504 declarations.
2505 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2506 * stack.c (print_frame): Check for masked pc.
2507
0cf9feb9
TT
25082019-08-06 Tom Tromey <tom@tromey.com>
2509
2510 * stabsread.c (patch_block_stabs, read_one_struct_field)
2511 (read_enum_type): Use obstack_strndup.
2512 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2513 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2514 * dwarf2read.c (guess_full_die_structure_name)
2515 (anonymous_struct_prefix): Use obstack_strndup.
2516 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2517 * c-exp.y (yylex): Use obstack_strndup.
2518 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2519 (write_var_or_type): Use obstack_strndup.
2520
efba19b0
TT
25212019-08-06 Tom Tromey <tom@tromey.com>
2522
2523 * symfile.c (reread_symbols): Use obstack_strdup.
2524 * stabsread.c (read_type): Use obstack_strdup.
2525 * gdb_obstack.h (obstack_strdup): New overload.
2526 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2527 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2528 (dwarf2_canonicalize_name): Use obstack_strdup.
2529 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2530 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2531 Use obstack_strdup.
2532
f25102f7
TT
25332019-08-06 Tom Tromey <tom@tromey.com>
2534
2535 * gdb_obstack.h (obstack_strdup): Define.
2536 * gdb_obstack.c (obstack_strdup): Don't define.
2537
021887d8
TT
25382019-08-06 Tom Tromey <tom@tromey.com>
2539
2540 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2541 obstack_strdup.
2542 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2543 obstack_strdup.
2544 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2545 * stabsread.c (common_block_start): Use obstack_strdup.
2546 * objfiles.c (set_objfile_main_name, objfile): Use
2547 obstack_strdup.
2548 * namespace.c (add_using_directive): Use obstack_strdup.
2549 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2550 * jit.c (finalize_symtab): Use obstack_strdup.
2551 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2552 (guess_partial_die_structure_name, partial_die_info::fixup)
2553 (dwarf2_name): Use obstack_strdup.
2554 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2555 obstack_strdup.
2556 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2557 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2558 obstack_strdup.
2559 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2560
d2834edc
PW
25612019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2562
2563 * unittests/help-doc-selftests.c: New file.
2564 * Makefile.in: Add the new file.
2565
590042fc
PW
25662019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2567
2568 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2569 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2570 the full first line, except when FOR_VALUE_PREFIX. In this case,
2571 the trailing '.' is not output, and the first character is uppercased.
2572 (print_help_for_command): Update call to print_doc_line.
2573 (print_doc_of_command): Likewise.
2574 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2575 * cli/cli-option.c (append_indented_doc): Do not append newline.
2576 (build_help_option): Append newline after first appended_indented_doc
2577 only if a second call is done.
2578 (build_help): Append 2 new lines before each option, except the first
2579 one.
2580 * compile/compile.c (_initialize_compile): Add new lines after
2581 %OPTIONS%, when not at the end of the help.
2582 Change help doc or code
2583 producing the help doc to respect the invariants.
2584 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2585 Also removed the new line after 'Options:', as all other commands
2586 do not put an empty line between 'Options:' and the first option.
2587 * printcmd.c (_initialize_printcmd): Likewise.
2588 * stack.c (_initialize_stack): Likewise.
2589 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2590 incorrectly telling COMMAND is optional.
2591 * ada-lang.c (_initialize_ada_language): Change help doc or code
2592 producing the help doc to respect the invariants.
2593 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2594 * breakpoint.c (_initialize_breakpoint): Likewise.
2595 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2596 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2597 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2598 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2599 _initialize_cli_style): Likewise.
2600 * corelow.c (core_target_info): Likewise.
2601 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2602 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2603 * filesystem.c (_initialize_filesystem): Likewise.
2604 * frame.c (_initialize_frame): Likewise.
2605 * gnu-nat.c (add_task_commands): Likewise.
2606 * infcall.c (_initialize_infcall): Likewise.
2607 * infcmd.c (_initialize_infcmd): Likewise.
2608 * interps.c (_initialize_interpreter): Likewise.
2609 * language.c (_initialize_language): Likewise.
2610 * linux-fork.c (_initialize_linux_fork): Likewise.
2611 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2612 * maint.c (_initialize_maint_cmds): Likewise.
2613 * memattr.c (_initialize_mem): Likewise.
2614 * printcmd.c (_initialize_printcmd): Likewise.
2615 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2616 _RegEx): Likewise.
2617 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2618 * record-btrace.c (_initialize_record_btrace): Likewise.
2619 * record-full.c (_initialize_record_full): Likewise.
2620 * record.c (_initialize_record): Likewise.
2621 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2622 * regcache.c (_initialize_regcache): Likewise.
2623 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2624 _initialize_remote): Likewise.
2625 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2626 * serial.c (_initialize_serial): Likewise.
2627 * skip.c (_initialize_step_skip): Likewise.
2628 * source.c (_initialize_source): Likewise.
2629 * stack.c (_initialize_stack): Likewise.
2630 * symfile.c (_initialize_symfile): Likewise.
2631 * symtab.c (_initialize_symtab): Likewise.
2632 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2633 * top.c (init_main): Likewise.
2634 * tracefile-tfile.c (tfile_target_info): Likewise.
2635 * tracepoint.c (_initialize_tracepoint): Likewise.
2636 * tui/tui-win.c (_initialize_tui_win): Likewise.
2637 * utils.c (add_internal_problem_command): Likewise.
2638 * valprint.c (value_print_option_defs): Likewise.
2639
404f2902
FCE
26402019-08-06 Frank Ch. Eigler <fche@redhat.com>
2641
2642 PR build/24886
2643 * configure.ac: Drop enable-libmcheck support.
2644 * configure, config.in: Rebuild.
2645 * libmcheck.m4: Remove.
2646 * acinclude.m4: Don't include it.
2647 * Makefile.in: Don't distribute it.
2648 * top.c (print_gdb_configuration): Don't mention it.
2649
046bebe1
TT
26502019-08-06 Tom Tromey <tom@tromey.com>
2651
2652 * utils.c (set_output_style): Sometimes pass stream to
2653 emit_style_escape.
2654 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2655 * record-btrace.c (btrace_insn_history): Update.
2656 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2657 method.
2658 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2659 Update initializers.
2660 <m_uiout>: New field.
2661 <m_di>: Move lower.
2662 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2663 Remove "uiout" parameter.
2664 (dump_insns): Update.
2665 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2666 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2667
ddbcedf5
CB
26682019-08-06 Christian Biesinger <cbiesinger@google.com>
2669
2670 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2671 (error_in_psymtab_expansion): Likewise.
2672 (lookup_symbol_via_quick_fns): Likewise.
2673 (basic_lookup_transparent_type_quick): Likewise.
2674 (basic_lookup_transparent_type_1): Likewise.
2675
b08b16c8
TT
26762019-08-06 Tom Tromey <tromey@adacore.com>
2677
2678 * source.c (last_source_error): Now bool.
2679 (print_source_lines_base): Make "noprint" bool. Only open
2680 source file when last_source_visited changes.
2681
cb44333d
TT
26822019-08-06 Tom Tromey <tromey@adacore.com>
2683
2684 * annotate.c (annotate_source_line): Use g_source_cache.
2685 * source-cache.c (source_cache::get_plain_source_lines): Change
2686 parameters. Populate m_offset_cache.
2687 (source_cache::ensure): New method.
2688 (source_cache::get_line_charpos): New method.
2689 (extract_lines): Move lower. Change parameters.
2690 (source_cache::get_source_lines): Move lower.
2691 * source-cache.h (class source_cache): Update comment.
2692 <get_line_charpos>: New method.
2693 <get_source_lines>: Update comment.
2694 <clear>: Clear m_offset_cache.
2695 <get_plain_source_lines>: Change parameters.
2696 <ensure>: New method
2697 <m_offset_cache>: New member.
2698 * source.c (forget_cached_source_info_for_objfile): Update.
2699 (info_source_command): Use g_source_cache.
2700 (find_source_lines, open_source_file_with_line_charpos): Remove.
2701 (print_source_lines_base, search_command_helper): Use g_source_cache.
2702 * source.h (open_source_file_with_line_charpos): Don't declare.
2703 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2704 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2705 Use g_source_cache.
2706
872dceaa
TT
27072019-08-06 Tom Tromey <tromey@adacore.com>
2708
2709 * source-cache.c (source_cache::get_plain_source_lines):
2710 Remove "first_line" and "last_line" parameters.
2711 (source_cache::get_source_lines): Cache plain text.
2712 * source-cache.h (class source_cache)
2713 <get_plain_source_lines>: Update.
2714
269249d9
TT
27152019-08-06 Tom Tromey <tromey@adacore.com>
2716
2717 * source-cache.c (extract_lines): No longer a method.
2718 Changed type of parameter. Include final newline.
2719 (selftests::extract_lines_test): New function.
2720 (_initialize_source_cache): Likewise.
2721 * source-cache.h (class source_cache)
2722 <extract_lines>: Don't declare.
2723
c0e8dcd8
TT
27242019-08-06 Tom Tromey <tromey@adacore.com>
2725
2726 * breakpoint.c (init_breakpoint_sal): Update.
2727 (breakpoint): Update.
2728 * breakpoint.h (struct breakpoint) <filter>: Now a
2729 unique_xmalloc_ptr.
2730
0b27c27d
CB
27312019-08-05 Christian Biesinger <cbiesinger@google.com>
2732
2733 * NEWS: Mention dictionary access on blocks.
2734 * python/py-block.c (blpy_getitem): New function.
2735 (block_object_as_mapping): New struct.
2736 (block_object_type): Use new struct for tp_as_mapping field.
2737
4ee94178
CB
27382019-08-05 Christian Biesinger <cbiesinger@google.com>
2739
2740 * objfiles.h (objfile): Add a comment describing partial symbols.
2741
8abfcabc
TT
27422019-08-05 Tom Tromey <tromey@adacore.com>
2743
2744 * compile/compile.c (_initialize_compile): Use _(), not N_().
2745 * thread.c (_initialize_thread): Use _(), not N_().
2746 * stack.c (_initialize_stack): Use _(), not N_().
2747 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2748
2b79f376
SM
27492019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2750
2751 * dwarf2read.c (struct dw2_symtab_iterator):
2752 <want_specific_block>: Remove.
2753 <block_index>: Change type to gdb::optional.
2754 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2755 change type of BLOCK_INDEX parameter to gdb::optional.
2756 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2757 (dw2_lookup_symbol): Don't pass argument for
2758 WANT_SPECIFIC_BLOCK.
2759 (dw2_expand_symtabs_for_function): Don't pass argument for
2760 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2761 (class dw2_debug_names_iterator)
2762 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2763 parameter, change BLOCK_INDEX type to gdb::optional.
2764 <m_want_specific_block>: Remove.
2765 <m_block_index>: Change type to gdb::optional.
2766 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2767 gdb::optional. Re-write in function of gdb::optional.
2768 (dw2_debug_names_lookup_symbol): Don't pass argument for
2769 WANT_SPECIFIC_BLOCK.
2770 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2771 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2772 BLOCK_INDEX.
2773
ae60f04e
PW
27742019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2775
2776 * NEWS: Mention changes to "info sources" command.
2777
28cd9371
PW
27782019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2779
2780 * symtab.c (filename_partial_match_opts): New struct type.
2781 (struct output_source_filename_data): New members
2782 regexp, c_regexp, partial_match.
2783 (output_source_filename): Use new members to decide to print file.
2784 (info_sources_option_defs): New variable.
2785 (make_info_sources_options_def_group, print_info_sources_header,
2786 info_sources_command_completer):
2787 New functions.
2788 (info_sources_command): Read new optional arguments.
2789 (_initialize_symtab): Update info sources help.
2790
ca683e3a
AO
27912019-08-02 Alexandre Oliva <oliva@adacore.com>
2792
2793 * ada-lang.c (exception_support_info_v0): Renamed from...
2794 (default_exception_support_info): ... this. Create new
2795 definition for v1.
2796 (ada_has_this_exception_support): Look up catch_handlers_sym.
2797 (ada_exception_support_info_sniffer): Try v0 after default.
2798
f1264162
TT
27992019-08-01 Tom Tromey <tromey@adacore.com>
2800
2801 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2802 gdbarch.h.
2803
0a7b2485
CB
28042019-08-01 Christian Biesinger <cbiesinger@google.com>
2805
2806 * s12z-tdep.c: Fix include path for s12z-opc.h.
2807
c6bdbeb7
AH
28082019-08-01 Alan Hayward <alan.hayward@arm.com>
2809
2810 * NEWS: Require GNU make 3.82.
2811
a2bd7b82
TT
28122019-07-16 Tom Tromey <tom@tromey.com>
2813
2814 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2815 declare.
2816
aa3b6533
TT
28172019-07-30 Tom Tromey <tromey@adacore.com>
2818
2819 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2820
a1530dc7
KB
28212019-07-30 Kevin Buettner <kevinb@redhat.com>
2822
2823 * printcmd.c (print_address_symbolic): Print negative offsets.
2824 (build_address_symbolic): Force signed arithmetic when computing
2825 offset.
2826
2906593f
CB
28272019-07-30 Christian Biesinger <cbiesinger@google.com>
2828
2829 PR/24474: Add a function to lookup static variables.
2830 * NEWS: Mention this new function.
2831 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2832 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2833 * python/python.c (python_GdbMethods): Add new function.
2834
c620ed88
CB
28352019-07-29 Christian Biesinger <cbiesinger@google.com>
2836
2837 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2838 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2839 (objfpy_lookup_static_symbol): New function.
2840 (objfile_object_methods): Add new functions.
2841
bc4268a5
PW
28422019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2843
2844 * NEWS: Mention 'set|show print frame-info'. Mention new
2845 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2846 backtrace argument. Mention that python frame filtering code
2847 is now consistent with what 'backtrace' command prints.
2848
4b5e8d19
PW
28492019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2850
2851 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2852 comments.
2853 (print_frame_info_auto, print_frame_info_source_line,
2854 print_frame_info_location, print_frame_info_source_and_location,
2855 print_frame_info_location_and_address, print_frame_info_short_location):
2856 New declarations.
2857 (struct frame_print_options): New member print_frame_info.
2858 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2859 * stack.h (get_user_print_what_frame_info): New declaration.
2860 (frame_show_address): New declaration.
2861 * stack.c (print_frame_arguments_choices): New value 'presence'.
2862 (print_frame_info_auto, print_frame_info_source_line,
2863 print_frame_info_location, print_frame_info_source_and_location,
2864 print_frame_info_location_and_address, print_frame_info_short_location,
2865 print_frame_info_choices, print_frame_info_print_what): New definitions.
2866 (print_frame_args): Only print dots for args if print frame-arguments
2867 is 'presence'.
2868 (frame_print_option_defs): New element for "frame-info".
2869 (get_user_print_what_frame_info): New function.
2870 (frame_show_address): Make non static. Move comment to stack.h.
2871 (print_frame_info_to_print_what): New function.
2872 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2873 to decide what to print.
2874 (backtrace_command_1): Handle the new print_frame_arguments_presence
2875 value.
2876 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2877 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2878 (py_print_frame): In non-mi mode, use LOCATION as default for
2879 print_what, similarly to frame information printed directly by
2880 backtrace command. Handle frame-info user option in non MI mode.
2881
6bdfee81
KB
28822019-07-27 Kevin Buettner <kevinb@redhat.com>
2883
2884 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2885 Add case for debugging 32-bit target on 64-bit host. Revise
2886 comment.
2887
98a617f8
KB
28882019-07-27 Kevin Buettner <kevinb@redhat.com>
2889
2890 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2891 instead of find_function_entry_range_from_pc.
2892
567238c9
KB
28932019-07-27 Kevin Buettner <kevinb@redhat.com>
2894
2895 * stack.c (find_frame_funname): Remove code which preferred
2896 minsym over symtab sym in "certain pathological cases".
2897
2dc80cf8
KB
2898 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2899 parameter. Change type of "do_demangle" to bool.
2900 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2901 Pass suitable "prefer_sym_over_minsym" flag to
2902 build_address_symbolic(). Don't output "+" for negative offsets.
2903 * printcmd.c (print_address_symbolic): Update invocation of
2904 build_address_symbolic to include a "prefer_sym_over_minsym"
2905 flag.
2906 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2907 Restrict cases in which use of minimal symbol is preferred to that
2908 of a found symbol. Update comments.
2909
1aff7173
KB
2910 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2911 for entry pc when entry pc is out of range for that FDE.
2912
89b085ac
BC
29132019-07-26 Brian Callahan <bcallah@openbsd.org>
2914
2915 PR gdb/24839:
2916 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2917 type.
2918
f32feb4a
CB
29192019-07-25 Christian Biesinger <cbiesinger@google.com>
2920
2921 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2922 this function's Python signature.
2923
2924
29252019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
2926
2927 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2928 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2929 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2930 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2931 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2932
2933
c54e4253
YS
29342019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2935
2936 * h8300-tdep.c (h8300_register_name_common): New.
2937 h8300_register_name): Use h8300_register_name_common.
2938 (h8300s_register_name): Likewise.
2939 (h8300sx_register_name): Likewise.
2940 (h8300h_register_nam): New.
2941 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2942
2943
40eadf04
SP
29442019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2945
2946 * arm-tdep.c (arm_skip_cmse_entry): New function.
2947 (arm_is_sgstubs_section): New function.
2948 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2949
bfa2a36d
TT
29502019-07-22 Tom Tromey <tom@tromey.com>
2951
2952 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2953 Don't self-assign.
2954
a8e9d247
AB
29552019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2956
2957 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2958 type_print.
2959
eb86c5e2
AB
29602019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2961
2962 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2963 so that GDB doesn't match any msymbols when searching in the
2964 TYPES_DOMAIN.
2965 (print_symbol_info): Print using typedef_print or type_print based
2966 on the type of the symbol. Add updated FIXME comment moved from...
2967 (_initialize_symtab): ... move and update FIXME comment to above.
2968
a8eab7c6
AB
29692019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2970
2971 * NEWS: Mention adding -q option to "info types".
2972 * symtab.c (struct info_types_options): New struct.
2973 (info_types_options_defs): New variable.
2974 (make_info_types_options_def_group): New function.
2975 (info_types_command): Use gdb::option framework to parse options.
2976 (info_types_command_completer): New function.
2977 (_initialize_symtab): Extend the help text on "info types" and
2978 register command completer.
2979
b4603c34
CB
29802019-07-21 Christian Biesinger <cbiesinger@google.com>
2981
2982 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2983 (lookup_symbol_in_objfile): Change int to block_enum and add a
2984 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2985
c8cdc1e0
CB
29862019-07-20 Christian Biesinger <cbiesinger@google.com>
2987
2988 * MAINTAINERS (Write After Approval): Add self.
2989
01e175fe
AB
29902019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2991
2992 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2993 instruction to the dummy code region.
2994
56f79b63
TT
29952019-07-19 Tom Tromey <tromey@adacore.com>
2996
2997 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2998 (ARGSUSED, PARAMS, __func__): Remove rules.
2999
4c5aa8e0
AH
30002019-07-19 Alan Hayward <alan.hayward@arm.com>
3001
3002 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3003 * features/arm/arm-with-iwmmxt.c: Remove.
3004 * features/arm/arm-with-iwmmxt.xml: Remove.
3005 * features/arm/arm-with-m-fpa-layout.c: Remove.
3006 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3007 * features/arm/arm-with-m-vfp-d16.c: Remove.
3008 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3009 * features/arm/arm-with-m.c: Remove.
3010 * features/arm/arm-with-m.xml: Remove.
3011 * features/arm/arm-with-neon.c: Remove.
3012 * features/arm/arm-with-neon.xml: Remove.
3013 * features/arm/arm-with-vfpv2.c: Remove.
3014 * features/arm/arm-with-vfpv2.xml: Remove.
3015 * features/arm/arm-with-vfpv3.c: Remove.
3016 * features/arm/arm-with-vfpv3.xml: Remove.
3017
f42b2617
AH
30182019-07-19 Alan Hayward <alan.hayward@arm.com>
3019
3020 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3021
f29ec966
AH
30222019-07-19 Alan Hayward <alan.hayward@arm.com>
3023
3024 * arch/aarch32.c (aarch32_create_target_description): Create
3025 target descriptions using features.
3026 * arch/arm.c (arm_create_target_description)
3027 (arm_create_mprofile_target_description): Likewise.
3028 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3029
d105cce5
AH
30302019-07-19 Alan Hayward <alan.hayward@arm.com>
3031
3032 * Makefile.in: Add new files.
3033 * aarch32-tdep.c: New file.
3034 * aarch32-tdep.h: New file.
3035 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3036 Call aarch32_read_description.
3037 * arch/aarch32.c: New file.
3038 * arch/aarch32.h: New file.
3039 * arch/arm.c (arm_create_target_description)
3040 (arm_create_mprofile_target_description): New function.
3041 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3042 (arm_create_target_description)
3043 (arm_create_mprofile_target_description): New declaration.
3044 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3045 read_description functions.
3046 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3047 Likewise.
3048 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3049 * arm-tdep.c (tdesc_arm_list): New variable.
3050 (arm_register_g_packet_guesses): Call create description functions.
3051 (arm_read_description) (arm_read_mprofile_description): New
3052 function.
3053 * arm-tdep.h (arm_read_description)
3054 (arm_read_mprofile_description): Add declaration.
3055 * configure.tgt: Add new files.
3056
afe09f0b
GL
30572019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3058
3059 * top.c (new_ui_command): Open specified terminal just once.
3060
cd215b2e
TT
30612019-07-18 Tom Tromey <tromey@adacore.com>
3062
3063 * symtab.c (main_name): Constify return type.
3064 * symfile.c (set_initial_language): Update.
3065 * symtab.h (main_name): Constify return type.
3066
d8f68fcb
TT
30672019-07-17 Tom Tromey <tom@tromey.com>
3068
3069 * tui/tui-winsource.c (tui_update_source_window)
3070 (tui_update_source_window_as_is)
3071 (tui_update_source_windows_with_line): Remove return.
3072 * tui/tui-disasm.c (tui_show_disassem)
3073 (tui_show_disassem_and_update_source): Remove return.
3074 * tui/tui.c (tui_reset): Remove return.
3075 * tui/tui-wingeneral.c
3076 (tui_check_and_display_highlight_if_needed): Remove return.
3077
ca5af91e
TT
30782019-07-17 Tom Tromey <tom@tromey.com>
3079
3080 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3081
5104fe36
TT
30822019-07-17 Tom Tromey <tom@tromey.com>
3083
3084 * tui/tui-winsource.h (struct tui_exec_info_window)
3085 (struct tui_source_window_base): Move from tui-data.h.
3086 * tui/tui-winsource.c: Move many method definitions from
3087 elsewhere. Remove "structuring" comments.
3088 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3089 (tui_source_window_base::refresh_window): Move to
3090 tui-winsource.c.
3091 * tui/tui-win.c (tui_source_window_base::refresh_all)
3092 (tui_source_window_base::update_tab_width)
3093 (tui_source_window_base::set_new_height)
3094 (tui_source_window_base::do_make_visible_with_new_height): Move to
3095 tui-winsource.c.
3096 * tui/tui-source.h: Update.
3097 * tui/tui-source.c (tui_source_window_base::reset): Move to
3098 tui-winsource.c.
3099 * tui/tui-disasm.h: Update.
3100 * tui/tui-data.h (struct tui_exec_info_window): Move to
3101 tui-winsource.h.
3102 (struct tui_source_window_base): Likewise.
3103 * tui/tui-data.c (tui_source_window_base::clear_detail)
3104 (tui_source_window_base, ~tui_source_window_base): Move to
3105 tui-winsource.c.
3106
daa15dde
TT
31072019-07-17 Tom Tromey <tom@tromey.com>
3108
3109 * tui/tui-win.c (tui_resize_all)
3110 (tui_source_window_base::update_tab_width)
3111 (tui_adjust_win_heights): Update.
3112 (tui_win_info::make_invisible_and_set_new_height): Rename from
3113 make_invisible_and_set_new_height.
3114 * tui/tui-data.h (struct tui_win_info)
3115 <make_invisible_and_set_new_height>: New method.
3116
bfad4537
TT
31172019-07-17 Tom Tromey <tom@tromey.com>
3118
3119 * tui/tui.c: Update.
3120 * tui/tui-source.h (struct tui_source_window): Move from
3121 tui-data.h.
3122 * tui/tui-layout.c: Update.
3123 * tui/tui-disasm.c: Update.
3124 * tui/tui-data.h (struct tui_source_window): Move to
3125 tui-source.h.
3126
88f7e873
TT
31272019-07-17 Tom Tromey <tom@tromey.com>
3128
3129 * tui/tui-disasm.h (struct tui_disasm_window): Move from
3130 tui-data.h.
3131 * tui/tui-data.h (struct tui_disasm_window): Move to
3132 tui-disasm.h.
3133
96bd6233
TT
31342019-07-17 Tom Tromey <tom@tromey.com>
3135
3136 * tui/tui-regs.h (struct tui_data_item_window): Move from
3137 tui-data.h.
3138 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3139 * tui/tui-data.h (struct tui_data_item_window): Move to
3140 tui-regs.h.
3141 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3142
ce38393b
TT
31432019-07-17 Tom Tromey <tom@tromey.com>
3144
3145 * tui/tui.c: Update.
3146 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3147 (tui_cmd_window::max_height): Move to tui-command.c.
3148 * tui/tui-layout.c: Update.
3149 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3150 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3151 tui-command.c.
3152 * tui/tui-command.h (struct tui_cmd_window): Move from
3153 tui-data.h.
3154 * tui/tui-command.c: Remove "structuring" comments.
3155 (tui_cmd_window::clear_detail)
3156 (tui_cmd_window::do_make_visible_with_new_height)
3157 (tui_cmd_window::max_height): Move from elsewhere.
3158
2d8b51cb
TT
31592019-07-17 Tom Tromey <tom@tromey.com>
3160
3161 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3162 Now static.
3163 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3164 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3165
18ab23af
TT
31662019-07-17 Tom Tromey <tom@tromey.com>
3167
3168 * tui/tui.c: Update.
3169 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3170 tui-regs.c.
3171 * tui/tui-windata.h: Remove file.
3172 * tui/tui-windata.c: Remove file.
3173 * tui/tui-win.c (tui_data_window::set_new_height)
3174 (tui_data_window::do_make_visible_with_new_height): Move to
3175 tui-regs.c.
3176 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3177 * tui/tui-regs.c: Remove "structuring" comments.
3178 (tui_data_window::first_data_item_displayed)
3179 (tui_data_window::delete_data_content_windows)
3180 (tui_data_window::erase_data_content)
3181 (tui_data_window::display_all_data)
3182 (tui_data_window::refresh_all)
3183 (tui_data_window::do_scroll_vertical)
3184 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3185 (tui_data_window::do_make_visible_with_new_height)
3186 (tui_data_window::refresh_window): Move from elsewhere.
3187 (_initialize_tui_regs): Move to end of file.
3188 * tui/tui-layout.c: Update.
3189 * tui/tui-hooks.c: Update.
3190 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3191 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3192 tui-regs.c.
3193 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3194
88b7e7cc
TT
31952019-07-17 Tom Tromey <tom@tromey.com>
3196
3197 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3198 seen.
3199
0fcd3711
TT
32002019-07-17 Tom Tromey <tom@tromey.com>
3201
3202 * tui/tui-win.c (tui_source_window_base::set_new_height)
3203 (tui_source_window_base::do_make_visible_with_new_height): Use
3204 m_has_locator field directly.
3205 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3206 method.
3207 (struct tui_source_window_base) <has_locator>: Likewise.
3208
4a38112d
TT
32092019-07-17 Tom Tromey <tom@tromey.com>
3210
3211 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3212 Don't declare.
3213 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3214 Remove.
3215 * tui/tui-win.c (tui_source_window_base::set_new_height)
3216 (tui_source_window_base::set_new_height)
3217 (make_invisible_and_set_new_height)
3218 (tui_source_window_base::do_make_visible_with_new_height)
3219 (tui_source_window_base::do_make_visible_with_new_height):
3220 Update.
3221 * tui/tui-layout.c (show_source_disasm_command, show_data)
3222 (show_source_or_disasm_and_command): Update.
3223 * tui/tui-layout.c (show_layout): Update.
3224
09129226
TT
32252019-07-17 Tom Tromey <tom@tromey.com>
3226
3227 * tui/tui-layout.c (make_data_window): Remove.
3228 (show_data): Unify creation and re-initialization cases.
3229
4a8a5e84
TT
32302019-07-17 Tom Tromey <tom@tromey.com>
3231
3232 * tui/tui-layout.c (make_source_window, make_disasm_window):
3233 Remove.
3234 (show_data): Unify creation and re-initialization cases.
3235
76d2be8e
TT
32362019-07-17 Tom Tromey <tom@tromey.com>
3237
3238 * tui/tui-layout.c (make_command_window): Remove.
3239 (show_source_disasm_command, show_source_or_disasm_and_command):
3240 Unify creation and re-initialization cases.
3241
890b8bde
TT
32422019-07-17 Tom Tromey <tom@tromey.com>
3243
3244 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3245 creation and re-initialization cases.
3246
2cdfa113
TT
32472019-07-17 Tom Tromey <tom@tromey.com>
3248
3249 * tui/tui-regs.c (tui_get_register): Return void.
3250
8e3cfd09
TT
32512019-07-17 Tom Tromey <tom@tromey.com>
3252
3253 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3254 Simplify.
3255
f4e04977
TT
32562019-07-17 Tom Tromey <tom@tromey.com>
3257
3258 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3259 resetting.
3260
0379b883
TT
32612019-07-17 Tom Tromey <tom@tromey.com>
3262
3263 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3264 * tui/tui-regs.c (tui_reg_layout): New function.
3265 (tui_show_registers, tui_reg_command): Use it.
3266 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3267 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3268 parameters.
3269 (tui_layout_command): Remove.
3270
b7fbad91
TT
32712019-07-17 Tom Tromey <tom@tromey.com>
3272
3273 * tui/tui-layout.h (tui/tui-layout): Return void.
3274 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3275
4e1e56b9
TT
32762019-07-17 Tom Tromey <tom@tromey.com>
3277
3278 * tui/tui-layout.c (show_source_disasm_command, show_data):
3279 Update.
3280 (reset_locator): Remove.
3281 (show_source_or_disasm_and_command): Update.
3282
1e0c09ba
TT
32832019-07-17 Tom Tromey <tom@tromey.com>
3284
3285 * tui/tui-source.c (tui_source_window_base::reset): Remove
3286 win_type parameter.
3287 * tui/tui-layout.c (make_command_window, make_source_window)
3288 (make_disasm_window, make_data_window)
3289 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3290 (reset_locator, show_source_or_disasm_and_command): Update.
3291 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3292 win_type parameter.
3293 (struct tui_source_window_base) <reset>: Likewise.
3294
1bf605de
TT
32952019-07-17 Tom Tromey <tom@tromey.com>
3296
3297 * tui/tui-layout.c (show_source_disasm_command): Use
3298 reset_locator.
3299 (reset_locator): New function.
3300 (init_and_make_win): Remove.
3301 (show_source_or_disasm_and_command): Use reset_locator.
3302
098f9ed4
TT
33032019-07-17 Tom Tromey <tom@tromey.com>
3304
3305 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3306 condition.
3307 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3308 Remove condition.
3309 * tui/tui-source.c (tui_source_window_base::reset): New method.
3310 * tui/tui-layout.c (make_command_window): Don't call
3311 init_and_make_win.
3312 (make_source_window, make_disasm_window): Don't call
3313 make_source_or_disasm_window.
3314 (make_data_window): Don't call init_and_make_win. Change calling
3315 convention.
3316 (show_source_disasm_command, show_data): Simplify.
3317 (make_source_or_disasm_window): Remove.
3318 (show_source_or_disasm_and_command): Simplify.
3319 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3320 (struct tui_source_window_base) <reset>: Likewise.
3321 <execution_info>: Remove initializer.
3322 * tui/tui-data.c (tui_source_window_base): Initialize
3323 execution_info.
3324
80110957
TT
33252019-07-17 Tom Tromey <tom@tromey.com>
3326
3327 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3328 variable.
3329
cf82af05
TT
33302019-07-17 Tom Tromey <tom@tromey.com>
3331
3332 * tui/tui.c (tui_rl_other_window): Update.
3333 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3334 superclass method first. Always iterate over regs_content.
3335 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3336 method.
3337 * tui/tui-win.c (tui_set_focus_command): Update.
3338
01aeb396
TT
33392019-07-17 Tom Tromey <tom@tromey.com>
3340
3341 * tui/tui-win.c (tui_set_focus_command): Rename from
3342 tui_set_focus. Call tui_enable.
3343 (tui_set_focus_command): Remove.
3344
fd6c75ee
TT
33452019-07-17 Tom Tromey <tom@tromey.com>
3346
3347 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3348 refresh_window.
3349 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3350 touchwin.
3351 (tui_data_window::refresh_window): Call refresh_window on data
3352 items. Always call superclass refresh_window.
3353 (tui_win_info::refresh): Remove.
3354 (tui_source_window_base::refresh_window): Update.
3355 (tui_refresh_all): Update.
3356 * tui/tui-layout.c (show_source_disasm_command): Remove call to
3357 refresh_window.
3358 (show_source_or_disasm_and_command): Likewise.
3359 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3360 (struct tui_source_window_base) <refresh>: Likewise.
3361
f6cc34a9
TT
33622019-07-17 Tom Tromey <tom@tromey.com>
3363
3364 * tui/tui-winsource.c (tui_clear_source_content)
3365 (tui_show_source_content): Update.
3366 * tui/tui-source.c (tui_source_window::showing_source_p): Check
3367 whether content is empty.
3368 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3369 Remove.
3370
f31ec9af
TT
33712019-07-17 Tom Tromey <tom@tromey.com>
3372
3373 * tui/tui-winsource.c (tui_erase_source_content): Clear the
3374 window's contents.
3375 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3376 * tui/tui-source.c (tui_set_source_content_nil): Remove.
3377
d1b6f1e5
TT
33782019-07-17 Tom Tromey <tom@tromey.com>
3379
3380 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3381 (struct tui_data_item_window): Update.
3382
d9743a13
TT
33832019-07-17 Tom Tromey <tom@tromey.com>
3384
3385 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3386 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3387 defines.
3388
caf0bc4e
TT
33892019-07-17 Tom Tromey <tom@tromey.com>
3390
3391 * tui/tui-winsource.h (tui_erase_source_content)
3392 (tui_clear_source_content): Remove "display_prompt" parameter.
3393 * tui/tui-winsource.c (tui_update_source_window_as_is)
3394 (tui_update_source_windows_with_addr): Update.
3395 (tui_clear_source_content): Remove "display_prompt" parameter.
3396 (tui_erase_source_content): Likewise. Simplify.
3397 (tui_show_source_content): Update.
3398 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3399 * tui/tui-stack.c (tui_show_frame_info): Update.
3400 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3401 Remove defines.
3402
9d391078
TT
34032019-07-17 Tom Tromey <tom@tromey.com>
3404
3405 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3406 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
3407 parameter.
3408 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
3409 parameter.
3410
a38da35d
TT
34112019-07-17 Tom Tromey <tom@tromey.com>
3412
3413 * tui/tui-winsource.c (tui_clear_source_content)
3414 (tui_show_source_content, tui_show_exec_info_content)
3415 (tui_clear_exec_info_content): Update.
3416 * tui/tui-stack.c (tui_show_locator_content): Update.
3417 (tui_show_frame_info): Update.
3418 * tui/tui-source.h (tui_source_window): Don't declare.
3419 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
3420 from tui_source_is_displayed.
3421 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
3422 Remove field.
3423 (struct tui_source_window_base) <content_in_use>: New field. Now
3424 bool.
3425 (struct tui_source_window) <showing_source_p>: New method.
3426 (TUI_SRC_WIN): Change cast.
3427 * tui/tui-data.c (tui_initialize_static_data): Update.
3428
c2cd8994
TT
34292019-07-17 Tom Tromey <tom@tromey.com>
3430
3431 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
3432 location_matches_p.
3433 * tui/tui-source.c (tui_source_window::location_matches_p): New
3434 method.
3435 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
3436 method.
3437 * tui/tui-data.h (struct tui_source_window_base)
3438 <location_matches_p>: New method.
3439 (struct tui_source_window, struct tui_disasm_window)
3440 <location_matches_p>: Likewise.
3441
4dde7b34
TT
34422019-07-17 Tom Tromey <tom@tromey.com>
3443
3444 * tui/tui-win.c (tui_set_win_height_command): Rename from
3445 tui_set_win_height.
3446 (tui_set_win_height_command): Remove.
3447
b73dd877
TT
34482019-07-17 Tom Tromey <tom@tromey.com>
3449
3450 * tui/tui-source.c (tui_source_window): New constructor. Add
3451 observer.
3452 (~tui_source_window): New destructor.
3453 (tui_source_window::style_changed): New method.
3454 * tui/tui-hooks.c (tui_redisplay_source): Remove.
3455 (tui_attach_detach_observers): Update.
3456 * tui/tui-data.h (struct tui_source_window): Make constructor not
3457 inline. Add destructor.
3458 (struct tui_source_window) <style_changed>: New method.
3459 <m_observable>: New member.
3460
ae2b5380
TT
34612019-07-17 Tom Tromey <tom@tromey.com>
3462
3463 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3464 * tui/tui-win.c (tui_resize_all): Fix typo.
3465
1ce3e844
TT
34662019-07-17 Tom Tromey <tom@tromey.com>
3467
3468 * tui/tui-wingeneral.h (tui_refresh_all): Update.
3469 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3470 (tui_refresh_all): Remove "list" parameter. Use foreach.
3471 * tui/tui-win.c (window_name_completer): Use foreach.
3472 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3473 (update_tab_width): Likewise.
3474 * tui/tui-layout.c (show_layout): Update.
3475 * tui/tui-data.h (class tui_window_iterator): New.
3476 (struct all_tui_windows): New.
3477 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3478
fe3eaf1c
TT
34792019-07-17 Tom Tromey <tom@tromey.com>
3480
3481 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3482 parameter. Don't reference globals.
3483 (tui_reg_command): Update.
3484
368c1354
TT
34852019-07-17 Tom Tromey <tom@tromey.com>
3486
3487 * tui/tui-regs.c (tui_show_registers): Simplify.
3488
e80cd204
TT
34892019-07-17 Tom Tromey <tom@tromey.com>
3490
3491 * tui/tui-regs.c (tui_show_registers): Update.
3492 (tui_show_register_group): Add win_info parameter.
3493
aca2dd16
TT
34942019-07-17 Tom Tromey <tom@tromey.com>
3495
3496 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3497 Rename from tui_display_reg_element_at_line.
3498 (tui_data_window::display_registers_from_line): Update.
3499 * tui/tui-data.h (struct tui_data_window)
3500 <display_reg_element_at_line>: New method.
3501
517e9505
TT
35022019-07-17 Tom Tromey <tom@tromey.com>
3503
3504 * tui/tui-regs.h (tui_display_registers_from)
3505 (tui_display_registers_from_line): Don't declare.
3506 * tui/tui-windata.c (tui_data_window::display_all_data)
3507 (tui_data_window::refresh_all)
3508 (tui_data_window::do_scroll_vertical): Update.
3509 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3510 from tui_display_registers_from.
3511 (tui_display_reg_element_at_line): Update.
3512 (tui_data_window::display_registers_from_line): Rename from
3513 tui_display_registers_from_line.
3514 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3515 display_registers_from_line>: New methods.
3516
f76d8b19
TT
35172019-07-17 Tom Tromey <tom@tromey.com>
3518
3519 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3520 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3521 from tui_erase_data_content.
3522 (tui_data_window::display_all_data)
3523 (tui_data_window::refresh_all)
3524 (tui_data_window::do_scroll_vertical): Update.
3525 * tui/tui-regs.c (tui_show_registers): Update.
3526 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3527 New method.
3528
b4094625
TT
35292019-07-17 Tom Tromey <tom@tromey.com>
3530
3531 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3532 declare.
3533 * tui/tui-windata.c
3534 (tui_data_window::delete_data_content_windows): Rename from
3535 tui_delete_data_content_windows.
3536 (tui_data_window::display_all_data)
3537 (tui_data_window::do_scroll_vertical): Update.
3538 * tui/tui-data.h (struct tui_data_window)
3539 <delete_data_content_windows>: New method.
3540
c223a729
TT
35412019-07-17 Tom Tromey <tom@tromey.com>
3542
3543 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3544 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3545
50daf268
TT
35462019-07-17 Tom Tromey <tom@tromey.com>
3547
3548 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3549 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3550 from tui_display_all_data.
3551 * tui/tui-win.c
3552 (tui_data_window::do_make_visible_with_new_height): Update.
3553 * tui/tui-regs.c (tui_show_registers): Update.
3554 * tui/tui-layout.c (tui_set_layout): Update.
3555 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3556 method.
3557
df5f8cab
TT
35582019-07-17 Tom Tromey <tom@tromey.com>
3559
3560 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3561 * tui/tui-windata.c (tui_display_data_from): Remove.
3562 (tui_data_window::refresh_all): Update.
3563
80cb6c27
TT
35642019-07-17 Tom Tromey <tom@tromey.com>
3565
3566 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3567 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3568 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3569 tui_display_registers_from_line.
3570 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3571 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3572 "force_display" parameter.
3573
baff0c28
TT
35742019-07-17 Tom Tromey <tom@tromey.com>
3575
3576 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3577 declare.
3578 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3579 Rename from tui_first_reg_element_no_inline.
3580 (tui_display_reg_element_at_line)
3581 (tui_display_registers_from_line): Update.
3582 * tui/tui-data.h (struct tui_data_window)
3583 <first_reg_element_no_inline>: New method.
3584
3b23c5f2
TT
35852019-07-17 Tom Tromey <tom@tromey.com>
3586
3587 * tui/tui-windata.c (tui_display_data_from)
3588 (tui_data_window::do_scroll_vertical): Update.
3589 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3590 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3591 Rename from tui_line_from_reg_element_no.
3592 (tui_display_registers_from_line): Update.
3593 * tui/tui-data.h (struct tui_data_window)
3594 <line_from_reg_element_no>: New method.
3595
0b5ec218
TT
35962019-07-17 Tom Tromey <tom@tromey.com>
3597
3598 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3599 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3600 tui_last_regs_line_no.
3601 (tui_display_reg_element_at_line)
3602 (tui_display_registers_from_line): Update.
3603 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3604 method.
3605
0807ab7b
TT
36062019-07-17 Tom Tromey <tom@tromey.com>
3607
3608 PR tui/24722:
3609 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3610 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3611 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3612 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3613 (tui_update_breakpoint_info): Likewise.
3614 * tui/tui-hooks.c (tui_event_create_breakpoint)
3615 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3616 Update.
3617
9ad7fdef
TT
36182019-07-17 Tom Tromey <tom@tromey.com>
3619
3620 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3621
5813316f
TT
36222019-07-17 Tom Tromey <tom@tromey.com>
3623
3624 * tui/tui-winsource.c (tui_update_source_window_as_is)
3625 (tui_update_source_windows_with_addr): Update.
3626 * tui/tui-source.h (tui_set_source_content)
3627 (tui_show_symtab_source): Add "win_info" parameter.
3628 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3629 parameter.
3630 (tui_show_symtab_source): Likewise.
3631
00e264e7
TT
36322019-07-17 Tom Tromey <tom@tromey.com>
3633
3634 * tui/tui-wingeneral.c
3635 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3636
06210ce4
TT
36372019-07-17 Tom Tromey <tom@tromey.com>
3638
3639 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3640 (struct tui_cmd_window) <can_scroll>: New method.
3641 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3642 method.
3643
381befee
TT
36442019-07-17 Tom Tromey <tromey@adacore.com>
3645
3646 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3647 do_field_signed>: Rename. Change type of "value".
3648 * ui-out.c (ui_out::field_signed): Rename from field_int.
3649 Change type of "value".
3650 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3651 type of "value".
3652 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3653 do_field_int. Change type of "value".
3654 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3655 do_field_int. Change type of "value".
3656 * tracepoint.c (trace_status_mi, tfind_1)
3657 (print_one_static_tracepoint_marker): Update.
3658 * thread.c (print_thread_info_1, print_selected_thread_frame):
3659 Update.
3660 * stack.c (print_frame, print_frame_info): Update.
3661 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3662 Update.
3663 * source.c (print_source_lines_base): Update.
3664 * skip.c (info_skip_command): Update.
3665 * record-btrace.c (btrace_ui_out_decode_error)
3666 (btrace_call_history_src_line): Update.
3667 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3668 Update.
3669 * progspace.c (print_program_space): Update.
3670 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3671 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3672 do_field_int. Change type of "value".
3673 * mi/mi-out.c (mi_ui_out::do_table_begin)
3674 (mi_ui_out::do_table_header): Update.
3675 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3676 type of "value".
3677 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3678 (mi_cmd_data_list_changed_registers, output_register)
3679 (mi_cmd_data_read_memory, mi_load_progress)
3680 (mi_cmd_trace_frame_collected): Update.
3681 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3682 Update.
3683 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3684 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3685 (mi_cmd_var_list_children, varobj_update_one): Update.
3686 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3687 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3688 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3689 * inferior.c (print_inferior): Update.
3690 * gdb_bfd.c (print_one_bfd): Update.
3691 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3692 Update.
3693 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3694 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3695 do_field_int. Change type of "value".
3696 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3697 do_field_int. Change type of "value".
3698 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3699 (print_one_breakpoint_location, print_it_catch_fork)
3700 (print_one_catch_fork, print_it_catch_vfork)
3701 (print_one_catch_vfork, print_it_catch_solib)
3702 (print_it_catch_exec, print_it_ranged_breakpoint)
3703 (print_mention_watchpoint, print_mention_masked_watchpoint)
3704 (bkpt_print_it, update_static_tracepoint): Update.
3705 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3706 * break-catch-syscall.c (print_it_catch_syscall): Update.
3707 * ada-tasks.c (print_ada_task_info): Update.
3708 * ada-lang.c (print_it_exception, print_mention_exception):
3709 Update.
3710
6b78c3f8
AB
37112019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3712
3713 PR breakpoints/24541
3714 * gdbarch.c: Regenerate.
3715 * gdbarch.h: Regenerate.
3716 * gdbarch.sh: Adjust return type and parameter types for
3717 'stap_adjust_register'.
3718 (i386_stap_adjust_register): Adjust signature and return new
3719 register name.
3720 * stap-probe.c (stap_parse_register_operand): Adjust use of
3721 'gdbarch_stap_adjust_register'.
3722
d72a9b85
TT
37232019-07-17 Tom Tromey <tromey@adacore.com>
3724
3725 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3726 declare VEC.
3727 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3728 std::vector.
3729 (struct s390_process_info): Add initializers.
3730 (s390_add_process): Use new.
3731 (s390_linux_nat_target::low_forget_process): Use delete.
3732 (s390_linux_nat_target::low_new_fork)
3733 (s390_linux_nat_target::stopped_by_watchpoint)
3734 (s390_linux_nat_target::low_prepare_to_resume)
3735 (s390_linux_nat_target::insert_watchpoint)
3736 (s390_linux_nat_target::insert_hw_breakpoint)
3737 (s390_linux_nat_target::remove_watchpoint)
3738 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3739
206e6c58
JB
37402019-07-16 John Baldwin <jhb@FreeBSD.org>
3741
3742 * aarch64-fbsd-nat.c: Include regcache.h.
3743 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3744 argument.
3745 (aarch64_fbsd_nat_target::fetch_registers)
3746 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3747 variable.
3748 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3749
cbde90f2
JB
37502019-07-16 John Baldwin <jhb@FreeBSD.org>
3751
3752 * fbsd-nat.c: Include gdbarch.h.
3753
07128006
TT
37542019-07-15 Tom Tromey <tromey@adacore.com>
3755
3756 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3757
1f77b012
TT
37582019-07-15 Tom Tromey <tromey@adacore.com>
3759
3760 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3761 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3762 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3763 * cli-out.c (cli_ui_out::do_field_int): New method.
3764 * ui-out.c (ui_out::field_unsigned): New method.
3765 * symfile.c (generic_load): Use field_unsigned.
3766 (print_transfer_performance): Likewise.
3767 * record-btrace.c (ui_out_field_uint): Remove.
3768 (btrace_call_history_insn_range, btrace_call_history): Use
3769 field_unsigned.
3770 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3771 field_unsigned.
3772 * ui-out.h (class ui_out) <field_unsigned>: New method.
3773 <do_field_unsigned>: Likewise.
3774
33eca680
TT
37752019-07-15 Tom Tromey <tromey@adacore.com>
3776
3777 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3778 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3779 * target.c (flash_erase_command): Use field_string.
3780 * infrun.c (print_signal_received_reason): Use field_string.
3781 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3782 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3783 field_string.
3784 * ada-tasks.c (print_ada_task_info): Use field_string.
3785
ca8d69be
TT
37862019-07-15 Tom Tromey <tromey@adacore.com>
3787
3788 * target.c (flash_erase_command): Use field_core_addr.
3789 * symfile.c (generic_load): Use field_core_addr.
3790 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3791 Use field_core_addr.
3792 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3793 field_core_addr.
3794
0d4e84ed
AB
37952019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3796
3797 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3798 value if its desired type is smaller than a CORE_ADDR and signed.
3799
9a49df9d
AB
38002019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3801
3802 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3803 of changes to field names, and use new is_reference field to
3804 decide if a property is a reference or not.
3805 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3806 field.
3807 (struct dwarf2_property_baton): Update header comment, rename
3808 'referenced_type' to 'property_type' and update comments.
3809 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3810 default property type, store in property baton, update to take
3811 accound of renamed field.
3812 (read_func_scope): Update call to attr_to_dynamic_prop.
3813 (read_array_type): Likewise.
3814 (dwarf2_per_cu_addr_sized_int_type): New function.
3815 (read_subrange_index_type): Move type finding code to
3816 dwarf2_per_cu_addr_sized_int_type.
3817 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3818 (dwarf2_per_cu_addr_type): New function.
3819 (set_die_type): Update calls to attr_to_dynamic_prop.
3820
b86352cf
AB
38212019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3822
3823 * dwarf2read.c (read_subrange_index_type): New function.
3824 (read_subrange_type): Move code into new function and call it.
3825 * gdbtypes.c (create_range_type): Add some asserts.
3826
603490bf
AB
38272019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3828
3829 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3830 update return statements.
3831 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3832 declaration, and update comment to match.
3833 * gdbtypes.c (resolve_dynamic_array): Update call to
3834 dwarf2_evaluate_property to match new return type.
3835
592f9d27
AB
38362019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3837
3838 * valarith.c (value_subscripted_rvalue): Change lowerbound
3839 parameter type from int to LONGEST.
3840 * value.h (value_subscripted_rvalue): Likewise in declaration.
3841
60cfcb20
AB
38422019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3843
3844 * cli/cli-utils.c (info_print_command_completer): New function.
3845 * cli/cli-utils.h: Add 'completer.h' include, and forward
3846 declaration for 'struct cmd_list_element'.
3847 (info_print_command_completer): Declare.
3848 * stack.c (_initialize_stack): Add completer for 'info locals' and
3849 'info args'.
3850 * symtab.c (_initialize_symtab): Add completer for 'info
3851 variables' and 'info functions'.
3852 * NEWS: Mention completion for additional info commands.
3853
b16507e0
AB
38542019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3855
3856 * cli/cli-utils.c (extract_info_print_args): Delete.
3857 (extract_arg_maybe_quoted): Delete.
3858 (info_print_options_defs): New variable.
3859 (make_info_print_options_def_group): New function.
3860 (extract_info_print_options): Define new function.
3861 * cli/cli-utils.h (extract_info_print_args): Delete.
3862 (struct info_print_options): New structure.
3863 (extract_info_print_options): Declare new function.
3864 * stack.c (info_locals_command): Update to use new
3865 extract_info_print_options, also add a header comment.
3866 (info_args_command): Likewise.
3867 * symtab.c (info_variables_command): Likewise.
3868 (info_functions_command): Likewise.
3869
021d8588
AB
38702019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3871
3872 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3873 to extract string arguments.
3874 * common/common-utils.c (extract_string_maybe_quoted): New function.
3875 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3876
b777eb6d
TT
38772019-07-11 Tom Tromey <tromey@adacore.com>
3878
3879 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3880 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3881 * top.h (gdbinit): Don't declare.
3882 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3883 into...
3884 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3885 * top.c (gdb_init): Don't call init_cli_cmds.
3886 (gdbinit): Remove.
3887 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3888
72ee03ff
TT
38892019-07-11 Tom Tromey <tromey@adacore.com>
3890
3891 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3892 after it has been moved.
3893
00db9531
SM
38942019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3895
3896 * valops.c (value_must_coerce_to_target): Change return type to
3897 bool.
3898 * value.h (value_must_coerce_to_target): Likewise.
3899
f2478a7e
SM
39002019-07-10 Simon Marchi <simon.marchi@efficios.com>
3901
3902 * breakpoint.c (is_hardware_watchpoint): Remove
3903 forward-declaration.
3904 (is_masked_watchpoint): Change return type to bool.
3905 (is_tracepoint): Likewise.
3906 (is_breakpoint): Likewise.
3907 (is_hardware_watchpoint): Likewise.
3908 (is_watchpoint): Likewise.
3909 (is_no_memory_software_watchpoint): Likewise.
3910 (is_catchpoint): Likewise.
3911 (breakpoint_1): Make FILTER parameter's return type bool.
3912 is_masked_watchpoint): Change return type to bool.
3913 (save_breakpoints): Make FILTER parameter's return type bool.
3914 * breakpoint.h (is_breakpoint): Change return type to bool.
3915 (is_watchpoint): Likewise.
3916 (is_catchpoint): Likewise.
3917 (is_tracepoint): Likewise.
3918
0d12e84c
TT
39192019-07-10 Tom Tromey <tom@tromey.com>
3920
3921 * defs.h: Don't include gdbarch.h.
3922 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3923 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3924 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3925 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3926 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3927 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3928 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3929 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3930 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3931 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3932 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3933 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3934 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3935 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3936 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3937 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3938 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3939 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3940 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3941 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3942 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3943 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3944 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3945 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3946 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3947 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3948 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3949
f06f1252
TT
39502019-07-10 Tom Tromey <tromey@adacore.com>
3951
3952 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3953 * breakpoint.c (init_ada_exception_breakpoint): Register as
3954 bp_catchpoint.
3955 (print_one_breakpoint_location, print_one_breakpoint): Use
3956 is_ada_exception_catchpoint.
3957 * ada-lang.c (class ada_catchpoint_location): Pass
3958 bp_loc_software_breakpoint to bp_location constructor.
3959 (is_ada_exception_catchpoint): New function.
3960
7a5d944b
TT
39612019-07-10 Tom Tromey <tromey@adacore.com>
3962
3963 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3964 VEC.
3965 (struct arm_exidx_entry): New method operator<.
3966 (struct arm_exidx_data) <section_maps>: Change type.
3967 (arm_exidx_data_free): Remove.
3968 (arm_exidx_data_key): Change type. Move lower.
3969 (arm_exidx_new_objfile): Update.
3970 (arm_compare_exidx_entries): Remove.
3971 (arm_find_exidx_entry, _initialize_arm_tdep)
3972
48c66e1d
TT
39732019-07-10 Tom Tromey <tromey@adacore.com>
3974
3975 * solib-spu.c (ocl_program_data_key): Change type.
3976 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3977 Update.
3978
a269fbf1
TT
39792019-07-10 Tom Tromey <tromey@adacore.com>
3980
3981 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3982 (struct solib_aix_inferior_data) <library_list>: Change type.
3983 (solib_aix_inferior_data_handle): Change type.
3984 (get_solib_aix_inferior_data): Update.
3985 (solib_aix_free_library_list): Remove.
3986 (library_list_start_library): Update.
3987 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3988 return type.
3989 (solib_aix_get_library_list)
3990 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3991 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3992
c294730c
TT
39932019-07-10 Tom Tromey <tromey@adacore.com>
3994
3995 * solib-dsbt.c (struct dsbt_info): Add initializers.
3996 (solib_dsbt_pspace_data): Change type.
3997 (dsbt_pspace_data_cleanup): Remove.
3998 (get_dsbt_info, _initialize_dsbt_solib): Update.
3999
9d52077d
TT
40002019-07-10 Tom Tromey <tromey@adacore.com>
4001
4002 * spu-tdep.c (spu_overlay_data): Change type.
4003 (spu_get_overlay_table, spu_overlay_new_objfile)
4004 (_initialize_spu_tdep): Update.
4005
22a20dca
TT
40062019-07-10 Tom Tromey <tromey@adacore.com>
4007
4008 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4009 destructor.
4010 (dbx_objfile_data_key): Change type and declare later.
4011 (DBX_SYMFILE_INFO): Rewrite.
4012 * dbxread.c (dbx_objfile_data_key): Change type.
4013 (dbx_symfile_init): Update.
4014 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4015 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4016 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4017
cb60f420
TT
40182019-07-10 Tom Tromey <tromey@adacore.com>
4019
4020 * jit.c (jit_program_space_key): Change type. Move lower.
4021 (get_jit_program_space_data): Update.
4022 (jit_program_space_data_cleanup): Remove.
4023 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4024 Update.
4025 (struct jit_program_space_data): Add initializers.
4026
51df2ae3
TT
40272019-07-10 Tom Tromey <tromey@adacore.com>
4028
4029 * solib-darwin.c (struct darwin_info): Add initializers.
4030 (solib_darwin_pspace_data): Change type.
4031 (darwin_pspace_data_cleanup): Remove.
4032 (get_darwin_info, _initialize_darwin_solib): Update.
4033
18101a35
TT
40342019-07-10 Tom Tromey <tromey@adacore.com>
4035
4036 * remote-sim.c (struct sim_inferior_data): Add initializers,
4037 constructor, and destructor.
4038 (sim_inferior_data_key): Change type. Move lower.
4039 (check_for_duplicate_sim_descriptor): Update.
4040 (get_sim_inferior_data): Use new. Update.
4041 (~sim_inferior_data_cleanup): Rename from
4042 sim_inferior_data_cleanup. Simplify.
4043 (gdbsim_close_inferior, simulator_command)
4044 (sim_command_completer, _initialize_remote_sim): Update.
4045 (next_pid, INITIAL_PID): Move earlier.
4046
05b08ac1
TT
40472019-07-10 Tom Tromey <tromey@adacore.com>
4048
4049 * python/python-internal.h (create_thread_object): Return
4050 gdbpy_ref.
4051 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4052 * python/py-inferior.c (struct threadlist_entry): Add
4053 constructor.
4054 <thread_obj>: Now a gdbpy_ref.
4055 (thread_to_thread_object): Update.
4056 (add_thread_object): Use new.
4057 (delete_thread_object): Use delete.
4058 (infpy_threads): Update.
4059 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4060 GIL.
4061
32372d80
TT
40622019-07-10 Tom Tromey <tromey@adacore.com>
4063
4064 * valops.c (value_cast): Specialize error message for Ada.
4065
5c458ae8
SM
40662019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4067
4068 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4069
4c462cb0
SM
40702019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4071
4072 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4073 bpstat_should_step): Return bool, adjust comments.
4074 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4075 bpstat_should_step): Likewise.
4076
89abbcc2
AH
40772019-07-10 Alan Hayward <alan.hayward@arm.com>
4078
4079 * features/Makefile: Use feature target descriptions for Arm.
4080 * features/arm/arm-core.c: Generate new file.
4081 * features/arm/arm-fpa.c: Likewise.
4082 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4083 * features/arm/arm-m-profile.c: Likewise.
4084 * features/arm/arm-vfpv2.c: Likewise.
4085 * features/arm/arm-vfpv3.c: Likewise.
4086 * features/arm/xscale-iwmmxt.c: Likewise.
4087 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4088
166a82be
AH
40892019-07-10 Alan Hayward <alan.hayward@arm.com>
4090
4091 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4092 ptrace earlier.
4093
9fb4c7e9
AH
40942019-07-10 Alan Hayward <alan.hayward@arm.com>
4095
4096 * features/aarch64-pauth.c: Regenerate.
4097
e2d0f980
SM
40982019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4099
4100 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4101 bool.
4102 (bpstat_what): Use false instead of 0.
4103
a38118e5
PA
41042019-07-09 Pedro Alves <palves@redhat.com>
4105
4106 * break-catch-throw.c (is_exception_catchpoint): New.
4107 * breakpoint.c (print_one_breakpoint_location): New parameter
4108 'raw_loc'. Handle it. Use
4109 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4110 looking at the breakpoint's type.
4111 (print_one_breakpoint): If handling "maint info breakpoints", also
4112 print locations of exception catchpoints.
4113 * breakpoint.h (is_exception_catchpoint): Declare.
4114
cb1e4e32
PA
41152019-07-09 Pedro Alves <palves@redhat.com>
4116
4117 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4118 "addr" field.
4119 (allocate_location_exception_catchpoint): New.
4120 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4121 (initialize_throw_catchpoint_ops): Install
4122 allocate_location_exception_catchpoint as allocate_location
4123 method.
4124 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4125 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4126 bp_loc_other.
4127 (breakpoint_address_is_meaningful): Delete.
4128 (bl_address_is_meaningful): New.
4129 (breakpoint_locations_match): Adjust comment.
4130 (bp_location_from_bp_type): New, factored out of...
4131 (bp_location::bp_location(breakpoint *)): ... this.
4132 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4133 factored out of...
4134 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
4135 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4136 breakpoint_address_is_meaningful.
4137 (bp_locations_compare): Adjust comment.
4138 (update_global_location_list): Use bl_address_is_meaningful
4139 instead of breakpoint_address_is_meaningful.
4140 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4141 explicit.
4142 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4143 * python/py-breakpoint.c (bppy_get_location): No longer check
4144 whether location is null.
4145
b58a68fe
PA
41462019-07-09 Pedro Alves <palves@redhat.com>
4147
4148 PR c++/15468
4149 * breakpoint.c (print_one_breakpoint_location): Remove
4150 single-location assert.
4151
268a13a5
TT
41522019-07-09 Tom Tromey <tom@tromey.com>
4153
4154 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4155 * configure: Rebuild.
4156 * configure.ac: Change common to gdbsupport.
4157 * gdbsupport: Rename from common.
4158 * acinclude.m4: Change common to gdbsupport.
4159 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4160 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4161 gdbsupport.
4162 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4163 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4164 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4165 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4166 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4167 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4168 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4169 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4170 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4171 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4172 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4173 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4174 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4175 coff-pe-read.c, command.h, compile/compile-c-support.c,
4176 compile/compile-c.h, compile/compile-cplus-symbols.c,
4177 compile/compile-cplus-types.c, compile/compile-cplus.h,
4178 compile/compile-loc2c.c, compile/compile.c, completer.c,
4179 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4180 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4181 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4182 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4183 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4184 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4185 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4186 features/aarch64-core.c, features/aarch64-fpu.c,
4187 features/aarch64-pauth.c, features/aarch64-sve.c,
4188 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4189 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4190 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4191 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4192 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4193 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4194 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4195 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4196 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4197 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4198 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4199 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4200 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4201 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4202 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4203 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4204 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4205 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4206 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4207 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4208 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4209 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4210 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4211 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4212 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4213 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4214 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4215 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4216 minsyms.c, mips-linux-tdep.c, namespace.h,
4217 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4218 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4219 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4220 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4221 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4222 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4223 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4224 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4225 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4226 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4227 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4228 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4229 procfs.c, producer.c, progspace.h, psymtab.h,
4230 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4231 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4232 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4233 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4234 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4235 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4236 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4237 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4238 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4239 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4240 target-memory.c, target.c, target.h, target/waitstatus.c,
4241 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4242 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4243 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4244 unittests/array-view-selftests.c,
4245 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4246 unittests/common-utils-selftests.c,
4247 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4248 unittests/format_pieces-selftests.c,
4249 unittests/function-view-selftests.c,
4250 unittests/lookup_name_info-selftests.c,
4251 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4252 unittests/mkdir-recursive-selftests.c,
4253 unittests/observable-selftests.c,
4254 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4255 unittests/parse-connection-spec-selftests.c,
4256 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4257 unittests/scoped_fd-selftests.c,
4258 unittests/scoped_mmap-selftests.c,
4259 unittests/scoped_restore-selftests.c,
4260 unittests/string_view-selftests.c, unittests/style-selftests.c,
4261 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4262 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4263 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4264 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4265 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4266 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4267
5b0e2db4
AB
42682019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4269
4270 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4271 bool value.
4272 (decode_digits_ordinary): Set explicit_line field in sal.
4273 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4274 symtab_and_line that was set on an explicit line number in
4275 assembler code. Do always update the recorded symtab and line if
4276 we do skip the prologue.
4277
0ba852ab
AB
42782019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4279
4280 * breakpoint.c (set_breakpoint_location_function): Remove
4281 explicit_loc parameter.
4282 (momentary_breakpoint_from_master): Update call to
4283 set_breakpoint_location_function.
4284 (add_location_to_breakpoint): Likewise.
4285
b3a7d171
AB
42862019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4287
4288 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4289 required features based on default bfd type when no specific bfd
4290 is present.
4291
1f6f6e21
PW
42922019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4293
4294 * NEWS: Mention that GDB printf and eval commands can now print
4295 C-style and Ada-style convenience var strings without
4296 calling the inferior.
4297 * printcmd.c (printf_c_string): Locally print GDB internal var
4298 instead of transiting via the inferior.
4299 (printf_wide_c_string): Likewise.
4300
43012019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
4302
4303 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4304
0598af48
TT
43052019-07-04 Tom Tromey <tom@tromey.com>
4306
4307 PR tui/24724:
4308 * tui/tui-winsource.c (tui_clear_source_content): Update.
4309 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4310 (tui_update_breakpoint_info): Update.
4311 (tui_set_exec_info_content): Update.
4312 * tui/tui-source.c (tui_set_source_content_nil): Update.
4313 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4314 has_break.
4315 * tui/tui-data.h (enum tui_bp_flag): New.
4316 (tui_bp_flags): New enum flags type.
4317 (struct tui_source_element) <break_mode>: Change type. Rename
4318 from has_break.
4319 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4320 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4321 constants.
4322 * tui/tui-winsource.h: Fix comment.
4323
350fab54
AH
43242019-07-04 Alan Hayward <alan.hayward@arm.com>
4325
4326 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4327 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4328 (store_fpregs_to_thread)
4329 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4330 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4331 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4332 (IWMMXT_REGS_SIZE): Add define.
4333 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4334 (fetch_vfp_regs, store_vfp_regs)
4335 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4336 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4337
f0452268
AH
43382019-07-04 Alan Hayward <alan.hayward@arm.com>
4339
4340 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4341 defines.
4342 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4343 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4344 (ARM_INT_REGISTER_SIZE): ...to this.
4345 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4346 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4347 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4348 (arm_linux_collect_gregset, supply_nwfpe_register)
4349 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4350 defines.
4351 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4352 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4353 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4354 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4355 (arm_return_in_memory, arm_store_return_value)
4356 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4357 (arm_record_ld_st_multiple): Likewise.
4358 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4359 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4360
e935475c
AH
43612019-07-04 Alan Hayward <alan.hayward@arm.com>
4362
4363 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4364 AARCH64_DISPLACED_MODIFIED_INSNS.
4365 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4366 (aarch64_displaced_step_copy_insn): Likewise.
4367 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4368 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4369 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4370 ARM_DISPLACED_MODIFIED_INSNS.
4371 * arm-tdep.c (arm_gdbarch_init): Likewise.
4372 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4373 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4374 (struct arm_displaced_step_closure): Use
4375 ARM_DISPLACED_MODIFIED_INSNS.
4376
df0bb381
AH
43772019-07-04 Alan Hayward <alan.hayward@arm.com>
4378
4379 * features/Makefile: Remove unused xml files.
4380 * features/aarch64.xml: Remove.
4381 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4382 * features/i386/amd64-avx-avx512.xml: Remove.
4383 * features/i386/amd64-avx-linux.xml: Remove.
4384 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4385 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4386 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4387 * features/i386/amd64-avx-mpx.xml: Remove.
4388 * features/i386/amd64-avx.xml: Remove.
4389 * features/i386/amd64-linux.xml: Remove.
4390 * features/i386/amd64-mpx-linux.xml: Remove.
4391 * features/i386/amd64-mpx.xml: Remove.
4392 * features/i386/amd64.xml: Remove.
4393 * features/i386/i386-avx-avx512-linux.xml: Remove.
4394 * features/i386/i386-avx-avx512.xml: Remove.
4395 * features/i386/i386-avx-linux.xml: Remove.
4396 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4397 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4398 * features/i386/i386-avx-mpx-linux.xml: Remove.
4399 * features/i386/i386-avx-mpx.xml: Remove.
4400 * features/i386/i386-avx.xml: Remove.
4401 * features/i386/i386-linux.xml: Remove.
4402 * features/i386/i386-mmx-linux.xml: Remove.
4403 * features/i386/i386-mmx.xml: Remove.
4404 * features/i386/i386-mpx-linux.xml: Remove.
4405 * features/i386/i386-mpx.xml: Remove.
4406 * features/i386/i386.xml: Remove.
4407 * features/i386/x32-avx-avx512-linux.xml: Remove.
4408 * features/i386/x32-avx-linux.xml: Remove.
4409 * features/i386/x32-linux.xml: Remove.
4410
edd6266a
AH
44112019-07-04 Alan Hayward <alan.hayward@arm.com>
4412
4413 * regformats/aarch64.dat: Remove.
4414 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4415 * regformats/i386/amd64-avx-linux.dat: Remove.
4416 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4417 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4418 * regformats/i386/amd64-linux.dat: Remove.
4419 * regformats/i386/amd64-mpx-linux.dat: Remove.
4420 * regformats/i386/amd64.dat: Remove.
4421 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4422 * regformats/i386/i386-avx-linux.dat: Remove.
4423 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4424 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4425 * regformats/i386/i386-linux.dat: Remove.
4426 * regformats/i386/i386-mmx-linux.dat: Remove.
4427 * regformats/i386/i386-mpx-linux.dat: Remove.
4428 * regformats/i386/i386.dat: Remove.
4429 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4430 * regformats/i386/x32-avx-linux.dat: Remove.
4431 * regformats/i386/x32-linux.dat: Remove.
4432
2b40fda7
AH
44332019-07-04 Alan Hayward <alan.hayward@arm.com>
4434
4435 * aarch64-tdep.c: Remove xml self tests.
4436 * amd64-linux-tdep.c: Likewise.
4437 * amd64-tdep.c: Likewise.
4438 * i386-linux-tdep.c: Likewise.
4439 * i386-tdep.c: Likewise.
4440
5f4ba3e7
PA
44412019-07-03 Pedro Alves <palves@redhat.com>
4442
4443 PR cli/24732
4444 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4445 (pipe_cmd_option_defs): New.
4446 (make_pipe_cmd_options_def_group): New.
4447 (pipe_command): Use gdb::option::process_options.
4448 (pipe_command_completer): New function.
4449 (_initialize_cli_cmds): Install completer for "pipe" command.
4450
3d9be6f5
PA
44512019-07-03 Pedro Alves <palves@redhat.com>
4452
4453 * cli/cli-option.c (union option_value) <string>: New field.
4454 (struct option_def_and_value): Add ctor, move ctor, dtor and
4455 use DISABLE_COPY_AND_ASSIGN.
4456 (option_def_and_value::clear_value): New.
4457 (parse_option, save_option_value_in_ctx, get_val_type_str)
4458 (add_setshow_cmds_for_options): Handle var_string.
4459 * cli-option.h (union option_def::var_address) <string>: New
4460 field.
4461 (struct string_option_def): New.
4462 * maint-test-options.c (struct test_options_opts): Add default
4463 ctor and use DISABLE_COPY_AND_ASSIGN.
4464 <string_opt>: New field.
4465 (test_options_opts::~test_options_opts): New.
4466 (test_options_opts::dump): Also dump "-string".
4467 (test_options_option_defs): Install "string.
4468
41fc454c
PA
44692019-07-03 Pedro Alves <palves@redhat.com>
4470
4471 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4472 option_value with a null enumeration.
4473 (complete_options): Save the option values in the context.
4474 (save_option_value_in_ctx): New, factored out from ...
4475 (process_options): ... here.
4476 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4477 of the function.
4478 * maint-test-options.c (test_options_opts::dump): New, factored
4479 out from ...
4480 (maintenance_test_options_command_mode): ... here.
4481 (maintenance_test_options_command_completion_result): Delete.
4482 (maintenance_test_options_command_completion_text): Update
4483 comment.
4484 (maintenance_show_test_options_completion_result): Change
4485 prototype. Just print
4486 maintenance_test_options_command_completion_text.
4487 (save_completion_result): New.
4488 (maintenance_test_options_completer_mode): Pass options context to
4489 complete_options, and then save a dump.
4490 (_initialize_maint_test_options): Use add_cmd to install "maint
4491 show test-options-completion-result".
4492
fdbc9870
PA
44932019-07-03 Pedro Alves <palves@redhat.com>
4494
4495 * NEWS (New commands): Mention "with" and "maint with".
4496 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4497 (with_command, with_command_completer): New.
4498 (pipe_command): Adjust to new repeat_previous
4499 interface.
4500 (_initialize_cli_cmds): Install the "with" command and its "w"
4501 alias.
4502 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4503 declarations.
4504 * cli/cli-setshow.c (parse_cli_var_uinteger)
4505 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4506 argument strings for all var_types.
4507 (get_setshow_command_value_string): New, factored out from ...
4508 (do_show_command): ... this.
4509 * cli/cli-setshow.h: Include <string>.
4510 (get_setshow_command_value_string): Declare.
4511 * command.h (repeat_previous): Now returns const char *. Adjust
4512 comment.
4513 * maint.c: Include "cli/cli-cmds.h".
4514 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4515 (_initialize_maint_cmds): Register the "maintenance with" command.
4516 * top.c (repeat_previous): Move bits from pipe_command here:
4517 Return the saved command line, if any; error out if there's no
4518 command to relaunch.
4519
c6ac8931
PA
45202019-07-03 Pedro Alves <palves@redhat.com>
4521
4522 * NEWS (New commands): Mention "maint set/show test-settings"
4523 instead of "maint test-settings".
4524 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4525 (maintenance_test_settings_set_list): Rename to ...
4526 (maintenance_set_test_settings_list): ... this.
4527 (maintenance_test_settings_show_list): Rename to ...
4528 (maintenance_show_test_settings_list): ... this.
4529 (maintenance_test_settings_cmd): Delete.
4530 (maintenance_test_settings_set_cmd): ...
4531 (maintenance_set_test_settings_cmd): ... this.
4532 (maintenance_test_settings_show_cmd): ...
4533 (maintenance_show_test_settings_cmd): ... this.
4534 (maintenance_test_settings_show_value_cmd):
4535 (maintenance_show_test_settings_value_cmd): ... this.
4536 (_initialize_maint_test_settings): No longer install the "maint
4537 test-settings" prefix command. Rename "maint test-settings set"
4538 to "maint set test-settings", and "maint test-settings show" to
4539 "maint show test-settings". Adjust all subcommands.
4540
d1fcf2fd
PA
45412019-07-03 Pedro Alves <palves@redhat.com>
4542
4543 * maint-test-settings.c: Fix file's intro comment. Replace all
4544 references to "test-options" with references to "test-settings",
4545 in comments.
4546
970f9d09
PA
45472019-07-03 Pedro Alves <palves@redhat.com>
4548
4549 * maint-test-settings.c (maintenance_test_settings_xxx)
4550 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4551 New.
4552 (maintenance_test_settings_enums): Use them.
4553 (maintenance_test_settings_enum): Default to
4554 maintenance_test_settings_xxx.
4555 (_initialize_maint_test_settings): Initialize
4556 MAINTENANCE_TEST_SETTINGS_FILENAME.
4557
f3869b1a
SM
45582019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4559
4560 * breakpoint.h (remove_breakpoints_inf): Change return type to
4561 void, move function documentation here.
4562 * breakpoint.c (remove_breakpoints_inf): Change return type to
4563 void, move function documentation to header.
4564
54d66006
PA
45652019-07-02 Pedro Alves <palves@redhat.com>
4566
4567 * NEWS (Completion improvements): Mention "info threads".
4568 * thread.c (struct info_threads_opts, info_threads_option_defs)
4569 (make_info_threads_options_def_group): New.
4570 (info_threads_command): Use gdb::option::process_options.
4571 (info_threads_command_completer): New.
4572 (_initialize_thread): Use gdb::option::build_help to build the
4573 help text for "info threads".
4574
854f6088
SM
45752019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4576
4577 * defs.h (generic_load): Move from here...
4578 * symfile.h (generic_load): ... to here. Rename name parameter
4579 to args.
4580 * symfile.c (generic_load): Add comment.
4581
54ee4252
TT
45822019-07-01 Tom Tromey <tromey@adacore.com>
4583
4584 * dwarf2read.c
4585 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4586 declaration of without_params. Fix formatting.
4587
65392b3e
TT
45882019-07-01 Tom Tromey <tromey@adacore.com>
4589
4590 * ada-exp.y (find_primitive_type): Update.
4591 * ada-lang.h (ada_lookup_symbol): Update.
4592 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4593 parameter.
4594 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4595
7d7571f0
SDJ
45962019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4597
4598 PR breakpoints/24541
4599 * gdbarch.c: Regenerate.
4600 * gdbarch.h: Regenerate.
4601 * gdbarch.sh: Add 'stap_adjust_register'.
4602 * i386-tdep.c: Include '<unordered_set>'.
4603 (i386_stap_adjust_register): New function.
4604 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4605 * stap-probe.c (stap_parse_register_operand): Call
4606 'gdbarch_stap_adjust_register'.
4607
5af5392a
SDJ
46082019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4609
4610 PR python/24742
4611 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4612 * python/python.c (do_start_initialization): Use 'xmalloc'
4613 instead of 'PyMem_Malloc'.
4614
10d06d82
TT
46152019-06-28 Tom Tromey <tromey@adacore.com>
4616
4617 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4618 for Ada.
4619
1b7f24cd
TT
46202019-06-27 Tom Tromey <tromey@adacore.com>
4621
4622 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4623 objfile_key.
4624 (arm_find_mapping_symbol, arm_record_special_symbol)
4625 (_initialize_arm_tdep): Update.
4626 (arm_objfile_data_free): Remove.
4627
3d507ff2
TT
46282019-06-27 Tom Tromey <tromey@adacore.com>
4629
4630 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4631 to cp_print_static_field.
4632
762c164d
TT
46332019-06-26 Tom Tromey <tromey@adacore.com>
4634
4635 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4636 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4637 declare.
4638
aa2f9bcf
AH
46392019-06-26 Alan Hayward <alan.hayward@arm.com>
4640
4641 * features/aarch64-core.c (create_feature_aarch64_core):
4642 Regenerate.
4643 * features/aarch64-core.xml: Add cpsr flags.
4644
3426ae57
AH
46452019-06-26 Alan Hayward <alan.hayward@arm.com>
4646
4647 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4648 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4649
4838e44c
SM
46502019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4651
4652 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4653 field.
4654 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4655 use.
4656 (arm_record_special_symbol): Don't insert new symbol in sorted
4657 position, push it at the end.
4658
54cc7474
SM
46592019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4660
4661 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4662 (arm_mapping_symbol_s): Remove.
4663 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4664 (arm_mapping_symbol_vec): New typedef.
4665 (struct arm_per_objfile): Add constructor.
4666 <section_maps>: Change type to
4667 std::unique_ptr<arm_mapping_symbol_vec[]>.
4668 (arm_compare_mapping_symbols): Remove.
4669 (arm_find_mapping_symbol): Adjust to section_maps type change.
4670 (arm_objfile_data_free): Call delete on arm_per_objfile.
4671 (arm_record_special_symbol): Adjust to section_maps type change.
4672 Allocate arm_per_objfile with new.
4673
b65b566c
PW
46742019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4675
4676 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4677 with the command prefix.
4678
c2fc64f5
TT
46792019-06-25 Tom Tromey <tom@tromey.com>
4680
4681 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4682 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4683
fb54fa76
TT
46842019-06-25 Tom Tromey <tom@tromey.com>
4685
4686 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4687 type.
4688 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4689 protected.
4690
f7952c57
TT
46912019-06-25 Tom Tromey <tom@tromey.com>
4692
4693 * tui/tui-winsource.c
4694 (tui_source_window_base::set_is_exec_point_at): Add check against
4695 LOA_ADDRESS.
4696
17568d78
TT
46972019-06-25 Tom Tromey <tom@tromey.com>
4698
4699 * tui/tui-source.c (tui_set_source_content): Don't check before
4700 xfree.
4701 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4702
53e7cdba
TT
47032019-06-25 Tom Tromey <tom@tromey.com>
4704
4705 * tui/tui-winsource.h (tui_update_source_window_as_is)
4706 (tui_alloc_source_buffer, tui_line_is_displayed)
4707 (tui_addr_is_displayed): Change type of win_info.
4708 * tui/tui-winsource.c (tui_update_source_window_as_is)
4709 (tui_clear_source_content, tui_show_source_line)
4710 (tui_show_source_content, tui_source_window_base::refill)
4711 (tui_source_window_base::set_is_exec_point_at)
4712 (tui_source_window_base::set_is_exec_point_at)
4713 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4714 (tui_alloc_source_buffer, tui_line_is_displayed)
4715 (tui_addr_is_displayed): Change type of win_info. Update.
4716 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4717 (tui_source_window_base::do_make_visible_with_new_height):
4718 Update.
4719 * tui/tui-source.c (tui_set_source_content)
4720 (tui_set_source_content_nil)
4721 (tui_source_window::do_scroll_vertical): Update.
4722 * tui/tui-layout.c (show_layout): Update.
4723 * tui/tui-disasm.c (tui_set_disassem_content)
4724 (tui_disasm_window::do_scroll_vertical): Update.
4725 * tui/tui-data.h (tui_win_content): Remove.
4726 (struct tui_gen_win_info) <content, content_size>: Remove.
4727 (struct tui_source_element): Add initializers and destructor.
4728 (union tui_which_element, struct tui_win_element): Remove.
4729 (struct tui_source_window_base) <content>: New field.
4730 (struct tui_data_window): Remove destructor.
4731 (tui_alloc_content, tui_free_win_content)
4732 (tui_free_all_source_wins_content): Don't declare.
4733 * tui/tui-data.c (tui_initialize_static_data): Update.
4734 (init_content_element, tui_alloc_content): Remove.
4735 (~tui_gen_win_info): Update.
4736 (~tui_data_window, tui_free_all_source_wins_content)
4737 (tui_free_win_content, free_content, free_content_elements):
4738 Remove.
4739
7908abbf
TT
47402019-06-25 Tom Tromey <tom@tromey.com>
4741
4742 * tui/tui-winsource.h (tui_clear_source_content)
4743 (tui_erase_source_content, tui_show_source_content): Change type
4744 of win_info.
4745 * tui/tui-winsource.c (tui_clear_source_content)
4746 (tui_erase_source_content, tui_show_source_content): Change type
4747 of win_info.
4748 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4749 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4750 win_info.
4751 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4752 win_info.
4753 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4754
02c28df0
TT
47552019-06-25 Tom Tromey <tom@tromey.com>
4756
4757 * tui/tui-winsource.c (tui_clear_source_content)
4758 (tui_source_window_base::set_is_exec_point_at): Update.
4759 * tui/tui-source.c (tui_set_source_content_nil): Update.
4760 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4761 a bool.
4762 * tui/tui-data.c (init_content_element): Update.
4763
6658b1bf
TT
47642019-06-25 Tom Tromey <tom@tromey.com>
4765
4766 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4767 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4768 * tui/tui-layout.c (init_and_make_win): Update.
4769 * tui/tui.h (enum tui_win_type): Update.
4770 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4771 tui_win_is_auxillary.
4772 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4773 tui_win_is_auxillary.
4774
21e1c91e
TT
47752019-06-25 Tom Tromey <tom@tromey.com>
4776
4777 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4778 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4779 (tui_delete_data_content_windows, tui_display_all_data)
4780 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4781 Update.
4782 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4783 * tui/tui-regs.c (tui_last_regs_line_no)
4784 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4785 (tui_show_registers): Update.
4786 (tui_show_register_group): Return void. Update.
4787 (tui_display_registers_from, tui_display_reg_element_at_line)
4788 (tui_display_registers_from_line, tui_check_register_values):
4789 Update.
4790 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4791 member.
4792 (struct tui_data_window) <regs_content>: Now a std::vector.
4793 <regs_content_count>: Remove.
4794 (tui_add_content_elements, tui_free_data_content): Don't declare.
4795 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4796 (init_content_element): Remove DATA_WIN case. Add assert.
4797 (tui_add_content_elements): Remove.
4798 (tui_data_window): Update.
4799 (tui_free_data_content): Remove.
4800 (free_content_elements): Remove DATA_WIN case.
4801
115ac53b
TT
48022019-06-25 Tom Tromey <tom@tromey.com>
4803
4804 * tui/tui-data.c (tui_data_item_window): Update.
4805 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4806 * tui/tui-windata.c (tui_display_all_data)
4807 (tui_display_data_from_line): Update.
4808 (tui_check_data_values): Remove.
4809 * tui/tui-regs.c (tui_show_register_group)
4810 (tui_display_reg_element_at_line): Update.
4811 * tui/tui-hooks.c (tui_register_changed)
4812 (tui_refresh_frame_and_register_information): Call
4813 tui_check_register_values.
4814 * tui/tui-data.h (struct tui_data_window) <data_content,
4815 data_content_count, data_type>: Remove.
4816 (enum tui_data_type): Remove.
4817
4818 * tui/tui-data.c (tui_data_window::clear_detail)
4819 (~tui_data_window): Update.
4820
eaf9738b
TT
48212019-06-25 Tom Tromey <tom@tromey.com>
4822
4823 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4824 declare.
4825 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4826 Rename from tui_first_data_item_displayed. Update.
4827 (tui_data_window::refresh_all)
4828 (tui_data_window::do_scroll_vertical): Update.
4829 * tui/tui-data.h (struct tui_data_window)
4830 <first_data_item_displayed>: Declare new method.
4831
31ca4723
TT
48322019-06-25 Tom Tromey <tom@tromey.com>
4833
4834 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4835 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4836 contents...
4837 (tui_initialize_static_data): ...here.
4838
41bcff7f
TT
48392019-06-25 Tom Tromey <tom@tromey.com>
4840
4841 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4842 (tui_display_registers_from, tui_check_register_values): Update.
4843 (tui_display_register): Remove win_info parameter; update.
4844 (tui_get_register): Change type of parameters.
4845 * tui/tui-data.h (struct tui_data_element): Remove.
4846 (union tui_which_element) <data>: Remove.
4847 <data_window>: Change type.
4848 (struct tui_data_item_window): New.
4849 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4850 case. Add assert.
4851 (~tui_data_item_window): New destructor.
4852 (free_content_elements): Remove DATA_ITEM_WIN case.
4853
d2802c33
TT
48542019-06-25 Tom Tromey <tom@tromey.com>
4855
4856 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4857 Remove.
4858
dd835f8b
TT
48592019-06-25 Tom Tromey <tom@tromey.com>
4860
4861 * tui/tui-data.h (struct tui_command_element): Remove.
4862 (union tui_which_element) <command>: Remove.
4863 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4864 assert.
4865 (free_content_elements): Remove CMD_WIN case.
4866
bd7db367
TT
48672019-06-25 Tom Tromey <tom@tromey.com>
4868
4869 * tui/tui-layout.c (tui_set_layout): Update.
4870 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4871 * tui/tui-data.c (layout_def): Update.
4872
3add462f
TT
48732019-06-25 Tom Tromey <tom@tromey.com>
4874
4875 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4876 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4877 (tui_source_window_base::set_new_height): Update.
4878 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4879 Update.
4880 (tui_set_locator_fullname, tui_set_locator_info)
4881 (tui_show_frame_info): Update.
4882 * tui/tui-source.c (tui_set_source_content)
4883 (tui_source_is_displayed): Update.
4884 * tui/tui-layout.c (show_source_disasm_command, show_data)
4885 (show_source_or_disasm_and_command): Update.
4886 * tui/tui-disasm.c (tui_set_disassem_content)
4887 (tui_get_begin_asm_address): Update.
4888 * tui/tui-data.h (struct tui_locator_element): Remove.
4889 (union tui_which_element) <locator>: Remove.
4890 (struct tui_locator_window): New.
4891 (tui_locator_win_info_ptr): Change return type.
4892 * tui/tui-data.c (_locator): Change type.
4893 (tui_locator_win_info_ptr): Change return type.
4894 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4895 (tui_alloc_content): Add assert.
4896
489e9d8b
TT
48972019-06-25 Tom Tromey <tom@tromey.com>
4898
4899 * tui/tui-winsource.c
4900 (tui_exec_info_window::maybe_allocate_content): New method.
4901 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4902 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4903 (make_source_or_disasm_window): Add cast.
4904 * tui/tui-data.h (union tui_which_element) <simple_string>:
4905 Remove.
4906 (struct tui_source_info): New.
4907 (struct tui_source_window_base) <execution_info>: Change type.
4908 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4909 case, and add assert.
4910 (tui_alloc_content): Add assert.
4911
c3fabb7d
TT
49122019-06-25 Tom Tromey <tom@tromey.com>
4913
4914 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4915 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4916 * tui/tui-data.c (tui_alloc_win_info): Remove.
4917
bbc228ee
TT
49182019-06-25 Tom Tromey <tom@tromey.com>
4919
4920 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4921 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4922 can_highlight.
4923
5fcee43a
TT
49242019-06-25 Tom Tromey <tom@tromey.com>
4925
4926 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4927 make_visible_with_new_height method.
4928 (tui_win_info::make_visible_with_new_height): New method.
4929 (tui_source_window_base::do_make_visible_with_new_height)
4930 (tui_data_window::do_make_visible_with_new_height)
4931 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4932 (make_visible_with_new_height): Remove.
4933 (tui_resize_all, tui_adjust_win_heights): Use
4934 make_visible_with_new_height method.
4935 * tui/tui-data.h (struct tui_win_info)
4936 <do_make_visible_with_new_height, make_visible_with_new_height>:
4937 New methods.
4938 (struct tui_source_window_base, struct tui_data_window)
4939 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4940 methods.
4941
d83f1fe6
TT
49422019-06-25 Tom Tromey <tom@tromey.com>
4943
4944 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4945 method.
4946 (update_tab_width): Call update_tab_width method.
4947 * tui/tui-data.h (struct tui_win_info)
4948 (struct tui_source_window_base) <update_tab_width>: New methods.
4949
17374de4
TT
49502019-06-25 Tom Tromey <tom@tromey.com>
4951
4952 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4953 parameter.
4954 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4955 parameter.
4956 (tui_gen_win_info::make_visible): Update.
4957 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4958 parameter.
4959 * tui/tui-data.h (enum tui_box): New enum.
4960 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4961
f936bca2
TT
49622019-06-25 Tom Tromey <tom@tromey.com>
4963
4964 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4965 init_and_make_win for EXEC_INFO_WIN.
4966 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4967 longer inline.
4968 (struct tui_win_info) <~tui_win_info>: Inline.
4969 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4970 Don't declare.
4971 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4972 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4973 Remove.
4974 (tui_initialize_static_data): Update.
4975 (~tui_gen_win_info): Handle more cleanup here.
4976 (~tui_source_window_base): Delete "execution_info".
4977 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4978
d6ba6a11
TT
49792019-06-25 Tom Tromey <tom@tromey.com>
4980
4981 * tui/tui-layout.c (make_command_window): Don't set
4982 can_highlight.
4983 (show_source_disasm_command): Call the reset method.
4984 (show_data): Don't set can_highlight. Call the reset method.
4985 (tui_gen_win_info::reset): Rename from init_gen_win_info
4986 (init_and_make_win): Simplify. Return tui_gen_win_info.
4987 (show_source_or_disasm_and_command): Call the reset method.
4988 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4989 (struct tui_cmd_window): Set can_highlight.
4990
48a3bd16
TT
49912019-06-25 Tom Tromey <tom@tromey.com>
4992
4993 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4994 from make_visible.
4995 (tui_make_visible, tui_make_invisible): Rewrite.
4996 (tui_win_info::make_visible): Remove.
4997 (tui_source_window_base::make_visible): Update.
4998 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4999 method. Moved from...
5000 (struct tui_win_info) <make_visible>: ...here.
5001
c3bd716f
TT
50022019-06-25 Tom Tromey <tom@tromey.com>
5003
5004 * tui/tui-winsource.c
5005 (tui_source_window_base::do_scroll_horizontal): Remove direction
5006 parameter.
5007 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5008 direction parameter.
5009 * tui/tui-win.c (tui_win_info::forward_scroll)
5010 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5011 (tui_win_info::right_scroll): Update.
5012 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5013 direction parameter.
5014 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5015 direction parameter.
5016 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5017 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5018 Remove direction parameter.
5019 (struct tui_source_window_base, struct tui_source_window)
5020 (struct tui_disasm_window, struct tui_data_window)
5021 (struct tui_cmd_window): Update.
5022
21c32dca
TT
50232019-06-25 Tom Tromey <tom@tromey.com>
5024
5025 * tui/tui-winsource.h (tui_set_exec_info_content)
5026 (tui_show_exec_info_content, tui_erase_exec_info_content)
5027 (tui_clear_exec_info_content, tui_update_exec_info): Change
5028 argument to tui_source_window_base.
5029 * tui/tui-winsource.c (tui_set_exec_info_content)
5030 (tui_show_exec_info_content, tui_erase_exec_info_content)
5031 (tui_clear_exec_info_content, tui_update_exec_info): Change
5032 argument to tui_source_window_base.
5033
73fbdc65
TT
50342019-06-25 Tom Tromey <tom@tromey.com>
5035
5036 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5037 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5038
33325343
TT
50392019-06-25 Tom Tromey <tom@tromey.com>
5040
5041 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5042 check.
5043
29d2c474
TT
50442019-06-25 Tom Tromey <tom@tromey.com>
5045
5046 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5047 type to void.
5048 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5049 type to void.
5050 * tui/tui-source.c (tui_set_source_content): Update.
5051 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5052
152f3f4b
TT
50532019-06-25 Tom Tromey <tom@tromey.com>
5054
5055 * tui/tui-win.c (window_name_completer, tui_set_focus)
5056 (tui_all_windows_info): Use name method.
5057 * tui/tui-data.h (struct tui_gen_win_info)
5058 (struct tui_source_window, struct tui_disasm_window)
5059 (struct tui_data_window, struct tui_cmd_window) <name>: New
5060 method.
5061 (tui_win_name): Don't declare.
5062 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5063 (tui_win_name): Remove.
5064
be4da588
TT
50652019-06-25 Tom Tromey <tom@tromey.com>
5066
5067 * tui/tui-winsource.h (tui_update_source_window)
5068 (tui_update_source_window_as_is): Change parameter type.
5069 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5070 to be a tui_source_window_base.
5071 (tui_update_source_window_as_is): Likewise.
5072 * tui/tui-win.c (make_visible_with_new_height): Update.
5073
5b81daba
TT
50742019-06-25 Tom Tromey <tom@tromey.com>
5075
5076 * tui/tui-winsource.c (tui_erase_source_content)
5077 (tui_show_source_content, tui_show_exec_info_content)
5078 (tui_erase_exec_info_content): Use refresh_window method.
5079 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5080 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5081 from tui_refresh_win.
5082 (tui_data_window::refresh_window): New method.
5083 (tui_win_info::refresh, tui_source_window_base::refresh)
5084 (tui_refresh_all): Use refresh_window method.
5085 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5086 method.
5087 * tui/tui-regs.c (tui_display_register): Call refresh_window
5088 method.
5089 * tui/tui-layout.c (show_source_disasm_command)
5090 (show_source_or_disasm_and_command): Call refresh_window method.
5091 * tui/tui-data.h (struct tui_gen_win_info)
5092 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5093 New method.
5094
cb2ce893
TT
50952019-06-25 Tom Tromey <tom@tromey.com>
5096
5097 * tui/tui.c (tui_rl_other_window, tui_enable)
5098 (tui_is_window_visible, tui_get_command_dimension): Update.
5099 * tui/tui-winsource.c (tui_update_source_window_as_is)
5100 (tui_clear_source_content, tui_erase_source_content)
5101 (tui_show_source_line, tui_source_window_base::refill)
5102 (tui_source_window_base::do_scroll_horizontal)
5103 (tui_source_window_base::set_is_exec_point_at)
5104 (tui_update_breakpoint_info, tui_set_exec_info_content)
5105 (tui_alloc_source_buffer, tui_line_is_displayed)
5106 (tui_addr_is_displayed): Update.
5107 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5108 (tui_check_and_display_highlight_if_needed)
5109 (tui_win_info::make_visible, tui_win_info::refresh)
5110 (tui_refresh_all): Update.
5111 * tui/tui-windata.c (tui_first_data_item_displayed)
5112 (tui_delete_data_content_windows, tui_erase_data_content)
5113 (tui_display_all_data, tui_data_window::refresh_all)
5114 (tui_check_data_values): Update.
5115 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5116 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5117 (tui_win_info::backward_scroll, tui_refresh_all_win)
5118 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5119 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5120 (tui_source_window_base::set_new_height)
5121 (tui_data_window::set_new_height)
5122 (make_invisible_and_set_new_height)
5123 (make_visible_with_new_height, new_height_ok)
5124 (parse_scrolling_args): Update.
5125 * tui/tui-stack.c (tui_show_frame_info): Update.
5126 * tui/tui-source.c (tui_set_source_content)
5127 (tui_set_source_content_nil, tui_source_is_displayed)
5128 (tui_source_window::do_scroll_vertical): Update.
5129 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5130 (tui_display_registers_from, tui_display_reg_element_at_line)
5131 (tui_check_register_values, tui_reg_command): Update.
5132 * tui/tui-layout.c (tui_default_win_height)
5133 (show_source_disasm_command, show_data, init_and_make_win)
5134 (show_source_or_disasm_and_command): Update.
5135 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5136 (tui_redisplay_readline, tui_mld_flush)
5137 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5138 (tui_getc): Update.
5139 * tui/tui-disasm.c (tui_set_disassem_content)
5140 (tui_disasm_window::do_scroll_vertical): Update.
5141 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5142 Now virtual.
5143 (struct tui_win_info): Derive from tui_gen_win_info.
5144 <~tui_win_info>: Mark as override.
5145 <generic>: Remove member.
5146 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5147 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5148 (~tui_data_window, ~tui_win_info)
5149 (tui_free_all_source_wins_content): Update.
5150 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5151
ab313b35
TT
51522019-06-25 Tom Tromey <tom@tromey.com>
5153
5154 * tui/tui-layout.c (init_and_make_win): Use new.
5155 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5156 destructor, initializers.
5157 (tui_alloc_generic_win_info): Don't declare.
5158 * tui/tui-data.c (_locator): Add argument to constructor.
5159 (source_win, disasm_win): New globals.
5160 (exec_info): Remove.
5161 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5162 Update.
5163 (tui_alloc_generic_win_info): Remove.
5164 (init_content_element): Use new.
5165 (tui_win_info::tui_win_info): Update.
5166 (free_content_elements) <case DATA_WIN>: Use delete.
5167
dc2c33e4
TT
51682019-06-25 Tom Tromey <tom@tromey.com>
5169
5170 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5171 * tui/tui-windata.c (tui_first_data_item_displayed)
5172 (tui_delete_data_content_windows): Update.
5173 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5174 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5175 (tui_display_registers_from, tui_check_register_values): Update.
5176 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5177 pointer.
5178 * tui/tui-data.c (init_content_element): Update. Allocate the new
5179 window.
5180 (tui_free_data_content): Update.
5181 (free_content_elements) <case DATA_WIN>: Free the window.
5182
214a5cbe
TT
51832019-06-25 Tom Tromey <tom@tromey.com>
5184
5185 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5186 Update.
5187 * tui/tui-layout.c (make_command_window)
5188 (show_source_disasm_command, show_data, init_and_make_win)
5189 (show_source_or_disasm_and_command): Update.
5190 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5191 method.
5192 <can_highight, is_highlighted>: Now bool.
5193 (tui_set_win_highlight): Don't declare.
5194 * tui/tui-data.c (tui_set_win_highlight): Remove.
5195
8e2daf15
TT
51962019-06-25 Tom Tromey <tom@tromey.com>
5197
5198 * tui/tui-wingeneral.c (make_visible): Remove check of window
5199 type.
5200
8903bd8a
TT
52012019-06-25 Tom Tromey <tom@tromey.com>
5202
5203 * tui/tui-win.c (tui_win_info::max_height)
5204 (tui_cmd_window::max_height): New methods.
5205 (new_height_ok): Call max_height.
5206 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5207 <max_height>: New method.
5208
3f02ce1e
TT
52092019-06-25 Tom Tromey <tom@tromey.com>
5210
5211 * tui/tui-win.c (tui_source_window_base::set_new_height)
5212 (tui_data_window::set_new_height): New methods.
5213 (make_invisible_and_set_new_height): Call set_new_height method.
5214 * tui/tui-data.h (struct tui_win_info)
5215 (struct tui_source_window_base, struct tui_data_window)
5216 <set_new_height>: New method.
5217
1825f487
TT
52182019-06-25 Tom Tromey <tom@tromey.com>
5219
5220 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5221 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5222 tui_refresh_data_win.
5223 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5224 method.
5225 (tui_refresh_all_win): Call the refresh_all method.
5226 (tui_set_focus): Likewise.
5227 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5228 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5229 Likewise.
5230
ad54d15b
TT
52312019-06-25 Tom Tromey <tom@tromey.com>
5232
5233 * tui/tui-winsource.h (tui_refill_source_window)
5234 (tui_set_is_exec_point_at): Don't declare.
5235 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5236 (tui_source_window_base::refill): Rename from
5237 tui_refill_source_window.
5238 (tui_source_window_base::do_scroll_horizontal): Update.
5239 (tui_source_window_base::set_is_exec_point_at): Rename from
5240 tui_set_is_exec_point_at.
5241 (tui_update_all_breakpoint_info): Update.
5242 * tui/tui-stack.c (tui_show_frame_info): Update.
5243 * tui/tui-layout.c (show_data): Add cast.
5244 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5245 * tui/tui-data.h (struct tui_source_window_base) <refill,
5246 set_is_exec_point_at>: New methods.
5247 (tui_source_windows, tui_add_to_source_windows): Update types.
5248 (tui_add_to_source_windows): Remove redundant declaration.
5249 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5250 (tui_source_windows): Change return type.
5251 (tui_clear_source_windows_detail): Update.
5252 (tui_add_to_source_windows): Change type of parameter.
5253 (tui_free_all_source_wins_content): Update.
5254
2042b506
TT
52552019-06-25 Tom Tromey <tom@tromey.com>
5256
5257 * tui/tui-wingeneral.c (tui_win_info::refresh)
5258 (tui_source_window_base::refresh): New methods.
5259 (tui_refresh_all): Call the refresh method.
5260 * tui/tui-data.h (struct tui_win_info)
5261 (struct tui_source_window_base) <refresh>: New method.
5262
56122977
TT
52632019-06-25 Tom Tromey <tom@tromey.com>
5264
5265 * tui/tui.h (tui_is_window_visible): Return bool.
5266 * tui/tui.c (tui_is_window_visible): Return bool.
5267 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5268 (tui_make_visible, tui_make_invisible)
5269 (tui_win_info::make_visible)
5270 (tui_source_window_base::make_visible, make_all_visible)
5271 (tui_make_all_visible, tui_make_all_invisible): Update.
5272 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5273 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5274 bool.
5275 (struct tui_win_info, struct tui_source_window_base)
5276 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5277 * tui/tui-data.c (tui_init_generic_part): Update.
5278
cda37efb
TT
52792019-06-25 Tom Tromey <tom@tromey.com>
5280
5281 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5282 (tui_source_window_base::make_visible): New methods.
5283 (make_all_visible): Make method call.
5284 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5285 (struct tui_source_window_base, struct tui_cmd_window): Override
5286 make_visible.
5287 (tui_win_is_source_type): Don't declare.
5288 * tui/tui-data.c (tui_win_is_source_type): Remove.
5289
6a0ee02c
TT
52902019-06-25 Tom Tromey <tom@tromey.com>
5291
5292 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5293 NULL check.
5294
63901aec
TT
52952019-06-25 Tom Tromey <tom@tromey.com>
5296
5297 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5298 Inline constructor. Add initializers for members.
5299 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5300 constructors; now inline in class.
5301
ceb13a13
TT
53022019-06-25 Tom Tromey <tom@tromey.com>
5303
5304 * tui/tui-regs.c (tui_show_registers): Update.
5305 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5306 bool.
5307 * tui/tui-data.c (tui_data_window::clear_detail)
5308 (tui_data_window): Update.
5309
238eb706
TT
53102019-06-25 Tom Tromey <tom@tromey.com>
5311
5312 * tui/tui-windata.c (tui_display_all_data)
5313 (tui_display_data_from_line, tui_display_data_from)
5314 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5315 Update.
5316 * tui/tui-regs.c (tui_last_regs_line_no)
5317 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5318 (tui_show_registers, tui_show_register_group)
5319 (tui_display_registers_from, tui_display_reg_element_at_line)
5320 (tui_display_registers_from_line, tui_check_register_values)
5321 (tui_reg_next, tui_reg_prev): Update.
5322 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5323 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5324 tui_data_window.
5325 (struct tui_win_info) <detail>: Remove. Add new fields from
5326 tui_data_info.
5327 (TUI_DATA_WIN): Add cast.
5328 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5329 (~tui_data_window): Simplify.
5330
81491aa0
TT
53312019-06-25 Tom Tromey <tom@tromey.com>
5332
5333 * tui/tui-layout.c (show_source_disasm_command)
5334 (show_source_or_disasm_and_command): Update.
5335 * tui/tui-io.c (update_cmdwin_start_line)
5336 (tui_redisplay_readline): Update.
5337 * tui/tui-data.h (struct tui_command_info): Remove.
5338 (struct tui_win_info) <detail>: Remove command_info member.
5339 (struct tui_data_window) <start_line>: New member, from
5340 tui_command_info.
5341 (TUI_CMD_WIN): Add casts.
5342
e6e41501
TT
53432019-06-25 Tom Tromey <tom@tromey.com>
5344
5345 * tui/tui-winsource.c (tui_update_source_window)
5346 (tui_refill_source_window)
5347 (tui_source_window_base::do_scroll_horizontal)
5348 (tui_update_breakpoint_info, tui_set_exec_info_content)
5349 (tui_show_exec_info_content, tui_erase_exec_info_content)
5350 (tui_clear_exec_info_content): Update.
5351 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5352 Update.
5353 * tui/tui-win.c (make_invisible_and_set_new_height)
5354 (make_visible_with_new_height): Update.
5355 * tui/tui-source.c (tui_set_source_content)
5356 (tui_show_symtab_source): Update.
5357 * tui/tui-layout.c (extract_display_start_addr)
5358 (show_source_disasm_command, show_data)
5359 (make_source_or_disasm_window)
5360 (show_source_or_disasm_and_command): Update.
5361 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5362 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5363 "gdbarch".
5364 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5365 to tui_source_window_base.
5366 (struct tui_win_info) <detail>: Remove source_info member.
5367 (struct tui_source_window_base) <has_locator>: Inline.
5368 Move contents from tui_source_info; rename has_locator member to
5369 m_has_locator.
5370 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5371 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5372 header file.
5373 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5374 Simplify.
5375 (tui_free_all_source_wins_content): Cast to
5376 tui_source_window_base.
5377
44f0e208
TT
53782019-06-25 Tom Tromey <tom@tromey.com>
5379
5380 * tui/tui-win.c (make_invisible_and_set_new_height)
5381 (make_visible_with_new_height): Call has_locator method.
5382 * tui/tui-layout.c (show_source_disasm_command, show_data)
5383 (show_source_or_disasm_and_command): Update for bool change.
5384 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5385 (tui_win_info) <has_locator>: New method.
5386 (struct tui_source_window_base) <has_locator>: New method.
5387 (tui_win_has_locator): Don't declare.
5388 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5389 from tui_win_has_locator.
5390 (tui_source_window_base): Use false, not FALSE.
5391
7778b912
TT
53922019-06-25 Tom Tromey <tom@tromey.com>
5393
5394 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5395 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5396 clear_detail method directly.
5397 (tui_clear_win_detail): Remove.
5398
f83d391c
TT
53992019-06-25 Tom Tromey <tom@tromey.com>
5400
5401 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5402 "this", not TUI_DISASM_WIN.
5403
13446e05
TT
54042019-06-25 Tom Tromey <tom@tromey.com>
5405
5406 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
5407 declare.
5408 * tui/tui-winsource.c
5409 (tui_source_window_base::do_scroll_horizontal): Rename from
5410 tui_horizontal_source_scroll.
5411 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5412 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5413 from tui_vertical_data_scroll.
5414 * tui/tui-win.h (tui_scroll): Don't declare.
5415 * tui/tui-win.c (tui_win_info::forward_scroll)
5416 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5417 (tui_win_info::right_scroll): Rename and update.
5418 (tui_scroll_forward_command, tui_scroll_backward_command)
5419 (tui_scroll_left_command, tui_scroll_right_command): Update.
5420 (tui_scroll): Remove.
5421 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5422 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5423 from tui_vertical_source_scroll.
5424 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5425 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5426 from tui_vertical_disassem_scroll.
5427 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5428 do_scroll_horizontal>: New methods.
5429 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5430 Likewise.
5431 (struct tui_source_window_base): Add do_scroll_horizontal.
5432 (struct tui_source_window, struct tui_disasm_window): Add
5433 do_scroll_vertical.
5434 (struct tui_data_window, struct tui_cmd_window): Add
5435 do_scroll_horizontal and do_scroll_vertical.
5436 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5437
5cf82909
TT
54382019-06-25 Tom Tromey <tom@tromey.com>
5439
5440 * tui/tui-data.h (struct tui_source_window_base): New struct.
5441 (struct tui_source_window): Derive from tui_source_window_base.
5442 (struct tui_disasm_window): New struct.
5443 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5444 from tui_source_window::clear_detail.
5445 (tui_source_window_base): Rename from tui_source_window.
5446 (~tui_source_window_base): Rename from ~tui_source_window.
5447 (tui_alloc_win_info): Create a tui_disasm_window.
5448
ee1d42d6
TT
54492019-06-25 Tom Tromey <tom@tromey.com>
5450
5451 * tui/tui-data.h (struct tui_source_window)
5452 (struct tui_data_window): Declare destructors.
5453 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5454 destructors.
5455 (tui_win_info): Simplify.
5456
b4eb2452
TT
54572019-06-25 Tom Tromey <tom@tromey.com>
5458
5459 * tui/tui-winsource.c (tui_display_main)
5460 (tui_update_source_windows_with_addr)
5461 (tui_update_all_breakpoint_info): Update.
5462 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5463 (new_height_ok, parse_scrolling_args): Update.
5464 * tui/tui-stack.c (tui_show_frame_info): Update.
5465 * tui/tui-data.h (struct tui_list): Remove.
5466 (tui_source_windows): Return a reference to a std::vector.
5467 * tui/tui-data.c (source_windows): Now a std::vector.
5468 (tui_source_windows): Change return type.
5469 (tui_clear_source_windows): Rewrite.
5470 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5471 (tui_free_all_source_wins_content): Rewrite.
5472
8761a91b
TT
54732019-06-25 Tom Tromey <tom@tromey.com>
5474
5475 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5476 (struct tui_data_window, struct tui_cmd_window): Declare
5477 clear_detail method.
5478 * tui/tui-data.c (tui_source_window::clear_detail)
5479 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5480 methods.
5481 (tui_clear_win_detail): Simplify.
5482
0ed69eda
TT
54832019-06-25 Tom Tromey <tom@tromey.com>
5484
5485 * tui/tui-layout.c (make_source_window, make_disasm_window)
5486 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5487 Return the new window.
5488 (show_source_disasm_command, show_data)
5489 (show_source_or_disasm_and_command): Update.
5490
82432e10
TT
54912019-06-25 Tom Tromey <tom@tromey.com>
5492
5493 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5494 parameter. Return the new window.
5495 (show_source_disasm_command): Update and remove NULL check.
5496 (show_source_or_disasm_and_command): Update.
5497
ec328aa5
TT
54982019-06-25 Tom Tromey <tom@tromey.com>
5499
5500 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5501
33b906ab
TT
55022019-06-25 Tom Tromey <tom@tromey.com>
5503
5504 * tui/tui-data.h (struct tui_win_info): Make constructor
5505 protected. Make destructor virtual. Add initializers.
5506 (tui_source_window, tui_data_window, tui_cmd_window): New
5507 classes.
5508 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5509 constructor. Add "type" parameter.
5510 (tui_source_window, tui_data_window, tui_cmd_window): New
5511 constructors.
5512 (tui_alloc_win_info): Instantiate the appropriate subclass.
5513
e7e11af4
TT
55142019-06-25 Tom Tromey <tom@tromey.com>
5515
5516 * tui/tui-win.c (tui_resize_all): Use delete.
5517 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5518 destructor.
5519 (tui_free_window): Don't declare.
5520 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5521 Update.
5522
6792b55e
TT
55232019-06-25 Tom Tromey <tom@tromey.com>
5524
5525 * tui/tui-data.h (struct tui_win_info): Add constructor.
5526 * tui/tui-data.c (tui_alloc_win_info): Use new.
5527 (tui_free_window): Use delete.
5528
f95675e1
TT
55292019-06-22 Tom Tromey <tom@tromey.com>
5530
5531 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5532 declare.
5533 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5534
5bff081c
TT
55352019-06-22 Tom Tromey <tom@tromey.com>
5536
5537 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5538 declare.
5539 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5540
47e3f474
TV
55412019-06-22 Tom de Vries <tdevries@suse.de>
5542
5543 * dwarf2read.c (create_addrmap_from_aranges)
5544 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5545 instead of '%zu'.
5546
fd5866f6
SM
55472019-06-21 Simon Marchi <simon.marchi@efficios.com>
5548
5549 * dwarf2read.h (dwarf2_section_info_def): Remove.
5550 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5551 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5552 std::vector<dwarf2_section_info>.
5553 (struct dwo_file) <~dwo_file>: Remove.
5554 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5555 types field.
5556 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5557 (dwarf2_read_debug_names): Likewise.
5558 (create_debug_types_hash_table): Change parameter type to
5559 array_view, adjust code accordingly.
5560 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5561 (partial_die_info::fixup): Likewise.
5562 (determine_prefix): Likewise.
5563 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5564
fb1eb2f9
SM
55652019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5566
5567 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5568 gdb_bfd_ref_ptr.
5569 <~dwo_file>: Remove call to gdb_bfd_unref.
5570 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5571 gdb_bfd_ref_ptr::get.
5572
51ac9db5
SM
55732019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5574
5575 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5576 type to htab_up.
5577 * dwarf2read.c (struct dwo_file): Initialize fields.
5578 <~dwo_file>: New.
5579 (free_dwo_file): Remove, move content to ~dwo_file.
5580 (struct dwo_file_deleter): Remove.
5581 (dwo_file_up>: Remove custom deleter.
5582 (free_dwo_files): Remove.
5583 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5584 dwo_files.
5585 (process_skeletonless_type_units): Call unique_ptr::get.
5586 (allocate_dwo_file_hash_table): Add deleter to created hash
5587 table. Change return type to htab_up.
5588 (lookup_dwo_file_slot): Don't memset dwo_file, call
5589 unique_ptr::get.
5590 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5591 (create_dwo_unit_in_dwp_v2): Likewise.
5592 (open_and_init_dwo_file): Likewise.
5593 (free_dwo_file_from_slot): Remove.
5594
dc4ccb6f
SM
55952019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5596
5597 * dwarf2read.h (struct dwarf2_section_info) <readin,
5598 is_virtual>: Change type to bool.
5599 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5600 true instead of 1.
5601
e6a1c5cb
TT
56022019-06-19 Tom Tromey <tom@tromey.com>
5603
5604 * tui/tui-data.h (tui_init_content_element): Don't declare.
5605
6f6ffbeb
TT
56062019-06-19 Tom Tromey <tom@tromey.com>
5607
5608 * tui/tui-data.h (tui_init_win_info): Don't declare.
5609
f23f598e
TV
56102019-06-19 Tom de Vries <tdevries@suse.de>
5611
5612 * dwarf2read.h (abstract_to_concrete): Change type to
5613 std::unordered_map<sect_offset, std::vector<sect_offset>,
5614 gdb::hash_enum<sect_offset>>.
5615
680e1bee
TT
56162019-06-19 Tom Tromey <tromey@adacore.com>
5617
5618 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5619 EVAL_AVOID_SIDE_EFFECTS specially.
5620
dcf37923
TT
56212019-06-19 Tom Tromey <tromey@adacore.com>
5622
5623 * source-cache.c (highlighter): New global.
5624 (source_cache::get_source_lines): Create a highlighter on demand.
5625
494986d5
AB
56262019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5627
5628 * defs.h (deprecated_interactive_hook): Delete declaration.
5629 * interps.c (clear_interpreter_hooks): Remove use of
5630 deprecated_interactive_hook.
5631 * top.c (deprecated_interactive_hook): Delete definition.
5632 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5633
3360b6e7
TV
56342019-06-18 Tom de Vries <tdevries@suse.de>
5635
5636 PR gdb/24515
5637 * dwarf2read.h (abstract_to_concrete): Change type from
5638 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5639 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5640 * dwarf2read.c (read_variable): Update.
5641 (dwarf2_fetch_die_loc_sect_off): Update.
5642
310b3441
TV
56432019-06-17 Tom de Vries <tdevries@suse.de>
5644
5645 PR gdb/24617
5646 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5647 accessing parent[parent_len - 1].
5648
ba9777be
PP
56492019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5650
5651 PR gdb/24364
5652 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5653 call dtrace_process_dof with NULL dof.
5654
2b9f6e89
TV
56552019-06-16 Tom de Vries <tdevries@suse.de>
5656
5657 PR gdb/24445
5658 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5659
431b3ead
TT
56602019-06-16 Tom Tromey <tom@tromey.com>
5661
5662 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5663 (make_all_visible): Use address of member.
5664
d04b44a1
TT
56652019-06-16 Tom Tromey <tom@tromey.com>
5666
5667 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5668 (tui_free_window, free_content, free_content_elements): Remove
5669 unnecessary cast.
5670 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5671 cast.
5672 * tui/tui-regs.c (tui_show_register_group)
5673 (tui_display_registers_from, tui_display_reg_element_at_line):
5674 Remove unnecessary cast.
5675
bf5142e7
AB
56762019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5677
5678 * linux-nat.c (normal_mask): Delete.
5679 (_initialize_linux_nat): Don't initialise normal_mask.
5680
c4973306
SM
56812019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5682
5683 PR gdb/24445
5684 * dwarf-index-write.h (write_psymtabs_to_index): Add
5685 dwz_basename parameter.
5686 * dwarf-index-write.c (write_gdbindex): Move file writing to
5687 write_gdbindex_1. Change return type void.
5688 (assert_file_size): Move up, remove filename parameter.
5689 (write_gdbindex_1): New function.
5690 (write_debug_names): Change return type to void, call
5691 assert_file_size.
5692 (struct index_wip_file): New struct.
5693 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5694 file logic to index_wip_file. Write index for dwz file if
5695 needed.
5696 (save_gdb_index_command): Pass basename of dwz file, if present.
5697 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5698 build-id of dwz file, if present.
5699 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5700 (dwarf2_get_dwz_file): Likewise.
5701 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5702 (dwarf2_get_dwz_file): Likewise.
5703
395f9c91
TT
57042019-06-16 Tom Tromey <tom@tromey.com>
5705
5706 * coffread.c (process_coff_symbol): Use xstrdup.
5707 * value.c (create_internalvar): Use xstrdup.
5708
cafb3438
TT
57092019-06-16 Tom Tromey <tom@tromey.com>
5710
5711 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5712 * breakpoint.c (stopin_command, stopat_command)
5713 (until_break_command, decode_location_default): Remove unnecessary
5714 cast.
5715 * utils.c (subset_compare): Remove unnecessary cast.
5716 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5717 cast.
5718 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5719 cast.
5720 * infcmd.c (path_command): Remove unnecessary cast.
5721 * coffread.c (decode_type): Remove unnecessary cast.
5722 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5723 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5724 * tui/tui-stack.c (tui_show_locator_content)
5725 (tui_show_frame_info): Remove unnecessary cast.
5726 * tui/tui-win.c (tui_scroll_forward_command)
5727 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5728 (parse_scrolling_args): Remove unnecessary cast.
5729 * tui/tui-data.c (init_win_info, tui_del_window)
5730 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5731 (free_content_elements): Remove unnecessary cast.
5732 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5733 unnecessary cast.
5734 * tui/tui-source.c (tui_set_source_content)
5735 (tui_vertical_source_scroll): Remove unnecessary cast.
5736 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5737 cast.
5738 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5739 * tui/tui-regs.c (tui_display_registers_from)
5740 (tui_display_register): Remove unnecessary cast.
5741 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5742 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5743 (make_visible): Remove unnecessary cast.
5744 * tui/tui-winsource.c (tui_erase_source_content)
5745 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5746 unnecessary cast.
5747 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5748 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5749 * stabsread.c (read_type, read_array_type, read_range_type):
5750 Remove unnecessary cast.
5751 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5752 (parse_symbol, parse_type, upgrade_type, parse_external)
5753 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5754 unnecessary cast.
5755 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5756
730ead81
TT
57572019-06-16 Tom Tromey <tom@tromey.com>
5758
5759 * tui/tui-data.c (tui_alloc_generic_win_info)
5760 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5761 checks.
5762
584a927c
AB
57632019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5764 Andrew Burgess <andrew.burgess@embecosm.com>
5765
5766 * f-typeprint.c (f_print_type): Don't return early for not
5767 associated or not allocated types.
5768 (f_type_print_varspec_suffix): Add print_rank parameter and print
5769 ranks of array types in case they dangling.
5770 (f_type_print_base): Add print_rank parameter.
5771
30056ea0
AB
57722019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5773
5774 * NEWS: Mention new MI commands.
5775 * break-catch-throw.c (enum exception_event_kind): Move to
5776 breakpoint.h.
5777 (print_mention_exception_catchpoint): Output text as a single
5778 message.
5779 (catch_exception_command_1): Rename to...
5780 (catch_exception_event): ...this, make non-static, update header
5781 command, and change some parameter types.
5782 (catch_catch_command): Update for changes to
5783 catch_exception_command_1.
5784 (catch_throw_command): Likewise.
5785 (catch_rethrow_command): Likewise.
5786 * breakpoint.c (enum exception_event_kind): Delete.
5787 * breakpoint.h (enum exception_event_kind): Moved here from
5788 break-catch-throw.c.
5789 (catch_exception_event): Declare.
5790 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5791 (mi_cmd_catch_throw): New function.
5792 (mi_cmd_catch_rethrow): New function.
5793 (mi_cmd_catch_catch): New function.
5794 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5795 'catch-catch' entries.
5796 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5797 (mi_cmd_catch_rethrow): Declare.
5798 (mi_cmd_catch_catch): Declare.
5799
ec8e2b6d
AB
58002019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5801
5802 * annotate.c (annotate_source_line): Change return type to void,
5803 update implementation to match.
5804 * annotate.h (annotate_source_line): Change return type to void,
5805 update header comment.
5806 * stack.c (print_frame_info): Don't change what frame information
5807 is printed based on whether annotations are on or not.
5808
0d3abd8c
AB
58092019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5810
5811 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5812 (annotate_source): Make static.
5813 (annotate_source_line): Moved from source.c and renamed from
5814 identify_source_line. Update the return type.
5815 * annotate.h (annotate_source): Delete declaration.
5816 (annotate_source_line): Declaration moved from source.h, and
5817 renamed from identify_source_line. Return type updated.
5818 * source.c (identify_source_line): Moved to annotate.c and renamed
5819 to annotate_source_line.
5820 (info_line_command): Remove check of annotation_level.
5821 * source.h (identify_source_line): Move declaration to annotate.h
5822 and rename to annotate_source_line.
5823 * stack.c: Add 'annotate.h' include.
5824 (print_frame_info): Remove check of annotation_level before
5825 calling annotate_source_line.
5826
00df30ae
AB
58272019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5828
5829 * source-cache.c (source_cache::get_plain_source_lines): Use
5830 open_source_file_with_line_charpos instead of just
5831 open_source_file, remove call to find_source_lines.
5832 (source_cache::get_source_lines): Likewise.
5833 * source.c (find_source_lines): Make static.
5834 (get_filename_and_charpos): Renamed into...
5835 (open_source_file_with_line_charpos): ..this along with changes to
5836 return a scoped_fd, and some other minor clean ups.
5837 (identify_source_line): Use open_source_file_with_line_charpos.
5838 (search_command_helper): Use open_source_file_with_line_charpos
5839 instead of just open_source_file, remove call to
5840 find_source_lines.
5841 * source.h (open_source_file_with_line_charpos): Declare new
5842 function.
5843 (find_source_lines): Delete declaration.
5844
afda45a2
AB
58452019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5846
5847 * source.c (get_filename_and_charpos): Remove fullname
5848 parameter.
5849 (identify_source_line): Update call to get_filename_and_charpos.
5850
0735b091
TT
58512019-06-14 Tom Tromey <tromey@adacore.com>
5852
5853 PR gdb/24502:
5854 * ui-style.h (skip_ansi_escape): Update comment.
5855 * ui-file.h (class no_terminal_escape_file): New class.
5856 * ui-file.c (no_terminal_escape_file::write)
5857 (no_terminal_escape_file::puts): New methods.
5858 * cli/cli-logging.c (handle_redirections): Use
5859 no_terminal_escape_file.
5860
52ce35e2
TT
58612019-06-14 Tom Tromey <tromey@adacore.com>
5862
5863 * NEWS: Move convenience variable news above Python news.
5864
73cc7272
TT
58652019-06-14 Tom Tromey <tom@tromey.com>
5866
5867 * gnulib: Move directory to top-level.
5868 * configure.ac: Don't configure gnulib.
5869 * configure: Rebuild.
5870 * common/common-defs.h: Use new path to gnulib.
5871 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5872 (GNULIB_H): Remove.
5873 (INCGNU): Look in new gnulib location.
5874 (HFILES_NO_SRCDIR): Remove gnulib files.
5875 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5876 (generated_files): Remove GNULIB_H.
5877 ($(LIBGNU), all-lib): Remove targets.
5878 (distclean): Don't mention GNULIB_BUILDDIR.
5879 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5880
f5686554
TT
58812019-06-14 Tom Tromey <tromey@adacore.com>
5882
5883 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5884 Warn if symbol file does not provide any symbols.
5885
a0c1ffed
TT
58862019-06-14 Tom Tromey <tromey@adacore.com>
5887
5888 * source.c (find_and_open_source): Respect basenames_may_differ.
5889
7c39e397
AB
58902019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5891
5892 * annotate.c (annotate_breakpoints_invalid): Make use of
5893 scoped_restore_terminal_state.
5894 (annotate_frames_invalid): Likewise.
5895
f411722c
TT
58962019-06-14 Tom Tromey <tromey@adacore.com>
5897
5898 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5899 allow assignment to an internalvar.
5900
4268ec18
TT
59012019-06-14 Tom Tromey <tromey@adacore.com>
5902
5903 * ada-lex.l: Allow "_" in attribute names.
5904
abdb711e
TT
59052019-06-14 Tom Tromey <tromey@adacore.com>
5906
5907 PR gdb/24653:
5908 * regcache.c (registers_changed): Don't call alloca.
5909 * top.c (execute_command): Don't call alloca.
5910
4c048731
PA
59112019-06-13 Pedro Alves <palves@redhat.com>
5912
5913 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5914 'expression'. When parsing an expression, error out if there's
5915 junk after "unlimited".
5916 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5917 (do_set_command): Adjust calls to is_unlimited_literal.
5918
66eb1ed3
PA
59192019-06-13 Pedro Alves <palves@redhat.com>
5920
5921 * compile/compile.c (make_compile_options_def_group): Add braces
5922 around array_view initializer.
5923 * thread.c (make_thread_apply_all_options_def_group)
5924 (make_thread_apply_all_options_def_group): Likewise.
5925
3345721a
PA
59262019-06-13 Pedro Alves <palves@redhat.com>
5927
5928 * NEWS (New commands): Mention "maint test-options
5929 require-delimiter", "maint test-options unknown-is-error", "maint
5930 test-options unknown-is-operand" and "maint show
5931 test-options-completion-result".
5932 (New command options, command completion): New section.
5933 (Completion improvements): New section.
5934 Mention that you can abbreviate "unlimited".
5935
6206060d
PA
59362019-06-13 Pedro Alves <palves@redhat.com>
5937
5938 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5939 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5940 * unittests/cli-utils-selftests.c (test_parse_flags)
5941 (test_parse_flags_qcs): Delete.
5942 (test_cli_utils): Don't call deleted functions.
5943
6665660a
PA
59442019-06-13 Pedro Alves <palves@redhat.com>
5945
5946 * thread.c: Include "cli/cli-option.h".
5947 (tp_array_compar_ascending): Global.
5948 (tp_array_compar): Delete function.
5949 (tp_array_compar_ascending, tp_array_compar_descending): New
5950 functions.
5951 (ascending_option_def, qcs_flag_option_def)
5952 (thr_qcs_flags_option_defs)
5953 (make_thread_apply_all_options_def_group)
5954 (make_thread_apply_options_def_group): New.
5955 (thread_apply_all_command): Use gdb::option::process_options.
5956 (thread_apply_command_completer)
5957 (thread_apply_all_command_completer): New.
5958 (thread_apply_command): Use gdb::option::process_options.
5959 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5960 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5961 to generate help text of "thread apply". Adjust "taas"'s help.
5962 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5963 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5964
f7e13587
PA
59652019-06-13 Pedro Alves <palves@redhat.com>
5966
5967 * thread.c (thread_apply_command): Check for invalid TID with
5968 isdigit instead of !isalpha.
5969
5d707134
PA
59702019-06-13 Pedro Alves <palves@redhat.com>
5971
5972 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5973 (validate_flags_qcs): New.
5974 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5975 (validate_flags_qcs): Declare.
5976 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5977 (make_frame_apply_options_def_group): New.
5978 (frame_apply_command_count): Process options with
5979 gdb::option::process_options.
5980 (frame_apply_completer): New.
5981 (frame_apply_level_completer, frame_apply_all_completer)
5982 (frame_apply_completer): New.
5983 (_initialize_stack): Update help of "frame apply", "frame apply
5984 level", "frame apply all" and "faas" to mention supported options
5985 and install command completers.
5986 * stack.h (frame_apply_all_completer): Declare.
5987 * thread.c: Include "stack.h".
5988 (tfaas_command): Add "--".
5989 (_initialize_thread): Update help "tfaas" to mention supported
5990 options and install command completer.
5991
272d4594
PA
59922019-06-13 Pedro Alves <palves@redhat.com>
5993
5994 * completer.c (complete_nested_command_line): New.
5995 (gdb_completion_word_break_characters_throw): Add assertion.
5996 * completer.h (complete_nested_command_line): Declare.
5997
90a1ef87
PA
59982019-06-13 Pedro Alves <palves@redhat.com>
5999
6000 * stack.c (parse_backtrace_qualifiers): New.
6001 (backtrace_command): Use it.
6002 (backtrace_command_completer): Complete on qualifiers.
6003
d4c16835
PA
60042019-06-13 Pedro Alves <palves@redhat.com>
6005
6006 * frame.c: Include "cli/cli-option.h.
6007 (user_set_backtrace_options): New.
6008 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6009 Delete.
6010 (get_prev_frame): Adjust.
6011 (boolean_option_def, uinteger_option_def)
6012 (set_backtrace_option_defs): New.
6013 (_initialize_frame): Adjust and use
6014 gdb::option::add_setshow_cmds_for_options to install "set
6015 backtrace past-main" and "set backtrace past-entry".
6016 * frame.h: Include "cli/cli-option.h".
6017 (struct frame_print_options): Forward declare.
6018 (print_frame_arguments_all, print_frame_arguments_scalars)
6019 (print_frame_arguments_none): Declare.
6020 (print_entry_values): Delete declaration.
6021 (struct frame_print_options, user_frame_print_options): New.
6022 (struct set_backtrace_options): New.
6023 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6024 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6025 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6026 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6027 (list_args_or_locals): Add frame_print_options parameter.
6028 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6029 * python/py-framefilter.c (enumerate_args): Pass down
6030 USER_FRAME_PRINT_OPTIONS.
6031 * stack.c: Include "cli/cli-option.h".
6032 (print_frame_arguments_all, print_frame_arguments_scalars)
6033 (print_frame_arguments_none): Declare.
6034 (print_raw_frame_arguments, print_entry_values): Delete.
6035 (user_frame_print_options): New.
6036 (boolean_option_def, enum_option_def, frame_print_option_defs):
6037 New.
6038 (struct backtrace_cmd_options): New.
6039 (bt_flag_option_def): New.
6040 (backtrace_command_option_defs): New.
6041 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6042 (print_frame_arg, read_frame_arg, print_frame_args)
6043 (print_frame_info, print_frame): Add frame_print_options parameter
6044 and use it.
6045 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6046 (backtrace_command_1): Add frame_print_options and
6047 backtrace_cmd_options parameters and use them.
6048 (make_backtrace_options_def_group): New.
6049 (backtrace_command): Process command options with
6050 gdb::option::process_options.
6051 (backtrace_command_completer): New.
6052 (_initialize_stack): Extend "backtrace"'s help to mention
6053 supported options. Install completer for "backtrace".
6054 Install some settings commands with add_setshow_cmds_for_options.
6055
2daf894e
PA
60562019-06-13 Pedro Alves <palves@redhat.com>
6057
6058 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6059 and that "set/show print raw frame-arguments" are now deprecated.
6060
6061 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6062 command.
6063 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6064 * stack.c (_initialize_stack): Install "set/show print
6065 raw-frame-arguments", and deprecate "set/show print raw
6066 frame-arguments".
6067 * valprint.c (_initialize_valprint): Deprecate "set/show print
6068 raw".
6069
e6ed716c
PA
60702019-06-13 Pedro Alves <palves@redhat.com>
6071
6072 * compile/compile.c (struct compile_options): New.
6073 (compile_flag_option_def, compile_command_option_defs)
6074 (make_compile_options_def_group): New.
6075 (compile_file_command): Handle options with
6076 gdb::option::process_options.
6077 (compile_file_command_completer): New function.
6078 (compile_code_command): Handle options with
6079 gdb::option::process_options.
6080 (compile_code_command_completer): New function.
6081 (_initialize_compiler): Install completers for "compile code" and
6082 "compile file". Mention available options in "compile code" and
6083 "compile code"'s help.
6084 * completer.c (advance_to_completion_word): New, factored out from
6085 ...
6086 (advance_to_expression_complete_word_point): ... this.
6087 (advance_to_filename_complete_word_point): New.
6088 * completer.h (advance_to_filename_complete_word_point): New
6089 declaration.
6090
7d8062de
PA
60912019-06-13 Pedro Alves <palves@redhat.com>
6092
6093 * compile/compile.c: Include "cli/cli-option.h".
6094 (compile_print_value): Scope data pointer is now a
6095 value_print_options pointer; adjust.
6096 (compile_print_command): Process options. Scope data pointer is
6097 now a value_print_options pointer; adjust.
6098 (_initialize_compile): Update "compile print"'s help to include
6099 supported options. Install a completer for "compile print".
6100 * cp-valprint.c (show_vtblprint, show_objectprint)
6101 (show_static_field_print): Delete.
6102 (_initialize_cp_valprint): Don't install "set print
6103 static-members", "set print vtbl", "set print object" here.
6104 * printcmd.c: Include "cli/cli-option.h" and
6105 "common/gdb_optional.h".
6106 (print_command_parse_format): Rework to fill in a
6107 value_print_options instead of a format_data.
6108 (print_value): Change parameter type from format_data pointer to
6109 value_print_options reference. Adjust.
6110 (print_command_1): Process options. Adjust to pass down a
6111 value_print_options.
6112 (print_command_completer): New.
6113 (_initialize_printcmd): Install print_command_completer as
6114 handle_brkchars completer for the "print" command. Update
6115 "print"'s help to include supported options.
6116 * valprint.c: Include "cli/cli-option.h".
6117 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6118 here from cp-valprint.c.
6119 (boolean_option_def, uinteger_option_def)
6120 (value_print_option_defs, make_value_print_options_def_group):
6121 New. Use gdb::option::add_setshow_cmds_for_options to install
6122 "set print elements", "set print null-stop", "set print repeats",
6123 "set print pretty", "set print union", "set print array", "set
6124 print address", "set print symbol", "set print array-indexes".
6125 * valprint.h: Include <string> and "cli/cli-option.h".
6126 (make_value_print_options_def_group): Declare.
6127 (print_value): Change parameter type from format_data pointer to
6128 value_print_options reference.
6129 (print_command_completer): Declare.
6130
9d0faba9
PA
61312019-06-13 Pedro Alves <palves@redhat.com>
6132
6133 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6134 (COMMON_SFILES): Add maint-test-settings.c.
6135 * cli/cli-decode.c (boolean_enums): New global, factored out from
6136 ...
6137 (add_setshow_boolean_cmd): ... here.
6138 * cli/cli-decode.h (boolean_enums): Declare.
6139 * cli/cli-option.c: New file.
6140 * cli/cli-option.h: New file.
6141 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6142 factored out from ...
6143 (parse_cli_boolean_value(const char *)): ... this.
6144 (is_unlimited_literal): Change parameter type to pointer to
6145 pointer. Adjust and advance ARG pointer.
6146 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6147 (parse_cli_var_enum): New, factored out from ...
6148 (do_set_command): ... this. Adjust.
6149 * cli/cli-setshow.h (parse_cli_boolean_value)
6150 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6151 (parse_cli_var_enum): Declare.
6152 * cli/cli-utils.c: Include "cli/cli-option.h".
6153 (get_ulongest): New.
6154 * cli/cli-utils.h (get_ulongest): Declare.
6155 (check_for_argument): New overloads.
6156 * maint-test-options.c: New file.
6157
2c722807
PA
61582019-06-13 Pedro Alves <palves@redhat.com>
6159
6160 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6161 parse a range if "-" is at the end of the string.
6162
dee7b4c8
PA
61632019-06-13 Pedro Alves <palves@redhat.com>
6164
6165 * cli/cli-setshow.c (parse_auto_binary_operation)
6166 (parse_cli_boolean_value): Don't allow "o".
6167
dca0f6c0
PA
61682019-06-13 Pedro Alves <palves@redhat.com>
6169
6170 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6171 * NEWS: Mention maint test-settings KIND.
6172 * maint-test-settings.c: New file.
6173
597bf39d
PA
61742019-06-13 Pedro Alves <palves@redhat.com>
6175
6176 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6177 completer.
6178 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6179 "set" completers.
6180
48c410fb
PA
61812019-06-13 Pedro Alves <palves@redhat.com>
6182
6183 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6184 after item.
6185
93bcb043
PA
61862019-06-13 Pedro Alves <palves@redhat.com>
6187
6188 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6189
cbba3ecd
PA
61902019-06-13 Pedro Alves <palves@redhat.com>
6191
6192 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6193 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6194 call.
6195 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6196 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6197 calls.
6198 (check_for_argument): Skip spaces after argument.
6199
b9a3f842
PA
62002019-06-13 Pedro Alves <palves@redhat.com>
6201
6202 * thread.c (thread_apply_command): Adjust TID parsing.
6203 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6204 detected before end of string.
6205 (tid_is_in_list): Error out if LIST is invalid.
6206
3844e605
PA
62072019-06-13 Pedro Alves <palves@redhat.com>
6208
6209 * completer.c (complete_line_internal_1): Rewind completion word
6210 point.
6211 (completion_tracker::advance_custom_word_point_by): Change
6212 parameter type to int.
6213 * completer.h (completion_tracker::advance_custom_word_point_by):
6214 Likewise.
6215
00b56dbe
PA
62162019-06-13 Pedro Alves <palves@redhat.com>
6217
6218 * completer.c (advance_to_completion_word): Handle delimiters.
6219
d106773e
PA
62202019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6221
6222 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6223
08f10e02
TT
62242019-06-11 Tom Tromey <tom@tromey.com>
6225
6226 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6227 (xmalloc_failed): Move to alloc.c.
6228 * alloc.c: New file.
6229 * Makefile.in (COMMON_SFILES): Add alloc.c.
6230
1c7fe951
TT
62312019-06-11 Tom Tromey <tom@tromey.com>
6232
6233 * nat/linux-waitpid.c: Don't include server.h.
6234 (linux_debug): Remove.
6235 (my_waitpid): Update.
6236
89549d7f
TT
62372019-06-11 Tom Tromey <tromey@adacore.com>
6238
6239 * infcall.c (_initialize_infcall): Remove trailing newline from
6240 help.
6241 * user-regs.c (_initialize_user_regs): Remove trailing newline
6242 from help.
6243 * typeprint.c (_initialize_typeprint): Remove trailing newline
6244 from help.
6245 * reverse.c (_initialize_reverse): Remove trailing newlines from
6246 help.
6247 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6248 from help.
6249 * language.c (add_set_language_command): Remove trailing newline
6250 from help.
6251 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6252 help.
6253 * disasm.c (_initialize_disasm): Remove trailing newline from
6254 help.
6255 * top.c (init_main): Remove trailing newline from help.
6256 * interps.c (_initialize_interpreter): Remove trailing newline
6257 from help.
6258 * btrace.c (_initialize_btrace): Remove trailing newlines from
6259 help.
6260 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6261 from help.
6262 * python/python.c (_initialize_python): Remove trailing newline
6263 from help.
6264 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6265 help.
6266 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6267 from help. Reformat some text.
6268 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6269 from help.
6270 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6271 newline from help.
6272
86108c13
TT
62732019-06-11 Tom Tromey <tromey@adacore.com>
6274
6275 * darwin-nat.c (darwin_decode_exception_message)
6276 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6277
a7067863
AB
62782019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6279
6280 * valops.c (value_slice): Check for not allocated or not
6281 associated values.
6282
9ab08412
TV
62832019-06-10 Tom de Vries <tdevries@suse.de>
6284
6285 PR gdb/24618
6286 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6287 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6288 invalid.
6289
f19e22e9
TV
62902019-06-10 Tom de Vries <tdevries@suse.de>
6291
6292 PR gdb/24611
6293 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6294 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6295
e99f9db0
TV
62962019-06-10 Tom de Vries <tdevries@suse.de>
6297
6298 PR symtab/24545
6299 * symtab.c (struct demangled_name_entry): Add language field.
6300 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6301 static minimal symbol". Set and use language field.
6302
9bf7038b
TT
63032019-06-10 Tom Tromey <tromey@adacore.com>
6304
6305 * ada-lang.c (_initialize_ada_language): Update help text.
6306
422186a9
TT
63072019-06-10 Tom Tromey <tromey@adacore.com>
6308
6309 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6310 with a newline.
6311 * guile/guile.c (handle_boot_error): Don't end warning with a
6312 newline.
6313 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6314 warning with a newline.
6315 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6316 newline.
6317 (s12z_frame_cache): Likewise.
6318 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6319 a newline.
6320 * solib-svr4.c (disable_probes_interface): Don't end warning with
6321 a newline.
6322 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6323 newline.
6324 * python/python.c (do_finish_initialization): Don't end warning
6325 with a newline.
6326
25ce02ee
TT
63272019-06-10 Tom Tromey <tom@tromey.com>
6328
6329 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6330 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6331 gdbpy_enter.
6332
caa429d8
TT
63332019-06-10 Tom Tromey <tromey@adacore.com>
6334
6335 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6336 data.
6337 (elf_new_init): Don't call stabsread_new_init.
6338 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6339 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6340 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6341
81873cc8
TV
63422019-06-10 Tom de Vries <tdevries@suse.de>
6343
6344 PR symtab/16264
6345 PR symtab/24517
6346 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6347
4fa0265e
РИ
63482019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6349
6350 * source.c (find_and_open_source): Also rewrite relative file
6351 names.
6352
1a3da2cd
AB
63532019-04-26 Amos Bird <amosbird@gmail.com>
6354
6355 * annotate.c (annotate_thread_exited): Add "thread-exited"
6356 annotation.
6357
3847a7bf
TT
63582019-06-06 Tom Tromey <tromey@adacore.com>
6359
6360 * maint.h (class scoped_command_stats): Use
6361 DISABLE_COPY_AND_ASSIGN.
6362 <print_time>: New method.
6363 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6364 print_time.
6365 (scoped_command_stats::print_time): New method.
6366
312617a3
AB
63672019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6368
6369 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6370 instructions of lengths 6 or 8 bytes.
6371
b02f78f9
PA
63722019-06-04 Pedro Alves <palves@redhat.com>
6373
6374 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6375
6376 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6377 * breakpoint.c (condition_completer): Likewise.
6378 * cli/cli-dump.c (scan_expression): Likewise.
6379 * common/filestuff.c (mkdir_recursive): Likewise.
6380 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6381 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6382 (gdb_abspath): Likewise.
6383 * compile/compile-cplus-types.c
6384 (compile_cplus_instance::decl_name): Likewise.
6385 * completer.c (complete_explicit_location):
6386 (signal_completer, reg_or_group_completer_1): Likewise.
6387 * cp-support.c (cp_remove_params_if_any): Likewise.
6388 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6389 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6390 * infcmd.c (strip_bg_char): Likewise.
6391 * linespec.c (copy_token_string): Likewise.
6392 * mi/mi-main.c (output_cores): Likewise.
6393 * psymtab.c (psymtab_search_name):
6394 * symfile.c (test_set_ext_lang_command): Likewise.
6395 * target.c (target_fileio_read_stralloc): Likewise.
6396 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6397 * value.c (complete_internalvar): Likewise.
6398
e1f2e1a2
CB
63992019-06-04 Christian Biesinger <cbiesinger@google.com>
6400
6401 Add objfile property to gdb.Type.
d3238f7d
PA
6402 * NEWS: Mention Python API addition.
6403 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 6404
e664d728
PW
64052019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6406
6407 * NEWS: Mention the new set|show style [title|highlight].
6408 Mention changes to "show style", "help" and "apropos".
6409
66d8c862
PW
64102019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6411
6412 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6413 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
6414 instead of print_help_for_command.
6415 (print_doc_of_command): New function.
6416 (help_list): Add 'apropos -v word' suggestion.
6417 (print_help_for_command): Style the command name using title style.
6418 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6419 (_initialize_cli_cmds): Describe -v in apropos_command help.
6420
9303eb2f
PW
64212019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6422
6423 * cli/cli-style.h (cli_style_option): Add name in constructor,
6424 add m_name class member, add constructor with intensity,
6425 add name class function.
6426 (cli_style_option::add_setshow_commands): Remove name argument.
6427 (highlight_style, title_style): New styles.
6428 * cli/cli-style.c (do_show): New function that shows a style
6429 characteristic styling the style name with itself.
6430 (set_style_name): New function.
6431 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6432 Update all callers according to the changes in cli/cli-style.h.
6433 * utils.h (fputs_highlighted): New function.
6434 * utils.c (fputs_highlighted): Likewise.
6435
e2c52041
PW
64362019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6437
6438 * NEWS: Mention new pipe command and new convenience variables.
6439
947d3946
PW
64402019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6441
6442 * cli/cli-cmds.c (pipe_command): New function.
6443 (_initialize_cli_cmds): Call add_com for pipe_command.
6444 Define | as an alias for pipe.
6445 (exit_status_set_internal_vars): New function.
6446 (shell_escape): Call exit_status_set_internal_vars.
6447 cli/cli-decode.c (find_command_name_length): Recognize | as
6448 a single character command.
6449
b8fd0918
PW
64502019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6451
6452 * gdbcmd.h (execute_command_to_ui_file): New declaration.
6453 top.c (execute_command_to_ui_file): New function, mostly a copy
6454 of execute_command_to_string.
6455 (execute_command_to_string): Implement by calling
6456 execute_command_to_ui_file.
6457
68bb5386
PW
64582019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6459
6460 * top.h (saved_command_line): Remove declaration.
6461 * top.c (previous_saved_command_line, previous_repeat_arguments):
6462 New variables.
6463 (saved_command_line): Make static, define together with other
6464 'repeat variables'.
6465 (dont_repeat): Clear repeat_arguments.
6466 (repeat_previous, get_saved_command_line, save_command_line):
6467 New functions.
6468 (gdb_init): Initialize saved_command_line
6469 and previous_saved_command_line.
6470 * main.c (captured_main_1): Remove saved_command_line initialization.
6471 * event-top.c (handle_line_of_input): Update to use
6472 the new 'repeat' related functions instead of direct access to
6473 saved_command_line.
6474 * command.h (repeat_previous, get_saved_command_line,
6475 save_command_line): New declarations.
6476 (dont_repeat): Add comment.
6477
bfcdb852
TT
64782019-05-30 Tom Tromey <tromey@adacore.com>
6479
6480 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6481 Fix comment.
6482 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6483
0ef209f2
JV
64842019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6485
6486 PR cli/24587
6487 * completer.c (complete): Initialize variable word.
6488
955b06fa
SDJ
64892019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6490
6491 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6492 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6493 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6494 'body' is NULL to the outter 'if', protecting the '!is_define'
6495 situation as well.
6496
fa9c3fa0
TT
64972019-05-29 Tom Tromey <tromey@adacore.com>
6498
6499 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6500 (dwarf_unknown): New function.
6501 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6502 (dwarf_type_encoding_name): Use dwarf_unknown.
6503
4330d61d
TT
65042019-05-29 Tom Tromey <tromey@adacore.com>
6505
6506 PR c++/20020:
6507 * cp-valprint.c (cp_print_value_fields): Call
6508 cp_print_static_field inside "try".
6509
33a6bc35
TT
65102019-05-29 Tom Tromey <tromey@adacore.com>
6511
6512 * inflow.c (struct terminal_info): Add default operator=.
6513 * configure: Rebuild.
6514 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6515 -Wdeprecated-copy-dtor, -Wredundant-move.
6516
000439d5
TT
65172019-05-29 Tom Tromey <tromey@adacore.com>
6518
6519 * NEWS: Add entry.
6520 * infcmd.c (print_return_value_1): Handle finish_print
6521 option.
6522 (show_print_finish): New function.
6523 (_initialize_infcmd): Add "set/show print finish" commands.
6524 * valprint.c (user_print_options): Initialize new member.
6525 * valprint.h (struct value_print_options) <finish_print>: New
6526 member.
6527
c0e70c62
TT
65282019-05-28 Tom Tromey <tromey@adacore.com>
6529
6530 * ada-lang.c (ada_remove_Xbn_suffix)
6531 (find_old_style_renaming_symbol)
6532 (parse_old_style_renaming): Remove.
6533 (ada_find_renaming_symbol): Don't call
6534 find_old_style_renaming_symbol.
6535 (ada_is_renaming_symbol): Rename from
6536 ada_find_renaming_symbol. Remove "block" parameter. Return
6537 bool. Now static.
6538 (ada_read_var_value): Update and simplify.
6539 * ada-exp.y (write_var_or_type): Remove old code.
6540
766f8836
AH
65412019-05-28 Alan Hayward <alan.hayward@arm.com>
6542
6543 * event-top.c: Remove include comment.
6544 * inflow.c (class scoped_ignore_sigttou): Move from here...
6545 * inflow.h (class scoped_ignore_sigttou): ...to here.
6546 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6547 * top.c: Remove include comment.
6548
eb41253a
TT
65492019-05-27 Tom Tromey <tom@tromey.com>
6550
6551 * NEWS: Fix typo.
6552
4ca51187
TT
65532019-05-22 Tom Tromey <tromey@adacore.com>
6554
6555 * target.c (target_follow_exec): Constify parameter.
6556 * target-delegates.c: Rebuild.
6557 * remote.c (remote_target::follow_exec): Constify parameter.
6558 * infrun.c (follow_exec): Constify parameter.
6559 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6560 (target_follow_exec): Likewise.
6561
8fca4da0
AH
65622019-05-22 Alan Hayward <alan.hayward@arm.com>
6563
6564 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6565 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6566
b7060614
AH
65672019-05-22 Alan Hayward <alan.hayward@arm.com>
6568
6569 * NEWS: Add debugredirect and testsuite sections.
6570
0a5954bd
SC
65712019-05-22 Simon Cook <simon.cook@embecosm.com>
6572
6573 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6574 target descriptions using exclusively floating point register name
6575 aliases.
6576
dc42e902
AB
65772019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6578
6579 PR gdb/18644:
6580 * f-lang.c (build_fortran_types): Handle the case where
6581 gdbarch_floatformat_for_type returns a nullptr.
6582
fb7806c7
TV
65832019-05-21 Tom de Vries <tdevries@suse.de>
6584
6585 PR cli/24587
6586 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6587
34d11c68
AB
65882019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6589
6590 PR gdb/18644:
6591 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6592 16-byte floats.
6593 * i386-tdep.c (i386_floatformat_for_type): Use
6594 floatformats_ia64_quad for the 16-byte floating point component
6595 within a fortran 32-byte complex number.
6596
122cf0f2
AB
65972019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6598
6599 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6600 delete default constructor.
6601 (find_partial_die): Update to return const struct.
6602 (partial_die_parent_scope): Move variable declaration into scope
6603 of its use and change its type to auto.
6604 (guess_partial_die_structure_name): Likewise.
6605 (partial_die_info::fixup): Likewise.
6606
33d0e35a
TT
66072019-05-17 Tom Tromey <tromey@adacore.com>
6608
6609 * source.c (find_and_open_source): Remove cast.
6610
a45575b0
TT
66112019-05-17 Tom Tromey <tromey@adacore.com>
6612
6613 * annotate.c (annotate_source): Make "filename" const.
6614 * annotate.h (annotate_source): Use const.
6615
81f47ac2
AH
66162019-05-17 Alan Hayward <alan.hayward@arm.com>
6617
6618 * disasm.c (set_disassembler_options): Send errors to stderr.
6619
ca1285d1
AH
66202019-05-17 Alan Hayward <alan.hayward@arm.com>
6621
6622 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6623 (cli_interp_base::set_logging): Check debug_redirect.
6624 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6625 * cli/cli-logging.c (debug_redirect): Add static variable.
6626 (pop_output_files): Add default param.
6627 (handle_redirections): Print debug setting.
6628 (show_logging_command): Likewise.
6629 (_initialize_cli_logging): Add debugredirect command.
6630 * interps.c (current_interp_set_logging): Add debug_redirect
6631 parameter.
6632 * interps.h (set_logging): Add debug_redirect parameter.
6633 (current_interp_set_logging): Likewise.
6634 * mi/mi-common.h: Likewise.
6635 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6636
66372019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
6638 Tom Tromey <tromey@adacore.com>
6639
6640 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6641 directly.
6642 * cli/cli-interp.h (make_logging_output): Remove declaration.
6643 * cli/cli-logging.c (make_logging_output): Remove function.
6644 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6645 directly.
6646 * ui-file.c (tee_file::tee_file): Remove bools.
6647 (tee_file::~tee_file): Remove deletes.
6648 * ui-file.h (tee_file): Remove bools.
6649
26648588
JV
66502019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6651
6652 * mi/mi-cmds.h (mi_cmd_complete): New function.
6653 * mi/mi-main.c (mi_cmd_complete): Likewise.
6654 * mi/mi-cmds.c: Define new MI command -complete.
6655 * NEWS: Mention new -complete command.
6656
6e035501
JV
66572019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6658
6659 * completer.h (complete): New function.
6660 * completer.c (complete): Likewise.
6661 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6662 function defined in completer.h.
6663
7d0e2ece
JV
66642019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6665
e79be6e5 6666 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 6667
fb816e8b
TV
66682019-05-17 Tom de Vries <tdevries@suse.de>
6669
6670 PR gdb/24094
6671 * dwarf2read.c (struct cu_partial_die_info): New struct.
6672 (find_partial_die): Return cu_partial_die_info.
6673 (partial_die_parent_scope, guess_partial_die_structure_name)
6674 (partial_die_info::fixup): Handle new return type of find_partial_die.
6675
677052f2
SDJ
66762019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6677
a1726c38 6678 PR breakpoints/24541
677052f2
SDJ
6679 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6680 "std::string", simplifying the algorithm.
6681
f3da9116
SDJ
66822019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6683
6684 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6685 (stap_static_probe_ops::get_probes): Likewise.
6686
f1bb75ab
SDJ
66872019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6688
6689 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6690 '-')" and "else if".
6691 (stap_parse_single_operand): Join checks for
6692 "gdbarch_stap_parse_special_token_p" and
6693 "gdbarch_stap_parse_special_token" in the same "if" statement.
6694 Invert check when verifying for operation on register
6695 displacement.
6696
3ca58cde
SDJ
66972019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6698
6699 * stap-probe.c (stap_get_opcode): Update comment.
6700 (stap_get_expected_argument_type): Likewise.
6701 (handle_stap_probe): Likewise.
6702
af2d9bee
SDJ
67032019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6704
6705 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6706 return type to 'bool'. Adjust comment. Use 'bool' when
6707 appropriate.
6708 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6709 * stap-probe.c (stap_parse_argument_1): Likewise.
6710 (stap_is_operator): Likewise.
6711 (stap_is_generic_prefix): Likewise.
6712 (stap_is_register_prefix): Likewise.
6713 (stap_is_register_indirection_prefix): Likewise.
6714 (stap_is_integer_prefix): Likewise.
6715 (stap_generic_check_suffix): Likewise.
6716 (stap_check_integer_suffix): Likewise.
6717 (stap_check_register_suffix): Likewise.
6718 (stap_check_register_indirection_suffix): Likewise.
6719 (stap_parse_register_operand): Likewise.
6720 (stap_parse_single_operand): Likewise.
6721 (stap_parse_argument_1): Likewise.
6722 (stap_probe::get_argument_count): Likewise.
6723 (stap_is_operator): Likewise.
6724
61c9c421
TT
67252019-05-16 Tom Tromey <tromey@adacore.com>
6726
6727 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6728 keyword to foreach.
6729
9ddc1af1
SM
67302019-05-15 Simon Marchi <simon.marchi@efficios.com>
6731
6732 * linux-thread-db.c (try_thread_db_load_1): Change return type
6733 to bool.
6734 (try_thread_db_load): Likewise.
6735 (try_thread_db_load_from_pdir_1): Likewise.
6736 (try_thread_db_load_from_pdir): Likewise.
6737 (try_thread_db_load_from_sdir): Likewise.
6738 (try_thread_db_load_from_dir): Likewise.
6739 (thread_db_load_search): Likewise.
6740 (has_libpthread): Likewise.
6741 (thread_db_load): Likewise.
6742
7bede828
SDJ
67432019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6744
6745 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6746 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6747 NULL, and complain/return if that's the case.
6748
c5358db4
JD
67492019-05-15 John Darrington <john@darrington.wattle.id.au>
6750
6751 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6752 (advance, posn, abstract_read_memory): New functions.
6753 [struct mem_read_abstraction]: New struct.
6754 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6755
c408a94f
TT
67562019-05-14 Tom Tromey <tromey@adacore.com>
6757
6758 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6759 value is not lval_memory.
6760
e7bd7fba
TT
67612019-05-14 Tom Tromey <tromey@adacore.com>
6762
6763 * solib.c (info_sharedlibrary_command): Style the file name.
6764
a6d0f249
AH
67652019-05-14 Alan Hayward <alan.hayward@arm.com>
6766
6767 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6768 (aarch64_vnv_type): Likewise.
6769 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6770 * common/tdesc.c: Likewise.
6771 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6772 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6773 * features/aarch64-fpu.xml: Add ieee half view.
6774 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6775 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6776 * gdbtypes.h (struct builtin_type): Likewise.
6777 (struct objfile_type): Likewise.
6778
66b8bb74
SM
67792019-05-12 Paul Naert <paul.naert@polymtl.ca>
6780
6781 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6782 typo.
6783 * location.h (string_to_event_location): Likewise.
6784
21c219fd
JB
67852019-05-11 Joel Brobecker <brobecker@adacore.com>
6786
6787 GDB 8.3 released.
6788
13674803
SM
67892019-05-10 Simon Marchi <simon.marchi@efficios.com>
6790
6791 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6792 New variable declaration.
6793 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6794 New variable.
6795 (print_one_breakpoint): Use ui_out::test_flags and new global
6796 variable to compute use_fixed_output.
6797 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6798 Remove.
6799 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6800 (mi_multi_location_breakpoint_output_fixed): Remove.
6801 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6802 new variable.
6803 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6804 fix_multi_location_breakpoint_output flag if version >= 3.
6805 * ui-out.h (enum ui_out_flag)
6806 <fix_multi_location_breakpoint_output>: New enumerator.
6807
a9eac7f9
SM
68082019-05-10 Simon Marchi <simon.marchi@efficios.com>
6809
6810 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6811
71bed2db
TT
68122019-05-10 Tom Tromey <tromey@adacore.com>
6813
6814 * ada-lang.c (catch_ada_completer): New function.
6815 (_initialize_ada_language): Use it.
6816
24c54127
TT
68172019-05-10 Tom Tromey <tromey@adacore.com>
6818
6819 * thread.c (print_thread_info): Make "requested_threads" const.
6820 * gdbthread.h (print_thread_info): Make "requested_threads"
6821 const.
6822 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6823 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6824
7a102139
TT
68252019-05-08 Tom Tromey <tom@tromey.com>
6826
6827 * gdbtypes.c (objfile_type_data): Change type.
6828 (objfile_type, _initialize_gdbtypes): Update.
6829
924d79e2
TT
68302019-05-08 Tom Tromey <tom@tromey.com>
6831
6832 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6833 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6834 (_initialize_dwarf2_frame): Update.
6835
4c58e337
TT
68362019-05-08 Tom Tromey <tom@tromey.com>
6837
6838 * objc-lang.c (objc_objfile_data): Change type.
6839 (find_methods): Update.
6840 (_initialize_objc_lang): Remove.
6841
d772d2ab
TT
68422019-05-08 Tom Tromey <tom@tromey.com>
6843
6844 * stabsread.c (rs6000_builtin_type_data): Change type.
6845 (rs6000_builtin_type, _initialize_stabsread): Update.
6846
d11d83f4
TT
68472019-05-08 Tom Tromey <tom@tromey.com>
6848
6849 * mips-tdep.c (mips_pdr_data): Remove.
6850 (_initialize_mips_tdep): Update.
6851
9a73f0ad
TT
68522019-05-08 Tom Tromey <tom@tromey.com>
6853
6854 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6855 (hppa_init_objfile_priv_data, read_unwind_info)
6856 (find_unwind_entry, _initialize_hppa_tdep): Update.
6857
8127a2fa
TT
68582019-05-08 Tom Tromey <tom@tromey.com>
6859
6860 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6861 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6862 on obstack.
6863 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6864
91d3055d
TT
68652019-05-08 Tom Tromey <tom@tromey.com>
6866
6867 * mdebugread.c (basic_type_data): Change type.
6868 (basic_type, _initialize_mdebugread): Update.
6869
31930bd3
TT
68702019-05-08 Tom Tromey <tom@tromey.com>
6871
6872 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6873
bdb3ed9e
TT
68742019-05-08 Tom Tromey <tom@tromey.com>
6875
6876 * nto-tdep.c (nto_inferior_data_reg): Change type.
6877 (nto_inferior_data): Update.
6878 (nto_inferior_data_cleanup, nto_new_inferior_data)
6879 (_initialize_nto_tdep): Remove.
6880 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6881
f37b313d
TT
68822019-05-08 Tom Tromey <tom@tromey.com>
6883
6884 * ada-lang.c (struct ada_inferior_data): Add initializers.
6885 (ada_inferior_data): Change type.
6886 (ada_inferior_data_cleanup): Remove.
6887 (get_ada_inferior_data, ada_inferior_exit)
6888 (struct ada_pspace_data): Add initializers, destructor.
6889 (ada_pspace_data_handle): Change type.
6890 (get_ada_pspace_data): Update.
6891 (ada_pspace_data_cleanup): Remove.
6892
24699405
TT
68932019-05-08 Tom Tromey <tom@tromey.com>
6894
6895 * coffread.c (struct coff_symfile_info): Add initializers.
6896 (coff_objfile_data_key): Move lower. Change type.
6897 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6898 Update.
6899 (coff_free_info): Remove.
6900
d4e05d2f
TT
69012019-05-08 Tom Tromey <tom@tromey.com>
6902
6903 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6904 (fbsd_pspace_data_handle): Move lower. Change type.
6905 (get_fbsd_pspace_data): Update.
6906 (fbsd_pspace_data_cleanup): Remove.
6907 (_initialize_fbsd_tdep): Update.
6908
14ef6690
TT
69092019-05-08 Tom Tromey <tom@tromey.com>
6910
6911 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6912 (get_ada_tasks_pspace_data): Update.
6913 (ada_tasks_pspace_data_cleanup): Remove.
6914 (_initialize_tasks): Update.
6915 (ada_tasks_inferior_data_handle): Change type.
6916 (get_ada_tasks_inferior_data): Update.
6917 (ada_tasks_inferior_data_cleanup): Remove.
6918 (struct ada_tasks_pspace_data): Add initializers.
6919
814cf43a
TT
69202019-05-08 Tom Tromey <tom@tromey.com>
6921
6922 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6923 * symfile-debug.c (debug_sym_get_probes): Change type.
6924 * stap-probe.c (handle_stap_probe):
6925 (stap_static_probe_ops::get_probes): Change type.
6926 * probe.h (class static_probe_ops) <get_probes>: Change type.
6927 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6928 (parse_probes_in_pspace): Update.
6929 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6930 Update.
6931 (any_static_probe_ops::get_probes): Change type.
6932 * elfread.c (elfread_data): New typedef.
6933 (probe_key): Change type.
6934 (elf_get_probes): Likewise. Update.
6935 (probe_key_free): Remove.
6936 (_initialize_elfread): Update.
6937 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6938 Change type.
6939 (dtrace_process_dof_probe, dtrace_process_dof)
6940 (dtrace_static_probe_ops::get_probe): Change type.
6941
02dc647e
TT
69422019-05-08 Tom Tromey <tom@tromey.com>
6943
6944 * xcoffread.c (struct xcoff_symfile_info): Rename from
6945 coff_symfile_info. Add initializers.
6946 (xcoff_objfile_data_key): Move lower. Change type.
6947 (XCOFF_DATA): Rewrite.
6948 (xcoff_free_info): Remove.
6949 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6950 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6951 (xcoff_initial_scan): Update.
6952
09232438
TT
69532019-05-08 Tom Tromey <tom@tromey.com>
6954
6955 * solib-svr4.c (struct svr4_info): Add initializers and
6956 destructor.
6957 <probes_table>: Now an htab_up.
6958 (solib_svr4_pspace_data): Change type.
6959 (free_probes_table): Simplify.
6960 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6961 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6962 (probes_table_remove_objfile_probes, register_solib_event_probe)
6963 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6964 (_initialize_svr4_solib): Update.
6965
7b4a314f
TT
69662019-05-08 Tom Tromey <tom@tromey.com>
6967
6968 * remote.c (remote_pspace_data): Change type.
6969 (remote_pspace_data_cleanup): Remove.
6970 (get_remote_exec_file, set_pspace_remote_exec_file)
6971 (_initialize_remote): Update.
6972
51d3063a
TT
69732019-05-08 Tom Tromey <tom@tromey.com>
6974
6975 * breakpoint.c (breakpoint_objfile_key): Change type.
6976 (get_breakpoint_objfile_data): Update.
6977 (free_breakpoint_objfile_data): Remove.
6978 (_initialize_breakpoint): Update.
6979
89fb8848
TT
69802019-05-08 Tom Tromey <tom@tromey.com>
6981
6982 * linux-tdep.c (struct linux_info): Add initializers.
6983 (linux_inferior_data): Move. Change type.
6984 (invalidate_linux_cache_inf): Update.
6985 (linux_inferior_data_cleanup): Remove.
6986 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6987
e9b89e2d
TT
69882019-05-08 Tom Tromey <tom@tromey.com>
6989
6990 * auxv.c (auxv_inferior_data): Move. Change type.
6991 (auxv_inferior_data_cleanup): Remove.
6992 (invalidate_auxv_cache_inf): Rewrite.
6993 (get_auxv_inferior_data, _initialize_auxv): Update.
6994
8c42777c
TT
69952019-05-08 Tom Tromey <tom@tromey.com>
6996
6997 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6998 (symfile_debug_objfile_data_key): Change type.
6999 (symfile_debug_installed, debug_qf_has_symbols)
7000 (debug_qf_find_last_source_symtab)
7001 (debug_qf_forget_cached_source_info)
7002 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7003 (debug_qf_print_stats, debug_qf_dump)
7004 (debug_qf_expand_symtabs_for_function)
7005 (debug_qf_expand_all_symtabs)
7006 (debug_qf_expand_symtabs_with_fullname)
7007 (debug_qf_map_matching_symbols)
7008 (debug_qf_expand_symtabs_matching)
7009 (debug_qf_find_pc_sect_compunit_symtab)
7010 (debug_qf_map_symbol_filenames)
7011 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7012 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7013 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7014 (debug_sym_read_linetable, debug_sym_relocate): Update.
7015 (symfile_debug_free_objfile): Remove.
7016 (install_symfile_debug_logging, _initialize_symfile_debug):
7017 Update.
7018
5bfd760d
TT
70192019-05-08 Tom Tromey <tom@tromey.com>
7020
7021 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7022 allocate_on_obstack.
7023 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7024 (get_dwarf2_per_objfile): Update.
7025 (set_dwarf2_per_objfile): Remove.
7026 (dwarf2_has_info, dwarf2_get_section_info): Update.
7027 (dwarf2_free_objfile): Remove.
7028 (_initialize_dwarf2_read): Update.
7029
e85e19b4
TT
70302019-05-08 Tom Tromey <tom@tromey.com>
7031
7032 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7033 initializers.
7034 <unsupported_script_warning_printed,
7035 script_not_found_warning_printed>: Now bool.
7036 (auto_load_pspace_data): Change type.
7037 (~auto_load_pspace_info): Rename from
7038 auto_load_pspace_data_cleanup.
7039 (get_auto_load_pspace_data, init_loaded_scripts_info)
7040 (clear_section_scripts, maybe_print_unsupported_script_warning)
7041 (maybe_print_script_not_found_warning, _initialize_auto_load):
7042 Update.
7043
f6aa7436
TT
70442019-05-08 Tom Tromey <tom@tromey.com>
7045
7046 * objfiles.c (objfile_pspace_info): Add destructor and
7047 initializers.
7048 (objfiles_pspace_data): Change type.
7049 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7050 (get_objfile_pspace_data): Update.
7051 (objfiles_bfd_data): Change type.
7052 (get_objfile_bfd_data): Update.
7053 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7054
6ae614f6
TT
70552019-05-08 Tom Tromey <tom@tromey.com>
7056
7057 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7058 Change type.
7059 (get_catch_syscall_inferior_data): Update.
7060 (catch_syscall_inferior_data_cleanup): Remove.
7061 (_initialize_break_catch_syscall): Update.
7062
6509b8eb
TT
70632019-05-08 Tom Tromey <tom@tromey.com>
7064
7065 * inflow.c (struct terminal_info): Add destructor and
7066 initializers.
7067 (inflow_inferior_data): Change type.
7068 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7069 (get_inflow_inferior_data, inflow_inferior_exit)
7070 (swap_terminal_info, _initialize_inflow): Update.
7071
35632941
TT
70722019-05-08 Tom Tromey <tom@tromey.com>
7073
7074 * target-dcache.c (target_dcache_cleanup): Remove.
7075 (target_dcache_aspace_key): Change type.
7076 (target_dcache_init_p, target_dcache_invalidate)
7077 (target_dcache_get, target_dcache_get_or_init)
7078 (_initialize_target_dcache): Update.
7079 * dcache.h (struct dcache_deleter): New.
7080
3017b94d
TT
70812019-05-08 Tom Tromey <tom@tromey.com>
7082
7083 * symtab.c (struct symbol_cache): Add destructor and
7084 initializers.
7085 (symbol_cache_key): Move. Change type.
7086 (make_symbol_cache, free_symbol_cache): Remove.
7087 (get_symbol_cache): Update.
7088 (symbol_cache_cleanup): Remove.
7089 (ALL_PSPACES, symbol_cache_flush)
7090 (maintenance_print_symbol_cache)
7091 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7092 Update.
7093
a32ad8c5
TT
70942019-05-08 Tom Tromey <tom@tromey.com>
7095
7096 * symtab.c (struct main_info): Add destructor and initializers.
7097 (main_progspace_key): Move. Change type.
7098 (get_main_info): Update.
7099 (main_info_cleanup): Remove.
7100 (_initialize_symtab): Update.
7101
5f6e90a0
TT
71022019-05-08 Tom Tromey <tom@tromey.com>
7103
7104 * registry.h (DECLARE_REGISTRY): Define the _key class.
7105
1bd0c6e4
AB
71062019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7107
7108 * NEWS: Merge two 'New commands' sections.
7109
2228ef77
XR
71102019-05-08 Joel Brobecker <brobecker@adacore.com>
7111
7112 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7113 parameter and use Ada language definition instead.
7114 (ada_val_print_ptr): Remove unused language parameter.
7115 (ada_val_print_num): Remove language parameter and use Ada language
7116 definition instead.
7117 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7118 parameter.
7119 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7120 parameter and use Ada language definition instead.
7121 (ada_val_print_1): Update all ada_val_print_xxx calls.
7122 Remove language parameter.
7123 (ada_val_print): Update ada_val_print_1 call.
7124
60fcc1c3
TT
71252019-05-08 Tom Tromey <tromey@adacore.com>
7126
7127 * remote.c (remote_hw_watchpoint_limit)
7128 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7129 Now static.
7130
ed2b7c17
TT
71312019-05-08 Tom Tromey <tromey@adacore.com>
7132
7133 * maint.c (_initialize_maint_cmds): Move initialization code to
7134 remote.c.
7135 (watchdog, show_watchdog): Move to remote.c.
7136 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7137 "watchdog" static.
7138 (_initialize_remote): Move initialization code from maint.c.
7139 * defs.h (watchdog): Don't declare.
7140
b0be6c91
TT
71412019-05-08 Tom Tromey <tromey@adacore.com>
7142
7143 * tui/tui-interp.c: Include main.h.
7144 * interps.c: Include main.h.
7145 * main.h (interpreter_p): Declare.
7146 * defs.h (interpreter_p): Don't declare.
7147
587ee17b
TT
71482019-05-08 Tom Tromey <tromey@adacore.com>
7149
7150 * dwarf2loc.c: Include dwarf2read.h.
7151 * defs.h (read_unsigned_leb128): Don't declare.
7152 * dwarf2read.h (read_unsigned_leb128): Declare.
7153
ca1df239
TT
71542019-05-08 Tom Tromey <tromey@adacore.com>
7155
7156 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7157 method.
7158
99f20f08
TT
71592019-05-08 Tom Tromey <tromey@adacore.com>
7160
7161 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7162 when no wrap column is set.
7163
80e55b13
TT
71642019-05-08 Tom Tromey <tromey@adacore.com>
7165
7166 * c-lang.c (c_get_string): Handle non-C-style arrays.
7167
9d3421af
TT
71682019-05-08 Tom Tromey <tromey@adacore.com>
7169
7170 * typeprint.c (print_offset_data::update): Print the bit offset,
7171 not the number of bits remaining.
7172
844333e2
TT
71732019-05-08 Tom Tromey <tromey@adacore.com>
7174
7175 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7176 padding at end of comment.
7177
988915ee
TT
71782019-05-08 Tom Tromey <tromey@adacore.com>
7179
7180 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7181 Compare main types.
7182
26bfd823
TT
71832019-05-06 Tom Tromey <tom@tromey.com>
7184
7185 * common/scoped_mmap.c: Include common-defs.h.
7186 * common/scoped_mmap.h: Don't include config.h.
7187
89055eaa
TT
71882019-05-04 Tom Tromey <tom@tromey.com>
7189
7190 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7191 (struct aarch64_call_info): Add initializers.
7192 <si>: Now a std::vector.
7193 (pass_on_stack, aarch64_push_dummy_call): Update.
7194
5da01df5
TT
71952019-05-04 Simon Marchi <simon.marchi@efficios.com>
7196 Tom Tromey <tom@tromey.com>
7197
7198 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7199 (ppc_threads): Now a std::vector. Now static.
7200 (hwdebug_find_thread_points_by_tid)
7201 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7202 Update.
7203
fbdf05a1
TT
72042019-05-04 Tom Tromey <tom@tromey.com>
7205
7206 * arc-tdep.c (arc_tdesc_init): Return bool.
7207
06d16ec9
TT
72082019-05-04 Tom Tromey <tom@tromey.com>
7209
7210 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7211 Use gdb_assert_not_reached.
7212
9c056022
TT
72132019-05-04 Tom Tromey <tom@tromey.com>
7214
7215 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7216 "false".
7217
fa9c2a59
TT
72182019-05-04 Tom Tromey <tom@tromey.com>
7219
7220 * arc-tdep.c (arc_tdesc_init): Use bool.
7221
e2eb806a
TT
72222019-05-04 Tom Tromey <tom@tromey.com>
7223
7224 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7225
6fe87677
TT
72262019-05-04 Tom Tromey <tom@tromey.com>
7227
7228 * cli/cli-cmds.c (valid_command_p): Return bool.
7229
7f008c9e
TT
72302019-05-04 Tom Tromey <tom@tromey.com>
7231
7232 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7233 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7234
b6484282
RT
72352019-05-04 Raul Tambre <raul@tambre.ee>
7236
7237 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7238 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7239 operator for comparison.
7240
af97b416
TT
72412019-05-04 Tom Tromey <tom@tromey.com>
7242
7243 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7244 (lookup_partial_symbol, print_partial_symbols)
7245 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7246 (psymbol_compare): Update.
7247 (add_psymbol_to_bcache): Clear the entire psymbol.
7248 (maintenance_check_psymtabs): Update.
7249 * psympriv.h (struct partial_symbol): Don't derive from
7250 general_symbol_info.
7251 <obj_section, unrelocated_address, address,
7252 set_unrelocated_address>: Update.
7253 <ginfo>: New member.
7254 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7255 (debug_names::write_psymbols): Update.
7256
9d6d4be8
TV
72572019-05-04 Tom de Vries <tdevries@suse.de>
7258
7259 * contrib/cc-with-tweaks.sh: Support -n arg.
7260
66452beb
PW
72612019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7262
7263 * corelow.c (core_target::detach): Ensure frame cache and
7264 register caches are cleared.
7265 inferior.c (exit_inferior_1): Likewise.
7266
bde09ab7
TT
72672019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7268 Tom Tromey <tom@tromey.com>
7269
7270 * dictionary.c (collate_pending_symbols_by_language): Remove
7271 "struct" from foreach.
7272 * symtab.c (lookup_global_symbol_from_objfile)
7273 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7274 foreach.
7275 * ser-tcp.c (net_open): Remove "struct" from foreach.
7276 * objfiles.c (objfile_relocate, objfile_rebase)
7277 (objfile_has_symbols): Remove "struct" from foreach.
7278 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7279 from foreach.
7280 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7281 foreach.
7282 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7283 "struct" from foreach.
7284 * ada-lang.c (create_excep_cond_exprs)
7285 (ada_exception_catchpoint_cond_string): Remove "struct" from
7286 foreach.
7287
222a8d25
TT
72882019-05-03 Tom Tromey <tromey@adacore.com>
7289
7290 * ada-exp.y (convert_char_literal): Check suffix of each
7291 enumerator.
7292
fcd60b84
DP
72932019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7294
7295 PR ada/21406:
7296 * ada-exp.y (yywrap): Don't define.
7297 * ada-lex.l (%option): Add noyywrap
7298 (yywrap): Remove.
7299
5f2459c2
EZ
73002019-05-03 Eli Zaretskii <eliz@gnu.org>
7301
353ea2d1
EZ
7302 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7303 _WIN32_WINNT to the XP level, unless already defined to a higher
7304 level.
7305
7306 * unittests/parse-connection-spec-selftests.c:
7307 * ser-tcp.c:
7308 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7309 override.
7310
5f2459c2
EZ
7311 * symfile.c (find_separate_debug_file): Remove colon from the
7312 drive spec of DOS/Windows file names of the target, so that the
7313 file name produced from DEBUGDIR and the target's directory will
7314 be valid on DOS/Windows systems.
7315
80062eb9
AB
73162019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7317
7318 * rust-lang.c (val_print_struct): Handle printing structures
7319 containing strings.
7320
b8c05e85
TT
73212019-05-02 Tom Tromey <tromey@adacore.com>
7322
7323 * valarith.c (_initialize_valarith): Remove.
7324
4504bbde
TT
73252019-05-01 Tom Tromey <tromey@adacore.com>
7326
7327 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7328 bitfields.
7329
d48e62f4
TT
73302019-05-01 Tom Tromey <tromey@adacore.com>
7331
7332 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7333 for big-endian copies.
7334
15f18d14
AT
73352019-04-30 Ali Tamur <tamur@google.com>
7336 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7337 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7338 (read_3_bytes): New function.
7339
ab4ee614
JB
73402019-04-30 Joel Brobecker <brobecker@adacore.com>
7341
7342 * windows-nat.c (main_thread_id): Delete.
7343 (handle_output_debug_string): Replace main_thread_id by
7344 current_event.dwThreadId.
7345 (fake_create_process): Likewise.
7346 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7347 Do not set main_thread_id.
7348 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7349 current_event.dwThreadId.
7350 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7351
8ed5b76e
JB
73522019-04-30 Joel Brobecker <brobecker@adacore.com>
7353
7354 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7355 Use current_event.dwThreadId instead of main_thread_id.
7356
2ff0a947
TT
73572019-04-30 Tom Tromey <tromey@adacore.com>
7358
7359 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7360 (create_excep_cond_exprs): Iterate over program spaces.
7361 (ada_exception_catchpoint_cond_string): Examine all minimal
7362 symbols for exception types.
7363
a776957c
TT
73642019-04-30 Tom Tromey <tromey@adacore.com>
7365
7366 PR c++/24470:
7367 * dwarf2read.c (process_structure_scope): Handle case where type
7368 has template parameters but no symbol was created.
7369
bc68014d
AB
73702019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7371 Chris January <chris.january@arm.com>
7372
7373 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7374 qualifier.
7375 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7376
f1fdc960
AB
73772019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7378
7379 * f-typeprint.c (f_print_type): Update rules for printing
7380 whitespace.
7381 (f_type_print_varspec_suffix): Likewise.
7382
bf7a4de1
AB
73832019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7384 Chris January <chris.january@arm.com>
7385
7386 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7387 function arguments.
7388
bbe75b9d
AB
73892019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7390
7391 * f-lang.c (build_fortran_types): Change name of void type to
7392 lower case.
7393 * f-typeprint.c (f_type_print_base): Print the name of the void
7394 type, rather than a fixed string.
7395 * f-valprint.c (f_decorations): Use lower case void string.
7396
1db455a7
AB
73972019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7398 Chris January <chris.january@arm.com>
7399
7400 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7401 types for Fortran.
7402
b6d03bb2
AB
74032019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7404 Chris January <chris.january@arm.com>
7405 David Lecomber <david.lecomber@arm.com>
7406
7407 * f-exp.y (BINOP_INTRINSIC): New token.
7408 (exp): New parser rule handling BINOP_INTRINSIC.
7409 (f77_keywords): Add new builtin procedures.
7410 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7411 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7412 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7413 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7414 (print_unop_subexp_f): New function.
7415 (print_binop_subexp_f): New function.
7416 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7417 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7418 (dump_subexp_body_f): Likewise.
7419 (operator_check_f): Likewise.
7420 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7421 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7422
83228e93
AB
74232019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7424
7425 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7426 UNOP_KIND.
7427 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7428 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7429 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7430 (operator_length_f): New fuction.
7431 (print_subexp_f): New function.
7432 (op_name_f): New function.
7433 (dump_subexp_body_f): New function.
7434 (operator_check_f): New function.
7435 (exp_descriptor_f): Replace standard expression handling functions
7436 with new functions.
7437 * gdb/fortran-operator.def: New file.
7438 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7439 * gdb/std-operator.def: Remove UNOP_KIND.
7440
6fdcd7cc
AB
74412019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7442
7443 * std-operator.def: Remove unbalanced, stray double quote
7444 character.
7445
2e62ab40
AB
74462019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7447 Chris January <chris.january@arm.com>
7448 Daniel Everett <daniel.everett@arm.com>
7449 Nick Forrington <nick.forrington@arm.com>
7450 Richard Bunt <richard.bunt@arm.com>
7451
7452 * cp-valprint.c (cp_print_value_fields): Allow an additional level
7453 of depth when printing anonymous structs or unions.
7454 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7455 Don't print either the top-level value, or the children if the
7456 max-depth is exceeded.
7457 (ppscm_print_children): When printing the key of a map, allow one
7458 extra level of depth.
7459 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7460 print either the top-level value, or the children if the max-depth
7461 is exceeded.
7462 (print_children): When printing the key of a map, allow one extra
7463 level of depth.
7464 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7465 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7466 (user_print_options): Initialise max_depth field.
7467 (val_print_scalar_or_string_type_p): New function.
7468 (val_print): Check to see if the max depth has been reached.
7469 (val_print_check_max_depth): Define new function.
7470 (show_print_max_depth): New function.
7471 (_initialize_valprint): Add 'print max-depth' option.
7472 * valprint.h (struct value_print_options) <max_depth>: New field.
7473 (val_print_check_max_depth): Declare new function.
7474 * NEWS: Document new feature.
7475
4be290b2
AB
74762019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7477
7478 * ada-lang.c (ada_language_defn): Initialise new field.
7479 * c-lang.c (c_is_string_type_p): New function.
7480 (c_language_defn): Initialise new field.
7481 (cplus_language_defn): Initialise new field.
7482 (asm_language_defn): Initialise new field.
7483 (minimal_language_defn): Initialise new field.
7484 * c-lang.h (c_is_string_type_p): Declare new function.
7485 * d-lang.c (d_language_defn): Initialise new field.
7486 * f-lang.c (f_is_string_type_p): New function.
7487 (f_language_defn): Initialise new field.
7488 * go-lang.c (go_is_string_type_p): New function.
7489 (go_language_defn): Initialise new field.
7490 * language.c (default_is_string_type_p): New function.
7491 (unknown_language_defn): Initialise new field.
7492 (auto_language_defn): Initialise new field.
7493 * language.h (struct language_defn) <la_is_string_type_p>: New
7494 member variable.
7495 (default_is_string_type_p): Declare new function.
7496 * m2-lang.c (m2_language_defn): Initialise new field.
7497 * objc-lang.c (objc_language_defn): Initialise new field.
7498 * opencl-lang.c (opencl_language_defn): Initialise new field.
7499 * p-lang.c (pascal_is_string_type_p): New function.
7500 (pascal_language_defn): Initialise new field.
7501 * rust-lang.c (rust_is_string_type_p): New function.
7502 (rust_language_defn): Initialise new field.
7503
721b08c6
AB
75042019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7505
7506 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7507 New field.
7508 * ada-lang.c (ada_language_defn): Initialise new field.
7509 * c-lang.c (c_language_defn): Likewise.
7510 (cplus_language_defn): Likewise.
7511 (asm_language_defn): Likewise.
7512 (minimal_language_defn): Likewise.
7513 * d-lang.c (d_language_defn): Likewise.
7514 * f-lang.c (f_language_defn): Likewise.
7515 * go-lang.c (go_language_defn): Likewise.
7516 * language.c (unknown_language_defn): Likewise.
7517 (auto_language_defn): Likewise.
7518 * m2-lang.c (m2_language_defn): Likewise.
7519 * objc-lang.c (objc_language_defn): Likewise.
7520 * opencl-lang.c (opencl_language_defn): Likewise.
7521 * p-lang.c (pascal_language_defn): Likewise.
7522 * rust-lang.c (rust_language_defn): Likewise.
7523
fc913e53
AB
75242019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7525
7526 * ada-lang.c (ada_is_character_type): Change return type to bool.
7527 (ada_is_string_type): Likewise.
7528 * ada-lang.h (ada_is_character_type): Update declaration
7529 (ada_is_string_type): Likewise.
7530
fa731fa0
PW
75312019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7532
7533 Support style in 'frame|thread apply'
7534
7535 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7536 * record.c (record_start, record_stop): Update callers of
7537 execute_command_to_string with false.
7538 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7539 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7540 methods.
7541 (class string_file): New constructor with term_out parameter.
7542 Override methods term_out and can_emit_style_escape. New member
7543 term_out.
7544 (class stdio_file): Override can_emit_style_escape.
7545 (class tee_file): Override term_out and can_emit_style_escape.
7546 * utils.h (can_emit_style_escape): Remove.
7547 * utils.c (can_emit_style_escape): Likewise.
7548 Update all callers of can_emit_style_escape (SOMESTREAM) to
7549 SOMESTREAM->can_emit_style_escape.
7550 * source-cache.c (source_cache::get_source_lines): Likewise.
7551 * stack.c (frame_apply_command_count): Call execute_command_to_string
7552 passing the term_out characteristic of the current gdb_stdout.
7553 * thread.c (thr_try_catch_cmd): Likewise.
7554 * top.c (execute_command_to_string): pass term_out parameter
7555 to construct the string_file for the command output.
7556 * ui-file.c (term_cli_styling): New function (most code moved
7557 from utils.c can_emit_style_escape).
7558 (string_file::string_file, string_file::can_emit_style_escape,
7559 stdio_file::can_emit_style_escape, tee_file::term_out,
7560 tee_file::can_emit_style_escape): New functions.
7561
136afab8
PW
75622019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7563
7564 * NEWS: Mention the new set|show may-call-functions.
7565 * infcall.c (may_call_functions_p): New variable.
7566 (show_may_call_functions_p): New function.
7567 (call_function_by_hand_dummy): Throws an error if not
7568 may-call-functions.
7569 (_initialize_infcall): Call add_setshow_boolean_cmd for
7570 may-call-functions.
7571
725cbb63
KS
75722019-04-25 Keith Seitz <keiths@redhat.com>
7573
7574 PR c++/24367
7575 * cp-support.c (inspect_type): Don't attempt substitutions
7576 of symbol with the same name.
7577
3d1cbb78
TT
75782019-04-25 Tom Tromey <tromey@adacore.com>
7579
7580 PR gdb/24475:
7581 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7582 static.
7583
94aeb44b
TT
75842019-04-25 Tom Tromey <tromey@adacore.com>
7585
7586 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7587 rvalue reference.
7588 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7589 (gdb_xml_parser::parse): Use std::move.
7590 * python/python-internal.h (gdbpy_convert_exception): Take a const
7591 reference.
7592 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7593 std::move.
7594 * python/py-utils.c (gdbpy_convert_exception): Take a const
7595 reference.
7596 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7597 Use std::move.
7598 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7599 Use std::move.
7600 * mi/mi-main.c (mi_print_exception): Take a const reference.
7601 * main.c (handle_command_errors): Take a const reference.
7602 * linespec.c (parse_linespec): Use std::move.
7603 * infcall.c (run_inferior_call): Use std::move.
7604 (call_function_by_hand_dummy): Use std::move.
7605 * exec.c (try_open_exec_file): Use std::move.
7606 * exceptions.h (exception_print, exception_fprintf)
7607 (exception_print_same): Update.
7608 * exceptions.c (print_exception, exception_print)
7609 (exception_fprintf, exception_print_same): Change parameters to
7610 const reference.
7611 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7612 * common/new-op.c: Use std::move.
7613 * common/common-exceptions.h (struct gdb_exception): Add move
7614 constructor.
7615 (struct gdb_exception_error, struct gdb_exception_quit, struct
7616 gdb_quit_bad_alloc): Change constructor to move constructor.
7617 (throw_exception): Change parameter to rvalue reference.
7618 * common/common-exceptions.c (throw_exception): Take rvalue
7619 reference.
7620 * cli/cli-interp.c (safe_execute_command): Use std::move.
7621 * breakpoint.c (insert_bp_location, location_to_sals): Use
7622 std::move.
7623
680d7fd5
TT
76242019-04-25 Tom Tromey <tromey@adacore.com>
7625
7626 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7627 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7628 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7629 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7630 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7631 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7632 guile/scm-value.c: Use unpack.
7633 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7634 gdbscm_gdb_exception.
7635 (gdbscm_throw_gdb_exception): Likewise.
7636 (struct gdbscm_gdb_exception): New.
7637 (unpack): New function.
7638 (gdbscm_wrap): Use unpack.
7639
c6fdd8b2
TT
76402019-04-25 Tom Tromey <tromey@adacore.com>
7641
7642 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7643 (gdb_rl_callback_handler): Use std::move.
7644 * common/common-exceptions.h (struct gdb_exception): Add move
7645 assignment operator.
7646 (throw_exception_sjlj): Change "exception" to const reference.
7647 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7648 (throw_exception_sjlj): Change "exception" to const reference.
7649
cc06b668
TT
76502019-04-25 Tom Tromey <tromey@adacore.com>
7651
7652 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7653 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7654 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7655 Update.
7656 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7657 Update.
7658 * mi/mi-interp.c (mi_interp::exec): Update.
7659 * linespec.c (parse_linespec): Update.
7660 * infcall.c (run_inferior_call): Update.
7661 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7662 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7663 (gdbscm_lookup_global_symbol): Update.
7664 * guile/scm-param.c (gdbscm_parameter_value): Update.
7665 * guile/scm-frame.c (gdbscm_frame_read_register)
7666 (gdbscm_frame_read_var): Update.
7667 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7668 * exec.c (try_open_exec_file): Update.
7669 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7670 (gdb_rl_callback_handler): Update.
7671 * common/common-exceptions.h (exception_none): Don't declare.
7672 * common/common-exceptions.c (exception_none): Don't define.
7673 (struct catcher) <exception>: Update.
7674 * cli/cli-interp.c (safe_execute_command): Update.
7675 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7676
cf532bd1
AT
76772019-04-25 Ali Tamur <tamur@google.com>
7678
7679 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7680 (read_attribute_value): Likewise.
7681 (dwarf2_read_addr_index): Update comment.
7682 (read_str_index): Add DW_FORM_strx.
7683 (dwarf2_string_attr): Likewise.
7684 (dwarf2_const_value_attr): Likewise.
7685 (dump_die_shallow): Likewise.
7686 (dwarf2_fetch_constant_bytes): Likewise.
7687 (skip_form_bytes): Likewise.
7688 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7689
82433e3e
SDJ
76902019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7691
7692 PR corefiles/11608
7693 PR corefiles/18187
7694 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7695 OFFSET. Verify if current mapping contains an ELF header.
7696 (linux_find_memory_regions_full): Adjust call to
7697 dump_mapping_p.
7698
723adb65
SL
76992019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7700 Kang Li <kanglictf@gmail.com>
7701
7702 PR gdb/21600
7703
7704 * dwarf2-frame.c (read_initial_length): Be consistent about using
7705 unsigned representation of length.
7706 (decode_frame_entry_1): Likewise. Check for wraparound of
7707 end pointer as well as buffer overflow.
7708
596179f7
SDJ
77092019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7710
7711 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7712 "vq".
7713
a59240a4
TT
77142019-04-24 Tom Tromey <tromey@adacore.com>
7715
7716 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7717
f872fdbb
AB
77182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7719
7720 * s12z-tdep.c (s12z_unwind_pc): Delete.
7721 (s12z_unwind_sp): Delete.
7722 (s12z_gdbarch_init): Don't register deleted functions with
7723 gdbarch.
7724
b614e6f3
AB
77252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7726
7727 * rl78-tdep.c (rl78_unwind_sp): Delete.
7728 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7729
14faed38
AB
77302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7731
7732 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7733 (xstormy16_unwind_pc): Delete.
7734 (xstormy16_dummy_id): Delete.
7735 (xstormy16_gdbarch_init): Don't register deleted functions with
7736 gdbarch.
7737
541aad8a
AB
77382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7739
7740 * vax-tdep.c (vax_unwind_pc): Delete.
7741 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7742
29222070
AB
77432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7744
7745 * v850-tdep.c (v850_unwind_sp): Delete.
7746 (v850_unwind_pc): Delete.
7747 (v850_dummy_id): Delete.
7748 (v850_gdbarch_init): Don't register deleted functions with
7749 gdbarch.
7750
0f534d76
AB
77512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7752
7753 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7754 (tilegx_unwind_pc): Delete.
7755 (tilegx_unwind_dummy_id): Delete.
7756 (tilegx_gdbarch_init): Don't register deleted functions with
7757 gdbarch.
7758
1ba7b7f9
AB
77592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7760
7761 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7762 (tic6x_dummy_id): Delete.
7763 (tic6x_gdbarch_init): Don't register deleted functions with
7764 gdbarch.
7765
d31f262c
AB
77662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7767
7768 * sparc-tdep.c (sparc_unwind_pc): Delete.
7769 (sparc32_gdbarch_init): Don't register deleted function with
7770 gdbarch.
7771
6d14d64d
AB
77722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7773
7774 * sh-tdep.c (sh_unwind_sp): Delete.
7775 (sh_unwind_pc): Delete.
7776 (sh_dummy_id): Delete.
7777 (sh_gdbarch_init): Don't register deleted functions with
7778 gdbarch.
7779
a40dde9d
AB
77802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7781
7782 * score-tdep.c (score_unwind_sp): Delete.
7783 (score_unwind_pc): Delete.
7784 (score_dummy_id): Delete.
7785 (score_gdbarch_init): Don't register deleted functions with
7786 gdbarch.
7787
47c47d69
AB
77882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7789
7790 * rx-tdep.c (rx_unwind_pc): Delete.
7791 (rx_unwind_sp): Delete.
7792 (rx_dummy_id): Delete.
7793 (rx_gdbarch_init): Don't register deleted functions with
7794 gdbarch. Update comment.
7795
833a4480
AB
77962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7797
7798 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7799 (rs6000_dummy_id): Delete.
7800 (rs6000_gdbarch_init): Don't register deleted functions with
7801 gdbarch.
7802
3f2cef49
AB
78032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7804
7805 * or1k-tdep.c (or1k_dummy_id): Delete.
7806 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7807
96acf884
AB
78082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7809
7810 * nios2-tdep.c (nios2_dummy_id): Delete.
7811 (nios2_unwind_sp): Delete.
7812 (nios2_gdbarch_init): Don't register deleted functions with
7813 gdbarch.
7814
ca0ab0aa
AB
78152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7816
7817 * nds32-tdep.c (nds32_dummy_id): Delete.
7818 (nds32_unwind_pc): Delete.
7819 (nds32_unwind_sp): Delete.
7820 (nds32_gdbarch_init): Don't register deleted functions with
7821 gdbarch.
7822
c8259044
AB
78232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7824
7825 * msp430-tdep.c (msp430_unwind_pc): Delete.
7826 (msp430_unwind_sp): Delete.
7827 (msp430_dummy_id): Delete.
7828 (msp430_gdbarch_init): Don't register deleted functions with
7829 gdbarch.
7830
27f113c8
AB
78312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7832
7833 * moxie-tdep.c (moxie_unwind_sp): Delete.
7834 (moxie_unwind_pc): Delete.
7835 (moxie_dummy_id): Delete.
7836 (moxie_gdbarch_init): Don't register deleted functions with
7837 gdbarch.
7838
aee6c3cd
AB
78392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7840
7841 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7842 (mn10300_unwind_pc): Delete.
7843 (mn10300_unwind_sp): Delete.
7844 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7845 mn10300_unwind_sp.
7846 (mn10300_frame_unwind_init): Don't register deleted functions with
7847 gdbarch.
7848
8e2b5aea
AB
78492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7850
7851 * mep-tdep.c (mep_unwind_pc): Delete.
7852 (mep_unwind_sp): Delete.
7853 (mep_dummy_id): Delete.
7854 (mep_gdbarch_init): Don't register deleted functions with
7855 gdbarch.
7856
43cf3ede
AB
78572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7858
7859 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7860 (m68hc11_unwind_sp): Delete.
7861 (m68hc11_gdbarch_init): Don't register deleted functions with
7862 gdbarch.
7863
5e79b7bb
AB
78642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7865
7866 * m32r-tdep.c (m32r_unwind_sp): Delete.
7867 (m32r_unwind_pc): Delete.
7868 (m32r_dummy_id): Delete.
7869 (m32r_gdbarch_init): Don't register deleted functions with
7870 gdbarch.
7871
89b268d8
AB
78722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7873
7874 * m32c-tdep.c (m32c_unwind_pc): Delete.
7875 (m32c_unwind_sp): Delete.
7876 (m32c_dummy_id): Delete.
7877 (m32c_gdbarch_init): Don't register deleted functions with
7878 gdbarch.
7879
946c28d2
AB
78802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7881
7882 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7883 (lm32_unwind_pc): Delete.
7884 (lm32_dummy_id): Delete.
7885 (lm32_gdbarch_init): Don't register deleted functions with
7886 gdbarch.
7887
bf12844a
AB
78882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7889
7890 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7891 (iq2000_unwind_pc): Delete.
7892 (iq2000_dummy_id): Delete.
7893 (iq2000_gdbarch_init): Don't register deleted functions with
7894 gdbarch.
7895
ecbc06d2
AB
78962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7897
7898 * nds32-tdep.c (nds32_type_align): Delete.
7899 (nds32_push_dummy_call): Use type_align instead.
7900
030197b4
AB
79012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7902
7903 * arm-tdep.c (arm_type_align): Only handle vector override case.
7904 (arm_push_dummy_call): Use type_align.
7905 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7906
b907456c
AB
79072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7908
7909 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7910 case.
7911 (pass_on_stack): Use type_align.
7912 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7913 function.
7914
9e97ba43
TT
79152019-04-23 Tom Tromey <tromey@adacore.com>
7916
7917 * dwarf2read.c (line_header::file_name_at): Remove unused
7918 overload.
7919
6892f601
TV
79202019-04-23 Tom de Vries <tdevries@suse.de>
7921
7922 PR gdb/24438
7923 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7924 invocation.
7925
336d760d
AT
7926
79272019-03-27 Ali Tamur <tamur@google.com>
7928
7929 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7930 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7931 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7932 (dwarf_expr_context::get_addr_index): Likewise
7933 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7934 (symbol_needs_eval_context::get_addr_index): Likewise
7935 (disassemble_dwarf_expression): Add DW_OP_addrx
7936 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7937 (read_cutu_die_from_dwo): Update comment
7938 (skip_one_die): Add DW_FORM_addrx
7939 (read_attribute_value): Likewise
7940 (var_decode_location): Add DW_OP_addrx
7941 (dwarf2_const_value_attr): Add DW_FORM_addrx
7942 (dump_die_shallow): Likewise
7943 (dwarf2_fetch_constant_bytes): Likewise
7944 (decode_locdesc): Add DW_OP_addrx
7945 (skip_form_bytes): Add DW_FORM_addrx
7946
ad9d13f8
AT
79472019-04-22 Ali Tamur <tamur@google.com>
7948
7949 * MAINTAINERS (Write After Approval): Add self.
7950
d70cc3ba
SM
79512019-04-22 Simon Marchi <simon.marchi@efficios.com>
7952
7953 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7954 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7955 (open_symbol_file_object): Likewise.
7956 (svr4_default_sos): Add info parameter.
7957 (svr4_read_so_list): Likewise.
7958 (svr4_current_sos_direct): Adjust functions calls to pass down
7959 info.
7960 (svr4_current_sos_1): Add info parameter.
7961 (svr4_current_sos): Call get_svr4_info, pass info down to
7962 svr4_current_sos_1.
7963 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7964 get_svr4_info.
7965 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7966 get_svr4_info.
7967 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7968 to get_svr4_info.
7969 (probes_table_remove_objfile_probes): Likewise.
7970 (register_solib_event_probe): Add info parameter.
7971 (solist_update_incremental): Pass info parameter down to
7972 svr4_read_so_list.
7973 (disable_probes_interface): Add info parameter.
7974 (svr4_handle_solib_event): Pass current_program_space to
7975 get_svr4_info. Adjust disable_probes_interface cleanup.
7976 (svr4_create_probe_breakpoints): Add info parameter, pass it
7977 down to register_solib_event_probe.
7978 (svr4_create_solib_event_breakpoints): Add info parameter,
7979 pass it down to svr4_create_probe_breakpoints.
7980 (enable_break): Pass info down to
7981 svr4_create_solib_event_breakpoints.
7982 (svr4_solib_create_inferior_hook): Pass current_program_space to
7983 get_svr4_info.
7984 (svr4_clear_solib): Likewise.
7985
7905fc35
PA
79862019-04-22 Pedro Alves <palves@redhat.com>
7987
7988 * solib-svr4.c (svr4_free_objfile_observer): New.
7989 (probe_and_action::objfile): New field.
7990 (probes_table_htab_remove_objfile_probes)
7991 (probes_table_remove_objfile_probes): New functions.
7992 (register_solib_event_probe): Add 'objfile' parameter. Store it
7993 in the new probe_and_action. Don't store the probe in 'lookup'.
7994 (svr4_create_probe_breakpoints): Pass objfile to
7995 register_solib_event_probe.
7996 (_initialize_svr4_solib): Register a free_objfile observer.
7997
fb881986
TT
79982019-04-19 Tom Tromey <tom@tromey.com>
7999
8000 * common/queue.h: Remove.
8001
8732db6c
TT
80022019-04-19 Tom Tromey <tom@tromey.com>
8003
8004 * event-loop.c: Don't include "common/queue.h".
8005
97dfbadd
TT
80062019-04-19 Tom Tromey <tom@tromey.com>
8007
8008 * remote.c (remote_target): Use delete.
8009 * remote-notif.h: Include <list>, not "common/queue.h".
8010 (notif_client_p): Remove typedef.
8011 (remote_notif_state): Add constructor, destructor, initializer.
8012 <notif_queue>: Now a std::list.
8013 (remote_notif_state_xfree): Don't declare.
8014 * remote-notif.c (remote_notif_process, handle_notification)
8015 (remote_notif_state_allocate): Update.
8016 (~remote_notif_state): Rename from remote_notif_state_xfree.
8017
cf250e36
TT
80182019-04-19 Tom Tromey <tom@tromey.com>
8019
8020 * symfile.c (reread_symbols): Update.
8021 * objfiles.c (objfile_register_static_link)
8022 (objfile_lookup_static_link): Update
8023 (~objfile) Don't delete static_links.
8024 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8025
61f4b350
TT
80262019-04-19 Tom Tromey <tom@tromey.com>
8027
8028 * type-stack.h (struct type_stack) <insert>: Constify string.
8029 * type-stack.c (type_stack::insert): Constify string.
8030 * gdbtypes.h (lookup_template_type): Update.
8031 (address_space_name_to_int): Update.
8032 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8033 const.
8034 (lookup_template_type): Make name const.
8035 * c-exp.y: Update rules.
8036 (lex_one_token, classify_name, classify_inner_name)
8037 (c_print_token): Update.
8038 * p-exp.y: Update rules.
8039 (yylex): Update.
8040 * f-exp.y: Update rules.
8041 (yylex): Update.
8042 * d-exp.y: Update rules.
8043 (lex_one_token, classify_name, classify_inner_name): Update.
8044 * parse.c (write_dollar_variable, copy_name): Return std::string.
8045 * parser-defs.h (copy_name): Change return type.
8046 * m2-exp.y: Update rules.
8047 (yylex): Update.
8048 * go-exp.y (lex_one_token): Update.
8049 Update rules.
8050 (classify_unsafe_function, classify_packaged_name)
8051 (classify_name, yylex): Update.
8052
189b8c2e
ST
80532019-04-19 Sergei Trofimovich <siarheit@google.com>
8054
8055 * configure.ac: add --enable-source-highlight switch.
8056 * configure: Regenerate.
8057 * top.c (print_gdb_version): plumb --enable-source-highlight
8058 status to "show configuration".
8059
8ecb59f8
TT
80602019-04-19 Tom Tromey <tromey@adacore.com>
8061
8062 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8063 Check ADA_TYPE_P.
8064 (empty_record, ada_template_to_fixed_record_type_1)
8065 (template_to_static_fixed_type)
8066 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8067 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8068 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8069 macros.
8070
62160ec9
TT
80712019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8072
8073 PR symtab/24423:
8074 * source.c (print_source_lines_base): Advance "iter" when a
8075 control character is seen.
8076
f2ae8bc8
PW
80772019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8078
8079 * inferior.h (struct infcall_suspend_state_deleter):
8080 Catch exception in destructor to avoid crash.
8081
d563b953
PW
80822019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8083
8084 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8085 close to the add_com "shell".
8086
dc34c897
TT
80872019-04-18 Tom Tromey <tromey@adacore.com>
8088
8089 * process-stratum-target.h (class process_stratum_target)
8090 <stratum>: Add "final".
8091
a12e5744
TT
80922019-04-17 Tom Tromey <tromey@adacore.com>
8093
8094 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8095 against nullptr before use.
8096
a7e559cc
AH
80972019-04-17 Alan Hayward <alan.hayward@arm.com>
8098
8099 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8100
c01660c6
AB
81012019-04-17 Jim Wilson <jimw@sifive.com>
8102 Andrew Burgess <andrew.burgess@embecosm.com>
8103
8104 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8105 code read might fail, assume 4-byte breakpoint in that case.
8106
4aa866af
LS
81072019-04-15 Leszek Swirski <leszeks@google.com>
8108
8109 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8110 rather than a hand-rolled POD check when checking for forced MEMORY
8111 classification.
8112
48574d91
AH
81132019-04-15 Alan Hayward <alan.hayward@arm.com>
8114
8115 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8116 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8117 function.
8118 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8119 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8120 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8121 declaration.
8122
4da037ef
AH
81232019-04-15 Alan Hayward <alan.hayward@arm.com>
8124
8125 * aarch64-linux-nat.c
8126 (aarch64_linux_nat_target::thread_architecture): Add override.
8127 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8128 each VQ.
8129
ccb8d7e8
AH
81302019-04-15 Alan Hayward <alan.hayward@arm.com>
8131
8132 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8133
35add35e
AB
81342019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8135
8136 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8137 target types of size 96-bits, add some additional comments, and
8138 check that the builtin type we found was the correct size.
8139
51196bbc
EZ
81402019-04-12 Eli Zaretskii <eliz@gnu.org>
8141
8142 * utils.c (prompt_for_continue): Don't restore the styling at the
8143 end, as applied_style has the wrong value. This fixes styling in
8144 long lists of file names that are interrupted by the "Continue?"
8145 prompt.
8146
62253a61
AB
81472019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8148
8149 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8150 * c-lang.c (c_language_defn): Likewise.
8151 (cplus_language_defn): Likewise.
8152 (asm_language_defn): Likewise.
8153 (minimal_language_defn): Likewise.
8154 * d-lang.c (d_language_defn): Likewise.
8155 * f-lang.c (f_language_defn): Likewise.
8156 * go-lang.c (go_language_defn): Likewise.
8157 * language.c (unknown_language_defn): Likewise.
8158 (auto_language_defn): Likewise.
8159 * language.h (struct language_defn): Remove la_magic field.
8160 (LANG_MAGIC): Delete.
8161 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8162 * objc-lang.c (objc_language_defn): Likewise.
8163 * opencl-lang.c (opencl_language_defn): Likewise.
8164 * p-lang.c (pascal_language_defn): Likewise.
8165 * rust-lang.c (rust_language_defn): Likewise.
8166
a9158a86
AB
81672019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8168
8169 * riscv-tdep.c (riscv_type_align): New function.
8170 (riscv_type_alignment): Delete.
8171 (riscv_arg_location): Use 'type_align'.
8172 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8173
41077b66
AB
81742019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8175
8176 * gdbtypes.c (type_align): A struct with no non-static fields also
8177 has alignment of 1.
8178
9f0272f8
AB
81792019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8180
8181 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8182 component to 0.
8183 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8184 member.
8185 (riscv_struct_info::analyse): New implementation using new
8186 analyse_inner member function.
8187 (riscv_struct_info::field_offset): New member function.
8188 (riscv_struct_info::m_offsets): New member variable.
8189 (riscv_struct_info::analyse_inner): New private member function,
8190 takes the old implementation of riscv_struct_info::analyse but
8191 extended to track field offsets.
8192 (riscv_call_arg_struct): Update the struct folding special cases
8193 to handle cases where empty C++ structs, which are non-zero
8194 length, are found.
8195 (riscv_arg_location): Initialise the length of each location, a
8196 non-zero length now indicates the location is in use.
8197 (riscv_push_dummy_call): Allow for the first location having a
8198 non-zero offset when setting up arguments.
8199 (riscv_return_value): Likewise, but for return values.
8200
02cf60c7
TT
82012019-04-11 Tom Tromey <tromey@adacore.com>
8202
8203 * utils.c (internal_vproblem): Make "msg" const.
8204
68811f8f
AH
82052019-04-11 Alan Hayward <alan.hayward@arm.com>
8206
8207 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8208 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8209 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8210 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8211
3f52fdbc
KB
82122019-04-10 Kevin Buettner <kevinb@redhat.com>
8213
8214 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8215 function.
8216 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8217 of amd64_collect_native_gregset.
8218 (amd64_linux_nat_target::store_registers): Likewise.
8219
e9ad22ee
TT
82202019-04-10 Tom Tromey <tom@tromey.com>
8221
8222 * symtab.c (lookup_global_symbol_from_objfile)
8223 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8224 * objfiles.h (class separate_debug_iterator): New.
8225 (class separate_debug_range): New.
8226 (struct objfile) <separate_debug_objfiles>: New method.
8227 (objfile_separate_debug_iterate): Don't declare.
8228 * objfiles.c (separate_debug_iterator::operator++): Rename from
8229 objfile_separate_debug_iterate.
8230 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8231 iterator.
8232 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8233 iterator.
8234
ee371134
TT
82352019-04-10 Tom Tromey <tom@tromey.com>
8236
8237 * symfile.c (reread_symbols): Remove old comment.
8238 * objfiles.c (free_all_objfiles): Fix a typo.
8239
bf227d61
TT
82402019-04-10 Tom Tromey <tom@tromey.com>
8241
8242 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8243 * minsyms.c (lookup_minimal_symbol): Use foreach.
8244 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8245 (lookup_minimal_symbol_solib_trampoline): Likewise.
8246 * symfile.c (reread_symbols): Use foreach.
8247
8dc433a0
TT
82482019-04-09 Ivan Begert <ivanbegert@gmail.com>
8249 Tom Tromey <tromey@adacore.com>
8250
8251 PR rust/24414:
8252 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8253 (rust_lex_int_test): Change "value" to be LONGEST.
8254 (rust_lex_tests): Add test for long integer literal.
8255
9ab8741a
TT
82562019-04-09 Tom Tromey <tromey@adacore.com>
8257
8258 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8259 to bool.
8260 (extended_remote_target::attach): Update.
8261 (remote_target::remote_notice_new_inferior): Update.
8262 (remote_target::add_current_inferior_and_thread): Update.
8263 * inferior.c (exit_inferior_1): Use "false".
8264 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8265
e242fd12
SM
82662019-04-09 Simon Marchi <simon.marchi@efficios.com>
8267
9ca1957f 8268 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
8269 the "start" command.
8270
2b0c8b01
KB
82712019-04-08 Kevin Buettner <kevinb@redhat.com>
8272
8273 * python/py-inferior.c (infpy_thread_from_thread_handle):
8274 Adjust comments to reflect renaming of thread_from_thread_handle
8275 to thread_from_handle. Adjust keywords. Fix type error message.
8276 (inferior_object_methods): Add thread_from_handle. Retain
8277 thread_from_thread_handle, but mark it as deprecated.
8278
50a82723
KB
82792019-04-08 Kevin Buettner <kevinb@redhat.com>
8280
8281 * gdbthread.h (find_thread_by_handle): Revise declaration.
8282 * thread.c (find_thread_by_handle): Likewise. Adjust
8283 implementation too.
8284 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8285 support for buffer objects as handles.
8286
cf63b016
KB
82872019-04-08 Kevin Buettner <kevinb@redhat.com>
8288
8289 * python/py-infthread.c (thpy_thread_handle): New function.
8290 (thread_object_methods): Register thpy_thread_handle.
8291
3d6c6204
KB
82922019-04-08 Kevin Buettner <kevinb@redhat.com>
8293
8294 * gdbthread.h (thread_to_thread_handle): Declare.
8295 * thread.c (gdbtypes.h): Include.
8296 (thread_to_thread_handle): New function.
8297
8298 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8299 (target_thread_info_to_thread_handle): Declare.
8300 * target.c (target_thread_info_to_thread_handle): New function.
8301 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8302 * target-delegates.c: Regenerate.
8303
8304 * linux-thread-db.c (class thread_db_target): Add method
8305 thread_info_to_thread_handle.
8306 (thread_db_target::thread_info_to_thread_handle): Define.
8307 * remote.c (class remote_target): Add new method
8308 thread_info_to_thread_handle.
8309 (remote_target::thread_info_to_thread_handle): Define.
8310
56be6ea8
PA
83112019-04-08 Pedro Alves <palves@redhat.com>
8312
8313 * common/common-exceptions.c (throw_exception): Don't create
8314 named object to throw; throw directly.
8315 (throw_it): Likewise. Don't initialize gdb_exception::message
8316 here, with new; pass FMT and AP to the ctor instead.
8317 * common/common-exceptions.h: Include <string>.
8318 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8319 const char *, va_list)): New ctor. Use std::make_shared.
8320 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8321 errors)): Delete.
8322 (gdb_exception_error::gdb_exception_error(enum errors, const char
8323 *, va_list)): New.
8324 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8325 Add assertion.
8326 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8327 errors)): Delete.
8328 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8329 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8330 Add assertion.
8331
eedc3f4f
TT
83322019-04-08 Tom Tromey <tom@tromey.com>
8333
8334 * valops.c (value_rtti_indirect_type): Replace throw_exception
8335 with throw.
8336 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8337 with throw.
8338 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8339 throw.
8340 * target.c (target_translate_tls_address): Replace throw_exception
8341 with throw.
8342 * stack.c (frame_apply_command_count): Replace throw_exception
8343 with throw.
8344 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8345 throw.
8346 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8347 with throw.
8348 * rs6000-tdep.c (rs6000_frame_cache)
8349 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8350 * remote.c: Replace throw_exception with throw.
8351 * record-full.c (record_full_message, record_full_wait_1)
8352 (record_full_restore): Replace throw_exception with throw.
8353 * record-btrace.c:
8354 (get_thread_current_frame_id, record_btrace_start_replaying)
8355 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8356 (cmd_record_btrace_start): Replace throw_exception with throw.
8357 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8358 throw.
8359 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8360 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8361 * linespec.c:
8362 (find_linespec_symbols): Replace throw_exception with throw.
8363 * infrun.c (displaced_step_prepare, resume): Replace
8364 throw_exception with throw.
8365 * infcmd.c (post_create_inferior): Replace throw_exception with
8366 throw.
8367 * inf-loop.c (inferior_event_handler): Replace throw_exception
8368 with throw.
8369 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8370 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8371 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8372 (get_prev_frame_always, get_frame_pc_if_available)
8373 (get_frame_address_in_block_if_available, get_frame_language):
8374 Replace throw_exception with throw.
8375 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8376 throw_exception with throw.
8377 * eval.c (fetch_subexp_value, evaluate_var_value)
8378 (evaluate_funcall, evaluate_subexp_standard): Replace
8379 throw_exception with throw.
8380 * dwarf2loc.c (call_site_find_chain)
8381 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8382 Replace throw_exception with throw.
8383 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8384 with throw.
8385 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8386 throw.
8387 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8388 * completer.c (complete_line_internal): Replace throw_exception
8389 with throw.
8390 * compile/compile-object-run.c (compile_object_run): Replace
8391 throw_exception with throw.
8392 * cli/cli-script.c (process_next_line): Replace throw_exception
8393 with throw.
8394 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8395 (btrace_enable, btrace_maint_update_pt_packets): Replace
8396 throw_exception with throw.
8397 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8398 throw_exception with throw.
8399 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8400 throw_exception with throw.
8401 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8402 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8403 * aarch64-tdep.c (aarch64_make_prologue_cache)
8404 (aarch64_make_stub_cache): Replace throw_exception with throw.
8405
26003a20
TT
84062019-04-08 Tom Tromey <tom@tromey.com>
8407
8408 * common/common-exceptions.c (throw_exception): Rename from
8409 throw_exception_cxx. Remove old copy. Make argument const.
8410 (throw_it): Create and throw exception objects directly.
8411 * common/common-exceptions.h (throw_exception): Make argument
8412 const.
8413 (struct gdb_exception_error): Add constructor.
8414 (struct gdb_exception_quit): Add constructor.
8415
d272eb37
TT
84162019-04-08 Tom Tromey <tom@tromey.com>
8417
8418 * common/common-exceptions.h (exception_rethrow): Don't declare.
8419 (TRY_SJLJ): Update comment.
8420 (TRY, CATCH, END_CATCH): Remove.
8421 * common/common-exceptions.c (exception_rethrow): Remove.
8422
230d2906
TT
84232019-04-08 Tom Tromey <tom@tromey.com>
8424
8425 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8426 Remove.
8427 (gdb_exception_error): Rename from
8428 gdb_exception_RETURN_MASK_ERROR.
8429 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8430 (gdb_quit_bad_alloc): Update.
8431 * aarch64-tdep.c: Update.
8432 * ada-lang.c: Update.
8433 * ada-typeprint.c: Update.
8434 * ada-valprint.c: Update.
8435 * amd64-tdep.c: Update.
8436 * arch-utils.c: Update.
8437 * break-catch-throw.c: Update.
8438 * breakpoint.c: Update.
8439 * btrace.c: Update.
8440 * c-varobj.c: Update.
8441 * cli/cli-cmds.c: Update.
8442 * cli/cli-interp.c: Update.
8443 * cli/cli-script.c: Update.
8444 * common/common-exceptions.c: Update.
8445 * common/new-op.c: Update.
8446 * common/selftest.c: Update.
8447 * compile/compile-c-symbols.c: Update.
8448 * compile/compile-cplus-symbols.c: Update.
8449 * compile/compile-object-load.c: Update.
8450 * compile/compile-object-run.c: Update.
8451 * completer.c: Update.
8452 * corelow.c: Update.
8453 * cp-abi.c: Update.
8454 * cp-support.c: Update.
8455 * cp-valprint.c: Update.
8456 * darwin-nat.c: Update.
8457 * disasm-selftests.c: Update.
8458 * dtrace-probe.c: Update.
8459 * dwarf-index-cache.c: Update.
8460 * dwarf-index-write.c: Update.
8461 * dwarf2-frame-tailcall.c: Update.
8462 * dwarf2-frame.c: Update.
8463 * dwarf2loc.c: Update.
8464 * dwarf2read.c: Update.
8465 * eval.c: Update.
8466 * event-loop.c: Update.
8467 * event-top.c: Update.
8468 * exec.c: Update.
8469 * f-valprint.c: Update.
8470 * fbsd-tdep.c: Update.
8471 * frame-unwind.c: Update.
8472 * frame.c: Update.
8473 * gdbtypes.c: Update.
8474 * gnu-v3-abi.c: Update.
8475 * guile/guile-internal.h: Update.
8476 * guile/scm-block.c: Update.
8477 * guile/scm-breakpoint.c: Update.
8478 * guile/scm-cmd.c: Update.
8479 * guile/scm-disasm.c: Update.
8480 * guile/scm-frame.c: Update.
8481 * guile/scm-lazy-string.c: Update.
8482 * guile/scm-math.c: Update.
8483 * guile/scm-param.c: Update.
8484 * guile/scm-ports.c: Update.
8485 * guile/scm-pretty-print.c: Update.
8486 * guile/scm-symbol.c: Update.
8487 * guile/scm-symtab.c: Update.
8488 * guile/scm-type.c: Update.
8489 * guile/scm-value.c: Update.
8490 * i386-linux-tdep.c: Update.
8491 * i386-tdep.c: Update.
8492 * inf-loop.c: Update.
8493 * infcall.c: Update.
8494 * infcmd.c: Update.
8495 * infrun.c: Update.
8496 * jit.c: Update.
8497 * language.c: Update.
8498 * linespec.c: Update.
8499 * linux-fork.c: Update.
8500 * linux-nat.c: Update.
8501 * linux-tdep.c: Update.
8502 * linux-thread-db.c: Update.
8503 * main.c: Update.
8504 * mi/mi-cmd-break.c: Update.
8505 * mi/mi-cmd-stack.c: Update.
8506 * mi/mi-interp.c: Update.
8507 * mi/mi-main.c: Update.
8508 * objc-lang.c: Update.
8509 * p-valprint.c: Update.
8510 * parse.c: Update.
8511 * ppc-linux-tdep.c: Update.
8512 * printcmd.c: Update.
8513 * python/py-arch.c: Update.
8514 * python/py-breakpoint.c: Update.
8515 * python/py-cmd.c: Update.
8516 * python/py-finishbreakpoint.c: Update.
8517 * python/py-frame.c: Update.
8518 * python/py-framefilter.c: Update.
8519 * python/py-gdb-readline.c: Update.
8520 * python/py-inferior.c: Update.
8521 * python/py-infthread.c: Update.
8522 * python/py-lazy-string.c: Update.
8523 * python/py-linetable.c: Update.
8524 * python/py-objfile.c: Update.
8525 * python/py-param.c: Update.
8526 * python/py-prettyprint.c: Update.
8527 * python/py-progspace.c: Update.
8528 * python/py-record-btrace.c: Update.
8529 * python/py-record.c: Update.
8530 * python/py-symbol.c: Update.
8531 * python/py-type.c: Update.
8532 * python/py-unwind.c: Update.
8533 * python/py-utils.c: Update.
8534 * python/py-value.c: Update.
8535 * python/python.c: Update.
8536 * record-btrace.c: Update.
8537 * record-full.c: Update.
8538 * remote-fileio.c: Update.
8539 * remote.c: Update.
8540 * riscv-tdep.c: Update.
8541 * rs6000-aix-tdep.c: Update.
8542 * rs6000-tdep.c: Update.
8543 * rust-exp.y: Update.
8544 * rust-lang.c: Update.
8545 * s390-tdep.c: Update.
8546 * selftest-arch.c: Update.
8547 * solib-dsbt.c: Update.
8548 * solib-frv.c: Update.
8549 * solib-spu.c: Update.
8550 * solib-svr4.c: Update.
8551 * solib.c: Update.
8552 * sparc64-linux-tdep.c: Update.
8553 * stack.c: Update.
8554 * symfile-mem.c: Update.
8555 * symmisc.c: Update.
8556 * target.c: Update.
8557 * thread.c: Update.
8558 * top.c: Update.
8559 * tracefile-tfile.c: Update.
8560 * tui/tui.c: Update.
8561 * typeprint.c: Update.
8562 * unittests/cli-utils-selftests.c: Update.
8563 * unittests/parse-connection-spec-selftests.c: Update.
8564 * valops.c: Update.
8565 * valprint.c: Update.
8566 * value.c: Update.
8567 * varobj.c: Update.
8568 * windows-nat.c: Update.
8569 * x86-linux-nat.c: Update.
8570 * xml-support.c: Update.
8571
a70b8144
TT
85722019-04-08 Tom Tromey <tom@tromey.com>
8573
8574 * xml-support.c: Use C++ exception handling.
8575 * x86-linux-nat.c: Use C++ exception handling.
8576 * windows-nat.c: Use C++ exception handling.
8577 * varobj.c: Use C++ exception handling.
8578 * value.c: Use C++ exception handling.
8579 * valprint.c: Use C++ exception handling.
8580 * valops.c: Use C++ exception handling.
8581 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8582 handling.
8583 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8584 * typeprint.c: Use C++ exception handling.
8585 * tui/tui.c: Use C++ exception handling.
8586 * tracefile-tfile.c: Use C++ exception handling.
8587 * top.c: Use C++ exception handling.
8588 * thread.c: Use C++ exception handling.
8589 * target.c: Use C++ exception handling.
8590 * symmisc.c: Use C++ exception handling.
8591 * symfile-mem.c: Use C++ exception handling.
8592 * stack.c: Use C++ exception handling.
8593 * sparc64-linux-tdep.c: Use C++ exception handling.
8594 * solib.c: Use C++ exception handling.
8595 * solib-svr4.c: Use C++ exception handling.
8596 * solib-spu.c: Use C++ exception handling.
8597 * solib-frv.c: Use C++ exception handling.
8598 * solib-dsbt.c: Use C++ exception handling.
8599 * selftest-arch.c: Use C++ exception handling.
8600 * s390-tdep.c: Use C++ exception handling.
8601 * rust-lang.c: Use C++ exception handling.
8602 * rust-exp.y: Use C++ exception handling.
8603 * rs6000-tdep.c: Use C++ exception handling.
8604 * rs6000-aix-tdep.c: Use C++ exception handling.
8605 * riscv-tdep.c: Use C++ exception handling.
8606 * remote.c: Use C++ exception handling.
8607 * remote-fileio.c: Use C++ exception handling.
8608 * record-full.c: Use C++ exception handling.
8609 * record-btrace.c: Use C++ exception handling.
8610 * python/python.c: Use C++ exception handling.
8611 * python/py-value.c: Use C++ exception handling.
8612 * python/py-utils.c: Use C++ exception handling.
8613 * python/py-unwind.c: Use C++ exception handling.
8614 * python/py-type.c: Use C++ exception handling.
8615 * python/py-symbol.c: Use C++ exception handling.
8616 * python/py-record.c: Use C++ exception handling.
8617 * python/py-record-btrace.c: Use C++ exception handling.
8618 * python/py-progspace.c: Use C++ exception handling.
8619 * python/py-prettyprint.c: Use C++ exception handling.
8620 * python/py-param.c: Use C++ exception handling.
8621 * python/py-objfile.c: Use C++ exception handling.
8622 * python/py-linetable.c: Use C++ exception handling.
8623 * python/py-lazy-string.c: Use C++ exception handling.
8624 * python/py-infthread.c: Use C++ exception handling.
8625 * python/py-inferior.c: Use C++ exception handling.
8626 * python/py-gdb-readline.c: Use C++ exception handling.
8627 * python/py-framefilter.c: Use C++ exception handling.
8628 * python/py-frame.c: Use C++ exception handling.
8629 * python/py-finishbreakpoint.c: Use C++ exception handling.
8630 * python/py-cmd.c: Use C++ exception handling.
8631 * python/py-breakpoint.c: Use C++ exception handling.
8632 * python/py-arch.c: Use C++ exception handling.
8633 * printcmd.c: Use C++ exception handling.
8634 * ppc-linux-tdep.c: Use C++ exception handling.
8635 * parse.c: Use C++ exception handling.
8636 * p-valprint.c: Use C++ exception handling.
8637 * objc-lang.c: Use C++ exception handling.
8638 * mi/mi-main.c: Use C++ exception handling.
8639 * mi/mi-interp.c: Use C++ exception handling.
8640 * mi/mi-cmd-stack.c: Use C++ exception handling.
8641 * mi/mi-cmd-break.c: Use C++ exception handling.
8642 * main.c: Use C++ exception handling.
8643 * linux-thread-db.c: Use C++ exception handling.
8644 * linux-tdep.c: Use C++ exception handling.
8645 * linux-nat.c: Use C++ exception handling.
8646 * linux-fork.c: Use C++ exception handling.
8647 * linespec.c: Use C++ exception handling.
8648 * language.c: Use C++ exception handling.
8649 * jit.c: Use C++ exception handling.
8650 * infrun.c: Use C++ exception handling.
8651 * infcmd.c: Use C++ exception handling.
8652 * infcall.c: Use C++ exception handling.
8653 * inf-loop.c: Use C++ exception handling.
8654 * i386-tdep.c: Use C++ exception handling.
8655 * i386-linux-tdep.c: Use C++ exception handling.
8656 * guile/scm-value.c: Use C++ exception handling.
8657 * guile/scm-type.c: Use C++ exception handling.
8658 * guile/scm-symtab.c: Use C++ exception handling.
8659 * guile/scm-symbol.c: Use C++ exception handling.
8660 * guile/scm-pretty-print.c: Use C++ exception handling.
8661 * guile/scm-ports.c: Use C++ exception handling.
8662 * guile/scm-param.c: Use C++ exception handling.
8663 * guile/scm-math.c: Use C++ exception handling.
8664 * guile/scm-lazy-string.c: Use C++ exception handling.
8665 * guile/scm-frame.c: Use C++ exception handling.
8666 * guile/scm-disasm.c: Use C++ exception handling.
8667 * guile/scm-cmd.c: Use C++ exception handling.
8668 * guile/scm-breakpoint.c: Use C++ exception handling.
8669 * guile/scm-block.c: Use C++ exception handling.
8670 * guile/guile-internal.h: Use C++ exception handling.
8671 * gnu-v3-abi.c: Use C++ exception handling.
8672 * gdbtypes.c: Use C++ exception handling.
8673 * frame.c: Use C++ exception handling.
8674 * frame-unwind.c: Use C++ exception handling.
8675 * fbsd-tdep.c: Use C++ exception handling.
8676 * f-valprint.c: Use C++ exception handling.
8677 * exec.c: Use C++ exception handling.
8678 * event-top.c: Use C++ exception handling.
8679 * event-loop.c: Use C++ exception handling.
8680 * eval.c: Use C++ exception handling.
8681 * dwarf2read.c: Use C++ exception handling.
8682 * dwarf2loc.c: Use C++ exception handling.
8683 * dwarf2-frame.c: Use C++ exception handling.
8684 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8685 * dwarf-index-write.c: Use C++ exception handling.
8686 * dwarf-index-cache.c: Use C++ exception handling.
8687 * dtrace-probe.c: Use C++ exception handling.
8688 * disasm-selftests.c: Use C++ exception handling.
8689 * darwin-nat.c: Use C++ exception handling.
8690 * cp-valprint.c: Use C++ exception handling.
8691 * cp-support.c: Use C++ exception handling.
8692 * cp-abi.c: Use C++ exception handling.
8693 * corelow.c: Use C++ exception handling.
8694 * completer.c: Use C++ exception handling.
8695 * compile/compile-object-run.c: Use C++ exception handling.
8696 * compile/compile-object-load.c: Use C++ exception handling.
8697 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8698 * compile/compile-c-symbols.c: Use C++ exception handling.
8699 * common/selftest.c: Use C++ exception handling.
8700 * common/new-op.c: Use C++ exception handling.
8701 * cli/cli-script.c: Use C++ exception handling.
8702 * cli/cli-interp.c: Use C++ exception handling.
8703 * cli/cli-cmds.c: Use C++ exception handling.
8704 * c-varobj.c: Use C++ exception handling.
8705 * btrace.c: Use C++ exception handling.
8706 * breakpoint.c: Use C++ exception handling.
8707 * break-catch-throw.c: Use C++ exception handling.
8708 * arch-utils.c: Use C++ exception handling.
8709 * amd64-tdep.c: Use C++ exception handling.
8710 * ada-valprint.c: Use C++ exception handling.
8711 * ada-typeprint.c: Use C++ exception handling.
8712 * ada-lang.c: Use C++ exception handling.
8713 * aarch64-tdep.c: Use C++ exception handling.
8714
3d6e9d23
TT
87152019-04-08 Tom Tromey <tom@tromey.com>
8716
8717 * xml-support.c (gdb_xml_parser::parse): Update.
8718 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8719 * value.c (show_convenience): Update.
8720 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8721 (test_parse_flags_qcs): Update.
8722 * thread.c (thr_try_catch_cmd): Update.
8723 * target.c (target_translate_tls_address): Update.
8724 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8725 (info_frame_command_core, frame_apply_command_count): Update.
8726 * rust-exp.y (rust_lex_exception_test): Update.
8727 * riscv-tdep.c (riscv_print_one_register_info): Update.
8728 * remote.c (remote_target::enable_btrace): Update.
8729 * record-btrace.c (record_btrace_enable_warn): Update.
8730 * python/py-utils.c (gdbpy_convert_exception): Update.
8731 * printcmd.c (do_one_display, print_variable_and_value): Update.
8732 * mi/mi-main.c (mi_print_exception): Update.
8733 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8734 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8735 * linux-nat.c (linux_nat_target::attach): Update.
8736 * linux-fork.c (class scoped_switch_fork_info): Update.
8737 * infrun.c (displaced_step_prepare): Update.
8738 * infcall.c (call_function_by_hand_dummy): Update.
8739 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8740 * gnu-v3-abi.c (print_one_vtable): Update.
8741 * frame.c (get_prev_frame_always): Update.
8742 * f-valprint.c (info_common_command_for_block): Update.
8743 * exec.c (try_open_exec_file): Update.
8744 * exceptions.c (print_exception, exception_print)
8745 (exception_fprintf, exception_print_same): Update.
8746 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8747 * dwarf-index-cache.c (index_cache::store)
8748 (index_cache::lookup_gdb_index): Update.
8749 * darwin-nat.c (maybe_cache_shell): Update.
8750 * cp-valprint.c (cp_print_value_fields): Update.
8751 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8752 (gcc_cplus_symbol_address): Update.
8753 * compile/compile-c-symbols.c (gcc_convert_symbol)
8754 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8755 * common/selftest.c: Update.
8756 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8757 a std::string.
8758 (exception_try_scope_entry, exception_try_scope_exit): Don't
8759 declare.
8760 (struct exception_try_scope): Remove.
8761 (TRY): Don't use exception_try_scope.
8762 (struct gdb_exception): Add constructor, operator=.
8763 <what>: New method.
8764 (struct gdb_exception_RETURN_MASK_ALL)
8765 (struct gdb_exception_RETURN_MASK_ERROR)
8766 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8767 (struct gdb_quit_bad_alloc): Update.
8768 * common/common-exceptions.c (exception_none): Change
8769 initializer.
8770 (struct catcher) <state, exception>: Initialize inline.
8771 <prev>: Remove member.
8772 (current_catcher): Remove.
8773 (catchers): New global.
8774 (exceptions_state_mc_init): Simplify.
8775 (catcher_pop): Remove.
8776 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8777 (try_scope_depth, exception_try_scope_entry)
8778 (exception_try_scope_exit): Remove.
8779 (throw_exception_sjlj): Update.
8780 (exception_messages, exception_messages_size): Remove.
8781 (throw_it): Simplify.
8782 (gdb_exception_sliced_copy): Remove.
8783 (throw_exception_cxx): Update.
8784 * cli/cli-script.c (script_from_file): Update.
8785 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8786 Update.
8787 * ada-valprint.c (ada_val_print): Update.
8788 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8789 (create_excep_cond_exprs): Update.
8790
c5c10118
TT
87912019-04-08 Tom Tromey <tom@tromey.com>
8792
8793 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8794 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8795 (TRY, CATCH, END_CATCH): Remove some definitions.
8796 * common/common-exceptions.c: Don't use GDB_XCPT.
8797 (catcher_list_size): Remove.
8798 (throw_exception, throw_it): Simplify.
8799
4de283e4
TT
88002019-04-05 Tom Tromey <tom@tromey.com>
8801
8802 Revert the header-sorting patch.
8803 * ft32-tdep.c: Revert.
8804 * frv-tdep.c: Revert.
8805 * frv-linux-tdep.c: Revert.
8806 * frame.c: Revert.
8807 * frame-unwind.c: Revert.
8808 * frame-base.c: Revert.
8809 * fork-child.c: Revert.
8810 * findvar.c: Revert.
8811 * findcmd.c: Revert.
8812 * filesystem.c: Revert.
8813 * filename-seen-cache.h: Revert.
8814 * filename-seen-cache.c: Revert.
8815 * fbsd-tdep.c: Revert.
8816 * fbsd-nat.h: Revert.
8817 * fbsd-nat.c: Revert.
8818 * f-valprint.c: Revert.
8819 * f-typeprint.c: Revert.
8820 * f-lang.c: Revert.
8821 * extension.h: Revert.
8822 * extension.c: Revert.
8823 * extension-priv.h: Revert.
8824 * expprint.c: Revert.
8825 * exec.h: Revert.
8826 * exec.c: Revert.
8827 * exceptions.c: Revert.
8828 * event-top.c: Revert.
8829 * event-loop.c: Revert.
8830 * eval.c: Revert.
8831 * elfread.c: Revert.
8832 * dwarf2read.h: Revert.
8833 * dwarf2read.c: Revert.
8834 * dwarf2loc.c: Revert.
8835 * dwarf2expr.h: Revert.
8836 * dwarf2expr.c: Revert.
8837 * dwarf2-frame.c: Revert.
8838 * dwarf2-frame-tailcall.c: Revert.
8839 * dwarf-index-write.h: Revert.
8840 * dwarf-index-write.c: Revert.
8841 * dwarf-index-common.c: Revert.
8842 * dwarf-index-cache.h: Revert.
8843 * dwarf-index-cache.c: Revert.
8844 * dummy-frame.c: Revert.
8845 * dtrace-probe.c: Revert.
8846 * disasm.h: Revert.
8847 * disasm.c: Revert.
8848 * disasm-selftests.c: Revert.
8849 * dictionary.c: Revert.
8850 * dicos-tdep.c: Revert.
8851 * demangle.c: Revert.
8852 * dcache.h: Revert.
8853 * dcache.c: Revert.
8854 * darwin-nat.h: Revert.
8855 * darwin-nat.c: Revert.
8856 * darwin-nat-info.c: Revert.
8857 * d-valprint.c: Revert.
8858 * d-namespace.c: Revert.
8859 * d-lang.c: Revert.
8860 * ctf.c: Revert.
8861 * csky-tdep.c: Revert.
8862 * csky-linux-tdep.c: Revert.
8863 * cris-tdep.c: Revert.
8864 * cris-linux-tdep.c: Revert.
8865 * cp-valprint.c: Revert.
8866 * cp-support.c: Revert.
8867 * cp-namespace.c: Revert.
8868 * cp-abi.c: Revert.
8869 * corelow.c: Revert.
8870 * corefile.c: Revert.
8871 * continuations.c: Revert.
8872 * completer.h: Revert.
8873 * completer.c: Revert.
8874 * complaints.c: Revert.
8875 * coffread.c: Revert.
8876 * coff-pe-read.c: Revert.
8877 * cli-out.h: Revert.
8878 * cli-out.c: Revert.
8879 * charset.c: Revert.
8880 * c-varobj.c: Revert.
8881 * c-valprint.c: Revert.
8882 * c-typeprint.c: Revert.
8883 * c-lang.c: Revert.
8884 * buildsym.c: Revert.
8885 * buildsym-legacy.c: Revert.
8886 * build-id.h: Revert.
8887 * build-id.c: Revert.
8888 * btrace.c: Revert.
8889 * bsd-uthread.c: Revert.
8890 * breakpoint.h: Revert.
8891 * breakpoint.c: Revert.
8892 * break-catch-throw.c: Revert.
8893 * break-catch-syscall.c: Revert.
8894 * break-catch-sig.c: Revert.
8895 * blockframe.c: Revert.
8896 * block.c: Revert.
8897 * bfin-tdep.c: Revert.
8898 * bfin-linux-tdep.c: Revert.
8899 * bfd-target.c: Revert.
8900 * bcache.c: Revert.
8901 * ax-general.c: Revert.
8902 * ax-gdb.h: Revert.
8903 * ax-gdb.c: Revert.
8904 * avr-tdep.c: Revert.
8905 * auxv.c: Revert.
8906 * auto-load.c: Revert.
8907 * arm-wince-tdep.c: Revert.
8908 * arm-tdep.c: Revert.
8909 * arm-symbian-tdep.c: Revert.
8910 * arm-pikeos-tdep.c: Revert.
8911 * arm-obsd-tdep.c: Revert.
8912 * arm-nbsd-tdep.c: Revert.
8913 * arm-nbsd-nat.c: Revert.
8914 * arm-linux-tdep.c: Revert.
8915 * arm-linux-nat.c: Revert.
8916 * arm-fbsd-tdep.c: Revert.
8917 * arm-fbsd-nat.c: Revert.
8918 * arm-bsd-tdep.c: Revert.
8919 * arch-utils.c: Revert.
8920 * arc-tdep.c: Revert.
8921 * arc-newlib-tdep.c: Revert.
8922 * annotate.h: Revert.
8923 * annotate.c: Revert.
8924 * amd64-windows-tdep.c: Revert.
8925 * amd64-windows-nat.c: Revert.
8926 * amd64-tdep.c: Revert.
8927 * amd64-sol2-tdep.c: Revert.
8928 * amd64-obsd-tdep.c: Revert.
8929 * amd64-obsd-nat.c: Revert.
8930 * amd64-nbsd-tdep.c: Revert.
8931 * amd64-nbsd-nat.c: Revert.
8932 * amd64-nat.c: Revert.
8933 * amd64-linux-tdep.c: Revert.
8934 * amd64-linux-nat.c: Revert.
8935 * amd64-fbsd-tdep.c: Revert.
8936 * amd64-fbsd-nat.c: Revert.
8937 * amd64-dicos-tdep.c: Revert.
8938 * amd64-darwin-tdep.c: Revert.
8939 * amd64-bsd-nat.c: Revert.
8940 * alpha-tdep.c: Revert.
8941 * alpha-obsd-tdep.c: Revert.
8942 * alpha-nbsd-tdep.c: Revert.
8943 * alpha-mdebug-tdep.c: Revert.
8944 * alpha-linux-tdep.c: Revert.
8945 * alpha-linux-nat.c: Revert.
8946 * alpha-bsd-tdep.c: Revert.
8947 * alpha-bsd-nat.c: Revert.
8948 * aix-thread.c: Revert.
8949 * agent.c: Revert.
8950 * addrmap.c: Revert.
8951 * ada-varobj.c: Revert.
8952 * ada-valprint.c: Revert.
8953 * ada-typeprint.c: Revert.
8954 * ada-tasks.c: Revert.
8955 * ada-lang.c: Revert.
8956 * aarch64-tdep.c: Revert.
8957 * aarch64-ravenscar-thread.c: Revert.
8958 * aarch64-newlib-tdep.c: Revert.
8959 * aarch64-linux-tdep.c: Revert.
8960 * aarch64-linux-nat.c: Revert.
8961 * aarch64-fbsd-tdep.c: Revert.
8962 * aarch64-fbsd-nat.c: Revert.
8963 * aarch32-linux-nat.c: Revert.
8964
d55e5aa6
TT
89652019-04-05 Tom Tromey <tom@tromey.com>
8966
8967 * ft32-tdep.c: Sort headers.
8968 * frv-tdep.c: Sort headers.
8969 * frv-linux-tdep.c: Sort headers.
8970 * frame.c: Sort headers.
8971 * frame-unwind.c: Sort headers.
8972 * frame-base.c: Sort headers.
8973 * fork-child.c: Sort headers.
8974 * findvar.c: Sort headers.
8975 * findcmd.c: Sort headers.
8976 * filesystem.c: Sort headers.
8977 * filename-seen-cache.h: Sort headers.
8978 * filename-seen-cache.c: Sort headers.
8979 * fbsd-tdep.c: Sort headers.
8980 * fbsd-nat.h: Sort headers.
8981 * fbsd-nat.c: Sort headers.
8982 * f-valprint.c: Sort headers.
8983 * f-typeprint.c: Sort headers.
8984 * f-lang.c: Sort headers.
8985 * extension.h: Sort headers.
8986 * extension.c: Sort headers.
8987 * extension-priv.h: Sort headers.
8988 * expprint.c: Sort headers.
8989 * exec.h: Sort headers.
8990 * exec.c: Sort headers.
8991 * exceptions.c: Sort headers.
8992 * event-top.c: Sort headers.
8993 * event-loop.c: Sort headers.
8994 * eval.c: Sort headers.
8995 * elfread.c: Sort headers.
8996 * dwarf2read.h: Sort headers.
8997 * dwarf2read.c: Sort headers.
8998 * dwarf2loc.c: Sort headers.
8999 * dwarf2expr.h: Sort headers.
9000 * dwarf2expr.c: Sort headers.
9001 * dwarf2-frame.c: Sort headers.
9002 * dwarf2-frame-tailcall.c: Sort headers.
9003 * dwarf-index-write.h: Sort headers.
9004 * dwarf-index-write.c: Sort headers.
9005 * dwarf-index-common.c: Sort headers.
9006 * dwarf-index-cache.h: Sort headers.
9007 * dwarf-index-cache.c: Sort headers.
9008 * dummy-frame.c: Sort headers.
9009 * dtrace-probe.c: Sort headers.
9010 * disasm.h: Sort headers.
9011 * disasm.c: Sort headers.
9012 * disasm-selftests.c: Sort headers.
9013 * dictionary.c: Sort headers.
9014 * dicos-tdep.c: Sort headers.
9015 * demangle.c: Sort headers.
9016 * dcache.h: Sort headers.
9017 * dcache.c: Sort headers.
9018 * darwin-nat.h: Sort headers.
9019 * darwin-nat.c: Sort headers.
9020 * darwin-nat-info.c: Sort headers.
9021 * d-valprint.c: Sort headers.
9022 * d-namespace.c: Sort headers.
9023 * d-lang.c: Sort headers.
9024 * ctf.c: Sort headers.
9025 * csky-tdep.c: Sort headers.
9026 * csky-linux-tdep.c: Sort headers.
9027 * cris-tdep.c: Sort headers.
9028 * cris-linux-tdep.c: Sort headers.
9029 * cp-valprint.c: Sort headers.
9030 * cp-support.c: Sort headers.
9031 * cp-namespace.c: Sort headers.
9032 * cp-abi.c: Sort headers.
9033 * corelow.c: Sort headers.
9034 * corefile.c: Sort headers.
9035 * continuations.c: Sort headers.
9036 * completer.h: Sort headers.
9037 * completer.c: Sort headers.
9038 * complaints.c: Sort headers.
9039 * coffread.c: Sort headers.
9040 * coff-pe-read.c: Sort headers.
9041 * cli-out.h: Sort headers.
9042 * cli-out.c: Sort headers.
9043 * charset.c: Sort headers.
9044 * c-varobj.c: Sort headers.
9045 * c-valprint.c: Sort headers.
9046 * c-typeprint.c: Sort headers.
9047 * c-lang.c: Sort headers.
9048 * buildsym.c: Sort headers.
9049 * buildsym-legacy.c: Sort headers.
9050 * build-id.h: Sort headers.
9051 * build-id.c: Sort headers.
9052 * btrace.c: Sort headers.
9053 * bsd-uthread.c: Sort headers.
9054 * breakpoint.h: Sort headers.
9055 * breakpoint.c: Sort headers.
9056 * break-catch-throw.c: Sort headers.
9057 * break-catch-syscall.c: Sort headers.
9058 * break-catch-sig.c: Sort headers.
9059 * blockframe.c: Sort headers.
9060 * block.c: Sort headers.
9061 * bfin-tdep.c: Sort headers.
9062 * bfin-linux-tdep.c: Sort headers.
9063 * bfd-target.c: Sort headers.
9064 * bcache.c: Sort headers.
9065 * ax-general.c: Sort headers.
9066 * ax-gdb.h: Sort headers.
9067 * ax-gdb.c: Sort headers.
9068 * avr-tdep.c: Sort headers.
9069 * auxv.c: Sort headers.
9070 * auto-load.c: Sort headers.
9071 * arm-wince-tdep.c: Sort headers.
9072 * arm-tdep.c: Sort headers.
9073 * arm-symbian-tdep.c: Sort headers.
9074 * arm-pikeos-tdep.c: Sort headers.
9075 * arm-obsd-tdep.c: Sort headers.
9076 * arm-nbsd-tdep.c: Sort headers.
9077 * arm-nbsd-nat.c: Sort headers.
9078 * arm-linux-tdep.c: Sort headers.
9079 * arm-linux-nat.c: Sort headers.
9080 * arm-fbsd-tdep.c: Sort headers.
9081 * arm-fbsd-nat.c: Sort headers.
9082 * arm-bsd-tdep.c: Sort headers.
9083 * arch-utils.c: Sort headers.
9084 * arc-tdep.c: Sort headers.
9085 * arc-newlib-tdep.c: Sort headers.
9086 * annotate.h: Sort headers.
9087 * annotate.c: Sort headers.
9088 * amd64-windows-tdep.c: Sort headers.
9089 * amd64-windows-nat.c: Sort headers.
9090 * amd64-tdep.c: Sort headers.
9091 * amd64-sol2-tdep.c: Sort headers.
9092 * amd64-obsd-tdep.c: Sort headers.
9093 * amd64-obsd-nat.c: Sort headers.
9094 * amd64-nbsd-tdep.c: Sort headers.
9095 * amd64-nbsd-nat.c: Sort headers.
9096 * amd64-nat.c: Sort headers.
9097 * amd64-linux-tdep.c: Sort headers.
9098 * amd64-linux-nat.c: Sort headers.
9099 * amd64-fbsd-tdep.c: Sort headers.
9100 * amd64-fbsd-nat.c: Sort headers.
9101 * amd64-dicos-tdep.c: Sort headers.
9102 * amd64-darwin-tdep.c: Sort headers.
9103 * amd64-bsd-nat.c: Sort headers.
9104 * alpha-tdep.c: Sort headers.
9105 * alpha-obsd-tdep.c: Sort headers.
9106 * alpha-nbsd-tdep.c: Sort headers.
9107 * alpha-mdebug-tdep.c: Sort headers.
9108 * alpha-linux-tdep.c: Sort headers.
9109 * alpha-linux-nat.c: Sort headers.
9110 * alpha-bsd-tdep.c: Sort headers.
9111 * alpha-bsd-nat.c: Sort headers.
9112 * aix-thread.c: Sort headers.
9113 * agent.c: Sort headers.
9114 * addrmap.c: Sort headers.
9115 * ada-varobj.c: Sort headers.
9116 * ada-valprint.c: Sort headers.
9117 * ada-typeprint.c: Sort headers.
9118 * ada-tasks.c: Sort headers.
9119 * ada-lang.c: Sort headers.
9120 * aarch64-tdep.c: Sort headers.
9121 * aarch64-ravenscar-thread.c: Sort headers.
9122 * aarch64-newlib-tdep.c: Sort headers.
9123 * aarch64-linux-tdep.c: Sort headers.
9124 * aarch64-linux-nat.c: Sort headers.
9125 * aarch64-fbsd-tdep.c: Sort headers.
9126 * aarch64-fbsd-nat.c: Sort headers.
9127 * aarch32-linux-nat.c: Sort headers.
9128
699bd4cf
TT
91292019-04-04 Tom Tromey <tom@tromey.com>
9130
9131 * varobj.c (varobj_create): Update.
9132 * rust-exp.y (struct rust_parser) <update_innermost_block,
9133 lookup_symbol>: New methods.
9134 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9135 Rename.
9136 (rust_parser::rust_lookup_type)
9137 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9138 * printcmd.c (display_command, do_one_display): Update.
9139 * parser-defs.h (struct parser_state) <parser_state>: Add
9140 "tracker" parameter.
9141 (block_tracker): New member.
9142 (class innermost_block_tracker) <innermost_block_tracker>: Add
9143 "types" parameter.
9144 <reset>: Remove method.
9145 (innermost_block): Don't declare.
9146 (null_post_parser): Update.
9147 * parse.c (innermost_block): Remove global.
9148 (write_dollar_variable): Update.
9149 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9150 Remove "tracker_types" parameter.
9151 (parse_expression): Add "tracker" parameter.
9152 (parse_expression_for_completion): Update.
9153 (null_post_parser): Add "tracker" parameter.
9154 * p-exp.y: Update rules.
9155 * m2-exp.y: Update rules.
9156 * language.h (struct language_defn) <la_post_parser>: Add
9157 "tracker" parameter.
9158 * go-exp.y: Update rules.
9159 * f-exp.y: Update rules.
9160 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9161 parameter.
9162 * d-exp.y: Update rules.
9163 * c-exp.y: Update rules.
9164 * breakpoint.c (set_breakpoint_condition): Create an
9165 innermost_block_tracker.
9166 (watch_command_1): Likewise.
9167 * ada-lang.c (resolve): Add "tracker" parameter.
9168 (resolve_subexp): Likewise.
9169 * ada-exp.y (write_var_from_sym): Update.
9170
dac43e32
TT
91712019-04-04 Tom Tromey <tom@tromey.com>
9172
9173 * type-stack.h: New file.
9174 * type-stack.c: New file.
9175 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9176 type-stack.h.
9177 (insert_into_type_stack, insert_type, push_type, push_type_int)
9178 (insert_type_address_space, pop_type, pop_type_int)
9179 (pop_typelist, pop_type_stack, append_type_stack)
9180 (push_type_stack, get_type_stack, push_typelist)
9181 (follow_type_instance_flags, follow_types): Don't declare.
9182 * parse.c (type_stack): Remove global.
9183 (parse_exp_in_context): Update.
9184 (insert_into_type_stack, insert_type, push_type, push_type_int)
9185 (insert_type_address_space, pop_type, pop_type_int)
9186 (pop_typelist, pop_type_stack, append_type_stack)
9187 (push_type_stack, get_type_stack, push_typelist)
9188 (follow_type_instance_flags, follow_types): Remove (moved to
9189 type-stack.c).
9190 * f-exp.y (type_stack): New global.
9191 Update rules.
9192 (push_kind_type, f_parse): Update.
9193 * d-exp.y (type_stack): New global.
9194 Update rules.
9195 (d_parse): Update.
9196 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9197 Update rules.
9198 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9199 (HFILES_NO_SRCDIR): Add type-stack.h.
9200
2a612529
TT
92012019-04-04 Tom Tromey <tom@tromey.com>
9202
9203 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9204 (rust_parser::convert_ast_to_expression, rust_parse)
9205 (rust_lex_test_completion, rust_lex_tests): Update.
9206 * parser-defs.h (struct expr_completion_state): New.
9207 (struct parser_state) <parser_state>: Add completion parameter.
9208 <mark_struct_expression, mark_completion_tag>: New methods.
9209 <parse_completion, m_completion_state>: New members.
9210 (prefixify_expression, null_post_parser): Update.
9211 (mark_struct_expression, mark_completion_tag): Don't declare.
9212 * parse.c (parse_completion, expout_last_struct)
9213 (expout_tag_completion_type, expout_completion_name): Remove
9214 globals.
9215 (parser_state::mark_struct_expression)
9216 (parser_state::mark_completion_tag): Now methods.
9217 (prefixify_expression): Add last_struct parameter.
9218 (prefixify_subexp): Likewise.
9219 (parse_exp_1): Update.
9220 (parse_exp_in_context): Add cstate parameter. Update.
9221 (parse_expression_for_completion): Create an
9222 expr_completion_state.
9223 (null_post_parser): Add "completion" parameter.
9224 * p-exp.y: Update rules.
9225 (yylex): Update.
9226 * language.h (struct language_defn) <la_post_parser>: Add
9227 "completing" parameter.
9228 * go-exp.y: Update rules.
9229 (lex_one_token): Update.
9230 * expression.h (parse_completion): Don't declare.
9231 * d-exp.y: Update rules.
9232 (lex_one_token): Update rules.
9233 * c-exp.y: Update rules.
9234 (lex_one_token): Update.
9235 * ada-lang.c (resolve): Add "parse_completion" parameter.
9236 (resolve_subexp): Likewise.
9237 (ada_resolve_function): Likewise.
9238
43476f0b
TT
92392019-04-04 Tom Tromey <tom@tromey.com>
9240
9241 * parser-defs.h (struct parser_state) <start_arglist,
9242 end_arglist>: New methods.
9243 <arglist_len, m_funcall_chain>: New members.
9244 (arglist_len, start_arglist, end_arglist): Don't declare.
9245 * parse.c (arglist_len, funcall_chain): Remove global.
9246 (start_arglist, end_arglist): Remove functions.
9247 (parse_exp_in_context): Update.
9248 * p-exp.y: Update rules.
9249 * m2-exp.y: Update rules.
9250 * go-exp.y: Update rules.
9251 * f-exp.y: Update rules.
9252 * d-exp.y: Update rules.
9253 * c-exp.y: Update rules.
9254
5776fca3
TT
92552019-04-04 Tom Tromey <tom@tromey.com>
9256
9257 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9258 lex_operator, push_back>: New methods.
9259 Update all rules.
9260 (rust_parser::lex_hex, lex_escape): Rename and update.
9261 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9262 (rust_parser::lex_operator): Rename and update.
9263 (rust_parser::lex_number, rustyylex, rustyyerror)
9264 (rust_lex_test_init, rust_lex_test_sequence)
9265 (rust_lex_test_push_back, rust_lex_tests): Update.
9266 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9267 parameter.
9268 <lexptr, prev_lexptr>: New members.
9269 (lexptr, prev_lexptr): Don't declare.
9270 * parse.c (lexptr, prev_lexptr): Remove globals.
9271 (parse_exp_in_context): Update.
9272 * p-exp.y (yylex, yyerror): Update.
9273 * m2-exp.y (parse_number, yylex, yyerror): Update.
9274 * go-exp.y (lex_one_token, yyerror): Update.
9275 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9276 * d-exp.y (lex_one_token, yyerror): Update.
9277 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9278 (lex_one_token, yyerror): Update.
9279 * ada-lex.l (YY_INPUT): Update.
9280 (rewind_to_char): Update.
9281 * ada-exp.y (yyerror): Update.
9282
8621b685
TT
92832019-04-04 Tom Tromey <tom@tromey.com>
9284
9285 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9286 * parser-defs.h (struct parser_state) <parser_state>: Add new
9287 parameter.
9288 <comma_terminates>: New member.
9289 (comma_terminates): Don't declare global.
9290 * parse.c (comma_terminates): Remove global.
9291 (parse_exp_in_context): Update.
9292 * p-exp.y (yylex): Update.
9293 * m2-exp.y (yylex): Update.
9294 * go-exp.y (lex_one_token): Update.
9295 * f-exp.y (yylex): Update.
9296 * d-exp.y (lex_one_token): Update.
9297 * c-exp.y (lex_one_token): Update.
9298 * ada-lex.l: Update.
9299
28aaf3fd
TT
93002019-04-04 Tom Tromey <tom@tromey.com>
9301
9302 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9303 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9304 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9305 * parser-defs.h (paren_depth): Don't declare.
9306 * parse.c (paren_depth): Remove global.
9307 (parse_exp_in_context): Update.
9308 * p-exp.y (paren_depth): New global.
9309 (pascal_parse): Initialize it.
9310 * m2-exp.y (paren_depth): New global.
9311 (m2_parse): Initialize it.
9312 * go-exp.y (paren_depth): New global.
9313 (go_parse): Initialize it.
9314 * f-exp.y (paren_depth): New global.
9315 (f_parse): Initialize it.
9316 * d-exp.y (paren_depth): New global.
9317 (d_parse): Initialize it.
9318 * c-exp.y (paren_depth): New global.
9319 (c_parse): Initialize it.
9320 * ada-lex.l (paren_depth): New global.
9321 (lexer_init): Initialize it.
9322
1e58a4a4
TT
93232019-04-04 Tom Tromey <tom@tromey.com>
9324
9325 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9326 (rust_parser::convert_ast_to_type)
9327 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9328 * parser-defs.h (struct parser_state) <parser_state>: Add
9329 parameters. Initialize new members.
9330 <expression_context_block, expression_context_pc>: New members.
9331 * parse.c (expression_context_block, expression_context_pc):
9332 Remove globals.
9333 (parse_exp_in_context): Update.
9334 * p-exp.y: Update all rules.
9335 (yylex): Update.
9336 * m2-exp.y: Update all rules.
9337 (yylex): Update.
9338 * go-exp.y (yylex): Update.
9339 * f-exp.y (yylex): Update.
9340 * d-exp.y: Update all rules.
9341 (yylex): Update.
9342 * c-exp.y: Update all rules.
9343 (lex_one_token, classify_name, yylex, c_parse): Update.
9344 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9345
37eedb39
TT
93462019-04-04 Tom Tromey <tom@tromey.com>
9347
9348 * gdbarch.h, gdbarch.c: Rebuild.
9349 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9350 * stap-probe.h:
9351 (struct stap_parse_info): Replace "parser_state" with
9352 "expr_builder".
9353 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9354 (parser_state): New class.
9355 * parse.c (expr_builder): Rename.
9356 (expr_builder::release): Rename.
9357 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9358 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9359 (write_exp_elt_longcst, write_exp_elt_floatcst)
9360 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9361 (write_exp_string_vector, write_exp_bitstring)
9362 (write_exp_msymbol, mark_struct_expression)
9363 (write_dollar_variable)
9364 (insert_type_address_space, increase_expout_size): Replace
9365 "parser_state" with "expr_builder".
9366 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9367 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9368 "parser_state" with "expr_builder".
9369
73923d7e
TT
93702019-04-04 Tom Tromey <tom@tromey.com>
9371
9372 * rust-exp.y: Replace "parse_language" with method call.
9373 * p-exp.y:
9374 (yylex): Replace "parse_language" with method call.
9375 * m2-exp.y:
9376 (yylex): Replace "parse_language" with method call.
9377 * go-exp.y (classify_name): Replace "parse_language" with method
9378 call.
9379 * f-exp.y (yylex): Replace "parse_language" with method call.
9380 * d-exp.y (lex_one_token): Replace "parse_language" with method
9381 call.
9382 * c-exp.y:
9383 (lex_one_token, classify_name, yylex): Replace "parse_language"
9384 with method call.
9385 * ada-exp.y (find_primitive_type, type_char)
9386 (type_system_address): Replace "parse_language" with method call.
9387
fa9f5be6
TT
93882019-04-04 Tom Tromey <tom@tromey.com>
9389
9390 * rust-exp.y: Replace "parse_gdbarch" with method call.
9391 * parse.c (write_dollar_variable, insert_type_address_space):
9392 Replace "parse_gdbarch" with method call.
9393 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9394 call.
9395 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9396 call.
9397 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9398 "parse_gdbarch" with method call.
9399 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9400 with method call.
9401 * f-exp.y (parse_type, parse_f_type, yylex): Replace
9402 "parse_gdbarch" with method call.
9403 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9404 "parse_gdbarch" with method call.
9405 * c-exp.y (parse_type, parse_number, classify_name): Replace
9406 "parse_gdbarch" with method call.
9407 * ada-lex.l: Replace "parse_gdbarch" with method call.
9408 * ada-exp.y (parse_type, find_primitive_type, type_char)
9409 (type_system_address): Replace "parse_gdbarch" with method call.
9410
1201a264
TT
94112019-04-04 Tom Tromey <tom@tromey.com>
9412
9413 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9414 * stap-probe.c (stap_parse_argument): Update.
9415 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9416 initial_size parameter.
9417 * rust-exp.y (rust_lex_tests): Update.
9418 * parse.c (parser_state): Update.
9419 (parse_exp_in_context): Update.
9420 * parser-defs.h (struct parser_state) <parser_state>: Remove
9421 "initial_size" parameter.
9422
e3980ce2
TT
94232019-04-04 Tom Tromey <tom@tromey.com>
9424
9425 * parser-defs.h (increase_expout_size): Don't declare.
9426 * parse.c (increase_expout_size): Now static.
9427
e9f8e3f1
TS
94282019-04-04 Thomas Schwinge <thomas@codesourcery.com>
9429
9430 * gnu-nat.c (gnu_nat_target::wait): Fix
9431 target_waitstatus_to_string call.
9432
d7df6549
AB
94332019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9434
9435 * eval.c (evaluate_subexp_standard): Handle internal functions
9436 during Fortran function call handling.
9437
8bdc1658
AB
94382019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9439
9440 * NEWS: Mention new internal functions.
9441 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9442 (read_base_type): Use dwarf2_init_complex_target_type.
9443 * value.c (creal_internal_fn): New function.
9444 (cimag_internal_fn): New function.
9445 (_initialize_values): Register new internal functions.
9446
c29705b7
PW
94472019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9448
9449 * infrun.c (stop_all_threads): If debug_infrun, always
9450 trace the wait status after wait_one, using
9451 target_waitstatus_to_string and target_pid_to_str.
9452 (handle_inferior_event): Replace various trace of
9453 wait status kind by a single trace.
9454 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9455 wait status kind image by target_waitstatus_to_string.
9456 * target/waitstatus.c (target_waitstatus_to_string): Fix
9457 obsolete comment.
9458
05caa1d2
TT
94592019-04-01 Tom Tromey <tromey@adacore.com>
9460
9461 PR symtab/23331:
9462 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9463
9d1447e0
SDJ
94642019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9465 Pedro Alves <palves@redhat.com>
9466
9467 * top.c (quit_force): Call 'finalize_values'.
9468 * value.c (finalize_values): New function.
9469 * value.h (finalize_values): Declare.
9470
7734102d
EZ
94712019-03-30 Eli Zaretskii <eliz@gnu.org>
9472
9473 * NEWS: Announce $_gdb_major and $_gdb_minor.
9474
9475 * top.c (init_gdb_version_vars): New function.
9476 (gdb_init): Call init_gdb_version_vars.
9477
188e1fa9
TT
94782019-03-29 Tom Tromey <tromey@adacore.com>
9479
9480 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9481 help text. Remove dead code.
9482
2880242d
KS
94832019-03-29 Keith Seitz <keiths@redhat.com>
9484
9485 From Siddhesh Poyarekar:
9486 * f-lang.h (f77_get_upperbound): Return LONGEST.
9487 (f77_get_lowerbound): Likewise.
9488 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9489 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9490 print them.
9491 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9492 plongest to format print it.
9493 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9494 (f77_get_upperbound): Likewise.
9495 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9496 LOWER_BOUND to LONGEST.
9497 (f77_create_arrayprint_offset_tbl): Likewise.
9498
cc1defb1
KS
94992019-03-29 Keith Seitz <keiths@redhat.com>
9500
9501 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9502 %s/pulongest for TYPE_LENGTH instead of %d in format
9503 strings.
9504 * ada-typerint.c (ada_print_type): Likewise.
9505 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9506 * compile/compile-c-support.c (generate_register_struct): Likewise.
9507 * gdbtypes.c (recursive_dump_type): Likewise.
9508 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9509 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9510 instead of %d in format strings.
9511 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9512 to std::min to ULONGEST.
9513 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9514 instead of %d in format strings.
9515 * tracepoint.c (info_scope_command): Likewise.
9516 * typeprint.c (print_offset_data::update)
9517 (print_offset_data::finish): Likewise.
9518 * xtensa-tdep.c (xtensa_store_return_value)
9519 (xtensa_push_dummy_call): Likewise.
9520
e432ccf1
JT
95212019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9522
9523 * windows-nat.c (display_selector): Fixed format specifications
9524 for 64-bit Cygwin.
9525
65d2b333
PW
95262019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9527
9528 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9529
f489207e
SL
95302019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9531
9532 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9533 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9534 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9535 (nios2_linux_init_abi): Install it.
9536
bffa1015
AH
95372019-03-28 Alan Hayward <alan.hayward@arm.com>
9538
9539 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9540
fc96163a
AH
95412019-03-28 Alan Hayward <alan.hayward@arm.com>
9542
9543 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9544
20dc7e9b
PW
95452019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9546 Tom Tromey <tromey@adacore.com>
9547
9548 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9549
7f5331a8
JB
95502019-03-26 Joel Brobecker <brobecker@adacore.com>
9551
9552 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9553 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9554 method to compute the bounds of range types. Also print "[evaluated]"
9555 if the bounds' values come from a dynamic evaluation.
9556
18c77628
AB
95572019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9558
9559 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9560 whitespace when pretty printing is on.
9561
53c973f2
AH
95622019-03-26 Alan Hayward <alan.hayward@arm.com>
9563
e79be6e5 9564 * ppc-linux-nat.c: Add include.
53c973f2 9565
d851aa71
AH
95662019-03-26 Alan Hayward <alan.hayward@arm.com>
9567
e79be6e5 9568 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 9569
2fe7bab7
AH
95702019-03-26 Alan Hayward <alan.hayward@arm.com>
9571
e79be6e5 9572 * arm-linux-nat.c: Add include.
2fe7bab7 9573
068ef30e
SM
95742019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9575
9576 * source-cache.c (source_cache::get_source_lines): Re-read
9577 fullname after calling open_source_file.
9578
81a24d04
JB
95792019-03-25 John Baldwin <jhb@FreeBSD.org>
9580
9581 * NEWS: Mention TLS support for FreeBSD.
9582
79e7ae11
TT
95832019-03-25 Tom Tromey <tromey@adacore.com>
9584
9585 * minsyms.c (BUNCH_SIZE): Update comment.
9586 (~minimal_symbol_reader): Remove old comment.
9587 (compact_minimal_symbols): Update comment.
9588 (minimal_symbol_reader::install): Remove old comment. Update
9589 other comments.
9590
d45963c2
AH
95912019-03-25 Alan Hayward <alan.hayward@arm.com>
9592
9593 * s390-linux-nat.c: Add include.
9594
0f83012e
AH
95952019-03-25 Alan Hayward <alan.hayward@arm.com>
9596
9597 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9598 Call linux_get_hwcap.
9599 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9600 Likewise.
9601 (aarch64_linux_get_hwcap): Remove function.
9602 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9603 declaration.
9604 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9605 linux_get_hwcap.
9606 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9607 * linux-tdep.c (linux_get_hwcap): Add function.
9608 (linux_get_hwcap2): Likewise.
9609 * linux-tdep.h (linux_get_hwcap): Add declaration.
9610 (linux_get_hwcap2): Likewise.
9611 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9612 (ppc_linux_get_hwcap2): Likewise.
9613 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9614 linux_get_hwcap.
9615 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9616 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9617 (ppc_linux_nat_target::read_description): Likewise.
9618 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9619 * s390-linux-nat.c: Likewise.
9620 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9621
6640a367
TT
96222019-03-24 Tom Tromey <tom@tromey.com>
9623
9624 * ada-lang.c (standard_lookup): Simplify initialization.
9625 (ada_lookup_symbol_nonlocal): Simplify return.
9626 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9627 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9628 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9629 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9630 initialization.
9631 * solib.c (solib_global_lookup): Simplify.
9632 * symtab.c (null_block_symbol): Remove.
9633 (symbol_cache_lookup): Simplify returns.
9634 (lookup_language_this): Simplify returns.
9635 (lookup_symbol_aux): Simplify return.
9636 (lookup_local_symbol): Simplify returns.
9637 (lookup_global_symbol_from_objfile): Simplify return.
9638 (lookup_symbol_in_objfile_symtabs)
9639 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9640 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9641 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9642 * cp-namespace.c (cp_lookup_bare_symbol)
9643 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9644 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9645 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9646 (cp_lookup_symbol_via_imports): Simplify initialization.
9647 (find_symbol_in_baseclass): Likewise.
9648 * symtab.h (null_block_symbol): Remove.
9649 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9650 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9651 (d_lookup_symbol_module): Likewise.
9652 (find_symbol_in_baseclass): Simplify initialization.
9653
a930ebcd
TT
96542019-03-24 Tom Tromey <tom@tromey.com>
9655
9656 * expression.h: Don't include symtab.h.
9657 (struct block): Forward declare.
9658
582942f4
TT
96592019-03-24 Tom Tromey <tom@tromey.com>
9660
9661 * c-exp.y (typebase): Remove casts.
9662 * gdbtypes.c (lookup_unsigned_typename, )
9663 (lookup_signed_typename): Remove cast.
9664 * eval.c (parse_to_comma_and_eval): Remove cast.
9665 * parse.c (write_dollar_variable): Remove cast.
9666 * block.h (struct block) <superblock>: Now const.
9667 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9668 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9669 (map_block): Make "block" const.
9670 * symfile.h (struct quick_symbol_functions)
9671 <map_matching_symbols>: Constify block argument to "callback".
9672 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9673 const.
9674 (find_pc_sect_compunit_symtab): Make "b" const.
9675 (find_symbol_at_address): Likewise.
9676 (search_symbols): Likewise.
9677 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9678 (dw2_debug_names_lookup_symbol): Likewise.
9679 (dw2_map_matching_symbols): Update.
9680 * p-valprint.c (pascal_val_print): Remove "block".
9681 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9682 (aux_add_nonlocal_symbols): Make "block" const.
9683 (resolve_subexp): Remove cast.
9684 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9685 const.
9686 (iterate_over_file_blocks): Likewise.
9687 * f-exp.y (%union) <bval>: Remove.
9688 * coffread.c (patch_opaque_types): Make "b" const.
9689 * spu-tdep.c (spu_catch_start): Make "block" const.
9690 * c-valprint.c (print_unpacked_pointer): Remove "block".
9691 * symmisc.c (dump_symtab_1): Make "b" const.
9692 (block_depth): Make "block" const.
9693 * d-exp.y (%union) <bval>: Remove.
9694 * cp-support.h (cp_lookup_rtti_type): Update.
9695 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9696 * psymtab.c (psym_lookup_symbol): Make "block" const.
9697 (maintenance_check_psymtabs): Make "b" const.
9698 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9699 (enumerate_locals, enumerate_args): Update.
9700 * python/py-symtab.c (stpy_global_block): Make "block" const.
9701 (stpy_static_block): Likewise.
9702 * inline-frame.c (block_starting_point_at): Make "new_block"
9703 const.
9704 * block.c (find_block_in_blockvector): Make return type const.
9705 (blockvector_for_pc_sect): Make "b" const.
9706 (find_block_in_blockvector): Make "b" const.
9707
7ad417dd
TT
97082019-03-23 Tom Tromey <tom@tromey.com>
9709
9710 * varobj.c (varobj_create): Update.
9711 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9712 * printcmd.c (display_command, do_one_display): Don't reset
9713 innermost_block.
9714 * parser-defs.h (enum innermost_block_tracker_type): Move to
9715 expression.h.
9716 (innermost_block): Update comment.
9717 * parse.c (parse_exp_1): Add tracker_types parameter.
9718 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9719 tracker_types parameter. Reset innermost_block.
9720 (parse_exp_in_context): Remove.
9721 (parse_expression_for_completion): Update.
9722 * objfiles.c (~objfile): Don't reset expression_context_block or
9723 innermost_block.
9724 * expression.h (enum innermost_block_tracker_type): Move from
9725 parser-defs.h.
9726 (parse_exp_1): Add tracker_types parameter.
9727 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9728 reset innermost_block.
9729
b366c208
TT
97302019-03-23 Tom Tromey <tom@tromey.com>
9731
9732 * objfiles.h: Include bcache.h.
9733
9bb9b2f9
TT
97342019-03-23 Tom Tromey <tom@tromey.com>
9735
9736 * linespec.c (get_current_search_block): Use
9737 scoped_restore_current_language.
9738 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9739
59c28372
AH
97402019-03-22 Alan Hayward <alan.hayward@arm.com>
9741 Jiong Wang <jiong.wang@arm.com>
9742
9743 * aarch64-linux-tdep.c
9744 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9745 section.
9746 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9747
17e116a7
AH
97482019-03-22 Alan Hayward <alan.hayward@arm.com>
9749 Jiong Wang <jiong.wang@arm.com>
9750
9751 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9752 instructions.
9753 (aarch64_analyze_prologue_test): Add PACIASP test.
9754 (aarch64_prologue_prev_register): Unmask PC value.
9755
11e1b75f
AH
97562019-03-22 Alan Hayward <alan.hayward@arm.com>
9757 Jiong Wang <jiong.wang@arm.com>
9758
9759 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9760 (aarch64_dwarf2_prev_register): Unmask PC value.
9761 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9762 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9763 DW_CFA_AARCH64_negate_ra_state.
9764 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9765
34dcc7cf
AH
97662019-03-22 Alan Hayward <alan.hayward@arm.com>
9767 Jiong Wang <jiong.wang@arm.com>
9768
9769 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9770 registers.
9771 (aarch64_pseudo_register_name): Likewise.
9772 (aarch64_pseudo_register_type): Likewise.
9773 (aarch64_pseudo_register_reggroup_p): Likewise.
9774 (aarch64_gdbarch_init): Add pauth registers.
9775 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9776 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9777 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9778 (struct gdbarch_tdep): Add regnum for ra_state.
9779
1ef53e6b
AH
97802019-03-22 Alan Hayward <alan.hayward@arm.com>
9781 Jiong Wang <jiong.wang@arm.com>
9782
9783 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9784
76bed0fd
AH
97852019-03-22 Alan Hayward <alan.hayward@arm.com>
9786 Jiong Wang <jiong.wang@arm.com>
9787
9788 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9789 function.
9790 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9791 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9792 (aarch64_gdbarch_init): Add puth registers.
9793 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9794 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9795 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9796
ee4fbcfa
AH
97972019-03-22 Alan Hayward <alan.hayward@arm.com>
9798 Jiong Wang <jiong.wang@arm.com>
9799
9800 * aarch64-linux-nat.c
9801 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9802 * aarch64-linux-tdep.c
9803 (aarch64_linux_core_read_description): Likewise.
9804 (aarch64_linux_get_hwcap): New function.
9805 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9806 (aarch64_linux_get_hwcap): New declaration.
9807
6dc0ebde
AH
98082019-03-22 Alan Hayward <alan.hayward@arm.com>
9809 Jiong Wang <jiong.wang@arm.com>
9810
9811 * aarch64-linux-nat.c
9812 (aarch64_linux_nat_target::read_description): Add pauth param.
9813 * aarch64-linux-tdep.c
9814 (aarch64_linux_core_read_description): Likewise.
9815 * aarch64-tdep.c (struct target_desc): Add in pauth.
9816 (aarch64_read_description): Add pauth param.
9817 (aarch64_gdbarch_init): Likewise.
9818 * aarch64-tdep.h (aarch64_read_description): Likewise.
9819 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9820 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9821 * features/Makefile: Add new files.
9822 * features/aarch64-pauth.c: New file.
9823 * features/aarch64-pauth.xml: New file.
9824
595915c1
TT
98252019-03-20 Tom Tromey <tromey@adacore.com>
9826
9827 * infrun.c (handle_inferior_event): Rename from
9828 handle_inferior_event_1. Create a scoped_value_mark.
9829 (handle_inferior_event): Remove.
9830
4c7d57e7
TT
98312019-03-19 Tom Tromey <tromey@adacore.com>
9832
9833 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9834 * infrun.h (print_stop_event): Add "displays" parameter.
9835 * infrun.c (print_stop_event): Add "displays" parameter.
9836
cb246234
PA
98372019-03-19 Pedro Alves <palves@redhat.com>
9838
9839 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9840 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9841 to -1. Fix TABs vs spaces.
9842 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9843 * tui/tui-out.h (tui_ui_out) Add intro comments.
9844 <m_line, m_start_of_line>: In-class initialize, and add describing
9845 comment.
9846
3a0e45b2
AH
98472019-03-18 Alan Hayward <alan.hayward@arm.com>
9848
9849 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9850 variable names.
9851 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9852
5371b850
PA
98532019-03-18 Pedro Alves <palves@redhat.com>
9854 Eli Zaretskii <eliz@gnu.org>
9855
9856 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9857 m_line and m_start_of_line.
9858
b17c4cd0
EZ
98592019-03-18 Eli Zaretskii <eliz@gnu.org>
9860
9861 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9862 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9863 it returns a newline. This fixes a regression in TU mode, whereby
9864 the next line is output on the same screen line as the user input.
9865
4bd56d18
TT
98662019-03-18 Tom Tromey <tromey@adacore.com>
9867
9868 * minsyms.c (minimal_symbol_reader::install): Remove call to
9869 obstack_blank.
9870
55c10aca
PA
98712019-03-18 Pedro Alves <palves@redhat.com>
9872
9873 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9874 New globals.
9875 (apply_style): New, factored out from ...
9876 (apply_ansi_escape): ... this. Handle reverse video mode.
9877 (tui_set_reverse_mode): New function.
9878 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9879 * tui/tui-winsource.c (tui_show_source_line): Use
9880 tui_set_reverse_mode instead of setting A_STANDOUT.
9881 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9882 New setter methods.
9883
647bb750
HD
98842019-03-18 Hannes Domani <ssbssa@yahoo.de>
9885
9886 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9887 Handle tabs.
9888
bff8c71f
TT
98892019-03-18 Tom Tromey <tromey@adacore.com>
9890
9891 * ada-lang.c (empty_array): Add "high" parameter.
9892 (ada_evaluate_subexp): Update.
9893
58785d98
ST
98942019-03-17 Sergei Trofimovich <siarheit@google.com>
9895
9896 * unittests/string_view-selftests.c: Define
9897 _initialize_string_view_selftests unconditionally.
9898
d4cbef22
ВМ
98992019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9900
9901 PR gdb/24350
9902 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9903
fce4c071
ВМ
99042019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9905
9906 PR gdb/24351
9907 * windows-nat.c (display_selector): Fix format specifiers.
9908
f7f0a123
EZ
99092019-03-17 Eli Zaretskii <eliz@gnu.org>
9910
9911 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9912 tui_refill_source_window instead of tui_refresh_win, to update the
9913 current execution line. This fixes redisplay of the current line
9914 when stepping through the code with "next" or "step".
9915
ab42892f
EZ
99162019-03-16 Eli Zaretskii <eliz@gnu.org>
9917
9918 * source-cache.c (source_cache::get_source_lines): Call
9919 find_source_lines to initialize s->nlines. This fixes vertical
9920 scrolling of TUI source window when the DOWN arrow is pressed.
9921
8d8c087f
PW
99222019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9923
9924 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9925 linux-thread-db.c (_initialize_thread_db): Likewise.
9926
798e1c30
EZ
99272019-03-16 Eli Zaretskii <eliz@gnu.org>
9928
9929 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9930 wclrtoeol in tui_show_source_line". This reverts changes made in
9931 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9932
eefba3da
TT
99332019-03-15 Tom Tromey <tom@tromey.com>
9934
9935 * symtab.h (struct minimal_symbol): Derive from
9936 general_symbol_info.
9937 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9938 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9939 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9940 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9941 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9942 (MSYMBOL_SEARCH_NAME): Update.
9943 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9944 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9945 * minsyms.c (minimal_symbol_reader::record_full): Update.
9946
0de2420c
TT
99472019-03-15 Tom Tromey <tom@tromey.com>
9948
9949 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9950
042d75e4
TT
99512019-03-15 Tom Tromey <tom@tromey.com>
9952
9953 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9954 unique_xmalloc_ptr.
9955 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9956 Update.
9957 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9958 (build_minimal_symbol_hash_tables)
9959 (minimal_symbol_reader::install): Update.
9960
db92718b
TT
99612019-03-15 Tom Tromey <tom@tromey.com>
9962
9963 * symtab.c (create_demangled_names_hash): Update.
9964 (symbol_set_names): Update.
9965 * objfiles.h (struct objfile_per_bfd_storage)
9966 <demangled_names_hash>: Now an htab_up.
9967 * objfiles.c (objfile_per_bfd_storage): Simplify.
9968
d6797f46
TT
99692019-03-15 Tom Tromey <tom@tromey.com>
9970
9971 * objfiles.h (struct objfile_per_bfd_storage): Declare
9972 destructor.
9973 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9974 New.
9975 (get_objfile_bfd_data): Use new. Don't initialize
9976 language_of_main.
9977 (free_objfile_per_bfd_storage): Remove.
9978 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9979
741d7538
TT
99802019-03-15 Tom Tromey <tom@tromey.com>
9981
9982 * symfile.c (reread_symbols): Update.
9983 * objfiles.c (objfile::objfile): Update.
9984 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9985 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9986 comment.
9987 (minimal_symbol_reader::install): Update.
9988 (terminate_minimal_symbol_table): Remove.
9989 * jit.c (jit_object_close_impl): Update.
9990
788c80d1
TT
99912019-03-15 Tom Tromey <tom@tromey.com>
9992
9993 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9994 initializations.
9995
1b7a07cb
TT
99962019-03-15 Tom Tromey <tom@tromey.com>
9997
9998 * objfiles.h (struct objfile_per_bfd_storage)
9999 <demangled_hash_languages>: Now a bitset.
10000 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10001 (lookup_minimal_symbol): Update.
10002
3db066bc
TT
100032019-03-15 Tom Tromey <tom@tromey.com>
10004
10005 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10006 Don't return the symbol.
10007 * coffread.c (record_minimal_symbol): Use record_full.
10008
3fff2c37
EZ
100092019-03-14 Eli Zaretskii <eliz@gnu.org>
10010
10011 The MS-Windows port of ncurses fails to switch to a color pair if
10012 one or both of the colors are the implicit default colors. This
10013 change records the default colors when TUI is initialized, and
10014 then specifies them explicitly when a color pair uses the default
10015 colors. This allows color styling in TUI mode on MS-Windows.
10016
10017 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10018 ncurses_norm_attr.
10019 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10020 colors in ncurses_norm_attr.
10021 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10022 "none", replace it with the default color recorded in
10023 ncurses_norm_attr.
10024
3b336828
TT
100252019-03-14 Tom Tromey <tromey@adacore.com>
10026
10027 * source-cache.h (class source_cache) <get_source_lines>: Return
10028 std::string.
10029 * source-cache.c (source_cache::extract_lines): Handle case where
10030 first_pos==npos. Return std::string.
10031 (source_cache::get_source_lines): Update.
10032
d085f989
TT
100332019-03-14 Tom Tromey <tromey@adacore.com>
10034
10035 * NEWS: Add item for "style sources" commands.
10036 * source-cache.c (source_cache::get_source_lines): Check
10037 source_styling.
10038 * cli/cli-style.c (source_styling): New global.
10039 (_initialize_cli_style): Add "style sources" commands.
10040 (show_style_sources): New function.
10041 * cli/cli-style.h (source_styling): Declare.
10042
6f11e682
TT
100432019-03-14 Pedro Alves <palves@redhat.com>
10044 Tom Tromey <tromey@adacore.com>
10045
10046 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10047 * tui/tui-winsource.c (tui_refill_source_window): New function,
10048 from...
10049 (tui_horizontal_source_scroll): ... here. Move some logic.
10050 * cli/cli-style.c (set_style_enabled): Notify new observable.
10051 * tui/tui-hooks.c (tui_redisplay_source): New function.
10052 (tui_attach_detach_observers): Attach or detach
10053 tui_redisplay_source.
10054 * observable.h (source_styling_changed): New observable.
10055 * observable.c: Define source_styling_changed observable.
10056
a068643d
TT
100572019-03-13 Tom Tromey <tromey@adacore.com>
10058
10059 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10060 (i386_gnu_nat_target::store_registers): Update.
10061 * target-debug.h (target_debug_print_std_string): New macro.
10062 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10063 * windows-tdep.c (display_one_tib): Update.
10064 * tui/tui-stack.c (tui_make_status_line): Update.
10065 * top.c (print_inferior_quit_action): Update.
10066 * thread.c (thr_try_catch_cmd): Update.
10067 (add_thread_with_info): Update.
10068 (thread_target_id_str): Update.
10069 (thr_try_catch_cmd): Update.
10070 (thread_command): Update.
10071 (thread_find_command): Update.
10072 * record-btrace.c (record_btrace_target::info_record)
10073 (record_btrace_resume_thread, record_btrace_target::resume)
10074 (record_btrace_cancel_resume, record_btrace_step_thread)
10075 (record_btrace_target::wait, record_btrace_target::wait)
10076 (record_btrace_target::wait, record_btrace_target::stop): Update.
10077 * progspace.c (print_program_space): Update.
10078 * process-stratum-target.c
10079 (process_stratum_target::thread_address_space): Update.
10080 * linux-fork.c (linux_fork_mourn_inferior)
10081 (detach_checkpoint_command, info_checkpoints_command)
10082 (linux_fork_context): Update.
10083 (linux_fork_detach): Update.
10084 (class scoped_switch_fork_info): Update.
10085 (delete_checkpoint_command): Update.
10086 * infrun.c (follow_fork_inferior): Update.
10087 (follow_fork_inferior): Update.
10088 (proceed_after_vfork_done): Update.
10089 (handle_vfork_child_exec_or_exit): Update.
10090 (follow_exec): Update.
10091 (displaced_step_prepare_throw): Update.
10092 (displaced_step_restore): Update.
10093 (start_step_over): Update.
10094 (resume_1): Update.
10095 (clear_proceed_status_thread): Update.
10096 (proceed): Update.
10097 (print_target_wait_results): Update.
10098 (do_target_wait): Update.
10099 (context_switch): Update.
10100 (stop_all_threads): Update.
10101 (restart_threads): Update.
10102 (finish_step_over): Update.
10103 (handle_signal_stop): Update.
10104 (switch_back_to_stepped_thread): Update.
10105 (keep_going_pass_signal): Update.
10106 (print_exited_reason): Update.
10107 (normal_stop): Update.
10108 * inferior.c (inferior_pid_to_str): Change return type.
10109 (print_selected_inferior): Update.
10110 (add_inferior): Update.
10111 (detach_inferior): Update.
10112 * dummy-frame.c (fprint_dummy_frames): Update.
10113 * dcache.c (dcache_info_1): Update.
10114 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10115 (btrace_fetch, btrace_clear): Update.
10116 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10117 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10118 type.
10119 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10120 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10121 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10122 * gdbarch.c, gdbarch.h: Rebuild.
10123 * gdbarch.sh (core_pid_to_str): Change return type.
10124 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10125 return type.
10126 (windows_nat_target::pid_to_str): Change return type.
10127 (windows_delete_thread): Update.
10128 (windows_nat_target::attach): Update.
10129 (windows_nat_target::files_info): Update.
10130 * target-delegates.c: Rebuild.
10131 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10132 return type.
10133 (sol_thread_target::pid_to_str): Change return type.
10134 * remote.c (class remote_target) <pid_to_str>: Change return
10135 type.
10136 (remote_target::pid_to_str): Change return type.
10137 (extended_remote_target::attach, remote_target::remote_stop_ns)
10138 (remote_target::remote_notif_remove_queued_reply)
10139 (remote_target::push_stop_reply, remote_target::disable_btrace):
10140 Update.
10141 (extended_remote_target::attach): Update.
10142 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10143 type.
10144 (gdbsim_target::pid_to_str): Change return type.
10145 * ravenscar-thread.c (struct ravenscar_thread_target)
10146 <pid_to_str>: Change return type.
10147 (ravenscar_thread_target::pid_to_str): Change return type.
10148 * procfs.c (class procfs_target) <pid_to_str>: Change return
10149 type.
10150 (procfs_target::pid_to_str): Change return type.
10151 (procfs_target::attach): Update.
10152 (procfs_target::detach): Update.
10153 (procfs_target::fetch_registers): Update.
10154 (procfs_target::store_registers): Update.
10155 (procfs_target::wait): Update.
10156 (procfs_target::files_info): Update.
10157 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10158 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10159 return type.
10160 (nto_procfs_target::pid_to_str): Change return type.
10161 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10162 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10163 return type.
10164 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10165 (exit_lwp): Update.
10166 (attach_proc_task_lwp_callback, get_detach_signal)
10167 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10168 (linux_nat_target::resume, wait_lwp, stop_callback)
10169 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10170 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10171 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10172 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10173 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10174 type.
10175 (inf_ptrace_target::attach): Update.
10176 (inf_ptrace_target::files_info): Update.
10177 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10178 type.
10179 (go32_nat_target::pid_to_str): Change return type.
10180 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10181 (gnu_nat_target::wait): Update.
10182 (gnu_nat_target::wait): Update.
10183 (gnu_nat_target::resume): Update.
10184 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10185 (fbsd_nat_target::wait): Update.
10186 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10187 type.
10188 (darwin_nat_target::attach): Update.
10189 * corelow.c (class core_target) <pid_to_str>: Change return type.
10190 (core_target::pid_to_str): Change return type.
10191 * target.c (normal_pid_to_str): Change return type.
10192 (default_pid_to_str): Likewise.
10193 (target_pid_to_str): Change return type.
10194 (target_translate_tls_address): Update.
10195 (target_announce_detach): Update.
10196 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10197 return type.
10198 (bsd_uthread_target::pid_to_str): Change return type.
10199 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10200 type.
10201 (bsd_kvm_target::pid_to_str): Change return type.
10202 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10203 return type.
10204 (aix_thread_target::pid_to_str): Change return type.
10205 * target.h (struct target_ops) <pid_to_str>: Change return type.
10206 (target_pid_to_str, normal_pid_to_str): Likewise.
10207 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10208 type.
10209 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10210 type.
10211 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10212 return type.
10213 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10214 type.
10215 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10216 type.
10217 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10218 return type.
10219
b4be1b06
SM
102202019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10221
10222 * NEWS: Mention that the new default MI version is 3. Mention
10223 changes to the output of commands and events that deal with
10224 multi-location breakpoints.
10225 * breakpoint.c: Include "mi/mi-out.h".
10226 (print_one_breakpoint): Change output syntax if using MI version
10227 >= 3.
10228 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10229 New.
10230 (mi_multi_location_breakpoint_output_fixed): New.
10231 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10232 (mi_cmd_fix_multi_location_breakpoint_output): New.
10233 (mi_multi_location_breakpoint_output_fixed): New.
10234 * mi/mi-cmds.c (mi_cmds): Register command
10235 -fix-multi-location-breakpoint-output.
10236 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10237 interpreter "mi".
10238
8e5e5494
SM
102392019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10240
10241 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10242 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10243 instantiate mi_ui_out based on interpreter name.
10244 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10245 * mi/mi-main.c (mi_load_progress): Likewise.
10246
197df35e
JB
102472019-03-12 John Baldwin <jhb@FreeBSD.org>
10248
10249 * NEWS: Combine separate "New targets" sections for 8.3.
10250
8399425f
JB
102512019-03-12 John Baldwin <jhb@FreeBSD.org>
10252
10253 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10254 (ppcfbsd_init_abi): Install gdbarch
10255 "fetch_tls_load_module_address" and "get_thread_local_address"
10256 methods.
10257
b0f87ed0
JB
102582019-03-12 John Baldwin <jhb@FreeBSD.org>
10259
10260 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10261 (riscv_fbsd_init_abi): Install gdbarch
10262 "fetch_tls_load_module_address" and "get_thread_local_address"
10263 methods.
10264
ce25aa57
JB
102652019-03-12 John Baldwin <jhb@FreeBSD.org>
10266
10267 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10268 (i386fbsd_init_abi): Install gdbarch
10269 "fetch_tls_load_module_address" and "get_thread_local_address"
10270 methods.
10271
f5424cfa
JB
102722019-03-12 John Baldwin <jhb@FreeBSD.org>
10273
10274 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10275 (amd64fbsd_init_abi): Install gdbarch
10276 "fetch_tls_load_module_address" and "get_thread_local_address"
10277 methods.
10278
945f3901
JB
102792019-03-12 John Baldwin <jhb@FreeBSD.org>
10280
10281 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10282 (struct fbsd_pspace_data): New type.
10283 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10284 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10285 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10286 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10287 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10288
ef0bd204
JB
102892019-03-12 John Baldwin <jhb@FreeBSD.org>
10290
10291 * gdbtypes.c (lookup_struct_elt): New function.
10292 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10293 * gdbtypes.h (struct struct_elt): New type.
10294 (lookup_struct_elt): New prototype.
10295
36c53a02
JB
102962019-03-12 John Baldwin <jhb@FreeBSD.org>
10297
10298 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10299 remove disabled code block.
10300
6e056c81
JB
103012019-03-12 John Baldwin <jhb@FreeBSD.org>
10302
10303 * gdbarch.sh (get_thread_local_address): New method.
10304 * gdbarch.h, gdbarch.c: Regenerate.
10305 * target.c (target_translate_tls_address): Use
10306 gdbarch_get_thread_local_address if present instead of
10307 target::get_thread_local_address.
10308
cd250a18
JB
103092019-03-12 John Baldwin <jhb@FreeBSD.org>
10310
10311 * target.h (target::get_thread_local_address): Update comment.
10312
df22c1e5
JB
103132019-03-12 John Baldwin <jhb@FreeBSD.org>
10314
10315 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10316 objfile->separate_debug_objfile_backlink if not NULL.
10317
dd6876c9
JB
103182019-03-12 John Baldwin <jhb@FreeBSD.org>
10319
10320 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10321 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10322 (amd64bsd_store_inferior_registers): Likewise.
10323 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10324 Enable segment base registers.
10325 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10326 PT_GETFSBASE and PT_GETGSBASE.
10327 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10328 PT_SETGSBASE.
10329 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10330 segment base registers.
10331 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10332
1163a4b7
JB
103332019-03-12 John Baldwin <jhb@FreeBSD.org>
10334
10335 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10336 Update calls to i386_target_description to add 'segments'
10337 parameter.
10338 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10339 add segment base registers.
10340 * arch/i386.c (i386_create_target_description): Add 'segments'
10341 parameter to enable segment base registers.
10342 * arch/i386.h (i386_create_target_description): Likewise.
10343 * features/i386/32bit-segments.xml: New file.
10344 * features/i386/32bit-segments.c: Generate.
10345 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10346 call to i386_target_description to add 'segments' parameter.
10347 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10348 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10349 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10350 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10351 if feature is present.
10352 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10353 Add 'segments' parameter to call to i386_target_description.
10354 (i386_target_description): Add 'segments' parameter to enable
10355 segment base registers.
10356 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10357 to call to i386_target_description.
10358 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10359 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10360 Define I386_NUM_REGS.
10361 (i386_target_description): Add 'segments' parameter to enable
10362 segment base registers.
10363
3a350822
EZ
103642019-03-12 Eli Zaretskii <eliz@gnu.org>
10365
10366 PR/24325
10367 * source-cache.c: #undef open and close, to avoid unresolved
10368 externals during linking.
10369
ffdd69cf
TT
103702019-03-12 Tom Tromey <tromey@adacore.com>
10371
10372 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10373 const. Add initializers.
10374 (_initialize_remote): Don't initialize ptid globals.
10375
ec148c57
PA
103762019-03-12 Pedro Alves <palves@redhat.com>
10377
10378 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10379
32764270
PA
103802019-03-12 Pedro Alves <palves@redhat.com>
10381
10382 * cp-name-parser.y (main): Remove unused 'len' variable.
10383
17547186
TT
103842019-03-12 Tom Tromey <tromey@adacore.com>
10385
10386 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10387 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10388
d3a70e03
TT
103892019-03-12 Tom Tromey <tromey@adacore.com>
10390
10391 * linux-nat.c (iterate_over_lwps): Update.
10392 (stop_callback): Remove parameter.
10393 (stop_wait_callback, detach_callback, resume_set_callback)
10394 (select_singlestep_lwp_callback, set_ignore_sigint)
10395 (status_callback, resumed_callback, resume_clear_callback)
10396 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10397 data parameter.
10398 (linux_nat_target::detach, linux_nat_target::resume)
10399 (linux_stop_and_wait_all_lwps, select_event_lwp)
10400 (linux_nat_filter_event, linux_nat_wait_1)
10401 (linux_nat_target::kill, linux_nat_target::stop)
10402 (linux_nat_target::stop): Update.
10403 (linux_nat_resume_callback): Change type.
10404 (resume_stopped_resumed_lwps, count_events_callback)
10405 (select_event_lwp_callback): Likewise.
10406 (linux_stop_lwp, linux_nat_stop_lwp): Update.
10407 * arm-linux-nat.c (struct update_registers_data): Remove.
10408 (update_registers_callback): Change type.
10409 (arm_linux_insert_hw_breakpoint1): Update.
10410 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10411 parameter.
10412 (x86_linux_dr_set_addr): Update.
10413 (x86_linux_dr_set_control): Update.
10414 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10415 (iterate_over_lwps): Use gdb::function_view.
10416 * nat/aarch64-linux-hw-point.c (struct
10417 aarch64_dr_update_callback_param): Remove.
10418 (debug_reg_change_callback): Change type.
10419 (aarch64_notify_debug_reg_change): Update.
10420 * s390-linux-nat.c (s390_refresh_per_info): Update.
10421
82cb27ff
TT
104222019-03-11 Tom Tromey <tromey@adacore.com>
10423
10424 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10425 redundant assignment to "this_cu".
10426
568c0683
SM
104272019-03-08 Simon Marchi <simon.marchi@efficios.com>
10428
10429 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10430
f09ce22d
SM
104312019-03-08 Simon Marchi <simon.marchi@efficios.com>
10432
10433 * gdbtypes.c (rank_one_type_parm_set): New function extracted
10434 from...
10435 (rank_one_type): ... this.
10436
595f96a9
SM
104372019-03-08 Simon Marchi <simon.marchi@efficios.com>
10438
10439 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10440 from...
10441 (rank_one_type): ... this.
10442
2598a94b
SM
104432019-03-08 Simon Marchi <simon.marchi@efficios.com>
10444
10445 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10446 from...
10447 (rank_one_type): ... this.
10448
7f17b20d
SM
104492019-03-08 Simon Marchi <simon.marchi@efficios.com>
10450
10451 * gdbtypes.c (rank_one_type_parm_float): New function extracted
10452 from...
10453 (rank_one_type): ... this.
10454
2c509035
SM
104552019-03-08 Simon Marchi <simon.marchi@efficios.com>
10456
10457 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10458 from...
10459 (rank_one_type): ... this.
10460
0dd322dc
SM
104612019-03-08 Simon Marchi <simon.marchi@efficios.com>
10462
10463 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10464 from...
10465 (rank_one_type): ... this.
10466
41ea4728
SM
104672019-03-08 Simon Marchi <simon.marchi@efficios.com>
10468
10469 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10470 from...
10471 (rank_one_type): ... this.
10472
793cd1d2
SM
104732019-03-08 Simon Marchi <simon.marchi@efficios.com>
10474
10475 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10476 from...
10477 (rank_one_type): ... this.
10478
34910087
SM
104792019-03-08 Simon Marchi <simon.marchi@efficios.com>
10480
10481 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10482 from...
10483 (rank_one_type): ... this.
10484
f1f832d6
SM
104852019-03-08 Simon Marchi <simon.marchi@efficios.com>
10486
10487 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10488 from...
10489 (rank_one_type): ... this.
10490
b9f4512f
SM
104912019-03-08 Simon Marchi <simon.marchi@efficios.com>
10492
10493 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10494 from...
10495 (rank_one_type): ... this.
10496
9293fc63
SM
104972019-03-08 Simon Marchi <simon.marchi@efficios.com>
10498
10499 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10500 from...
10501 (rank_one_type): ... this.
10502
e3abbe7e
PW
105032019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10504
10505 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10506 inferior-events' shows the example events.
10507
e4adb939
EZ
105082019-03-08 Eli Zaretskii <eliz@gnu.org>
10509
10510 Support styling on native MS-Windows console
10511
10512 PR/24315
10513 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10514 on MS-Windows if $TERM is not defined.
10515
10516 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10517
10518 * posix-hdep.c (gdb_console_fputs):
10519 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10520 functions.
10521 * ui-file.h (gdb_console_fputs): Add prototype.
10522
10523 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10524 back to fputs only if the former returns zero.
10525
25629dfd
TT
105262019-03-07 Tom Tromey <tom@tromey.com>
10527
10528 * symmisc.c (print_symbol_bcache_statistics): Update.
10529 (print_objfile_statistics): Update.
10530 * symfile.c (allocate_symtab): Update.
10531 * stabsread.c: Don't include bcache.h.
10532 * psymtab.h (struct psymbol_bcache): Don't declare.
10533 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10534 (psymbol_bcache_init, psymbol_bcache_free)
10535 (psymbol_bcache_get_bcache): Don't declare.
10536 * psymtab.c (struct psymbol_bcache): Remove.
10537 (psymtab_storage::psymtab_storage): Update.
10538 (psymtab_storage::~psymtab_storage): Update.
10539 (psymbol_bcache_init, psymbol_bcache_free)
10540 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10541 (add_psymbol_to_bcache): Update.
10542 (allocate_psymtab): Update.
10543 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10544 macro_cache>: No longer pointers.
10545 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10546 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10547 * macrotab.c (macro_bcache): Update.
10548 * macroexp.c: Don't include bcache.h.
10549 * gdbtypes.c (check_types_worklist): Update.
10550 (types_deeply_equal): Remove TRY/CATCH. Update.
10551 * elfread.c (elf_symtab_read): Update.
10552 * dwarf2read.c: Don't include bcache.h.
10553 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10554 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10555 (print_bcache_statistics, bcache_memory_used): Don't declare.
10556 (struct bcache): Move from bcache.c. Add constructor, destructor,
10557 methods. Rename all data members.
10558 * bcache.c (struct bcache): Move to bcache.h.
10559 (bcache::expand_hash_table): Rename from expand_hash_table.
10560 (bcache): Remove.
10561 (bcache::insert): Rename from bcache_full.
10562 (bcache::compare): Rename from bcache_compare.
10563 (bcache_xmalloc): Remove.
10564 (bcache::~bcache): Rename from bcache_xfree.
10565 (bcache::print_statistics): Rename from print_bcache_statistics.
10566 (bcache::memory_used): Rename from bcache_memory_used.
10567
fe726667
PA
105682019-03-07 Pedro Alves <palves@redhat.com>
10569
10570 * infrun.c (normal_stop): Also check for
10571 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10572
7584bb30
AB
105732019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10574
10575 * f-lang.c (value_from_host_double): Moved to...
10576 * value.c (value_from_host_double): ...here.
10577 * value.h (value_from_host_double): Declare.
10578 * guile/scm-math.c (vlscm_convert_typed_number): Use
10579 value_from_host_double.
10580 (vlscm_convert_number): Likewise.
10581 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10582 * python/py-value.c (convert_value_from_python): Likewise.
10583
a7b1986e
TT
105842019-03-06 Tom Tromey <tom@tromey.com>
10585
10586 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10587
0ccf4211
TT
105882019-03-06 Tom Tromey <tom@tromey.com>
10589
10590 * utils.h (free_current_contents): Don't declare.
10591 * utils.c (free_current_contents): Remove.
10592
fe7b42e5
TT
105932019-03-06 Tom Tromey <tom@tromey.com>
10594
10595 * top.c (quit_force): Update.
10596 * main.c (captured_command_loop): Update.
10597 * common/new-op.c (operator new): Update.
10598 * common/common-exceptions.c (struct catcher)
10599 <save_cleanup_chain>: Remove member.
10600 (exceptions_state_mc_init): Update.
10601 (exception_try_scope_entry): Return nullptr.
10602 (exception_try_scope_exit, exception_rethrow)
10603 (throw_exception_sjlj, throw_exception_cxx): Update.
10604 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10605 (all_cleanups, do_cleanups, discard_cleanups)
10606 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10607 (restore_cleanups, restore_final_cleanups): Don't declare.
10608 (do_final_cleanups): Remove parameter.
10609 * common/cleanups.c (cleanup_chain, make_cleanup)
10610 (make_cleanup_dtor, all_cleanups, do_cleanups)
10611 (discard_my_cleanups, discard_cleanups)
10612 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10613 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10614 (null_cleanup): Remove.
10615 (do_final_cleanups): Remove parameter.
10616
c6321f19
TT
106172019-03-06 Tom Tromey <tom@tromey.com>
10618
10619 * remote.c (remote_target::remote_parse_stop_reply): Use
10620 unique_xmalloc_ptr.
10621
61b30099
TT
106222019-03-06 Tom Tromey <tom@tromey.com>
10623
10624 * stabsread.c (struct stabs_field_info): Rename from field_info.
10625 <list, fnlist>: Add initializers.
10626 <obstack>: New member.
10627 (read_member_functions, read_struct_fields, read_baseclasses):
10628 Allocate on obstack. Don't use cleanups.
10629 (read_one_struct_field, read_member_functions, read_struct_fields)
10630 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10631 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10632 (read_struct_type): Update.
10633
6cceac94
TT
106342019-03-06 Tom Tromey <tom@tromey.com>
10635
10636 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10637 * common/filestuff.h (make_cleanup_close): Don't declare.
10638 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10639 Remove.
10640
72412762
TT
106412019-03-06 Tom Tromey <tom@tromey.com>
10642
10643 * solib-aix.c: Use make_scope_exit.
10644
2b6ff1c0
TT
106452019-03-06 Tom Tromey <tom@tromey.com>
10646
10647 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10648 Use make_scope_exit.
10649
d01c5877
TT
106502019-03-06 Tom Tromey <tom@tromey.com>
10651
10652 * solib-svr4.c (disable_probes_interface): Remove parameter.
10653 (svr4_handle_solib_event): Use make_scope_exit.
10654
32603266
TT
106552019-03-06 Tom Tromey <tom@tromey.com>
10656
10657 * remote.c (struct stop_reply_deleter): Remove.
10658 (stop_reply_up): Update.
10659 (struct stop_reply): Derive from notif_event. Don't typedef.
10660 <regcache>: Now a std::vector.
10661 (stop_reply_xfree): Remove.
10662 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10663 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10664 (remote_target::discard_pending_stop_replies): Use delete.
10665 (remote_target::remote_parse_stop_reply): Update.
10666 (remote_target::process_stop_reply): Update.
10667 * remote-notif.h (struct notif_event): Add virtual destructor.
10668 Remove "dtr" member.
10669 (struct notif_client) <alloc_event>: Return a unique_ptr.
10670 (notif_event_xfree): Don't declare.
10671 (notif_event_up): New typedef.
10672 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10673 (notif_event_xfree, do_notif_event_xfree): Remove.
10674 (remote_notif_state_xfree): Update.
10675
9799571e
TT
106762019-03-06 Tom Tromey <tom@tromey.com>
10677
10678 * infrun.c (displaced_step_clear_cleanup): Now a
10679 forward_scope_exit type.
10680 (displaced_step_prepare_throw): Update.
10681 (displaced_step_fixup): Update.
10682
09e3c4ca
TT
106832019-03-06 Tom Tromey <tom@tromey.com>
10684
10685 * inferior.h (class inferior): Update comment.
10686 * gdbthread.h (class thread_info): Update comment.
10687
e2a03548
TT
106882019-03-06 Joel Brobecker <brobecker@adacore.com>
10689 Tom Tromey <tom@tromey.com>
10690
10691 * stabsread.h (struct stab_section_list): Remove.
10692 (coffstab_build_psymtabs): Update.
10693 * dbxread.c (symbuf_sections): Now a std::vector.
10694 (sect_idx): New global.
10695 (fill_symbuf): Update.
10696 (coffstab_build_psymtabs): Change type of stabsects parameter.
10697 Update.
10698 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10699 std::vector.
10700 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10701 (coff_locate_sections): Update.
10702 (coff_symfile_read): Remove cleanups. Update.
10703 (init_stringtab): Add storage parameter.
10704 (free_stringtab, free_stringtab_cleanup): Remove.
10705 (init_lineno): Add storage parameter.
10706 (free_linetab, free_linetab_cleanup): Remove.
10707
b7e60d85
PA
107082019-03-06 Pedro Alves <palves@redhat.com>
10709
10710 * linux-fork.c (fork_info::clobber_regs): Delete.
10711 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10712 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10713 comment. Adjust.
10714 (scoped_switch_fork_info::scoped_switch_fork_info)
10715 (checkpoint_command, linux_fork_context): Adjust
10716 fork_save_infrun_state calls.
10717
e52c971f
PA
107182019-03-06 Pedro Alves <palves@redhat.com>
10719
10720 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10721 (inf_has_multiple_threads): Return 'bool' and rewrite using
10722 inferior_info::threads().
10723
06974e6c
PA
107242019-03-06 Pedro Alves <palves@redhat.com>
10725
10726 * linux-fork.c: Include <list>.
10727 (fork_list): Now a std::list instance.
10728 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10729 (forks_exist_p, find_last_fork): Adjust.
10730 (new_fork): Delete.
10731 (one_fork_p): New.
10732 (add_fork): Adjust.
10733 (free_fork): Delete, folded into fork_info::~fork_info().
10734 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10735 Adjust.
10736 (init_fork_list): Delete.
10737 (linux_fork_killall, linux_fork_mourn_inferior)
10738 (linux_fork_detach, info_checkpoints_command): Adjust.
10739 (_initialize_linux_fork): No longer call init_fork_list.
10740
72f31aea
PA
107412019-03-06 Pedro Alves <palves@redhat.com>
10742
10743 * linux-fork.c (new_fork): New, split out of ...
10744 (add_fork): ... this. Return void. Move "first fork" special
10745 case from here, to ...
10746 (checkpoint_command): ... here.
10747 * linux-linux.h (add_fork): Return void.
10748
efbecbc1
AB
107492019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10750
10751 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10752
0841c79a
AB
107532019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10754 Chris January <chris.january@arm.com>
10755 David Lecomber <david.lecomber@arm.com>
10756
10757 * f-exp.y: New token, UNOP_INTRINSIC.
10758 (exp): New pattern using UNOP_INTRINSIC token.
10759 (f77_keywords): Add 'abs' keyword.
10760 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10761 (value_from_host_double): New function.
10762 (evaluate_subexp_f): Support UNOP_ABS.
10763
4a270568
AB
107642019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10765
10766 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10767 types.
10768
067630bd
AB
107692019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10770
10771 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10772 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10773 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10774
3be47f7a
AB
107752019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10776
10777 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10778
4d00f5d8
AB
107792019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10780 Chris January <chris.january@arm.com>
10781
10782 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10783 * f-exp.y: Define 'KIND' token.
10784 (exp): New pattern for KIND expressions.
10785 (ptype): Handle types with a kind extension.
10786 (direct_abs_decl): Extend to spot kind extensions.
10787 (f77_keywords): Add 'kind' to the list.
10788 (push_kind_type): New function.
10789 (convert_to_kind_type): New function.
10790 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10791 * parse.c (operator_length_standard): Likewise.
10792 * parser-defs.h (enum type_pieces): Add tp_kind.
10793 * std-operator.def: Add UNOP_KIND.
10794
e454224f
AB
107952019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10796
10797 * f-exp.y (f_parse): Set yydebug.
10798
9dad4a58
AB
107992019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10800
10801 * f-lang.c (evaluate_subexp_f): New function.
10802 (exp_descriptor_f): New global.
10803 (f_language_defn): Use exp_descriptor_f instead of
10804 exp_descriptor_standard.
10805
c8f91604
AB
108062019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10807
10808 * f-exp.y (struct token): Add comments.
10809 (dot_ops): Remove uppercase versions and the end marker.
10810 (f77_keywords): Likewise.
10811 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10812 entries in the dot_ops array are case insensitive, and use
10813 strncasecmp to compare strings. Also some whitespace cleanup in
10814 this area. Similar for the f77_keywords array, except entries in
10815 this list might be case sensitive.
10816
dd9f2c76
AB
108172019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10818
10819 * f-exp.y (struct f77_boolean_val): Add comments.
10820 (boolean_values): Remove uppercase versions, and end marker.
10821 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10822 and use strncasecmp to achieve case insensitivity. Additionally,
10823 perform whitespace cleanup around this code.
10824
67a3048c
TT
108252019-03-06 Tom Tromey <tromey@adacore.com>
10826
10827 * remote-sim.c (gdbsim_target_open): Use result of
10828 gdb_argv::release.
10829
aa3cfbda
RB
108302019-03-06 Richard Bunt <richard.bunt@arm.com>
10831 Dirk Schubert <dirk.schubert@arm.com>
10832 Chris January <chris.january@arm.com>
10833
10834 * eval.c (evaluate_subexp_standard): Call Fortran argument
10835 wrapping logic.
10836 * f-lang.c (struct value): A value which can be passed into a
10837 Fortran function call.
10838 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10839 where appropriate.
10840 (struct type): Value ready for a Fortran function call.
10841 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10842 is needed.
10843 * f-lang.h (fortran_argument_convert): Declaration.
10844 (fortran_preserve_arg_pointer): Declaration.
10845 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10846
ea38e5df
TT
108472019-03-05 Tom Tromey <tromey@adacore.com>
10848
10849 * python/py-prettyprint.c (print_string_repr): Remove #if.
10850 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10851
06b5b831
TT
108522019-03-05 Tom Tromey <tromey@adacore.com>
10853
10854 * target.c (the_dummy_target): Move later. Change type to
10855 "dummy_target".
10856 (initialize_targets): Don't initialize the_dummy_target.
10857
edbd9e45
TT
108582019-03-05 Tom Tromey <tromey@adacore.com>
10859
10860 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10861 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10862
c119e040
TT
108632019-03-05 Tom Tromey <tromey@adacore.com>
10864
10865 * windows-nat.c (windows_nat_target::attach)
10866 (windows_nat_target::detach): Don't call gdb_flush.
10867 * valprint.c (generic_val_print, val_print, val_print_string):
10868 Don't call gdb_flush.
10869 * utils.c (defaulted_query): Don't call gdb_flush.
10870 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10871 * target.c (target_announce_detach): Don't call gdb_flush.
10872 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10873 * remote.c (extended_remote_target::attach): Don't call
10874 gdb_flush.
10875 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10876 * printcmd.c (do_examine): Don't call gdb_flush.
10877 (info_display_command): Don't call gdb_flush.
10878 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10879 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10880 * memattr.c (info_mem_command): Don't call gdb_flush.
10881 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10882 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10883 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10884 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10885 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10886 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10887 (gnu_nat_target::detach): Don't call gdb_flush.
10888 * f-valprint.c (f_val_print): Don't call gdb_flush.
10889 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10890 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10891 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10892 gdb_flush.
10893 * c-valprint.c (c_val_print): Don't call gdb_flush.
10894 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10895
895dafa6
TT
108962019-03-05 Tom Tromey <tromey@adacore.com>
10897
10898 * varobj.c (update_dynamic_varobj_children): Update.
10899 (install_default_visualizer): Use reset, not release.
10900 * value.c (set_internalvar): Update.
10901 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10902 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10903 ATTRIBUTE_UNUSED_RESULT.
10904
88a774b9
TT
109052019-03-05 Tom Tromey <tromey@adacore.com>
10906
10907 * remote.c (class scoped_remote_fd) <release>: Add
10908 ATTRIBUTE_UNUSED_RESULT.
10909
4e4a8b93
TT
109102019-03-05 Tom Tromey <tromey@adacore.com>
10911
10912 * macroexp.c (struct macro_buffer) <release>: Add
10913 ATTRIBUTE_UNUSED_RESULT.
10914
083eef1f
TT
109152019-03-05 Tom Tromey <tromey@adacore.com>
10916
10917 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10918 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10919 ATTRIBUTE_UNUSED_RESULT.
10920
3cabd438
TT
109212019-03-05 Tom Tromey <tromey@adacore.com>
10922
10923 * common/scoped_fd.h (class scoped_fd) <release>: Add
10924 ATTRIBUTE_UNUSED_RESULT.
10925
41e3300a
TT
109262019-03-05 Tom Tromey <tromey@adacore.com>
10927
10928 * parser-defs.h (struct parser_state) <release>: Add
10929 ATTRIBUTE_UNUSED_RESULT.
10930
18cb7c9f
TT
109312019-03-05 Tom Tromey <tromey@adacore.com>
10932
10933 * utils.h (class gdb_argv) <release>: Add
10934 ATTRIBUTE_UNUSED_RESULT.
10935 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10936
41fa577f
EZ
109372019-03-02 Eli Zaretskii <eliz@gnu.org>
10938
a6a4b2c6
EZ
10939 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10940 for-loop range, to avoid compiler warnings.
10941
10942 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10943 avoid compiler warnings about unused variables.
10944
742a7df5
EZ
10945 * NEWS: Mention end of support for native debugging on MS-Windows
10946 before XP.
10947
41fa577f
EZ
10948 PR gdb/24292
10949 * common/netstuff.c:
10950 * gdbserver/gdbreplay.c
10951 * gdbserver/remote-utils.c:
10952 * ser-tcp.c:
10953 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10954 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10955 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10956 'getaddrinfo' and 'freeaddrinfo' were not available before
10957 Windows XP, and mingw.org's MinGW headers by default define
10958 _WIN32_WINNT to 0x500.
10959
827f438f
GB
109602019-03-01 Gary Benson <gbenson@redhat.com>
10961
10962 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10963
92137da0
RO
109642019-02-28 Brian Vandenberg <phantall@gmail.com>
10965 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10966
10967 PR gdb/8527
10968 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10969 set_sigint_trap, clear_sigint_trap.
10970
799efbe8
PW
109712019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10972
10973 * target.c (target_detach): Clear the regcache and the
10974 frame cache.
10975
8ed25214
PA
109762019-02-27 Pedro Alves <palves@redhat.com>
10977
10978 * utils.c (set_screen_size): When we cap the height/width sizes,
10979 tweak the corresponding command variable to show "unlimited":
10980
23031e31
SJ
109812019-02-27 Saagar Jha <saagar@saagarjha.com>
10982 Pedro Alves <palves@redhat.com>
10983
10984 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10985 before calling rl_set_screen_size.
10986
6c28e44a
TT
109872019-02-27 Tom Tromey <tromey@adacore.com>
10988
10989 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10990 define.
10991 * python/py-value.c: Remove Python 2.4 workaround.
10992 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10993 workaround.
10994 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10995 Python 2.4 workaround.
10996 * python/python-internal.h: Remove Python 2.4 comment.
10997 (Py_ssize_t): Don't define.
10998 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10999 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11000 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11001 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11002 * python/python.c (do_start_initialization): Remove Python 2.4
11003 workaround.
11004 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11005 (print_children): Remove Python 2.4 workaround.
11006 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11007 workaround.
11008 (CHARBUFFERPROC_NAME): Remove.
11009 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11010 Python 2.4 workaround.
11011
2c3fc25d 110122019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 11013
2c3fc25d
KB
11014 * NEWS: Note minimum Python version.
11015
6ca62222
KB
110162019-02-27 Kevin Buettner <kevinb@redhat.com>
11017
11018 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11019 code from these functions. Remove corresponding ifdefs. Use
11020 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11021 Remove gotos and target of gotos.
11022 (infpy_search_memory): Likewise.
11023
f4bc7d2c
AB
110242019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11025
11026 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11027 (hppa_gdbarch_init): Don't register deleted functions with
11028 gdbarch.
11029
9734a586
AB
110302019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11031
11032 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11033 (h8300_unwind_sp): Delete.
11034 (h8300_dummy_id): Delete.
11035 (h8300_gdbarch_init): Don't register deleted functions with
11036 gdbarch.
11037
68b867f3
AB
110382019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11039
11040 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11041 (ft32_unwind_pc): Delete.
11042 (ft32_unwind_sp): Delete.
11043 (ft32_gdbarch_init): Don't register deleted functions with
11044 gdbarch.
11045
2fbe7ad0
AB
110462019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11047
11048 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11049 (frv_unwind_pc): Delete.
11050 (frv_unwind_sp): Delete.
11051 (frv_gdbarch_init): Don't register deleted functions with
11052 gdbarch.
11053
76055cbe
AB
110542019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11055
11056 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11057 (riscv_unwind_pc): Delete.
11058 (riscv_unwind_sp): Delete.
11059 (riscv_gdbarch_init): Don't register deleted functions with
11060 gdbarch.
11061
4133e5a1
AB
110622019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11063
11064 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11065 (csky_unwind_pc): Delete.
11066 (csky_unwind_sp): Delete.
11067 (csky_gdbarch_init): Don't register deleted functions with
11068 gdbarch.
11069
8010f576
AB
110702019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11071
11072 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11073 (cris_unwind_pc): Delete.
11074 (cris_unwind_sp): Delete.
11075 (cris_gdbarch_init): Don't register deleted functions with
11076 gdbarch.
11077
b56bf084
AB
110782019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11079
11080 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11081 (bfin_unwind_pc): Delete.
11082 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11083
a19a650f
AB
110842019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11085
11086 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11087 (arm_unwind_pc): Delete.
11088 (arm_unwind_sp): Delete.
11089 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11090
f8278c3c
AB
110912019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11092
11093 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11094 (arc_unwind_pc): Delete.
11095 (arc_unwind_sp): Delete.
11096 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11097
480e46cf
AB
110982019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11099
11100 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11101 (alpha_unwind_pc): Delete.
11102 (alpha_gdbarch_init): Don't register deleted functions with
11103 gdbarch.
11104
7a995095
AB
111052019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11106
11107 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11108 (aarch64_unwind_pc): Delete.
11109 (aarch64_unwind_sp): Delete.
11110 (aarch64_gdbarch_init): Don't register deleted functions with
11111 gdbarch.
11112
bf9a735e
AB
111132019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11114
11115 * gdbtypes.c (type_align): Don't consider static members when
11116 computing structure alignment.
11117
5561fc30
AB
111182019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11119
11120 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11121 return 0 for other types.
11122 * arch-utils.c (default_type_align): Always return 0.
11123 * gdbarch.h: Regenerate.
11124 * gdbarch.sh (type_align): Extend comment.
11125 * gdbtypes.c (type_align): Add additional comments, always call
11126 gdbarch_type_align before applying the default rules.
11127 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11128 generic code will then apply a suitable default.
11129 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11130 types, return 0 for other types.
11131
9335e75a
JB
111322019-02-27 Joel Brobecker <brobecker@adacore.com>
11133
11134 * NEWS: Create a new section for the next release branch.
11135 Rename the section of the current branch, now that it has
11136 been cut.
11137
3d34d8de
JB
111382019-02-27 Joel Brobecker <brobecker@adacore.com>
11139
11140 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11141 * version.in: Bump version to 8.3.50.DATE-git.
11142
143420fb
SM
111432019-02-26 Simon Marchi <simon.marchi@efficios.com>
11144
11145 * aix-thread.c (ptid_cmp): Remove unused variable.
11146 (get_signaled_thread): Likewise.
11147 (store_regs_user_thread): Likewise.
11148 (store_regs_kernel_thread): Likewise.
11149 (fetch_regs_kernel_thread): Remove shadowed variable.
11150
172fb711
AB
111512019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11152
11153 * features/riscv/32bit-cpu.xml: Add register numbers.
11154 * features/riscv/32bit-fpu.c: Regenerate.
11155 * features/riscv/32bit-fpu.xml: Add register numbers.
11156 * features/riscv/64bit-cpu.xml: Add register numbers.
11157 * features/riscv/64bit-fpu.c: Regenerate.
11158 * features/riscv/64bit-fpu.xml: Add register numbers.
11159
26c89782
KB
111602019-02-26 Kevin Buettner <kevinb@redhat.com>
11161
af54ade9 11162 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
11163 * python/py-value.c (convert_buffer_and_type_to_value): New
11164 function.
11165 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11166 Add support for handling an optional second argument. Call
11167 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
11168 * python/python-internal.h (Py_buffer_deleter): New struct.
11169 (Py_buffer_up): New typedef.
11170
0f58c9e8
JB
111712019-02-25 John Baldwin <jhb@FreeBSD.org>
11172
11173 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11174 instead of releasing ownership.
11175
0a0f4c01
JR
111762019-02-25 Jordan Rupprecht <rupprecht@google.com>
11177
11178 * dwarf2read.c (open_and_init_dwp_file): Call
11179 elf_numsections instead of bfd_count_sections to initialize
11180 dwp_file->num_sections.
11181
cd5a152c
TT
111822019-02-25 Tom Tromey <tromey@adacore.com>
11183
11184 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11185
8a6a8513
SDJ
111862019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11187
11188 * gcore.in: Add '--readnever' option when invoking GDB.
11189
04dcda9c
SM
111902019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11191
11192 * MAINTAINERS: Update my email address.
11193
07bc701d
SM
111942019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11195
11196 * build-id.c (build_id_to_debug_bfd_1): New function.
11197 (build_id_to_debug_bfd): Look for separate debug file in
11198 sysroot.
11199
c6f4a5d0
AB
112002019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11201
11202 * gdbarch.sh: Update the copyright year range that is placed into
11203 generated files.
11204
9600246d
KS
112052019-02-22 Keith Seitz <keiths@redhat.com>
11206
11207 PR symtab/23853
11208 * linespec.c (create_sals_line_offset): Search for the default
11209 symtab's filename instead of its fullname.
11210
7557a514
AH
112112019-02-21 Alan Hayward <alan.hayward@arm.com>
11212
11213 * NEWS: Update style defaults.
11214
ee2bcb0c
AH
112152019-02-21 Alan Hayward <alan.hayward@arm.com>
11216
11217 * main.c (captured_main_1): Disable styling in batch mode.
11218
0c95f9ed
TT
112192019-02-20 Tom Tromey <tom@tromey.com>
11220
11221 * symtab.c (symtab_symbol_info): Fix typos.
11222
c763b894
TT
112232019-02-20 Tom Tromey <tromey@adacore.com>
11224
11225 * findcmd.c (_initialize_mem_search): Use upper case for
11226 metasyntactic variables.
11227
0ef8a082
AH
112282019-02-20 Alan Hayward <alan.hayward@arm.com>
11229
11230 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11231 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11232
6caa91b6
SM
112332019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11234
11235 * top.h (source_file_name): Change to std::string.
11236 * top.c (source_file_name): Likewise.
11237 (command_line_input): Adjust.
11238 * cli/cli-script.c (script_from_file): Adjust.
11239
98814c6c
TT
112402019-02-19 Tom Tromey <tromey@adacore.com>
11241
11242 * ravenscar-thread.c
11243 (ravenscar_thread_target::update_thread_list): Don't call
11244 ada_build_task_list.
11245 * ada-lang.h (ada_build_task_list): Don't declare.
11246 * ada-tasks.c (struct ada_tasks_inferior_data)
11247 <task_list_valid_p>: Now bool.
11248 (read_known_tasks, ada_task_list_changed)
11249 (ada_tasks_invalidate_inferior_data): Update.
11250 (read_known_tasks_array): Return bool.
11251 (read_known_tasks_list): Likewise.
11252 (read_known_tasks): Return void.
11253 (ada_build_task_list): Now static.
11254
70cd633e
AB
112552019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11256
11257 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11258 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11259
040b3e95
PW
112602019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11261
11262 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11263 variant for ada_tasks_pspace_data_handle and
11264 ada_tasks_inferior_data_handle.
11265 (ada_tasks_pspace_data_cleanup): New function.
11266 (ada_tasks_inferior_data_cleanup): New function.
11267
9409233b
TT
112682019-02-17 Tom Tromey <tom@tromey.com>
11269
11270 * macrotab.h (macro_source_fullname): Return a std::string.
11271 * macrotab.c (macro_include, check_for_redefinition)
11272 (macro_undef, macro_lookup_definition, foreach_macro)
11273 (foreach_macro_in_scope): Update.
11274 (macro_source_fullname): Return a std::string.
11275 * macrocmd.c (show_pp_source_pos): Update.
11276
6506371f
TT
112772019-02-17 Tom Tromey <tom@tromey.com>
11278
11279 * macrocmd.c (show_pp_source_pos): Style the file names.
11280
0c820d67
TT
112812019-02-17 Tom Tromey <tom@tromey.com>
11282
11283 PR tui/24197:
11284 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11285
a0087920
TT
112862019-02-17 Tom Tromey <tom@tromey.com>
11287
11288 * ada-lang.c (user_select_syms): Use filtered printing.
11289 * utils.c (wrap_style): New global.
11290 (desired_style): Remove.
11291 (emit_style_escape): Add stream parameter.
11292 (set_output_style, reset_terminal_style, prompt_for_continue):
11293 Update.
11294 (flush_wrap_buffer): Only flush gdb_stdout.
11295 (wrap_here): Set wrap_style.
11296 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11297 treat escape sequences as a character. Change when wrap buffer is
11298 flushed.
11299 (fputs_styled): Do not set the output style when the default is
11300 requested.
11301 * ui-style.h (struct ui_file_style) <is_default>: New method.
11302 * source.c (print_source_lines_base): Emit escape sequences in one
11303 piece.
11304
75ba10dc
JB
113052019-02-17 Joel Brobecker <brobecker@adacore.com>
11306
11307 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11308 integers and enumeration types.
11309
a2cd4f14
JB
113102019-02-17 Joel Brobecker <brobecker@adacore.com>
11311
11312 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11313 instead of lookup_symbol_in_language
11314 (do_exact_match): New function.
11315 (ada_get_symbol_name_matcher): Return do_exact_match when
11316 doing a verbatim match.
11317
485b851b
TT
113182019-02-15 Tom Tromey <tromey@adacore.com>
11319
11320 * ravenscar-thread.c (ravenscar_thread_target::resume)
11321 (ravenscar_thread_target::wait): Special case wildcard requests.
11322
0b790b1e
TT
113232019-02-15 Tom Tromey <tromey@adacore.com>
11324
11325 * ravenscar-thread.c (base_ptid): Remove.
11326 (struct ravenscar_thread_target) <close>: New method.
11327 <m_base_ptid>: New member.
11328 <update_inferior_ptid, active_task, task_is_currently_active,
11329 runtime_initialized>: Declare methods.
11330 <ravenscar_thread_target>: Add constructor.
11331 (ravenscar_thread_target::task_is_currently_active)
11332 (ravenscar_thread_target::update_inferior_ptid)
11333 (ravenscar_runtime_initialized): Rename. Now methods.
11334 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11335 (ravenscar_thread_target::update_thread_list): Update.
11336 (ravenscar_thread_target::active_task): Now method.
11337 (ravenscar_thread_target::store_registers)
11338 (ravenscar_thread_target::prepare_to_store)
11339 (ravenscar_thread_target::prepare_to_store)
11340 (ravenscar_thread_target::mourn_inferior): Update.
11341 (ravenscar_inferior_created): Use "new" to create target.
11342 (ravenscar_thread_target::get_ada_task_ptid): Update.
11343 (_initialize_ravenscar): Don't initialize base_ptid.
11344 (ravenscar_ops): Remove global.
11345
dea57a62
TT
113462019-02-15 Tom Tromey <tromey@adacore.com>
11347
11348 * target.h (push_target): Declare new overload.
11349 * target.c (push_target): New overload, taking an rvalue reference.
11350 * remote.c (remote_target::open_1): Use push_target overload.
11351 * corelow.c (core_target_open): Use push_target overload.
11352
989f3c58
TT
113532019-02-15 Tom Tromey <tromey@adacore.com>
11354
11355 * ravenscar-thread.c (is_ravenscar_task)
11356 (ravenscar_task_is_currently_active): Return bool.
11357 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11358 (_initialize_ravenscar): Remove "(void)".
11359 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11360 Return bool.
11361
6cbcc006
TT
113622019-02-15 Tom Tromey <tromey@adacore.com>
11363
11364 * ravenscar-thread.c (ravenscar_runtime_initializer)
11365 (has_ravenscar_runtime, get_running_thread_id)
11366 (ravenscar_thread_target::resume): Fix indentation.
11367
7657f14d
TT
113682019-02-15 Tom Tromey <tromey@adacore.com>
11369
11370 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11371 from ravenscar_arch_ops.
11372 (sparc_ravenscar_ops::fetch_registers)
11373 (sparc_ravenscar_ops::store_registers): Now methods.
11374 (sparc_ravenscar_prepare_to_store): Remove.
11375 (sparc_ravenscar_ops): Redefine.
11376 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11377 methods and destructor. Remove members.
11378 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11379 (ravenscar_thread_target::store_registers)
11380 (ravenscar_thread_target::prepare_to_store): Update.
11381 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11382 Remove.
11383 (struct ppc_ravenscar_powerpc_ops): Derive from
11384 ravenscar_arch_ops.
11385 (ppc_ravenscar_powerpc_ops::fetch_registers)
11386 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11387 (ppc_ravenscar_powerpc_ops): Redefine.
11388 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11389 (ppc_ravenscar_e500_ops::fetch_registers)
11390 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11391 (ppc_ravenscar_e500_ops): Redefine.
11392 * aarch64-ravenscar-thread.c
11393 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11394 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11395 (aarch64_ravenscar_fetch_registers)
11396 (aarch64_ravenscar_store_registers): Now methods.
11397 (aarch64_ravenscar_ops): Redefine.
11398
5b6ea500
TT
113992019-02-15 Tom Tromey <tromey@adacore.com>
11400
11401 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11402 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11403 (ravenscar_thread_target::stopped_by_watchpoint)
11404 (ravenscar_thread_target::stopped_data_address)
11405 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11406
e397fd39
TT
114072019-02-15 Tom Tromey <tromey@adacore.com>
11408
11409 * ravenscar-thread.c: Fix some typos.
11410
cc12f4a8
TT
114112019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11412 Tom Tromey <tromey@adacore.com>
11413
11414 * ada-lang.c (ada_exception_sal): Change addr_string to a
11415 std::string.
11416 (create_ada_exception_catchpoint): Update.
11417
5f486660
TT
114182019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11419 Tom Tromey <tromey@adacore.com>
11420
11421 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11422 (bp_location_ops): Remove.
11423 (base_breakpoint_allocate_location): Update.
11424 (free_bp_location): Update.
11425 * ada-lang.c (class ada_catchpoint_location)
11426 <ada_catchpoint_location>: Remove ops parameter.
11427 (ada_catchpoint_location_dtor): Remove.
11428 (ada_catchpoint_location_ops): Remove.
11429 (allocate_location_exception): Update.
11430 * breakpoint.h (struct bp_location_ops): Remove.
11431 (class bp_location) <bp_location>: Remove bp_location_ops
11432 parameter.
11433 <~bp_location>: Add destructor.
11434 <ops>: Remove.
11435
b671c7fb
TS
114362019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11437 Pedro Alves <palves@redhat.com>
11438
11439 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11440 'PATH_MAX'.
11441
8071c5ce
DM
114422019-02-14 David Michael <fedora.dm0@gmail.com>
11443 Samuel Thibault <samuel.thibault@gnu.org>
11444 Thomas Schwinge <thomas@codesourcery.com>
11445
11446 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11447 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11448
b1041ae0
TS
114492019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11450
924514e1
TS
11451 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11452 (check_empty): Use "const char *".
11453
c29ee8d4
TS
11454 * gnu-nat.c (gnu_nat_target::detach): Instead of
11455 'detach_inferior (pid)' call
11456 'detach_inferior (find_inferior_pid (pid))'.
11457
6c6ef69f
TS
11458 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11459 'nat/fork-inferior.o'.
11460 * gnu-nat.c: #include "nat/fork-inferior.h".
11461
2d0a338c
TS
11462 * gnu-nat.c (gnu_nat_target::detach): Instead of
11463 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11464 * gnu-nat.h: #include "inf-child.h".
11465 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11466 'i386_gnu_nat_target::fetch_registers'.
11467 (gnu_store_registers): Rename/move to
11468 'i386_gnu_nat_target::store_registers'.
11469
cabb5f06
TS
11470 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11471 * gnu-nat.h (mach_thread_info): New function.
11472 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11473
b1041ae0
TS
11474 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11475
2988d01e
KF
114762019-02-14 Frederic Konrad <konrad@adacore.com>
11477
11478 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11479
c559d709
JB
114802019-02-14 Joel Brobecker <brobecker@adacore.com>
11481
11482 * windows-nat.c (windows_add_thread): Add new parameter
11483 "main_thread_p" with default value set to false. Update
11484 function documentation as well as all callers.
11485 (windows_delete_thread): Likewise.
11486 (fake_create_process): Update call to windows_add_thread.
11487 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11488 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11489 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11490 call to windows_delete_thread.
11491
007024cc
SM
114922019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11493
11494 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11495
f62318e9
JB
114962019-02-12 John Baldwin <jhb@FreeBSD.org>
11497
11498 * symfile.c (find_separate_debug_file): Use canonical path of
11499 sysroot with child_path instead of gdb_sysroot if it is valid.
11500
cd4b7848
JB
115012019-02-12 John Baldwin <jhb@FreeBSD.org>
11502
11503 * symfile.c (find_separate_debug_file): Use child_path to
11504 determine if an object file is under a sysroot.
11505
efac4bfe
JB
115062019-02-12 John Baldwin <jhb@FreeBSD.org>
11507
11508 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11509 unittests/child-path-selftests.c.
11510 * common/pathstuff.c (child_path): New function.
11511 * common/pathstuff.h (child_path): New prototype.
11512 * unittests/child-path-selftests.c: New file.
11513
402d2bfe
JB
115142019-02-12 John Baldwin <jhb@FreeBSD.org>
11515
11516 * symfile.c (find_separate_debug_file): Look for separate debug
11517 files in debug directories under the sysroot.
11518
1ed9f74e
PW
115192019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11520
11521 * symtab.h (struct minimal_symbol data_p): New const method.
11522 (struct minimal_symbol text_p): Likewise.
11523 * symtab.c (output_source_filename): Use file name style
11524 to print file name.
11525 (print_symbol_info): Likewise.
11526 (print_msymbol_info): Use address style to print addresses.
11527 Use function name style to print executable text symbols.
11528 (expand_symtab_containing_pc): Use data_p.
11529 (find_pc_sect_compunit_symtab): Likewise.
11530
2636d81d
PW
115312019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11532
11533 * breakpoint.c (describe_other_breakpoints): Use address style
11534 to print addresses.
11535 (say_where): Likewise.
11536
ac8c53cc
PW
115372019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11538
11539 * ada-typeprint.c (print_func_type): Print function name
11540 style to print function name.
11541 * c-typeprint.c (c_print_type_1): Likewise.
11542
ea638c43
AH
115432019-02-11 Alan Hayward <alan.hayward@arm.com>
11544
11545 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11546 for execve.
11547
ab759ca8
PW
115482019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11549
11550 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11551 type_stack.
11552
aff29d1c
JB
115532019-02-10 Joel Brobecker <brobecker@adacore.com>
11554
11555 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11556 TYPE_CODE_REF types.
11557
617126bc
JW
115582019-02-08 Jim Wilson <jimw@sifive.com>
11559
11560 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11561 (riscv_linux_fregset): New.
11562 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11563
46e3ed7f
TT
115642019-02-07 Tom Tromey <tom@tromey.com>
11565
11566 * thread.c (thread_cancel_execution_command): Update.
11567 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11568 methods.
11569 (struct thread_fsm_ops): Remove.
11570 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11571 (thread_fsm_should_stop, thread_fsm_return_value)
11572 (thread_fsm_set_finished, thread_fsm_finished_p)
11573 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11574 Don't declare.
11575 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11576 * infrun.c (clear_proceed_status_thread)
11577 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11578 (print_stop_event): Update.
11579 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11580 Add constructor.
11581 (step_command_fsm_ops): Remove.
11582 (new_step_command_fsm): Remove.
11583 (step_1): Update.
11584 (step_command_fsm::should_stop): Rename from
11585 step_command_fsm_should_stop.
11586 (step_command_fsm::clean_up): Rename from
11587 step_command_fsm_clean_up.
11588 (step_command_fsm::do_async_reply_reason): Rename from
11589 step_command_fsm_async_reply_reason.
11590 (struct until_next_fsm): Inherit from thread_fsm. Add
11591 constructor.
11592 (until_next_fsm_ops): Remove.
11593 (new_until_next_fsm): Remove.
11594 (until_next_fsm::should_stop): Rename from
11595 until_next_fsm_should_stop.
11596 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11597 (until_next_fsm::do_async_reply_reason): Rename from
11598 until_next_fsm_async_reply_reason.
11599 (struct finish_command_fsm): Inherit from thread_fsm. Add
11600 constructor. Change type of breakpoint.
11601 (finish_command_fsm_ops): Remove.
11602 (new_finish_command_fsm): Remove.
11603 (finish_command_fsm::should_stop): Rename from
11604 finish_command_fsm_should_stop.
11605 (finish_command_fsm::clean_up): Rename from
11606 finish_command_fsm_clean_up.
11607 (finish_command_fsm::return_value): Rename from
11608 finish_command_fsm_return_value.
11609 (finish_command_fsm::do_async_reply_reason): Rename from
11610 finish_command_fsm_async_reply_reason.
11611 (finish_command): Update.
11612 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11613 Add constructor.
11614 (call_thread_fsm_ops): Remove.
11615 (call_thread_fsm::call_thread_fsm): Rename from
11616 new_call_thread_fsm.
11617 (call_thread_fsm::should_stop): Rename from
11618 call_thread_fsm_should_stop.
11619 (call_thread_fsm::should_notify_stop): Rename from
11620 call_thread_fsm_should_notify_stop.
11621 (run_inferior_call, call_function_by_hand_dummy): Update.
11622 * cli/cli-interp.c (should_print_stop_to_console): Update.
11623 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11624 Add constructor. Change type of location_breakpoint,
11625 caller_breakpoint.
11626 (until_break_fsm_ops): Remove.
11627 (new_until_break_fsm): Remove.
11628 (until_break_fsm::should_stop): Rename from
11629 until_break_fsm_should_stop.
11630 (until_break_fsm::clean_up): Rename from
11631 until_break_fsm_clean_up.
11632 (until_break_fsm::do_async_reply_reason): Rename from
11633 until_break_fsm_async_reply_reason.
11634 (until_break_command): Update.
11635 * thread-fsm.c: Remove.
11636 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11637
1a5c2598
TT
116382019-02-07 Tom Tromey <tom@tromey.com>
11639
11640 * yy-remap.h: Add include guard.
11641 * xtensa-tdep.h: Add include guard.
11642 * xcoffread.h: Rename include guard.
11643 * varobj-iter.h: Add include guard.
11644 * tui/tui.h: Rename include guard.
11645 * tui/tui-winsource.h: Rename include guard.
11646 * tui/tui-wingeneral.h: Rename include guard.
11647 * tui/tui-windata.h: Rename include guard.
11648 * tui/tui-win.h: Rename include guard.
11649 * tui/tui-stack.h: Rename include guard.
11650 * tui/tui-source.h: Rename include guard.
11651 * tui/tui-regs.h: Rename include guard.
11652 * tui/tui-out.h: Rename include guard.
11653 * tui/tui-layout.h: Rename include guard.
11654 * tui/tui-io.h: Rename include guard.
11655 * tui/tui-hooks.h: Rename include guard.
11656 * tui/tui-file.h: Rename include guard.
11657 * tui/tui-disasm.h: Rename include guard.
11658 * tui/tui-data.h: Rename include guard.
11659 * tui/tui-command.h: Rename include guard.
11660 * tic6x-tdep.h: Add include guard.
11661 * target/waitstatus.h: Rename include guard.
11662 * target/wait.h: Rename include guard.
11663 * target/target.h: Rename include guard.
11664 * target/resume.h: Rename include guard.
11665 * target-float.h: Rename include guard.
11666 * stabsread.h: Add include guard.
11667 * rs6000-tdep.h: Add include guard.
11668 * riscv-fbsd-tdep.h: Add include guard.
11669 * regformats/regdef.h: Rename include guard.
11670 * record.h: Rename include guard.
11671 * python/python.h: Rename include guard.
11672 * python/python-internal.h: Rename include guard.
11673 * python/py-stopevent.h: Rename include guard.
11674 * python/py-ref.h: Rename include guard.
11675 * python/py-record.h: Rename include guard.
11676 * python/py-record-full.h: Rename include guard.
11677 * python/py-record-btrace.h: Rename include guard.
11678 * python/py-instruction.h: Rename include guard.
11679 * python/py-events.h: Rename include guard.
11680 * python/py-event.h: Rename include guard.
11681 * procfs.h: Add include guard.
11682 * proc-utils.h: Add include guard.
11683 * p-lang.h: Add include guard.
11684 * or1k-tdep.h: Rename include guard.
11685 * observable.h: Rename include guard.
11686 * nto-tdep.h: Rename include guard.
11687 * nat/x86-linux.h: Rename include guard.
11688 * nat/x86-linux-dregs.h: Rename include guard.
11689 * nat/x86-gcc-cpuid.h: Add include guard.
11690 * nat/x86-dregs.h: Rename include guard.
11691 * nat/x86-cpuid.h: Rename include guard.
11692 * nat/ppc-linux.h: Rename include guard.
11693 * nat/mips-linux-watch.h: Rename include guard.
11694 * nat/linux-waitpid.h: Rename include guard.
11695 * nat/linux-ptrace.h: Rename include guard.
11696 * nat/linux-procfs.h: Rename include guard.
11697 * nat/linux-osdata.h: Rename include guard.
11698 * nat/linux-nat.h: Rename include guard.
11699 * nat/linux-namespaces.h: Rename include guard.
11700 * nat/linux-btrace.h: Rename include guard.
11701 * nat/glibc_thread_db.h: Rename include guard.
11702 * nat/gdb_thread_db.h: Rename include guard.
11703 * nat/gdb_ptrace.h: Rename include guard.
11704 * nat/fork-inferior.h: Rename include guard.
11705 * nat/amd64-linux-siginfo.h: Rename include guard.
11706 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11707 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11708 * nat/aarch64-linux.h: Rename include guard.
11709 * nat/aarch64-linux-hw-point.h: Rename include guard.
11710 * mn10300-tdep.h: Add include guard.
11711 * mips-linux-tdep.h: Add include guard.
11712 * mi/mi-parse.h: Rename include guard.
11713 * mi/mi-out.h: Rename include guard.
11714 * mi/mi-main.h: Rename include guard.
11715 * mi/mi-interp.h: Rename include guard.
11716 * mi/mi-getopt.h: Rename include guard.
11717 * mi/mi-console.h: Rename include guard.
11718 * mi/mi-common.h: Rename include guard.
11719 * mi/mi-cmds.h: Rename include guard.
11720 * mi/mi-cmd-break.h: Rename include guard.
11721 * m2-lang.h: Add include guard.
11722 * location.h: Rename include guard.
11723 * linux-record.h: Rename include guard.
11724 * linux-nat.h: Add include guard.
11725 * linux-fork.h: Add include guard.
11726 * i386-darwin-tdep.h: Rename include guard.
11727 * hppa-linux-offsets.h: Add include guard.
11728 * guile/guile.h: Rename include guard.
11729 * guile/guile-internal.h: Rename include guard.
11730 * gnu-nat.h: Rename include guard.
11731 * gdb-stabs.h: Rename include guard.
11732 * frv-tdep.h: Add include guard.
11733 * f-lang.h: Add include guard.
11734 * event-loop.h: Add include guard.
11735 * darwin-nat.h: Rename include guard.
11736 * cp-abi.h: Rename include guard.
11737 * config/sparc/nm-sol2.h: Rename include guard.
11738 * config/nm-nto.h: Rename include guard.
11739 * config/nm-linux.h: Add include guard.
11740 * config/i386/nm-i386gnu.h: Rename include guard.
11741 * config/djgpp/nl_types.h: Rename include guard.
11742 * config/djgpp/langinfo.h: Rename include guard.
11743 * compile/gcc-cp-plugin.h: Add include guard.
11744 * compile/gcc-c-plugin.h: Add include guard.
11745 * compile/compile.h: Rename include guard.
11746 * compile/compile-object-run.h: Rename include guard.
11747 * compile/compile-object-load.h: Rename include guard.
11748 * compile/compile-internal.h: Rename include guard.
11749 * compile/compile-cplus.h: Rename include guard.
11750 * compile/compile-c.h: Rename include guard.
11751 * common/xml-utils.h: Rename include guard.
11752 * common/x86-xstate.h: Rename include guard.
11753 * common/version.h: Rename include guard.
11754 * common/vec.h: Rename include guard.
11755 * common/tdesc.h: Rename include guard.
11756 * common/selftest.h: Rename include guard.
11757 * common/scoped_restore.h: Rename include guard.
11758 * common/scoped_mmap.h: Rename include guard.
11759 * common/scoped_fd.h: Rename include guard.
11760 * common/safe-iterator.h: Rename include guard.
11761 * common/run-time-clock.h: Rename include guard.
11762 * common/refcounted-object.h: Rename include guard.
11763 * common/queue.h: Rename include guard.
11764 * common/ptid.h: Rename include guard.
11765 * common/print-utils.h: Rename include guard.
11766 * common/preprocessor.h: Rename include guard.
11767 * common/pathstuff.h: Rename include guard.
11768 * common/observable.h: Rename include guard.
11769 * common/netstuff.h: Rename include guard.
11770 * common/job-control.h: Rename include guard.
11771 * common/host-defs.h: Rename include guard.
11772 * common/gdb_wait.h: Rename include guard.
11773 * common/gdb_vecs.h: Rename include guard.
11774 * common/gdb_unlinker.h: Rename include guard.
11775 * common/gdb_unique_ptr.h: Rename include guard.
11776 * common/gdb_tilde_expand.h: Rename include guard.
11777 * common/gdb_sys_time.h: Rename include guard.
11778 * common/gdb_string_view.h: Rename include guard.
11779 * common/gdb_splay_tree.h: Rename include guard.
11780 * common/gdb_setjmp.h: Rename include guard.
11781 * common/gdb_ref_ptr.h: Rename include guard.
11782 * common/gdb_optional.h: Rename include guard.
11783 * common/gdb_locale.h: Rename include guard.
11784 * common/gdb_assert.h: Rename include guard.
11785 * common/filtered-iterator.h: Rename include guard.
11786 * common/filestuff.h: Rename include guard.
11787 * common/fileio.h: Rename include guard.
11788 * common/environ.h: Rename include guard.
11789 * common/common-utils.h: Rename include guard.
11790 * common/common-types.h: Rename include guard.
11791 * common/common-regcache.h: Rename include guard.
11792 * common/common-inferior.h: Rename include guard.
11793 * common/common-gdbthread.h: Rename include guard.
11794 * common/common-exceptions.h: Rename include guard.
11795 * common/common-defs.h: Rename include guard.
11796 * common/common-debug.h: Rename include guard.
11797 * common/cleanups.h: Rename include guard.
11798 * common/buffer.h: Rename include guard.
11799 * common/btrace-common.h: Rename include guard.
11800 * common/break-common.h: Rename include guard.
11801 * cli/cli-utils.h: Rename include guard.
11802 * cli/cli-style.h: Rename include guard.
11803 * cli/cli-setshow.h: Rename include guard.
11804 * cli/cli-script.h: Rename include guard.
11805 * cli/cli-interp.h: Rename include guard.
11806 * cli/cli-decode.h: Rename include guard.
11807 * cli/cli-cmds.h: Rename include guard.
11808 * charset-list.h: Add include guard.
11809 * buildsym-legacy.h: Rename include guard.
11810 * bfin-tdep.h: Add include guard.
11811 * ax.h: Rename include guard.
11812 * arm-linux-tdep.h: Add include guard.
11813 * arm-fbsd-tdep.h: Add include guard.
11814 * arch/xtensa.h: Rename include guard.
11815 * arch/tic6x.h: Add include guard.
11816 * arch/i386.h: Add include guard.
11817 * arch/arm.h: Rename include guard.
11818 * arch/arm-linux.h: Rename include guard.
11819 * arch/arm-get-next-pcs.h: Rename include guard.
11820 * arch/amd64.h: Add include guard.
11821 * arch/aarch64-insn.h: Rename include guard.
11822 * arch-utils.h: Rename include guard.
11823 * annotate.h: Add include guard.
11824 * amd64-darwin-tdep.h: Rename include guard.
11825 * aarch64-linux-tdep.h: Add include guard.
11826 * aarch64-fbsd-tdep.h: Add include guard.
11827 * aarch32-linux-nat.h: Add include guard.
11828
ab9268d2
PW
118292019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11830
11831 * macrotab.c (macro_define_internal): New function that
11832 factorizes macro_define_object_internal and macro_define_function
11833 code.
11834 (macro_define_object_internal): Use macro_define_internal.
11835 (macro_define_function): Likewise.
11836
bb0da2b4
PW
118372019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11838
11839 * macrocmd.c (extract_identifier): Return
11840 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11841 callers.
11842
424eb552
JB
118432019-02-06 John Baldwin <jhb@FreeBSD.org>
11844
11845 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11846
1688cb29
TT
118472019-02-05 Tom Tromey <tom@tromey.com>
11848
11849 * target.c (target_stack::unpush): Move assertion earlier.
11850
b5eba2d8
TT
118512019-01-30 Tom Tromey <tom@tromey.com>
11852
11853 PR python/23615:
11854 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11855 (gdbpy_parse_and_eval): Likewise.
11856 * python/python-internal.h (gdbpy_allow_threads): New class.
11857
7054e2ff
JB
118582019-01-28 John Baldwin <jhb@FreeBSD.org>
11859
11860 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11861 (aarch64_fbsd_fpregmap): Move earlier.
11862 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11863 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11864 instead of individual calls to trad_frame_set_reg_addr.
11865 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11866 earlier.
11867 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11868 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11869 instead of individual calls to trad_frame_set_reg_addr.
11870
36c25ffa
AH
118712019-01-28 Alan Hayward <alan.hayward@arm.com>
11872
11873 * CONTRIBUTE: Replace contribution list with wiki link.
11874
a0707f3c
TT
118752019-01-25 Tom Tromey <tom@tromey.com>
11876
11877 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11878
0747795c
TT
118792019-01-25 Tom Tromey <tom@tromey.com>
11880
11881 * xtensa-linux-nat.c: Fix common/ includes.
11882 * xml-support.h: Fix common/ includes.
11883 * xml-support.c: Fix common/ includes.
11884 * x86-linux-nat.c: Fix common/ includes.
11885 * windows-nat.c: Fix common/ includes.
11886 * varobj.h: Fix common/ includes.
11887 * varobj.c: Fix common/ includes.
11888 * value.c: Fix common/ includes.
11889 * valops.c: Fix common/ includes.
11890 * utils.c: Fix common/ includes.
11891 * unittests/xml-utils-selftests.c: Fix common/ includes.
11892 * unittests/utils-selftests.c: Fix common/ includes.
11893 * unittests/unpack-selftests.c: Fix common/ includes.
11894 * unittests/tracepoint-selftests.c: Fix common/ includes.
11895 * unittests/style-selftests.c: Fix common/ includes.
11896 * unittests/string_view-selftests.c: Fix common/ includes.
11897 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11898 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11899 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11900 * unittests/rsp-low-selftests.c: Fix common/ includes.
11901 * unittests/parse-connection-spec-selftests.c: Fix common/
11902 includes.
11903 * unittests/optional-selftests.c: Fix common/ includes.
11904 * unittests/offset-type-selftests.c: Fix common/ includes.
11905 * unittests/observable-selftests.c: Fix common/ includes.
11906 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11907 * unittests/memrange-selftests.c: Fix common/ includes.
11908 * unittests/memory-map-selftests.c: Fix common/ includes.
11909 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11910 * unittests/function-view-selftests.c: Fix common/ includes.
11911 * unittests/environ-selftests.c: Fix common/ includes.
11912 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11913 * unittests/common-utils-selftests.c: Fix common/ includes.
11914 * unittests/cli-utils-selftests.c: Fix common/ includes.
11915 * unittests/array-view-selftests.c: Fix common/ includes.
11916 * ui-file.c: Fix common/ includes.
11917 * tui/tui-io.c: Fix common/ includes.
11918 * tracepoint.h: Fix common/ includes.
11919 * tracepoint.c: Fix common/ includes.
11920 * tracefile-tfile.c: Fix common/ includes.
11921 * top.h: Fix common/ includes.
11922 * top.c: Fix common/ includes.
11923 * thread.c: Fix common/ includes.
11924 * target/waitstatus.h: Fix common/ includes.
11925 * target/waitstatus.c: Fix common/ includes.
11926 * target.h: Fix common/ includes.
11927 * target.c: Fix common/ includes.
11928 * target-memory.c: Fix common/ includes.
11929 * target-descriptions.c: Fix common/ includes.
11930 * symtab.h: Fix common/ includes.
11931 * symfile.c: Fix common/ includes.
11932 * stap-probe.c: Fix common/ includes.
11933 * spu-linux-nat.c: Fix common/ includes.
11934 * sparc-nat.c: Fix common/ includes.
11935 * source.c: Fix common/ includes.
11936 * solib.c: Fix common/ includes.
11937 * solib-target.c: Fix common/ includes.
11938 * ser-unix.c: Fix common/ includes.
11939 * ser-tcp.c: Fix common/ includes.
11940 * ser-pipe.c: Fix common/ includes.
11941 * ser-base.c: Fix common/ includes.
11942 * selftest-arch.c: Fix common/ includes.
11943 * s12z-tdep.c: Fix common/ includes.
11944 * rust-exp.y: Fix common/ includes.
11945 * rs6000-aix-tdep.c: Fix common/ includes.
11946 * riscv-tdep.c: Fix common/ includes.
11947 * remote.c: Fix common/ includes.
11948 * remote-notif.h: Fix common/ includes.
11949 * remote-fileio.h: Fix common/ includes.
11950 * remote-fileio.c: Fix common/ includes.
11951 * regcache.h: Fix common/ includes.
11952 * regcache.c: Fix common/ includes.
11953 * record-btrace.c: Fix common/ includes.
11954 * python/python.c: Fix common/ includes.
11955 * python/py-type.c: Fix common/ includes.
11956 * python/py-inferior.c: Fix common/ includes.
11957 * progspace.h: Fix common/ includes.
11958 * producer.c: Fix common/ includes.
11959 * procfs.c: Fix common/ includes.
11960 * proc-api.c: Fix common/ includes.
11961 * printcmd.c: Fix common/ includes.
11962 * ppc-linux-nat.c: Fix common/ includes.
11963 * parser-defs.h: Fix common/ includes.
11964 * osdata.c: Fix common/ includes.
11965 * obsd-nat.c: Fix common/ includes.
11966 * nat/x86-linux.c: Fix common/ includes.
11967 * nat/x86-linux-dregs.c: Fix common/ includes.
11968 * nat/x86-dregs.h: Fix common/ includes.
11969 * nat/x86-dregs.c: Fix common/ includes.
11970 * nat/ppc-linux.c: Fix common/ includes.
11971 * nat/mips-linux-watch.h: Fix common/ includes.
11972 * nat/mips-linux-watch.c: Fix common/ includes.
11973 * nat/linux-waitpid.c: Fix common/ includes.
11974 * nat/linux-ptrace.h: Fix common/ includes.
11975 * nat/linux-ptrace.c: Fix common/ includes.
11976 * nat/linux-procfs.c: Fix common/ includes.
11977 * nat/linux-personality.c: Fix common/ includes.
11978 * nat/linux-osdata.c: Fix common/ includes.
11979 * nat/linux-namespaces.c: Fix common/ includes.
11980 * nat/linux-btrace.h: Fix common/ includes.
11981 * nat/linux-btrace.c: Fix common/ includes.
11982 * nat/fork-inferior.c: Fix common/ includes.
11983 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11984 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11985 * nat/aarch64-linux.c: Fix common/ includes.
11986 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11987 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11988 * namespace.h: Fix common/ includes.
11989 * mips-linux-tdep.c: Fix common/ includes.
11990 * minsyms.c: Fix common/ includes.
11991 * mi/mi-parse.h: Fix common/ includes.
11992 * mi/mi-main.c: Fix common/ includes.
11993 * mi/mi-cmd-env.c: Fix common/ includes.
11994 * memrange.h: Fix common/ includes.
11995 * memattr.c: Fix common/ includes.
11996 * maint.h: Fix common/ includes.
11997 * maint.c: Fix common/ includes.
11998 * main.c: Fix common/ includes.
11999 * machoread.c: Fix common/ includes.
12000 * location.c: Fix common/ includes.
12001 * linux-thread-db.c: Fix common/ includes.
12002 * linux-nat.c: Fix common/ includes.
12003 * linux-fork.c: Fix common/ includes.
12004 * inline-frame.c: Fix common/ includes.
12005 * infrun.c: Fix common/ includes.
12006 * inflow.c: Fix common/ includes.
12007 * inferior.h: Fix common/ includes.
12008 * inferior.c: Fix common/ includes.
12009 * infcmd.c: Fix common/ includes.
12010 * inf-ptrace.c: Fix common/ includes.
12011 * inf-child.c: Fix common/ includes.
12012 * ia64-linux-nat.c: Fix common/ includes.
12013 * i387-tdep.c: Fix common/ includes.
12014 * i386-tdep.c: Fix common/ includes.
12015 * i386-linux-tdep.c: Fix common/ includes.
12016 * i386-linux-nat.c: Fix common/ includes.
12017 * i386-go32-tdep.c: Fix common/ includes.
12018 * i386-fbsd-tdep.c: Fix common/ includes.
12019 * i386-fbsd-nat.c: Fix common/ includes.
12020 * guile/scm-type.c: Fix common/ includes.
12021 * guile/guile.c: Fix common/ includes.
12022 * go32-nat.c: Fix common/ includes.
12023 * gnu-nat.c: Fix common/ includes.
12024 * gdbthread.h: Fix common/ includes.
12025 * gdbarch-selftests.c: Fix common/ includes.
12026 * gdb_usleep.c: Fix common/ includes.
12027 * gdb_select.h: Fix common/ includes.
12028 * gdb_bfd.c: Fix common/ includes.
12029 * gcore.c: Fix common/ includes.
12030 * fork-child.c: Fix common/ includes.
12031 * findvar.c: Fix common/ includes.
12032 * fbsd-nat.c: Fix common/ includes.
12033 * event-top.c: Fix common/ includes.
12034 * event-loop.c: Fix common/ includes.
12035 * dwarf2read.c: Fix common/ includes.
12036 * dwarf2loc.c: Fix common/ includes.
12037 * dwarf2-frame.c: Fix common/ includes.
12038 * dwarf-index-cache.c: Fix common/ includes.
12039 * dtrace-probe.c: Fix common/ includes.
12040 * disasm-selftests.c: Fix common/ includes.
12041 * defs.h: Fix common/ includes.
12042 * csky-tdep.c: Fix common/ includes.
12043 * cp-valprint.c: Fix common/ includes.
12044 * cp-support.h: Fix common/ includes.
12045 * cp-support.c: Fix common/ includes.
12046 * corelow.c: Fix common/ includes.
12047 * completer.h: Fix common/ includes.
12048 * completer.c: Fix common/ includes.
12049 * compile/compile.c: Fix common/ includes.
12050 * compile/compile-loc2c.c: Fix common/ includes.
12051 * compile/compile-cplus-types.c: Fix common/ includes.
12052 * compile/compile-cplus-symbols.c: Fix common/ includes.
12053 * command.h: Fix common/ includes.
12054 * cli/cli-dump.c: Fix common/ includes.
12055 * cli/cli-cmds.c: Fix common/ includes.
12056 * charset.c: Fix common/ includes.
12057 * build-id.c: Fix common/ includes.
12058 * btrace.h: Fix common/ includes.
12059 * btrace.c: Fix common/ includes.
12060 * breakpoint.h: Fix common/ includes.
12061 * breakpoint.c: Fix common/ includes.
12062 * ax.h:
12063 (enum agent_op): Fix common/ includes.
12064 * ax-general.c (struct aop_map): Fix common/ includes.
12065 * ax-gdb.c: Fix common/ includes.
12066 * auxv.c: Fix common/ includes.
12067 * auto-load.c: Fix common/ includes.
12068 * arm-tdep.c: Fix common/ includes.
12069 * arch/riscv.c: Fix common/ includes.
12070 * arch/ppc-linux-common.c: Fix common/ includes.
12071 * arch/i386.c: Fix common/ includes.
12072 * arch/arm.c: Fix common/ includes.
12073 * arch/arm-linux.c: Fix common/ includes.
12074 * arch/arm-get-next-pcs.c: Fix common/ includes.
12075 * arch/amd64.c: Fix common/ includes.
12076 * arch/aarch64.c: Fix common/ includes.
12077 * arch/aarch64-insn.c: Fix common/ includes.
12078 * arch-utils.c: Fix common/ includes.
12079 * amd64-windows-tdep.c: Fix common/ includes.
12080 * amd64-tdep.c: Fix common/ includes.
12081 * amd64-sol2-tdep.c: Fix common/ includes.
12082 * amd64-obsd-tdep.c: Fix common/ includes.
12083 * amd64-nbsd-tdep.c: Fix common/ includes.
12084 * amd64-linux-tdep.c: Fix common/ includes.
12085 * amd64-linux-nat.c: Fix common/ includes.
12086 * amd64-fbsd-tdep.c: Fix common/ includes.
12087 * amd64-fbsd-nat.c: Fix common/ includes.
12088 * amd64-dicos-tdep.c: Fix common/ includes.
12089 * amd64-darwin-tdep.c: Fix common/ includes.
12090 * agent.c: Fix common/ includes.
12091 * ada-lang.h: Fix common/ includes.
12092 * ada-lang.c: Fix common/ includes.
12093 * aarch64-tdep.c: Fix common/ includes.
12094
2f5c153e
TT
120952019-01-25 Tom Tromey <tom@tromey.com>
12096
12097 * common/create-version.sh: Use common/version.h.
12098
adc6a863
PA
120992019-01-24 Pedro Alves <palves@redhat.com>
12100
12101 * infrun.c (signal_stop, signal_print, signal_program)
12102 (signal_catch, signal_pass): Now arrays instead of pointers.
12103 (update_signals_program_target, do_target_resume)
12104 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12105 * linux-nat.c (linux_nat_target::pass_signals)
12106 (linux_nat_target::create_inferior, linux_nat_target::attach):
12107 Adjust.
12108 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12109 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12110 * procfs.c (procfs_target::pass_signals): Adjust.
12111 * record-full.c (record_full_target::resume): Adjust.
12112 * remote.c (remote_target::pass_signals)
12113 (remote_target::program_signals): Adjust.
12114 * target-debug.h (target_debug_print_signals): Now takes a
12115 gdb::array_view as parameter. Adjust.
12116 * target.h (target_ops) <pass_signals, program_signals>: Replace
12117 pointer and length parameters with gdb::array_view.
12118 (target_pass_signals, target_program_signals): Likewise.
12119 * target-delegates.c: Regenerate.
12120
3046d67a
PA
121212019-01-24 Pedro Alves <palves@redhat.com>
12122
12123 * common/forward-scope-exit.h
12124 (forward_scope_exit::forward_scope_exit): Pass arguments to
12125 m_bind_function directly, instead of creating a std::bind and
12126 copying that.
12127
353229bf
AH
121282019-01-24 Alan Hayward <alan.hayward@arm.com>
12129
12130 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12131 for static members.
12132 (pass_in_v_vfp_candidate): Likewise.
12133
311dc83a
TT
121342019-01-23 Tom Tromey <tom@tromey.com>
12135 Pedro Alves <palves@redhat.com>
12136
12137 * regcache.c (class regcache_invalidator): Remove.
12138 (regcache::raw_write): Use make_scope_exit.
12139
296bd123
TT
121402019-01-23 Tom Tromey <tom@tromey.com>
12141
12142 * ui-out.h (class ui_out_emit_type): Update comment.
12143
979a0d13
TT
121442019-01-23 Tom Tromey <tom@tromey.com>
12145
12146 * infrun.c (fetch_inferior_event): Update comment.
12147
d238133d
TT
121482019-01-23 Tom Tromey <tom@tromey.com>
12149 Pedro Alves <palves@redhat.com>
12150
12151 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12152 parameter.
12153 (fetch_inferior_event): Use SCOPE_EXIT.
12154
12155
9885e6bb
TT
121562019-01-23 Tom Tromey <tom@tromey.com>
12157 Pedro Alves <palves@redhat.com>
12158
12159 * infrun.c (disable_thread_events): Delete.
12160 (stop_all_threads): Use SCOPE_EXIT.
12161
286526c1
TT
121622019-01-23 Tom Tromey <tom@tromey.com>
12163 Pedro Alves <palves@redhat.com>
12164
12165 * symfile.c: Include forward-scope-exit.h.
12166 (clear_symtab_users_cleanup): Replace forward declaration with
12167 a FORWARD_SCOPE_EXIT.
12168 (syms_from_objfile_1): Use the forward_scope_exit and
12169 gdb::optional instead of cleanup_function.
12170 (reread_symbols): Use the forward_scope_exit instead of
12171 cleanup_function.
12172 (clear_symtab_users_cleanup): Remove function.
12173
1db93f14
TT
121742019-01-23 Tom Tromey <tom@tromey.com>
12175 Pedro Alves <palves@redhat.com>
12176
12177 * linux-nat.c: Include scope-exit.h.
12178 (cleanup_target_stop): Remove.
12179 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12180 SCOPE_EXIT.
12181
2cc83d1e
TT
121822019-01-23 Tom Tromey <tom@tromey.com>
12183 Pedro Alves <palves@redhat.com>
12184
12185 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12186 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12187
694c6bf5
TT
121882019-01-23 Tom Tromey <tom@tromey.com>
12189 Andrew Burgess <andrew.burgess@embecosm.com>
12190 Pedro Alves <palves@redhat.com>
12191
12192 * infrun.c (fetch_inferior_event): Use scope_exit.
12193 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12194 * top.c (execute_command): Use scope_exit.
12195 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12196 * utils.c (do_bpstat_clear_actions_cleanup)
12197 (make_bpstat_clear_actions_cleanup): Remove.
12198
4c41382a
TT
121992019-01-23 Tom Tromey <tom@tromey.com>
12200 Pedro Alves <palves@redhat.com>
12201
12202 * infrun.c: Include "common/scope-exit.h"
12203 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12204 (wait_for_inferior): Use SCOPE_EXIT.
12205 (fetch_inferior_event): Use scope_exit.
12206
89f8fb50
TT
122072019-01-23 Tom Tromey <tom@tromey.com>
12208 Pedro Alves <palves@redhat.com>
12209
12210 * breakpoint.c (create_breakpoint): Remove cleanup.
12211
5419bdae
TT
122122019-01-23 Tom Tromey <tom@tromey.com>
12213 Andrew Burgess <andrew.burgess@embecosm.com>
12214 Pedro Alves <palves@redhat.com>
12215
e587ef42
PA
122162019-01-23 Pedro Alves <palves@redhat.com>
12217
12218 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12219
77f0e74c
PA
122202019-01-23 Pedro Alves <palves@redhat.com>
12221 Andrew Burgess <andrew.burgess@embecosm.com>
12222
12223 * gdbthread.h: Include "common/forward-scope-exit.h".
12224 (scoped_finish_thread_state): Redefine custom class in terms of
12225 forward_scope_exit.
12226
5b9b3e53
PA
122272019-01-23 Pedro Alves <palves@redhat.com>
12228 Andrew Burgess <andrew.burgess@embecosm.com>
12229
12230 * common/forward-scope-exit.h: New file.
12231
54b65c9b
PA
122322019-01-23 Pedro Alves <palves@redhat.com>
12233 Andrew Burgess <andrew.burgess@embecosm.com>
12234 Tom Tromey <tom@tromey.com>
12235
12236 * common/scope-exit.h: New file.
12237
cf08fb29
PA
122382019-01-23 Pedro Alves <palves@redhat.com>
12239
12240 * common/preprocessor.h (ESC): Rename to ...
12241 (ESC_PARENS): ... this.
12242 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12243 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12244
ae73e2e2
TT
122452019-01-23 Tom Tromey <tom@tromey.com>
12246
12247 * language.h (class scoped_switch_to_sym_language_if_auto):
12248 Initialize m_lang in both cases.
12249
6594e122
AH
122502019-01-23 Alan Hayward <alan.hayward@arm.com>
12251
12252 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12253 with XCNEW.
12254
a7c9855d
TT
122552019-01-22 Tom Tromey <tom@tromey.com>
12256
12257 * corelow.c: Do not include sys/file.h.
12258
93cc1d53
TT
122592019-01-22 Tom Tromey <tom@tromey.com>
12260
12261 * tui/tui-wingeneral.h: Include gdb_curses.h.
12262
38561778
TT
122632019-01-22 Tom Tromey <tom@tromey.com>
12264
12265 * source-cache.h (class source_cache) <get_source_lines,
12266 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12267
37b3ab5b
TT
122682019-01-22 Tom Tromey <tom@tromey.com>
12269
12270 * remote-fileio.h (struct remote_target): Declare.
12271
3fabc016
TT
122722019-01-22 Tom Tromey <tom@tromey.com>
12273
12274 * python/py-arch.c: Do not include py-ref.h.
12275 * python/py-bpevent.c: Do not include py-ref.h.
12276 * python/py-cmd.c: Do not include py-ref.h.
12277 * python/py-continueevent.c: Do not include py-ref.h.
12278 * python/py-event.h: Do not include py-ref.h.
12279 * python/py-evtregistry.c: Do not include py-ref.h.
12280 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12281 * python/py-frame.c: Do not include py-ref.h.
12282 * python/py-framefilter.c: Do not include py-ref.h.
12283 * python/py-function.c: Do not include py-ref.h.
12284 * python/py-infevents.c: Do not include py-ref.h.
12285 * python/py-linetable.c: Do not include py-ref.h.
12286 * python/py-objfile.c: Do not include py-ref.h.
12287 * python/py-param.c: Do not include py-ref.h.
12288 * python/py-prettyprint.c: Do not include py-ref.h.
12289 * python/py-progspace.c: Do not include py-ref.h.
12290 * python/py-symbol.c: Do not include py-ref.h.
12291 * python/py-symtab.c: Do not include py-ref.h.
12292 * python/py-type.c: Do not include py-ref.h.
12293 * python/py-unwind.c: Do not include py-ref.h.
12294 * python/py-utils.c: Do not include py-ref.h.
12295 * python/py-value.c: Do not include py-ref.h.
12296 * python/py-varobj.c: Do not include py-ref.h.
12297 * python/py-xmethods.c: Do not include py-ref.h.
12298 * python/python.c: Do not include py-ref.h.
12299 * varobj.c: Do not include py-ref.h.
12300
6b4d7774
TT
123012019-01-22 Tom Tromey <tom@tromey.com>
12302
12303 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12304 keyword for bcache.
12305
7af7e9b5
TT
123062019-01-22 Tom Tromey <tom@tromey.com>
12307
12308 * compile/compile-cplus-types.c: Remove a comment by #include.
12309
951d1049
TT
123102019-01-22 Tom Tromey <tom@tromey.com>
12311
12312 * compile/gcc-c-plugin.h: Include compile-internal.h.
12313
d65d5705
TT
123142019-01-22 Tom Tromey <tom@tromey.com>
12315
12316 * stabsread.c (EXTERN): Do not define.
12317 (symnum, next_symbol_text_func, processing_gcc_compilation)
12318 (within_function, global_sym_chain, global_stabs)
12319 (previous_stab_code, this_object_header_files)
12320 (n_this_object_header_files)
12321 (n_allocated_this_object_header_files): Define.
12322 * stabsread.h (EXTERN): Never define. Use "extern".
12323
b6fb1ee5
PW
123242019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12325
12326 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12327 history_value.
12328
be6d4f74
TT
123292019-01-21 Tom Tromey <tom@tromey.com>
12330
12331 * ui-out.c: Fix includes.
12332 * tui/tui-source.c: Fix includes.
12333 * target.c: Fix includes.
12334 * remote.c: Fix includes.
12335 * regcache.c: Fix includes.
12336 * python/py-block.c: Fix includes.
12337 * printcmd.c: Fix includes.
12338 * or1k-tdep.c: Fix includes.
12339 * mi/mi-main.c: Fix includes.
12340 * m32r-tdep.c: Fix includes.
12341 * csky-tdep.c: Fix includes.
12342 * compile/compile-cplus-types.c: Fix includes.
12343 * cli/cli-interp.c: Fix includes.
12344
73021deb
AH
123452019-01-21 Alan Hayward <alan.hayward@arm.com>
12346
12347 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12348 for padding.
12349
7932255d
TT
123502019-01-16 Tom Tromey <tom@tromey.com>
12351
12352 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12353 earlier.
12354 (struct objfile) <msymbols_range>: Move from top level.
12355 <msymbols>: New method.
12356 (class objfile_msymbols): Remove.
12357 * symtab.c (default_collect_symbol_completion_matches_break_on):
12358 Update.
12359 * symmisc.c (dump_msymbols): Update.
12360 * stabsread.c (scan_file_globals): Update.
12361 * objc-lang.c (info_selectors_command, info_classes_command)
12362 (find_methods): Update.
12363 * minsyms.c (find_solib_trampoline_target): Update.
12364 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12365 * coffread.c (coff_symfile_read): Update.
12366 * ada-lang.c (ada_lookup_simple_minsym)
12367 (ada_collect_symbol_completion_matches): Update.
12368
604b1bfb
TT
123692019-01-16 Tom Tromey <tom@tromey.com>
12370
12371 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12372 type. Remove no-argument constructor.
12373 <iterator::operator++>: Simplify.
12374 <begin>: Update.
12375 <end>: Use minimal_symbol_count.
12376
f252c6d5
TT
123772019-01-16 Tom Tromey <tom@tromey.com>
12378
12379 * objfiles.h (struct objfile) <psymtabs>: New method.
12380 (class objfile_psymtabs): Remove.
12381 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12382 typedef.
12383 <range>: New method.
12384 (require_partial_symbols): Change return type.
12385 * psymtab.c (require_partial_symbols)
12386 (psym_expand_symtabs_matching): Update.
12387 * mdebugread.c (parse_partial_symbols): Update.
12388 * dbxread.c (dbx_end_psymtab): Update.
12389
b669c953
TT
123902019-01-15 Tom Tromey <tom@tromey.com>
12391
12392 * symtab.c (lookup_objfile_from_block)
12393 (lookup_symbol_in_objfile_symtabs)
12394 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12395 (find_line_symtab, info_sources_command)
12396 (default_collect_symbol_completion_matches_break_on)
12397 (make_source_files_completion_list): Update.
12398 * symmisc.c (print_objfile_statistics, dump_objfile)
12399 (maintenance_print_symbols, maintenance_info_symtabs)
12400 (maintenance_check_symtabs, maintenance_info_line_tables):
12401 Update.
12402 * source.c (select_source_symtab)
12403 (forget_cached_source_info_for_objfile): Update.
12404 * objfiles.h (class objfile_compunits): Remove.
12405 (struct objfile) <compunits_range>: New typedef.
12406 (compunits): New method.
12407 * objfiles.c (objfile_relocate1): Update.
12408 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12409 * maint.c (count_symtabs_and_blocks): Update.
12410 * linespec.c (iterate_over_all_matching_symtabs): Update.
12411 * cp-support.c (add_symbol_overload_list_qualified): Update.
12412 * coffread.c (coff_symtab_read): Update.
12413 * ada-lang.c (add_nonlocal_symbols)
12414 (ada_collect_symbol_completion_matches)
12415 (ada_add_global_exceptions): Update.
12416
7e955d83
TT
124172019-01-15 Tom Tromey <tom@tromey.com>
12418
12419 * progspace.h (program_space) <objfiles_safe_range>: New
12420 typedef.
12421 <objfiles_safe>: New method.
12422 * objfiles.h (class all_objfiles_safe): Remove.
12423 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12424 * jit.c (jit_inferior_exit_hook): Update.
12425
2030c079
TT
124262019-01-17 Tom Tromey <tom@tromey.com>
12427
12428 * progspace.h (program_space) <objfiles_range>: New typedef.
12429 <objfiles>: New method.
12430 <objfiles_head>: Rename from objfiles.
12431 (object_files): Update.
12432 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12433 * guile/scm-pretty-print.c
12434 (ppscm_find_pretty_printer_from_objfiles): Update.
12435 * guile/scm-objfile.c (gdbscm_objfiles): Update.
12436 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12437 Update.
12438 * python/py-progspace.c (pspy_get_objfiles): Update.
12439 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12440 Update.
12441 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12442 (objfpy_lookup_objfile_by_build_id): Update.
12443 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12444 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12445 Update.
12446 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12447 (expand_symtab_containing_pc, lookup_objfile_from_block)
12448 (lookup_static_symbol, basic_lookup_transparent_type)
12449 (find_pc_sect_compunit_symtab, find_symbol_at_address)
12450 (find_line_symtab, info_sources_command)
12451 (default_collect_symbol_completion_matches_break_on)
12452 (make_source_files_completion_list, find_main_name): Update.
12453 * symmisc.c (print_symbol_bcache_statistics)
12454 (print_objfile_statistics, maintenance_print_symbols)
12455 (maintenance_print_msymbols, maintenance_print_objfiles)
12456 (maintenance_info_symtabs, maintenance_check_symtabs)
12457 (maintenance_expand_symtabs, maintenance_info_line_tables):
12458 Update.
12459 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12460 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12461 (map_overlay_command, unmap_overlay_command)
12462 (simple_overlay_update, expand_symtabs_matching)
12463 (map_symbol_filenames): Update.
12464 * symfile-debug.c (set_debug_symfile): Update.
12465 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12466 Update.
12467 * source.c (select_source_symtab, forget_cached_source_info):
12468 Update.
12469 * solib.c (solib_read_symbols): Update.
12470 * solib-spu.c (append_ocl_sos): Update.
12471 * psymtab.c (maintenance_print_psymbols)
12472 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12473 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12474 * printcmd.c (info_symbol_command): Update.
12475 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12476 Update.
12477 * objfiles.h (class all_objfiles): Remove.
12478 * objfiles.c (have_partial_symbols, have_full_symbols)
12479 (have_minimal_symbols, qsort_cmp, update_section_map)
12480 (shared_objfile_contains_address_p)
12481 (default_iterate_over_objfiles_in_search_order): Update.
12482 * objc-lang.c (info_selectors_command, info_classes_command)
12483 (find_methods): Update.
12484 * minsyms.c (find_solib_trampoline_target): Update.
12485 * maint.c (maintenance_info_sections)
12486 (maintenance_translate_address, count_symtabs_and_blocks):
12487 Update.
12488 * main.c (captured_main_1): Update.
12489 * linux-thread-db.c (try_thread_db_load_from_pdir)
12490 (has_libpthread): Update.
12491 * linespec.c (iterate_over_all_matching_symtabs)
12492 (search_minsyms_for_name): Update.
12493 * jit.c (jit_find_objf_with_entry_addr): Update.
12494 * hppa-tdep.c (find_unwind_entry)
12495 (hppa_lookup_stub_minimal_symbol): Update.
12496 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12497 Update.
12498 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12499 (elf_gnu_ifunc_resolve_by_got): Update.
12500 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12501 * dwarf-index-write.c (save_gdb_index_command): Update.
12502 * cp-support.c (add_symbol_overload_list_qualified): Update.
12503 * breakpoint.c (create_overlay_event_breakpoint)
12504 (create_longjmp_master_breakpoint)
12505 (create_std_terminate_master_breakpoint)
12506 (create_exception_master_breakpoint): Update.
12507 * blockframe.c (find_pc_partial_function): Update.
12508 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12509 (ada_collect_symbol_completion_matches)
12510 (ada_add_global_exceptions): Update.
12511
776489e0
TT
125122019-01-17 Tom Tromey <tom@tromey.com>
12513
12514 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12515 declare VEC.
12516 (solib_target_parse_libraries): Change return type.
12517 (library_list_start_segment, library_list_start_section)
12518 (library_list_end_library, library_list_start_library); Update.
12519 (solib_target_free_library_list): Remove.
12520 (solib_target_parse_libraries): Remove cleanup. Change return
12521 type.
12522 (solib_target_current_sos): Update.
12523
6471e7d2
TT
125242019-01-17 Tom Tromey <tromey@bapiya>
12525
12526 * valprint.c: Replace "the the" with "the".
12527 * symtab.c: Replace "the the" with "the".
12528 * solib.c: Replace "the the" with "the".
12529 * solib-dsbt.c: Replace "the the" with "the".
12530 * linespec.c: Replace "the the" with "the".
12531 * dwarf2loc.h: Replace "the the" with "the".
12532 * amd64-windows-tdep.c: Replace "the the" with "the".
12533 * aarch64-tdep.c: Replace "the the" with "the".
12534
c24bdb02
KS
125352019-01-16 Keith Seitz <keiths@redhat.com>
12536
12537 PR gdb/23773
12538 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12539 <builder>: Rename to ..
12540 <m_builder>: ... this and make private.
12541 (dwarf2_cu::get_builder): New method. Change all users of
12542 `builder' to use this method.
12543 (dwarf2_start_symtab): Move to ...
12544 (dwarf2_cu::start_symtab): ... here. Update all callers
12545 (setup_type_unit_groups): Move to ...
12546 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12547 callers.
12548 (dwarf2_cu::reset_builder): New method.
12549 (process_full_compunit, process_full_type_unit): Use
12550 dwarf2_cu::reset_builder.
12551 (follow_die_offset): Record the ancestor CU if it is different
12552 from the followed DIE's CU.
12553 (follow_die_sig_1): Likewise.
12554
8d64371b
TT
125552019-01-15 Tom Tromey <tom@tromey.com>
12556
12557 * remote.c (class remote_state) <buf>: Now a char_vector.
12558 <buf_size>: Remove.
12559 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12560 parameter.
12561 (remote_target::getpkt_or_notif_sane_1)
12562 (remote_target::getpkt_sane)
12563 (remote_target::getpkt_or_notif_sane): Likewise.
12564 (class remote_target) <putpkt>: New overload.
12565 (remote_target::read_frame): Change type of "buf_p". Remove
12566 sizeof_p parameter.
12567 (packet_ok): New overload.
12568 (packet_check_result): New overload.
12569 Update all uses.
12570
bb277751
TT
125712019-01-14 Tom Tromey <tom@tromey.com>
12572
12573 * remote-notif.c (handle_notification, remote_notif_ack)
12574 (remote_notif_parse): Make "buf" const.
12575 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12576 const.
12577 (remote_notif_parse, remote_notif_ack, handle_notification):
12578 Likewise.
12579 * remote.c (remote_notif_stop_parse): Make "buf" const.
12580 (remote_target::remote_parse_stop_reply): Make "buf" const.
12581 (remote_notif_stop_ack): Make "buf" const.
12582
05be00a8
TT
125832019-01-14 Tom Tromey <tom@tromey.com>
12584
12585 * remote.c (remote_console_output): Make parameter const.
12586
491adeca
TT
125872019-01-14 Tom Tromey <tom@tromey.com>
12588
12589 * target-debug.h (target_debug_print_signals): Constify.
12590 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12591 * procfs.c (procfs_target::pass_signals): Update.
12592 * linux-nat.c (linux_nat_target::pass_signals): Update.
12593 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12594 * target-delegates.c: Rebuild.
12595 * remote.c (remote_target::program_signals): Update.
12596 (remote_target::pass_signals): Update.
12597 * target.c (target_pass_signals): Constify argument.
12598 (target_program_signals): Likewise.
12599 * target.h (struct target_ops) <pass_signals, program_signals>:
12600 Constify argument.
12601 (target_pass_signals, target_program_signals): Constify argument.
12602
bbd94648
TT
126032019-01-14 Tom Tromey <tom@tromey.com>
12604
12605 PR tui/28819:
12606 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12607
6f072a10
PFC
126082019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12609
12610 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12611 field.
12612 * rs6000-tdep.c: Include reggroups.h.
12613 (IS_V_ALIAS_PSEUDOREG): Define.
12614 (rs6000_register_name): Return names for the "vX" aliases.
12615 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12616 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12617 aliases. Call default_register_reggroup_p for all other
12618 pseudo-registers.
12619 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12620 New functions.
12621 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12622 Handle "vX" aliases.
12623 (v_alias_pseudo_register_collect): New function.
12624 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12625 (rs6000_gdbarch_init): Initialize "vX" aliases as
12626 pseudo-registers. Restore registration of
12627 rs6000_pseudo_register_reggroup_p with
12628 set_tdesc_pseudo_register_reggroup_p.
12629
1a782351
MF
126302019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12631
12632 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12633 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12634 set_gdbarch_num_pseudo_regs.
12635
d73cff18
PW
126362019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12637
12638 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12639 Remove arg prefixname, add do_set and do_show.
12640 Add member functions set_list and show_list.
12641 * cli/cli-style.c (class cli_style_option): Update accordingly.
12642 (style_set_list): Move to file scope.
12643 (style_show_list): Likewise.
12644 (set_style): Call help_list.
12645 (show_style): Call cmd_show_list.
12646 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12647 Update to use the new macro.
12648
60a90376
JB
126492019-10-12 Joel Brobecker <brobecker@adacore.com>
12650
12651 * ada-lang.c (_initialize_ada_language): Expand the help text
12652 for the "catch exception" command.
12653
9d7c67bf
PW
126542019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12655
12656 * symtab.c (matching_obj_sections): Initialize obj,
12657 declare it closer to its usage.
12658
7cf47dc4
TT
126592019-01-10 Tom Tromey <tom@tromey.com>
12660
12661 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12662 (basic_inf_threads_range): Remove.
12663 (inf_threads_range, inf_non_exited_threads_range)
12664 (safe_inf_threads_range): Use next_adapter.
12665
d3cb6808
KS
126662019-01-10 Keith Seitz <keiths@redhat.com>
12667
12668 PR gdb/23712
12669 PR symtab/23010
12670 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12671 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12672
63a20375
KS
126732019-01-10 Keith Seitz <keiths@redhat.com>
12674
12675 PR gdb/23712
12676 PR symtab/23010
12677 * dictionary.c (pending_to_vector): Remove.
12678 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12679 Remove _1 suffix, replacing functions of the same name. Update
12680 all callers.
12681 (dict_create_hashed, dict_create_hashed_expandable)
12682 (dict_create_linear, dict_create_linear_expandable, dict_free)
12683 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12684 Make functions static.
12685
b026f593
KS
126862019-01-10 Keith Seitz <keiths@redhat.com>
12687
12688 PR gdb/23712
12689 PR symtab/23010
12690 * dictionary.h (struct dictionary): Replace declaration with
12691 multidictionary.
12692 (dict_create_hashed, dict_create_hashed_expandable)
12693 (dict_create_linear, dict_create_linear_expandable)
12694 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12695 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12696 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12697 taking multidictionary argument.
12698 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12699 * block.h (struct block) <dict>: Change to multidictionary
12700 and rename `multidict'.
12701 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12702 symmisc.c: Update all dictionary references to multidictionary.
12703
c7748ee9
KS
127042019-01-10 Keith Seitz <keiths@redhat.com>
12705
12706 PR gdb/23712
12707 PR symtab/23010
12708 * dictionary.c: Include unordered_map.
12709 (pending_to_vector): New function.
12710 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12711 Rewrite the non-"_1" functions to take vector instead
12712 of linked list.
12713 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12714 "new" _1 versions of the same name.
12715 (multidictionary): Define.
12716 (std::hash<enum language): New definition.
12717 (collate_pending_symbols_by_language, mdict_create_hashed)
12718 (mdict_create_hashed_expandable, mdict_create_linear)
12719 (mdict_create_linear_expandable, mdict_free)
12720 (find_language_dictionary, create_new_language_dictionary)
12721 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12722 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12723 (mdict_size, mdict_empty): New functions.
12724 * dictionary.h (mdict_iterator): Define.
12725
67aa1f3c
PA
127262019-01-10 Pedro Alves <palves@redhat.com>
12727
12728 * breakpoint.c (read_uploaded_action)
12729 (create_tracepoint_from_upload): Adjust to use
12730 gdb::unique_xmalloc_ptr.
12731 * ctf.c (ctf_write_uploaded_tp):
12732 (SET_ARRAY_FIELD): Use emplace_back.
12733 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12734 * tracefile-tfile.c (tfile_write_uploaded_tp):
12735 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12736 gdb::unique_xmalloc_ptr.
12737 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12738 at_string, cond_string, cmd_strings>: Replace char pointers
12739 with gdb::unique_xmalloc_ptr.
12740
2f667667
PA
127412019-01-10 Pedro Alves <palves@redhat.com>
12742
12743 * solib-target.c (library_list_start_library): Don't xstrdup name.
12744
36cb7237
PA
127452019-01-10 Pedro Alves <palves@redhat.com>
12746
12747 * mdebugread.c (parse_partial_symbols): Use
12748 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12749
da584958
AB
127502019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12751
12752 * linux-fork.c (scoped_switch_fork_info)
12753 <~scoped_switch_fork_info>: Fix incorrect variable name.
12754
1ef8573c
AB
127552019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12756
12757 * linux-fork.c (scoped_switch_fork_info)
12758 <scoped_switch_fork_info>: Make explicit.
12759 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12760
8d7bcccb
TT
127612019-01-10 Tom Tromey <tom@tromey.com>
12762
12763 * objfiles.h (objfile::reset_psymtabs): Update.
12764 * objfiles.c (objfile::objfile): Update.
12765 * psymtab.h (psymtab_storage::obstack): Update.
12766 (psymtab_storage::m_obstack): Use gdb::optional.
12767 (class psymtab_storage): Update comment. Remove objfile
12768 parameter.
12769 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12770
b596a3c7
TT
127712019-01-10 Tom Tromey <tom@tromey.com>
12772
12773 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12774 <free_psymtabs>: Now private.
12775 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12776 (allocate_psymtab): Use new method.
12777
a9342b62
TT
127782019-01-10 Tom Tromey <tom@tromey.com>
12779
12780 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12781 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12782 * mdebugread.c (parse_partial_symbols): Use
12783 allocate_dependencies.
12784 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12785 allocate_dependencies.
12786 (process_psymtab_comp_unit_reader)
12787 (build_type_psymtab_dependencies): Likewise.
12788 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12789
5af70966
TT
127902019-01-10 Tom Tromey <tom@tromey.com>
12791
12792 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12793 PSYMBOL_SET_LANGUAGE.
12794 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12795
5923a04c
TT
127962019-01-10 Tom Tromey <tom@tromey.com>
12797
12798 * psymtab.h (psymtab_storage::obstack): New method.
12799 <m_obstack>: Rename from obstack; now private.
12800 * psymtab.c (psymtab_storage): Update.
12801 * dwarf2read.c (create_addrmap_from_index)
12802 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12803 Update.
12804
6d6a12bf
TT
128052019-01-10 Tom Tromey <tom@tromey.com>
12806
12807 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12808 * objfiles.h (objfile::reset_psymtabs): New method.
12809
d320c2b5
TT
128102019-01-10 Tom Tromey <tom@tromey.com>
12811
12812 * symmisc.c (print_symbol_bcache_statistics): Update.
12813 (print_objfile_statistics): Update.
12814 * symfile.c (reread_symbols): Update.
12815 * psymtab.h (class psymtab_storage): New.
12816 * psymtab.c (psymtab_storage): New constructor.
12817 (~psymtab_storage): New destructor.
12818 (require_partial_symbols): Update.
12819 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12820 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12821 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12822 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12823 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12824 (start_psymtab_common, end_psymtab_common)
12825 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12826 (allocate_psymtab): Update.
12827 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12828 Update.
12829 (dump_psymtab_addrmap, maintenance_print_psymbols)
12830 (maintenance_check_psymtabs): Update.
12831 (class objfile_psymtabs): Move to objfiles.h.
12832 * psympriv.h (discard_psymtab): Now inline.
12833 (psymtab_discarder::psymtab_discarder): Update.
12834 (psymtab_discarder::~psymtab_discarder): Update.
12835 (ALL_OBJFILE_PSYMTABS): Rewrite.
12836 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12837 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12838 Remove fields.
12839 <partial_symtabs>: New field.
12840 (class objfile_psymtabs): Move from psymtab.h. Update.
12841 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12842 psymbol_cache.
12843 (objfile::~objfile): Don't destroy psymbol_cache.
12844 * mdebugread.c (parse_partial_symbols): Update.
12845 * dwarf2read.c (create_addrmap_from_index)
12846 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12847 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12848 (add_partial_subprogram, dwarf2_ranges_read): Update.
12849 * dwarf-index-write.c (write_address_map)
12850 (write_one_signatured_type, recursively_write_psymbols)
12851 (class debug_names, class debug_names, write_psymtabs_to_index):
12852 Update.
12853
1d94a5a3
TT
128542019-01-10 Tom Tromey <tom@tromey.com>
12855
12856 * symtab.h (SYMBOL_SET_NAMES): Update.
12857 (symbol_set_names): Update.
12858 (MSYMBOL_SET_NAMES): Update.
12859 * symtab.c (symbol_set_names): Change argument to be an
12860 objfile_per_bfd_storage.
12861 * psymtab.c (add_psymbol_to_bcache): Update.
12862 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12863
0f14768a
TT
128642019-01-10 Tom Tromey <tom@tromey.com>
12865
12866 * symtab.c (create_demangled_names_hash): Change argument to be an
12867 objfile_per_bfd_storage.
12868 (symbol_set_names): Update.
12869
6eee24ce
TT
128702019-01-10 Tom Tromey <tom@tromey.com>
12871
12872 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12873 init_psymbol_list.
12874 * psymtab.c (init_psymbol_list): Do nothing if already called.
12875 * psympriv.h (init_psymbol_list): Add comment.
12876 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12877 init_psymbol_list.
12878 * dbxread.c (dbx_symfile_read): Unconditionally call
12879 init_psymbol_list.
12880
75aedd27
TT
128812019-01-10 Tom Tromey <tom@tromey.com>
12882
12883 * xcoffread.c (scan_xcoff_symtab): Update.
12884 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12885 "where".
12886 * mdebugread.c (parse_partial_symbols)
12887 (handle_psymbol_enumerators): Update.
12888 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12889 * dbxread.c (read_dbx_symtab): Update.
12890 * psympriv.h (psymbol_placement): New enum.
12891 (add_psymbol_to_list): Update.
12892
939652a5
TT
128932019-01-10 Tom Tromey <tom@tromey.com>
12894
12895 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12896 static_psymbols parameters.
12897 (scan_xcoff_symtab): Update.
12898 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12899 static_psymbols parameters.
12900 * psympriv.h (start_psymtab_common): Update.
12901 * mdebugread.c (parse_partial_symbols): Update.
12902 * dwarf2read.c (create_partial_symtab): Update.
12903 * dbxread.c (read_dbx_symtab): Update.
12904 (start_psymtab): Remove global_psymbols and static_psymbols
12905 parameters.
12906
baa62830
TT
129072019-01-10 Tom Tromey <tom@tromey.com>
12908
12909 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12910 * psymtab.c (allocate_psymtab): Add comment.
12911 * psympriv.h (allocate_psymtab): Add comment.
12912 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12913 initializations.
12914 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12915
0e8f53ba
TT
129162019-01-10 Tom Tromey <tom@tromey.com>
12917
12918 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12919 Don't declare.
12920 * mipsread.c: Include mdebugread.h.
12921 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12922 Declare.
12923 * elfread.c: Include mdebugread.h.
12924
b22a7c6a
TT
129252019-01-09 Tom Tromey <tom@tromey.com>
12926
12927 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12928 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12929 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12930 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12931 (psym_lookup_symbol, psym_find_last_source_symtab)
12932 (psym_forget_cached_source_info, psym_print_stats)
12933 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12934 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12935 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12936 (psym_find_compunit_symtab_by_address)
12937 (maintenance_print_psymbols, maintenance_info_psymtabs)
12938 (maintenance_check_psymtabs): Use ranged for.
12939 * psymtab.h (class objfile_psymtabs): New.
12940 (require_partial_symbols): Return objfile_psymtabs.
12941 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12942
3b9d3ac2
TT
129432019-01-09 Tom Tromey <tom@tromey.com>
12944
12945 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12946 (find_pc_mapped_section, list_overlays_command)
12947 (map_overlay_command, unmap_overlay_command)
12948 (simple_overlay_update): Use all_objfiles.
12949 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12950 * printcmd.c (info_symbol_command): Use all_objfiles.
12951 * objfiles.h (ALL_OBJSECTIONS): Remove.
12952 * maint.c (maintenance_translate_address): Use all_objfiles.
12953 * gcore.c (gcore_create_callback): Use all_objfiles.
12954 (objfile_find_memory_regions): Likewise.
12955
8b31193a
TT
129562019-01-09 Tom Tromey <tom@tromey.com>
12957
12958 * symtab.c (find_line_symtab, info_sources_command)
12959 (make_source_files_completion_list): Use objfile_compunits.
12960 * source.c (select_source_symtab): Use objfile_compunits.
12961 * objfiles.h (struct objfile): Update comment.
12962 (ALL_OBJFILES): Remove.
12963 (ALL_FILETABS): Remove.
12964 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12965 objfile_compunits.
12966
d5da8b3c
TT
129672019-01-09 Tom Tromey <tom@tromey.com>
12968
12969 * symmisc.c (print_objfile_statistics, dump_objfile)
12970 (maintenance_print_symbols): Use compunit_filetabs.
12971 * source.c (forget_cached_source_info_for_objfile): Use
12972 compunit_filetabs.
12973 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12974 (ALL_FILETABS): Use compunit_filetabs.
12975 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12976 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12977
5accd1a0
TT
129782019-01-09 Tom Tromey <tom@tromey.com>
12979
12980 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12981 (compunit_filetabs): New.
12982 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12983 compunit_filetabs.
12984 (info_sources_command, make_source_files_completion_list): Remove
12985 declaration.
12986 * symmisc.c (print_objfile_statistics, dump_objfile)
12987 (maintenance_print_symbols): Remove declaration.
12988 (maintenance_info_symtabs): Use compunit_filetabs.
12989 (maintenance_info_line_tables): Likewise.
12990 * source.c (select_source_symtab): Change local variable name.
12991 (forget_cached_source_info_for_objfile): Remove declaration.
12992 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12993 * objfiles.c (objfile_relocate1): Remove declaration.
12994 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12995 declaration.
12996 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12997 * coffread.c (coff_symtab_read): Remove declaration.
12998 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12999 compunit_filetabs.
13000
d8aeb77f
TT
130012019-01-09 Tom Tromey <tom@tromey.com>
13002
13003 * symtab.c (lookup_objfile_from_block)
13004 (find_pc_sect_compunit_symtab, search_symbols)
13005 (default_collect_symbol_completion_matches_break_on): Use
13006 objfile_compunits.
13007 * objfiles.h (ALL_COMPUNITS): Remove.
13008 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13009 * cp-support.c (add_symbol_overload_list_qualified): Use
13010 objfile_compunits.
13011 * ada-lang.c (ada_collect_symbol_completion_matches)
13012 (ada_add_global_exceptions): Use objfile_compunits.
13013
592553c4
TT
130142019-01-09 Tom Tromey <tom@tromey.com>
13015
13016 * source.c (select_source_symtab)
13017 (forget_cached_source_info_for_objfile): Remove declaration.
13018 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13019 declaration.
13020 * maint.c (count_symtabs_and_blocks): Remove declaration.
13021 * cp-support.c (add_symbol_overload_list_qualified): Remove
13022 declaration.
13023 * coffread.c (coff_symtab_read): Remove declaration.
13024 * symtab.c (lookup_symbol_in_objfile_symtabs)
13025 (basic_lookup_transparent_type_1): Use objfile_compunits.
13026 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13027 (info_sources_command, search_symbols)
13028 (default_collect_symbol_completion_matches_break_on)
13029 (make_source_files_completion_list): Remove declaration.
13030 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13031 (ada_collect_symbol_completion_matches)
13032 (ada_add_global_exceptions): Remove declaration.
13033 * linespec.c (iterate_over_all_matching_symtabs): Use
13034 objfile_compunits.
13035 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13036 (class objfile_compunits): New.
13037 (ALL_COMPUNITS): Use objfile_compunits.
13038 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13039 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13040 objfile_compunits.
13041 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13042
5325b9bf
TT
130432019-01-09 Tom Tromey <tom@tromey.com>
13044
13045 * symtab.c (search_symbols)
13046 (default_collect_symbol_completion_matches_break_on): Use
13047 objfile_msymbols.
13048 * ada-lang.c (ada_lookup_simple_minsym)
13049 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13050 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13051 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13052 objfile_msymbols.
13053 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13054 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13055 * objc-lang.c (find_methods): Use objfile_msymbols.
13056 (info_selectors_command, info_classes_command): Likewise.
13057 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13058 * objfiles.h (class objfile_msymbols): New.
13059 (ALL_OBJFILE_MSYMBOLS): Remove.
13060 (ALL_MSYMBOLS): Remove.
13061
cac85af2
TT
130622019-01-09 Tom Tromey <tom@tromey.com>
13063
13064 * common/next-iterator.h (next_adapter): Add Iterator template
13065 parameter.
13066 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13067 (class all_objfiles_safe): New.
13068 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13069 * objfiles.c (put_objfile_before): Update comment.
13070 (add_separate_debug_objfile): Likewise.
13071 (free_all_objfiles): Use all_objfiles_safe.
13072 (objfile_purge_solibs): Likewise.
13073
aed57c53
TT
130742019-01-09 Tom Tromey <tom@tromey.com>
13075
13076 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13077 (expand_symtab_containing_pc, lookup_static_symbol)
13078 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13079 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13080 all_objfiles.
13081 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13082 * breakpoint.c (create_overlay_event_breakpoint)
13083 (create_longjmp_master_breakpoint)
13084 (create_std_terminate_master_breakpoint)
13085 (create_exception_master_breakpoint): Use all_objfiles.
13086 * linux-thread-db.c (try_thread_db_load_from_pdir)
13087 (has_libpthread): Use all_objfiles.
13088 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13089 * linespec.c (iterate_over_all_matching_symtabs)
13090 (search_minsyms_for_name): Use all_objfiles.
13091 * maint.c (maintenance_info_sections): Use all_objfiles.
13092 * main.c (captured_main_1): Use all_objfiles.
13093 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13094 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13095 * guile/scm-pretty-print.c
13096 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13097 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13098 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13099 (maintenance_print_msymbols): Use all_objfiles.
13100 * source.c (select_source_symtab): Use all_objfiles.
13101 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13102 * symfile.c (remove_symbol_file_command)
13103 (expand_symtabs_matching, map_symbol_filenames): Use
13104 all_objfiles.
13105 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13106 all_objfiles.
13107 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13108 * objc-lang.c (find_methods): Use all_objfiles.
13109 * objfiles.c (have_partial_symbols, have_full_symbols)
13110 (have_minimal_symbols, qsort_cmp)
13111 (default_iterate_over_objfiles_in_search_order): Use
13112 all_objfiles.
13113 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13114 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13115 (maintenance_check_psymtabs): Use all_objfiles.
13116 (ALL_PSYMTABS): Remove.
13117 * compile/compile-object-run.c (do_module_cleanup): Use
13118 all_objfiles.
13119 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13120 * cp-support.c (add_symbol_overload_list_qualified): Use
13121 all_objfiles.
13122 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13123 Use all_objfiles.
13124 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13125 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13126 all_objfiles.
13127 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13128 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13129 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13130 Uses all_objfiles.
13131 * solib.c (solib_read_symbols): Use all_objfiles
13132
99d89cde
TT
131332019-01-09 Tom Tromey <tom@tromey.com>
13134
13135 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13136 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13137 all_objfiles.
13138 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13139 * symmisc.c (print_symbol_bcache_statistics)
13140 (print_objfile_statistics, maintenance_print_objfiles)
13141 (maintenance_info_symtabs, maintenance_check_symtabs)
13142 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13143 all_objfiles.
13144 * source.c (forget_cached_source_info): Use all_objfiles.
13145 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13146 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13147 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13148 * objfiles.c (update_section_map): Use all_objfiles.
13149 (shared_objfile_contains_address_p): Likewise.
13150 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13151 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13152
21708325
TT
131532019-01-09 Tom Tromey <tom@tromey.com>
13154
13155 * common/next-iterator.h: New file.
13156 * objfiles.h (class all_objfiles): New.
13157 (struct objfile_iterator): New.
13158
669e09f6
PW
131592019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13160
13161 * NEWS: Move the description of the changed "frame", "select-frame",
13162 and "info frame" commands to the Changed commands section.
13163
041be526
SM
131642019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13165
13166 * gdbtypes.c (check_stub_method_group): Remove handling of old
13167 mangling schemes.
13168 * linespec.c (find_methods): Likewise.
13169 * stabsread.c (read_member_functions): Likewise.
13170 * valops.c (search_struct_method): Likewise.
13171 (value_struct_elt_for_reference): Likewise.
13172 * NEWS: Mention this change.
13173
0e2a2133
AB
131742019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13175
13176 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13177 print_source_lines.
13178 * source.c (print_source_lines_base): Update line number check.
13179 (print_source_lines): New function.
13180 (source_lines_range::source_lines_range): New function.
13181 * source.h (class source_lines_range): New class.
13182 (print_source_lines): New declaration.
13183
1055a3b4
PW
131842019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13185
13186 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13187
cfeadda5
TT
131882019-01-08 Tom Tromey <tom@tromey.com>
13189 Simon Marchi <simon.marchi@ericsson.com>
13190
13191 PR gdb/24060
13192 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13193 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13194 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13195 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13196 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13197 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13198
583068ca
AB
131992019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13200
13201 * source.c (select_source_symtab): Move header comment to
13202 declaration in source.h.
13203 (forget_cached_source_info_for_objfile): Likewise.
13204 (forget_cached_source_info): Likewise.
13205 (identify_source_line): Likewise.
13206 * source.h (identify_source_line): Move declaration from symtab.h
13207 and add comment from source.c
13208 (print_source_lines): Likewise.
13209 (forget_cached_source_info_for_objfile): Likewise.
13210 (forget_cached_source_info): Likewise.
13211 (select_source_symtab): Likewise.
13212 (enum print_source_lines_flag): Move definition from symtab.h.
13213 * symtab.h (identify_source_line): Move declaration to source.h.
13214 (print_source_lines): Likewise.
13215 (forget_cached_source_info_for_objfile): Likewise.
13216 (forget_cached_source_info): Likewise.
13217 (select_source_symtab): Likewise.
13218 (enum print_source_lines_flag): Move definition to source.h.
13219 * tui/tui-hooks.c: Add 'source.h' include.
13220
ec98a4ad
AB
132212019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13222
13223 * source.c (print_source_lines_base): Handle requests to print
13224 reverse line number sequences, and guard against empty lines
13225 string.
13226
62ea19c1
AB
132272019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13228
13229 * source.c (print_source_lines_base): Fix skip of '\r' if next
13230 character is '\n'.
13231
9d30e1fd
TT
132322019-01-06 Tom Tromey <tom@tromey.com>
13233
13234 * c-exp.y (struct c_parse_state) <macro_original_text,
13235 expansion_obstack>: New member.
13236 (macro_original_text, expansion_obstack): Remove globals.
13237 (scan_macro_expansion, scanning_macro_expansion)
13238 (finished_macro_expansion): Update.
13239 (scan_macro_cleanup): Remove.
13240 (yylex, c_parse): Update.
13241
c65bac38
TT
132422019-01-06 Tom Tromey <tom@tromey.com>
13243
13244 * c-exp.y (struct c_parse_state) <strings>: New member.
13245 (operator_stoken): Update.
13246
02e12e38
TT
132472019-01-06 Tom Tromey <tom@tromey.com>
13248
13249 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13250 (union type_stack_elt) <typelist_val>: Now a pointer to
13251 std::vector.
13252 (type_stack_cleanup): Don't declare.
13253 (push_typelist): Update.
13254 * parse.c (pop_typelist): Return a std::vector.
13255 (push_typelist): Take a std::vector.
13256 (follow_types): Update. Do not free args.
13257 (type_stack_cleanup): Remove.
13258 * c-exp.y (struct c_parse_state): New.
13259 (cpstate): New global.
13260 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13261 (nonempty_typelist): Update.
13262 (func_mod): Create a new vector.
13263 (c_parse): Create a c_parse_state.
13264 (check_parameter_typelist): Do not delete params.
13265 (function_method): Update. Do not delete type_list.
13266
f097f5ad
TT
132672019-01-06 Tom Tromey <tom@tromey.com>
13268
13269 PR gdb/28155:
13270 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13271 check_typedef.
13272 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13273 (print_return_value): Likewise.
13274
d2adf9f1
TT
132752019-01-05 Tom Tromey <tom@tromey.com>
13276
13277 * contrib/cleanup_check.py: Remove.
13278 * contrib/gcc-with-excheck: Remove.
13279 * contrib/exsummary.py: Remove.
13280 * contrib/excheck.py: Remove.
13281
2eab46b1
JB
132822019-01-05 Joel Brobecker <brobecker@adacore.com>
13283
13284 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13285 NULL. Initialize tpprev to NULL instead of assigning it
13286 to NULL on the next statement.
13287 * windows-nat.c (windows_delete_thread): Remove check for
13288 main_thread_id before printing thread exit notifications.
13289 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13290 Remove thread ID check against main_thread_id.
13291 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13292 windows_delete_thread.
13293 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13294
48c5e7e2
TT
132952019-01-04 Tom Tromey <tom@tromey.com>
13296
13297 * compile/compile.c (_initialize_compile): Use upper case for
13298 metasyntactic variables.
13299 * symmisc.c (_initialize_symmisc): Use upper case for
13300 metasyntactic variables.
13301 * psymtab.c (_initialize_psymtab): Use upper case for
13302 metasyntactic variables.
13303 * demangle.c (demangle_command): Use upper case for metasyntactic
13304 variables.
13305 (_initialize_demangler): Likewise.
13306 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13307 variables.
13308
986041cd
TT
133092019-01-03 Tom Tromey <tom@tromey.com>
13310
13311 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13312
7c711119
TT
133132019-01-03 Tom Tromey <tom@tromey.com>
13314
13315 * python/py-symtab.c (salpy_str): Update.
13316 (struct salpy_sal_object) <symtab>: Now a PyObject.
13317 (salpy_dealloc): Update.
13318 (del_objfile_sal): Use gdbpy_ref.
13319
1b20edf0
TT
133202019-01-03 Tom Tromey <tom@tromey.com>
13321
13322 * python/py-type.c (convert_field): Use new_reference. Return
13323 gdbpy_ref.
13324 (make_fielditem): Return gdbpy_ref.
13325 (typy_fields): Update.
13326 (typy_getitem): Update.
13327 (field_name): Return gdbpy_ref. Use new_reference.
13328 (typy_iterator_iternext): Update.
13329
ea41325b
TT
133302019-01-03 Tom Tromey <tom@tromey.com>
13331
13332 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13333
2a3c71d6
TT
133342019-01-03 Tom Tromey <tom@tromey.com>
13335
13336 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13337 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13338 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13339 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13340 (pspy_set_type_printers): Likewise.
13341 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13342 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13343 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13344 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13345 (objfpy_set_type_printers): Likewise.
13346
5c329e6a
TT
133472019-01-03 Tom Tromey <tom@tromey.com>
13348
13349 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13350 (gdbpy_print_stack): Use gdbpy_err_fetch.
13351 * python/python-internal.h (class gdbpy_err_fetch): New class.
13352 (class gdbpy_enter) <m_error_type, m_error_value,
13353 m_error_traceback>: Remove.
13354 <m_error>: New member.
13355 (gdbpy_exception_to_string): Don't declare.
13356 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13357 * python/py-value.c (convert_value_from_python): Use
13358 gdbpy_err_fetch.
13359 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13360 gdbpy_exception_to_string.
13361 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13362 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13363 gdbpy_err_fetch.
13364
169bb27b
AB
133652019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13366
13367 * linux-nat.c (delete_lwp_cleanup): Delete.
13368 (struct lwp_deleter): New struct.
13369 (lwp_info_up): New typedef.
13370 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13371 lwp_info_up.
13372
a07c8880
AB
133732019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13374
13375 * linux-fork.c (class scoped_switch_fork_info): New class.
13376 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13377
26089c49
AB
133782019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13379
13380 * valops.c (find_overload_match): Remove use of null_cleanup, and
13381 calls to do_cleanups.
13382
06d3e5b0
AB
133832019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13384
13385 * compile/compile-cplus-types.c
13386 (compile_cplus_instance::decl_name): Handle changes to
13387 cp_func_name.
13388 * cp-support.c (cp_func_name): Update header comment, update
13389 return type.
13390 * cp-support.h (cp_func_name): Update return type in declaration.
13391 * valops.c (find_overload_match): Move temp_func local to top
13392 level of function and change its type. Use temp_func to hold and
13393 delete temporary string obtained from cp_func_name.
13394
66644cd3
AB
133952019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13396
13397 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13398 gdb::char_vector, remove cleanup, and update uses of `msg`.
13399
592d8c0a
JW
134002019-01-03 Jim Wilson <jimw@sifive.com>
13401
13402 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13403
c55d06ec
TT
134042019-01-02 Tom Tromey <tom@tromey.com>
13405
13406 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13407 (tdesc_parse_xml): Remove cleanups.
13408 * target-descriptions.h (make_cleanup_free_target_description):
13409 Don't declare.
13410 (target_desc_deleter): New struct.
13411 (target_desc_up): New typedef.
13412 * target-descriptions.c (target_desc_deleter::operator()): Rename
13413 from free_target_description.
13414 (make_cleanup_free_target_description): Remove.
13415
3a6ae42d
TT
134162019-01-02 Tom Tromey <tom@tromey.com>
13417
13418 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
13419 constructor, destructor.
13420 (linespec_parser): Remove typedef.
13421 (~linespec_parser): Rename from linespec_parser_delete.
13422 (linespec_lex_to_end, linespec_complete_label)
13423 (linespec_complete): Update.
13424 (decode_line_full): Remove cleanups.
13425 (decode_line_1): Update.
13426
61fd3e73
TT
134272019-01-02 Tom Tromey <tom@tromey.com>
13428
13429 * python/python-internal.h (inferior_to_inferior_object): Change
13430 return type.
13431 * python/py-exitedevent.c (create_exited_event_object): Update.
13432 * python/py-inferior.c (inferior_to_inferior_object): Return
13433 gdbpy_ref.
13434 (python_new_inferior, python_inferior_deleted)
13435 (thread_to_thread_object, delete_thread_object)
13436 (build_inferior_list, gdbpy_selected_inferior): Update.
13437 * python/py-infthread.c (create_thread_object): Update. Also fail
13438 if inferior_to_inferior_object fails.
13439
d20172fc
SM
134402019-01-02 Simon Marchi <simon.marchi@ericsson.com>
13441
13442 * inferior.h (class inferior) <displaced_step_state>: New field.
13443 * infrun.h (struct displaced_step_state): Move here from
13444 infrun.c. Initialize fields, add constructor.
13445 <inf>: Remove field.
13446 <reset>: New method.
13447 * infrun.c (struct displaced_step_inferior_state): Move to
13448 infrun.h.
13449 (displaced_step_inferior_states): Remove.
13450 (get_displaced_stepping_state): Adust.
13451 (displaced_step_in_progress_any_inferior): Adjust.
13452 (displaced_step_in_progress_thread): Adjust.
13453 (displaced_step_in_progress): Adjust.
13454 (add_displaced_stepping_state): Remove.
13455 (get_displaced_step_closure_by_addr): Adjust.
13456 (remove_displaced_stepping_state): Remove.
13457 (infrun_inferior_exit): Call displaced_step_state.reset.
13458 (use_displaced_stepping): Don't check for NULL.
13459 (displaced_step_prepare_throw): Call
13460 get_displaced_stepping_state.
13461 (displaced_step_fixup): Don't check for NULL.
13462 (prepare_for_detach): Don't check for NULL.
13463
e3319240
PW
134642019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13465
13466 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13467 in case of call that did not complete.
13468
5d36dfb9
AU
134692019-01-02 Andrey Utkin <autkin@undo.io>
13470
13471 * symfile.c (find_separate_debug_file): Fix search of debug files for
13472 remote debuggee.
13473
8833fbf0
TT
134742019-01-02 Tom Tromey <tom@tromey.com>
13475
13476 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13477 indentation.
13478 * python/py-frame.c (frapy_older): Remove cast.
13479 (frapy_newer): Likewise.
13480 * python/py-breakpoint.c (local_setattro): Remove cast.
13481 * python/py-arch.c (archpy_name): Remove local variable.
13482 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13483
4ada3dfd
JB
134842019-01-02 Joel Brobecker <brobecker@adacore.com>
13485
13486 * unittests/basic_string_view/element_access/char/empty.cc:
13487 Fix year range in copyright header.
13488
113b7b81
AB
134892019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13490
13491 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13492 Delete.
13493 <operator==>: Update with for removed field.
13494 <hash>: Likewise.
13495 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13496 <isa_features>: ...this.
13497 <abi_features>: New field.
13498 (riscv_isa_flen): Update comment.
13499 (riscv_abi_xlen): New declaration.
13500 (riscv_abi_flen): New declaration.
13501 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13502 isa_features.
13503 (riscv_abi_xlen): New function.
13504 (riscv_isa_flen): Update to get answer from isa_features.
13505 (riscv_abi_flen): New function.
13506 (riscv_has_fp_abi): Update to get answer from abi_features.
13507 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13508 xlen and flen.
13509 (riscv_call_info) <xlen, flen>: Update comment.
13510 (riscv_call_arg_struct): Remove invalid assertions
13511 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13512 is removed.
13513 (riscv_gdbarch_init): Gather isa features and abi features
13514 separately, ensure both match on the gdbarch when reusing an old
13515 gdbarch. Relax an error check to allow 32-bit abi float to run on
13516 a target with 64-bit float hardware.
13517
b18ca514
PW
135182019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13519
13520 * source.c (search_command_helper): Stop reverse search
13521 when line 1 has been searched.
13522
ec70d8db
PW
135232019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13524
13525 * record-full.c (record_full_base_target::close): Rewrite
13526 record_full_core_buf_list free logic.
13527
5b38f9c1
PW
135282019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13529
13530 * break-catch-syscall.c (print_one_catch_syscall): xfree
13531 the last text.
13532
66d91b39
JB
135332019-01-01 Joel Brobecker <brobecker@adacore.com>
13534
13535 * top.c (print_gdb_version): Update Copyright year in version
13536 message.
13537
42a4f53d
JB
135382019-01-01 Joel Brobecker <brobecker@adacore.com>
13539
13540 Update copyright year range in all GDB files.
13541
7e955d83 135422019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 13543
5bbd631d 13544 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 13545
5bbd631d 13546For older changes see ChangeLog-2018.
c906108c
SS
13547\f
13548Local Variables:
13549mode: change-log
13550left-margin: 8
13551fill-column: 74
13552version-control: never
57da7796 13553coding: utf-8
c906108c 13554End:
5bbd631d 13555
This page took 2.972314 seconds and 4 git commands to generate.