Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
179aed7f
AB
12019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
4 cp_search_name_hash.
5 * NEWS: Add entry about nested function support.
6
0a4b0913
AB
72019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
8 Andrew Burgess <andrew.burgess@embecosm.com>
9
10 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
11 for nested static variables when searchin VAR_DOMAIN.
12 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
13 global scope, update comment.
14 (add_partial_subprogram): Call add_partial_subprogram recursively
15 for nested subroutines when processinng Fortran.
16 (load_partial_dies): Process the child entities of a subprogram
17 when processing Fortran.
18 (partial_die_parent_scope): Handle building scope
19 for Fortran nested functions.
20 (process_die): Record that nested functions have a scope.
21 (new_symbol): Always record Fortran subprograms on the global
22 symbol list.
23 (determine_prefix): How to build the prefix for Fortran
24 subprograms.
25
d8c06f22
AB
262019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
27
28 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
29 have just sent the thread a SIGSTOP and are waiting for it to
30 arrive.
31
a8b3b8e9
AB
322019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
33
34 * btrace.c (btrace_add_pc): Remove whitespace before the template
35 parameter in 'std::vector <...>'.
36 (parse_xml_btrace_block): Likewise.
37 (btrace_maint_decode_pt): Likewise.
38 (btrace_maint_update_packets): Likewise.
39 (btrace_maint_print_packets): Likewise.
40 * btrace.h (struct btrace_maint_info): Likewise.
41 * dwarf2read.c (struct type_unit_group): Likewise.
42 (build_type_psymtabs_reader): Likewise.
43 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
44 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
45 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
46
4d825eab
TV
472019-10-03 Tom de Vries <tdevries@suse.de>
48
49 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
50 the first line of the help text for set/show style metadata.
51
80fd2826
TT
522019-10-02 Tom Tromey <tromey@adacore.com>
53
54 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
55 * gdbsupport/common-inferior.c: New file.
56 * infcmd.c (startup_with_shell): Don't define.
57 * nat/fork-inferior.h (startup_with_shell): Don't declare.
58 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
59 * inferior.h (startup_with_shell): Don't declare.
60
70054538
CB
612019-10-02 Christian Biesinger <cbiesinger@google.com>
62
63 * gdbsupport/gdb_assert.h: Include errors.h.
64 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
65
37f6a7f4
TT
662019-10-02 Tom Tromey <tromey@adacore.com>
67
68 * NEWS: Add $_ada_exception entry.
69 * ada-lang.c (struct ada_catchpoint): Add constructor.
70 <m_kind>: New member.
71 (allocate_location_exception, re_set_exception): Remove
72 "ex" parameter.
73 (should_stop_exception): Compute $_ada_exception.
74 (check_status_exception, print_it_exception)
75 (print_one_exception, print_mention_exception): Remove
76 "ex" parameter.
77 (allocate_location_catch_exception, re_set_catch_exception)
78 (check_status_exception, print_it_catch_exception)
79 (print_one_catch_exception, print_mention_catch_exception)
80 (print_recreate_catch_exception)
81 (allocate_location_catch_exception_unhandled)
82 (re_set_catch_exception_unhandled)
83 (check_status_exception, print_it_catch_exception_unhandled)
84 (print_one_catch_exception_unhandled)
85 (print_mention_catch_exception_unhandled)
86 (print_recreate_catch_exception_unhandled)
87 (allocate_location_catch_assert, re_set_catch_assert)
88 (check_status_assert, print_it_catch_assert)
89 (print_one_catch_assert, print_mention_catch_assert)
90 (print_recreate_catch_assert)
91 (allocate_location_catch_handlers, re_set_catch_handlers)
92 (check_status_handlers, print_it_catch_handlers)
93 (print_one_catch_handlers, print_mention_catch_handlers)
94 (print_recreate_catch_handlers): Remove.
95 (create_ada_exception_catchpoint): Update.
96 (initialize_ada_catchpoint_ops): Update.
97
fccf9de1
TT
982019-10-02 Tom Tromey <tromey@adacore.com>
99
100 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
101 (create_excep_cond_exprs): Simplify exception string computation.
102 (ada_exception_catchpoint_cond_string): Likewise.
103
4b610737
TT
1042019-10-02 Tom Tromey <tromey@adacore.com>
105
106 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
107 * ada-lang.c (lesseq_defined_than): Handle
108 LOC_STATIC.
109 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
110 parameter.
111 (dwarf2_has_info): Likewise.
112 (new_symbol): Set maybe_copied on symbol when
113 appropriate.
114 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
115 parameter.
116 <can_copy>: New member.
117 * elfread.c (record_minimal_symbol): Set maybe_copied
118 on symbol when appropriate.
119 (elf_symfile_read): Update call to dwarf2_has_info.
120 * minsyms.c (lookup_minimal_symbol_linkage): New
121 function.
122 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
123 * symtab.c (get_symbol_address, get_msymbol_address):
124 New functions.
125 * symtab.h (get_symbol_address, get_msymbol_address):
126 Declare.
127 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
128 maybe_copied.
129 (struct symbol, struct minimal_symbol) <maybe_copied>:
130 New member.
131
1dd58850
TT
1322019-10-02 Tom Tromey <tromey@adacore.com>
133
134 * source.c (struct current_source_location): New.
135 (current_source_key): New global.
136 (current_source_symtab, current_source_line)
137 (current_source_pspace): Remove.
138 (get_source_location): New function.
139 (get_current_source_symtab_and_line)
140 (set_default_source_symtab_and_line)
141 (set_current_source_symtab_and_line)
142 (clear_current_source_symtab_and_line, select_source_symtab)
143 (info_source_command, print_source_lines_base)
144 (info_line_command, search_command_helper, _initialize_source):
145 Update.
146
5c281dbb
TT
1472019-10-02 Tom Tromey <tromey@adacore.com>
148
149 * source.c (select_source_symtab): Don't call
150 decode_line_with_current_source.
151
d3d32391
AB
1522019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
153
154 * symtab.c (lookup_global_symbol): Search global block.
155
38583298
TT
1562019-10-02 Tom Tromey <tromey@adacore.com>
157
158 * coffread.c (process_coff_symbol): Update.
159 * dwarf2read.c (var_decode_location, new_symbol): Update.
160 * mdebugread.c (parse_symbol): Update.
161 * objfiles.c (relocate_one_symbol): Update.
162 * stabsread.c (define_symbol, fix_common_block)
163 (scan_file_globals): Update.
164 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
165 (SET_SYMBOL_VALUE_ADDRESS): New macro.
166 * xcoffread.c (process_xcoff_symbol): Update.
167
9344c18f
AA
1682019-10-02 Andreas Arnez <arnez@linux.ibm.com>
169
170 * MAINTAINERS: Update my email address.
171
df07e2c7
AB
1722019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
173
174 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
175 std::vector.
176 (build_type_psymtabs_reader): Update for std::vector.
177 (build_type_psymtab_dependencies): Likewise.
178 * dwarf2read.h: Remove use of DEF_VEC_P.
179 (typedef sig_type_ptr): Delete.
180
554ac434
AB
1812019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
182
183 * btrace.c (btrace_maint_clear): Update to handle change from VEC
184 to std::vector.
185 (btrace_maint_decode_pt): Likewise, and move allocation of the
186 vector outside of the loop.
187 (btrace_maint_update_packets): Update to handle change from VEC to
188 std::vector.
189 (btrace_maint_print_packets): Likewise.
190 (maint_info_btrace_cmd): Likewise.
191 * btrace.h: Remove use of DEF_VEC_O.
192 (typedef btrace_pt_packet_s): Delete.
193 (struct btrace_maint_info) <packets>: Change fromm VEC to
194 std::vector.
195 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
196
46f29a9a
AB
1972019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
198
199 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
200 make accesses into the vector constant references.
201 (btrace_add_pc): Update for std::vector.
202 (btrace_stitch_bts): Likewise.
203 (parse_xml_btrace_block): Likewise.
204 (btrace_maint_update_packets): Likewise.
205 (btrace_maint_print_packets): Likewise.
206 (maint_info_btrace_cmd): Likewise.
207 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
208 std::vector.
209 (btrace_data::empty): Likewise.
210 (btrace_data_append): Likewise.
211 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
212 (typedef btrace_block_s): Delete.
213 (struct btrace_block): Add constructor.
214 (struct btrace_data_bts) <blocks>: Change to std::vector.
215 * nat/linux-btrace.c (perf_event_read_bts): Update for
216 std::vector.
217 (linux_read_bts): Likewise.
218
d770d56f
TT
2192019-10-01 Tom Tromey <tom@tromey.com>
220
221 * cli/cli-logging.c (show_logging_filename): Use styled_string.
222
9d636d67
TT
2232019-10-01 Tom Tromey <tom@tromey.com>
224
225 * stack.c (print_frame, info_frame_command_core): Use
226 styled_string.
227 * linux-thread-db.c (try_thread_db_load_1)
228 (try_thread_db_load_from_pdir_1): Use styled_string.
229 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
230 (auto_load_section_scripts, info_auto_load_local_gdbinit)
231 (maybe_print_unsupported_script_warning)
232 (maybe_print_script_not_found_warning): Use styled_string.
233 * ada-lang.c (user_select_syms): Use styled_string.
234
7f6aba03
TT
2352019-10-01 Tom Tromey <tom@tromey.com>
236
237 * p-lang.c (pascal_printstr): Use metadata style.
238 * value.c (show_convenience): Use metadata style.
239 * valprint.c (valprint_check_validity, val_print_optimized_out)
240 (val_print_not_saved, val_print_unavailable)
241 (val_print_invalid_address, generic_val_print, val_print)
242 (value_check_printable, val_print_array_elements): Use metadata
243 style.
244 * ui-out.h (class ui_out) <field_fmt>: New overload.
245 <do_field_fmt>: Add style parameter.
246 * ui-out.c (ui_out::field_fmt): New overload.
247 * typeprint.c (type_print_unknown_return_type)
248 (val_print_not_allocated, val_print_not_associated): Use metadata
249 style.
250 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
251 parameter.
252 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
253 * tracepoint.c (tvariables_info_1): Use metadata style.
254 * stack.c (print_frame_arg, print_frame_info, print_frame)
255 (info_frame_command_core): Use metadata style.
256 * skip.c (info_skip_command): Use metadata style.
257 * rust-lang.c (rust_print_enum): Use metadata style.
258 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
259 metadata style.
260 * python/py-framefilter.c (py_print_single_arg): Use metadata
261 style.
262 * printcmd.c (do_one_display, print_variable_and_value): Use
263 metadata style.
264 * p-valprint.c (pascal_val_print)
265 (pascal_object_print_value_fields): Use metadata style.
266 * p-typeprint.c (pascal_type_print_base): Use metadata style.
267 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
268 parameter.
269 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
270 * m2-valprint.c (m2_print_long_set): Use metadata style.
271 * m2-typeprint.c (m2_print_type): Use metadata style.
272 * infcmd.c (print_return_value_1): Use metadata style.
273 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
274 * f-valprint.c (info_common_command_for_block): Use metadata
275 style.
276 * f-typeprint.c (f_type_print_base): Use metadata style.
277 * expprint.c (print_subexp_standard): Use metadata style.
278 * cp-valprint.c (cp_print_value_fields): Use metadata style.
279 * cli/cli-style.h (class cli_style_option): Add constructor.
280 (metadata_style): Declare.
281 * cli/cli-style.c (metadata_style): New global.
282 (_initialize_cli_style): Register metadata style.
283 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
284 parameter.
285 * cli-out.c (cli_ui_out::do_field_fmt): Update.
286 * c-typeprint.c (c_type_print_base_struct_union)
287 (c_type_print_base_1): Use metadata style.
288 * breakpoint.c (watchpoint_value_print)
289 (print_one_breakpoint_location): Use metadata style.
290 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
291 style.
292 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
293 style.
294 * ada-valprint.c (val_print_packed_array_elements, printstr)
295 (print_field_values, ada_val_print_ref, ada_val_print): Use
296 metadata style.
297 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
298 style.
299 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
300 style.
301 * ada-lang.c (user_select_syms): Use metadata style.
302
14309bb6
TT
3032019-10-01 Tom Tromey <tom@tromey.com>
304
305 * cli/cli-cmds.c (pwd_command): Style output.
306
6a831f06
PA
3072019-10-01 Pedro Alves <palves@redhat.com>
308 Tom Tromey <tom@tromey.com>
309
310 * symtab.c (print_symbol_info): Use %ps.
311 (print_msymbol_info): Use %ps.
312 * symfile.c (symbol_file_add_with_addrs): Use %ps.
313 * printcmd.c (print_variable_and_value): Use %ps.
314 * macrocmd.c (show_pp_source_pos): Use %ps.
315 * infrun.c (print_exited_reason): Use ui_out::message.
316 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
317 (describe_other_breakpoints): Use ui_out::message and new
318 formats.
319 (say_where): Use new formats.
320 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
321 and new formats.
322
2a3c1174
PA
3232019-10-01 Pedro Alves <palves@redhat.com>
324 Tom Tromey <tom@tromey.com>
325
326 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
327 (test_gdb_formats): New function.
328 (run_tests): Call it.
329 (test_format_specifier): Update.
330 * utils.h (fputs_filtered): Update comment.
331 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
332 (fputs_styled_unfiltered): Declare.
333 * utils.c (fputs_styled_unfiltered): New function.
334 (vfprintf_maybe_filtered): Add gdbfmt parameter.
335 (vfprintf_filtered): Update.
336 (vfprintf_unfiltered, vprintf_filtered): Update.
337 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
338 * ui-out.h (enum ui_out_flag) <unfiltered_output,
339 disallow_ui_out_field>: New constants.
340 (enum class field_kind): New.
341 (struct base_field_s, struct signed_field_s): New.
342 (signed_field): New function.
343 (struct string_field_s): New.
344 (string_field): New function.
345 (struct styled_string_s): New.
346 (styled_string): New function.
347 (class ui_out) <message>: Add comment.
348 <vmessage, call_do_message>: New methods.
349 <do_message>: Add style parameter.
350 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
351 methods.
352 (ui_out::message): Rewrite.
353 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
354 parameter.
355 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
356 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
357 gdb_extensions parameter.
358 (class format_piece): Add parameter to constructor.
359 (n_int_args): New field.
360 * gdbsupport/format.c (format_pieces::format_pieces): Add
361 gdb_extensions parameter. Handle '*'.
362 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
363 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
364 vfprintf_styled_no_gdbfmt.
365 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
366 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
367 unfiltered output.
368 * ui-style.h (struct ui_file_style) <ptr>: New method.
369
0dfe5bfb
TT
3702019-10-01 Tom Tromey <tom@tromey.com>
371
372 * unittests/format_pieces-selftests.c: Update. Add final format.
373 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
374 empty literal pieces.
375
e43b10e1
TT
3762019-10-01 Tom Tromey <tom@tromey.com>
377
378 * ui-out.h (enum class ui_out_style_kind): Remove.
379 (class ui_out) <field_string, field_stsream, do_field_string>:
380 Change type of "style".
381 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
382 (ui_out::field_string): Update.
383 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
384 of "style".
385 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
386 * tracepoint.c (print_one_static_tracepoint_marker): Update.
387 * stack.c (print_frame_arg, print_frame_info, print_frame):
388 Update.
389 * source.c (print_source_lines_base): Update.
390 * solib.c (info_sharedlibrary_command): Update.
391 * skip.c (info_skip_command): Update.
392 * record-btrace.c (btrace_call_history_src_line)
393 (btrace_call_history): Update.
394 * python/py-framefilter.c (py_print_frame): Update.
395 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
396 "style".
397 * mi/mi-out.c (mi_ui_out::do_table_header)
398 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
399 (mi_ui_out::do_field_string): Update.
400 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
401 Update.
402 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
403 "style".
404 * cli-out.c (cli_ui_out::do_table_header)
405 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
406 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
407 (cli_ui_out::do_field_fmt): Update.
408 * breakpoint.c (print_breakpoint_location): Update.
409 (update_static_tracepoint): Update.
410
cd7c32c3
PW
4112019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
412
413 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
414 conversion of gdb_datadir.
415 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
416 remove not needed c_str ().
417
8fe0f950
AT
4182019-09-30 Ali Tamur <tamur@google.com>
419
420 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
421 (dwarf2_string_attr): Likewise.
422
5f48f8f3
AT
4232019-09-30 Ali Tamur <tamur@google.com>
424
425 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
426 (process_full_type_unit): Likewise.
427 (dump_die_shallow): Likewise.
428 (cu_debug_loc_section): Likewise.
429
6fb08628
CB
4302019-09-28 Christian Biesinger <cbiesinger@google.com>
431
432 * minsyms.c (compare_minimal_symbols): Rename to...
433 (minimal_symbol_is_less_than): ...this, and adjust to STL
434 conventions (return bool, take arguments as references)
435 (minimal_symbol_reader::install): Call std::sort instead
436 of qsort.
437
c7ee338a
CB
4382019-09-29 Christian Biesinger <cbiesinger@google.com>
439
440 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
441 hash and why.
442 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
443 msymbol_hash, msymbol_demangled_hash>: Improve comments.
444
703a86c2
SM
4452019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
446
447 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
448 * psympriv.h (add_psymbol_to_list): Move comment here and update
449 it.
450
0df0352a
TV
4512019-09-29 Tom de Vries <tdevries@suse.de>
452
453 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
454 Use $tmpdir/$(basename "$output_file").dwz instead of
455 "${output_file}.dwz".
456
ad75efa6
SM
4572019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
458
459 PR gdb/25045
460 * hppa-linux-nat.c: Include gdbarch.h.
461
ececd218
CB
4622019-09-26 Christian Biesinger <cbiesinger@google.com>
463
464 * blockframe.c (find_pc_partial_function): Change return type to bool.
465 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
466 * minsyms.c (in_gnu_ifunc_stub): Likewise.
467 (stub_gnu_ifunc_resolve_name): Likewise.
468 * symtab.c (compare_filenames_for_search): Likewise.
469 (compare_glob_filenames_for_search): Likewise.
470 (matching_obj_sections): Likewise.
471 (symbol_matches_domain): Likewise.
472 (find_line_symtab): Change out param EXACT_MATCH to bool *.
473 (find_line_pc): Change return type to bool.
474 (find_line_pc_range): Likewise.
475 (producer_is_realview): Likewise.
476 * symtab.h (symbol_matches_domain): Likewise.
477 (find_pc_partial_function): Likewise.
478 (find_pc_line_pc_range): Likewise.
479 (in_gnu_ifunc_stub): Likewise.
480 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
481 (find_line_pc): Likewise.
482 (find_line_pc_range): Likewise.
483 (matching_obj_sections): Likewise.
484 (find_line_symtab): Change out parameter to bool.
485 (producer_is_realview): Change return type to bool.
486 (compare_filenames_for_search): Likewise.
487 (compare_glob_filenames_for_search): Likewise.
488
27a900b8
TT
4892019-09-26 Tom Tromey <tom@tromey.com>
490
491 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
492 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
493 * gdb_usleep.h: Remove.
494 * gdb_usleep.c: Remove.
495 * utils.c: Don't include gdb_usleep.h.
496
5d63b30a
TT
4972019-09-26 Tom Tromey <tromey@adacore.com>
498
499 * python/py-type.c (type_to_type_object): Call check_typedef
500 for stub types.
501
12904d37
TT
5022019-09-26 Tom Tromey <tom@tromey.com>
503
504 * utils.h (initialize_utils): Don't declare.
505 * top.c (gdb_init): Don't call initialize_utils.
506 * utils.c (initialize_utils): Remove. Move contents...
507 (_initialize_utils): ... here.
508
858f25f0
TT
5092019-09-25 Tom Tromey <tom@tromey.com>
510
511 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
512 * utils.h (make_hex_string): Don't declare.
513 * utils.c (make_hex_string): Remove.
514
3d435220
TV
5152019-09-24 Tom de Vries <tdevries@suse.de>
516
517 PR gdb/23815
518 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
519 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
520
ddd44b70
DD
5212019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
522
523 * NEWS: Mention new simulator port for PRU.
524
f945dedf
CB
5252019-09-23 Christian Biesinger <cbiesinger@google.com>
526
527 * ada-exp.y (write_object_remaining): Update.
528 * ada-lang.c (ada_decode): Return a std::string instead of a char*
529 and eliminate the static buffer.
530 (ada_decode_symbol): Update.
531 (ada_la_decode): Update.
532 (ada_sniff_from_mangled_name): Update.
533 (is_valid_name_for_wild_match): Update.
534 (ada_lookup_name_info::matches): Update and simplify.
535 (name_matches_regex): Update.
536 (ada_add_global_exceptions): Update.
537 * ada-lang.h (ada_decode): Update signature.
538 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
539 * dwarf-index-write.c (debug_names::insert): Update.
540
7ab78ccb
SM
5412019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
542
543 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
544 formatting.
545
9252448b
SM
5462019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
547
548 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
549 Change "nonzero" to "true" in documentation.
550
626ca2c0
CB
5512019-09-20 Christian Biesinger <cbiesinger@google.com>
552
553 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
554 (_initialize_darwin_solib): Don't set
555 darwin_so_ops.lookup_lib_global_symbol.
556 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
557 set_gdbarch_iterate_over_objfiles_in_search_order.
558 (elf_lookup_lib_symbol): Rename to...
559 (svr4_iterate_over_objfiles_in_search_order): this, and update
560 to iterate semantics.
561 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
562 * solib.c (solib_global_lookup): Remove.
563 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
564 (solib_global_lookup): Remove.
565 * symtab.c (lookup_global_or_static_symbol): Remove call to
566 solib_global_lookup.
567
5a3a0d63
JB
5682019-09-20 Joel Brobecker <brobecker@adacore.com>
569
570 * NEWS: Move entries about default MI version now being
571 version 3, and about the GDB/MI fix for multi-location
572 breakpoints to the "since GDB 8.3" section.
573
ffea1427
JB
5742019-09-20 Joel Brobecker <brobecker@adacore.com>
575
576 GDB 8.3.1 released.
577
abf516c6
UW
5782019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
579
580 * NEWS: Mention that Cell/B.E. debugging support was removed.
581 * MAINTAINERS: Remove spu target.
582
583 * config/djgpp/fnchange.lst: Remove entries for removed files.
584
585 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
586 spu-multiarch.o, and spu-tdep.o.
587 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
588 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
589 spu-multiarch.c, and spu-tdep.c.
590 * spu-linux-nat.c: Remove file.
591 * spu-multiarch.c: Remove file.
592 * spu-tdep.c: Remove file.
593 * spu-tdep.h: Remove file.
594 * solib-spu.c: Remove file.
595 * solib-spu.h: Remove file.
596
597 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
598 * configure.nat (spu-linux): Remove.
599 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
600 solib-multiarch.o from gdb_target_obs.
601 (spu*-*-*): Remove.
602
603 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
604 feature flag.
605 (ppc_linux_no_features): Update.
606 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
607 Cell/B.E. support.
608 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
609 (tdesc_powerpc_cell64l): Likewise.
610 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
611 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
612 Cell/B.E. support.
613 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
614 Do not include "features/rs6000/powerpc-cell32l.c" or
615 "features/rs6000/powerpc-cell64l.c".
616 (ppc_linux_spu_section): Remove.
617 (ppc_linux_core_read_description): Remove Cell/B.E. support.
618 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
619 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
620 (ppc_linux_spe_context_lookup): Remove.
621 (ppc_linux_spe_context_inferior_created): Remove.
622 (ppc_linux_spe_context_solib_loaded): Remove.
623 (ppc_linux_spe_context_solib_unloaded): Remove.
624 (ppc_linux_spe_context): Remove.
625 (struct ppu2spu_cache): Remove.
626 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
627 (struct ppu2spu_data): Remove.
628 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
629 ppu2spu_unwind): Remove.
630 (ppc_linux_init_abi): Remove Cell/B.E. support.
631 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
632
633 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
634 (rs6000/powerpc-cell64l-expedite): Likewise
635 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
636 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
637 rs6000/powerpc-cell64l.xml.
638 * features/rs6000/powerpc-cell32l.xml: Remove.
639 * features/rs6000/powerpc-cell64l.xml: Likewise.
640 * features/rs6000/powerpc-cell32l.c: Remove generated file.
641 * features/rs6000/powerpc-cell64l.c: Likewise.
642 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
643 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
644 * regformats/reg-spu.dat: Remove.
645
646 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
647 * corelow.c (struct spuid_list): Remove.
648 (add_to_spuid_list): Remove.
649 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
650 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
651 (remote_protocol_features): Remove associated entries.
652 (_initialize_remote): No longer initialize them.
653 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
654 * linux-nat.c (SPUFS_MAGIC): Remove.
655 (linux_proc_xfer_spu): Remove.
656 (spu_enumerate_spu_ids): Remove.
657 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
658 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
659 (linux_make_corefile_notes): No longer call it.
660
661 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
662 (cooked_write_test): Likewise.
663
78e8cb91
TT
6642019-09-20 Tom Tromey <tom@tromey.com>
665
666 * NEWS: Mention case-sensitivity of TUI commands.
667 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
668 (tui_set_win_height_command, parse_scrolling_args): Likewise.
669 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
670
f074b67e
TT
6712019-09-20 Tom Tromey <tom@tromey.com>
672
673 * tui/tui-source.c (tui_source_window::set_contents): Use
674 make_unique_xstrdup.
675 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
676 make_unique_xstrdup.
677
63c4bf19
TT
6782019-09-20 Tom Tromey <tom@tromey.com>
679
680 * tui/tui-data.c: Remove separator comments.
681 * tui/tui-layout.c: Remove separator comments.
682 * tui/tui-win.c: Remove separator comments.
683 * tui/tui-wingeneral.c: Remove separator comments.
684
43df9b2f
TT
6852019-09-20 Tom Tromey <tom@tromey.com>
686
687 * tui/tui.h (strcat_to_buf): Don't declare.
688 * tui/tui.c (strcat_to_buf): Remove.
689
7226433c
TT
6902019-09-20 Tom Tromey <tom@tromey.com>
691
692 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
693 from "fullname".
694 * tui/tui-source.c (tui_source_window::set_contents)
695 (tui_source_window::location_matches_p)
696 (tui_source_window::maybe_update): Update.
697
80df3337
TT
6982019-09-20 Tom Tromey <tom@tromey.com>
699
700 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
701 Update.
702 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
703 prefix.
704 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
705 (tui_data_window::line_from_reg_element_no)
706 (tui_data_window::first_reg_element_no_inline)
707 (tui_data_window::show_registers)
708 (tui_data_window::show_register_group)
709 (tui_data_window::display_registers_from)
710 (tui_data_window::display_registers_from_line)
711 (tui_data_window::first_data_item_displayed)
712 (tui_data_window::delete_data_content_windows)
713 (tui_data_window::erase_data_content)
714 (tui_data_window::do_scroll_vertical)
715 (tui_data_window::refresh_window)
716 (tui_data_window::check_register_values): Update.
717
9923f347
TT
7182019-09-20 Tom Tromey <tom@tromey.com>
719
720 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
721 (struct tui_locator_window) <full_name, proc_name>: Now
722 std::string.
723 * tui/tui-stack.c (tui_locator_window::make_status_line)
724 (tui_locator_window::set_locator_fullname)
725 (tui_locator_window::set_locator_info): Update.
726 * tui/tui-source.c (tui_source_window::set_contents)
727 (tui_source_window::showing_source_p): Update.
728
b76251ab
TT
7292019-09-20 Tom Tromey <tom@tromey.com>
730
731 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
732 Don't call tui_locator_win_info_ptr.
733
0891be08
TT
7342019-09-20 Tom Tromey <tom@tromey.com>
735
736 * tui/tui-win.c (tui_resize_all): Don't call refresh.
737
1b935acf
TT
7382019-09-20 Tom Tromey <tom@tromey.com>
739
740 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
741 height for locator.
742 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
743 * tui/tui-layout.c (show_source_disasm_command, show_data)
744 (show_source_or_disasm_and_command): Use 1 as height for locator.
745
9abd8a65
TT
7462019-09-20 Tom Tromey <tom@tromey.com>
747
748 * tui/tui.c (tui_enable): Update.
749 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
750 Update.
751 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
752 Update.
753 * tui/tui-data.c (win_resized): Now bool.
754 (tui_win_resized): Return bool.
755 (tui_set_win_resized_to): Accept a bool.
756
b5457826
TT
7572019-09-20 Tom Tromey <tom@tromey.com>
758
759 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
760 Change type of "refresh_values_only".
761 * tui/tui-regs.c (tui_data_window::show_register_group): Change
762 type of "refresh_values_only".
763
6b915f7d
TT
7642019-09-20 Tom Tromey <tom@tromey.com>
765
766 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
767 std::string.
768 (tui_disassemble): Add "pos" parameter.
769 (tui_disasm_window::set_contents): Simplify.
770
2ad52f6f
TT
7712019-09-20 Tom Tromey <tom@tromey.com>
772
773 * tui/tui-winsource.h (struct tui_source_window_base)
774 <show_source_content>: Now private.
775 * tui/tui-winsource.c
776 (tui_source_window_base::show_source_content): Don't handle empty
777 content case.
778
b3b1bde6
TT
7792019-09-20 Tom Tromey <tom@tromey.com>
780
781 * tui/tui-layout.c (show_source_disasm_command)
782 (show_source_or_disasm_and_command): Don't call
783 show_source_content.
784
71a25ed2
TT
7852019-09-20 Tom Tromey <tom@tromey.com>
786
787 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
788 Declare.
789 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
790 from tui_make_status_line.
791 (tui_locator_window::rerender): Update.
792
f8532154
TT
7932019-09-20 Tom Tromey <tom@tromey.com>
794
795 * tui/tui-stack.c (tui_make_status_line): Return std::string.
796 (tui_locator_window::rerender): Update.
797
2d81b349
TT
7982019-09-20 Tom Tromey <tom@tromey.com>
799
800 * tui/tui-winsource.h (struct tui_source_window_base)
801 <~tui_source_window_base>: Don't declare.
802 <fullname>: Remove.
803 * tui/tui-winsource.c (~tui_source_window_base): Remove.
804 * tui/tui-source.h (struct tui_source_window) <fullname>: New
805 member.
806 * tui/tui-source.c (tui_source_window::set_contents): Update.
807 (tui_source_window::location_matches_p)
808 (tui_source_window::maybe_update): Update.
809
f14bec58
TT
8102019-09-20 Tom Tromey <tom@tromey.com>
811
812 * tui/tui-winsource.h (~tui_source_element): Remove.
813 (tui_source_element): Update.
814 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
815 * tui/tui-winsource.c (tui_show_source_line): Update.
816 * tui/tui-source.c (tui_source_window::set_contents): Update.
817 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
818
78d5933a
TT
8192019-09-20 Tom Tromey <tom@tromey.com>
820
821 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
822 declare.
823 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
824 tui_clear_source_windows_detail.
825 * tui/tui-winsource.h (struct tui_source_window_base)
826 <clear_detail>: Don't declare.
827 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
828 Remove.
829 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
830
d4207696
TT
8312019-09-20 Tom Tromey <tromey@adacore.com>
832
833 PR ada/24919:
834 * block.c (contained_in): Fix final return value.
835
00f93c44
AM
8362019-09-20 Alan Modra <amodra@gmail.com>
837
838 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
839 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
840 (read_indirect_string_from_dwz): Use bfd accessor.
841 * dwarf2read.h (struct dwz_file <filename>): Likewise.
842 * machoread.c (macho_symfile_read_all_oso): Likewise.
843 * solib.c (solib_bfd_open): Likewise.
844
e4153ae6
CB
8452019-09-19 Christian Biesinger <cbiesinger@google.com>
846
847 * eval.c: Move declaration of overload_resolution to...
848 * value.h: ...here.
849
c7ae7675
CB
8502019-09-19 Christian Biesinger <cbiesinger@google.com>
851
852 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
853 * arm-linux-tdep.c: Likewise.
854 * arm-nbsd-nat.c: Likewise.
855 * arm-tdep.h: Declare arm_apcs_32.
856 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
857
e86f08d2
CB
8582019-09-19 Christian Biesinger <cbiesinger@google.com>
859
860 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
861 * dwarf2read.h: Declare dwarf_always_disassemble.
862
f64e2f40
TV
8632019-09-19 Tom de Vries <tdevries@suse.de>
864
865 PR gdb/25009
866 * source-cache.c (source_cache::ensure): Catch exception thrown during
867 construction of the highlighter.
868
fd361982
AM
8692019-09-18 Alan Modra <amodra@gmail.com>
870
871 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
872 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
873 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
874 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
875 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
876 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
877 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
878 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
879 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
880 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
881 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
882 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
883 * solib-spu.c, * solib-svr4.c, * solib-target.c,
884 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
885 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
886 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
887 * mi/mi-interp.c: Update throughout for bfd section macro and
888 function changes.
889 * gcore (gcore_create_callback): Use bfd_set_section_lma.
890 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
891
11061048
TT
8922019-09-18 Tom Tromey <tom@tromey.com>
893
894 * NEWS: Add entry.
895 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
896 call rl_initialize.
897 (tui_enable): Do not call rl_initialize.
898
7a27b85f
CG
8992019-09-18 Christian Groessler <chris@groessler.org>
900
901 * alpha-linux-nat.c: Include gdbarch.h.
902
f64eea3a
SM
9032019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
904
905 * ui-file.c: Include cli/cli-style.h.
906 (term_cli_styling): Remove cli_styling declaration.
907
e6f7f6d1
AM
9082019-09-18 Alan Modra <amodra@gmail.com>
909
910 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
911 to bfd_asymbol_section.
912
1d38e9d1
AM
9132019-09-18 Alan Modra <amodra@gmail.com>
914
915 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
916 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
917 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
918
90d92a63
AM
9192019-09-18 Alan Modra <amodra@gmail.com>
920
921 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
922 * spu-linux-nat.c (spu_bfd_open): Likewise.
923
a3d181d2
CB
9242019-09-18 Christian Biesinger <cbiesinger@google.com>
925
926 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
927 to bool to match definition in dwarf2read.c.
928
491144b5
CB
9292019-09-17 Christian Biesinger <cbiesinger@google.com>
930
931 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
932 (print_signatures): Likewise.
933 (trust_pad_over_xvs): Likewise.
934 * arch/aarch64-insn.c (aarch64_debug): Likewise.
935 * arch/aarch64-insn.h (aarch64_debug): Likewise.
936 * arm-linux-nat.c (arm_apcs_32): Likewise.
937 * arm-linux-tdep.c (arm_apcs_32): Likewise.
938 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
939 * arm-tdep.c (arm_debug): Likewise.
940 (arm_apcs_32): Likewise.
941 * auto-load.c (debug_auto_load): Likewise.
942 (auto_load_gdb_scripts): Likewise.
943 (global_auto_load): Likewise.
944 (auto_load_local_gdbinit): Likewise.
945 (auto_load_local_gdbinit_loaded): Likewise.
946 * auto-load.h (global_auto_load): Likewise.
947 (auto_load_local_gdbinit): Likewise.
948 (auto_load_local_gdbinit_loaded): Likewise.
949 * breakpoint.c (disconnected_dprintf): Likewise.
950 (breakpoint_proceeded): Likewise.
951 (automatic_hardware_breakpoints): Likewise.
952 (always_inserted_mode): Likewise.
953 (target_exact_watchpoints): Likewise.
954 (_initialize_breakpoint): Update.
955 * breakpoint.h (target_exact_watchpoints): Change to bool.
956 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
957 * cli/cli-cmds.c (trace_commands): Likewise.
958 * cli/cli-cmds.h (trace_commands): Likewise.
959 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
960 to bool*.
961 * cli/cli-logging.c (logging_overwrite): Change to bool.
962 (logging_redirect): Likewise.
963 (debug_redirect): Likewise.
964 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
965 (struct boolean_option_def) <get_var_address_cb_>: Change return type
966 to bool.
967 <boolean_option_def>: Update.
968 (struct flag_option_def): Change default type of Context to bool
969 from int.
970 <flag_option_def>: Change return type of var_address_cb_ to bool*.
971 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
972 (get_setshow_command_value_string): Likewise.
973 * cli/cli-style.c (cli_styling): Change to bool.
974 (source_styling): Likewise.
975 * cli/cli-style.h (source_styling): Likewise.
976 (cli_styling): Likewise.
977 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
978 to bool.
979 * command.h (var_types): Update comment.
980 (add_setshow_boolean_cmd): Change int* var argument to bool*.
981 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
982 bool.
983 (debug_compile_cplus_scopes): Likewise.
984 * compile/compile-internal.h (compile_debug): Likewise.
985 * compile/compile.c (compile_debug): Likewise.
986 (struct compile_options) <raw>: Likewise.
987 * cp-support.c (catch_demangler_crashes): Likewise.
988 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
989 (usr_cmd_cris_dwarf2_cfi): Likewise.
990 * csky-tdep.c (csky_debug): Likewise.
991 * darwin-nat.c (enable_mach_exceptions): Likewise.
992 * dcache.c (dcache_enabled_p): Likewise.
993 * defs.h (info_verbose): Likewise.
994 * demangle.c (demangle): Likewise.
995 (asm_demangle): Likewise.
996 * dwarf-index-cache.c (debug_index_cache): Likewise.
997 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
998 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
999 * dwarf2read.c (check_physname): Likewise.
1000 (use_deprecated_index_sections): Likewise.
1001 (dwarf_always_disassemble): Likewise.
1002 * eval.c (overload_resolution): Likewise.
1003 * event-top.c (set_editing_cmd_var): Likewise.
1004 (exec_done_display_p): Likewise.
1005 * event-top.h (set_editing_cmd_var): Likewise.
1006 (exec_done_display_p): Likewise.
1007 * exec.c (write_files): Likewise.
1008 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1009 (debug_fbsd_nat): Likewise.
1010 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1011 Likewise.
1012 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1013 <backtrace_past_entry> Likewise.
1014 * gdb-demangle.h (demangle): Likewise.
1015 (asm_demangle): Likewise.
1016 * gdb_bfd.c (bfd_sharing): Likewise.
1017 * gdbcore.h (write_files): Likewise.
1018 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1019 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1020 * gdbthread.h (print_thread_events): Likewise.
1021 * gdbtypes.c (opaque_type_resolution): Likewise.
1022 (strict_type_checking): Likewise.
1023 * gnu-nat.c (gnu_debug_flag): Likewise.
1024 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1025 * guile/scm-param.c (pascm_variable): Add boolval.
1026 (add_setshow_generic): Update.
1027 (pascm_param_value): Update.
1028 (pascm_set_param_value_x): Update.
1029 * hppa-tdep.c (hppa_debug): Change to bool..
1030 * infcall.c (may_call_functions_p): Likewise.
1031 (coerce_float_to_double_p): Likewise.
1032 (unwind_on_signal_p): Likewise.
1033 (unwind_on_terminating_exception_p): Likewise.
1034 * infcmd.c (startup_with_shell): Likewise.
1035 * inferior.c (print_inferior_events): Likewise.
1036 * inferior.h (startup_with_shell): Likewise.
1037 (print_inferior_events): Likewise.
1038 * infrun.c (step_stop_if_no_debug): Likewise.
1039 (detach_fork): Likewise.
1040 (debug_displaced): Likewise.
1041 (disable_randomization): Likewise.
1042 (non_stop): Likewise.
1043 (non_stop_1): Likewise.
1044 (observer_mode): Likewise.
1045 (observer_mode_1): Likewise.
1046 (set_observer_mode): Update.
1047 (sched_multi): Change to bool.
1048 * infrun.h (debug_displaced): Likewise.
1049 (sched_multi): Likewise.
1050 (step_stop_if_no_debug): Likewise.
1051 (non_stop): Likewise.
1052 (disable_randomization): Likewise.
1053 * linux-tdep.c (use_coredump_filter): Likewise.
1054 (dump_excluded_mappings): Likewise.
1055 * linux-thread-db.c (auto_load_thread_db): Likewise.
1056 (check_thread_db_on_load): Likewise.
1057 * main.c (captured_main_1): Update.
1058 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1059 xx2_opt, boolean_opt>: Change to bool.
1060 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1061 * maint.c (maintenance_profile_p): Likewise.
1062 (per_command_time): Likewise.
1063 (per_command_space): Likewise.
1064 (per_command_symtab): Likewise.
1065 * memattr.c (inaccessible_by_default): Likewise.
1066 * mi/mi-main.c (mi_async): Likewise.
1067 (mi_async_1): Likewise.
1068 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1069 * nat/fork-inferior.h (startup_with_shell): Likewise.
1070 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1071 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1072 * nios2-tdep.c (nios2_debug): Likewise.
1073 * or1k-tdep.c (or1k_debug): Likewise.
1074 * parse.c (parser_debug): Likewise.
1075 * parser-defs.h (parser_debug): Likewise.
1076 * printcmd.c (print_symbol_filename): Likewise.
1077 * proc-api.c (procfs_trace): Likewise.
1078 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1079 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1080 (set_parameter_value): Update.
1081 (add_setshow_generic): Update.
1082 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1083 to bool*.
1084 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1085 int*.
1086 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1087 * record-btrace.c (record_btrace_target::store_registers): Update.
1088 * record-full.c (record_full_memory_query): Change to bool.
1089 (record_full_stop_at_limit): Likewise.
1090 * record-full.h (record_full_memory_query): Likewise.
1091 * remote-notif.c (notif_debug): Likewise.
1092 * remote-notif.h (notif_debug): Likewise.
1093 * remote.c (use_range_stepping): Likewise.
1094 (interrupt_on_connect): Likewise.
1095 (remote_break): Likewise.
1096 * ser-tcp.c (tcp_auto_retry): Likewise.
1097 * ser-unix.c (serial_hwflow): Likewise.
1098 * skip.c (debug_skip): Likewise.
1099 * solib-aix.c (solib_aix_debug): Likewise.
1100 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1101 (spu_auto_flush_cache_p): Likewise.
1102 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1103 Likewise.
1104 (struct info_print_options) <quiet>: Likewise.
1105 * symfile-debug.c (debug_symfile): Likewise.
1106 * symfile.c (auto_solib_add): Likewise.
1107 (separate_debug_file_debug): Likewise.
1108 * symfile.h (auto_solib_add): Likewise.
1109 (separate_debug_file_debug): Likewise.
1110 * symtab.c (basenames_may_differ): Likewise.
1111 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1112 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1113 (struct info_types_options) <quiet>: Likewise.
1114 * symtab.h (demangle): Likewise.
1115 (basenames_may_differ): Likewise.
1116 * target-dcache.c (stack_cache_enabled_1): Likewise.
1117 (code_cache_enabled_1): Likewise.
1118 * target.c (trust_readonly): Likewise.
1119 (may_write_registers): Likewise.
1120 (may_write_memory): Likewise.
1121 (may_insert_breakpoints): Likewise.
1122 (may_insert_tracepoints): Likewise.
1123 (may_insert_fast_tracepoints): Likewise.
1124 (may_stop): Likewise.
1125 (auto_connect_native_target): Likewise.
1126 (target_stop_and_wait): Update.
1127 (target_async_permitted): Change to bool.
1128 (target_async_permitted_1): Likewise.
1129 (may_write_registers_1): Likewise.
1130 (may_write_memory_1): Likewise.
1131 (may_insert_breakpoints_1): Likewise.
1132 (may_insert_tracepoints_1): Likewise.
1133 (may_insert_fast_tracepoints_1): Likewise.
1134 (may_stop_1): Likewise.
1135 * target.h (target_async_permitted): Likewise.
1136 (may_write_registers): Likewise.
1137 (may_write_memory): Likewise.
1138 (may_insert_breakpoints): Likewise.
1139 (may_insert_tracepoints): Likewise.
1140 (may_insert_fast_tracepoints): Likewise.
1141 (may_stop): Likewise.
1142 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1143 (make_thread_apply_all_options_def_group): Change argument from int*
1144 to bool*.
1145 (thread_apply_all_command): Update.
1146 (print_thread_events): Change to bool.
1147 * top.c (confirm): Likewise.
1148 (command_editing_p): Likewise.
1149 (history_expansion_p): Likewise.
1150 (write_history_p): Likewise.
1151 (info_verbose): Likewise.
1152 * top.h (confirm): Likewise.
1153 (history_expansion_p): Likewise.
1154 * tracepoint.c (disconnected_tracing): Likewise.
1155 (circular_trace_buffer): Likewise.
1156 * typeprint.c (print_methods): Likewise.
1157 (print_typedefs): Likewise.
1158 * utils.c (debug_timestamp): Likewise.
1159 (sevenbit_strings): Likewise.
1160 (pagination_enabled): Likewise.
1161 * utils.h (sevenbit_strings): Likewise.
1162 (pagination_enabled): Likewise.
1163 * valops.c (overload_resolution): Likewise.
1164 * valprint.h (struct value_print_options) <prettyformat_arrays,
1165 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1166 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1167 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1168 Likewise.
1169 * windows-nat.c (new_console): Likewise.
1170 (cygwin_exceptions): Likewise.
1171 (new_group): Likewise.
1172 (debug_exec): Likewise.
1173 (debug_events): Likewise.
1174 (debug_memory): Likewise.
1175 (debug_exceptions): Likewise.
1176 (useshell): Likewise.
1177 * windows-tdep.c (maint_display_all_tib): Likewise.
1178 * xml-support.c (debug_xml): Likewise.
1179
f1b620e9
MG
11802019-09-17 Mike Gulick <mgulick@mathworks.com>
1181
1182 * source.c (prepare_path_for_appending): New function.
1183 (openp): Make use of new function.
1184 (find_and_open_source): Search for the compilation directory and
1185 source file as a relative path beneath the directory search path.
1186
67f3ed6a
AB
11872019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1188
1189 * source-cache.c (source_cache::get_line_charpos): Catch
1190 exceptions and return false, this matches the behaviour documented
1191 in the header file.
1192
74332189
JB
11932019-09-17 Joel Brobecker <brobecker@adacore.com>
1194
1195 * ada-tasks.c (info_task): Remove quoting of the task's name.
1196
f2f24aa9
CB
11972019-09-16 Christian Biesinger <cbiesinger@google.com>
1198
1199 * symfile.c (auto_solib_add): Replace comment with a reference
1200 to the header file.
1201
6a062a93
CB
12022019-09-14 Christian Biesinger <cbiesinger@google.com>
1203
1204 * NEWS: Mention that gdb can now be compiled with Python 3
1205 on Windows.
1206
ec6c8338
AB
12072019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1208
1209 * maint.c (maint_print_section_data::maint_print_section_data):
1210 Force use of 'float log10 (float)' by casting the argument to
1211 float.
1212
aa17805f
AB
12132019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1214
1215 * maint.c: Add 'cmath' include.
1216 (struct maint_print_section_data): New structure.
1217 (print_section_index): New function.
1218 (print_bfd_section_info): Add header comment, small whitespace
1219 cleanup, and update to call new print_section_index function.
1220 (print_objfile_section_info): Likewise.
1221 (maint_obj_section_from_bfd_section): New function.
1222 (print_bfd_section_info_maybe_relocated): New function.
1223 (maintenance_info_sections): Add header comment, always use
1224 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1225
3dd9bb46
AB
12262019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1227
1228 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1229 inner scope, add check that the objfile has psymtabs before
1230 checking psymtabs_addrmap.
1231 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1232
4993045d
PW
12332019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1234
1235 * NEWS: Announce that Ada task names are now shown at more places,
1236 and between quotes (except in info task output).
1237 * gdb/ada-tasks.c (task_to_str): New function.
1238 (display_current_task_id): Call task_to_str.
1239 (task_command_1): Likewise.
1240 (print_ada_task_info): In non-mi mode, Properly align headers and data
1241 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1242
7a289707
RO
12432019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1244
1245 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1246 prstatus.pr_lwp.pr_info instead of making it up.
1247
f2aec7f6
CB
12482019-09-11 Christian Biesinger <cbiesinger@google.com>
1249
1250 * auto-load.c (auto_load_expand_dir_vars): Update.
1251 * defs.h (gdb_datadir): Change to std::string.
1252 (python_libdir): Likewise.
1253 (relocate_gdb_directory): Change return type to std::string.
1254 * guile/guile.c (gdbscm_data_directory): Update.
1255 (initialize_scheme_side): Update.
1256 * jit.c (jit_reader_dir): Change to std::string.
1257 (jit_reader_load_command): Update.
1258 * main.c (gdb_datadir): Change to std::string.
1259 (python_libdir): Likewise.
1260 (set_gdb_data_directory): Update.
1261 (relocate_path): Change to return std::string.
1262 (relocate_gdb_directory): Change to return std::string.
1263 (relocate_gdbinit_path_maybe_in_datadir): Update.
1264 (captured_main_1): Update.
1265 * python/python.c (do_start_initialization): Update.
1266 * top.c (show_gdb_datadir): Update.
1267 * xml-syscall.c (xml_init_syscalls_info): Update.
1268 (init_syscalls_info): Update.
1269
9224a013
CB
12702019-09-11 Christian Biesinger <cbiesinger@google.com>
1271
1272 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1273 out of get_init_files.
1274 (get_init_files): Update.
1275
f48cd836
CB
12762019-09-11 Christian Biesinger <cbiesinger@google.com>
1277
1278 * main.c (get_init_files): Change to use std::string.
1279 (captured_main_1): Update.
1280 (print_gdb_help): Update.
1281
9cab7ecd
AT
12822019-09-11 Ali Tamur <tamur@google.com>
1283
1284 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1285 implementation.
1286
67547d89
CB
12872019-09-11 Christian Biesinger <cbiesinger@google.com>
1288
1289 * dbxread.c (read_dbx_symtab): Update.
1290 * dwarf2read.c (load_partial_dies): Update.
1291 * mdebugread.c (parse_partial_symbols): Update.
1292 (handle_psymbol_enumerators): Update.
1293 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1294 * psymtab.c (add_psymbol_to_bcache): Likewise.
1295 (add_psymbol_to_list): Likewise.
1296 * symtab.c (symbol_set_names): Likewise.
1297 * symtab.h (symbol_set_names): Likewise.
1298 * xcoffread.c (scan_xcoff_symtab): Update.
1299
64b2d4a0
TT
13002019-09-11 Tom Tromey <tom@tromey.com>
1301
1302 * symfile-mem.c (symbol_file_add_from_memory): Use
1303 bfd_set_filename.
1304 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1305 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1306
3b00ef10
TT
13072019-09-10 Tom Tromey <tromey@adacore.com>
1308
1309 * dwarf-index-write.c (write_psymbols): Extend error message.
1310 (debug_names::insert): Add Ada code.
1311 (debug_names::write_psymbols): Remove Ada check.
1312 (debug_names) <m_string_obstack>: New member.
1313 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1314 (gdb_index_symbol_name_matcher::matches): Remove.
1315 (mapped_index_base::find_name_components_bounds): Add "lang"
1316 parameter.
1317 (mapped_index_base::build_name_components): Also split names
1318 according to Ada syntax.
1319 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1320 type of "match_callback".
1321 (check_match, check_find_bounds_finds)
1322 (dw2_expand_symtabs_matching): Update.
1323 (dw2_debug_names_iterator): Add new constructor.
1324 (dw2_debug_names_map_matching_symbols): New function.
1325 (dw2_debug_names_expand_symtabs_matching): Update.
1326 (dwarf2_debug_names_functions): Use
1327 dw2_debug_names_map_matching_symbols.
1328
aa391654
TT
13292019-09-10 Tom Tromey <tromey@adacore.com>
1330
1331 * dwarf2read.c (dw2_get_file_names_reader): Add the
1332 CU's file name to the results.
1333
b054970d
TT
13342019-09-10 Tom Tromey <tromey@adacore.com>
1335
1336 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1337 map_matching_symbols. Update.
1338 * dwarf2read.c (dw2_map_matching_symbols): Update.
1339 * psymtab.c (match_partial_symbol): Change type; update.
1340 (psym_map_matching_symbols): Likewise.
1341 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1342 type; update.
1343 * symfile.h (struct quick_symbol_functions)
1344 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1345 Remove "match".
1346
6a3dbf1b
TT
13472019-09-10 Tom Tromey <tromey@adacore.com>
1348
1349 * psymtab.c (map_block): Remove.
1350 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1351 * symtab.c (iterate_over_symbols_terminated): New function.
1352 * symtab.c (iterate_over_symbols_terminated): Declare.
1353
6969f124
TT
13542019-09-10 Tom Tromey <tromey@adacore.com>
1355
1356 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1357 * language.h (struct language_defn) <la_iterate_over_symbols>:
1358 Return bool.
1359 * symtab.c (iterate_over_symbols): Return bool.
1360 * symtab.h (iterate_over_symbols): Return bool.
1361
199b4314
TT
13622019-09-10 Tom Tromey <tromey@adacore.com>
1363
1364 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1365 (add_nonlocal_symbols): Update.
1366 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1367 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1368 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1369 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1370 Change type of "callback". Remove "data".
1371
a084a2a6
AT
1372
13732019-09-09 Ali Tamur <tamur@google.com>
1374
1375 * dwarf2read.c (comp_unit_head): Update comment.
1376 (dwarf2_dwo_name): New function declaration.
1377 (dwarf_unit_type_name): New function declaration.
1378 (read_comp_unit_head): Add support for new compilation units,
1379 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
1380 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
1381 (currently named as "signature") in their header. Also clarify error
1382 messages.
1383 (lookup_dwo_id): New function. Returns the dwo id of the given
1384 compile unit.
1385 (lookup_dwo_unit): Use the new lookup_dwo_id function.
1386 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
1387 functions.
1388 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
1389 (dwarf2_dwo_name): Get the dwo name if present.
1390 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
1391 purposes.
1392
25a2915e
TT
13932019-09-09 Tom Tromey <tom@tromey.com>
1394
1395 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1396
e4df0874
PW
13972019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1398
1399 * python/python.c (do_start_initialization): Make progname_copy static,
1400 to avoid a leak report.
1401
8634b462
TT
14022019-09-08 Tom Tromey <tom@tromey.com>
1403
1404 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1405
c7f839cb
SM
14062019-09-07 Simon Marchi <simon.marchi@efficios.com>
1407
1408 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1409 Change type to gdb::optional<block_enum>.
1410 (dw2_symtab_iter_init): Change block_index parameter type
1411 to gdb::optional<block_enum>.
1412 (dw2_lookup_symbol): Change block_index parameter
1413 type to block_enum.c
1414 (dw2_debug_names_lookup_symbol): Likewise.
1415 * psymtab.c (psym_lookup_symbol): Likewise.
1416 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1417 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1418 Likewise.
1419
ead0e69a
CB
14202019-09-06 Christian Biesinger <cbiesinger@google.com>
1421
1422 * defs.h (relocate_gdb_directory): Change int to bool in
1423 signature and rename flag to relocatable.
1424 * main.c (relocate_path): Likewise.
1425 (relocate_gdb_directory): Likewise.
1426
b16c44de
AM
14272019-09-06 Alan Modra <amodra@gmail.com>
1428
1429 * coffread.c (coff_symfile_read): Constify filename variable.
1430 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
1431 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
1432 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
1433 * solib.c (reload_shared_libraries_1): Likewise.
1434 * symfile.c (reread_symbols): Likewise.
1435 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
1436 * solib-darwin.c (darwin_bfd_open): Likewise.
1437 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1438
06ff036e
AB
14392019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1440
1441 * psymtab.c (print_partial_symbols): Handle missing domain_enum
1442 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
1443
4e962e74
TT
14442019-09-03 Tom Tromey <tromey@adacore.com>
1445
1446 * ada-valprint.c (ada_val_print_num): Don't recurse for range
1447 types.
1448 (has_negatives): Unbias a range type bound.
1449 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
1450 * gdbtypes.c (operator==): Handle new field.
1451 (create_range_type): Add "bias" parameter.
1452 (create_static_range_type, resolve_dynamic_range): Update.
1453 * gdbtypes.h (struct range_bounds) <bias>: New member.
1454 (create_range_type): Add bias parameter.
1455 * printcmd.c (print_scalar_formatted): Unbias range types.
1456 * value.c (unpack_long): Unbias range types.
1457 (pack_long): Bias range types.
1458
d90b8f26
AH
14592019-09-02 Alan Hayward <alan.hayward@arm.com>
1460
1461 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
1462 probe arguments.
1463
fe01123e
AH
14642019-09-02 Alan Hayward <alan.hayward@arm.com>
1465
1466 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
1467 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
1468 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
1469 (compile_probe_arg): Likewise.
1470 * probe.h (get_argument_count): Likewise.
1471 * solib-svr4.c (solib_event_probe_action): Likewise.
1472 * stap-probe.c (stap_probe::get_argument_count): Likewise.
1473
e661ef01
AH
14742019-09-02 Alan Hayward <alan.hayward@arm.com>
1475
1476 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
1477 code to here...
1478 (svr4_create_solib_event_breakpoints): ...from here.
1479
47a536d9
SDJ
14802019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
1481
1482 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
1483 suffix from warning message.
1484
d6a00eba
TT
14852019-08-30 Tom Tromey <tom@tromey.com>
1486
1487 * tui/tui-winsource.h (struct tui_source_window_base)
1488 <refresh_all>: Don't declare.
1489 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1490 Remove.
1491 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1492 tui_show_locator_content.
1493 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1494 declare.
1495 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1496 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1497 declare.
1498
55b2657b
TT
14992019-08-30 Tom Tromey <tom@tromey.com>
1500
1501 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1502
12a8555a
TT
15032019-08-30 Tom Tromey <tom@tromey.com>
1504
1505 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1506 Remove unnecessary forward declarations.
1507
900ac242
TT
15082019-08-30 Tom Tromey <tom@tromey.com>
1509
1510 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1511 rerender.
1512 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1513 tui_show_locator_content.
1514
99ab33fb
TT
15152019-08-30 Tom Tromey <tom@tromey.com>
1516
1517 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1518 (tui_locator_window::rerender): Rewrite using body of previous
1519 tui_show_locator_content.
1520
e594a5d1
TT
15212019-08-30 Tom Tromey <tom@tromey.com>
1522
1523 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1524 set_locator_fullname>: New methods.
1525 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1526 Rename from tui_set_locator_fullname.
1527 (tui_locator_window::set_locator_info): Rename from
1528 tui_set_locator_info. Return bool.
1529 (tui_update_locator_fullname, tui_show_frame_info): Update.
1530
715bb467
TT
15312019-08-30 Tom Tromey <tom@tromey.com>
1532
1533 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1534
772f3f03
TT
15352019-08-30 Tom Tromey <tom@tromey.com>
1536
1537 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1538 call touchwin.
1539
108e13ab
TT
15402019-08-30 Tom Tromey <tom@tromey.com>
1541
1542 * tui/tui-wingeneral.c (box_win): Assume win_info and
1543 win_info->handle cannot be NULL.
1544
cdaa6eb4
TT
15452019-08-30 Tom Tromey <tom@tromey.com>
1546
1547 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1548 refresh_window>: Declare.
1549 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1550 resize.
1551 (tui_data_item_window::rerender): Rename from
1552 tui_display_register.
1553 (tui_data_item_window::refresh_window): New method.
1554 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1555 no-op.
1556
89df7f90
TT
15572019-08-30 Tom Tromey <tom@tromey.com>
1558
1559 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1560 regs_column_count, current_group>: Move later. Now private.
1561 <get_current_group>: New method.
1562 * tui/tui-regs.c (tui_reg_command): Update.
1563 * tui/tui-layout.c (tui_set_layout): Update.
1564
1bf2866a
TT
15652019-08-30 Tom Tromey <tom@tromey.com>
1566
1567 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1568 (tui_data_window::rerender): Don't call
1569 check_and_display_highlight_if_needed.
1570 (tui_data_window::refresh_all): Remove call to
1571 erase_data_content.
1572
0670413d
TT
15732019-08-30 Tom Tromey <tom@tromey.com>
1574
1575 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1576 (tui_data_window::display_registers_from)
1577 (tui_data_window::display_reg_element_at_line)
1578 (tui_data_window::display_registers_from_line): Remove checks of
1579 "empty".
1580
18bb55c7
TT
15812019-08-30 Tom Tromey <tom@tromey.com>
1582
1583 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1584 Don't declare.
1585 * tui/tui-regs.c (tui_data_window::show_registers): Call
1586 rerender.
1587 (tui_data_window::rerender): Rename from display_all_data.
1588 (tui_data_window::rerender): Remove old implementation.
1589
1f6d2f10
TT
15902019-08-30 Tom Tromey <tom@tromey.com>
1591
1592 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1593 text.
1594 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1595
16d01f9c
BW
15962019-08-29 Bernhard Wodok <barto@gmx.net>
1597 Sergio Durigan Junior <sergiodj@redhat.com>
1598
1599 PR win32/24284
1600 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1601
d8f27c60
AB
16022019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1603
1604 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1605 when searching for types.
1606
1f20c35e
AB
16072019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1608
1609 * f-lang.c (f_language_defn): Use f_print_typedef.
1610 * f-lang.h (f_print_typedef): Declare.
1611 * f-typeprint.c (f_print_typedef): Define.
1612
550105b7
CB
16132019-08-27 Christian Biesinger <cbiesinger@google.com>
1614
1615 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1616
4acfdd20
AB
16172019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1618
1619 * cli/cli-utils.c (info_print_options_defs): Delete.
1620 (make_info_print_options_def_group): Delete.
1621 (extract_info_print_options): Delete.
1622 (info_print_command_completer): Delete.
1623 (info_print_args_help): Add extra parameter, and optionally
1624 include text about -n flag.
1625 * cli/cli-utils.h (struct info_print_options): Delete.
1626 (extract_info_print_options): Delete declaration.
1627 (info_print_command_completer): Delete declaration.
1628 (info_print_args_help): Add extra parameter, extend header
1629 comment.
1630 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1631 search_symbols.
1632 * stack.c (struct info_print_options): New type.
1633 (info_print_options_defs): New file scoped variable.
1634 (make_info_print_options_def_group): New static function.
1635 (info_print_command_completer): New static function.
1636 (info_locals_command): Update to use new local functions.
1637 (info_args_command): Likewise.
1638 (_initialize_stack): Add extra parameter to calls to
1639 info_print_args_help.
1640 * symtab.c (search_symbols): Add extra parameter, use this to
1641 possibly excluse non-debug symbols.
1642 (symtab_symbol_info): Add extra parameter, which is passed on to
1643 search_symbols.
1644 (struct info_print_options): New type.
1645 (info_print_options_defs): New file scoped variable.
1646 (make_info_print_options_def_group): New static function.
1647 (info_print_command_completer): New static function.
1648 (info_variables_command): Update to use local functions, and pass
1649 extra parameter through to symtab_symbol_info.
1650 (info_functions_command): Likewise.
1651 (info_types_command): Pass additional argument through to
1652 symtab_symbol_info.
1653 (rbreak_command): Pass extra argument to search_symbols.
1654 (_initialize_symtab): Add extra arguments for calls to
1655 info_print_args_help, and update help text for 'info variables',
1656 'whereis', and 'info functions' commands.
1657 * symtab.h (search_symbols): Add extra argument to declaration.
1658 * NEWS: Mention new flags.
1659
9aa55206
CB
16602019-08-26 Christian Biesinger <cbiesinger@google.com>
1661
1662 * symtab.c (lookup_static_symbol): Call the new function (and move
1663 it down to be next to lookup_global_symbol).
1664 (struct global_sym_lookup_data): Add block_enum member and rename to...
1665 (struct global_or_static_sym_lookup_data): ...this.
1666 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1667 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1668 (lookup_symbol_global_or_static_iterator_cb): ...this.
1669 (lookup_global_or_static_symbol): New function.
1670 (lookup_global_symbol): Call new function.
1671
5c31b358
TV
16722019-08-26 Tom de Vries <tdevries@suse.de>
1673
1674 PR c++/24852
1675 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1676 when pc_probe.prob == NULL.
1677
23c13d42
SM
16782019-08-25 Simon Marchi <simon.marchi@efficios.com>
1679
1680 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1681 variable symbol_linkage to symbol_linkage_.
1682
beadd3e8
SM
16832019-08-25 Simon Marchi <simon.marchi@efficios.com>
1684
1685 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1686 represent whether the symbol is static, dynamic, or we don't
1687 know.
1688
e3ec872f
YS
16892019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1690
1691 * gdb/rx-tdep.c (rx_register_names): New.
1692 (rx_register_name): Delete.
1693 (rx_psw_type): Delete.
1694 (rx_fpsw_type): Delete.
1695 (rx_register_type): Delete.
1696 (rx_gdbarch_init): Convert target-descriptions.
1697 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1698 * gdb/features/Makefile: Add rx.xml.
1699 * gdb/features/rx.xml: New.
1700 * gdb/features/rx.c: Generated.
1701 * gdb/NEWS: Mention target description support.
1702
d0509ba4
CB
17032019-08-22 Christian Biesinger <cbiesinger@google.com>
1704
1705 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1706 *slot_ptr.
1707
2d41fa11
SDJ
17082019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1709
1710 * configure.ac: Don't check for 'dlfcn.h' (moved to
1711 gdbsupport/common.m4).
1712 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1713 'gdbsupport/'.
1714 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1715 * compile/compile-c-support.c: Include
1716 'gdbsupport/gdb-dlfcn.h'.
1717 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1718 * gdb-dlfcn.c: Move to...
1719 * gdbsupport/gdb-dlfcn.c: ... here.
1720 * gdb-dlfcn.h: Move to...
1721 * gdbsupport/gdb-dlfcn.h: ... here.
1722
de8af808
SL
17232019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1724
1725 * nios2-tdep.c (struct reg_value): Improve comments. Make
1726 the offset field signed.
1727
27204489
CB
17282019-08-22 Christian Biesinger <cbiesinger@google.com>
1729
1730 * python/lib/gdb/__init__.py (_execute_file): New function.
1731 * python/python.c (python_run_simple_file): Call gdb._execute_file
1732 on Windows.
1733
43771869
AB
17342019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1735
1736 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1737 all uses as this was never set to anything but a zero value.
1738
26c957f1
PA
17392019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1740
1741 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1742
c07aae6e
CB
17432019-08-21 Christian Biesinger <cbiesinger@google.com>
1744
1745 * tui/tui-data.h (tui_gen_win_info): Add an =default
1746 move constructor, required by some GCC versions.
1747
3960cb7a
JF
17482019-08-21 Jinke Fan <fanjinke51@yeah.net>
1749
1750 * go32-nat.c (go32_sysinfo): Add hygon_p.
1751
04c72a68
TT
17522019-08-20 Tom Tromey <tom@tromey.com>
1753
1754 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1755 line_from_reg_element_no, first_reg_element_no_inline,
1756 display_all_data, delete_data_content_windows,
1757 erase_data_content>: Now private.
1758
072272ce
TT
17592019-08-20 Tom Tromey <tom@tromey.com>
1760
1761 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1762 (tui_unhighlight_win, tui_highlight_win)
1763 (tui_win_info::make_window): Update.
1764 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1765
973961bd
TT
17662019-08-20 Tom Tromey <tom@tromey.com>
1767
1768 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1769 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1770 (MAX_PID_WIDTH): Move to tui-stack.c.
1771 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1772 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1773 (MAX_PID_WIDTH): Move from tui-data.h.
1774
ab0e1f1a
TT
17752019-08-20 Tom Tromey <tom@tromey.com>
1776
1777 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1778 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1779 (box_win): Update.
1780 (tui_gen_win_info::make_window): Rename from tui_make_window.
1781 (tui_win_info::make_window): New method.
1782 (tui_gen_win_info::make_visible): Update.
1783 * tui/tui-source.c (tui_source_window::set_contents): Update.
1784 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1785 (tui_data_window::display_registers_from): Update.
1786 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1787 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1788 Declare.
1789 <can_box>: Remove.
1790 <title>: Remove.
1791 (struct tui_win_info) <make_window>: Declare.
1792 <can_box>: Now virtual.
1793 <title>: New member.
1794 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1795 * tui/tui-command.c (tui_cmd_window::resize): Update.
1796
100c2bf3
TT
17972019-08-20 Tom Tromey <tom@tromey.com>
1798
1799 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1800 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1801 (tui_data_window::check_register_values): Update.
1802
fa4dc567
TT
18032019-08-20 Tom Tromey <tom@tromey.com>
1804
1805 * tui/tui-regs.h (struct tui_data_window): Use
1806 DISABLE_COPY_AND_ASSIGN.
1807 <regs_content>: Change type, removing unique_ptr.
1808 <tui_data_window>: Add move constructor.
1809 * tui/tui-regs.c (tui_data_window::show_registers)
1810 (tui_data_window::show_register_group)
1811 (tui_data_window::display_registers_from)
1812 (tui_data_window::display_registers_from)
1813 (tui_data_window::first_data_item_displayed)
1814 (tui_data_window::delete_data_content_windows)
1815 (tui_data_window::rerender, tui_data_window::refresh_window)
1816 (tui_data_window::check_register_values): Update.
1817
ca02d7c8
TT
18182019-08-20 Tom Tromey <tom@tromey.com>
1819
1820 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1821 show_register_group>: Declare.
1822 (tui_show_register_group): Don't declare.
1823 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1824 tui_show_registers.
1825 (tui_data_window::show_register_group): Rename from
1826 tui_show_register_group.
1827 (tui_data_window::check_register_values, tui_reg_command):
1828 Update.
1829 * tui/tui-layout.c (tui_set_layout): Update.
1830
63356bfd
TT
18312019-08-20 Tom Tromey <tom@tromey.com>
1832
1833 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1834 Declare.
1835 (tui_check_register_values): Don't declare.
1836 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1837 from tui_check_register_values.
1838 * tui/tui-hooks.c (tui_register_changed): Update.
1839
42cc14a7
TT
18402019-08-20 Tom Tromey <tom@tromey.com>
1841
1842 * tui/tui-regs.c (tui_reg_layout): Move later.
1843 (tui_show_registers): Don't enable TUI mode or change layout.
1844
b9ad3686
TT
18452019-08-20 Tom Tromey <tom@tromey.com>
1846
1847 * tui/tui-regs.h (struct tui_data_item_window)
1848 <~tui_data_item_window>: Remove.
1849 <content>: Now a unique_xmalloc_ptr.
1850 * tui/tui-regs.c (tui_register_format): Return a
1851 unique_xmalloc_ptr.
1852 (tui_get_register): Update.
1853 (~tui_data_item_window): Remove.
1854 (tui_data_window::display_registers_from, tui_display_register):
1855 Update.
1856 * tui/tui-io.h (tui_expand_tabs): Update.
1857 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1858 Remove "col" parameter.
1859
8e114aab
TT
18602019-08-20 Tom Tromey <tom@tromey.com>
1861
1862 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1863 field.
1864 * tui/tui-regs.c (~tui_data_item_window): Update.
1865
1a4f81dd
TT
18662019-08-20 Tom Tromey <tom@tromey.com>
1867
1868 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1869 earlier.
1870
0f8d8876
TT
18712019-08-20 Tom Tromey <tom@tromey.com>
1872
1873 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1874
605dc2c2
TT
18752019-08-20 Tom Tromey <tom@tromey.com>
1876
1877 * tui/tui-source.h (struct tui_source_window): Update.
1878 * tui/tui-regs.c (tui_show_registers): Update.
1879 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1880 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1881 (NO_REGS_STRING): Remove defines.
1882
aedbe3bb
CM
18832019-08-20 Conrad Meyer <cem@FreeBSD.org>
1884
1885 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1886 unnecessary thread walk if remote doesn't support the packet.
1887
7ce8f214
TT
18882019-08-19 Tom Tromey <tromey@adacore.com>
1889
1890 * python/py-value.c (value_has_field): Fix indentation.
1891
f21c2bd7
TT
18922019-08-19 Tom Tromey <tromey@adacore.com>
1893
1894 * printcmd.c (do_one_display, info_display_command): Update.
1895 * block.h (contained_in): Return bool. Add allow_nested
1896 parameter.
1897 * block.c (contained_in): Return bool. Add allow_nested
1898 parameter.
1899
d806ea2d
TT
19002019-08-19 Tom Tromey <tom@tromey.com>
1901
1902 * configure: Rebuild.
1903 * configure.ac: Disallow the combination of -static-libstdc++ and
1904 source highlight.
1905 * source-cache.c (get_language_name): Handle rust.
1906 (source_cache::get_source_lines): Ignore highlighting exceptions.
1907
398fdd60
TT
19082019-08-16 Tom Tromey <tom@tromey.com>
1909
1910 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1911 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1912 (struct tui_source_window_base) <make_visible, refresh_window,
1913 resize>: Remove methods.
1914 <execution_info>: Remove field.
1915 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1916 (tui_show_source_line, tui_source_window_base)
1917 (~tui_source_window_base): Update.
1918 (tui_source_window_base::resize)
1919 (tui_source_window_base::make_visible)
1920 (tui_source_window_base::refresh_window): Remove.
1921 (tui_source_window_base::update_exec_info): Update.
1922 * tui/tui-source.c (tui_source_window::set_contents): Update.
1923 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1924
e699d331
TT
19252019-08-16 Tom Tromey <tom@tromey.com>
1926
1927 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1928 deprecated_query_hook.
1929
bb01dbfc
TT
19302019-08-16 Tom Tromey <tom@tromey.com>
1931
1932 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1933 (tui_update_source_windows_with_line): Update.
1934 * tui/tui-source.h (struct tui_source_window)
1935 <show_symtab_source>: Declare.
1936 (tui_show_symtab_source): Don't declare.
1937 * tui/tui-source.c (tui_show_symtab_source): Rename from
1938 tui_show_symtab_source.
1939
81c82c4b
TT
19402019-08-16 Tom Tromey <tom@tromey.com>
1941
1942 * tui/tui-winsource.h (struct tui_source_window_base)
1943 <set_contents>: Declare.
1944 * tui/tui-winsource.c
1945 (tui_source_window_base::update_source_window_as_is): Update.
1946 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1947 Declare.
1948 (tui_set_source_content): Don't declare.
1949 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1950 tui_set_source_content.
1951 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1952 Declare.
1953 (tui_set_disassem_content): Don't declare.
1954 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1955 tui_set_disassem_content.
1956
2ddaf614
TT
19572019-08-16 Tom Tromey <tom@tromey.com>
1958
1959 * tui/tui-winsource.h (struct tui_source_window_base)
1960 <update_breakpoint_info>: Declare.
1961 (tui_update_breakpoint_info): Don't declare.
1962 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1963 (tui_update_all_breakpoint_info): Update.
1964 (tui_source_window_base::update_breakpoint_info): Rename from
1965 tui_update_breakpoint_info.
1966 (tui_source_window_base::update_exec_info): Update.
1967
017f9828
TT
19682019-08-16 Tom Tromey <tom@tromey.com>
1969
1970 * tui/tui-winsource.h (struct tui_source_window_base)
1971 <update_source_window>: Declare.
1972 (tui_update_source_window): Don't declare.
1973 * tui/tui-winsource.c
1974 (tui_source_window_base::update_source_window): Rename from
1975 tui_update_source_window.
1976 (tui_source_window_base::rerender): Update.
1977 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1978 * tui/tui-disasm.c (tui_show_disassem)
1979 (tui_show_disassem_and_update_source)
1980 (tui_disasm_window::maybe_update): Update.
1981
ed8358e9
TT
19822019-08-16 Tom Tromey <tom@tromey.com>
1983
1984 * tui/tui-winsource.h (struct tui_source_window_base)
1985 <update_source_window_as_is>: Declare.
1986 (tui_update_source_window_as_is): Don't declare.
1987 * tui/tui-winsource.c (tui_update_source_window): Update
1988 (tui_source_window_base::update_source_window_as_is): Rename from
1989 tui_update_source_window_as_is.
1990 (tui_source_window_base::refill): Update.
1991 * tui/tui-source.c (tui_show_symtab_source): Update.
1992 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1993 Update.
1994
20149b6b
TT
19952019-08-16 Tom Tromey <tom@tromey.com>
1996
1997 * tui/tui-winsource.h (tui_update_source_window)
1998 (tui_update_source_window_as_is): Remove "noerror" parameter.
1999 * tui/tui-winsource.c (tui_update_source_window)
2000 (tui_update_source_window_as_is): Remove "noerror" parameter.
2001 (tui_update_source_windows_with_addr)
2002 (tui_update_source_windows_with_line)
2003 (tui_source_window_base::rerender)
2004 (tui_source_window_base::refill): Update.
2005 * tui/tui-source.h (tui_set_source_content)
2006 (tui_show_symtab_source): Remove "noerror" parameter.
2007 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2008 parameter.
2009 (tui_show_symtab_source): Likewise.
2010 (tui_source_window::maybe_update): Update.
2011 * tui/tui-disasm.c (tui_show_disassem)
2012 (tui_show_disassem_and_update_source)
2013 (tui_disasm_window::do_scroll_vertical)
2014 (tui_disasm_window::maybe_update): Update.
2015
2d83e710
TT
20162019-08-16 Tom Tromey <tom@tromey.com>
2017
2018 * tui/tui.c (tui_is_window_visible): Update.
2019 * tui/tui-wingeneral.c (tui_make_window)
2020 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2021 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2022 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2023 (tui_set_win_height_command, parse_scrolling_args): Update.
2024 * tui/tui-source.c (tui_source_window::style_changed): Update.
2025 * tui/tui-regs.c (tui_show_registers)
2026 (tui_data_window::first_data_item_displayed)
2027 (tui_data_window::delete_data_content_windows)
2028 (tui_check_register_values, tui_reg_command): Update.
2029 * tui/tui-disasm.c (tui_show_disassem): Update.
2030 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2031 method.
2032 <is_visible>: Remove field.
2033 * tui/tui-data.c (tui_next_win, tui_prev_win)
2034 (tui_delete_invisible_windows): Update.
2035
d4ab829a
TT
20362019-08-16 Tom Tromey <tom@tromey.com>
2037
2038 * tui/tui-winsource.h (struct tui_source_window_base)
2039 <m_has_locator>: Remove.
2040 * tui/tui-layout.c (show_source_disasm_command, show_data)
2041 (show_source_or_disasm_and_command): Update.
2042
aa7ca1bb
AH
20432019-08-16 Alan Hayward <alan.hayward@arm.com>
2044
2045 * NEWS (Other MI changes): New subsection.
2046 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2047 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2048 * arch-utils.c (default_get_pc_address_flags): New function.
2049 * arch-utils.h (default_get_pc_address_flags): New declaration.
2050 * gdbarch.sh: Add get_pc_address_flags.
2051 * gdbarch.c: Regenerate.
2052 * gdbarch.h: Likewise.
2053 * stack.c (print_pc): New function.
2054 (print_frame_info) (print_frame): Call print_pc.
2055
6eac171f
TV
20562019-08-16 Tom de Vries <tdevries@suse.de>
2057
2058 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2059 print_objfile_section_info.
2060
3df505f6
TT
20612019-08-15 Tom Tromey <tom@tromey.com>
2062
2063 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2064 calling update_cmdwin_start_line.
2065 * tui/tui-winsource.h (struct tui_source_window_base)
2066 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2067 <rerender>: Declare.
2068 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2069 Call rerender.
2070 (tui_source_window_base::set_new_height): Remove.
2071 (tui_source_window_base::rerender): Rename from
2072 do_make_visible_with_new_height.
2073 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2074 resize method.
2075 (tui_win_info::make_invisible_and_set_new_height)
2076 (tui_win_info::make_visible_with_new_height): Remove.
2077 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2078 Declare.
2079 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2080 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2081 do_make_visible_with_new_height>: Don't declare.
2082 <rerender>: Declare.
2083 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2084 set_new_height.
2085 (tui_data_window::do_make_visible_with_new_height): Remove.
2086 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2087 call tui_show_locator_content.
2088 (tui_gen_win_info::resize): Call rerender.
2089 (show_source_or_disasm_and_command): Don't call
2090 tui_show_locator_content.
2091 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2092 method.
2093 (struct tui_win_info) <rerender>: Declare.
2094 <set_new_height, make_invisible_and_set_new_height,
2095 make_visible_with_new_height>: Don't declare.
2096 * tui/tui-data.c (tui_win_list::rerender): New method.
2097 * tui/tui-command.h (struct tui_cmd_window)
2098 <do_make_visible_with_new_height>: Don't declare.
2099 * tui/tui-command.c
2100 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2101
272560b5
TT
21022019-08-15 Tom Tromey <tromey@adacore.com>
2103
2104 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2105 * ada-lang.c (ada_enum_name): Likewise.
2106
08235187
CB
21072019-08-15 Christian Biesinger <cbiesinger@google.com>
2108
2109 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2110 leading underscore.
2111 (GdbOutputErrorFile): Likewise.
2112 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2113 accordingly.
2114 (execute_unwinders): Rename to have a leading underscore.
2115 (auto_load_packages): Likewise.
2116 (global scope): Adjust call to auto_load_packages accordingly.
2117 (GdbSetPythonDirectory): Likewise.
2118 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2119 instead of execute_unwinders.
2120
db502012
TT
21212019-08-15 Tom Tromey <tom@tromey.com>
2122
2123 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2124 (show_data): Don't change window visibility.
2125 (tui_gen_win_info::resize): Remove special case for command
2126 window. Use wresize, when available.
2127 (show_source_or_disasm_and_command): Don't change window
2128 visibility.
2129 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2130 <make_visible>: New method.
2131 * tui/tui-command.c (tui_cmd_window::resize): New method.
2132
3891b65e
TT
21332019-08-15 Tom Tromey <tom@tromey.com>
2134
2135 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2136 (struct tui_source_windows): New.
2137 * tui/tui-winsource.c (tui_display_main): Update.
2138 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2139 (new_height_ok, parse_scrolling_args): Update.
2140 * tui/tui-layout.c (show_layout, show_data): Update.
2141 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2142 (tui_add_to_source_windows): Don't declare.
2143 * tui/tui-data.c (source_windows, tui_source_windows)
2144 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2145
ee556432
TT
21462019-08-15 Tom Tromey <tom@tromey.com>
2147
2148 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2149 Rename from reset.
2150 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2151 * tui/tui-layout.c (show_source_disasm_command, show_data):
2152 Update.
2153 (tui_gen_win_info::resize): Rename.
2154 (show_source_or_disasm_and_command): Update.
2155 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2156 reset.
2157
46f438e3
TT
21582019-08-15 Tom Tromey <tom@tromey.com>
2159
2160 * tui/tui-stack.c (tui_initialize_static_data): Remove.
2161 * tui/tui-interp.c (tui_interp::init): Don't call
2162 tui_initialize_static_data.
2163 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2164
f4ce562c
TT
21652019-08-15 Tom Tromey <tom@tromey.com>
2166
2167 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2168 examine tui_win_list.
2169
c398c3d0
TT
21702019-08-15 Tom Tromey <tom@tromey.com>
2171
2172 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2173 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2174 tui_clear_source_content.
2175 (tui_clear_source_content): Remove.
2176 (tui_source_window_base::do_erase_source_content): Hoist call to
2177 content.clear().
2178 * tui/tui-stack.c (tui_show_frame_info): Don't call
2179 tui_clear_source_content.
2180
e25d2004
TT
21812019-08-15 Tom Tromey <tom@tromey.com>
2182
2183 * tui/tui-winsource.h (struct tui_source_window_base)
2184 <do_erase_source_content>: New method.
2185 <erase_source_content>: New method.
2186 (tui_erase_source_content): Don't declare.
2187 * tui/tui-winsource.c (tui_clear_source_content): Update.
2188 (tui_source_window_base::do_erase_source_content): Rename from
2189 tui_erase_source_content.
2190 (tui_source_window_base::show_source_content): Update.
2191 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2192 * tui/tui-source.h (struct tui_source_window)
2193 <erase_source_content>: New method.
2194 * tui/tui-disasm.h (struct tui_disasm_window)
2195 <erase_source_content>: New method.
2196
002f15c2
TT
21972019-08-15 Tom Tromey <tom@tromey.com>
2198
2199 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2200 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2201 constructor.
2202 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2203 * tui/tui-source.c (tui_set_source_content): Update.
2204 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2205
c9033fe8
TT
22062019-08-15 Tom Tromey <tom@tromey.com>
2207
2208 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2209 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2210 tui-source.c.
2211 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2212 Declare.
2213 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2214 method.
2215 (tui_source_window::maybe_update): Update.
2216
088f37dd
TT
22172019-08-15 Tom Tromey <tom@tromey.com>
2218
2219 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2220 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2221 tui-disasm.c.
2222 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2223 Declare.
2224 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2225 method.
2226 (tui_disasm_window::maybe_update): Update.
2227
a54700c6
TT
22282019-08-15 Tom Tromey <tom@tromey.com>
2229
2230 * tui/tui-winsource.h (struct tui_source_window_base)
2231 <maybe_update>: Declare.
2232 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2233 method.
2234 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2235 Declare.
2236 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2237 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2238 Declare.
2239 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2240
e2a678a5
TT
22412019-08-15 Tom Tromey <tom@tromey.com>
2242
2243 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2244
f2dda477
TT
22452019-08-15 Tom Tromey <tom@tromey.com>
2246
2247 * tui/tui-wingeneral.c: Include tui-stack.h.
2248 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2249 (struct tui_locator_window): Move from tui-data.h.
2250 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2251 (tui_initialize_static_data): Move from tui-data.c.
2252 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2253 (struct tui_locator_window): Move to tui-stack.c.
2254 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2255 (tui_initialize_static_data): Move to tui-stack.c.
2256
ed4a1084
TT
22572019-08-15 Tom Tromey <tom@tromey.com>
2258
2259 * tui/tui-layout.c (show_source_disasm_command)
2260 (show_source_or_disasm_and_command): Use make_visible method, not
2261 tui_make_window.
2262 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2263 Remove.
2264
65962b20
TT
22652019-08-15 Tom Tromey <tom@tromey.com>
2266
2267 * tui/tui-wingeneral.h (tui_make_window): Update.
2268 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2269 parameter.
2270 (tui_gen_win_info::make_visible): Update.
2271 * tui/tui-regs.c (tui_data_window::display_registers_from):
2272 Update.
2273 * tui/tui-layout.c (show_source_disasm_command)
2274 (show_source_or_disasm_and_command): Update.
2275 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2276 (enum tui_box): Remove.
2277 (struct tui_win_info) <can_box>: New method.
2278 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2279 method.
2280
2208ee91
TV
22812019-08-15 Tom de Vries <tdevries@suse.de>
2282
2283 * linux-nat-trad.c: Include gdbarch.h.
2284
75faf5c4
AH
22852019-08-14 Alan Hayward <alan.hayward@arm.com>
2286
2287 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2288 register sizes.
2289
b1c896b3
TT
22902019-08-14 Tom Tromey <tromey@adacore.com>
2291
2292 * darwin-nat.c: Include gdbarch.h.
2293 * darwin-nat-info.c: Include gdbarch.h.
2294
6405cd73
TT
22952019-08-13 Tom Tromey <tom@tromey.com>
2296
2297 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2298 Remove.
2299 * tui/tui-data.c (tui_initialize_static_data): Update.
2300
5216580d
TT
23012019-08-13 Tom Tromey <tom@tromey.com>
2302
2303 * tui/tui-winsource.h (struct tui_exec_info_window)
2304 <~tui_exec_info_window, maybe_allocate_content, get_content,
2305 m_content>: Remove.
2306 (struct tui_source_window_base) <set_exec_info_content,
2307 show_exec_info_content>: Don't declare.
2308 * tui/tui-winsource.c
2309 (tui_exec_info_window::maybe_allocate_content): Remove.
2310 (tui_source_window_base::update_exec_info): Rename from
2311 set_exec_info_content.
2312 (tui_source_window_base::show_exec_info_content)
2313 (tui_source_window_base::update_exec_info): Remove.
2314
93858ad3
TT
23152019-08-13 Tom Tromey <tom@tromey.com>
2316
2317 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2318 declare.
2319 * tui/tui-winsource.c (tui_update_source_window_as_is)
2320 (tui_update_source_windows_with_addr, tui_erase_source_content):
2321 Update.
2322 (tui_clear_exec_info_content): Remove.
2323
e321e7ce
TT
23242019-08-13 Tom Tromey <tom@tromey.com>
2325
2326 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2327 declare.
2328 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2329 call tui_erase_exec_info_content.
2330 (tui_clear_exec_info_content): Rename from
2331 tui_erase_exec_info_content.
2332 (tui_clear_exec_info_content): Delete.
2333
8270ac62
TT
23342019-08-13 Tom Tromey <tom@tromey.com>
2335
2336 * tui/tui-winsource.h (struct tui_source_window_base)
2337 <show_exec_info_content>: Declare.
2338 (tui_show_exec_info_content): Don't declare.
2339 * tui/tui-winsource.c
2340 (tui_source_window_base::show_exec_info_content): Rename from
2341 tui_show_exec_info_content.
2342 (tui_source_window_base::update_exec_info): Update.
2343
7b56485d
TT
23442019-08-13 Tom Tromey <tom@tromey.com>
2345
2346 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2347 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2348 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2349 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2350 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2351 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2352 ... here.
2353
7ba913dc
TT
23542019-08-13 Tom Tromey <tom@tromey.com>
2355
2356 * tui/tui-winsource.h (struct tui_source_window_base)
2357 <update_exec_info>: Declare.
2358 (tui_update_exec_info): Don't declare.
2359 * tui/tui-winsource.c (tui_update_source_window_as_is)
2360 (tui_source_window_base::refresh_all)
2361 (tui_update_all_breakpoint_info): Update.
2362 (tui_source_window_base::update_exec_info): Rename from
2363 tui_update_exec_info.
2364 * tui/tui-stack.c (tui_show_frame_info): Update.
2365
37a4a131
TT
23662019-08-13 Tom Tromey <tom@tromey.com>
2367
2368 * tui/tui-winsource.h (struct tui_source_window_base)
2369 <set_exec_info_content>: Declare.
2370 (tui_set_exec_info_content): Don't declare.
2371 * tui/tui-winsource.c
2372 (tui_source_window_base::set_exec_info_content): Rename from
2373 tui_set_exec_info_content.
2374 (tui_update_exec_info): Update.
2375
0bd27e07
TT
23762019-08-13 Tom Tromey <tom@tromey.com>
2377
2378 * tui/tui-winsource.h (struct tui_source_window_base)
2379 <show_source_content>: Declare.
2380 (tui_show_source_content): Don't declare.
2381 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2382 (tui_source_window_base::show_source_content): Rename from
2383 tui_show_source_content.
2384 (tui_source_window_base::refresh_all): Update.
2385 * tui/tui-layout.c (show_source_disasm_command)
2386 (show_source_or_disasm_and_command): Update.
2387
b4ef5aeb
TT
23882019-08-13 Tom Tromey <tom@tromey.com>
2389
2390 * tui/tui-winsource.c (tui_erase_source_content)
2391 (tui_show_source_content, tui_source_window_base::refresh_all):
2392 Update.
2393 * tui/tui-wingeneral.h
2394 (tui_check_and_display_highlight_if_needed): Don't declare.
2395 * tui/tui-wingeneral.c
2396 (tui_win_info::check_and_display_highlight_if_needed): Rename from
2397 check_and_display_highlight_if_needed.
2398 * tui/tui-win.c (tui_rehighlight_all)
2399 (tui_win_info::make_visible_with_new_height): Update.
2400 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2401 (tui_data_window::erase_data_content)
2402 (tui_data_window::display_all_data): Update.
2403 * tui/tui-data.h (struct tui_win_info)
2404 <check_and_display_highlight_if_needed>: Declare.
2405
fede5273
TT
24062019-08-13 Tom Tromey <tom@tromey.com>
2407
2408 * tui/tui-win.c (tui_resize_all): Call
2409 tui_delete_invisible_windows.
2410 * tui/tui-layout.c (show_layout): Call
2411 tui_delete_invisible_windows.
2412 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2413 * tui/tui-data.c (tui_delete_invisible_windows): New function.
2414
22c3f490
TT
24152019-08-13 Tom Tromey <tom@tromey.com>
2416
2417 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
2418 tui_add_win_to_layout.
2419
16cb7910
TT
24202019-08-13 Tom Tromey <tom@tromey.com>
2421
2422 * tui/tui-layout.h (tui_default_win_height): Don't declare.
2423 * tui/tui-layout.c (tui_default_win_height): Now static.
2424
cc0c3ffb
TT
24252019-08-13 Tom Tromey <tom@tromey.com>
2426
2427 * tui/tui-layout.c (show_layout): Unify all layout cases into a
2428 single switch.
2429 (show_source_disasm_command, show_source_or_disasm_and_command):
2430 Don't check current layout.
2431
3f3ffe54
TT
24322019-08-13 Tom Tromey <tom@tromey.com>
2433
2434 * tui/tui-wingeneral.c (make_all_visible): Remove.
2435 (tui_make_all_invisible): Simplify.
2436 * tui/tui-layout.c (tui_make_all_invisible): Move from
2437 tui-wingeneral.c; simplify.
2438 (show_layout): Hoist call to tui_make_all_invisible.
2439 (show_data): Don't call tui_make_all_invisible.
2440
69258091
TT
24412019-08-13 Tom Tromey <tom@tromey.com>
2442
2443 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
2444 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
2445
62cf57fe
TT
24462019-08-13 Tom Tromey <tom@tromey.com>
2447
2448 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
2449 tui-data.c.
2450 (show_source_disasm_command, show_data)
2451 (show_source_or_disasm_and_command): Don't use
2452 tui_set_current_layout_to.
2453 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
2454 * tui/tui-data.c (current_layout, tui_current_layout): Move to
2455 tui-layout.c.
2456 (tui_set_current_layout_to): Remove.
2457
2afade5d
TT
24582019-08-13 Tom Tromey <tom@tromey.com>
2459
2460 * tui/tui-layout.c (tui_set_layout): Update.
2461 * tui/tui-data.h (struct tui_layout_def): Remove.
2462 (tui_layout_def): Don't declare.
2463 * tui/tui-data.c (layout_def): Remove.
2464 (tui_layout_def): Remove.
2465
a3504e96
TT
24662019-08-13 Tom Tromey <tom@tromey.com>
2467
2468 * tui/tui-winsource.h (struct tui_source_window_base)
2469 <clear_detail>: No longer "override".
2470 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
2471 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
2472 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
2473 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
2474 Remove.
2475 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
2476
29c92911
TT
24772019-08-13 Tom Tromey <tromey@adacore.com>
2478
2479 * tracepoint.c: Don't include readline.h or history.h.
2480
86c6b807
TT
24812019-08-12 Tom Tromey <tom@tromey.com>
2482
2483 * configure: Rebuild.
2484 * configure.ac: Check for readline 7.
2485 * NEWS: Mention readline 7 requirement.
2486 * README: Update.
2487
5db2718c
TT
24882019-08-12 Tom Tromey <tom@tromey.com>
2489
2490 * mingw-hdep.c (gdb_select): Remove readline hack.
2491
dac36daf
PFC
24922019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2493
2494 * blockframe.c (find_pc_partial_function): Set *block to nullptr
2495 when the function fails.
2496
1022c627
AA
24972019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2498
2499 * s390-tdep.c (s390_type_align): New function.
2500 (s390_gdbarch_init): Set it as type_align gdbarch method.
2501
eba4caf2
TV
25022019-08-09 Tom de Vries <tdevries@suse.de>
2503
2504 PR gdb/24591
2505 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2506 pc_low with relocation offset.
2507
123cd851
TT
25082019-08-07 Tom Tromey <tromey@adacore.com>
2509
2510 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2511 (print_frame_args): Update.
2512 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2513 Update.
2514 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2515 * frame.h (struct frame_arg): Add initializers.
2516 <error>: Now a unique_xmalloc_ptr.
2517
3d31bc39
AH
25182019-08-07 Alan Hayward <alan.hayward@arm.com>
2519
2520 * NEWS: Expand the Pointer Authentication entry.
2521 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2522 (aarch64_frame_unmask_lr): ... to this.
2523 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2524 Call aarch64_frame_unmask_lr.
2525 * frame.c (struct frame_info): Add "masked" variable.
2526 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2527 (fprint_frame): Check for masked pc.
2528 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2529 declarations.
2530 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2531 * stack.c (print_frame): Check for masked pc.
2532
0cf9feb9
TT
25332019-08-06 Tom Tromey <tom@tromey.com>
2534
2535 * stabsread.c (patch_block_stabs, read_one_struct_field)
2536 (read_enum_type): Use obstack_strndup.
2537 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2538 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2539 * dwarf2read.c (guess_full_die_structure_name)
2540 (anonymous_struct_prefix): Use obstack_strndup.
2541 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2542 * c-exp.y (yylex): Use obstack_strndup.
2543 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2544 (write_var_or_type): Use obstack_strndup.
2545
efba19b0
TT
25462019-08-06 Tom Tromey <tom@tromey.com>
2547
2548 * symfile.c (reread_symbols): Use obstack_strdup.
2549 * stabsread.c (read_type): Use obstack_strdup.
2550 * gdb_obstack.h (obstack_strdup): New overload.
2551 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2552 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2553 (dwarf2_canonicalize_name): Use obstack_strdup.
2554 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2555 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2556 Use obstack_strdup.
2557
f25102f7
TT
25582019-08-06 Tom Tromey <tom@tromey.com>
2559
2560 * gdb_obstack.h (obstack_strdup): Define.
2561 * gdb_obstack.c (obstack_strdup): Don't define.
2562
021887d8
TT
25632019-08-06 Tom Tromey <tom@tromey.com>
2564
2565 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2566 obstack_strdup.
2567 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2568 obstack_strdup.
2569 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2570 * stabsread.c (common_block_start): Use obstack_strdup.
2571 * objfiles.c (set_objfile_main_name, objfile): Use
2572 obstack_strdup.
2573 * namespace.c (add_using_directive): Use obstack_strdup.
2574 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2575 * jit.c (finalize_symtab): Use obstack_strdup.
2576 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2577 (guess_partial_die_structure_name, partial_die_info::fixup)
2578 (dwarf2_name): Use obstack_strdup.
2579 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2580 obstack_strdup.
2581 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2582 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2583 obstack_strdup.
2584 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2585
d2834edc
PW
25862019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2587
2588 * unittests/help-doc-selftests.c: New file.
2589 * Makefile.in: Add the new file.
2590
590042fc
PW
25912019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2592
2593 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2594 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2595 the full first line, except when FOR_VALUE_PREFIX. In this case,
2596 the trailing '.' is not output, and the first character is uppercased.
2597 (print_help_for_command): Update call to print_doc_line.
2598 (print_doc_of_command): Likewise.
2599 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2600 * cli/cli-option.c (append_indented_doc): Do not append newline.
2601 (build_help_option): Append newline after first appended_indented_doc
2602 only if a second call is done.
2603 (build_help): Append 2 new lines before each option, except the first
2604 one.
2605 * compile/compile.c (_initialize_compile): Add new lines after
2606 %OPTIONS%, when not at the end of the help.
2607 Change help doc or code
2608 producing the help doc to respect the invariants.
2609 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2610 Also removed the new line after 'Options:', as all other commands
2611 do not put an empty line between 'Options:' and the first option.
2612 * printcmd.c (_initialize_printcmd): Likewise.
2613 * stack.c (_initialize_stack): Likewise.
2614 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2615 incorrectly telling COMMAND is optional.
2616 * ada-lang.c (_initialize_ada_language): Change help doc or code
2617 producing the help doc to respect the invariants.
2618 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2619 * breakpoint.c (_initialize_breakpoint): Likewise.
2620 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2621 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2622 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2623 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2624 _initialize_cli_style): Likewise.
2625 * corelow.c (core_target_info): Likewise.
2626 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2627 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2628 * filesystem.c (_initialize_filesystem): Likewise.
2629 * frame.c (_initialize_frame): Likewise.
2630 * gnu-nat.c (add_task_commands): Likewise.
2631 * infcall.c (_initialize_infcall): Likewise.
2632 * infcmd.c (_initialize_infcmd): Likewise.
2633 * interps.c (_initialize_interpreter): Likewise.
2634 * language.c (_initialize_language): Likewise.
2635 * linux-fork.c (_initialize_linux_fork): Likewise.
2636 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2637 * maint.c (_initialize_maint_cmds): Likewise.
2638 * memattr.c (_initialize_mem): Likewise.
2639 * printcmd.c (_initialize_printcmd): Likewise.
2640 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2641 _RegEx): Likewise.
2642 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2643 * record-btrace.c (_initialize_record_btrace): Likewise.
2644 * record-full.c (_initialize_record_full): Likewise.
2645 * record.c (_initialize_record): Likewise.
2646 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2647 * regcache.c (_initialize_regcache): Likewise.
2648 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2649 _initialize_remote): Likewise.
2650 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2651 * serial.c (_initialize_serial): Likewise.
2652 * skip.c (_initialize_step_skip): Likewise.
2653 * source.c (_initialize_source): Likewise.
2654 * stack.c (_initialize_stack): Likewise.
2655 * symfile.c (_initialize_symfile): Likewise.
2656 * symtab.c (_initialize_symtab): Likewise.
2657 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2658 * top.c (init_main): Likewise.
2659 * tracefile-tfile.c (tfile_target_info): Likewise.
2660 * tracepoint.c (_initialize_tracepoint): Likewise.
2661 * tui/tui-win.c (_initialize_tui_win): Likewise.
2662 * utils.c (add_internal_problem_command): Likewise.
2663 * valprint.c (value_print_option_defs): Likewise.
2664
404f2902
FCE
26652019-08-06 Frank Ch. Eigler <fche@redhat.com>
2666
2667 PR build/24886
2668 * configure.ac: Drop enable-libmcheck support.
2669 * configure, config.in: Rebuild.
2670 * libmcheck.m4: Remove.
2671 * acinclude.m4: Don't include it.
2672 * Makefile.in: Don't distribute it.
2673 * top.c (print_gdb_configuration): Don't mention it.
2674
046bebe1
TT
26752019-08-06 Tom Tromey <tom@tromey.com>
2676
2677 * utils.c (set_output_style): Sometimes pass stream to
2678 emit_style_escape.
2679 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2680 * record-btrace.c (btrace_insn_history): Update.
2681 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2682 method.
2683 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2684 Update initializers.
2685 <m_uiout>: New field.
2686 <m_di>: Move lower.
2687 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2688 Remove "uiout" parameter.
2689 (dump_insns): Update.
2690 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2691 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2692
ddbcedf5
CB
26932019-08-06 Christian Biesinger <cbiesinger@google.com>
2694
2695 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2696 (error_in_psymtab_expansion): Likewise.
2697 (lookup_symbol_via_quick_fns): Likewise.
2698 (basic_lookup_transparent_type_quick): Likewise.
2699 (basic_lookup_transparent_type_1): Likewise.
2700
b08b16c8
TT
27012019-08-06 Tom Tromey <tromey@adacore.com>
2702
2703 * source.c (last_source_error): Now bool.
2704 (print_source_lines_base): Make "noprint" bool. Only open
2705 source file when last_source_visited changes.
2706
cb44333d
TT
27072019-08-06 Tom Tromey <tromey@adacore.com>
2708
2709 * annotate.c (annotate_source_line): Use g_source_cache.
2710 * source-cache.c (source_cache::get_plain_source_lines): Change
2711 parameters. Populate m_offset_cache.
2712 (source_cache::ensure): New method.
2713 (source_cache::get_line_charpos): New method.
2714 (extract_lines): Move lower. Change parameters.
2715 (source_cache::get_source_lines): Move lower.
2716 * source-cache.h (class source_cache): Update comment.
2717 <get_line_charpos>: New method.
2718 <get_source_lines>: Update comment.
2719 <clear>: Clear m_offset_cache.
2720 <get_plain_source_lines>: Change parameters.
2721 <ensure>: New method
2722 <m_offset_cache>: New member.
2723 * source.c (forget_cached_source_info_for_objfile): Update.
2724 (info_source_command): Use g_source_cache.
2725 (find_source_lines, open_source_file_with_line_charpos): Remove.
2726 (print_source_lines_base, search_command_helper): Use g_source_cache.
2727 * source.h (open_source_file_with_line_charpos): Don't declare.
2728 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2729 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2730 Use g_source_cache.
2731
872dceaa
TT
27322019-08-06 Tom Tromey <tromey@adacore.com>
2733
2734 * source-cache.c (source_cache::get_plain_source_lines):
2735 Remove "first_line" and "last_line" parameters.
2736 (source_cache::get_source_lines): Cache plain text.
2737 * source-cache.h (class source_cache)
2738 <get_plain_source_lines>: Update.
2739
269249d9
TT
27402019-08-06 Tom Tromey <tromey@adacore.com>
2741
2742 * source-cache.c (extract_lines): No longer a method.
2743 Changed type of parameter. Include final newline.
2744 (selftests::extract_lines_test): New function.
2745 (_initialize_source_cache): Likewise.
2746 * source-cache.h (class source_cache)
2747 <extract_lines>: Don't declare.
2748
c0e8dcd8
TT
27492019-08-06 Tom Tromey <tromey@adacore.com>
2750
2751 * breakpoint.c (init_breakpoint_sal): Update.
2752 (breakpoint): Update.
2753 * breakpoint.h (struct breakpoint) <filter>: Now a
2754 unique_xmalloc_ptr.
2755
0b27c27d
CB
27562019-08-05 Christian Biesinger <cbiesinger@google.com>
2757
2758 * NEWS: Mention dictionary access on blocks.
2759 * python/py-block.c (blpy_getitem): New function.
2760 (block_object_as_mapping): New struct.
2761 (block_object_type): Use new struct for tp_as_mapping field.
2762
4ee94178
CB
27632019-08-05 Christian Biesinger <cbiesinger@google.com>
2764
2765 * objfiles.h (objfile): Add a comment describing partial symbols.
2766
8abfcabc
TT
27672019-08-05 Tom Tromey <tromey@adacore.com>
2768
2769 * compile/compile.c (_initialize_compile): Use _(), not N_().
2770 * thread.c (_initialize_thread): Use _(), not N_().
2771 * stack.c (_initialize_stack): Use _(), not N_().
2772 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2773
2b79f376
SM
27742019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2775
2776 * dwarf2read.c (struct dw2_symtab_iterator):
2777 <want_specific_block>: Remove.
2778 <block_index>: Change type to gdb::optional.
2779 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2780 change type of BLOCK_INDEX parameter to gdb::optional.
2781 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2782 (dw2_lookup_symbol): Don't pass argument for
2783 WANT_SPECIFIC_BLOCK.
2784 (dw2_expand_symtabs_for_function): Don't pass argument for
2785 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2786 (class dw2_debug_names_iterator)
2787 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2788 parameter, change BLOCK_INDEX type to gdb::optional.
2789 <m_want_specific_block>: Remove.
2790 <m_block_index>: Change type to gdb::optional.
2791 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2792 gdb::optional. Re-write in function of gdb::optional.
2793 (dw2_debug_names_lookup_symbol): Don't pass argument for
2794 WANT_SPECIFIC_BLOCK.
2795 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2796 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2797 BLOCK_INDEX.
2798
ae60f04e
PW
27992019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2800
2801 * NEWS: Mention changes to "info sources" command.
2802
28cd9371
PW
28032019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2804
2805 * symtab.c (filename_partial_match_opts): New struct type.
2806 (struct output_source_filename_data): New members
2807 regexp, c_regexp, partial_match.
2808 (output_source_filename): Use new members to decide to print file.
2809 (info_sources_option_defs): New variable.
2810 (make_info_sources_options_def_group, print_info_sources_header,
2811 info_sources_command_completer):
2812 New functions.
2813 (info_sources_command): Read new optional arguments.
2814 (_initialize_symtab): Update info sources help.
2815
ca683e3a
AO
28162019-08-02 Alexandre Oliva <oliva@adacore.com>
2817
2818 * ada-lang.c (exception_support_info_v0): Renamed from...
2819 (default_exception_support_info): ... this. Create new
2820 definition for v1.
2821 (ada_has_this_exception_support): Look up catch_handlers_sym.
2822 (ada_exception_support_info_sniffer): Try v0 after default.
2823
f1264162
TT
28242019-08-01 Tom Tromey <tromey@adacore.com>
2825
2826 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2827 gdbarch.h.
2828
0a7b2485
CB
28292019-08-01 Christian Biesinger <cbiesinger@google.com>
2830
2831 * s12z-tdep.c: Fix include path for s12z-opc.h.
2832
c6bdbeb7
AH
28332019-08-01 Alan Hayward <alan.hayward@arm.com>
2834
2835 * NEWS: Require GNU make 3.82.
2836
a2bd7b82
TT
28372019-07-16 Tom Tromey <tom@tromey.com>
2838
2839 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2840 declare.
2841
aa3b6533
TT
28422019-07-30 Tom Tromey <tromey@adacore.com>
2843
2844 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2845
a1530dc7
KB
28462019-07-30 Kevin Buettner <kevinb@redhat.com>
2847
2848 * printcmd.c (print_address_symbolic): Print negative offsets.
2849 (build_address_symbolic): Force signed arithmetic when computing
2850 offset.
2851
2906593f
CB
28522019-07-30 Christian Biesinger <cbiesinger@google.com>
2853
2854 PR/24474: Add a function to lookup static variables.
2855 * NEWS: Mention this new function.
2856 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2857 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2858 * python/python.c (python_GdbMethods): Add new function.
2859
c620ed88
CB
28602019-07-29 Christian Biesinger <cbiesinger@google.com>
2861
2862 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2863 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2864 (objfpy_lookup_static_symbol): New function.
2865 (objfile_object_methods): Add new functions.
2866
bc4268a5
PW
28672019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2868
2869 * NEWS: Mention 'set|show print frame-info'. Mention new
2870 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2871 backtrace argument. Mention that python frame filtering code
2872 is now consistent with what 'backtrace' command prints.
2873
4b5e8d19
PW
28742019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2875
2876 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2877 comments.
2878 (print_frame_info_auto, print_frame_info_source_line,
2879 print_frame_info_location, print_frame_info_source_and_location,
2880 print_frame_info_location_and_address, print_frame_info_short_location):
2881 New declarations.
2882 (struct frame_print_options): New member print_frame_info.
2883 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2884 * stack.h (get_user_print_what_frame_info): New declaration.
2885 (frame_show_address): New declaration.
2886 * stack.c (print_frame_arguments_choices): New value 'presence'.
2887 (print_frame_info_auto, print_frame_info_source_line,
2888 print_frame_info_location, print_frame_info_source_and_location,
2889 print_frame_info_location_and_address, print_frame_info_short_location,
2890 print_frame_info_choices, print_frame_info_print_what): New definitions.
2891 (print_frame_args): Only print dots for args if print frame-arguments
2892 is 'presence'.
2893 (frame_print_option_defs): New element for "frame-info".
2894 (get_user_print_what_frame_info): New function.
2895 (frame_show_address): Make non static. Move comment to stack.h.
2896 (print_frame_info_to_print_what): New function.
2897 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2898 to decide what to print.
2899 (backtrace_command_1): Handle the new print_frame_arguments_presence
2900 value.
2901 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2902 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2903 (py_print_frame): In non-mi mode, use LOCATION as default for
2904 print_what, similarly to frame information printed directly by
2905 backtrace command. Handle frame-info user option in non MI mode.
2906
6bdfee81
KB
29072019-07-27 Kevin Buettner <kevinb@redhat.com>
2908
2909 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2910 Add case for debugging 32-bit target on 64-bit host. Revise
2911 comment.
2912
98a617f8
KB
29132019-07-27 Kevin Buettner <kevinb@redhat.com>
2914
2915 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2916 instead of find_function_entry_range_from_pc.
2917
567238c9
KB
29182019-07-27 Kevin Buettner <kevinb@redhat.com>
2919
2920 * stack.c (find_frame_funname): Remove code which preferred
2921 minsym over symtab sym in "certain pathological cases".
2922
2dc80cf8
KB
2923 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2924 parameter. Change type of "do_demangle" to bool.
2925 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2926 Pass suitable "prefer_sym_over_minsym" flag to
2927 build_address_symbolic(). Don't output "+" for negative offsets.
2928 * printcmd.c (print_address_symbolic): Update invocation of
2929 build_address_symbolic to include a "prefer_sym_over_minsym"
2930 flag.
2931 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2932 Restrict cases in which use of minimal symbol is preferred to that
2933 of a found symbol. Update comments.
2934
1aff7173
KB
2935 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2936 for entry pc when entry pc is out of range for that FDE.
2937
89b085ac
BC
29382019-07-26 Brian Callahan <bcallah@openbsd.org>
2939
2940 PR gdb/24839:
2941 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2942 type.
2943
f32feb4a
CB
29442019-07-25 Christian Biesinger <cbiesinger@google.com>
2945
2946 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2947 this function's Python signature.
2948
2949
29502019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
2951
2952 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2953 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2954 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2955 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2956 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2957
2958
c54e4253
YS
29592019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2960
2961 * h8300-tdep.c (h8300_register_name_common): New.
2962 h8300_register_name): Use h8300_register_name_common.
2963 (h8300s_register_name): Likewise.
2964 (h8300sx_register_name): Likewise.
2965 (h8300h_register_nam): New.
2966 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2967
2968
40eadf04
SP
29692019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2970
2971 * arm-tdep.c (arm_skip_cmse_entry): New function.
2972 (arm_is_sgstubs_section): New function.
2973 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2974
bfa2a36d
TT
29752019-07-22 Tom Tromey <tom@tromey.com>
2976
2977 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2978 Don't self-assign.
2979
a8e9d247
AB
29802019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2981
2982 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2983 type_print.
2984
eb86c5e2
AB
29852019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2986
2987 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2988 so that GDB doesn't match any msymbols when searching in the
2989 TYPES_DOMAIN.
2990 (print_symbol_info): Print using typedef_print or type_print based
2991 on the type of the symbol. Add updated FIXME comment moved from...
2992 (_initialize_symtab): ... move and update FIXME comment to above.
2993
a8eab7c6
AB
29942019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2995
2996 * NEWS: Mention adding -q option to "info types".
2997 * symtab.c (struct info_types_options): New struct.
2998 (info_types_options_defs): New variable.
2999 (make_info_types_options_def_group): New function.
3000 (info_types_command): Use gdb::option framework to parse options.
3001 (info_types_command_completer): New function.
3002 (_initialize_symtab): Extend the help text on "info types" and
3003 register command completer.
3004
b4603c34
CB
30052019-07-21 Christian Biesinger <cbiesinger@google.com>
3006
3007 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3008 (lookup_symbol_in_objfile): Change int to block_enum and add a
3009 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3010
c8cdc1e0
CB
30112019-07-20 Christian Biesinger <cbiesinger@google.com>
3012
3013 * MAINTAINERS (Write After Approval): Add self.
3014
01e175fe
AB
30152019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3016
3017 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3018 instruction to the dummy code region.
3019
56f79b63
TT
30202019-07-19 Tom Tromey <tromey@adacore.com>
3021
3022 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3023 (ARGSUSED, PARAMS, __func__): Remove rules.
3024
4c5aa8e0
AH
30252019-07-19 Alan Hayward <alan.hayward@arm.com>
3026
3027 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3028 * features/arm/arm-with-iwmmxt.c: Remove.
3029 * features/arm/arm-with-iwmmxt.xml: Remove.
3030 * features/arm/arm-with-m-fpa-layout.c: Remove.
3031 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3032 * features/arm/arm-with-m-vfp-d16.c: Remove.
3033 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3034 * features/arm/arm-with-m.c: Remove.
3035 * features/arm/arm-with-m.xml: Remove.
3036 * features/arm/arm-with-neon.c: Remove.
3037 * features/arm/arm-with-neon.xml: Remove.
3038 * features/arm/arm-with-vfpv2.c: Remove.
3039 * features/arm/arm-with-vfpv2.xml: Remove.
3040 * features/arm/arm-with-vfpv3.c: Remove.
3041 * features/arm/arm-with-vfpv3.xml: Remove.
3042
f42b2617
AH
30432019-07-19 Alan Hayward <alan.hayward@arm.com>
3044
3045 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3046
f29ec966
AH
30472019-07-19 Alan Hayward <alan.hayward@arm.com>
3048
3049 * arch/aarch32.c (aarch32_create_target_description): Create
3050 target descriptions using features.
3051 * arch/arm.c (arm_create_target_description)
3052 (arm_create_mprofile_target_description): Likewise.
3053 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3054
d105cce5
AH
30552019-07-19 Alan Hayward <alan.hayward@arm.com>
3056
3057 * Makefile.in: Add new files.
3058 * aarch32-tdep.c: New file.
3059 * aarch32-tdep.h: New file.
3060 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3061 Call aarch32_read_description.
3062 * arch/aarch32.c: New file.
3063 * arch/aarch32.h: New file.
3064 * arch/arm.c (arm_create_target_description)
3065 (arm_create_mprofile_target_description): New function.
3066 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3067 (arm_create_target_description)
3068 (arm_create_mprofile_target_description): New declaration.
3069 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3070 read_description functions.
3071 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3072 Likewise.
3073 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3074 * arm-tdep.c (tdesc_arm_list): New variable.
3075 (arm_register_g_packet_guesses): Call create description functions.
3076 (arm_read_description) (arm_read_mprofile_description): New
3077 function.
3078 * arm-tdep.h (arm_read_description)
3079 (arm_read_mprofile_description): Add declaration.
3080 * configure.tgt: Add new files.
3081
afe09f0b
GL
30822019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3083
3084 * top.c (new_ui_command): Open specified terminal just once.
3085
cd215b2e
TT
30862019-07-18 Tom Tromey <tromey@adacore.com>
3087
3088 * symtab.c (main_name): Constify return type.
3089 * symfile.c (set_initial_language): Update.
3090 * symtab.h (main_name): Constify return type.
3091
d8f68fcb
TT
30922019-07-17 Tom Tromey <tom@tromey.com>
3093
3094 * tui/tui-winsource.c (tui_update_source_window)
3095 (tui_update_source_window_as_is)
3096 (tui_update_source_windows_with_line): Remove return.
3097 * tui/tui-disasm.c (tui_show_disassem)
3098 (tui_show_disassem_and_update_source): Remove return.
3099 * tui/tui.c (tui_reset): Remove return.
3100 * tui/tui-wingeneral.c
3101 (tui_check_and_display_highlight_if_needed): Remove return.
3102
ca5af91e
TT
31032019-07-17 Tom Tromey <tom@tromey.com>
3104
3105 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3106
5104fe36
TT
31072019-07-17 Tom Tromey <tom@tromey.com>
3108
3109 * tui/tui-winsource.h (struct tui_exec_info_window)
3110 (struct tui_source_window_base): Move from tui-data.h.
3111 * tui/tui-winsource.c: Move many method definitions from
3112 elsewhere. Remove "structuring" comments.
3113 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3114 (tui_source_window_base::refresh_window): Move to
3115 tui-winsource.c.
3116 * tui/tui-win.c (tui_source_window_base::refresh_all)
3117 (tui_source_window_base::update_tab_width)
3118 (tui_source_window_base::set_new_height)
3119 (tui_source_window_base::do_make_visible_with_new_height): Move to
3120 tui-winsource.c.
3121 * tui/tui-source.h: Update.
3122 * tui/tui-source.c (tui_source_window_base::reset): Move to
3123 tui-winsource.c.
3124 * tui/tui-disasm.h: Update.
3125 * tui/tui-data.h (struct tui_exec_info_window): Move to
3126 tui-winsource.h.
3127 (struct tui_source_window_base): Likewise.
3128 * tui/tui-data.c (tui_source_window_base::clear_detail)
3129 (tui_source_window_base, ~tui_source_window_base): Move to
3130 tui-winsource.c.
3131
daa15dde
TT
31322019-07-17 Tom Tromey <tom@tromey.com>
3133
3134 * tui/tui-win.c (tui_resize_all)
3135 (tui_source_window_base::update_tab_width)
3136 (tui_adjust_win_heights): Update.
3137 (tui_win_info::make_invisible_and_set_new_height): Rename from
3138 make_invisible_and_set_new_height.
3139 * tui/tui-data.h (struct tui_win_info)
3140 <make_invisible_and_set_new_height>: New method.
3141
bfad4537
TT
31422019-07-17 Tom Tromey <tom@tromey.com>
3143
3144 * tui/tui.c: Update.
3145 * tui/tui-source.h (struct tui_source_window): Move from
3146 tui-data.h.
3147 * tui/tui-layout.c: Update.
3148 * tui/tui-disasm.c: Update.
3149 * tui/tui-data.h (struct tui_source_window): Move to
3150 tui-source.h.
3151
88f7e873
TT
31522019-07-17 Tom Tromey <tom@tromey.com>
3153
3154 * tui/tui-disasm.h (struct tui_disasm_window): Move from
3155 tui-data.h.
3156 * tui/tui-data.h (struct tui_disasm_window): Move to
3157 tui-disasm.h.
3158
96bd6233
TT
31592019-07-17 Tom Tromey <tom@tromey.com>
3160
3161 * tui/tui-regs.h (struct tui_data_item_window): Move from
3162 tui-data.h.
3163 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3164 * tui/tui-data.h (struct tui_data_item_window): Move to
3165 tui-regs.h.
3166 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3167
ce38393b
TT
31682019-07-17 Tom Tromey <tom@tromey.com>
3169
3170 * tui/tui.c: Update.
3171 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3172 (tui_cmd_window::max_height): Move to tui-command.c.
3173 * tui/tui-layout.c: Update.
3174 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3175 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3176 tui-command.c.
3177 * tui/tui-command.h (struct tui_cmd_window): Move from
3178 tui-data.h.
3179 * tui/tui-command.c: Remove "structuring" comments.
3180 (tui_cmd_window::clear_detail)
3181 (tui_cmd_window::do_make_visible_with_new_height)
3182 (tui_cmd_window::max_height): Move from elsewhere.
3183
2d8b51cb
TT
31842019-07-17 Tom Tromey <tom@tromey.com>
3185
3186 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3187 Now static.
3188 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3189 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3190
18ab23af
TT
31912019-07-17 Tom Tromey <tom@tromey.com>
3192
3193 * tui/tui.c: Update.
3194 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3195 tui-regs.c.
3196 * tui/tui-windata.h: Remove file.
3197 * tui/tui-windata.c: Remove file.
3198 * tui/tui-win.c (tui_data_window::set_new_height)
3199 (tui_data_window::do_make_visible_with_new_height): Move to
3200 tui-regs.c.
3201 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3202 * tui/tui-regs.c: Remove "structuring" comments.
3203 (tui_data_window::first_data_item_displayed)
3204 (tui_data_window::delete_data_content_windows)
3205 (tui_data_window::erase_data_content)
3206 (tui_data_window::display_all_data)
3207 (tui_data_window::refresh_all)
3208 (tui_data_window::do_scroll_vertical)
3209 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3210 (tui_data_window::do_make_visible_with_new_height)
3211 (tui_data_window::refresh_window): Move from elsewhere.
3212 (_initialize_tui_regs): Move to end of file.
3213 * tui/tui-layout.c: Update.
3214 * tui/tui-hooks.c: Update.
3215 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3216 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3217 tui-regs.c.
3218 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3219
88b7e7cc
TT
32202019-07-17 Tom Tromey <tom@tromey.com>
3221
3222 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3223 seen.
3224
0fcd3711
TT
32252019-07-17 Tom Tromey <tom@tromey.com>
3226
3227 * tui/tui-win.c (tui_source_window_base::set_new_height)
3228 (tui_source_window_base::do_make_visible_with_new_height): Use
3229 m_has_locator field directly.
3230 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3231 method.
3232 (struct tui_source_window_base) <has_locator>: Likewise.
3233
4a38112d
TT
32342019-07-17 Tom Tromey <tom@tromey.com>
3235
3236 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3237 Don't declare.
3238 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3239 Remove.
3240 * tui/tui-win.c (tui_source_window_base::set_new_height)
3241 (tui_source_window_base::set_new_height)
3242 (make_invisible_and_set_new_height)
3243 (tui_source_window_base::do_make_visible_with_new_height)
3244 (tui_source_window_base::do_make_visible_with_new_height):
3245 Update.
3246 * tui/tui-layout.c (show_source_disasm_command, show_data)
3247 (show_source_or_disasm_and_command): Update.
3248 * tui/tui-layout.c (show_layout): Update.
3249
09129226
TT
32502019-07-17 Tom Tromey <tom@tromey.com>
3251
3252 * tui/tui-layout.c (make_data_window): Remove.
3253 (show_data): Unify creation and re-initialization cases.
3254
4a8a5e84
TT
32552019-07-17 Tom Tromey <tom@tromey.com>
3256
3257 * tui/tui-layout.c (make_source_window, make_disasm_window):
3258 Remove.
3259 (show_data): Unify creation and re-initialization cases.
3260
76d2be8e
TT
32612019-07-17 Tom Tromey <tom@tromey.com>
3262
3263 * tui/tui-layout.c (make_command_window): Remove.
3264 (show_source_disasm_command, show_source_or_disasm_and_command):
3265 Unify creation and re-initialization cases.
3266
890b8bde
TT
32672019-07-17 Tom Tromey <tom@tromey.com>
3268
3269 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3270 creation and re-initialization cases.
3271
2cdfa113
TT
32722019-07-17 Tom Tromey <tom@tromey.com>
3273
3274 * tui/tui-regs.c (tui_get_register): Return void.
3275
8e3cfd09
TT
32762019-07-17 Tom Tromey <tom@tromey.com>
3277
3278 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3279 Simplify.
3280
f4e04977
TT
32812019-07-17 Tom Tromey <tom@tromey.com>
3282
3283 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3284 resetting.
3285
0379b883
TT
32862019-07-17 Tom Tromey <tom@tromey.com>
3287
3288 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3289 * tui/tui-regs.c (tui_reg_layout): New function.
3290 (tui_show_registers, tui_reg_command): Use it.
3291 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3292 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3293 parameters.
3294 (tui_layout_command): Remove.
3295
b7fbad91
TT
32962019-07-17 Tom Tromey <tom@tromey.com>
3297
3298 * tui/tui-layout.h (tui/tui-layout): Return void.
3299 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3300
4e1e56b9
TT
33012019-07-17 Tom Tromey <tom@tromey.com>
3302
3303 * tui/tui-layout.c (show_source_disasm_command, show_data):
3304 Update.
3305 (reset_locator): Remove.
3306 (show_source_or_disasm_and_command): Update.
3307
1e0c09ba
TT
33082019-07-17 Tom Tromey <tom@tromey.com>
3309
3310 * tui/tui-source.c (tui_source_window_base::reset): Remove
3311 win_type parameter.
3312 * tui/tui-layout.c (make_command_window, make_source_window)
3313 (make_disasm_window, make_data_window)
3314 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3315 (reset_locator, show_source_or_disasm_and_command): Update.
3316 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3317 win_type parameter.
3318 (struct tui_source_window_base) <reset>: Likewise.
3319
1bf605de
TT
33202019-07-17 Tom Tromey <tom@tromey.com>
3321
3322 * tui/tui-layout.c (show_source_disasm_command): Use
3323 reset_locator.
3324 (reset_locator): New function.
3325 (init_and_make_win): Remove.
3326 (show_source_or_disasm_and_command): Use reset_locator.
3327
098f9ed4
TT
33282019-07-17 Tom Tromey <tom@tromey.com>
3329
3330 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3331 condition.
3332 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3333 Remove condition.
3334 * tui/tui-source.c (tui_source_window_base::reset): New method.
3335 * tui/tui-layout.c (make_command_window): Don't call
3336 init_and_make_win.
3337 (make_source_window, make_disasm_window): Don't call
3338 make_source_or_disasm_window.
3339 (make_data_window): Don't call init_and_make_win. Change calling
3340 convention.
3341 (show_source_disasm_command, show_data): Simplify.
3342 (make_source_or_disasm_window): Remove.
3343 (show_source_or_disasm_and_command): Simplify.
3344 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3345 (struct tui_source_window_base) <reset>: Likewise.
3346 <execution_info>: Remove initializer.
3347 * tui/tui-data.c (tui_source_window_base): Initialize
3348 execution_info.
3349
80110957
TT
33502019-07-17 Tom Tromey <tom@tromey.com>
3351
3352 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3353 variable.
3354
cf82af05
TT
33552019-07-17 Tom Tromey <tom@tromey.com>
3356
3357 * tui/tui.c (tui_rl_other_window): Update.
3358 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3359 superclass method first. Always iterate over regs_content.
3360 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3361 method.
3362 * tui/tui-win.c (tui_set_focus_command): Update.
3363
01aeb396
TT
33642019-07-17 Tom Tromey <tom@tromey.com>
3365
3366 * tui/tui-win.c (tui_set_focus_command): Rename from
3367 tui_set_focus. Call tui_enable.
3368 (tui_set_focus_command): Remove.
3369
fd6c75ee
TT
33702019-07-17 Tom Tromey <tom@tromey.com>
3371
3372 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3373 refresh_window.
3374 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3375 touchwin.
3376 (tui_data_window::refresh_window): Call refresh_window on data
3377 items. Always call superclass refresh_window.
3378 (tui_win_info::refresh): Remove.
3379 (tui_source_window_base::refresh_window): Update.
3380 (tui_refresh_all): Update.
3381 * tui/tui-layout.c (show_source_disasm_command): Remove call to
3382 refresh_window.
3383 (show_source_or_disasm_and_command): Likewise.
3384 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3385 (struct tui_source_window_base) <refresh>: Likewise.
3386
f6cc34a9
TT
33872019-07-17 Tom Tromey <tom@tromey.com>
3388
3389 * tui/tui-winsource.c (tui_clear_source_content)
3390 (tui_show_source_content): Update.
3391 * tui/tui-source.c (tui_source_window::showing_source_p): Check
3392 whether content is empty.
3393 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3394 Remove.
3395
f31ec9af
TT
33962019-07-17 Tom Tromey <tom@tromey.com>
3397
3398 * tui/tui-winsource.c (tui_erase_source_content): Clear the
3399 window's contents.
3400 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3401 * tui/tui-source.c (tui_set_source_content_nil): Remove.
3402
d1b6f1e5
TT
34032019-07-17 Tom Tromey <tom@tromey.com>
3404
3405 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3406 (struct tui_data_item_window): Update.
3407
d9743a13
TT
34082019-07-17 Tom Tromey <tom@tromey.com>
3409
3410 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3411 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3412 defines.
3413
caf0bc4e
TT
34142019-07-17 Tom Tromey <tom@tromey.com>
3415
3416 * tui/tui-winsource.h (tui_erase_source_content)
3417 (tui_clear_source_content): Remove "display_prompt" parameter.
3418 * tui/tui-winsource.c (tui_update_source_window_as_is)
3419 (tui_update_source_windows_with_addr): Update.
3420 (tui_clear_source_content): Remove "display_prompt" parameter.
3421 (tui_erase_source_content): Likewise. Simplify.
3422 (tui_show_source_content): Update.
3423 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3424 * tui/tui-stack.c (tui_show_frame_info): Update.
3425 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3426 Remove defines.
3427
9d391078
TT
34282019-07-17 Tom Tromey <tom@tromey.com>
3429
3430 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3431 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
3432 parameter.
3433 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
3434 parameter.
3435
a38da35d
TT
34362019-07-17 Tom Tromey <tom@tromey.com>
3437
3438 * tui/tui-winsource.c (tui_clear_source_content)
3439 (tui_show_source_content, tui_show_exec_info_content)
3440 (tui_clear_exec_info_content): Update.
3441 * tui/tui-stack.c (tui_show_locator_content): Update.
3442 (tui_show_frame_info): Update.
3443 * tui/tui-source.h (tui_source_window): Don't declare.
3444 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
3445 from tui_source_is_displayed.
3446 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
3447 Remove field.
3448 (struct tui_source_window_base) <content_in_use>: New field. Now
3449 bool.
3450 (struct tui_source_window) <showing_source_p>: New method.
3451 (TUI_SRC_WIN): Change cast.
3452 * tui/tui-data.c (tui_initialize_static_data): Update.
3453
c2cd8994
TT
34542019-07-17 Tom Tromey <tom@tromey.com>
3455
3456 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
3457 location_matches_p.
3458 * tui/tui-source.c (tui_source_window::location_matches_p): New
3459 method.
3460 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
3461 method.
3462 * tui/tui-data.h (struct tui_source_window_base)
3463 <location_matches_p>: New method.
3464 (struct tui_source_window, struct tui_disasm_window)
3465 <location_matches_p>: Likewise.
3466
4dde7b34
TT
34672019-07-17 Tom Tromey <tom@tromey.com>
3468
3469 * tui/tui-win.c (tui_set_win_height_command): Rename from
3470 tui_set_win_height.
3471 (tui_set_win_height_command): Remove.
3472
b73dd877
TT
34732019-07-17 Tom Tromey <tom@tromey.com>
3474
3475 * tui/tui-source.c (tui_source_window): New constructor. Add
3476 observer.
3477 (~tui_source_window): New destructor.
3478 (tui_source_window::style_changed): New method.
3479 * tui/tui-hooks.c (tui_redisplay_source): Remove.
3480 (tui_attach_detach_observers): Update.
3481 * tui/tui-data.h (struct tui_source_window): Make constructor not
3482 inline. Add destructor.
3483 (struct tui_source_window) <style_changed>: New method.
3484 <m_observable>: New member.
3485
ae2b5380
TT
34862019-07-17 Tom Tromey <tom@tromey.com>
3487
3488 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3489 * tui/tui-win.c (tui_resize_all): Fix typo.
3490
1ce3e844
TT
34912019-07-17 Tom Tromey <tom@tromey.com>
3492
3493 * tui/tui-wingeneral.h (tui_refresh_all): Update.
3494 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3495 (tui_refresh_all): Remove "list" parameter. Use foreach.
3496 * tui/tui-win.c (window_name_completer): Use foreach.
3497 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3498 (update_tab_width): Likewise.
3499 * tui/tui-layout.c (show_layout): Update.
3500 * tui/tui-data.h (class tui_window_iterator): New.
3501 (struct all_tui_windows): New.
3502 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3503
fe3eaf1c
TT
35042019-07-17 Tom Tromey <tom@tromey.com>
3505
3506 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3507 parameter. Don't reference globals.
3508 (tui_reg_command): Update.
3509
368c1354
TT
35102019-07-17 Tom Tromey <tom@tromey.com>
3511
3512 * tui/tui-regs.c (tui_show_registers): Simplify.
3513
e80cd204
TT
35142019-07-17 Tom Tromey <tom@tromey.com>
3515
3516 * tui/tui-regs.c (tui_show_registers): Update.
3517 (tui_show_register_group): Add win_info parameter.
3518
aca2dd16
TT
35192019-07-17 Tom Tromey <tom@tromey.com>
3520
3521 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3522 Rename from tui_display_reg_element_at_line.
3523 (tui_data_window::display_registers_from_line): Update.
3524 * tui/tui-data.h (struct tui_data_window)
3525 <display_reg_element_at_line>: New method.
3526
517e9505
TT
35272019-07-17 Tom Tromey <tom@tromey.com>
3528
3529 * tui/tui-regs.h (tui_display_registers_from)
3530 (tui_display_registers_from_line): Don't declare.
3531 * tui/tui-windata.c (tui_data_window::display_all_data)
3532 (tui_data_window::refresh_all)
3533 (tui_data_window::do_scroll_vertical): Update.
3534 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3535 from tui_display_registers_from.
3536 (tui_display_reg_element_at_line): Update.
3537 (tui_data_window::display_registers_from_line): Rename from
3538 tui_display_registers_from_line.
3539 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3540 display_registers_from_line>: New methods.
3541
f76d8b19
TT
35422019-07-17 Tom Tromey <tom@tromey.com>
3543
3544 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3545 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3546 from tui_erase_data_content.
3547 (tui_data_window::display_all_data)
3548 (tui_data_window::refresh_all)
3549 (tui_data_window::do_scroll_vertical): Update.
3550 * tui/tui-regs.c (tui_show_registers): Update.
3551 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3552 New method.
3553
b4094625
TT
35542019-07-17 Tom Tromey <tom@tromey.com>
3555
3556 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3557 declare.
3558 * tui/tui-windata.c
3559 (tui_data_window::delete_data_content_windows): Rename from
3560 tui_delete_data_content_windows.
3561 (tui_data_window::display_all_data)
3562 (tui_data_window::do_scroll_vertical): Update.
3563 * tui/tui-data.h (struct tui_data_window)
3564 <delete_data_content_windows>: New method.
3565
c223a729
TT
35662019-07-17 Tom Tromey <tom@tromey.com>
3567
3568 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3569 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3570
50daf268
TT
35712019-07-17 Tom Tromey <tom@tromey.com>
3572
3573 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3574 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3575 from tui_display_all_data.
3576 * tui/tui-win.c
3577 (tui_data_window::do_make_visible_with_new_height): Update.
3578 * tui/tui-regs.c (tui_show_registers): Update.
3579 * tui/tui-layout.c (tui_set_layout): Update.
3580 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3581 method.
3582
df5f8cab
TT
35832019-07-17 Tom Tromey <tom@tromey.com>
3584
3585 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3586 * tui/tui-windata.c (tui_display_data_from): Remove.
3587 (tui_data_window::refresh_all): Update.
3588
80cb6c27
TT
35892019-07-17 Tom Tromey <tom@tromey.com>
3590
3591 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3592 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3593 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3594 tui_display_registers_from_line.
3595 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3596 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3597 "force_display" parameter.
3598
baff0c28
TT
35992019-07-17 Tom Tromey <tom@tromey.com>
3600
3601 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3602 declare.
3603 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3604 Rename from tui_first_reg_element_no_inline.
3605 (tui_display_reg_element_at_line)
3606 (tui_display_registers_from_line): Update.
3607 * tui/tui-data.h (struct tui_data_window)
3608 <first_reg_element_no_inline>: New method.
3609
3b23c5f2
TT
36102019-07-17 Tom Tromey <tom@tromey.com>
3611
3612 * tui/tui-windata.c (tui_display_data_from)
3613 (tui_data_window::do_scroll_vertical): Update.
3614 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3615 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3616 Rename from tui_line_from_reg_element_no.
3617 (tui_display_registers_from_line): Update.
3618 * tui/tui-data.h (struct tui_data_window)
3619 <line_from_reg_element_no>: New method.
3620
0b5ec218
TT
36212019-07-17 Tom Tromey <tom@tromey.com>
3622
3623 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3624 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3625 tui_last_regs_line_no.
3626 (tui_display_reg_element_at_line)
3627 (tui_display_registers_from_line): Update.
3628 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3629 method.
3630
0807ab7b
TT
36312019-07-17 Tom Tromey <tom@tromey.com>
3632
3633 PR tui/24722:
3634 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3635 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3636 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3637 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3638 (tui_update_breakpoint_info): Likewise.
3639 * tui/tui-hooks.c (tui_event_create_breakpoint)
3640 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3641 Update.
3642
9ad7fdef
TT
36432019-07-17 Tom Tromey <tom@tromey.com>
3644
3645 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3646
5813316f
TT
36472019-07-17 Tom Tromey <tom@tromey.com>
3648
3649 * tui/tui-winsource.c (tui_update_source_window_as_is)
3650 (tui_update_source_windows_with_addr): Update.
3651 * tui/tui-source.h (tui_set_source_content)
3652 (tui_show_symtab_source): Add "win_info" parameter.
3653 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3654 parameter.
3655 (tui_show_symtab_source): Likewise.
3656
00e264e7
TT
36572019-07-17 Tom Tromey <tom@tromey.com>
3658
3659 * tui/tui-wingeneral.c
3660 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3661
06210ce4
TT
36622019-07-17 Tom Tromey <tom@tromey.com>
3663
3664 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3665 (struct tui_cmd_window) <can_scroll>: New method.
3666 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3667 method.
3668
381befee
TT
36692019-07-17 Tom Tromey <tromey@adacore.com>
3670
3671 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3672 do_field_signed>: Rename. Change type of "value".
3673 * ui-out.c (ui_out::field_signed): Rename from field_int.
3674 Change type of "value".
3675 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3676 type of "value".
3677 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3678 do_field_int. Change type of "value".
3679 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3680 do_field_int. Change type of "value".
3681 * tracepoint.c (trace_status_mi, tfind_1)
3682 (print_one_static_tracepoint_marker): Update.
3683 * thread.c (print_thread_info_1, print_selected_thread_frame):
3684 Update.
3685 * stack.c (print_frame, print_frame_info): Update.
3686 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3687 Update.
3688 * source.c (print_source_lines_base): Update.
3689 * skip.c (info_skip_command): Update.
3690 * record-btrace.c (btrace_ui_out_decode_error)
3691 (btrace_call_history_src_line): Update.
3692 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3693 Update.
3694 * progspace.c (print_program_space): Update.
3695 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3696 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3697 do_field_int. Change type of "value".
3698 * mi/mi-out.c (mi_ui_out::do_table_begin)
3699 (mi_ui_out::do_table_header): Update.
3700 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3701 type of "value".
3702 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3703 (mi_cmd_data_list_changed_registers, output_register)
3704 (mi_cmd_data_read_memory, mi_load_progress)
3705 (mi_cmd_trace_frame_collected): Update.
3706 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3707 Update.
3708 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3709 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3710 (mi_cmd_var_list_children, varobj_update_one): Update.
3711 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3712 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3713 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3714 * inferior.c (print_inferior): Update.
3715 * gdb_bfd.c (print_one_bfd): Update.
3716 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3717 Update.
3718 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3719 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3720 do_field_int. Change type of "value".
3721 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3722 do_field_int. Change type of "value".
3723 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3724 (print_one_breakpoint_location, print_it_catch_fork)
3725 (print_one_catch_fork, print_it_catch_vfork)
3726 (print_one_catch_vfork, print_it_catch_solib)
3727 (print_it_catch_exec, print_it_ranged_breakpoint)
3728 (print_mention_watchpoint, print_mention_masked_watchpoint)
3729 (bkpt_print_it, update_static_tracepoint): Update.
3730 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3731 * break-catch-syscall.c (print_it_catch_syscall): Update.
3732 * ada-tasks.c (print_ada_task_info): Update.
3733 * ada-lang.c (print_it_exception, print_mention_exception):
3734 Update.
3735
6b78c3f8
AB
37362019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3737
3738 PR breakpoints/24541
3739 * gdbarch.c: Regenerate.
3740 * gdbarch.h: Regenerate.
3741 * gdbarch.sh: Adjust return type and parameter types for
3742 'stap_adjust_register'.
3743 (i386_stap_adjust_register): Adjust signature and return new
3744 register name.
3745 * stap-probe.c (stap_parse_register_operand): Adjust use of
3746 'gdbarch_stap_adjust_register'.
3747
d72a9b85
TT
37482019-07-17 Tom Tromey <tromey@adacore.com>
3749
3750 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3751 declare VEC.
3752 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3753 std::vector.
3754 (struct s390_process_info): Add initializers.
3755 (s390_add_process): Use new.
3756 (s390_linux_nat_target::low_forget_process): Use delete.
3757 (s390_linux_nat_target::low_new_fork)
3758 (s390_linux_nat_target::stopped_by_watchpoint)
3759 (s390_linux_nat_target::low_prepare_to_resume)
3760 (s390_linux_nat_target::insert_watchpoint)
3761 (s390_linux_nat_target::insert_hw_breakpoint)
3762 (s390_linux_nat_target::remove_watchpoint)
3763 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3764
206e6c58
JB
37652019-07-16 John Baldwin <jhb@FreeBSD.org>
3766
3767 * aarch64-fbsd-nat.c: Include regcache.h.
3768 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3769 argument.
3770 (aarch64_fbsd_nat_target::fetch_registers)
3771 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3772 variable.
3773 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3774
cbde90f2
JB
37752019-07-16 John Baldwin <jhb@FreeBSD.org>
3776
3777 * fbsd-nat.c: Include gdbarch.h.
3778
07128006
TT
37792019-07-15 Tom Tromey <tromey@adacore.com>
3780
3781 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3782
1f77b012
TT
37832019-07-15 Tom Tromey <tromey@adacore.com>
3784
3785 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3786 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3787 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3788 * cli-out.c (cli_ui_out::do_field_int): New method.
3789 * ui-out.c (ui_out::field_unsigned): New method.
3790 * symfile.c (generic_load): Use field_unsigned.
3791 (print_transfer_performance): Likewise.
3792 * record-btrace.c (ui_out_field_uint): Remove.
3793 (btrace_call_history_insn_range, btrace_call_history): Use
3794 field_unsigned.
3795 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3796 field_unsigned.
3797 * ui-out.h (class ui_out) <field_unsigned>: New method.
3798 <do_field_unsigned>: Likewise.
3799
33eca680
TT
38002019-07-15 Tom Tromey <tromey@adacore.com>
3801
3802 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3803 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3804 * target.c (flash_erase_command): Use field_string.
3805 * infrun.c (print_signal_received_reason): Use field_string.
3806 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3807 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3808 field_string.
3809 * ada-tasks.c (print_ada_task_info): Use field_string.
3810
ca8d69be
TT
38112019-07-15 Tom Tromey <tromey@adacore.com>
3812
3813 * target.c (flash_erase_command): Use field_core_addr.
3814 * symfile.c (generic_load): Use field_core_addr.
3815 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3816 Use field_core_addr.
3817 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3818 field_core_addr.
3819
0d4e84ed
AB
38202019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3821
3822 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3823 value if its desired type is smaller than a CORE_ADDR and signed.
3824
9a49df9d
AB
38252019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3826
3827 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3828 of changes to field names, and use new is_reference field to
3829 decide if a property is a reference or not.
3830 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3831 field.
3832 (struct dwarf2_property_baton): Update header comment, rename
3833 'referenced_type' to 'property_type' and update comments.
3834 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3835 default property type, store in property baton, update to take
3836 accound of renamed field.
3837 (read_func_scope): Update call to attr_to_dynamic_prop.
3838 (read_array_type): Likewise.
3839 (dwarf2_per_cu_addr_sized_int_type): New function.
3840 (read_subrange_index_type): Move type finding code to
3841 dwarf2_per_cu_addr_sized_int_type.
3842 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3843 (dwarf2_per_cu_addr_type): New function.
3844 (set_die_type): Update calls to attr_to_dynamic_prop.
3845
b86352cf
AB
38462019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3847
3848 * dwarf2read.c (read_subrange_index_type): New function.
3849 (read_subrange_type): Move code into new function and call it.
3850 * gdbtypes.c (create_range_type): Add some asserts.
3851
603490bf
AB
38522019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3853
3854 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3855 update return statements.
3856 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3857 declaration, and update comment to match.
3858 * gdbtypes.c (resolve_dynamic_array): Update call to
3859 dwarf2_evaluate_property to match new return type.
3860
592f9d27
AB
38612019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3862
3863 * valarith.c (value_subscripted_rvalue): Change lowerbound
3864 parameter type from int to LONGEST.
3865 * value.h (value_subscripted_rvalue): Likewise in declaration.
3866
60cfcb20
AB
38672019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3868
3869 * cli/cli-utils.c (info_print_command_completer): New function.
3870 * cli/cli-utils.h: Add 'completer.h' include, and forward
3871 declaration for 'struct cmd_list_element'.
3872 (info_print_command_completer): Declare.
3873 * stack.c (_initialize_stack): Add completer for 'info locals' and
3874 'info args'.
3875 * symtab.c (_initialize_symtab): Add completer for 'info
3876 variables' and 'info functions'.
3877 * NEWS: Mention completion for additional info commands.
3878
b16507e0
AB
38792019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3880
3881 * cli/cli-utils.c (extract_info_print_args): Delete.
3882 (extract_arg_maybe_quoted): Delete.
3883 (info_print_options_defs): New variable.
3884 (make_info_print_options_def_group): New function.
3885 (extract_info_print_options): Define new function.
3886 * cli/cli-utils.h (extract_info_print_args): Delete.
3887 (struct info_print_options): New structure.
3888 (extract_info_print_options): Declare new function.
3889 * stack.c (info_locals_command): Update to use new
3890 extract_info_print_options, also add a header comment.
3891 (info_args_command): Likewise.
3892 * symtab.c (info_variables_command): Likewise.
3893 (info_functions_command): Likewise.
3894
021d8588
AB
38952019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3896
3897 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3898 to extract string arguments.
3899 * common/common-utils.c (extract_string_maybe_quoted): New function.
3900 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3901
b777eb6d
TT
39022019-07-11 Tom Tromey <tromey@adacore.com>
3903
3904 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3905 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3906 * top.h (gdbinit): Don't declare.
3907 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3908 into...
3909 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3910 * top.c (gdb_init): Don't call init_cli_cmds.
3911 (gdbinit): Remove.
3912 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3913
72ee03ff
TT
39142019-07-11 Tom Tromey <tromey@adacore.com>
3915
3916 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3917 after it has been moved.
3918
00db9531
SM
39192019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3920
3921 * valops.c (value_must_coerce_to_target): Change return type to
3922 bool.
3923 * value.h (value_must_coerce_to_target): Likewise.
3924
f2478a7e
SM
39252019-07-10 Simon Marchi <simon.marchi@efficios.com>
3926
3927 * breakpoint.c (is_hardware_watchpoint): Remove
3928 forward-declaration.
3929 (is_masked_watchpoint): Change return type to bool.
3930 (is_tracepoint): Likewise.
3931 (is_breakpoint): Likewise.
3932 (is_hardware_watchpoint): Likewise.
3933 (is_watchpoint): Likewise.
3934 (is_no_memory_software_watchpoint): Likewise.
3935 (is_catchpoint): Likewise.
3936 (breakpoint_1): Make FILTER parameter's return type bool.
3937 is_masked_watchpoint): Change return type to bool.
3938 (save_breakpoints): Make FILTER parameter's return type bool.
3939 * breakpoint.h (is_breakpoint): Change return type to bool.
3940 (is_watchpoint): Likewise.
3941 (is_catchpoint): Likewise.
3942 (is_tracepoint): Likewise.
3943
0d12e84c
TT
39442019-07-10 Tom Tromey <tom@tromey.com>
3945
3946 * defs.h: Don't include gdbarch.h.
3947 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3948 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3949 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3950 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3951 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3952 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3953 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3954 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3955 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3956 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3957 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3958 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3959 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3960 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3961 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3962 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3963 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3964 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3965 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3966 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3967 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3968 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3969 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3970 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3971 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3972 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3973 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3974
f06f1252
TT
39752019-07-10 Tom Tromey <tromey@adacore.com>
3976
3977 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3978 * breakpoint.c (init_ada_exception_breakpoint): Register as
3979 bp_catchpoint.
3980 (print_one_breakpoint_location, print_one_breakpoint): Use
3981 is_ada_exception_catchpoint.
3982 * ada-lang.c (class ada_catchpoint_location): Pass
3983 bp_loc_software_breakpoint to bp_location constructor.
3984 (is_ada_exception_catchpoint): New function.
3985
7a5d944b
TT
39862019-07-10 Tom Tromey <tromey@adacore.com>
3987
3988 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3989 VEC.
3990 (struct arm_exidx_entry): New method operator<.
3991 (struct arm_exidx_data) <section_maps>: Change type.
3992 (arm_exidx_data_free): Remove.
3993 (arm_exidx_data_key): Change type. Move lower.
3994 (arm_exidx_new_objfile): Update.
3995 (arm_compare_exidx_entries): Remove.
3996 (arm_find_exidx_entry, _initialize_arm_tdep)
3997
48c66e1d
TT
39982019-07-10 Tom Tromey <tromey@adacore.com>
3999
4000 * solib-spu.c (ocl_program_data_key): Change type.
4001 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4002 Update.
4003
a269fbf1
TT
40042019-07-10 Tom Tromey <tromey@adacore.com>
4005
4006 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4007 (struct solib_aix_inferior_data) <library_list>: Change type.
4008 (solib_aix_inferior_data_handle): Change type.
4009 (get_solib_aix_inferior_data): Update.
4010 (solib_aix_free_library_list): Remove.
4011 (library_list_start_library): Update.
4012 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4013 return type.
4014 (solib_aix_get_library_list)
4015 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4016 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4017
c294730c
TT
40182019-07-10 Tom Tromey <tromey@adacore.com>
4019
4020 * solib-dsbt.c (struct dsbt_info): Add initializers.
4021 (solib_dsbt_pspace_data): Change type.
4022 (dsbt_pspace_data_cleanup): Remove.
4023 (get_dsbt_info, _initialize_dsbt_solib): Update.
4024
9d52077d
TT
40252019-07-10 Tom Tromey <tromey@adacore.com>
4026
4027 * spu-tdep.c (spu_overlay_data): Change type.
4028 (spu_get_overlay_table, spu_overlay_new_objfile)
4029 (_initialize_spu_tdep): Update.
4030
22a20dca
TT
40312019-07-10 Tom Tromey <tromey@adacore.com>
4032
4033 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4034 destructor.
4035 (dbx_objfile_data_key): Change type and declare later.
4036 (DBX_SYMFILE_INFO): Rewrite.
4037 * dbxread.c (dbx_objfile_data_key): Change type.
4038 (dbx_symfile_init): Update.
4039 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4040 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4041 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4042
cb60f420
TT
40432019-07-10 Tom Tromey <tromey@adacore.com>
4044
4045 * jit.c (jit_program_space_key): Change type. Move lower.
4046 (get_jit_program_space_data): Update.
4047 (jit_program_space_data_cleanup): Remove.
4048 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4049 Update.
4050 (struct jit_program_space_data): Add initializers.
4051
51df2ae3
TT
40522019-07-10 Tom Tromey <tromey@adacore.com>
4053
4054 * solib-darwin.c (struct darwin_info): Add initializers.
4055 (solib_darwin_pspace_data): Change type.
4056 (darwin_pspace_data_cleanup): Remove.
4057 (get_darwin_info, _initialize_darwin_solib): Update.
4058
18101a35
TT
40592019-07-10 Tom Tromey <tromey@adacore.com>
4060
4061 * remote-sim.c (struct sim_inferior_data): Add initializers,
4062 constructor, and destructor.
4063 (sim_inferior_data_key): Change type. Move lower.
4064 (check_for_duplicate_sim_descriptor): Update.
4065 (get_sim_inferior_data): Use new. Update.
4066 (~sim_inferior_data_cleanup): Rename from
4067 sim_inferior_data_cleanup. Simplify.
4068 (gdbsim_close_inferior, simulator_command)
4069 (sim_command_completer, _initialize_remote_sim): Update.
4070 (next_pid, INITIAL_PID): Move earlier.
4071
05b08ac1
TT
40722019-07-10 Tom Tromey <tromey@adacore.com>
4073
4074 * python/python-internal.h (create_thread_object): Return
4075 gdbpy_ref.
4076 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4077 * python/py-inferior.c (struct threadlist_entry): Add
4078 constructor.
4079 <thread_obj>: Now a gdbpy_ref.
4080 (thread_to_thread_object): Update.
4081 (add_thread_object): Use new.
4082 (delete_thread_object): Use delete.
4083 (infpy_threads): Update.
4084 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4085 GIL.
4086
32372d80
TT
40872019-07-10 Tom Tromey <tromey@adacore.com>
4088
4089 * valops.c (value_cast): Specialize error message for Ada.
4090
5c458ae8
SM
40912019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4092
4093 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4094
4c462cb0
SM
40952019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4096
4097 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4098 bpstat_should_step): Return bool, adjust comments.
4099 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4100 bpstat_should_step): Likewise.
4101
89abbcc2
AH
41022019-07-10 Alan Hayward <alan.hayward@arm.com>
4103
4104 * features/Makefile: Use feature target descriptions for Arm.
4105 * features/arm/arm-core.c: Generate new file.
4106 * features/arm/arm-fpa.c: Likewise.
4107 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4108 * features/arm/arm-m-profile.c: Likewise.
4109 * features/arm/arm-vfpv2.c: Likewise.
4110 * features/arm/arm-vfpv3.c: Likewise.
4111 * features/arm/xscale-iwmmxt.c: Likewise.
4112 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4113
166a82be
AH
41142019-07-10 Alan Hayward <alan.hayward@arm.com>
4115
4116 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4117 ptrace earlier.
4118
9fb4c7e9
AH
41192019-07-10 Alan Hayward <alan.hayward@arm.com>
4120
4121 * features/aarch64-pauth.c: Regenerate.
4122
e2d0f980
SM
41232019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4124
4125 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4126 bool.
4127 (bpstat_what): Use false instead of 0.
4128
a38118e5
PA
41292019-07-09 Pedro Alves <palves@redhat.com>
4130
4131 * break-catch-throw.c (is_exception_catchpoint): New.
4132 * breakpoint.c (print_one_breakpoint_location): New parameter
4133 'raw_loc'. Handle it. Use
4134 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4135 looking at the breakpoint's type.
4136 (print_one_breakpoint): If handling "maint info breakpoints", also
4137 print locations of exception catchpoints.
4138 * breakpoint.h (is_exception_catchpoint): Declare.
4139
cb1e4e32
PA
41402019-07-09 Pedro Alves <palves@redhat.com>
4141
4142 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4143 "addr" field.
4144 (allocate_location_exception_catchpoint): New.
4145 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4146 (initialize_throw_catchpoint_ops): Install
4147 allocate_location_exception_catchpoint as allocate_location
4148 method.
4149 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4150 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4151 bp_loc_other.
4152 (breakpoint_address_is_meaningful): Delete.
4153 (bl_address_is_meaningful): New.
4154 (breakpoint_locations_match): Adjust comment.
4155 (bp_location_from_bp_type): New, factored out of...
4156 (bp_location::bp_location(breakpoint *)): ... this.
4157 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4158 factored out of...
4159 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
4160 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4161 breakpoint_address_is_meaningful.
4162 (bp_locations_compare): Adjust comment.
4163 (update_global_location_list): Use bl_address_is_meaningful
4164 instead of breakpoint_address_is_meaningful.
4165 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4166 explicit.
4167 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4168 * python/py-breakpoint.c (bppy_get_location): No longer check
4169 whether location is null.
4170
b58a68fe
PA
41712019-07-09 Pedro Alves <palves@redhat.com>
4172
4173 PR c++/15468
4174 * breakpoint.c (print_one_breakpoint_location): Remove
4175 single-location assert.
4176
268a13a5
TT
41772019-07-09 Tom Tromey <tom@tromey.com>
4178
4179 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4180 * configure: Rebuild.
4181 * configure.ac: Change common to gdbsupport.
4182 * gdbsupport: Rename from common.
4183 * acinclude.m4: Change common to gdbsupport.
4184 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4185 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4186 gdbsupport.
4187 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4188 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4189 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4190 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4191 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4192 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4193 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4194 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4195 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4196 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4197 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4198 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4199 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4200 coff-pe-read.c, command.h, compile/compile-c-support.c,
4201 compile/compile-c.h, compile/compile-cplus-symbols.c,
4202 compile/compile-cplus-types.c, compile/compile-cplus.h,
4203 compile/compile-loc2c.c, compile/compile.c, completer.c,
4204 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4205 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4206 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4207 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4208 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4209 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4210 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4211 features/aarch64-core.c, features/aarch64-fpu.c,
4212 features/aarch64-pauth.c, features/aarch64-sve.c,
4213 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4214 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4215 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4216 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4217 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4218 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4219 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4220 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4221 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4222 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4223 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4224 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4225 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4226 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4227 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4228 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4229 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4230 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4231 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4232 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4233 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4234 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4235 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4236 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4237 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4238 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4239 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4240 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4241 minsyms.c, mips-linux-tdep.c, namespace.h,
4242 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4243 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4244 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4245 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4246 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4247 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4248 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4249 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4250 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4251 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4252 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4253 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4254 procfs.c, producer.c, progspace.h, psymtab.h,
4255 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4256 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4257 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4258 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4259 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4260 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4261 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4262 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4263 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4264 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4265 target-memory.c, target.c, target.h, target/waitstatus.c,
4266 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4267 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4268 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4269 unittests/array-view-selftests.c,
4270 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4271 unittests/common-utils-selftests.c,
4272 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4273 unittests/format_pieces-selftests.c,
4274 unittests/function-view-selftests.c,
4275 unittests/lookup_name_info-selftests.c,
4276 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4277 unittests/mkdir-recursive-selftests.c,
4278 unittests/observable-selftests.c,
4279 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4280 unittests/parse-connection-spec-selftests.c,
4281 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4282 unittests/scoped_fd-selftests.c,
4283 unittests/scoped_mmap-selftests.c,
4284 unittests/scoped_restore-selftests.c,
4285 unittests/string_view-selftests.c, unittests/style-selftests.c,
4286 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4287 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4288 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4289 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4290 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4291 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4292
5b0e2db4
AB
42932019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4294
4295 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4296 bool value.
4297 (decode_digits_ordinary): Set explicit_line field in sal.
4298 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4299 symtab_and_line that was set on an explicit line number in
4300 assembler code. Do always update the recorded symtab and line if
4301 we do skip the prologue.
4302
0ba852ab
AB
43032019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4304
4305 * breakpoint.c (set_breakpoint_location_function): Remove
4306 explicit_loc parameter.
4307 (momentary_breakpoint_from_master): Update call to
4308 set_breakpoint_location_function.
4309 (add_location_to_breakpoint): Likewise.
4310
b3a7d171
AB
43112019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4312
4313 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4314 required features based on default bfd type when no specific bfd
4315 is present.
4316
1f6f6e21
PW
43172019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4318
4319 * NEWS: Mention that GDB printf and eval commands can now print
4320 C-style and Ada-style convenience var strings without
4321 calling the inferior.
4322 * printcmd.c (printf_c_string): Locally print GDB internal var
4323 instead of transiting via the inferior.
4324 (printf_wide_c_string): Likewise.
4325
43262019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
4327
4328 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4329
0598af48
TT
43302019-07-04 Tom Tromey <tom@tromey.com>
4331
4332 PR tui/24724:
4333 * tui/tui-winsource.c (tui_clear_source_content): Update.
4334 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4335 (tui_update_breakpoint_info): Update.
4336 (tui_set_exec_info_content): Update.
4337 * tui/tui-source.c (tui_set_source_content_nil): Update.
4338 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4339 has_break.
4340 * tui/tui-data.h (enum tui_bp_flag): New.
4341 (tui_bp_flags): New enum flags type.
4342 (struct tui_source_element) <break_mode>: Change type. Rename
4343 from has_break.
4344 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4345 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4346 constants.
4347 * tui/tui-winsource.h: Fix comment.
4348
350fab54
AH
43492019-07-04 Alan Hayward <alan.hayward@arm.com>
4350
4351 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4352 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4353 (store_fpregs_to_thread)
4354 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4355 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4356 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4357 (IWMMXT_REGS_SIZE): Add define.
4358 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4359 (fetch_vfp_regs, store_vfp_regs)
4360 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4361 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4362
f0452268
AH
43632019-07-04 Alan Hayward <alan.hayward@arm.com>
4364
4365 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4366 defines.
4367 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4368 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4369 (ARM_INT_REGISTER_SIZE): ...to this.
4370 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4371 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4372 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4373 (arm_linux_collect_gregset, supply_nwfpe_register)
4374 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4375 defines.
4376 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4377 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4378 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4379 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4380 (arm_return_in_memory, arm_store_return_value)
4381 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4382 (arm_record_ld_st_multiple): Likewise.
4383 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4384 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4385
e935475c
AH
43862019-07-04 Alan Hayward <alan.hayward@arm.com>
4387
4388 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4389 AARCH64_DISPLACED_MODIFIED_INSNS.
4390 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4391 (aarch64_displaced_step_copy_insn): Likewise.
4392 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4393 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4394 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4395 ARM_DISPLACED_MODIFIED_INSNS.
4396 * arm-tdep.c (arm_gdbarch_init): Likewise.
4397 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4398 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4399 (struct arm_displaced_step_closure): Use
4400 ARM_DISPLACED_MODIFIED_INSNS.
4401
df0bb381
AH
44022019-07-04 Alan Hayward <alan.hayward@arm.com>
4403
4404 * features/Makefile: Remove unused xml files.
4405 * features/aarch64.xml: Remove.
4406 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4407 * features/i386/amd64-avx-avx512.xml: Remove.
4408 * features/i386/amd64-avx-linux.xml: Remove.
4409 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4410 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4411 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4412 * features/i386/amd64-avx-mpx.xml: Remove.
4413 * features/i386/amd64-avx.xml: Remove.
4414 * features/i386/amd64-linux.xml: Remove.
4415 * features/i386/amd64-mpx-linux.xml: Remove.
4416 * features/i386/amd64-mpx.xml: Remove.
4417 * features/i386/amd64.xml: Remove.
4418 * features/i386/i386-avx-avx512-linux.xml: Remove.
4419 * features/i386/i386-avx-avx512.xml: Remove.
4420 * features/i386/i386-avx-linux.xml: Remove.
4421 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4422 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4423 * features/i386/i386-avx-mpx-linux.xml: Remove.
4424 * features/i386/i386-avx-mpx.xml: Remove.
4425 * features/i386/i386-avx.xml: Remove.
4426 * features/i386/i386-linux.xml: Remove.
4427 * features/i386/i386-mmx-linux.xml: Remove.
4428 * features/i386/i386-mmx.xml: Remove.
4429 * features/i386/i386-mpx-linux.xml: Remove.
4430 * features/i386/i386-mpx.xml: Remove.
4431 * features/i386/i386.xml: Remove.
4432 * features/i386/x32-avx-avx512-linux.xml: Remove.
4433 * features/i386/x32-avx-linux.xml: Remove.
4434 * features/i386/x32-linux.xml: Remove.
4435
edd6266a
AH
44362019-07-04 Alan Hayward <alan.hayward@arm.com>
4437
4438 * regformats/aarch64.dat: Remove.
4439 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4440 * regformats/i386/amd64-avx-linux.dat: Remove.
4441 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4442 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4443 * regformats/i386/amd64-linux.dat: Remove.
4444 * regformats/i386/amd64-mpx-linux.dat: Remove.
4445 * regformats/i386/amd64.dat: Remove.
4446 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4447 * regformats/i386/i386-avx-linux.dat: Remove.
4448 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4449 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4450 * regformats/i386/i386-linux.dat: Remove.
4451 * regformats/i386/i386-mmx-linux.dat: Remove.
4452 * regformats/i386/i386-mpx-linux.dat: Remove.
4453 * regformats/i386/i386.dat: Remove.
4454 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4455 * regformats/i386/x32-avx-linux.dat: Remove.
4456 * regformats/i386/x32-linux.dat: Remove.
4457
2b40fda7
AH
44582019-07-04 Alan Hayward <alan.hayward@arm.com>
4459
4460 * aarch64-tdep.c: Remove xml self tests.
4461 * amd64-linux-tdep.c: Likewise.
4462 * amd64-tdep.c: Likewise.
4463 * i386-linux-tdep.c: Likewise.
4464 * i386-tdep.c: Likewise.
4465
5f4ba3e7
PA
44662019-07-03 Pedro Alves <palves@redhat.com>
4467
4468 PR cli/24732
4469 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4470 (pipe_cmd_option_defs): New.
4471 (make_pipe_cmd_options_def_group): New.
4472 (pipe_command): Use gdb::option::process_options.
4473 (pipe_command_completer): New function.
4474 (_initialize_cli_cmds): Install completer for "pipe" command.
4475
3d9be6f5
PA
44762019-07-03 Pedro Alves <palves@redhat.com>
4477
4478 * cli/cli-option.c (union option_value) <string>: New field.
4479 (struct option_def_and_value): Add ctor, move ctor, dtor and
4480 use DISABLE_COPY_AND_ASSIGN.
4481 (option_def_and_value::clear_value): New.
4482 (parse_option, save_option_value_in_ctx, get_val_type_str)
4483 (add_setshow_cmds_for_options): Handle var_string.
4484 * cli-option.h (union option_def::var_address) <string>: New
4485 field.
4486 (struct string_option_def): New.
4487 * maint-test-options.c (struct test_options_opts): Add default
4488 ctor and use DISABLE_COPY_AND_ASSIGN.
4489 <string_opt>: New field.
4490 (test_options_opts::~test_options_opts): New.
4491 (test_options_opts::dump): Also dump "-string".
4492 (test_options_option_defs): Install "string.
4493
41fc454c
PA
44942019-07-03 Pedro Alves <palves@redhat.com>
4495
4496 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4497 option_value with a null enumeration.
4498 (complete_options): Save the option values in the context.
4499 (save_option_value_in_ctx): New, factored out from ...
4500 (process_options): ... here.
4501 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4502 of the function.
4503 * maint-test-options.c (test_options_opts::dump): New, factored
4504 out from ...
4505 (maintenance_test_options_command_mode): ... here.
4506 (maintenance_test_options_command_completion_result): Delete.
4507 (maintenance_test_options_command_completion_text): Update
4508 comment.
4509 (maintenance_show_test_options_completion_result): Change
4510 prototype. Just print
4511 maintenance_test_options_command_completion_text.
4512 (save_completion_result): New.
4513 (maintenance_test_options_completer_mode): Pass options context to
4514 complete_options, and then save a dump.
4515 (_initialize_maint_test_options): Use add_cmd to install "maint
4516 show test-options-completion-result".
4517
fdbc9870
PA
45182019-07-03 Pedro Alves <palves@redhat.com>
4519
4520 * NEWS (New commands): Mention "with" and "maint with".
4521 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4522 (with_command, with_command_completer): New.
4523 (pipe_command): Adjust to new repeat_previous
4524 interface.
4525 (_initialize_cli_cmds): Install the "with" command and its "w"
4526 alias.
4527 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4528 declarations.
4529 * cli/cli-setshow.c (parse_cli_var_uinteger)
4530 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4531 argument strings for all var_types.
4532 (get_setshow_command_value_string): New, factored out from ...
4533 (do_show_command): ... this.
4534 * cli/cli-setshow.h: Include <string>.
4535 (get_setshow_command_value_string): Declare.
4536 * command.h (repeat_previous): Now returns const char *. Adjust
4537 comment.
4538 * maint.c: Include "cli/cli-cmds.h".
4539 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4540 (_initialize_maint_cmds): Register the "maintenance with" command.
4541 * top.c (repeat_previous): Move bits from pipe_command here:
4542 Return the saved command line, if any; error out if there's no
4543 command to relaunch.
4544
c6ac8931
PA
45452019-07-03 Pedro Alves <palves@redhat.com>
4546
4547 * NEWS (New commands): Mention "maint set/show test-settings"
4548 instead of "maint test-settings".
4549 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4550 (maintenance_test_settings_set_list): Rename to ...
4551 (maintenance_set_test_settings_list): ... this.
4552 (maintenance_test_settings_show_list): Rename to ...
4553 (maintenance_show_test_settings_list): ... this.
4554 (maintenance_test_settings_cmd): Delete.
4555 (maintenance_test_settings_set_cmd): ...
4556 (maintenance_set_test_settings_cmd): ... this.
4557 (maintenance_test_settings_show_cmd): ...
4558 (maintenance_show_test_settings_cmd): ... this.
4559 (maintenance_test_settings_show_value_cmd):
4560 (maintenance_show_test_settings_value_cmd): ... this.
4561 (_initialize_maint_test_settings): No longer install the "maint
4562 test-settings" prefix command. Rename "maint test-settings set"
4563 to "maint set test-settings", and "maint test-settings show" to
4564 "maint show test-settings". Adjust all subcommands.
4565
d1fcf2fd
PA
45662019-07-03 Pedro Alves <palves@redhat.com>
4567
4568 * maint-test-settings.c: Fix file's intro comment. Replace all
4569 references to "test-options" with references to "test-settings",
4570 in comments.
4571
970f9d09
PA
45722019-07-03 Pedro Alves <palves@redhat.com>
4573
4574 * maint-test-settings.c (maintenance_test_settings_xxx)
4575 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4576 New.
4577 (maintenance_test_settings_enums): Use them.
4578 (maintenance_test_settings_enum): Default to
4579 maintenance_test_settings_xxx.
4580 (_initialize_maint_test_settings): Initialize
4581 MAINTENANCE_TEST_SETTINGS_FILENAME.
4582
f3869b1a
SM
45832019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4584
4585 * breakpoint.h (remove_breakpoints_inf): Change return type to
4586 void, move function documentation here.
4587 * breakpoint.c (remove_breakpoints_inf): Change return type to
4588 void, move function documentation to header.
4589
54d66006
PA
45902019-07-02 Pedro Alves <palves@redhat.com>
4591
4592 * NEWS (Completion improvements): Mention "info threads".
4593 * thread.c (struct info_threads_opts, info_threads_option_defs)
4594 (make_info_threads_options_def_group): New.
4595 (info_threads_command): Use gdb::option::process_options.
4596 (info_threads_command_completer): New.
4597 (_initialize_thread): Use gdb::option::build_help to build the
4598 help text for "info threads".
4599
854f6088
SM
46002019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4601
4602 * defs.h (generic_load): Move from here...
4603 * symfile.h (generic_load): ... to here. Rename name parameter
4604 to args.
4605 * symfile.c (generic_load): Add comment.
4606
54ee4252
TT
46072019-07-01 Tom Tromey <tromey@adacore.com>
4608
4609 * dwarf2read.c
4610 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4611 declaration of without_params. Fix formatting.
4612
65392b3e
TT
46132019-07-01 Tom Tromey <tromey@adacore.com>
4614
4615 * ada-exp.y (find_primitive_type): Update.
4616 * ada-lang.h (ada_lookup_symbol): Update.
4617 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4618 parameter.
4619 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4620
7d7571f0
SDJ
46212019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4622
4623 PR breakpoints/24541
4624 * gdbarch.c: Regenerate.
4625 * gdbarch.h: Regenerate.
4626 * gdbarch.sh: Add 'stap_adjust_register'.
4627 * i386-tdep.c: Include '<unordered_set>'.
4628 (i386_stap_adjust_register): New function.
4629 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4630 * stap-probe.c (stap_parse_register_operand): Call
4631 'gdbarch_stap_adjust_register'.
4632
5af5392a
SDJ
46332019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4634
4635 PR python/24742
4636 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4637 * python/python.c (do_start_initialization): Use 'xmalloc'
4638 instead of 'PyMem_Malloc'.
4639
10d06d82
TT
46402019-06-28 Tom Tromey <tromey@adacore.com>
4641
4642 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4643 for Ada.
4644
1b7f24cd
TT
46452019-06-27 Tom Tromey <tromey@adacore.com>
4646
4647 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4648 objfile_key.
4649 (arm_find_mapping_symbol, arm_record_special_symbol)
4650 (_initialize_arm_tdep): Update.
4651 (arm_objfile_data_free): Remove.
4652
3d507ff2
TT
46532019-06-27 Tom Tromey <tromey@adacore.com>
4654
4655 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4656 to cp_print_static_field.
4657
762c164d
TT
46582019-06-26 Tom Tromey <tromey@adacore.com>
4659
4660 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4661 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4662 declare.
4663
aa2f9bcf
AH
46642019-06-26 Alan Hayward <alan.hayward@arm.com>
4665
4666 * features/aarch64-core.c (create_feature_aarch64_core):
4667 Regenerate.
4668 * features/aarch64-core.xml: Add cpsr flags.
4669
3426ae57
AH
46702019-06-26 Alan Hayward <alan.hayward@arm.com>
4671
4672 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4673 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4674
4838e44c
SM
46752019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4676
4677 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4678 field.
4679 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4680 use.
4681 (arm_record_special_symbol): Don't insert new symbol in sorted
4682 position, push it at the end.
4683
54cc7474
SM
46842019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4685
4686 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4687 (arm_mapping_symbol_s): Remove.
4688 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4689 (arm_mapping_symbol_vec): New typedef.
4690 (struct arm_per_objfile): Add constructor.
4691 <section_maps>: Change type to
4692 std::unique_ptr<arm_mapping_symbol_vec[]>.
4693 (arm_compare_mapping_symbols): Remove.
4694 (arm_find_mapping_symbol): Adjust to section_maps type change.
4695 (arm_objfile_data_free): Call delete on arm_per_objfile.
4696 (arm_record_special_symbol): Adjust to section_maps type change.
4697 Allocate arm_per_objfile with new.
4698
b65b566c
PW
46992019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4700
4701 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4702 with the command prefix.
4703
c2fc64f5
TT
47042019-06-25 Tom Tromey <tom@tromey.com>
4705
4706 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4707 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4708
fb54fa76
TT
47092019-06-25 Tom Tromey <tom@tromey.com>
4710
4711 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4712 type.
4713 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4714 protected.
4715
f7952c57
TT
47162019-06-25 Tom Tromey <tom@tromey.com>
4717
4718 * tui/tui-winsource.c
4719 (tui_source_window_base::set_is_exec_point_at): Add check against
4720 LOA_ADDRESS.
4721
17568d78
TT
47222019-06-25 Tom Tromey <tom@tromey.com>
4723
4724 * tui/tui-source.c (tui_set_source_content): Don't check before
4725 xfree.
4726 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4727
53e7cdba
TT
47282019-06-25 Tom Tromey <tom@tromey.com>
4729
4730 * tui/tui-winsource.h (tui_update_source_window_as_is)
4731 (tui_alloc_source_buffer, tui_line_is_displayed)
4732 (tui_addr_is_displayed): Change type of win_info.
4733 * tui/tui-winsource.c (tui_update_source_window_as_is)
4734 (tui_clear_source_content, tui_show_source_line)
4735 (tui_show_source_content, tui_source_window_base::refill)
4736 (tui_source_window_base::set_is_exec_point_at)
4737 (tui_source_window_base::set_is_exec_point_at)
4738 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4739 (tui_alloc_source_buffer, tui_line_is_displayed)
4740 (tui_addr_is_displayed): Change type of win_info. Update.
4741 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4742 (tui_source_window_base::do_make_visible_with_new_height):
4743 Update.
4744 * tui/tui-source.c (tui_set_source_content)
4745 (tui_set_source_content_nil)
4746 (tui_source_window::do_scroll_vertical): Update.
4747 * tui/tui-layout.c (show_layout): Update.
4748 * tui/tui-disasm.c (tui_set_disassem_content)
4749 (tui_disasm_window::do_scroll_vertical): Update.
4750 * tui/tui-data.h (tui_win_content): Remove.
4751 (struct tui_gen_win_info) <content, content_size>: Remove.
4752 (struct tui_source_element): Add initializers and destructor.
4753 (union tui_which_element, struct tui_win_element): Remove.
4754 (struct tui_source_window_base) <content>: New field.
4755 (struct tui_data_window): Remove destructor.
4756 (tui_alloc_content, tui_free_win_content)
4757 (tui_free_all_source_wins_content): Don't declare.
4758 * tui/tui-data.c (tui_initialize_static_data): Update.
4759 (init_content_element, tui_alloc_content): Remove.
4760 (~tui_gen_win_info): Update.
4761 (~tui_data_window, tui_free_all_source_wins_content)
4762 (tui_free_win_content, free_content, free_content_elements):
4763 Remove.
4764
7908abbf
TT
47652019-06-25 Tom Tromey <tom@tromey.com>
4766
4767 * tui/tui-winsource.h (tui_clear_source_content)
4768 (tui_erase_source_content, tui_show_source_content): Change type
4769 of win_info.
4770 * tui/tui-winsource.c (tui_clear_source_content)
4771 (tui_erase_source_content, tui_show_source_content): Change type
4772 of win_info.
4773 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4774 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4775 win_info.
4776 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4777 win_info.
4778 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4779
02c28df0
TT
47802019-06-25 Tom Tromey <tom@tromey.com>
4781
4782 * tui/tui-winsource.c (tui_clear_source_content)
4783 (tui_source_window_base::set_is_exec_point_at): Update.
4784 * tui/tui-source.c (tui_set_source_content_nil): Update.
4785 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4786 a bool.
4787 * tui/tui-data.c (init_content_element): Update.
4788
6658b1bf
TT
47892019-06-25 Tom Tromey <tom@tromey.com>
4790
4791 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4792 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4793 * tui/tui-layout.c (init_and_make_win): Update.
4794 * tui/tui.h (enum tui_win_type): Update.
4795 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4796 tui_win_is_auxillary.
4797 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4798 tui_win_is_auxillary.
4799
21e1c91e
TT
48002019-06-25 Tom Tromey <tom@tromey.com>
4801
4802 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4803 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4804 (tui_delete_data_content_windows, tui_display_all_data)
4805 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4806 Update.
4807 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4808 * tui/tui-regs.c (tui_last_regs_line_no)
4809 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4810 (tui_show_registers): Update.
4811 (tui_show_register_group): Return void. Update.
4812 (tui_display_registers_from, tui_display_reg_element_at_line)
4813 (tui_display_registers_from_line, tui_check_register_values):
4814 Update.
4815 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4816 member.
4817 (struct tui_data_window) <regs_content>: Now a std::vector.
4818 <regs_content_count>: Remove.
4819 (tui_add_content_elements, tui_free_data_content): Don't declare.
4820 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4821 (init_content_element): Remove DATA_WIN case. Add assert.
4822 (tui_add_content_elements): Remove.
4823 (tui_data_window): Update.
4824 (tui_free_data_content): Remove.
4825 (free_content_elements): Remove DATA_WIN case.
4826
115ac53b
TT
48272019-06-25 Tom Tromey <tom@tromey.com>
4828
4829 * tui/tui-data.c (tui_data_item_window): Update.
4830 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4831 * tui/tui-windata.c (tui_display_all_data)
4832 (tui_display_data_from_line): Update.
4833 (tui_check_data_values): Remove.
4834 * tui/tui-regs.c (tui_show_register_group)
4835 (tui_display_reg_element_at_line): Update.
4836 * tui/tui-hooks.c (tui_register_changed)
4837 (tui_refresh_frame_and_register_information): Call
4838 tui_check_register_values.
4839 * tui/tui-data.h (struct tui_data_window) <data_content,
4840 data_content_count, data_type>: Remove.
4841 (enum tui_data_type): Remove.
4842
4843 * tui/tui-data.c (tui_data_window::clear_detail)
4844 (~tui_data_window): Update.
4845
eaf9738b
TT
48462019-06-25 Tom Tromey <tom@tromey.com>
4847
4848 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4849 declare.
4850 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4851 Rename from tui_first_data_item_displayed. Update.
4852 (tui_data_window::refresh_all)
4853 (tui_data_window::do_scroll_vertical): Update.
4854 * tui/tui-data.h (struct tui_data_window)
4855 <first_data_item_displayed>: Declare new method.
4856
31ca4723
TT
48572019-06-25 Tom Tromey <tom@tromey.com>
4858
4859 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4860 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4861 contents...
4862 (tui_initialize_static_data): ...here.
4863
41bcff7f
TT
48642019-06-25 Tom Tromey <tom@tromey.com>
4865
4866 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4867 (tui_display_registers_from, tui_check_register_values): Update.
4868 (tui_display_register): Remove win_info parameter; update.
4869 (tui_get_register): Change type of parameters.
4870 * tui/tui-data.h (struct tui_data_element): Remove.
4871 (union tui_which_element) <data>: Remove.
4872 <data_window>: Change type.
4873 (struct tui_data_item_window): New.
4874 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4875 case. Add assert.
4876 (~tui_data_item_window): New destructor.
4877 (free_content_elements): Remove DATA_ITEM_WIN case.
4878
d2802c33
TT
48792019-06-25 Tom Tromey <tom@tromey.com>
4880
4881 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4882 Remove.
4883
dd835f8b
TT
48842019-06-25 Tom Tromey <tom@tromey.com>
4885
4886 * tui/tui-data.h (struct tui_command_element): Remove.
4887 (union tui_which_element) <command>: Remove.
4888 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4889 assert.
4890 (free_content_elements): Remove CMD_WIN case.
4891
bd7db367
TT
48922019-06-25 Tom Tromey <tom@tromey.com>
4893
4894 * tui/tui-layout.c (tui_set_layout): Update.
4895 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4896 * tui/tui-data.c (layout_def): Update.
4897
3add462f
TT
48982019-06-25 Tom Tromey <tom@tromey.com>
4899
4900 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4901 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4902 (tui_source_window_base::set_new_height): Update.
4903 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4904 Update.
4905 (tui_set_locator_fullname, tui_set_locator_info)
4906 (tui_show_frame_info): Update.
4907 * tui/tui-source.c (tui_set_source_content)
4908 (tui_source_is_displayed): Update.
4909 * tui/tui-layout.c (show_source_disasm_command, show_data)
4910 (show_source_or_disasm_and_command): Update.
4911 * tui/tui-disasm.c (tui_set_disassem_content)
4912 (tui_get_begin_asm_address): Update.
4913 * tui/tui-data.h (struct tui_locator_element): Remove.
4914 (union tui_which_element) <locator>: Remove.
4915 (struct tui_locator_window): New.
4916 (tui_locator_win_info_ptr): Change return type.
4917 * tui/tui-data.c (_locator): Change type.
4918 (tui_locator_win_info_ptr): Change return type.
4919 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4920 (tui_alloc_content): Add assert.
4921
489e9d8b
TT
49222019-06-25 Tom Tromey <tom@tromey.com>
4923
4924 * tui/tui-winsource.c
4925 (tui_exec_info_window::maybe_allocate_content): New method.
4926 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4927 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4928 (make_source_or_disasm_window): Add cast.
4929 * tui/tui-data.h (union tui_which_element) <simple_string>:
4930 Remove.
4931 (struct tui_source_info): New.
4932 (struct tui_source_window_base) <execution_info>: Change type.
4933 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4934 case, and add assert.
4935 (tui_alloc_content): Add assert.
4936
c3fabb7d
TT
49372019-06-25 Tom Tromey <tom@tromey.com>
4938
4939 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4940 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4941 * tui/tui-data.c (tui_alloc_win_info): Remove.
4942
bbc228ee
TT
49432019-06-25 Tom Tromey <tom@tromey.com>
4944
4945 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4946 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4947 can_highlight.
4948
5fcee43a
TT
49492019-06-25 Tom Tromey <tom@tromey.com>
4950
4951 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4952 make_visible_with_new_height method.
4953 (tui_win_info::make_visible_with_new_height): New method.
4954 (tui_source_window_base::do_make_visible_with_new_height)
4955 (tui_data_window::do_make_visible_with_new_height)
4956 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4957 (make_visible_with_new_height): Remove.
4958 (tui_resize_all, tui_adjust_win_heights): Use
4959 make_visible_with_new_height method.
4960 * tui/tui-data.h (struct tui_win_info)
4961 <do_make_visible_with_new_height, make_visible_with_new_height>:
4962 New methods.
4963 (struct tui_source_window_base, struct tui_data_window)
4964 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4965 methods.
4966
d83f1fe6
TT
49672019-06-25 Tom Tromey <tom@tromey.com>
4968
4969 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4970 method.
4971 (update_tab_width): Call update_tab_width method.
4972 * tui/tui-data.h (struct tui_win_info)
4973 (struct tui_source_window_base) <update_tab_width>: New methods.
4974
17374de4
TT
49752019-06-25 Tom Tromey <tom@tromey.com>
4976
4977 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4978 parameter.
4979 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4980 parameter.
4981 (tui_gen_win_info::make_visible): Update.
4982 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4983 parameter.
4984 * tui/tui-data.h (enum tui_box): New enum.
4985 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4986
f936bca2
TT
49872019-06-25 Tom Tromey <tom@tromey.com>
4988
4989 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4990 init_and_make_win for EXEC_INFO_WIN.
4991 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4992 longer inline.
4993 (struct tui_win_info) <~tui_win_info>: Inline.
4994 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4995 Don't declare.
4996 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4997 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4998 Remove.
4999 (tui_initialize_static_data): Update.
5000 (~tui_gen_win_info): Handle more cleanup here.
5001 (~tui_source_window_base): Delete "execution_info".
5002 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5003
d6ba6a11
TT
50042019-06-25 Tom Tromey <tom@tromey.com>
5005
5006 * tui/tui-layout.c (make_command_window): Don't set
5007 can_highlight.
5008 (show_source_disasm_command): Call the reset method.
5009 (show_data): Don't set can_highlight. Call the reset method.
5010 (tui_gen_win_info::reset): Rename from init_gen_win_info
5011 (init_and_make_win): Simplify. Return tui_gen_win_info.
5012 (show_source_or_disasm_and_command): Call the reset method.
5013 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5014 (struct tui_cmd_window): Set can_highlight.
5015
48a3bd16
TT
50162019-06-25 Tom Tromey <tom@tromey.com>
5017
5018 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5019 from make_visible.
5020 (tui_make_visible, tui_make_invisible): Rewrite.
5021 (tui_win_info::make_visible): Remove.
5022 (tui_source_window_base::make_visible): Update.
5023 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5024 method. Moved from...
5025 (struct tui_win_info) <make_visible>: ...here.
5026
c3bd716f
TT
50272019-06-25 Tom Tromey <tom@tromey.com>
5028
5029 * tui/tui-winsource.c
5030 (tui_source_window_base::do_scroll_horizontal): Remove direction
5031 parameter.
5032 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5033 direction parameter.
5034 * tui/tui-win.c (tui_win_info::forward_scroll)
5035 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5036 (tui_win_info::right_scroll): Update.
5037 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5038 direction parameter.
5039 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5040 direction parameter.
5041 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5042 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5043 Remove direction parameter.
5044 (struct tui_source_window_base, struct tui_source_window)
5045 (struct tui_disasm_window, struct tui_data_window)
5046 (struct tui_cmd_window): Update.
5047
21c32dca
TT
50482019-06-25 Tom Tromey <tom@tromey.com>
5049
5050 * tui/tui-winsource.h (tui_set_exec_info_content)
5051 (tui_show_exec_info_content, tui_erase_exec_info_content)
5052 (tui_clear_exec_info_content, tui_update_exec_info): Change
5053 argument to tui_source_window_base.
5054 * tui/tui-winsource.c (tui_set_exec_info_content)
5055 (tui_show_exec_info_content, tui_erase_exec_info_content)
5056 (tui_clear_exec_info_content, tui_update_exec_info): Change
5057 argument to tui_source_window_base.
5058
73fbdc65
TT
50592019-06-25 Tom Tromey <tom@tromey.com>
5060
5061 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5062 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5063
33325343
TT
50642019-06-25 Tom Tromey <tom@tromey.com>
5065
5066 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5067 check.
5068
29d2c474
TT
50692019-06-25 Tom Tromey <tom@tromey.com>
5070
5071 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5072 type to void.
5073 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5074 type to void.
5075 * tui/tui-source.c (tui_set_source_content): Update.
5076 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5077
152f3f4b
TT
50782019-06-25 Tom Tromey <tom@tromey.com>
5079
5080 * tui/tui-win.c (window_name_completer, tui_set_focus)
5081 (tui_all_windows_info): Use name method.
5082 * tui/tui-data.h (struct tui_gen_win_info)
5083 (struct tui_source_window, struct tui_disasm_window)
5084 (struct tui_data_window, struct tui_cmd_window) <name>: New
5085 method.
5086 (tui_win_name): Don't declare.
5087 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5088 (tui_win_name): Remove.
5089
be4da588
TT
50902019-06-25 Tom Tromey <tom@tromey.com>
5091
5092 * tui/tui-winsource.h (tui_update_source_window)
5093 (tui_update_source_window_as_is): Change parameter type.
5094 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5095 to be a tui_source_window_base.
5096 (tui_update_source_window_as_is): Likewise.
5097 * tui/tui-win.c (make_visible_with_new_height): Update.
5098
5b81daba
TT
50992019-06-25 Tom Tromey <tom@tromey.com>
5100
5101 * tui/tui-winsource.c (tui_erase_source_content)
5102 (tui_show_source_content, tui_show_exec_info_content)
5103 (tui_erase_exec_info_content): Use refresh_window method.
5104 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5105 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5106 from tui_refresh_win.
5107 (tui_data_window::refresh_window): New method.
5108 (tui_win_info::refresh, tui_source_window_base::refresh)
5109 (tui_refresh_all): Use refresh_window method.
5110 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5111 method.
5112 * tui/tui-regs.c (tui_display_register): Call refresh_window
5113 method.
5114 * tui/tui-layout.c (show_source_disasm_command)
5115 (show_source_or_disasm_and_command): Call refresh_window method.
5116 * tui/tui-data.h (struct tui_gen_win_info)
5117 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5118 New method.
5119
cb2ce893
TT
51202019-06-25 Tom Tromey <tom@tromey.com>
5121
5122 * tui/tui.c (tui_rl_other_window, tui_enable)
5123 (tui_is_window_visible, tui_get_command_dimension): Update.
5124 * tui/tui-winsource.c (tui_update_source_window_as_is)
5125 (tui_clear_source_content, tui_erase_source_content)
5126 (tui_show_source_line, tui_source_window_base::refill)
5127 (tui_source_window_base::do_scroll_horizontal)
5128 (tui_source_window_base::set_is_exec_point_at)
5129 (tui_update_breakpoint_info, tui_set_exec_info_content)
5130 (tui_alloc_source_buffer, tui_line_is_displayed)
5131 (tui_addr_is_displayed): Update.
5132 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5133 (tui_check_and_display_highlight_if_needed)
5134 (tui_win_info::make_visible, tui_win_info::refresh)
5135 (tui_refresh_all): Update.
5136 * tui/tui-windata.c (tui_first_data_item_displayed)
5137 (tui_delete_data_content_windows, tui_erase_data_content)
5138 (tui_display_all_data, tui_data_window::refresh_all)
5139 (tui_check_data_values): Update.
5140 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5141 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5142 (tui_win_info::backward_scroll, tui_refresh_all_win)
5143 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5144 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5145 (tui_source_window_base::set_new_height)
5146 (tui_data_window::set_new_height)
5147 (make_invisible_and_set_new_height)
5148 (make_visible_with_new_height, new_height_ok)
5149 (parse_scrolling_args): Update.
5150 * tui/tui-stack.c (tui_show_frame_info): Update.
5151 * tui/tui-source.c (tui_set_source_content)
5152 (tui_set_source_content_nil, tui_source_is_displayed)
5153 (tui_source_window::do_scroll_vertical): Update.
5154 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5155 (tui_display_registers_from, tui_display_reg_element_at_line)
5156 (tui_check_register_values, tui_reg_command): Update.
5157 * tui/tui-layout.c (tui_default_win_height)
5158 (show_source_disasm_command, show_data, init_and_make_win)
5159 (show_source_or_disasm_and_command): Update.
5160 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5161 (tui_redisplay_readline, tui_mld_flush)
5162 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5163 (tui_getc): Update.
5164 * tui/tui-disasm.c (tui_set_disassem_content)
5165 (tui_disasm_window::do_scroll_vertical): Update.
5166 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5167 Now virtual.
5168 (struct tui_win_info): Derive from tui_gen_win_info.
5169 <~tui_win_info>: Mark as override.
5170 <generic>: Remove member.
5171 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5172 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5173 (~tui_data_window, ~tui_win_info)
5174 (tui_free_all_source_wins_content): Update.
5175 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5176
ab313b35
TT
51772019-06-25 Tom Tromey <tom@tromey.com>
5178
5179 * tui/tui-layout.c (init_and_make_win): Use new.
5180 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5181 destructor, initializers.
5182 (tui_alloc_generic_win_info): Don't declare.
5183 * tui/tui-data.c (_locator): Add argument to constructor.
5184 (source_win, disasm_win): New globals.
5185 (exec_info): Remove.
5186 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5187 Update.
5188 (tui_alloc_generic_win_info): Remove.
5189 (init_content_element): Use new.
5190 (tui_win_info::tui_win_info): Update.
5191 (free_content_elements) <case DATA_WIN>: Use delete.
5192
dc2c33e4
TT
51932019-06-25 Tom Tromey <tom@tromey.com>
5194
5195 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5196 * tui/tui-windata.c (tui_first_data_item_displayed)
5197 (tui_delete_data_content_windows): Update.
5198 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5199 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5200 (tui_display_registers_from, tui_check_register_values): Update.
5201 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5202 pointer.
5203 * tui/tui-data.c (init_content_element): Update. Allocate the new
5204 window.
5205 (tui_free_data_content): Update.
5206 (free_content_elements) <case DATA_WIN>: Free the window.
5207
214a5cbe
TT
52082019-06-25 Tom Tromey <tom@tromey.com>
5209
5210 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5211 Update.
5212 * tui/tui-layout.c (make_command_window)
5213 (show_source_disasm_command, show_data, init_and_make_win)
5214 (show_source_or_disasm_and_command): Update.
5215 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5216 method.
5217 <can_highight, is_highlighted>: Now bool.
5218 (tui_set_win_highlight): Don't declare.
5219 * tui/tui-data.c (tui_set_win_highlight): Remove.
5220
8e2daf15
TT
52212019-06-25 Tom Tromey <tom@tromey.com>
5222
5223 * tui/tui-wingeneral.c (make_visible): Remove check of window
5224 type.
5225
8903bd8a
TT
52262019-06-25 Tom Tromey <tom@tromey.com>
5227
5228 * tui/tui-win.c (tui_win_info::max_height)
5229 (tui_cmd_window::max_height): New methods.
5230 (new_height_ok): Call max_height.
5231 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5232 <max_height>: New method.
5233
3f02ce1e
TT
52342019-06-25 Tom Tromey <tom@tromey.com>
5235
5236 * tui/tui-win.c (tui_source_window_base::set_new_height)
5237 (tui_data_window::set_new_height): New methods.
5238 (make_invisible_and_set_new_height): Call set_new_height method.
5239 * tui/tui-data.h (struct tui_win_info)
5240 (struct tui_source_window_base, struct tui_data_window)
5241 <set_new_height>: New method.
5242
1825f487
TT
52432019-06-25 Tom Tromey <tom@tromey.com>
5244
5245 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5246 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5247 tui_refresh_data_win.
5248 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5249 method.
5250 (tui_refresh_all_win): Call the refresh_all method.
5251 (tui_set_focus): Likewise.
5252 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5253 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5254 Likewise.
5255
ad54d15b
TT
52562019-06-25 Tom Tromey <tom@tromey.com>
5257
5258 * tui/tui-winsource.h (tui_refill_source_window)
5259 (tui_set_is_exec_point_at): Don't declare.
5260 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5261 (tui_source_window_base::refill): Rename from
5262 tui_refill_source_window.
5263 (tui_source_window_base::do_scroll_horizontal): Update.
5264 (tui_source_window_base::set_is_exec_point_at): Rename from
5265 tui_set_is_exec_point_at.
5266 (tui_update_all_breakpoint_info): Update.
5267 * tui/tui-stack.c (tui_show_frame_info): Update.
5268 * tui/tui-layout.c (show_data): Add cast.
5269 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5270 * tui/tui-data.h (struct tui_source_window_base) <refill,
5271 set_is_exec_point_at>: New methods.
5272 (tui_source_windows, tui_add_to_source_windows): Update types.
5273 (tui_add_to_source_windows): Remove redundant declaration.
5274 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5275 (tui_source_windows): Change return type.
5276 (tui_clear_source_windows_detail): Update.
5277 (tui_add_to_source_windows): Change type of parameter.
5278 (tui_free_all_source_wins_content): Update.
5279
2042b506
TT
52802019-06-25 Tom Tromey <tom@tromey.com>
5281
5282 * tui/tui-wingeneral.c (tui_win_info::refresh)
5283 (tui_source_window_base::refresh): New methods.
5284 (tui_refresh_all): Call the refresh method.
5285 * tui/tui-data.h (struct tui_win_info)
5286 (struct tui_source_window_base) <refresh>: New method.
5287
56122977
TT
52882019-06-25 Tom Tromey <tom@tromey.com>
5289
5290 * tui/tui.h (tui_is_window_visible): Return bool.
5291 * tui/tui.c (tui_is_window_visible): Return bool.
5292 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5293 (tui_make_visible, tui_make_invisible)
5294 (tui_win_info::make_visible)
5295 (tui_source_window_base::make_visible, make_all_visible)
5296 (tui_make_all_visible, tui_make_all_invisible): Update.
5297 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5298 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5299 bool.
5300 (struct tui_win_info, struct tui_source_window_base)
5301 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5302 * tui/tui-data.c (tui_init_generic_part): Update.
5303
cda37efb
TT
53042019-06-25 Tom Tromey <tom@tromey.com>
5305
5306 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5307 (tui_source_window_base::make_visible): New methods.
5308 (make_all_visible): Make method call.
5309 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5310 (struct tui_source_window_base, struct tui_cmd_window): Override
5311 make_visible.
5312 (tui_win_is_source_type): Don't declare.
5313 * tui/tui-data.c (tui_win_is_source_type): Remove.
5314
6a0ee02c
TT
53152019-06-25 Tom Tromey <tom@tromey.com>
5316
5317 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5318 NULL check.
5319
63901aec
TT
53202019-06-25 Tom Tromey <tom@tromey.com>
5321
5322 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5323 Inline constructor. Add initializers for members.
5324 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5325 constructors; now inline in class.
5326
ceb13a13
TT
53272019-06-25 Tom Tromey <tom@tromey.com>
5328
5329 * tui/tui-regs.c (tui_show_registers): Update.
5330 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5331 bool.
5332 * tui/tui-data.c (tui_data_window::clear_detail)
5333 (tui_data_window): Update.
5334
238eb706
TT
53352019-06-25 Tom Tromey <tom@tromey.com>
5336
5337 * tui/tui-windata.c (tui_display_all_data)
5338 (tui_display_data_from_line, tui_display_data_from)
5339 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5340 Update.
5341 * tui/tui-regs.c (tui_last_regs_line_no)
5342 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5343 (tui_show_registers, tui_show_register_group)
5344 (tui_display_registers_from, tui_display_reg_element_at_line)
5345 (tui_display_registers_from_line, tui_check_register_values)
5346 (tui_reg_next, tui_reg_prev): Update.
5347 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5348 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5349 tui_data_window.
5350 (struct tui_win_info) <detail>: Remove. Add new fields from
5351 tui_data_info.
5352 (TUI_DATA_WIN): Add cast.
5353 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5354 (~tui_data_window): Simplify.
5355
81491aa0
TT
53562019-06-25 Tom Tromey <tom@tromey.com>
5357
5358 * tui/tui-layout.c (show_source_disasm_command)
5359 (show_source_or_disasm_and_command): Update.
5360 * tui/tui-io.c (update_cmdwin_start_line)
5361 (tui_redisplay_readline): Update.
5362 * tui/tui-data.h (struct tui_command_info): Remove.
5363 (struct tui_win_info) <detail>: Remove command_info member.
5364 (struct tui_data_window) <start_line>: New member, from
5365 tui_command_info.
5366 (TUI_CMD_WIN): Add casts.
5367
e6e41501
TT
53682019-06-25 Tom Tromey <tom@tromey.com>
5369
5370 * tui/tui-winsource.c (tui_update_source_window)
5371 (tui_refill_source_window)
5372 (tui_source_window_base::do_scroll_horizontal)
5373 (tui_update_breakpoint_info, tui_set_exec_info_content)
5374 (tui_show_exec_info_content, tui_erase_exec_info_content)
5375 (tui_clear_exec_info_content): Update.
5376 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5377 Update.
5378 * tui/tui-win.c (make_invisible_and_set_new_height)
5379 (make_visible_with_new_height): Update.
5380 * tui/tui-source.c (tui_set_source_content)
5381 (tui_show_symtab_source): Update.
5382 * tui/tui-layout.c (extract_display_start_addr)
5383 (show_source_disasm_command, show_data)
5384 (make_source_or_disasm_window)
5385 (show_source_or_disasm_and_command): Update.
5386 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5387 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5388 "gdbarch".
5389 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5390 to tui_source_window_base.
5391 (struct tui_win_info) <detail>: Remove source_info member.
5392 (struct tui_source_window_base) <has_locator>: Inline.
5393 Move contents from tui_source_info; rename has_locator member to
5394 m_has_locator.
5395 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5396 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5397 header file.
5398 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5399 Simplify.
5400 (tui_free_all_source_wins_content): Cast to
5401 tui_source_window_base.
5402
44f0e208
TT
54032019-06-25 Tom Tromey <tom@tromey.com>
5404
5405 * tui/tui-win.c (make_invisible_and_set_new_height)
5406 (make_visible_with_new_height): Call has_locator method.
5407 * tui/tui-layout.c (show_source_disasm_command, show_data)
5408 (show_source_or_disasm_and_command): Update for bool change.
5409 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5410 (tui_win_info) <has_locator>: New method.
5411 (struct tui_source_window_base) <has_locator>: New method.
5412 (tui_win_has_locator): Don't declare.
5413 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5414 from tui_win_has_locator.
5415 (tui_source_window_base): Use false, not FALSE.
5416
7778b912
TT
54172019-06-25 Tom Tromey <tom@tromey.com>
5418
5419 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5420 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5421 clear_detail method directly.
5422 (tui_clear_win_detail): Remove.
5423
f83d391c
TT
54242019-06-25 Tom Tromey <tom@tromey.com>
5425
5426 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5427 "this", not TUI_DISASM_WIN.
5428
13446e05
TT
54292019-06-25 Tom Tromey <tom@tromey.com>
5430
5431 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
5432 declare.
5433 * tui/tui-winsource.c
5434 (tui_source_window_base::do_scroll_horizontal): Rename from
5435 tui_horizontal_source_scroll.
5436 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5437 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5438 from tui_vertical_data_scroll.
5439 * tui/tui-win.h (tui_scroll): Don't declare.
5440 * tui/tui-win.c (tui_win_info::forward_scroll)
5441 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5442 (tui_win_info::right_scroll): Rename and update.
5443 (tui_scroll_forward_command, tui_scroll_backward_command)
5444 (tui_scroll_left_command, tui_scroll_right_command): Update.
5445 (tui_scroll): Remove.
5446 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5447 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5448 from tui_vertical_source_scroll.
5449 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5450 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5451 from tui_vertical_disassem_scroll.
5452 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5453 do_scroll_horizontal>: New methods.
5454 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5455 Likewise.
5456 (struct tui_source_window_base): Add do_scroll_horizontal.
5457 (struct tui_source_window, struct tui_disasm_window): Add
5458 do_scroll_vertical.
5459 (struct tui_data_window, struct tui_cmd_window): Add
5460 do_scroll_horizontal and do_scroll_vertical.
5461 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5462
5cf82909
TT
54632019-06-25 Tom Tromey <tom@tromey.com>
5464
5465 * tui/tui-data.h (struct tui_source_window_base): New struct.
5466 (struct tui_source_window): Derive from tui_source_window_base.
5467 (struct tui_disasm_window): New struct.
5468 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5469 from tui_source_window::clear_detail.
5470 (tui_source_window_base): Rename from tui_source_window.
5471 (~tui_source_window_base): Rename from ~tui_source_window.
5472 (tui_alloc_win_info): Create a tui_disasm_window.
5473
ee1d42d6
TT
54742019-06-25 Tom Tromey <tom@tromey.com>
5475
5476 * tui/tui-data.h (struct tui_source_window)
5477 (struct tui_data_window): Declare destructors.
5478 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5479 destructors.
5480 (tui_win_info): Simplify.
5481
b4eb2452
TT
54822019-06-25 Tom Tromey <tom@tromey.com>
5483
5484 * tui/tui-winsource.c (tui_display_main)
5485 (tui_update_source_windows_with_addr)
5486 (tui_update_all_breakpoint_info): Update.
5487 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5488 (new_height_ok, parse_scrolling_args): Update.
5489 * tui/tui-stack.c (tui_show_frame_info): Update.
5490 * tui/tui-data.h (struct tui_list): Remove.
5491 (tui_source_windows): Return a reference to a std::vector.
5492 * tui/tui-data.c (source_windows): Now a std::vector.
5493 (tui_source_windows): Change return type.
5494 (tui_clear_source_windows): Rewrite.
5495 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5496 (tui_free_all_source_wins_content): Rewrite.
5497
8761a91b
TT
54982019-06-25 Tom Tromey <tom@tromey.com>
5499
5500 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5501 (struct tui_data_window, struct tui_cmd_window): Declare
5502 clear_detail method.
5503 * tui/tui-data.c (tui_source_window::clear_detail)
5504 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5505 methods.
5506 (tui_clear_win_detail): Simplify.
5507
0ed69eda
TT
55082019-06-25 Tom Tromey <tom@tromey.com>
5509
5510 * tui/tui-layout.c (make_source_window, make_disasm_window)
5511 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5512 Return the new window.
5513 (show_source_disasm_command, show_data)
5514 (show_source_or_disasm_and_command): Update.
5515
82432e10
TT
55162019-06-25 Tom Tromey <tom@tromey.com>
5517
5518 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5519 parameter. Return the new window.
5520 (show_source_disasm_command): Update and remove NULL check.
5521 (show_source_or_disasm_and_command): Update.
5522
ec328aa5
TT
55232019-06-25 Tom Tromey <tom@tromey.com>
5524
5525 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5526
33b906ab
TT
55272019-06-25 Tom Tromey <tom@tromey.com>
5528
5529 * tui/tui-data.h (struct tui_win_info): Make constructor
5530 protected. Make destructor virtual. Add initializers.
5531 (tui_source_window, tui_data_window, tui_cmd_window): New
5532 classes.
5533 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5534 constructor. Add "type" parameter.
5535 (tui_source_window, tui_data_window, tui_cmd_window): New
5536 constructors.
5537 (tui_alloc_win_info): Instantiate the appropriate subclass.
5538
e7e11af4
TT
55392019-06-25 Tom Tromey <tom@tromey.com>
5540
5541 * tui/tui-win.c (tui_resize_all): Use delete.
5542 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5543 destructor.
5544 (tui_free_window): Don't declare.
5545 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5546 Update.
5547
6792b55e
TT
55482019-06-25 Tom Tromey <tom@tromey.com>
5549
5550 * tui/tui-data.h (struct tui_win_info): Add constructor.
5551 * tui/tui-data.c (tui_alloc_win_info): Use new.
5552 (tui_free_window): Use delete.
5553
f95675e1
TT
55542019-06-22 Tom Tromey <tom@tromey.com>
5555
5556 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5557 declare.
5558 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5559
5bff081c
TT
55602019-06-22 Tom Tromey <tom@tromey.com>
5561
5562 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5563 declare.
5564 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5565
47e3f474
TV
55662019-06-22 Tom de Vries <tdevries@suse.de>
5567
5568 * dwarf2read.c (create_addrmap_from_aranges)
5569 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5570 instead of '%zu'.
5571
fd5866f6
SM
55722019-06-21 Simon Marchi <simon.marchi@efficios.com>
5573
5574 * dwarf2read.h (dwarf2_section_info_def): Remove.
5575 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5576 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5577 std::vector<dwarf2_section_info>.
5578 (struct dwo_file) <~dwo_file>: Remove.
5579 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5580 types field.
5581 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5582 (dwarf2_read_debug_names): Likewise.
5583 (create_debug_types_hash_table): Change parameter type to
5584 array_view, adjust code accordingly.
5585 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5586 (partial_die_info::fixup): Likewise.
5587 (determine_prefix): Likewise.
5588 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5589
fb1eb2f9
SM
55902019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5591
5592 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5593 gdb_bfd_ref_ptr.
5594 <~dwo_file>: Remove call to gdb_bfd_unref.
5595 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5596 gdb_bfd_ref_ptr::get.
5597
51ac9db5
SM
55982019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5599
5600 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5601 type to htab_up.
5602 * dwarf2read.c (struct dwo_file): Initialize fields.
5603 <~dwo_file>: New.
5604 (free_dwo_file): Remove, move content to ~dwo_file.
5605 (struct dwo_file_deleter): Remove.
5606 (dwo_file_up>: Remove custom deleter.
5607 (free_dwo_files): Remove.
5608 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5609 dwo_files.
5610 (process_skeletonless_type_units): Call unique_ptr::get.
5611 (allocate_dwo_file_hash_table): Add deleter to created hash
5612 table. Change return type to htab_up.
5613 (lookup_dwo_file_slot): Don't memset dwo_file, call
5614 unique_ptr::get.
5615 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5616 (create_dwo_unit_in_dwp_v2): Likewise.
5617 (open_and_init_dwo_file): Likewise.
5618 (free_dwo_file_from_slot): Remove.
5619
dc4ccb6f
SM
56202019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5621
5622 * dwarf2read.h (struct dwarf2_section_info) <readin,
5623 is_virtual>: Change type to bool.
5624 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5625 true instead of 1.
5626
e6a1c5cb
TT
56272019-06-19 Tom Tromey <tom@tromey.com>
5628
5629 * tui/tui-data.h (tui_init_content_element): Don't declare.
5630
6f6ffbeb
TT
56312019-06-19 Tom Tromey <tom@tromey.com>
5632
5633 * tui/tui-data.h (tui_init_win_info): Don't declare.
5634
f23f598e
TV
56352019-06-19 Tom de Vries <tdevries@suse.de>
5636
5637 * dwarf2read.h (abstract_to_concrete): Change type to
5638 std::unordered_map<sect_offset, std::vector<sect_offset>,
5639 gdb::hash_enum<sect_offset>>.
5640
680e1bee
TT
56412019-06-19 Tom Tromey <tromey@adacore.com>
5642
5643 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5644 EVAL_AVOID_SIDE_EFFECTS specially.
5645
dcf37923
TT
56462019-06-19 Tom Tromey <tromey@adacore.com>
5647
5648 * source-cache.c (highlighter): New global.
5649 (source_cache::get_source_lines): Create a highlighter on demand.
5650
494986d5
AB
56512019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5652
5653 * defs.h (deprecated_interactive_hook): Delete declaration.
5654 * interps.c (clear_interpreter_hooks): Remove use of
5655 deprecated_interactive_hook.
5656 * top.c (deprecated_interactive_hook): Delete definition.
5657 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5658
3360b6e7
TV
56592019-06-18 Tom de Vries <tdevries@suse.de>
5660
5661 PR gdb/24515
5662 * dwarf2read.h (abstract_to_concrete): Change type from
5663 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5664 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5665 * dwarf2read.c (read_variable): Update.
5666 (dwarf2_fetch_die_loc_sect_off): Update.
5667
310b3441
TV
56682019-06-17 Tom de Vries <tdevries@suse.de>
5669
5670 PR gdb/24617
5671 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5672 accessing parent[parent_len - 1].
5673
ba9777be
PP
56742019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5675
5676 PR gdb/24364
5677 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5678 call dtrace_process_dof with NULL dof.
5679
2b9f6e89
TV
56802019-06-16 Tom de Vries <tdevries@suse.de>
5681
5682 PR gdb/24445
5683 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5684
431b3ead
TT
56852019-06-16 Tom Tromey <tom@tromey.com>
5686
5687 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5688 (make_all_visible): Use address of member.
5689
d04b44a1
TT
56902019-06-16 Tom Tromey <tom@tromey.com>
5691
5692 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5693 (tui_free_window, free_content, free_content_elements): Remove
5694 unnecessary cast.
5695 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5696 cast.
5697 * tui/tui-regs.c (tui_show_register_group)
5698 (tui_display_registers_from, tui_display_reg_element_at_line):
5699 Remove unnecessary cast.
5700
bf5142e7
AB
57012019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5702
5703 * linux-nat.c (normal_mask): Delete.
5704 (_initialize_linux_nat): Don't initialise normal_mask.
5705
c4973306
SM
57062019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5707
5708 PR gdb/24445
5709 * dwarf-index-write.h (write_psymtabs_to_index): Add
5710 dwz_basename parameter.
5711 * dwarf-index-write.c (write_gdbindex): Move file writing to
5712 write_gdbindex_1. Change return type void.
5713 (assert_file_size): Move up, remove filename parameter.
5714 (write_gdbindex_1): New function.
5715 (write_debug_names): Change return type to void, call
5716 assert_file_size.
5717 (struct index_wip_file): New struct.
5718 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5719 file logic to index_wip_file. Write index for dwz file if
5720 needed.
5721 (save_gdb_index_command): Pass basename of dwz file, if present.
5722 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5723 build-id of dwz file, if present.
5724 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5725 (dwarf2_get_dwz_file): Likewise.
5726 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5727 (dwarf2_get_dwz_file): Likewise.
5728
395f9c91
TT
57292019-06-16 Tom Tromey <tom@tromey.com>
5730
5731 * coffread.c (process_coff_symbol): Use xstrdup.
5732 * value.c (create_internalvar): Use xstrdup.
5733
cafb3438
TT
57342019-06-16 Tom Tromey <tom@tromey.com>
5735
5736 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5737 * breakpoint.c (stopin_command, stopat_command)
5738 (until_break_command, decode_location_default): Remove unnecessary
5739 cast.
5740 * utils.c (subset_compare): Remove unnecessary cast.
5741 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5742 cast.
5743 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5744 cast.
5745 * infcmd.c (path_command): Remove unnecessary cast.
5746 * coffread.c (decode_type): Remove unnecessary cast.
5747 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5748 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5749 * tui/tui-stack.c (tui_show_locator_content)
5750 (tui_show_frame_info): Remove unnecessary cast.
5751 * tui/tui-win.c (tui_scroll_forward_command)
5752 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5753 (parse_scrolling_args): Remove unnecessary cast.
5754 * tui/tui-data.c (init_win_info, tui_del_window)
5755 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5756 (free_content_elements): Remove unnecessary cast.
5757 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5758 unnecessary cast.
5759 * tui/tui-source.c (tui_set_source_content)
5760 (tui_vertical_source_scroll): Remove unnecessary cast.
5761 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5762 cast.
5763 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5764 * tui/tui-regs.c (tui_display_registers_from)
5765 (tui_display_register): Remove unnecessary cast.
5766 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5767 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5768 (make_visible): Remove unnecessary cast.
5769 * tui/tui-winsource.c (tui_erase_source_content)
5770 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5771 unnecessary cast.
5772 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5773 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5774 * stabsread.c (read_type, read_array_type, read_range_type):
5775 Remove unnecessary cast.
5776 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5777 (parse_symbol, parse_type, upgrade_type, parse_external)
5778 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5779 unnecessary cast.
5780 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5781
730ead81
TT
57822019-06-16 Tom Tromey <tom@tromey.com>
5783
5784 * tui/tui-data.c (tui_alloc_generic_win_info)
5785 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5786 checks.
5787
584a927c
AB
57882019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5789 Andrew Burgess <andrew.burgess@embecosm.com>
5790
5791 * f-typeprint.c (f_print_type): Don't return early for not
5792 associated or not allocated types.
5793 (f_type_print_varspec_suffix): Add print_rank parameter and print
5794 ranks of array types in case they dangling.
5795 (f_type_print_base): Add print_rank parameter.
5796
30056ea0
AB
57972019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5798
5799 * NEWS: Mention new MI commands.
5800 * break-catch-throw.c (enum exception_event_kind): Move to
5801 breakpoint.h.
5802 (print_mention_exception_catchpoint): Output text as a single
5803 message.
5804 (catch_exception_command_1): Rename to...
5805 (catch_exception_event): ...this, make non-static, update header
5806 command, and change some parameter types.
5807 (catch_catch_command): Update for changes to
5808 catch_exception_command_1.
5809 (catch_throw_command): Likewise.
5810 (catch_rethrow_command): Likewise.
5811 * breakpoint.c (enum exception_event_kind): Delete.
5812 * breakpoint.h (enum exception_event_kind): Moved here from
5813 break-catch-throw.c.
5814 (catch_exception_event): Declare.
5815 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5816 (mi_cmd_catch_throw): New function.
5817 (mi_cmd_catch_rethrow): New function.
5818 (mi_cmd_catch_catch): New function.
5819 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5820 'catch-catch' entries.
5821 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5822 (mi_cmd_catch_rethrow): Declare.
5823 (mi_cmd_catch_catch): Declare.
5824
ec8e2b6d
AB
58252019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5826
5827 * annotate.c (annotate_source_line): Change return type to void,
5828 update implementation to match.
5829 * annotate.h (annotate_source_line): Change return type to void,
5830 update header comment.
5831 * stack.c (print_frame_info): Don't change what frame information
5832 is printed based on whether annotations are on or not.
5833
0d3abd8c
AB
58342019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5835
5836 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5837 (annotate_source): Make static.
5838 (annotate_source_line): Moved from source.c and renamed from
5839 identify_source_line. Update the return type.
5840 * annotate.h (annotate_source): Delete declaration.
5841 (annotate_source_line): Declaration moved from source.h, and
5842 renamed from identify_source_line. Return type updated.
5843 * source.c (identify_source_line): Moved to annotate.c and renamed
5844 to annotate_source_line.
5845 (info_line_command): Remove check of annotation_level.
5846 * source.h (identify_source_line): Move declaration to annotate.h
5847 and rename to annotate_source_line.
5848 * stack.c: Add 'annotate.h' include.
5849 (print_frame_info): Remove check of annotation_level before
5850 calling annotate_source_line.
5851
00df30ae
AB
58522019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5853
5854 * source-cache.c (source_cache::get_plain_source_lines): Use
5855 open_source_file_with_line_charpos instead of just
5856 open_source_file, remove call to find_source_lines.
5857 (source_cache::get_source_lines): Likewise.
5858 * source.c (find_source_lines): Make static.
5859 (get_filename_and_charpos): Renamed into...
5860 (open_source_file_with_line_charpos): ..this along with changes to
5861 return a scoped_fd, and some other minor clean ups.
5862 (identify_source_line): Use open_source_file_with_line_charpos.
5863 (search_command_helper): Use open_source_file_with_line_charpos
5864 instead of just open_source_file, remove call to
5865 find_source_lines.
5866 * source.h (open_source_file_with_line_charpos): Declare new
5867 function.
5868 (find_source_lines): Delete declaration.
5869
afda45a2
AB
58702019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5871
5872 * source.c (get_filename_and_charpos): Remove fullname
5873 parameter.
5874 (identify_source_line): Update call to get_filename_and_charpos.
5875
0735b091
TT
58762019-06-14 Tom Tromey <tromey@adacore.com>
5877
5878 PR gdb/24502:
5879 * ui-style.h (skip_ansi_escape): Update comment.
5880 * ui-file.h (class no_terminal_escape_file): New class.
5881 * ui-file.c (no_terminal_escape_file::write)
5882 (no_terminal_escape_file::puts): New methods.
5883 * cli/cli-logging.c (handle_redirections): Use
5884 no_terminal_escape_file.
5885
52ce35e2
TT
58862019-06-14 Tom Tromey <tromey@adacore.com>
5887
5888 * NEWS: Move convenience variable news above Python news.
5889
73cc7272
TT
58902019-06-14 Tom Tromey <tom@tromey.com>
5891
5892 * gnulib: Move directory to top-level.
5893 * configure.ac: Don't configure gnulib.
5894 * configure: Rebuild.
5895 * common/common-defs.h: Use new path to gnulib.
5896 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5897 (GNULIB_H): Remove.
5898 (INCGNU): Look in new gnulib location.
5899 (HFILES_NO_SRCDIR): Remove gnulib files.
5900 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5901 (generated_files): Remove GNULIB_H.
5902 ($(LIBGNU), all-lib): Remove targets.
5903 (distclean): Don't mention GNULIB_BUILDDIR.
5904 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5905
f5686554
TT
59062019-06-14 Tom Tromey <tromey@adacore.com>
5907
5908 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5909 Warn if symbol file does not provide any symbols.
5910
a0c1ffed
TT
59112019-06-14 Tom Tromey <tromey@adacore.com>
5912
5913 * source.c (find_and_open_source): Respect basenames_may_differ.
5914
7c39e397
AB
59152019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5916
5917 * annotate.c (annotate_breakpoints_invalid): Make use of
5918 scoped_restore_terminal_state.
5919 (annotate_frames_invalid): Likewise.
5920
f411722c
TT
59212019-06-14 Tom Tromey <tromey@adacore.com>
5922
5923 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5924 allow assignment to an internalvar.
5925
4268ec18
TT
59262019-06-14 Tom Tromey <tromey@adacore.com>
5927
5928 * ada-lex.l: Allow "_" in attribute names.
5929
abdb711e
TT
59302019-06-14 Tom Tromey <tromey@adacore.com>
5931
5932 PR gdb/24653:
5933 * regcache.c (registers_changed): Don't call alloca.
5934 * top.c (execute_command): Don't call alloca.
5935
4c048731
PA
59362019-06-13 Pedro Alves <palves@redhat.com>
5937
5938 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5939 'expression'. When parsing an expression, error out if there's
5940 junk after "unlimited".
5941 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5942 (do_set_command): Adjust calls to is_unlimited_literal.
5943
66eb1ed3
PA
59442019-06-13 Pedro Alves <palves@redhat.com>
5945
5946 * compile/compile.c (make_compile_options_def_group): Add braces
5947 around array_view initializer.
5948 * thread.c (make_thread_apply_all_options_def_group)
5949 (make_thread_apply_all_options_def_group): Likewise.
5950
3345721a
PA
59512019-06-13 Pedro Alves <palves@redhat.com>
5952
5953 * NEWS (New commands): Mention "maint test-options
5954 require-delimiter", "maint test-options unknown-is-error", "maint
5955 test-options unknown-is-operand" and "maint show
5956 test-options-completion-result".
5957 (New command options, command completion): New section.
5958 (Completion improvements): New section.
5959 Mention that you can abbreviate "unlimited".
5960
6206060d
PA
59612019-06-13 Pedro Alves <palves@redhat.com>
5962
5963 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5964 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5965 * unittests/cli-utils-selftests.c (test_parse_flags)
5966 (test_parse_flags_qcs): Delete.
5967 (test_cli_utils): Don't call deleted functions.
5968
6665660a
PA
59692019-06-13 Pedro Alves <palves@redhat.com>
5970
5971 * thread.c: Include "cli/cli-option.h".
5972 (tp_array_compar_ascending): Global.
5973 (tp_array_compar): Delete function.
5974 (tp_array_compar_ascending, tp_array_compar_descending): New
5975 functions.
5976 (ascending_option_def, qcs_flag_option_def)
5977 (thr_qcs_flags_option_defs)
5978 (make_thread_apply_all_options_def_group)
5979 (make_thread_apply_options_def_group): New.
5980 (thread_apply_all_command): Use gdb::option::process_options.
5981 (thread_apply_command_completer)
5982 (thread_apply_all_command_completer): New.
5983 (thread_apply_command): Use gdb::option::process_options.
5984 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5985 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5986 to generate help text of "thread apply". Adjust "taas"'s help.
5987 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5988 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5989
f7e13587
PA
59902019-06-13 Pedro Alves <palves@redhat.com>
5991
5992 * thread.c (thread_apply_command): Check for invalid TID with
5993 isdigit instead of !isalpha.
5994
5d707134
PA
59952019-06-13 Pedro Alves <palves@redhat.com>
5996
5997 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5998 (validate_flags_qcs): New.
5999 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6000 (validate_flags_qcs): Declare.
6001 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6002 (make_frame_apply_options_def_group): New.
6003 (frame_apply_command_count): Process options with
6004 gdb::option::process_options.
6005 (frame_apply_completer): New.
6006 (frame_apply_level_completer, frame_apply_all_completer)
6007 (frame_apply_completer): New.
6008 (_initialize_stack): Update help of "frame apply", "frame apply
6009 level", "frame apply all" and "faas" to mention supported options
6010 and install command completers.
6011 * stack.h (frame_apply_all_completer): Declare.
6012 * thread.c: Include "stack.h".
6013 (tfaas_command): Add "--".
6014 (_initialize_thread): Update help "tfaas" to mention supported
6015 options and install command completer.
6016
272d4594
PA
60172019-06-13 Pedro Alves <palves@redhat.com>
6018
6019 * completer.c (complete_nested_command_line): New.
6020 (gdb_completion_word_break_characters_throw): Add assertion.
6021 * completer.h (complete_nested_command_line): Declare.
6022
90a1ef87
PA
60232019-06-13 Pedro Alves <palves@redhat.com>
6024
6025 * stack.c (parse_backtrace_qualifiers): New.
6026 (backtrace_command): Use it.
6027 (backtrace_command_completer): Complete on qualifiers.
6028
d4c16835
PA
60292019-06-13 Pedro Alves <palves@redhat.com>
6030
6031 * frame.c: Include "cli/cli-option.h.
6032 (user_set_backtrace_options): New.
6033 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6034 Delete.
6035 (get_prev_frame): Adjust.
6036 (boolean_option_def, uinteger_option_def)
6037 (set_backtrace_option_defs): New.
6038 (_initialize_frame): Adjust and use
6039 gdb::option::add_setshow_cmds_for_options to install "set
6040 backtrace past-main" and "set backtrace past-entry".
6041 * frame.h: Include "cli/cli-option.h".
6042 (struct frame_print_options): Forward declare.
6043 (print_frame_arguments_all, print_frame_arguments_scalars)
6044 (print_frame_arguments_none): Declare.
6045 (print_entry_values): Delete declaration.
6046 (struct frame_print_options, user_frame_print_options): New.
6047 (struct set_backtrace_options): New.
6048 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6049 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6050 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6051 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6052 (list_args_or_locals): Add frame_print_options parameter.
6053 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6054 * python/py-framefilter.c (enumerate_args): Pass down
6055 USER_FRAME_PRINT_OPTIONS.
6056 * stack.c: Include "cli/cli-option.h".
6057 (print_frame_arguments_all, print_frame_arguments_scalars)
6058 (print_frame_arguments_none): Declare.
6059 (print_raw_frame_arguments, print_entry_values): Delete.
6060 (user_frame_print_options): New.
6061 (boolean_option_def, enum_option_def, frame_print_option_defs):
6062 New.
6063 (struct backtrace_cmd_options): New.
6064 (bt_flag_option_def): New.
6065 (backtrace_command_option_defs): New.
6066 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6067 (print_frame_arg, read_frame_arg, print_frame_args)
6068 (print_frame_info, print_frame): Add frame_print_options parameter
6069 and use it.
6070 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6071 (backtrace_command_1): Add frame_print_options and
6072 backtrace_cmd_options parameters and use them.
6073 (make_backtrace_options_def_group): New.
6074 (backtrace_command): Process command options with
6075 gdb::option::process_options.
6076 (backtrace_command_completer): New.
6077 (_initialize_stack): Extend "backtrace"'s help to mention
6078 supported options. Install completer for "backtrace".
6079 Install some settings commands with add_setshow_cmds_for_options.
6080
2daf894e
PA
60812019-06-13 Pedro Alves <palves@redhat.com>
6082
6083 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6084 and that "set/show print raw frame-arguments" are now deprecated.
6085
6086 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6087 command.
6088 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6089 * stack.c (_initialize_stack): Install "set/show print
6090 raw-frame-arguments", and deprecate "set/show print raw
6091 frame-arguments".
6092 * valprint.c (_initialize_valprint): Deprecate "set/show print
6093 raw".
6094
e6ed716c
PA
60952019-06-13 Pedro Alves <palves@redhat.com>
6096
6097 * compile/compile.c (struct compile_options): New.
6098 (compile_flag_option_def, compile_command_option_defs)
6099 (make_compile_options_def_group): New.
6100 (compile_file_command): Handle options with
6101 gdb::option::process_options.
6102 (compile_file_command_completer): New function.
6103 (compile_code_command): Handle options with
6104 gdb::option::process_options.
6105 (compile_code_command_completer): New function.
6106 (_initialize_compiler): Install completers for "compile code" and
6107 "compile file". Mention available options in "compile code" and
6108 "compile code"'s help.
6109 * completer.c (advance_to_completion_word): New, factored out from
6110 ...
6111 (advance_to_expression_complete_word_point): ... this.
6112 (advance_to_filename_complete_word_point): New.
6113 * completer.h (advance_to_filename_complete_word_point): New
6114 declaration.
6115
7d8062de
PA
61162019-06-13 Pedro Alves <palves@redhat.com>
6117
6118 * compile/compile.c: Include "cli/cli-option.h".
6119 (compile_print_value): Scope data pointer is now a
6120 value_print_options pointer; adjust.
6121 (compile_print_command): Process options. Scope data pointer is
6122 now a value_print_options pointer; adjust.
6123 (_initialize_compile): Update "compile print"'s help to include
6124 supported options. Install a completer for "compile print".
6125 * cp-valprint.c (show_vtblprint, show_objectprint)
6126 (show_static_field_print): Delete.
6127 (_initialize_cp_valprint): Don't install "set print
6128 static-members", "set print vtbl", "set print object" here.
6129 * printcmd.c: Include "cli/cli-option.h" and
6130 "common/gdb_optional.h".
6131 (print_command_parse_format): Rework to fill in a
6132 value_print_options instead of a format_data.
6133 (print_value): Change parameter type from format_data pointer to
6134 value_print_options reference. Adjust.
6135 (print_command_1): Process options. Adjust to pass down a
6136 value_print_options.
6137 (print_command_completer): New.
6138 (_initialize_printcmd): Install print_command_completer as
6139 handle_brkchars completer for the "print" command. Update
6140 "print"'s help to include supported options.
6141 * valprint.c: Include "cli/cli-option.h".
6142 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6143 here from cp-valprint.c.
6144 (boolean_option_def, uinteger_option_def)
6145 (value_print_option_defs, make_value_print_options_def_group):
6146 New. Use gdb::option::add_setshow_cmds_for_options to install
6147 "set print elements", "set print null-stop", "set print repeats",
6148 "set print pretty", "set print union", "set print array", "set
6149 print address", "set print symbol", "set print array-indexes".
6150 * valprint.h: Include <string> and "cli/cli-option.h".
6151 (make_value_print_options_def_group): Declare.
6152 (print_value): Change parameter type from format_data pointer to
6153 value_print_options reference.
6154 (print_command_completer): Declare.
6155
9d0faba9
PA
61562019-06-13 Pedro Alves <palves@redhat.com>
6157
6158 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6159 (COMMON_SFILES): Add maint-test-settings.c.
6160 * cli/cli-decode.c (boolean_enums): New global, factored out from
6161 ...
6162 (add_setshow_boolean_cmd): ... here.
6163 * cli/cli-decode.h (boolean_enums): Declare.
6164 * cli/cli-option.c: New file.
6165 * cli/cli-option.h: New file.
6166 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6167 factored out from ...
6168 (parse_cli_boolean_value(const char *)): ... this.
6169 (is_unlimited_literal): Change parameter type to pointer to
6170 pointer. Adjust and advance ARG pointer.
6171 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6172 (parse_cli_var_enum): New, factored out from ...
6173 (do_set_command): ... this. Adjust.
6174 * cli/cli-setshow.h (parse_cli_boolean_value)
6175 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6176 (parse_cli_var_enum): Declare.
6177 * cli/cli-utils.c: Include "cli/cli-option.h".
6178 (get_ulongest): New.
6179 * cli/cli-utils.h (get_ulongest): Declare.
6180 (check_for_argument): New overloads.
6181 * maint-test-options.c: New file.
6182
2c722807
PA
61832019-06-13 Pedro Alves <palves@redhat.com>
6184
6185 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6186 parse a range if "-" is at the end of the string.
6187
dee7b4c8
PA
61882019-06-13 Pedro Alves <palves@redhat.com>
6189
6190 * cli/cli-setshow.c (parse_auto_binary_operation)
6191 (parse_cli_boolean_value): Don't allow "o".
6192
dca0f6c0
PA
61932019-06-13 Pedro Alves <palves@redhat.com>
6194
6195 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6196 * NEWS: Mention maint test-settings KIND.
6197 * maint-test-settings.c: New file.
6198
597bf39d
PA
61992019-06-13 Pedro Alves <palves@redhat.com>
6200
6201 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6202 completer.
6203 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6204 "set" completers.
6205
48c410fb
PA
62062019-06-13 Pedro Alves <palves@redhat.com>
6207
6208 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6209 after item.
6210
93bcb043
PA
62112019-06-13 Pedro Alves <palves@redhat.com>
6212
6213 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6214
cbba3ecd
PA
62152019-06-13 Pedro Alves <palves@redhat.com>
6216
6217 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6218 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6219 call.
6220 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6221 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6222 calls.
6223 (check_for_argument): Skip spaces after argument.
6224
b9a3f842
PA
62252019-06-13 Pedro Alves <palves@redhat.com>
6226
6227 * thread.c (thread_apply_command): Adjust TID parsing.
6228 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6229 detected before end of string.
6230 (tid_is_in_list): Error out if LIST is invalid.
6231
3844e605
PA
62322019-06-13 Pedro Alves <palves@redhat.com>
6233
6234 * completer.c (complete_line_internal_1): Rewind completion word
6235 point.
6236 (completion_tracker::advance_custom_word_point_by): Change
6237 parameter type to int.
6238 * completer.h (completion_tracker::advance_custom_word_point_by):
6239 Likewise.
6240
00b56dbe
PA
62412019-06-13 Pedro Alves <palves@redhat.com>
6242
6243 * completer.c (advance_to_completion_word): Handle delimiters.
6244
d106773e
PA
62452019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6246
6247 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6248
08f10e02
TT
62492019-06-11 Tom Tromey <tom@tromey.com>
6250
6251 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6252 (xmalloc_failed): Move to alloc.c.
6253 * alloc.c: New file.
6254 * Makefile.in (COMMON_SFILES): Add alloc.c.
6255
1c7fe951
TT
62562019-06-11 Tom Tromey <tom@tromey.com>
6257
6258 * nat/linux-waitpid.c: Don't include server.h.
6259 (linux_debug): Remove.
6260 (my_waitpid): Update.
6261
89549d7f
TT
62622019-06-11 Tom Tromey <tromey@adacore.com>
6263
6264 * infcall.c (_initialize_infcall): Remove trailing newline from
6265 help.
6266 * user-regs.c (_initialize_user_regs): Remove trailing newline
6267 from help.
6268 * typeprint.c (_initialize_typeprint): Remove trailing newline
6269 from help.
6270 * reverse.c (_initialize_reverse): Remove trailing newlines from
6271 help.
6272 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6273 from help.
6274 * language.c (add_set_language_command): Remove trailing newline
6275 from help.
6276 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6277 help.
6278 * disasm.c (_initialize_disasm): Remove trailing newline from
6279 help.
6280 * top.c (init_main): Remove trailing newline from help.
6281 * interps.c (_initialize_interpreter): Remove trailing newline
6282 from help.
6283 * btrace.c (_initialize_btrace): Remove trailing newlines from
6284 help.
6285 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6286 from help.
6287 * python/python.c (_initialize_python): Remove trailing newline
6288 from help.
6289 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6290 help.
6291 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6292 from help. Reformat some text.
6293 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6294 from help.
6295 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6296 newline from help.
6297
86108c13
TT
62982019-06-11 Tom Tromey <tromey@adacore.com>
6299
6300 * darwin-nat.c (darwin_decode_exception_message)
6301 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6302
a7067863
AB
63032019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6304
6305 * valops.c (value_slice): Check for not allocated or not
6306 associated values.
6307
9ab08412
TV
63082019-06-10 Tom de Vries <tdevries@suse.de>
6309
6310 PR gdb/24618
6311 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6312 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6313 invalid.
6314
f19e22e9
TV
63152019-06-10 Tom de Vries <tdevries@suse.de>
6316
6317 PR gdb/24611
6318 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6319 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6320
e99f9db0
TV
63212019-06-10 Tom de Vries <tdevries@suse.de>
6322
6323 PR symtab/24545
6324 * symtab.c (struct demangled_name_entry): Add language field.
6325 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6326 static minimal symbol". Set and use language field.
6327
9bf7038b
TT
63282019-06-10 Tom Tromey <tromey@adacore.com>
6329
6330 * ada-lang.c (_initialize_ada_language): Update help text.
6331
422186a9
TT
63322019-06-10 Tom Tromey <tromey@adacore.com>
6333
6334 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6335 with a newline.
6336 * guile/guile.c (handle_boot_error): Don't end warning with a
6337 newline.
6338 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6339 warning with a newline.
6340 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6341 newline.
6342 (s12z_frame_cache): Likewise.
6343 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6344 a newline.
6345 * solib-svr4.c (disable_probes_interface): Don't end warning with
6346 a newline.
6347 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6348 newline.
6349 * python/python.c (do_finish_initialization): Don't end warning
6350 with a newline.
6351
25ce02ee
TT
63522019-06-10 Tom Tromey <tom@tromey.com>
6353
6354 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6355 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6356 gdbpy_enter.
6357
caa429d8
TT
63582019-06-10 Tom Tromey <tromey@adacore.com>
6359
6360 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6361 data.
6362 (elf_new_init): Don't call stabsread_new_init.
6363 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6364 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6365 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6366
81873cc8
TV
63672019-06-10 Tom de Vries <tdevries@suse.de>
6368
6369 PR symtab/16264
6370 PR symtab/24517
6371 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6372
4fa0265e
РИ
63732019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6374
6375 * source.c (find_and_open_source): Also rewrite relative file
6376 names.
6377
1a3da2cd
AB
63782019-04-26 Amos Bird <amosbird@gmail.com>
6379
6380 * annotate.c (annotate_thread_exited): Add "thread-exited"
6381 annotation.
6382
3847a7bf
TT
63832019-06-06 Tom Tromey <tromey@adacore.com>
6384
6385 * maint.h (class scoped_command_stats): Use
6386 DISABLE_COPY_AND_ASSIGN.
6387 <print_time>: New method.
6388 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6389 print_time.
6390 (scoped_command_stats::print_time): New method.
6391
312617a3
AB
63922019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6393
6394 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6395 instructions of lengths 6 or 8 bytes.
6396
b02f78f9
PA
63972019-06-04 Pedro Alves <palves@redhat.com>
6398
6399 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6400
6401 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6402 * breakpoint.c (condition_completer): Likewise.
6403 * cli/cli-dump.c (scan_expression): Likewise.
6404 * common/filestuff.c (mkdir_recursive): Likewise.
6405 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6406 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6407 (gdb_abspath): Likewise.
6408 * compile/compile-cplus-types.c
6409 (compile_cplus_instance::decl_name): Likewise.
6410 * completer.c (complete_explicit_location):
6411 (signal_completer, reg_or_group_completer_1): Likewise.
6412 * cp-support.c (cp_remove_params_if_any): Likewise.
6413 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6414 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6415 * infcmd.c (strip_bg_char): Likewise.
6416 * linespec.c (copy_token_string): Likewise.
6417 * mi/mi-main.c (output_cores): Likewise.
6418 * psymtab.c (psymtab_search_name):
6419 * symfile.c (test_set_ext_lang_command): Likewise.
6420 * target.c (target_fileio_read_stralloc): Likewise.
6421 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6422 * value.c (complete_internalvar): Likewise.
6423
e1f2e1a2
CB
64242019-06-04 Christian Biesinger <cbiesinger@google.com>
6425
6426 Add objfile property to gdb.Type.
d3238f7d
PA
6427 * NEWS: Mention Python API addition.
6428 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 6429
e664d728
PW
64302019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6431
6432 * NEWS: Mention the new set|show style [title|highlight].
6433 Mention changes to "show style", "help" and "apropos".
6434
66d8c862
PW
64352019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6436
6437 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6438 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
6439 instead of print_help_for_command.
6440 (print_doc_of_command): New function.
6441 (help_list): Add 'apropos -v word' suggestion.
6442 (print_help_for_command): Style the command name using title style.
6443 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6444 (_initialize_cli_cmds): Describe -v in apropos_command help.
6445
9303eb2f
PW
64462019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6447
6448 * cli/cli-style.h (cli_style_option): Add name in constructor,
6449 add m_name class member, add constructor with intensity,
6450 add name class function.
6451 (cli_style_option::add_setshow_commands): Remove name argument.
6452 (highlight_style, title_style): New styles.
6453 * cli/cli-style.c (do_show): New function that shows a style
6454 characteristic styling the style name with itself.
6455 (set_style_name): New function.
6456 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6457 Update all callers according to the changes in cli/cli-style.h.
6458 * utils.h (fputs_highlighted): New function.
6459 * utils.c (fputs_highlighted): Likewise.
6460
e2c52041
PW
64612019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6462
6463 * NEWS: Mention new pipe command and new convenience variables.
6464
947d3946
PW
64652019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6466
6467 * cli/cli-cmds.c (pipe_command): New function.
6468 (_initialize_cli_cmds): Call add_com for pipe_command.
6469 Define | as an alias for pipe.
6470 (exit_status_set_internal_vars): New function.
6471 (shell_escape): Call exit_status_set_internal_vars.
6472 cli/cli-decode.c (find_command_name_length): Recognize | as
6473 a single character command.
6474
b8fd0918
PW
64752019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6476
6477 * gdbcmd.h (execute_command_to_ui_file): New declaration.
6478 top.c (execute_command_to_ui_file): New function, mostly a copy
6479 of execute_command_to_string.
6480 (execute_command_to_string): Implement by calling
6481 execute_command_to_ui_file.
6482
68bb5386
PW
64832019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6484
6485 * top.h (saved_command_line): Remove declaration.
6486 * top.c (previous_saved_command_line, previous_repeat_arguments):
6487 New variables.
6488 (saved_command_line): Make static, define together with other
6489 'repeat variables'.
6490 (dont_repeat): Clear repeat_arguments.
6491 (repeat_previous, get_saved_command_line, save_command_line):
6492 New functions.
6493 (gdb_init): Initialize saved_command_line
6494 and previous_saved_command_line.
6495 * main.c (captured_main_1): Remove saved_command_line initialization.
6496 * event-top.c (handle_line_of_input): Update to use
6497 the new 'repeat' related functions instead of direct access to
6498 saved_command_line.
6499 * command.h (repeat_previous, get_saved_command_line,
6500 save_command_line): New declarations.
6501 (dont_repeat): Add comment.
6502
bfcdb852
TT
65032019-05-30 Tom Tromey <tromey@adacore.com>
6504
6505 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6506 Fix comment.
6507 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6508
0ef209f2
JV
65092019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6510
6511 PR cli/24587
6512 * completer.c (complete): Initialize variable word.
6513
955b06fa
SDJ
65142019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6515
6516 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6517 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6518 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6519 'body' is NULL to the outter 'if', protecting the '!is_define'
6520 situation as well.
6521
fa9c3fa0
TT
65222019-05-29 Tom Tromey <tromey@adacore.com>
6523
6524 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6525 (dwarf_unknown): New function.
6526 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6527 (dwarf_type_encoding_name): Use dwarf_unknown.
6528
4330d61d
TT
65292019-05-29 Tom Tromey <tromey@adacore.com>
6530
6531 PR c++/20020:
6532 * cp-valprint.c (cp_print_value_fields): Call
6533 cp_print_static_field inside "try".
6534
33a6bc35
TT
65352019-05-29 Tom Tromey <tromey@adacore.com>
6536
6537 * inflow.c (struct terminal_info): Add default operator=.
6538 * configure: Rebuild.
6539 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6540 -Wdeprecated-copy-dtor, -Wredundant-move.
6541
000439d5
TT
65422019-05-29 Tom Tromey <tromey@adacore.com>
6543
6544 * NEWS: Add entry.
6545 * infcmd.c (print_return_value_1): Handle finish_print
6546 option.
6547 (show_print_finish): New function.
6548 (_initialize_infcmd): Add "set/show print finish" commands.
6549 * valprint.c (user_print_options): Initialize new member.
6550 * valprint.h (struct value_print_options) <finish_print>: New
6551 member.
6552
c0e70c62
TT
65532019-05-28 Tom Tromey <tromey@adacore.com>
6554
6555 * ada-lang.c (ada_remove_Xbn_suffix)
6556 (find_old_style_renaming_symbol)
6557 (parse_old_style_renaming): Remove.
6558 (ada_find_renaming_symbol): Don't call
6559 find_old_style_renaming_symbol.
6560 (ada_is_renaming_symbol): Rename from
6561 ada_find_renaming_symbol. Remove "block" parameter. Return
6562 bool. Now static.
6563 (ada_read_var_value): Update and simplify.
6564 * ada-exp.y (write_var_or_type): Remove old code.
6565
766f8836
AH
65662019-05-28 Alan Hayward <alan.hayward@arm.com>
6567
6568 * event-top.c: Remove include comment.
6569 * inflow.c (class scoped_ignore_sigttou): Move from here...
6570 * inflow.h (class scoped_ignore_sigttou): ...to here.
6571 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6572 * top.c: Remove include comment.
6573
eb41253a
TT
65742019-05-27 Tom Tromey <tom@tromey.com>
6575
6576 * NEWS: Fix typo.
6577
4ca51187
TT
65782019-05-22 Tom Tromey <tromey@adacore.com>
6579
6580 * target.c (target_follow_exec): Constify parameter.
6581 * target-delegates.c: Rebuild.
6582 * remote.c (remote_target::follow_exec): Constify parameter.
6583 * infrun.c (follow_exec): Constify parameter.
6584 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6585 (target_follow_exec): Likewise.
6586
8fca4da0
AH
65872019-05-22 Alan Hayward <alan.hayward@arm.com>
6588
6589 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6590 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6591
b7060614
AH
65922019-05-22 Alan Hayward <alan.hayward@arm.com>
6593
6594 * NEWS: Add debugredirect and testsuite sections.
6595
0a5954bd
SC
65962019-05-22 Simon Cook <simon.cook@embecosm.com>
6597
6598 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6599 target descriptions using exclusively floating point register name
6600 aliases.
6601
dc42e902
AB
66022019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6603
6604 PR gdb/18644:
6605 * f-lang.c (build_fortran_types): Handle the case where
6606 gdbarch_floatformat_for_type returns a nullptr.
6607
fb7806c7
TV
66082019-05-21 Tom de Vries <tdevries@suse.de>
6609
6610 PR cli/24587
6611 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6612
34d11c68
AB
66132019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6614
6615 PR gdb/18644:
6616 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6617 16-byte floats.
6618 * i386-tdep.c (i386_floatformat_for_type): Use
6619 floatformats_ia64_quad for the 16-byte floating point component
6620 within a fortran 32-byte complex number.
6621
122cf0f2
AB
66222019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6623
6624 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6625 delete default constructor.
6626 (find_partial_die): Update to return const struct.
6627 (partial_die_parent_scope): Move variable declaration into scope
6628 of its use and change its type to auto.
6629 (guess_partial_die_structure_name): Likewise.
6630 (partial_die_info::fixup): Likewise.
6631
33d0e35a
TT
66322019-05-17 Tom Tromey <tromey@adacore.com>
6633
6634 * source.c (find_and_open_source): Remove cast.
6635
a45575b0
TT
66362019-05-17 Tom Tromey <tromey@adacore.com>
6637
6638 * annotate.c (annotate_source): Make "filename" const.
6639 * annotate.h (annotate_source): Use const.
6640
81f47ac2
AH
66412019-05-17 Alan Hayward <alan.hayward@arm.com>
6642
6643 * disasm.c (set_disassembler_options): Send errors to stderr.
6644
ca1285d1
AH
66452019-05-17 Alan Hayward <alan.hayward@arm.com>
6646
6647 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6648 (cli_interp_base::set_logging): Check debug_redirect.
6649 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6650 * cli/cli-logging.c (debug_redirect): Add static variable.
6651 (pop_output_files): Add default param.
6652 (handle_redirections): Print debug setting.
6653 (show_logging_command): Likewise.
6654 (_initialize_cli_logging): Add debugredirect command.
6655 * interps.c (current_interp_set_logging): Add debug_redirect
6656 parameter.
6657 * interps.h (set_logging): Add debug_redirect parameter.
6658 (current_interp_set_logging): Likewise.
6659 * mi/mi-common.h: Likewise.
6660 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6661
66622019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
6663 Tom Tromey <tromey@adacore.com>
6664
6665 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6666 directly.
6667 * cli/cli-interp.h (make_logging_output): Remove declaration.
6668 * cli/cli-logging.c (make_logging_output): Remove function.
6669 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6670 directly.
6671 * ui-file.c (tee_file::tee_file): Remove bools.
6672 (tee_file::~tee_file): Remove deletes.
6673 * ui-file.h (tee_file): Remove bools.
6674
26648588
JV
66752019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6676
6677 * mi/mi-cmds.h (mi_cmd_complete): New function.
6678 * mi/mi-main.c (mi_cmd_complete): Likewise.
6679 * mi/mi-cmds.c: Define new MI command -complete.
6680 * NEWS: Mention new -complete command.
6681
6e035501
JV
66822019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6683
6684 * completer.h (complete): New function.
6685 * completer.c (complete): Likewise.
6686 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6687 function defined in completer.h.
6688
7d0e2ece
JV
66892019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6690
e79be6e5 6691 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 6692
fb816e8b
TV
66932019-05-17 Tom de Vries <tdevries@suse.de>
6694
6695 PR gdb/24094
6696 * dwarf2read.c (struct cu_partial_die_info): New struct.
6697 (find_partial_die): Return cu_partial_die_info.
6698 (partial_die_parent_scope, guess_partial_die_structure_name)
6699 (partial_die_info::fixup): Handle new return type of find_partial_die.
6700
677052f2
SDJ
67012019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6702
a1726c38 6703 PR breakpoints/24541
677052f2
SDJ
6704 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6705 "std::string", simplifying the algorithm.
6706
f3da9116
SDJ
67072019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6708
6709 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6710 (stap_static_probe_ops::get_probes): Likewise.
6711
f1bb75ab
SDJ
67122019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6713
6714 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6715 '-')" and "else if".
6716 (stap_parse_single_operand): Join checks for
6717 "gdbarch_stap_parse_special_token_p" and
6718 "gdbarch_stap_parse_special_token" in the same "if" statement.
6719 Invert check when verifying for operation on register
6720 displacement.
6721
3ca58cde
SDJ
67222019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6723
6724 * stap-probe.c (stap_get_opcode): Update comment.
6725 (stap_get_expected_argument_type): Likewise.
6726 (handle_stap_probe): Likewise.
6727
af2d9bee
SDJ
67282019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6729
6730 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6731 return type to 'bool'. Adjust comment. Use 'bool' when
6732 appropriate.
6733 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6734 * stap-probe.c (stap_parse_argument_1): Likewise.
6735 (stap_is_operator): Likewise.
6736 (stap_is_generic_prefix): Likewise.
6737 (stap_is_register_prefix): Likewise.
6738 (stap_is_register_indirection_prefix): Likewise.
6739 (stap_is_integer_prefix): Likewise.
6740 (stap_generic_check_suffix): Likewise.
6741 (stap_check_integer_suffix): Likewise.
6742 (stap_check_register_suffix): Likewise.
6743 (stap_check_register_indirection_suffix): Likewise.
6744 (stap_parse_register_operand): Likewise.
6745 (stap_parse_single_operand): Likewise.
6746 (stap_parse_argument_1): Likewise.
6747 (stap_probe::get_argument_count): Likewise.
6748 (stap_is_operator): Likewise.
6749
61c9c421
TT
67502019-05-16 Tom Tromey <tromey@adacore.com>
6751
6752 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6753 keyword to foreach.
6754
9ddc1af1
SM
67552019-05-15 Simon Marchi <simon.marchi@efficios.com>
6756
6757 * linux-thread-db.c (try_thread_db_load_1): Change return type
6758 to bool.
6759 (try_thread_db_load): Likewise.
6760 (try_thread_db_load_from_pdir_1): Likewise.
6761 (try_thread_db_load_from_pdir): Likewise.
6762 (try_thread_db_load_from_sdir): Likewise.
6763 (try_thread_db_load_from_dir): Likewise.
6764 (thread_db_load_search): Likewise.
6765 (has_libpthread): Likewise.
6766 (thread_db_load): Likewise.
6767
7bede828
SDJ
67682019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6769
6770 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6771 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6772 NULL, and complain/return if that's the case.
6773
c5358db4
JD
67742019-05-15 John Darrington <john@darrington.wattle.id.au>
6775
6776 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6777 (advance, posn, abstract_read_memory): New functions.
6778 [struct mem_read_abstraction]: New struct.
6779 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6780
c408a94f
TT
67812019-05-14 Tom Tromey <tromey@adacore.com>
6782
6783 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6784 value is not lval_memory.
6785
e7bd7fba
TT
67862019-05-14 Tom Tromey <tromey@adacore.com>
6787
6788 * solib.c (info_sharedlibrary_command): Style the file name.
6789
a6d0f249
AH
67902019-05-14 Alan Hayward <alan.hayward@arm.com>
6791
6792 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6793 (aarch64_vnv_type): Likewise.
6794 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6795 * common/tdesc.c: Likewise.
6796 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6797 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6798 * features/aarch64-fpu.xml: Add ieee half view.
6799 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6800 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6801 * gdbtypes.h (struct builtin_type): Likewise.
6802 (struct objfile_type): Likewise.
6803
66b8bb74
SM
68042019-05-12 Paul Naert <paul.naert@polymtl.ca>
6805
6806 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6807 typo.
6808 * location.h (string_to_event_location): Likewise.
6809
21c219fd
JB
68102019-05-11 Joel Brobecker <brobecker@adacore.com>
6811
6812 GDB 8.3 released.
6813
13674803
SM
68142019-05-10 Simon Marchi <simon.marchi@efficios.com>
6815
6816 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6817 New variable declaration.
6818 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6819 New variable.
6820 (print_one_breakpoint): Use ui_out::test_flags and new global
6821 variable to compute use_fixed_output.
6822 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6823 Remove.
6824 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6825 (mi_multi_location_breakpoint_output_fixed): Remove.
6826 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6827 new variable.
6828 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6829 fix_multi_location_breakpoint_output flag if version >= 3.
6830 * ui-out.h (enum ui_out_flag)
6831 <fix_multi_location_breakpoint_output>: New enumerator.
6832
a9eac7f9
SM
68332019-05-10 Simon Marchi <simon.marchi@efficios.com>
6834
6835 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6836
71bed2db
TT
68372019-05-10 Tom Tromey <tromey@adacore.com>
6838
6839 * ada-lang.c (catch_ada_completer): New function.
6840 (_initialize_ada_language): Use it.
6841
24c54127
TT
68422019-05-10 Tom Tromey <tromey@adacore.com>
6843
6844 * thread.c (print_thread_info): Make "requested_threads" const.
6845 * gdbthread.h (print_thread_info): Make "requested_threads"
6846 const.
6847 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6848 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6849
7a102139
TT
68502019-05-08 Tom Tromey <tom@tromey.com>
6851
6852 * gdbtypes.c (objfile_type_data): Change type.
6853 (objfile_type, _initialize_gdbtypes): Update.
6854
924d79e2
TT
68552019-05-08 Tom Tromey <tom@tromey.com>
6856
6857 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6858 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6859 (_initialize_dwarf2_frame): Update.
6860
4c58e337
TT
68612019-05-08 Tom Tromey <tom@tromey.com>
6862
6863 * objc-lang.c (objc_objfile_data): Change type.
6864 (find_methods): Update.
6865 (_initialize_objc_lang): Remove.
6866
d772d2ab
TT
68672019-05-08 Tom Tromey <tom@tromey.com>
6868
6869 * stabsread.c (rs6000_builtin_type_data): Change type.
6870 (rs6000_builtin_type, _initialize_stabsread): Update.
6871
d11d83f4
TT
68722019-05-08 Tom Tromey <tom@tromey.com>
6873
6874 * mips-tdep.c (mips_pdr_data): Remove.
6875 (_initialize_mips_tdep): Update.
6876
9a73f0ad
TT
68772019-05-08 Tom Tromey <tom@tromey.com>
6878
6879 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6880 (hppa_init_objfile_priv_data, read_unwind_info)
6881 (find_unwind_entry, _initialize_hppa_tdep): Update.
6882
8127a2fa
TT
68832019-05-08 Tom Tromey <tom@tromey.com>
6884
6885 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6886 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6887 on obstack.
6888 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6889
91d3055d
TT
68902019-05-08 Tom Tromey <tom@tromey.com>
6891
6892 * mdebugread.c (basic_type_data): Change type.
6893 (basic_type, _initialize_mdebugread): Update.
6894
31930bd3
TT
68952019-05-08 Tom Tromey <tom@tromey.com>
6896
6897 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6898
bdb3ed9e
TT
68992019-05-08 Tom Tromey <tom@tromey.com>
6900
6901 * nto-tdep.c (nto_inferior_data_reg): Change type.
6902 (nto_inferior_data): Update.
6903 (nto_inferior_data_cleanup, nto_new_inferior_data)
6904 (_initialize_nto_tdep): Remove.
6905 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6906
f37b313d
TT
69072019-05-08 Tom Tromey <tom@tromey.com>
6908
6909 * ada-lang.c (struct ada_inferior_data): Add initializers.
6910 (ada_inferior_data): Change type.
6911 (ada_inferior_data_cleanup): Remove.
6912 (get_ada_inferior_data, ada_inferior_exit)
6913 (struct ada_pspace_data): Add initializers, destructor.
6914 (ada_pspace_data_handle): Change type.
6915 (get_ada_pspace_data): Update.
6916 (ada_pspace_data_cleanup): Remove.
6917
24699405
TT
69182019-05-08 Tom Tromey <tom@tromey.com>
6919
6920 * coffread.c (struct coff_symfile_info): Add initializers.
6921 (coff_objfile_data_key): Move lower. Change type.
6922 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6923 Update.
6924 (coff_free_info): Remove.
6925
d4e05d2f
TT
69262019-05-08 Tom Tromey <tom@tromey.com>
6927
6928 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6929 (fbsd_pspace_data_handle): Move lower. Change type.
6930 (get_fbsd_pspace_data): Update.
6931 (fbsd_pspace_data_cleanup): Remove.
6932 (_initialize_fbsd_tdep): Update.
6933
14ef6690
TT
69342019-05-08 Tom Tromey <tom@tromey.com>
6935
6936 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6937 (get_ada_tasks_pspace_data): Update.
6938 (ada_tasks_pspace_data_cleanup): Remove.
6939 (_initialize_tasks): Update.
6940 (ada_tasks_inferior_data_handle): Change type.
6941 (get_ada_tasks_inferior_data): Update.
6942 (ada_tasks_inferior_data_cleanup): Remove.
6943 (struct ada_tasks_pspace_data): Add initializers.
6944
814cf43a
TT
69452019-05-08 Tom Tromey <tom@tromey.com>
6946
6947 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6948 * symfile-debug.c (debug_sym_get_probes): Change type.
6949 * stap-probe.c (handle_stap_probe):
6950 (stap_static_probe_ops::get_probes): Change type.
6951 * probe.h (class static_probe_ops) <get_probes>: Change type.
6952 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6953 (parse_probes_in_pspace): Update.
6954 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6955 Update.
6956 (any_static_probe_ops::get_probes): Change type.
6957 * elfread.c (elfread_data): New typedef.
6958 (probe_key): Change type.
6959 (elf_get_probes): Likewise. Update.
6960 (probe_key_free): Remove.
6961 (_initialize_elfread): Update.
6962 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6963 Change type.
6964 (dtrace_process_dof_probe, dtrace_process_dof)
6965 (dtrace_static_probe_ops::get_probe): Change type.
6966
02dc647e
TT
69672019-05-08 Tom Tromey <tom@tromey.com>
6968
6969 * xcoffread.c (struct xcoff_symfile_info): Rename from
6970 coff_symfile_info. Add initializers.
6971 (xcoff_objfile_data_key): Move lower. Change type.
6972 (XCOFF_DATA): Rewrite.
6973 (xcoff_free_info): Remove.
6974 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6975 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6976 (xcoff_initial_scan): Update.
6977
09232438
TT
69782019-05-08 Tom Tromey <tom@tromey.com>
6979
6980 * solib-svr4.c (struct svr4_info): Add initializers and
6981 destructor.
6982 <probes_table>: Now an htab_up.
6983 (solib_svr4_pspace_data): Change type.
6984 (free_probes_table): Simplify.
6985 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6986 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6987 (probes_table_remove_objfile_probes, register_solib_event_probe)
6988 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6989 (_initialize_svr4_solib): Update.
6990
7b4a314f
TT
69912019-05-08 Tom Tromey <tom@tromey.com>
6992
6993 * remote.c (remote_pspace_data): Change type.
6994 (remote_pspace_data_cleanup): Remove.
6995 (get_remote_exec_file, set_pspace_remote_exec_file)
6996 (_initialize_remote): Update.
6997
51d3063a
TT
69982019-05-08 Tom Tromey <tom@tromey.com>
6999
7000 * breakpoint.c (breakpoint_objfile_key): Change type.
7001 (get_breakpoint_objfile_data): Update.
7002 (free_breakpoint_objfile_data): Remove.
7003 (_initialize_breakpoint): Update.
7004
89fb8848
TT
70052019-05-08 Tom Tromey <tom@tromey.com>
7006
7007 * linux-tdep.c (struct linux_info): Add initializers.
7008 (linux_inferior_data): Move. Change type.
7009 (invalidate_linux_cache_inf): Update.
7010 (linux_inferior_data_cleanup): Remove.
7011 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7012
e9b89e2d
TT
70132019-05-08 Tom Tromey <tom@tromey.com>
7014
7015 * auxv.c (auxv_inferior_data): Move. Change type.
7016 (auxv_inferior_data_cleanup): Remove.
7017 (invalidate_auxv_cache_inf): Rewrite.
7018 (get_auxv_inferior_data, _initialize_auxv): Update.
7019
8c42777c
TT
70202019-05-08 Tom Tromey <tom@tromey.com>
7021
7022 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7023 (symfile_debug_objfile_data_key): Change type.
7024 (symfile_debug_installed, debug_qf_has_symbols)
7025 (debug_qf_find_last_source_symtab)
7026 (debug_qf_forget_cached_source_info)
7027 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7028 (debug_qf_print_stats, debug_qf_dump)
7029 (debug_qf_expand_symtabs_for_function)
7030 (debug_qf_expand_all_symtabs)
7031 (debug_qf_expand_symtabs_with_fullname)
7032 (debug_qf_map_matching_symbols)
7033 (debug_qf_expand_symtabs_matching)
7034 (debug_qf_find_pc_sect_compunit_symtab)
7035 (debug_qf_map_symbol_filenames)
7036 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7037 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7038 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7039 (debug_sym_read_linetable, debug_sym_relocate): Update.
7040 (symfile_debug_free_objfile): Remove.
7041 (install_symfile_debug_logging, _initialize_symfile_debug):
7042 Update.
7043
5bfd760d
TT
70442019-05-08 Tom Tromey <tom@tromey.com>
7045
7046 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7047 allocate_on_obstack.
7048 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7049 (get_dwarf2_per_objfile): Update.
7050 (set_dwarf2_per_objfile): Remove.
7051 (dwarf2_has_info, dwarf2_get_section_info): Update.
7052 (dwarf2_free_objfile): Remove.
7053 (_initialize_dwarf2_read): Update.
7054
e85e19b4
TT
70552019-05-08 Tom Tromey <tom@tromey.com>
7056
7057 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7058 initializers.
7059 <unsupported_script_warning_printed,
7060 script_not_found_warning_printed>: Now bool.
7061 (auto_load_pspace_data): Change type.
7062 (~auto_load_pspace_info): Rename from
7063 auto_load_pspace_data_cleanup.
7064 (get_auto_load_pspace_data, init_loaded_scripts_info)
7065 (clear_section_scripts, maybe_print_unsupported_script_warning)
7066 (maybe_print_script_not_found_warning, _initialize_auto_load):
7067 Update.
7068
f6aa7436
TT
70692019-05-08 Tom Tromey <tom@tromey.com>
7070
7071 * objfiles.c (objfile_pspace_info): Add destructor and
7072 initializers.
7073 (objfiles_pspace_data): Change type.
7074 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7075 (get_objfile_pspace_data): Update.
7076 (objfiles_bfd_data): Change type.
7077 (get_objfile_bfd_data): Update.
7078 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7079
6ae614f6
TT
70802019-05-08 Tom Tromey <tom@tromey.com>
7081
7082 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7083 Change type.
7084 (get_catch_syscall_inferior_data): Update.
7085 (catch_syscall_inferior_data_cleanup): Remove.
7086 (_initialize_break_catch_syscall): Update.
7087
6509b8eb
TT
70882019-05-08 Tom Tromey <tom@tromey.com>
7089
7090 * inflow.c (struct terminal_info): Add destructor and
7091 initializers.
7092 (inflow_inferior_data): Change type.
7093 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7094 (get_inflow_inferior_data, inflow_inferior_exit)
7095 (swap_terminal_info, _initialize_inflow): Update.
7096
35632941
TT
70972019-05-08 Tom Tromey <tom@tromey.com>
7098
7099 * target-dcache.c (target_dcache_cleanup): Remove.
7100 (target_dcache_aspace_key): Change type.
7101 (target_dcache_init_p, target_dcache_invalidate)
7102 (target_dcache_get, target_dcache_get_or_init)
7103 (_initialize_target_dcache): Update.
7104 * dcache.h (struct dcache_deleter): New.
7105
3017b94d
TT
71062019-05-08 Tom Tromey <tom@tromey.com>
7107
7108 * symtab.c (struct symbol_cache): Add destructor and
7109 initializers.
7110 (symbol_cache_key): Move. Change type.
7111 (make_symbol_cache, free_symbol_cache): Remove.
7112 (get_symbol_cache): Update.
7113 (symbol_cache_cleanup): Remove.
7114 (ALL_PSPACES, symbol_cache_flush)
7115 (maintenance_print_symbol_cache)
7116 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7117 Update.
7118
a32ad8c5
TT
71192019-05-08 Tom Tromey <tom@tromey.com>
7120
7121 * symtab.c (struct main_info): Add destructor and initializers.
7122 (main_progspace_key): Move. Change type.
7123 (get_main_info): Update.
7124 (main_info_cleanup): Remove.
7125 (_initialize_symtab): Update.
7126
5f6e90a0
TT
71272019-05-08 Tom Tromey <tom@tromey.com>
7128
7129 * registry.h (DECLARE_REGISTRY): Define the _key class.
7130
1bd0c6e4
AB
71312019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7132
7133 * NEWS: Merge two 'New commands' sections.
7134
2228ef77
XR
71352019-05-08 Joel Brobecker <brobecker@adacore.com>
7136
7137 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7138 parameter and use Ada language definition instead.
7139 (ada_val_print_ptr): Remove unused language parameter.
7140 (ada_val_print_num): Remove language parameter and use Ada language
7141 definition instead.
7142 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7143 parameter.
7144 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7145 parameter and use Ada language definition instead.
7146 (ada_val_print_1): Update all ada_val_print_xxx calls.
7147 Remove language parameter.
7148 (ada_val_print): Update ada_val_print_1 call.
7149
60fcc1c3
TT
71502019-05-08 Tom Tromey <tromey@adacore.com>
7151
7152 * remote.c (remote_hw_watchpoint_limit)
7153 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7154 Now static.
7155
ed2b7c17
TT
71562019-05-08 Tom Tromey <tromey@adacore.com>
7157
7158 * maint.c (_initialize_maint_cmds): Move initialization code to
7159 remote.c.
7160 (watchdog, show_watchdog): Move to remote.c.
7161 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7162 "watchdog" static.
7163 (_initialize_remote): Move initialization code from maint.c.
7164 * defs.h (watchdog): Don't declare.
7165
b0be6c91
TT
71662019-05-08 Tom Tromey <tromey@adacore.com>
7167
7168 * tui/tui-interp.c: Include main.h.
7169 * interps.c: Include main.h.
7170 * main.h (interpreter_p): Declare.
7171 * defs.h (interpreter_p): Don't declare.
7172
587ee17b
TT
71732019-05-08 Tom Tromey <tromey@adacore.com>
7174
7175 * dwarf2loc.c: Include dwarf2read.h.
7176 * defs.h (read_unsigned_leb128): Don't declare.
7177 * dwarf2read.h (read_unsigned_leb128): Declare.
7178
ca1df239
TT
71792019-05-08 Tom Tromey <tromey@adacore.com>
7180
7181 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7182 method.
7183
99f20f08
TT
71842019-05-08 Tom Tromey <tromey@adacore.com>
7185
7186 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7187 when no wrap column is set.
7188
80e55b13
TT
71892019-05-08 Tom Tromey <tromey@adacore.com>
7190
7191 * c-lang.c (c_get_string): Handle non-C-style arrays.
7192
9d3421af
TT
71932019-05-08 Tom Tromey <tromey@adacore.com>
7194
7195 * typeprint.c (print_offset_data::update): Print the bit offset,
7196 not the number of bits remaining.
7197
844333e2
TT
71982019-05-08 Tom Tromey <tromey@adacore.com>
7199
7200 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7201 padding at end of comment.
7202
988915ee
TT
72032019-05-08 Tom Tromey <tromey@adacore.com>
7204
7205 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7206 Compare main types.
7207
26bfd823
TT
72082019-05-06 Tom Tromey <tom@tromey.com>
7209
7210 * common/scoped_mmap.c: Include common-defs.h.
7211 * common/scoped_mmap.h: Don't include config.h.
7212
89055eaa
TT
72132019-05-04 Tom Tromey <tom@tromey.com>
7214
7215 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7216 (struct aarch64_call_info): Add initializers.
7217 <si>: Now a std::vector.
7218 (pass_on_stack, aarch64_push_dummy_call): Update.
7219
5da01df5
TT
72202019-05-04 Simon Marchi <simon.marchi@efficios.com>
7221 Tom Tromey <tom@tromey.com>
7222
7223 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7224 (ppc_threads): Now a std::vector. Now static.
7225 (hwdebug_find_thread_points_by_tid)
7226 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7227 Update.
7228
fbdf05a1
TT
72292019-05-04 Tom Tromey <tom@tromey.com>
7230
7231 * arc-tdep.c (arc_tdesc_init): Return bool.
7232
06d16ec9
TT
72332019-05-04 Tom Tromey <tom@tromey.com>
7234
7235 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7236 Use gdb_assert_not_reached.
7237
9c056022
TT
72382019-05-04 Tom Tromey <tom@tromey.com>
7239
7240 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7241 "false".
7242
fa9c2a59
TT
72432019-05-04 Tom Tromey <tom@tromey.com>
7244
7245 * arc-tdep.c (arc_tdesc_init): Use bool.
7246
e2eb806a
TT
72472019-05-04 Tom Tromey <tom@tromey.com>
7248
7249 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7250
6fe87677
TT
72512019-05-04 Tom Tromey <tom@tromey.com>
7252
7253 * cli/cli-cmds.c (valid_command_p): Return bool.
7254
7f008c9e
TT
72552019-05-04 Tom Tromey <tom@tromey.com>
7256
7257 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7258 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7259
b6484282
RT
72602019-05-04 Raul Tambre <raul@tambre.ee>
7261
7262 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7263 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7264 operator for comparison.
7265
af97b416
TT
72662019-05-04 Tom Tromey <tom@tromey.com>
7267
7268 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7269 (lookup_partial_symbol, print_partial_symbols)
7270 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7271 (psymbol_compare): Update.
7272 (add_psymbol_to_bcache): Clear the entire psymbol.
7273 (maintenance_check_psymtabs): Update.
7274 * psympriv.h (struct partial_symbol): Don't derive from
7275 general_symbol_info.
7276 <obj_section, unrelocated_address, address,
7277 set_unrelocated_address>: Update.
7278 <ginfo>: New member.
7279 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7280 (debug_names::write_psymbols): Update.
7281
9d6d4be8
TV
72822019-05-04 Tom de Vries <tdevries@suse.de>
7283
7284 * contrib/cc-with-tweaks.sh: Support -n arg.
7285
66452beb
PW
72862019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7287
7288 * corelow.c (core_target::detach): Ensure frame cache and
7289 register caches are cleared.
7290 inferior.c (exit_inferior_1): Likewise.
7291
bde09ab7
TT
72922019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7293 Tom Tromey <tom@tromey.com>
7294
7295 * dictionary.c (collate_pending_symbols_by_language): Remove
7296 "struct" from foreach.
7297 * symtab.c (lookup_global_symbol_from_objfile)
7298 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7299 foreach.
7300 * ser-tcp.c (net_open): Remove "struct" from foreach.
7301 * objfiles.c (objfile_relocate, objfile_rebase)
7302 (objfile_has_symbols): Remove "struct" from foreach.
7303 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7304 from foreach.
7305 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7306 foreach.
7307 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7308 "struct" from foreach.
7309 * ada-lang.c (create_excep_cond_exprs)
7310 (ada_exception_catchpoint_cond_string): Remove "struct" from
7311 foreach.
7312
222a8d25
TT
73132019-05-03 Tom Tromey <tromey@adacore.com>
7314
7315 * ada-exp.y (convert_char_literal): Check suffix of each
7316 enumerator.
7317
fcd60b84
DP
73182019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7319
7320 PR ada/21406:
7321 * ada-exp.y (yywrap): Don't define.
7322 * ada-lex.l (%option): Add noyywrap
7323 (yywrap): Remove.
7324
5f2459c2
EZ
73252019-05-03 Eli Zaretskii <eliz@gnu.org>
7326
353ea2d1
EZ
7327 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7328 _WIN32_WINNT to the XP level, unless already defined to a higher
7329 level.
7330
7331 * unittests/parse-connection-spec-selftests.c:
7332 * ser-tcp.c:
7333 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7334 override.
7335
5f2459c2
EZ
7336 * symfile.c (find_separate_debug_file): Remove colon from the
7337 drive spec of DOS/Windows file names of the target, so that the
7338 file name produced from DEBUGDIR and the target's directory will
7339 be valid on DOS/Windows systems.
7340
80062eb9
AB
73412019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7342
7343 * rust-lang.c (val_print_struct): Handle printing structures
7344 containing strings.
7345
b8c05e85
TT
73462019-05-02 Tom Tromey <tromey@adacore.com>
7347
7348 * valarith.c (_initialize_valarith): Remove.
7349
4504bbde
TT
73502019-05-01 Tom Tromey <tromey@adacore.com>
7351
7352 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7353 bitfields.
7354
d48e62f4
TT
73552019-05-01 Tom Tromey <tromey@adacore.com>
7356
7357 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7358 for big-endian copies.
7359
15f18d14
AT
73602019-04-30 Ali Tamur <tamur@google.com>
7361 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7362 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7363 (read_3_bytes): New function.
7364
ab4ee614
JB
73652019-04-30 Joel Brobecker <brobecker@adacore.com>
7366
7367 * windows-nat.c (main_thread_id): Delete.
7368 (handle_output_debug_string): Replace main_thread_id by
7369 current_event.dwThreadId.
7370 (fake_create_process): Likewise.
7371 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7372 Do not set main_thread_id.
7373 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7374 current_event.dwThreadId.
7375 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7376
8ed5b76e
JB
73772019-04-30 Joel Brobecker <brobecker@adacore.com>
7378
7379 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7380 Use current_event.dwThreadId instead of main_thread_id.
7381
2ff0a947
TT
73822019-04-30 Tom Tromey <tromey@adacore.com>
7383
7384 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7385 (create_excep_cond_exprs): Iterate over program spaces.
7386 (ada_exception_catchpoint_cond_string): Examine all minimal
7387 symbols for exception types.
7388
a776957c
TT
73892019-04-30 Tom Tromey <tromey@adacore.com>
7390
7391 PR c++/24470:
7392 * dwarf2read.c (process_structure_scope): Handle case where type
7393 has template parameters but no symbol was created.
7394
bc68014d
AB
73952019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7396 Chris January <chris.january@arm.com>
7397
7398 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7399 qualifier.
7400 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7401
f1fdc960
AB
74022019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7403
7404 * f-typeprint.c (f_print_type): Update rules for printing
7405 whitespace.
7406 (f_type_print_varspec_suffix): Likewise.
7407
bf7a4de1
AB
74082019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7409 Chris January <chris.january@arm.com>
7410
7411 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7412 function arguments.
7413
bbe75b9d
AB
74142019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7415
7416 * f-lang.c (build_fortran_types): Change name of void type to
7417 lower case.
7418 * f-typeprint.c (f_type_print_base): Print the name of the void
7419 type, rather than a fixed string.
7420 * f-valprint.c (f_decorations): Use lower case void string.
7421
1db455a7
AB
74222019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7423 Chris January <chris.january@arm.com>
7424
7425 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7426 types for Fortran.
7427
b6d03bb2
AB
74282019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7429 Chris January <chris.january@arm.com>
7430 David Lecomber <david.lecomber@arm.com>
7431
7432 * f-exp.y (BINOP_INTRINSIC): New token.
7433 (exp): New parser rule handling BINOP_INTRINSIC.
7434 (f77_keywords): Add new builtin procedures.
7435 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7436 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7437 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7438 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7439 (print_unop_subexp_f): New function.
7440 (print_binop_subexp_f): New function.
7441 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7442 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7443 (dump_subexp_body_f): Likewise.
7444 (operator_check_f): Likewise.
7445 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7446 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7447
83228e93
AB
74482019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7449
7450 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7451 UNOP_KIND.
7452 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7453 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7454 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7455 (operator_length_f): New fuction.
7456 (print_subexp_f): New function.
7457 (op_name_f): New function.
7458 (dump_subexp_body_f): New function.
7459 (operator_check_f): New function.
7460 (exp_descriptor_f): Replace standard expression handling functions
7461 with new functions.
7462 * gdb/fortran-operator.def: New file.
7463 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7464 * gdb/std-operator.def: Remove UNOP_KIND.
7465
6fdcd7cc
AB
74662019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7467
7468 * std-operator.def: Remove unbalanced, stray double quote
7469 character.
7470
2e62ab40
AB
74712019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7472 Chris January <chris.january@arm.com>
7473 Daniel Everett <daniel.everett@arm.com>
7474 Nick Forrington <nick.forrington@arm.com>
7475 Richard Bunt <richard.bunt@arm.com>
7476
7477 * cp-valprint.c (cp_print_value_fields): Allow an additional level
7478 of depth when printing anonymous structs or unions.
7479 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7480 Don't print either the top-level value, or the children if the
7481 max-depth is exceeded.
7482 (ppscm_print_children): When printing the key of a map, allow one
7483 extra level of depth.
7484 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7485 print either the top-level value, or the children if the max-depth
7486 is exceeded.
7487 (print_children): When printing the key of a map, allow one extra
7488 level of depth.
7489 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7490 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7491 (user_print_options): Initialise max_depth field.
7492 (val_print_scalar_or_string_type_p): New function.
7493 (val_print): Check to see if the max depth has been reached.
7494 (val_print_check_max_depth): Define new function.
7495 (show_print_max_depth): New function.
7496 (_initialize_valprint): Add 'print max-depth' option.
7497 * valprint.h (struct value_print_options) <max_depth>: New field.
7498 (val_print_check_max_depth): Declare new function.
7499 * NEWS: Document new feature.
7500
4be290b2
AB
75012019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7502
7503 * ada-lang.c (ada_language_defn): Initialise new field.
7504 * c-lang.c (c_is_string_type_p): New function.
7505 (c_language_defn): Initialise new field.
7506 (cplus_language_defn): Initialise new field.
7507 (asm_language_defn): Initialise new field.
7508 (minimal_language_defn): Initialise new field.
7509 * c-lang.h (c_is_string_type_p): Declare new function.
7510 * d-lang.c (d_language_defn): Initialise new field.
7511 * f-lang.c (f_is_string_type_p): New function.
7512 (f_language_defn): Initialise new field.
7513 * go-lang.c (go_is_string_type_p): New function.
7514 (go_language_defn): Initialise new field.
7515 * language.c (default_is_string_type_p): New function.
7516 (unknown_language_defn): Initialise new field.
7517 (auto_language_defn): Initialise new field.
7518 * language.h (struct language_defn) <la_is_string_type_p>: New
7519 member variable.
7520 (default_is_string_type_p): Declare new function.
7521 * m2-lang.c (m2_language_defn): Initialise new field.
7522 * objc-lang.c (objc_language_defn): Initialise new field.
7523 * opencl-lang.c (opencl_language_defn): Initialise new field.
7524 * p-lang.c (pascal_is_string_type_p): New function.
7525 (pascal_language_defn): Initialise new field.
7526 * rust-lang.c (rust_is_string_type_p): New function.
7527 (rust_language_defn): Initialise new field.
7528
721b08c6
AB
75292019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7530
7531 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7532 New field.
7533 * ada-lang.c (ada_language_defn): Initialise new field.
7534 * c-lang.c (c_language_defn): Likewise.
7535 (cplus_language_defn): Likewise.
7536 (asm_language_defn): Likewise.
7537 (minimal_language_defn): Likewise.
7538 * d-lang.c (d_language_defn): Likewise.
7539 * f-lang.c (f_language_defn): Likewise.
7540 * go-lang.c (go_language_defn): Likewise.
7541 * language.c (unknown_language_defn): Likewise.
7542 (auto_language_defn): Likewise.
7543 * m2-lang.c (m2_language_defn): Likewise.
7544 * objc-lang.c (objc_language_defn): Likewise.
7545 * opencl-lang.c (opencl_language_defn): Likewise.
7546 * p-lang.c (pascal_language_defn): Likewise.
7547 * rust-lang.c (rust_language_defn): Likewise.
7548
fc913e53
AB
75492019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7550
7551 * ada-lang.c (ada_is_character_type): Change return type to bool.
7552 (ada_is_string_type): Likewise.
7553 * ada-lang.h (ada_is_character_type): Update declaration
7554 (ada_is_string_type): Likewise.
7555
fa731fa0
PW
75562019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7557
7558 Support style in 'frame|thread apply'
7559
7560 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7561 * record.c (record_start, record_stop): Update callers of
7562 execute_command_to_string with false.
7563 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7564 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7565 methods.
7566 (class string_file): New constructor with term_out parameter.
7567 Override methods term_out and can_emit_style_escape. New member
7568 term_out.
7569 (class stdio_file): Override can_emit_style_escape.
7570 (class tee_file): Override term_out and can_emit_style_escape.
7571 * utils.h (can_emit_style_escape): Remove.
7572 * utils.c (can_emit_style_escape): Likewise.
7573 Update all callers of can_emit_style_escape (SOMESTREAM) to
7574 SOMESTREAM->can_emit_style_escape.
7575 * source-cache.c (source_cache::get_source_lines): Likewise.
7576 * stack.c (frame_apply_command_count): Call execute_command_to_string
7577 passing the term_out characteristic of the current gdb_stdout.
7578 * thread.c (thr_try_catch_cmd): Likewise.
7579 * top.c (execute_command_to_string): pass term_out parameter
7580 to construct the string_file for the command output.
7581 * ui-file.c (term_cli_styling): New function (most code moved
7582 from utils.c can_emit_style_escape).
7583 (string_file::string_file, string_file::can_emit_style_escape,
7584 stdio_file::can_emit_style_escape, tee_file::term_out,
7585 tee_file::can_emit_style_escape): New functions.
7586
136afab8
PW
75872019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7588
7589 * NEWS: Mention the new set|show may-call-functions.
7590 * infcall.c (may_call_functions_p): New variable.
7591 (show_may_call_functions_p): New function.
7592 (call_function_by_hand_dummy): Throws an error if not
7593 may-call-functions.
7594 (_initialize_infcall): Call add_setshow_boolean_cmd for
7595 may-call-functions.
7596
725cbb63
KS
75972019-04-25 Keith Seitz <keiths@redhat.com>
7598
7599 PR c++/24367
7600 * cp-support.c (inspect_type): Don't attempt substitutions
7601 of symbol with the same name.
7602
3d1cbb78
TT
76032019-04-25 Tom Tromey <tromey@adacore.com>
7604
7605 PR gdb/24475:
7606 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7607 static.
7608
94aeb44b
TT
76092019-04-25 Tom Tromey <tromey@adacore.com>
7610
7611 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7612 rvalue reference.
7613 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7614 (gdb_xml_parser::parse): Use std::move.
7615 * python/python-internal.h (gdbpy_convert_exception): Take a const
7616 reference.
7617 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7618 std::move.
7619 * python/py-utils.c (gdbpy_convert_exception): Take a const
7620 reference.
7621 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7622 Use std::move.
7623 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7624 Use std::move.
7625 * mi/mi-main.c (mi_print_exception): Take a const reference.
7626 * main.c (handle_command_errors): Take a const reference.
7627 * linespec.c (parse_linespec): Use std::move.
7628 * infcall.c (run_inferior_call): Use std::move.
7629 (call_function_by_hand_dummy): Use std::move.
7630 * exec.c (try_open_exec_file): Use std::move.
7631 * exceptions.h (exception_print, exception_fprintf)
7632 (exception_print_same): Update.
7633 * exceptions.c (print_exception, exception_print)
7634 (exception_fprintf, exception_print_same): Change parameters to
7635 const reference.
7636 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7637 * common/new-op.c: Use std::move.
7638 * common/common-exceptions.h (struct gdb_exception): Add move
7639 constructor.
7640 (struct gdb_exception_error, struct gdb_exception_quit, struct
7641 gdb_quit_bad_alloc): Change constructor to move constructor.
7642 (throw_exception): Change parameter to rvalue reference.
7643 * common/common-exceptions.c (throw_exception): Take rvalue
7644 reference.
7645 * cli/cli-interp.c (safe_execute_command): Use std::move.
7646 * breakpoint.c (insert_bp_location, location_to_sals): Use
7647 std::move.
7648
680d7fd5
TT
76492019-04-25 Tom Tromey <tromey@adacore.com>
7650
7651 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7652 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7653 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7654 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7655 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7656 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7657 guile/scm-value.c: Use unpack.
7658 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7659 gdbscm_gdb_exception.
7660 (gdbscm_throw_gdb_exception): Likewise.
7661 (struct gdbscm_gdb_exception): New.
7662 (unpack): New function.
7663 (gdbscm_wrap): Use unpack.
7664
c6fdd8b2
TT
76652019-04-25 Tom Tromey <tromey@adacore.com>
7666
7667 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7668 (gdb_rl_callback_handler): Use std::move.
7669 * common/common-exceptions.h (struct gdb_exception): Add move
7670 assignment operator.
7671 (throw_exception_sjlj): Change "exception" to const reference.
7672 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7673 (throw_exception_sjlj): Change "exception" to const reference.
7674
cc06b668
TT
76752019-04-25 Tom Tromey <tromey@adacore.com>
7676
7677 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7678 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7679 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7680 Update.
7681 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7682 Update.
7683 * mi/mi-interp.c (mi_interp::exec): Update.
7684 * linespec.c (parse_linespec): Update.
7685 * infcall.c (run_inferior_call): Update.
7686 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7687 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7688 (gdbscm_lookup_global_symbol): Update.
7689 * guile/scm-param.c (gdbscm_parameter_value): Update.
7690 * guile/scm-frame.c (gdbscm_frame_read_register)
7691 (gdbscm_frame_read_var): Update.
7692 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7693 * exec.c (try_open_exec_file): Update.
7694 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7695 (gdb_rl_callback_handler): Update.
7696 * common/common-exceptions.h (exception_none): Don't declare.
7697 * common/common-exceptions.c (exception_none): Don't define.
7698 (struct catcher) <exception>: Update.
7699 * cli/cli-interp.c (safe_execute_command): Update.
7700 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7701
cf532bd1
AT
77022019-04-25 Ali Tamur <tamur@google.com>
7703
7704 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7705 (read_attribute_value): Likewise.
7706 (dwarf2_read_addr_index): Update comment.
7707 (read_str_index): Add DW_FORM_strx.
7708 (dwarf2_string_attr): Likewise.
7709 (dwarf2_const_value_attr): Likewise.
7710 (dump_die_shallow): Likewise.
7711 (dwarf2_fetch_constant_bytes): Likewise.
7712 (skip_form_bytes): Likewise.
7713 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7714
82433e3e
SDJ
77152019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7716
7717 PR corefiles/11608
7718 PR corefiles/18187
7719 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7720 OFFSET. Verify if current mapping contains an ELF header.
7721 (linux_find_memory_regions_full): Adjust call to
7722 dump_mapping_p.
7723
723adb65
SL
77242019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7725 Kang Li <kanglictf@gmail.com>
7726
7727 PR gdb/21600
7728
7729 * dwarf2-frame.c (read_initial_length): Be consistent about using
7730 unsigned representation of length.
7731 (decode_frame_entry_1): Likewise. Check for wraparound of
7732 end pointer as well as buffer overflow.
7733
596179f7
SDJ
77342019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7735
7736 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7737 "vq".
7738
a59240a4
TT
77392019-04-24 Tom Tromey <tromey@adacore.com>
7740
7741 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7742
f872fdbb
AB
77432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7744
7745 * s12z-tdep.c (s12z_unwind_pc): Delete.
7746 (s12z_unwind_sp): Delete.
7747 (s12z_gdbarch_init): Don't register deleted functions with
7748 gdbarch.
7749
b614e6f3
AB
77502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7751
7752 * rl78-tdep.c (rl78_unwind_sp): Delete.
7753 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7754
14faed38
AB
77552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7756
7757 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7758 (xstormy16_unwind_pc): Delete.
7759 (xstormy16_dummy_id): Delete.
7760 (xstormy16_gdbarch_init): Don't register deleted functions with
7761 gdbarch.
7762
541aad8a
AB
77632019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7764
7765 * vax-tdep.c (vax_unwind_pc): Delete.
7766 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7767
29222070
AB
77682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7769
7770 * v850-tdep.c (v850_unwind_sp): Delete.
7771 (v850_unwind_pc): Delete.
7772 (v850_dummy_id): Delete.
7773 (v850_gdbarch_init): Don't register deleted functions with
7774 gdbarch.
7775
0f534d76
AB
77762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7777
7778 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7779 (tilegx_unwind_pc): Delete.
7780 (tilegx_unwind_dummy_id): Delete.
7781 (tilegx_gdbarch_init): Don't register deleted functions with
7782 gdbarch.
7783
1ba7b7f9
AB
77842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7785
7786 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7787 (tic6x_dummy_id): Delete.
7788 (tic6x_gdbarch_init): Don't register deleted functions with
7789 gdbarch.
7790
d31f262c
AB
77912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7792
7793 * sparc-tdep.c (sparc_unwind_pc): Delete.
7794 (sparc32_gdbarch_init): Don't register deleted function with
7795 gdbarch.
7796
6d14d64d
AB
77972019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7798
7799 * sh-tdep.c (sh_unwind_sp): Delete.
7800 (sh_unwind_pc): Delete.
7801 (sh_dummy_id): Delete.
7802 (sh_gdbarch_init): Don't register deleted functions with
7803 gdbarch.
7804
a40dde9d
AB
78052019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7806
7807 * score-tdep.c (score_unwind_sp): Delete.
7808 (score_unwind_pc): Delete.
7809 (score_dummy_id): Delete.
7810 (score_gdbarch_init): Don't register deleted functions with
7811 gdbarch.
7812
47c47d69
AB
78132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7814
7815 * rx-tdep.c (rx_unwind_pc): Delete.
7816 (rx_unwind_sp): Delete.
7817 (rx_dummy_id): Delete.
7818 (rx_gdbarch_init): Don't register deleted functions with
7819 gdbarch. Update comment.
7820
833a4480
AB
78212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7822
7823 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7824 (rs6000_dummy_id): Delete.
7825 (rs6000_gdbarch_init): Don't register deleted functions with
7826 gdbarch.
7827
3f2cef49
AB
78282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7829
7830 * or1k-tdep.c (or1k_dummy_id): Delete.
7831 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7832
96acf884
AB
78332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7834
7835 * nios2-tdep.c (nios2_dummy_id): Delete.
7836 (nios2_unwind_sp): Delete.
7837 (nios2_gdbarch_init): Don't register deleted functions with
7838 gdbarch.
7839
ca0ab0aa
AB
78402019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7841
7842 * nds32-tdep.c (nds32_dummy_id): Delete.
7843 (nds32_unwind_pc): Delete.
7844 (nds32_unwind_sp): Delete.
7845 (nds32_gdbarch_init): Don't register deleted functions with
7846 gdbarch.
7847
c8259044
AB
78482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7849
7850 * msp430-tdep.c (msp430_unwind_pc): Delete.
7851 (msp430_unwind_sp): Delete.
7852 (msp430_dummy_id): Delete.
7853 (msp430_gdbarch_init): Don't register deleted functions with
7854 gdbarch.
7855
27f113c8
AB
78562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7857
7858 * moxie-tdep.c (moxie_unwind_sp): Delete.
7859 (moxie_unwind_pc): Delete.
7860 (moxie_dummy_id): Delete.
7861 (moxie_gdbarch_init): Don't register deleted functions with
7862 gdbarch.
7863
aee6c3cd
AB
78642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7865
7866 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7867 (mn10300_unwind_pc): Delete.
7868 (mn10300_unwind_sp): Delete.
7869 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7870 mn10300_unwind_sp.
7871 (mn10300_frame_unwind_init): Don't register deleted functions with
7872 gdbarch.
7873
8e2b5aea
AB
78742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7875
7876 * mep-tdep.c (mep_unwind_pc): Delete.
7877 (mep_unwind_sp): Delete.
7878 (mep_dummy_id): Delete.
7879 (mep_gdbarch_init): Don't register deleted functions with
7880 gdbarch.
7881
43cf3ede
AB
78822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7883
7884 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7885 (m68hc11_unwind_sp): Delete.
7886 (m68hc11_gdbarch_init): Don't register deleted functions with
7887 gdbarch.
7888
5e79b7bb
AB
78892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7890
7891 * m32r-tdep.c (m32r_unwind_sp): Delete.
7892 (m32r_unwind_pc): Delete.
7893 (m32r_dummy_id): Delete.
7894 (m32r_gdbarch_init): Don't register deleted functions with
7895 gdbarch.
7896
89b268d8
AB
78972019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7898
7899 * m32c-tdep.c (m32c_unwind_pc): Delete.
7900 (m32c_unwind_sp): Delete.
7901 (m32c_dummy_id): Delete.
7902 (m32c_gdbarch_init): Don't register deleted functions with
7903 gdbarch.
7904
946c28d2
AB
79052019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7906
7907 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7908 (lm32_unwind_pc): Delete.
7909 (lm32_dummy_id): Delete.
7910 (lm32_gdbarch_init): Don't register deleted functions with
7911 gdbarch.
7912
bf12844a
AB
79132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7914
7915 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7916 (iq2000_unwind_pc): Delete.
7917 (iq2000_dummy_id): Delete.
7918 (iq2000_gdbarch_init): Don't register deleted functions with
7919 gdbarch.
7920
ecbc06d2
AB
79212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7922
7923 * nds32-tdep.c (nds32_type_align): Delete.
7924 (nds32_push_dummy_call): Use type_align instead.
7925
030197b4
AB
79262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7927
7928 * arm-tdep.c (arm_type_align): Only handle vector override case.
7929 (arm_push_dummy_call): Use type_align.
7930 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7931
b907456c
AB
79322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7933
7934 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7935 case.
7936 (pass_on_stack): Use type_align.
7937 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7938 function.
7939
9e97ba43
TT
79402019-04-23 Tom Tromey <tromey@adacore.com>
7941
7942 * dwarf2read.c (line_header::file_name_at): Remove unused
7943 overload.
7944
6892f601
TV
79452019-04-23 Tom de Vries <tdevries@suse.de>
7946
7947 PR gdb/24438
7948 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7949 invocation.
7950
336d760d
AT
7951
79522019-03-27 Ali Tamur <tamur@google.com>
7953
7954 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7955 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7956 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7957 (dwarf_expr_context::get_addr_index): Likewise
7958 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7959 (symbol_needs_eval_context::get_addr_index): Likewise
7960 (disassemble_dwarf_expression): Add DW_OP_addrx
7961 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7962 (read_cutu_die_from_dwo): Update comment
7963 (skip_one_die): Add DW_FORM_addrx
7964 (read_attribute_value): Likewise
7965 (var_decode_location): Add DW_OP_addrx
7966 (dwarf2_const_value_attr): Add DW_FORM_addrx
7967 (dump_die_shallow): Likewise
7968 (dwarf2_fetch_constant_bytes): Likewise
7969 (decode_locdesc): Add DW_OP_addrx
7970 (skip_form_bytes): Add DW_FORM_addrx
7971
ad9d13f8
AT
79722019-04-22 Ali Tamur <tamur@google.com>
7973
7974 * MAINTAINERS (Write After Approval): Add self.
7975
d70cc3ba
SM
79762019-04-22 Simon Marchi <simon.marchi@efficios.com>
7977
7978 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7979 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7980 (open_symbol_file_object): Likewise.
7981 (svr4_default_sos): Add info parameter.
7982 (svr4_read_so_list): Likewise.
7983 (svr4_current_sos_direct): Adjust functions calls to pass down
7984 info.
7985 (svr4_current_sos_1): Add info parameter.
7986 (svr4_current_sos): Call get_svr4_info, pass info down to
7987 svr4_current_sos_1.
7988 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7989 get_svr4_info.
7990 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7991 get_svr4_info.
7992 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7993 to get_svr4_info.
7994 (probes_table_remove_objfile_probes): Likewise.
7995 (register_solib_event_probe): Add info parameter.
7996 (solist_update_incremental): Pass info parameter down to
7997 svr4_read_so_list.
7998 (disable_probes_interface): Add info parameter.
7999 (svr4_handle_solib_event): Pass current_program_space to
8000 get_svr4_info. Adjust disable_probes_interface cleanup.
8001 (svr4_create_probe_breakpoints): Add info parameter, pass it
8002 down to register_solib_event_probe.
8003 (svr4_create_solib_event_breakpoints): Add info parameter,
8004 pass it down to svr4_create_probe_breakpoints.
8005 (enable_break): Pass info down to
8006 svr4_create_solib_event_breakpoints.
8007 (svr4_solib_create_inferior_hook): Pass current_program_space to
8008 get_svr4_info.
8009 (svr4_clear_solib): Likewise.
8010
7905fc35
PA
80112019-04-22 Pedro Alves <palves@redhat.com>
8012
8013 * solib-svr4.c (svr4_free_objfile_observer): New.
8014 (probe_and_action::objfile): New field.
8015 (probes_table_htab_remove_objfile_probes)
8016 (probes_table_remove_objfile_probes): New functions.
8017 (register_solib_event_probe): Add 'objfile' parameter. Store it
8018 in the new probe_and_action. Don't store the probe in 'lookup'.
8019 (svr4_create_probe_breakpoints): Pass objfile to
8020 register_solib_event_probe.
8021 (_initialize_svr4_solib): Register a free_objfile observer.
8022
fb881986
TT
80232019-04-19 Tom Tromey <tom@tromey.com>
8024
8025 * common/queue.h: Remove.
8026
8732db6c
TT
80272019-04-19 Tom Tromey <tom@tromey.com>
8028
8029 * event-loop.c: Don't include "common/queue.h".
8030
97dfbadd
TT
80312019-04-19 Tom Tromey <tom@tromey.com>
8032
8033 * remote.c (remote_target): Use delete.
8034 * remote-notif.h: Include <list>, not "common/queue.h".
8035 (notif_client_p): Remove typedef.
8036 (remote_notif_state): Add constructor, destructor, initializer.
8037 <notif_queue>: Now a std::list.
8038 (remote_notif_state_xfree): Don't declare.
8039 * remote-notif.c (remote_notif_process, handle_notification)
8040 (remote_notif_state_allocate): Update.
8041 (~remote_notif_state): Rename from remote_notif_state_xfree.
8042
cf250e36
TT
80432019-04-19 Tom Tromey <tom@tromey.com>
8044
8045 * symfile.c (reread_symbols): Update.
8046 * objfiles.c (objfile_register_static_link)
8047 (objfile_lookup_static_link): Update
8048 (~objfile) Don't delete static_links.
8049 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8050
61f4b350
TT
80512019-04-19 Tom Tromey <tom@tromey.com>
8052
8053 * type-stack.h (struct type_stack) <insert>: Constify string.
8054 * type-stack.c (type_stack::insert): Constify string.
8055 * gdbtypes.h (lookup_template_type): Update.
8056 (address_space_name_to_int): Update.
8057 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8058 const.
8059 (lookup_template_type): Make name const.
8060 * c-exp.y: Update rules.
8061 (lex_one_token, classify_name, classify_inner_name)
8062 (c_print_token): Update.
8063 * p-exp.y: Update rules.
8064 (yylex): Update.
8065 * f-exp.y: Update rules.
8066 (yylex): Update.
8067 * d-exp.y: Update rules.
8068 (lex_one_token, classify_name, classify_inner_name): Update.
8069 * parse.c (write_dollar_variable, copy_name): Return std::string.
8070 * parser-defs.h (copy_name): Change return type.
8071 * m2-exp.y: Update rules.
8072 (yylex): Update.
8073 * go-exp.y (lex_one_token): Update.
8074 Update rules.
8075 (classify_unsafe_function, classify_packaged_name)
8076 (classify_name, yylex): Update.
8077
189b8c2e
ST
80782019-04-19 Sergei Trofimovich <siarheit@google.com>
8079
8080 * configure.ac: add --enable-source-highlight switch.
8081 * configure: Regenerate.
8082 * top.c (print_gdb_version): plumb --enable-source-highlight
8083 status to "show configuration".
8084
8ecb59f8
TT
80852019-04-19 Tom Tromey <tromey@adacore.com>
8086
8087 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8088 Check ADA_TYPE_P.
8089 (empty_record, ada_template_to_fixed_record_type_1)
8090 (template_to_static_fixed_type)
8091 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8092 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8093 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8094 macros.
8095
62160ec9
TT
80962019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8097
8098 PR symtab/24423:
8099 * source.c (print_source_lines_base): Advance "iter" when a
8100 control character is seen.
8101
f2ae8bc8
PW
81022019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8103
8104 * inferior.h (struct infcall_suspend_state_deleter):
8105 Catch exception in destructor to avoid crash.
8106
d563b953
PW
81072019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8108
8109 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8110 close to the add_com "shell".
8111
dc34c897
TT
81122019-04-18 Tom Tromey <tromey@adacore.com>
8113
8114 * process-stratum-target.h (class process_stratum_target)
8115 <stratum>: Add "final".
8116
a12e5744
TT
81172019-04-17 Tom Tromey <tromey@adacore.com>
8118
8119 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8120 against nullptr before use.
8121
a7e559cc
AH
81222019-04-17 Alan Hayward <alan.hayward@arm.com>
8123
8124 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8125
c01660c6
AB
81262019-04-17 Jim Wilson <jimw@sifive.com>
8127 Andrew Burgess <andrew.burgess@embecosm.com>
8128
8129 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8130 code read might fail, assume 4-byte breakpoint in that case.
8131
4aa866af
LS
81322019-04-15 Leszek Swirski <leszeks@google.com>
8133
8134 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8135 rather than a hand-rolled POD check when checking for forced MEMORY
8136 classification.
8137
48574d91
AH
81382019-04-15 Alan Hayward <alan.hayward@arm.com>
8139
8140 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8141 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8142 function.
8143 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8144 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8145 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8146 declaration.
8147
4da037ef
AH
81482019-04-15 Alan Hayward <alan.hayward@arm.com>
8149
8150 * aarch64-linux-nat.c
8151 (aarch64_linux_nat_target::thread_architecture): Add override.
8152 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8153 each VQ.
8154
ccb8d7e8
AH
81552019-04-15 Alan Hayward <alan.hayward@arm.com>
8156
8157 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8158
35add35e
AB
81592019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8160
8161 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8162 target types of size 96-bits, add some additional comments, and
8163 check that the builtin type we found was the correct size.
8164
51196bbc
EZ
81652019-04-12 Eli Zaretskii <eliz@gnu.org>
8166
8167 * utils.c (prompt_for_continue): Don't restore the styling at the
8168 end, as applied_style has the wrong value. This fixes styling in
8169 long lists of file names that are interrupted by the "Continue?"
8170 prompt.
8171
62253a61
AB
81722019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8173
8174 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8175 * c-lang.c (c_language_defn): Likewise.
8176 (cplus_language_defn): Likewise.
8177 (asm_language_defn): Likewise.
8178 (minimal_language_defn): Likewise.
8179 * d-lang.c (d_language_defn): Likewise.
8180 * f-lang.c (f_language_defn): Likewise.
8181 * go-lang.c (go_language_defn): Likewise.
8182 * language.c (unknown_language_defn): Likewise.
8183 (auto_language_defn): Likewise.
8184 * language.h (struct language_defn): Remove la_magic field.
8185 (LANG_MAGIC): Delete.
8186 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8187 * objc-lang.c (objc_language_defn): Likewise.
8188 * opencl-lang.c (opencl_language_defn): Likewise.
8189 * p-lang.c (pascal_language_defn): Likewise.
8190 * rust-lang.c (rust_language_defn): Likewise.
8191
a9158a86
AB
81922019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8193
8194 * riscv-tdep.c (riscv_type_align): New function.
8195 (riscv_type_alignment): Delete.
8196 (riscv_arg_location): Use 'type_align'.
8197 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8198
41077b66
AB
81992019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8200
8201 * gdbtypes.c (type_align): A struct with no non-static fields also
8202 has alignment of 1.
8203
9f0272f8
AB
82042019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8205
8206 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8207 component to 0.
8208 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8209 member.
8210 (riscv_struct_info::analyse): New implementation using new
8211 analyse_inner member function.
8212 (riscv_struct_info::field_offset): New member function.
8213 (riscv_struct_info::m_offsets): New member variable.
8214 (riscv_struct_info::analyse_inner): New private member function,
8215 takes the old implementation of riscv_struct_info::analyse but
8216 extended to track field offsets.
8217 (riscv_call_arg_struct): Update the struct folding special cases
8218 to handle cases where empty C++ structs, which are non-zero
8219 length, are found.
8220 (riscv_arg_location): Initialise the length of each location, a
8221 non-zero length now indicates the location is in use.
8222 (riscv_push_dummy_call): Allow for the first location having a
8223 non-zero offset when setting up arguments.
8224 (riscv_return_value): Likewise, but for return values.
8225
02cf60c7
TT
82262019-04-11 Tom Tromey <tromey@adacore.com>
8227
8228 * utils.c (internal_vproblem): Make "msg" const.
8229
68811f8f
AH
82302019-04-11 Alan Hayward <alan.hayward@arm.com>
8231
8232 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8233 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8234 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8235 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8236
3f52fdbc
KB
82372019-04-10 Kevin Buettner <kevinb@redhat.com>
8238
8239 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8240 function.
8241 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8242 of amd64_collect_native_gregset.
8243 (amd64_linux_nat_target::store_registers): Likewise.
8244
e9ad22ee
TT
82452019-04-10 Tom Tromey <tom@tromey.com>
8246
8247 * symtab.c (lookup_global_symbol_from_objfile)
8248 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8249 * objfiles.h (class separate_debug_iterator): New.
8250 (class separate_debug_range): New.
8251 (struct objfile) <separate_debug_objfiles>: New method.
8252 (objfile_separate_debug_iterate): Don't declare.
8253 * objfiles.c (separate_debug_iterator::operator++): Rename from
8254 objfile_separate_debug_iterate.
8255 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8256 iterator.
8257 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8258 iterator.
8259
ee371134
TT
82602019-04-10 Tom Tromey <tom@tromey.com>
8261
8262 * symfile.c (reread_symbols): Remove old comment.
8263 * objfiles.c (free_all_objfiles): Fix a typo.
8264
bf227d61
TT
82652019-04-10 Tom Tromey <tom@tromey.com>
8266
8267 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8268 * minsyms.c (lookup_minimal_symbol): Use foreach.
8269 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8270 (lookup_minimal_symbol_solib_trampoline): Likewise.
8271 * symfile.c (reread_symbols): Use foreach.
8272
8dc433a0
TT
82732019-04-09 Ivan Begert <ivanbegert@gmail.com>
8274 Tom Tromey <tromey@adacore.com>
8275
8276 PR rust/24414:
8277 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8278 (rust_lex_int_test): Change "value" to be LONGEST.
8279 (rust_lex_tests): Add test for long integer literal.
8280
9ab8741a
TT
82812019-04-09 Tom Tromey <tromey@adacore.com>
8282
8283 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8284 to bool.
8285 (extended_remote_target::attach): Update.
8286 (remote_target::remote_notice_new_inferior): Update.
8287 (remote_target::add_current_inferior_and_thread): Update.
8288 * inferior.c (exit_inferior_1): Use "false".
8289 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8290
e242fd12
SM
82912019-04-09 Simon Marchi <simon.marchi@efficios.com>
8292
9ca1957f 8293 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
8294 the "start" command.
8295
2b0c8b01
KB
82962019-04-08 Kevin Buettner <kevinb@redhat.com>
8297
8298 * python/py-inferior.c (infpy_thread_from_thread_handle):
8299 Adjust comments to reflect renaming of thread_from_thread_handle
8300 to thread_from_handle. Adjust keywords. Fix type error message.
8301 (inferior_object_methods): Add thread_from_handle. Retain
8302 thread_from_thread_handle, but mark it as deprecated.
8303
50a82723
KB
83042019-04-08 Kevin Buettner <kevinb@redhat.com>
8305
8306 * gdbthread.h (find_thread_by_handle): Revise declaration.
8307 * thread.c (find_thread_by_handle): Likewise. Adjust
8308 implementation too.
8309 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8310 support for buffer objects as handles.
8311
cf63b016
KB
83122019-04-08 Kevin Buettner <kevinb@redhat.com>
8313
8314 * python/py-infthread.c (thpy_thread_handle): New function.
8315 (thread_object_methods): Register thpy_thread_handle.
8316
3d6c6204
KB
83172019-04-08 Kevin Buettner <kevinb@redhat.com>
8318
8319 * gdbthread.h (thread_to_thread_handle): Declare.
8320 * thread.c (gdbtypes.h): Include.
8321 (thread_to_thread_handle): New function.
8322
8323 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8324 (target_thread_info_to_thread_handle): Declare.
8325 * target.c (target_thread_info_to_thread_handle): New function.
8326 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8327 * target-delegates.c: Regenerate.
8328
8329 * linux-thread-db.c (class thread_db_target): Add method
8330 thread_info_to_thread_handle.
8331 (thread_db_target::thread_info_to_thread_handle): Define.
8332 * remote.c (class remote_target): Add new method
8333 thread_info_to_thread_handle.
8334 (remote_target::thread_info_to_thread_handle): Define.
8335
56be6ea8
PA
83362019-04-08 Pedro Alves <palves@redhat.com>
8337
8338 * common/common-exceptions.c (throw_exception): Don't create
8339 named object to throw; throw directly.
8340 (throw_it): Likewise. Don't initialize gdb_exception::message
8341 here, with new; pass FMT and AP to the ctor instead.
8342 * common/common-exceptions.h: Include <string>.
8343 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8344 const char *, va_list)): New ctor. Use std::make_shared.
8345 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8346 errors)): Delete.
8347 (gdb_exception_error::gdb_exception_error(enum errors, const char
8348 *, va_list)): New.
8349 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8350 Add assertion.
8351 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8352 errors)): Delete.
8353 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8354 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8355 Add assertion.
8356
eedc3f4f
TT
83572019-04-08 Tom Tromey <tom@tromey.com>
8358
8359 * valops.c (value_rtti_indirect_type): Replace throw_exception
8360 with throw.
8361 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8362 with throw.
8363 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8364 throw.
8365 * target.c (target_translate_tls_address): Replace throw_exception
8366 with throw.
8367 * stack.c (frame_apply_command_count): Replace throw_exception
8368 with throw.
8369 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8370 throw.
8371 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8372 with throw.
8373 * rs6000-tdep.c (rs6000_frame_cache)
8374 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8375 * remote.c: Replace throw_exception with throw.
8376 * record-full.c (record_full_message, record_full_wait_1)
8377 (record_full_restore): Replace throw_exception with throw.
8378 * record-btrace.c:
8379 (get_thread_current_frame_id, record_btrace_start_replaying)
8380 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8381 (cmd_record_btrace_start): Replace throw_exception with throw.
8382 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8383 throw.
8384 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8385 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8386 * linespec.c:
8387 (find_linespec_symbols): Replace throw_exception with throw.
8388 * infrun.c (displaced_step_prepare, resume): Replace
8389 throw_exception with throw.
8390 * infcmd.c (post_create_inferior): Replace throw_exception with
8391 throw.
8392 * inf-loop.c (inferior_event_handler): Replace throw_exception
8393 with throw.
8394 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8395 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8396 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8397 (get_prev_frame_always, get_frame_pc_if_available)
8398 (get_frame_address_in_block_if_available, get_frame_language):
8399 Replace throw_exception with throw.
8400 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8401 throw_exception with throw.
8402 * eval.c (fetch_subexp_value, evaluate_var_value)
8403 (evaluate_funcall, evaluate_subexp_standard): Replace
8404 throw_exception with throw.
8405 * dwarf2loc.c (call_site_find_chain)
8406 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8407 Replace throw_exception with throw.
8408 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8409 with throw.
8410 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8411 throw.
8412 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8413 * completer.c (complete_line_internal): Replace throw_exception
8414 with throw.
8415 * compile/compile-object-run.c (compile_object_run): Replace
8416 throw_exception with throw.
8417 * cli/cli-script.c (process_next_line): Replace throw_exception
8418 with throw.
8419 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8420 (btrace_enable, btrace_maint_update_pt_packets): Replace
8421 throw_exception with throw.
8422 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8423 throw_exception with throw.
8424 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8425 throw_exception with throw.
8426 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8427 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8428 * aarch64-tdep.c (aarch64_make_prologue_cache)
8429 (aarch64_make_stub_cache): Replace throw_exception with throw.
8430
26003a20
TT
84312019-04-08 Tom Tromey <tom@tromey.com>
8432
8433 * common/common-exceptions.c (throw_exception): Rename from
8434 throw_exception_cxx. Remove old copy. Make argument const.
8435 (throw_it): Create and throw exception objects directly.
8436 * common/common-exceptions.h (throw_exception): Make argument
8437 const.
8438 (struct gdb_exception_error): Add constructor.
8439 (struct gdb_exception_quit): Add constructor.
8440
d272eb37
TT
84412019-04-08 Tom Tromey <tom@tromey.com>
8442
8443 * common/common-exceptions.h (exception_rethrow): Don't declare.
8444 (TRY_SJLJ): Update comment.
8445 (TRY, CATCH, END_CATCH): Remove.
8446 * common/common-exceptions.c (exception_rethrow): Remove.
8447
230d2906
TT
84482019-04-08 Tom Tromey <tom@tromey.com>
8449
8450 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8451 Remove.
8452 (gdb_exception_error): Rename from
8453 gdb_exception_RETURN_MASK_ERROR.
8454 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8455 (gdb_quit_bad_alloc): Update.
8456 * aarch64-tdep.c: Update.
8457 * ada-lang.c: Update.
8458 * ada-typeprint.c: Update.
8459 * ada-valprint.c: Update.
8460 * amd64-tdep.c: Update.
8461 * arch-utils.c: Update.
8462 * break-catch-throw.c: Update.
8463 * breakpoint.c: Update.
8464 * btrace.c: Update.
8465 * c-varobj.c: Update.
8466 * cli/cli-cmds.c: Update.
8467 * cli/cli-interp.c: Update.
8468 * cli/cli-script.c: Update.
8469 * common/common-exceptions.c: Update.
8470 * common/new-op.c: Update.
8471 * common/selftest.c: Update.
8472 * compile/compile-c-symbols.c: Update.
8473 * compile/compile-cplus-symbols.c: Update.
8474 * compile/compile-object-load.c: Update.
8475 * compile/compile-object-run.c: Update.
8476 * completer.c: Update.
8477 * corelow.c: Update.
8478 * cp-abi.c: Update.
8479 * cp-support.c: Update.
8480 * cp-valprint.c: Update.
8481 * darwin-nat.c: Update.
8482 * disasm-selftests.c: Update.
8483 * dtrace-probe.c: Update.
8484 * dwarf-index-cache.c: Update.
8485 * dwarf-index-write.c: Update.
8486 * dwarf2-frame-tailcall.c: Update.
8487 * dwarf2-frame.c: Update.
8488 * dwarf2loc.c: Update.
8489 * dwarf2read.c: Update.
8490 * eval.c: Update.
8491 * event-loop.c: Update.
8492 * event-top.c: Update.
8493 * exec.c: Update.
8494 * f-valprint.c: Update.
8495 * fbsd-tdep.c: Update.
8496 * frame-unwind.c: Update.
8497 * frame.c: Update.
8498 * gdbtypes.c: Update.
8499 * gnu-v3-abi.c: Update.
8500 * guile/guile-internal.h: Update.
8501 * guile/scm-block.c: Update.
8502 * guile/scm-breakpoint.c: Update.
8503 * guile/scm-cmd.c: Update.
8504 * guile/scm-disasm.c: Update.
8505 * guile/scm-frame.c: Update.
8506 * guile/scm-lazy-string.c: Update.
8507 * guile/scm-math.c: Update.
8508 * guile/scm-param.c: Update.
8509 * guile/scm-ports.c: Update.
8510 * guile/scm-pretty-print.c: Update.
8511 * guile/scm-symbol.c: Update.
8512 * guile/scm-symtab.c: Update.
8513 * guile/scm-type.c: Update.
8514 * guile/scm-value.c: Update.
8515 * i386-linux-tdep.c: Update.
8516 * i386-tdep.c: Update.
8517 * inf-loop.c: Update.
8518 * infcall.c: Update.
8519 * infcmd.c: Update.
8520 * infrun.c: Update.
8521 * jit.c: Update.
8522 * language.c: Update.
8523 * linespec.c: Update.
8524 * linux-fork.c: Update.
8525 * linux-nat.c: Update.
8526 * linux-tdep.c: Update.
8527 * linux-thread-db.c: Update.
8528 * main.c: Update.
8529 * mi/mi-cmd-break.c: Update.
8530 * mi/mi-cmd-stack.c: Update.
8531 * mi/mi-interp.c: Update.
8532 * mi/mi-main.c: Update.
8533 * objc-lang.c: Update.
8534 * p-valprint.c: Update.
8535 * parse.c: Update.
8536 * ppc-linux-tdep.c: Update.
8537 * printcmd.c: Update.
8538 * python/py-arch.c: Update.
8539 * python/py-breakpoint.c: Update.
8540 * python/py-cmd.c: Update.
8541 * python/py-finishbreakpoint.c: Update.
8542 * python/py-frame.c: Update.
8543 * python/py-framefilter.c: Update.
8544 * python/py-gdb-readline.c: Update.
8545 * python/py-inferior.c: Update.
8546 * python/py-infthread.c: Update.
8547 * python/py-lazy-string.c: Update.
8548 * python/py-linetable.c: Update.
8549 * python/py-objfile.c: Update.
8550 * python/py-param.c: Update.
8551 * python/py-prettyprint.c: Update.
8552 * python/py-progspace.c: Update.
8553 * python/py-record-btrace.c: Update.
8554 * python/py-record.c: Update.
8555 * python/py-symbol.c: Update.
8556 * python/py-type.c: Update.
8557 * python/py-unwind.c: Update.
8558 * python/py-utils.c: Update.
8559 * python/py-value.c: Update.
8560 * python/python.c: Update.
8561 * record-btrace.c: Update.
8562 * record-full.c: Update.
8563 * remote-fileio.c: Update.
8564 * remote.c: Update.
8565 * riscv-tdep.c: Update.
8566 * rs6000-aix-tdep.c: Update.
8567 * rs6000-tdep.c: Update.
8568 * rust-exp.y: Update.
8569 * rust-lang.c: Update.
8570 * s390-tdep.c: Update.
8571 * selftest-arch.c: Update.
8572 * solib-dsbt.c: Update.
8573 * solib-frv.c: Update.
8574 * solib-spu.c: Update.
8575 * solib-svr4.c: Update.
8576 * solib.c: Update.
8577 * sparc64-linux-tdep.c: Update.
8578 * stack.c: Update.
8579 * symfile-mem.c: Update.
8580 * symmisc.c: Update.
8581 * target.c: Update.
8582 * thread.c: Update.
8583 * top.c: Update.
8584 * tracefile-tfile.c: Update.
8585 * tui/tui.c: Update.
8586 * typeprint.c: Update.
8587 * unittests/cli-utils-selftests.c: Update.
8588 * unittests/parse-connection-spec-selftests.c: Update.
8589 * valops.c: Update.
8590 * valprint.c: Update.
8591 * value.c: Update.
8592 * varobj.c: Update.
8593 * windows-nat.c: Update.
8594 * x86-linux-nat.c: Update.
8595 * xml-support.c: Update.
8596
a70b8144
TT
85972019-04-08 Tom Tromey <tom@tromey.com>
8598
8599 * xml-support.c: Use C++ exception handling.
8600 * x86-linux-nat.c: Use C++ exception handling.
8601 * windows-nat.c: Use C++ exception handling.
8602 * varobj.c: Use C++ exception handling.
8603 * value.c: Use C++ exception handling.
8604 * valprint.c: Use C++ exception handling.
8605 * valops.c: Use C++ exception handling.
8606 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8607 handling.
8608 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8609 * typeprint.c: Use C++ exception handling.
8610 * tui/tui.c: Use C++ exception handling.
8611 * tracefile-tfile.c: Use C++ exception handling.
8612 * top.c: Use C++ exception handling.
8613 * thread.c: Use C++ exception handling.
8614 * target.c: Use C++ exception handling.
8615 * symmisc.c: Use C++ exception handling.
8616 * symfile-mem.c: Use C++ exception handling.
8617 * stack.c: Use C++ exception handling.
8618 * sparc64-linux-tdep.c: Use C++ exception handling.
8619 * solib.c: Use C++ exception handling.
8620 * solib-svr4.c: Use C++ exception handling.
8621 * solib-spu.c: Use C++ exception handling.
8622 * solib-frv.c: Use C++ exception handling.
8623 * solib-dsbt.c: Use C++ exception handling.
8624 * selftest-arch.c: Use C++ exception handling.
8625 * s390-tdep.c: Use C++ exception handling.
8626 * rust-lang.c: Use C++ exception handling.
8627 * rust-exp.y: Use C++ exception handling.
8628 * rs6000-tdep.c: Use C++ exception handling.
8629 * rs6000-aix-tdep.c: Use C++ exception handling.
8630 * riscv-tdep.c: Use C++ exception handling.
8631 * remote.c: Use C++ exception handling.
8632 * remote-fileio.c: Use C++ exception handling.
8633 * record-full.c: Use C++ exception handling.
8634 * record-btrace.c: Use C++ exception handling.
8635 * python/python.c: Use C++ exception handling.
8636 * python/py-value.c: Use C++ exception handling.
8637 * python/py-utils.c: Use C++ exception handling.
8638 * python/py-unwind.c: Use C++ exception handling.
8639 * python/py-type.c: Use C++ exception handling.
8640 * python/py-symbol.c: Use C++ exception handling.
8641 * python/py-record.c: Use C++ exception handling.
8642 * python/py-record-btrace.c: Use C++ exception handling.
8643 * python/py-progspace.c: Use C++ exception handling.
8644 * python/py-prettyprint.c: Use C++ exception handling.
8645 * python/py-param.c: Use C++ exception handling.
8646 * python/py-objfile.c: Use C++ exception handling.
8647 * python/py-linetable.c: Use C++ exception handling.
8648 * python/py-lazy-string.c: Use C++ exception handling.
8649 * python/py-infthread.c: Use C++ exception handling.
8650 * python/py-inferior.c: Use C++ exception handling.
8651 * python/py-gdb-readline.c: Use C++ exception handling.
8652 * python/py-framefilter.c: Use C++ exception handling.
8653 * python/py-frame.c: Use C++ exception handling.
8654 * python/py-finishbreakpoint.c: Use C++ exception handling.
8655 * python/py-cmd.c: Use C++ exception handling.
8656 * python/py-breakpoint.c: Use C++ exception handling.
8657 * python/py-arch.c: Use C++ exception handling.
8658 * printcmd.c: Use C++ exception handling.
8659 * ppc-linux-tdep.c: Use C++ exception handling.
8660 * parse.c: Use C++ exception handling.
8661 * p-valprint.c: Use C++ exception handling.
8662 * objc-lang.c: Use C++ exception handling.
8663 * mi/mi-main.c: Use C++ exception handling.
8664 * mi/mi-interp.c: Use C++ exception handling.
8665 * mi/mi-cmd-stack.c: Use C++ exception handling.
8666 * mi/mi-cmd-break.c: Use C++ exception handling.
8667 * main.c: Use C++ exception handling.
8668 * linux-thread-db.c: Use C++ exception handling.
8669 * linux-tdep.c: Use C++ exception handling.
8670 * linux-nat.c: Use C++ exception handling.
8671 * linux-fork.c: Use C++ exception handling.
8672 * linespec.c: Use C++ exception handling.
8673 * language.c: Use C++ exception handling.
8674 * jit.c: Use C++ exception handling.
8675 * infrun.c: Use C++ exception handling.
8676 * infcmd.c: Use C++ exception handling.
8677 * infcall.c: Use C++ exception handling.
8678 * inf-loop.c: Use C++ exception handling.
8679 * i386-tdep.c: Use C++ exception handling.
8680 * i386-linux-tdep.c: Use C++ exception handling.
8681 * guile/scm-value.c: Use C++ exception handling.
8682 * guile/scm-type.c: Use C++ exception handling.
8683 * guile/scm-symtab.c: Use C++ exception handling.
8684 * guile/scm-symbol.c: Use C++ exception handling.
8685 * guile/scm-pretty-print.c: Use C++ exception handling.
8686 * guile/scm-ports.c: Use C++ exception handling.
8687 * guile/scm-param.c: Use C++ exception handling.
8688 * guile/scm-math.c: Use C++ exception handling.
8689 * guile/scm-lazy-string.c: Use C++ exception handling.
8690 * guile/scm-frame.c: Use C++ exception handling.
8691 * guile/scm-disasm.c: Use C++ exception handling.
8692 * guile/scm-cmd.c: Use C++ exception handling.
8693 * guile/scm-breakpoint.c: Use C++ exception handling.
8694 * guile/scm-block.c: Use C++ exception handling.
8695 * guile/guile-internal.h: Use C++ exception handling.
8696 * gnu-v3-abi.c: Use C++ exception handling.
8697 * gdbtypes.c: Use C++ exception handling.
8698 * frame.c: Use C++ exception handling.
8699 * frame-unwind.c: Use C++ exception handling.
8700 * fbsd-tdep.c: Use C++ exception handling.
8701 * f-valprint.c: Use C++ exception handling.
8702 * exec.c: Use C++ exception handling.
8703 * event-top.c: Use C++ exception handling.
8704 * event-loop.c: Use C++ exception handling.
8705 * eval.c: Use C++ exception handling.
8706 * dwarf2read.c: Use C++ exception handling.
8707 * dwarf2loc.c: Use C++ exception handling.
8708 * dwarf2-frame.c: Use C++ exception handling.
8709 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8710 * dwarf-index-write.c: Use C++ exception handling.
8711 * dwarf-index-cache.c: Use C++ exception handling.
8712 * dtrace-probe.c: Use C++ exception handling.
8713 * disasm-selftests.c: Use C++ exception handling.
8714 * darwin-nat.c: Use C++ exception handling.
8715 * cp-valprint.c: Use C++ exception handling.
8716 * cp-support.c: Use C++ exception handling.
8717 * cp-abi.c: Use C++ exception handling.
8718 * corelow.c: Use C++ exception handling.
8719 * completer.c: Use C++ exception handling.
8720 * compile/compile-object-run.c: Use C++ exception handling.
8721 * compile/compile-object-load.c: Use C++ exception handling.
8722 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8723 * compile/compile-c-symbols.c: Use C++ exception handling.
8724 * common/selftest.c: Use C++ exception handling.
8725 * common/new-op.c: Use C++ exception handling.
8726 * cli/cli-script.c: Use C++ exception handling.
8727 * cli/cli-interp.c: Use C++ exception handling.
8728 * cli/cli-cmds.c: Use C++ exception handling.
8729 * c-varobj.c: Use C++ exception handling.
8730 * btrace.c: Use C++ exception handling.
8731 * breakpoint.c: Use C++ exception handling.
8732 * break-catch-throw.c: Use C++ exception handling.
8733 * arch-utils.c: Use C++ exception handling.
8734 * amd64-tdep.c: Use C++ exception handling.
8735 * ada-valprint.c: Use C++ exception handling.
8736 * ada-typeprint.c: Use C++ exception handling.
8737 * ada-lang.c: Use C++ exception handling.
8738 * aarch64-tdep.c: Use C++ exception handling.
8739
3d6e9d23
TT
87402019-04-08 Tom Tromey <tom@tromey.com>
8741
8742 * xml-support.c (gdb_xml_parser::parse): Update.
8743 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8744 * value.c (show_convenience): Update.
8745 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8746 (test_parse_flags_qcs): Update.
8747 * thread.c (thr_try_catch_cmd): Update.
8748 * target.c (target_translate_tls_address): Update.
8749 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8750 (info_frame_command_core, frame_apply_command_count): Update.
8751 * rust-exp.y (rust_lex_exception_test): Update.
8752 * riscv-tdep.c (riscv_print_one_register_info): Update.
8753 * remote.c (remote_target::enable_btrace): Update.
8754 * record-btrace.c (record_btrace_enable_warn): Update.
8755 * python/py-utils.c (gdbpy_convert_exception): Update.
8756 * printcmd.c (do_one_display, print_variable_and_value): Update.
8757 * mi/mi-main.c (mi_print_exception): Update.
8758 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8759 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8760 * linux-nat.c (linux_nat_target::attach): Update.
8761 * linux-fork.c (class scoped_switch_fork_info): Update.
8762 * infrun.c (displaced_step_prepare): Update.
8763 * infcall.c (call_function_by_hand_dummy): Update.
8764 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8765 * gnu-v3-abi.c (print_one_vtable): Update.
8766 * frame.c (get_prev_frame_always): Update.
8767 * f-valprint.c (info_common_command_for_block): Update.
8768 * exec.c (try_open_exec_file): Update.
8769 * exceptions.c (print_exception, exception_print)
8770 (exception_fprintf, exception_print_same): Update.
8771 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8772 * dwarf-index-cache.c (index_cache::store)
8773 (index_cache::lookup_gdb_index): Update.
8774 * darwin-nat.c (maybe_cache_shell): Update.
8775 * cp-valprint.c (cp_print_value_fields): Update.
8776 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8777 (gcc_cplus_symbol_address): Update.
8778 * compile/compile-c-symbols.c (gcc_convert_symbol)
8779 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8780 * common/selftest.c: Update.
8781 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8782 a std::string.
8783 (exception_try_scope_entry, exception_try_scope_exit): Don't
8784 declare.
8785 (struct exception_try_scope): Remove.
8786 (TRY): Don't use exception_try_scope.
8787 (struct gdb_exception): Add constructor, operator=.
8788 <what>: New method.
8789 (struct gdb_exception_RETURN_MASK_ALL)
8790 (struct gdb_exception_RETURN_MASK_ERROR)
8791 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8792 (struct gdb_quit_bad_alloc): Update.
8793 * common/common-exceptions.c (exception_none): Change
8794 initializer.
8795 (struct catcher) <state, exception>: Initialize inline.
8796 <prev>: Remove member.
8797 (current_catcher): Remove.
8798 (catchers): New global.
8799 (exceptions_state_mc_init): Simplify.
8800 (catcher_pop): Remove.
8801 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8802 (try_scope_depth, exception_try_scope_entry)
8803 (exception_try_scope_exit): Remove.
8804 (throw_exception_sjlj): Update.
8805 (exception_messages, exception_messages_size): Remove.
8806 (throw_it): Simplify.
8807 (gdb_exception_sliced_copy): Remove.
8808 (throw_exception_cxx): Update.
8809 * cli/cli-script.c (script_from_file): Update.
8810 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8811 Update.
8812 * ada-valprint.c (ada_val_print): Update.
8813 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8814 (create_excep_cond_exprs): Update.
8815
c5c10118
TT
88162019-04-08 Tom Tromey <tom@tromey.com>
8817
8818 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8819 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8820 (TRY, CATCH, END_CATCH): Remove some definitions.
8821 * common/common-exceptions.c: Don't use GDB_XCPT.
8822 (catcher_list_size): Remove.
8823 (throw_exception, throw_it): Simplify.
8824
4de283e4
TT
88252019-04-05 Tom Tromey <tom@tromey.com>
8826
8827 Revert the header-sorting patch.
8828 * ft32-tdep.c: Revert.
8829 * frv-tdep.c: Revert.
8830 * frv-linux-tdep.c: Revert.
8831 * frame.c: Revert.
8832 * frame-unwind.c: Revert.
8833 * frame-base.c: Revert.
8834 * fork-child.c: Revert.
8835 * findvar.c: Revert.
8836 * findcmd.c: Revert.
8837 * filesystem.c: Revert.
8838 * filename-seen-cache.h: Revert.
8839 * filename-seen-cache.c: Revert.
8840 * fbsd-tdep.c: Revert.
8841 * fbsd-nat.h: Revert.
8842 * fbsd-nat.c: Revert.
8843 * f-valprint.c: Revert.
8844 * f-typeprint.c: Revert.
8845 * f-lang.c: Revert.
8846 * extension.h: Revert.
8847 * extension.c: Revert.
8848 * extension-priv.h: Revert.
8849 * expprint.c: Revert.
8850 * exec.h: Revert.
8851 * exec.c: Revert.
8852 * exceptions.c: Revert.
8853 * event-top.c: Revert.
8854 * event-loop.c: Revert.
8855 * eval.c: Revert.
8856 * elfread.c: Revert.
8857 * dwarf2read.h: Revert.
8858 * dwarf2read.c: Revert.
8859 * dwarf2loc.c: Revert.
8860 * dwarf2expr.h: Revert.
8861 * dwarf2expr.c: Revert.
8862 * dwarf2-frame.c: Revert.
8863 * dwarf2-frame-tailcall.c: Revert.
8864 * dwarf-index-write.h: Revert.
8865 * dwarf-index-write.c: Revert.
8866 * dwarf-index-common.c: Revert.
8867 * dwarf-index-cache.h: Revert.
8868 * dwarf-index-cache.c: Revert.
8869 * dummy-frame.c: Revert.
8870 * dtrace-probe.c: Revert.
8871 * disasm.h: Revert.
8872 * disasm.c: Revert.
8873 * disasm-selftests.c: Revert.
8874 * dictionary.c: Revert.
8875 * dicos-tdep.c: Revert.
8876 * demangle.c: Revert.
8877 * dcache.h: Revert.
8878 * dcache.c: Revert.
8879 * darwin-nat.h: Revert.
8880 * darwin-nat.c: Revert.
8881 * darwin-nat-info.c: Revert.
8882 * d-valprint.c: Revert.
8883 * d-namespace.c: Revert.
8884 * d-lang.c: Revert.
8885 * ctf.c: Revert.
8886 * csky-tdep.c: Revert.
8887 * csky-linux-tdep.c: Revert.
8888 * cris-tdep.c: Revert.
8889 * cris-linux-tdep.c: Revert.
8890 * cp-valprint.c: Revert.
8891 * cp-support.c: Revert.
8892 * cp-namespace.c: Revert.
8893 * cp-abi.c: Revert.
8894 * corelow.c: Revert.
8895 * corefile.c: Revert.
8896 * continuations.c: Revert.
8897 * completer.h: Revert.
8898 * completer.c: Revert.
8899 * complaints.c: Revert.
8900 * coffread.c: Revert.
8901 * coff-pe-read.c: Revert.
8902 * cli-out.h: Revert.
8903 * cli-out.c: Revert.
8904 * charset.c: Revert.
8905 * c-varobj.c: Revert.
8906 * c-valprint.c: Revert.
8907 * c-typeprint.c: Revert.
8908 * c-lang.c: Revert.
8909 * buildsym.c: Revert.
8910 * buildsym-legacy.c: Revert.
8911 * build-id.h: Revert.
8912 * build-id.c: Revert.
8913 * btrace.c: Revert.
8914 * bsd-uthread.c: Revert.
8915 * breakpoint.h: Revert.
8916 * breakpoint.c: Revert.
8917 * break-catch-throw.c: Revert.
8918 * break-catch-syscall.c: Revert.
8919 * break-catch-sig.c: Revert.
8920 * blockframe.c: Revert.
8921 * block.c: Revert.
8922 * bfin-tdep.c: Revert.
8923 * bfin-linux-tdep.c: Revert.
8924 * bfd-target.c: Revert.
8925 * bcache.c: Revert.
8926 * ax-general.c: Revert.
8927 * ax-gdb.h: Revert.
8928 * ax-gdb.c: Revert.
8929 * avr-tdep.c: Revert.
8930 * auxv.c: Revert.
8931 * auto-load.c: Revert.
8932 * arm-wince-tdep.c: Revert.
8933 * arm-tdep.c: Revert.
8934 * arm-symbian-tdep.c: Revert.
8935 * arm-pikeos-tdep.c: Revert.
8936 * arm-obsd-tdep.c: Revert.
8937 * arm-nbsd-tdep.c: Revert.
8938 * arm-nbsd-nat.c: Revert.
8939 * arm-linux-tdep.c: Revert.
8940 * arm-linux-nat.c: Revert.
8941 * arm-fbsd-tdep.c: Revert.
8942 * arm-fbsd-nat.c: Revert.
8943 * arm-bsd-tdep.c: Revert.
8944 * arch-utils.c: Revert.
8945 * arc-tdep.c: Revert.
8946 * arc-newlib-tdep.c: Revert.
8947 * annotate.h: Revert.
8948 * annotate.c: Revert.
8949 * amd64-windows-tdep.c: Revert.
8950 * amd64-windows-nat.c: Revert.
8951 * amd64-tdep.c: Revert.
8952 * amd64-sol2-tdep.c: Revert.
8953 * amd64-obsd-tdep.c: Revert.
8954 * amd64-obsd-nat.c: Revert.
8955 * amd64-nbsd-tdep.c: Revert.
8956 * amd64-nbsd-nat.c: Revert.
8957 * amd64-nat.c: Revert.
8958 * amd64-linux-tdep.c: Revert.
8959 * amd64-linux-nat.c: Revert.
8960 * amd64-fbsd-tdep.c: Revert.
8961 * amd64-fbsd-nat.c: Revert.
8962 * amd64-dicos-tdep.c: Revert.
8963 * amd64-darwin-tdep.c: Revert.
8964 * amd64-bsd-nat.c: Revert.
8965 * alpha-tdep.c: Revert.
8966 * alpha-obsd-tdep.c: Revert.
8967 * alpha-nbsd-tdep.c: Revert.
8968 * alpha-mdebug-tdep.c: Revert.
8969 * alpha-linux-tdep.c: Revert.
8970 * alpha-linux-nat.c: Revert.
8971 * alpha-bsd-tdep.c: Revert.
8972 * alpha-bsd-nat.c: Revert.
8973 * aix-thread.c: Revert.
8974 * agent.c: Revert.
8975 * addrmap.c: Revert.
8976 * ada-varobj.c: Revert.
8977 * ada-valprint.c: Revert.
8978 * ada-typeprint.c: Revert.
8979 * ada-tasks.c: Revert.
8980 * ada-lang.c: Revert.
8981 * aarch64-tdep.c: Revert.
8982 * aarch64-ravenscar-thread.c: Revert.
8983 * aarch64-newlib-tdep.c: Revert.
8984 * aarch64-linux-tdep.c: Revert.
8985 * aarch64-linux-nat.c: Revert.
8986 * aarch64-fbsd-tdep.c: Revert.
8987 * aarch64-fbsd-nat.c: Revert.
8988 * aarch32-linux-nat.c: Revert.
8989
d55e5aa6
TT
89902019-04-05 Tom Tromey <tom@tromey.com>
8991
8992 * ft32-tdep.c: Sort headers.
8993 * frv-tdep.c: Sort headers.
8994 * frv-linux-tdep.c: Sort headers.
8995 * frame.c: Sort headers.
8996 * frame-unwind.c: Sort headers.
8997 * frame-base.c: Sort headers.
8998 * fork-child.c: Sort headers.
8999 * findvar.c: Sort headers.
9000 * findcmd.c: Sort headers.
9001 * filesystem.c: Sort headers.
9002 * filename-seen-cache.h: Sort headers.
9003 * filename-seen-cache.c: Sort headers.
9004 * fbsd-tdep.c: Sort headers.
9005 * fbsd-nat.h: Sort headers.
9006 * fbsd-nat.c: Sort headers.
9007 * f-valprint.c: Sort headers.
9008 * f-typeprint.c: Sort headers.
9009 * f-lang.c: Sort headers.
9010 * extension.h: Sort headers.
9011 * extension.c: Sort headers.
9012 * extension-priv.h: Sort headers.
9013 * expprint.c: Sort headers.
9014 * exec.h: Sort headers.
9015 * exec.c: Sort headers.
9016 * exceptions.c: Sort headers.
9017 * event-top.c: Sort headers.
9018 * event-loop.c: Sort headers.
9019 * eval.c: Sort headers.
9020 * elfread.c: Sort headers.
9021 * dwarf2read.h: Sort headers.
9022 * dwarf2read.c: Sort headers.
9023 * dwarf2loc.c: Sort headers.
9024 * dwarf2expr.h: Sort headers.
9025 * dwarf2expr.c: Sort headers.
9026 * dwarf2-frame.c: Sort headers.
9027 * dwarf2-frame-tailcall.c: Sort headers.
9028 * dwarf-index-write.h: Sort headers.
9029 * dwarf-index-write.c: Sort headers.
9030 * dwarf-index-common.c: Sort headers.
9031 * dwarf-index-cache.h: Sort headers.
9032 * dwarf-index-cache.c: Sort headers.
9033 * dummy-frame.c: Sort headers.
9034 * dtrace-probe.c: Sort headers.
9035 * disasm.h: Sort headers.
9036 * disasm.c: Sort headers.
9037 * disasm-selftests.c: Sort headers.
9038 * dictionary.c: Sort headers.
9039 * dicos-tdep.c: Sort headers.
9040 * demangle.c: Sort headers.
9041 * dcache.h: Sort headers.
9042 * dcache.c: Sort headers.
9043 * darwin-nat.h: Sort headers.
9044 * darwin-nat.c: Sort headers.
9045 * darwin-nat-info.c: Sort headers.
9046 * d-valprint.c: Sort headers.
9047 * d-namespace.c: Sort headers.
9048 * d-lang.c: Sort headers.
9049 * ctf.c: Sort headers.
9050 * csky-tdep.c: Sort headers.
9051 * csky-linux-tdep.c: Sort headers.
9052 * cris-tdep.c: Sort headers.
9053 * cris-linux-tdep.c: Sort headers.
9054 * cp-valprint.c: Sort headers.
9055 * cp-support.c: Sort headers.
9056 * cp-namespace.c: Sort headers.
9057 * cp-abi.c: Sort headers.
9058 * corelow.c: Sort headers.
9059 * corefile.c: Sort headers.
9060 * continuations.c: Sort headers.
9061 * completer.h: Sort headers.
9062 * completer.c: Sort headers.
9063 * complaints.c: Sort headers.
9064 * coffread.c: Sort headers.
9065 * coff-pe-read.c: Sort headers.
9066 * cli-out.h: Sort headers.
9067 * cli-out.c: Sort headers.
9068 * charset.c: Sort headers.
9069 * c-varobj.c: Sort headers.
9070 * c-valprint.c: Sort headers.
9071 * c-typeprint.c: Sort headers.
9072 * c-lang.c: Sort headers.
9073 * buildsym.c: Sort headers.
9074 * buildsym-legacy.c: Sort headers.
9075 * build-id.h: Sort headers.
9076 * build-id.c: Sort headers.
9077 * btrace.c: Sort headers.
9078 * bsd-uthread.c: Sort headers.
9079 * breakpoint.h: Sort headers.
9080 * breakpoint.c: Sort headers.
9081 * break-catch-throw.c: Sort headers.
9082 * break-catch-syscall.c: Sort headers.
9083 * break-catch-sig.c: Sort headers.
9084 * blockframe.c: Sort headers.
9085 * block.c: Sort headers.
9086 * bfin-tdep.c: Sort headers.
9087 * bfin-linux-tdep.c: Sort headers.
9088 * bfd-target.c: Sort headers.
9089 * bcache.c: Sort headers.
9090 * ax-general.c: Sort headers.
9091 * ax-gdb.h: Sort headers.
9092 * ax-gdb.c: Sort headers.
9093 * avr-tdep.c: Sort headers.
9094 * auxv.c: Sort headers.
9095 * auto-load.c: Sort headers.
9096 * arm-wince-tdep.c: Sort headers.
9097 * arm-tdep.c: Sort headers.
9098 * arm-symbian-tdep.c: Sort headers.
9099 * arm-pikeos-tdep.c: Sort headers.
9100 * arm-obsd-tdep.c: Sort headers.
9101 * arm-nbsd-tdep.c: Sort headers.
9102 * arm-nbsd-nat.c: Sort headers.
9103 * arm-linux-tdep.c: Sort headers.
9104 * arm-linux-nat.c: Sort headers.
9105 * arm-fbsd-tdep.c: Sort headers.
9106 * arm-fbsd-nat.c: Sort headers.
9107 * arm-bsd-tdep.c: Sort headers.
9108 * arch-utils.c: Sort headers.
9109 * arc-tdep.c: Sort headers.
9110 * arc-newlib-tdep.c: Sort headers.
9111 * annotate.h: Sort headers.
9112 * annotate.c: Sort headers.
9113 * amd64-windows-tdep.c: Sort headers.
9114 * amd64-windows-nat.c: Sort headers.
9115 * amd64-tdep.c: Sort headers.
9116 * amd64-sol2-tdep.c: Sort headers.
9117 * amd64-obsd-tdep.c: Sort headers.
9118 * amd64-obsd-nat.c: Sort headers.
9119 * amd64-nbsd-tdep.c: Sort headers.
9120 * amd64-nbsd-nat.c: Sort headers.
9121 * amd64-nat.c: Sort headers.
9122 * amd64-linux-tdep.c: Sort headers.
9123 * amd64-linux-nat.c: Sort headers.
9124 * amd64-fbsd-tdep.c: Sort headers.
9125 * amd64-fbsd-nat.c: Sort headers.
9126 * amd64-dicos-tdep.c: Sort headers.
9127 * amd64-darwin-tdep.c: Sort headers.
9128 * amd64-bsd-nat.c: Sort headers.
9129 * alpha-tdep.c: Sort headers.
9130 * alpha-obsd-tdep.c: Sort headers.
9131 * alpha-nbsd-tdep.c: Sort headers.
9132 * alpha-mdebug-tdep.c: Sort headers.
9133 * alpha-linux-tdep.c: Sort headers.
9134 * alpha-linux-nat.c: Sort headers.
9135 * alpha-bsd-tdep.c: Sort headers.
9136 * alpha-bsd-nat.c: Sort headers.
9137 * aix-thread.c: Sort headers.
9138 * agent.c: Sort headers.
9139 * addrmap.c: Sort headers.
9140 * ada-varobj.c: Sort headers.
9141 * ada-valprint.c: Sort headers.
9142 * ada-typeprint.c: Sort headers.
9143 * ada-tasks.c: Sort headers.
9144 * ada-lang.c: Sort headers.
9145 * aarch64-tdep.c: Sort headers.
9146 * aarch64-ravenscar-thread.c: Sort headers.
9147 * aarch64-newlib-tdep.c: Sort headers.
9148 * aarch64-linux-tdep.c: Sort headers.
9149 * aarch64-linux-nat.c: Sort headers.
9150 * aarch64-fbsd-tdep.c: Sort headers.
9151 * aarch64-fbsd-nat.c: Sort headers.
9152 * aarch32-linux-nat.c: Sort headers.
9153
699bd4cf
TT
91542019-04-04 Tom Tromey <tom@tromey.com>
9155
9156 * varobj.c (varobj_create): Update.
9157 * rust-exp.y (struct rust_parser) <update_innermost_block,
9158 lookup_symbol>: New methods.
9159 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9160 Rename.
9161 (rust_parser::rust_lookup_type)
9162 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9163 * printcmd.c (display_command, do_one_display): Update.
9164 * parser-defs.h (struct parser_state) <parser_state>: Add
9165 "tracker" parameter.
9166 (block_tracker): New member.
9167 (class innermost_block_tracker) <innermost_block_tracker>: Add
9168 "types" parameter.
9169 <reset>: Remove method.
9170 (innermost_block): Don't declare.
9171 (null_post_parser): Update.
9172 * parse.c (innermost_block): Remove global.
9173 (write_dollar_variable): Update.
9174 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9175 Remove "tracker_types" parameter.
9176 (parse_expression): Add "tracker" parameter.
9177 (parse_expression_for_completion): Update.
9178 (null_post_parser): Add "tracker" parameter.
9179 * p-exp.y: Update rules.
9180 * m2-exp.y: Update rules.
9181 * language.h (struct language_defn) <la_post_parser>: Add
9182 "tracker" parameter.
9183 * go-exp.y: Update rules.
9184 * f-exp.y: Update rules.
9185 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9186 parameter.
9187 * d-exp.y: Update rules.
9188 * c-exp.y: Update rules.
9189 * breakpoint.c (set_breakpoint_condition): Create an
9190 innermost_block_tracker.
9191 (watch_command_1): Likewise.
9192 * ada-lang.c (resolve): Add "tracker" parameter.
9193 (resolve_subexp): Likewise.
9194 * ada-exp.y (write_var_from_sym): Update.
9195
dac43e32
TT
91962019-04-04 Tom Tromey <tom@tromey.com>
9197
9198 * type-stack.h: New file.
9199 * type-stack.c: New file.
9200 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9201 type-stack.h.
9202 (insert_into_type_stack, insert_type, push_type, push_type_int)
9203 (insert_type_address_space, pop_type, pop_type_int)
9204 (pop_typelist, pop_type_stack, append_type_stack)
9205 (push_type_stack, get_type_stack, push_typelist)
9206 (follow_type_instance_flags, follow_types): Don't declare.
9207 * parse.c (type_stack): Remove global.
9208 (parse_exp_in_context): Update.
9209 (insert_into_type_stack, insert_type, push_type, push_type_int)
9210 (insert_type_address_space, pop_type, pop_type_int)
9211 (pop_typelist, pop_type_stack, append_type_stack)
9212 (push_type_stack, get_type_stack, push_typelist)
9213 (follow_type_instance_flags, follow_types): Remove (moved to
9214 type-stack.c).
9215 * f-exp.y (type_stack): New global.
9216 Update rules.
9217 (push_kind_type, f_parse): Update.
9218 * d-exp.y (type_stack): New global.
9219 Update rules.
9220 (d_parse): Update.
9221 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9222 Update rules.
9223 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9224 (HFILES_NO_SRCDIR): Add type-stack.h.
9225
2a612529
TT
92262019-04-04 Tom Tromey <tom@tromey.com>
9227
9228 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9229 (rust_parser::convert_ast_to_expression, rust_parse)
9230 (rust_lex_test_completion, rust_lex_tests): Update.
9231 * parser-defs.h (struct expr_completion_state): New.
9232 (struct parser_state) <parser_state>: Add completion parameter.
9233 <mark_struct_expression, mark_completion_tag>: New methods.
9234 <parse_completion, m_completion_state>: New members.
9235 (prefixify_expression, null_post_parser): Update.
9236 (mark_struct_expression, mark_completion_tag): Don't declare.
9237 * parse.c (parse_completion, expout_last_struct)
9238 (expout_tag_completion_type, expout_completion_name): Remove
9239 globals.
9240 (parser_state::mark_struct_expression)
9241 (parser_state::mark_completion_tag): Now methods.
9242 (prefixify_expression): Add last_struct parameter.
9243 (prefixify_subexp): Likewise.
9244 (parse_exp_1): Update.
9245 (parse_exp_in_context): Add cstate parameter. Update.
9246 (parse_expression_for_completion): Create an
9247 expr_completion_state.
9248 (null_post_parser): Add "completion" parameter.
9249 * p-exp.y: Update rules.
9250 (yylex): Update.
9251 * language.h (struct language_defn) <la_post_parser>: Add
9252 "completing" parameter.
9253 * go-exp.y: Update rules.
9254 (lex_one_token): Update.
9255 * expression.h (parse_completion): Don't declare.
9256 * d-exp.y: Update rules.
9257 (lex_one_token): Update rules.
9258 * c-exp.y: Update rules.
9259 (lex_one_token): Update.
9260 * ada-lang.c (resolve): Add "parse_completion" parameter.
9261 (resolve_subexp): Likewise.
9262 (ada_resolve_function): Likewise.
9263
43476f0b
TT
92642019-04-04 Tom Tromey <tom@tromey.com>
9265
9266 * parser-defs.h (struct parser_state) <start_arglist,
9267 end_arglist>: New methods.
9268 <arglist_len, m_funcall_chain>: New members.
9269 (arglist_len, start_arglist, end_arglist): Don't declare.
9270 * parse.c (arglist_len, funcall_chain): Remove global.
9271 (start_arglist, end_arglist): Remove functions.
9272 (parse_exp_in_context): Update.
9273 * p-exp.y: Update rules.
9274 * m2-exp.y: Update rules.
9275 * go-exp.y: Update rules.
9276 * f-exp.y: Update rules.
9277 * d-exp.y: Update rules.
9278 * c-exp.y: Update rules.
9279
5776fca3
TT
92802019-04-04 Tom Tromey <tom@tromey.com>
9281
9282 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9283 lex_operator, push_back>: New methods.
9284 Update all rules.
9285 (rust_parser::lex_hex, lex_escape): Rename and update.
9286 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9287 (rust_parser::lex_operator): Rename and update.
9288 (rust_parser::lex_number, rustyylex, rustyyerror)
9289 (rust_lex_test_init, rust_lex_test_sequence)
9290 (rust_lex_test_push_back, rust_lex_tests): Update.
9291 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9292 parameter.
9293 <lexptr, prev_lexptr>: New members.
9294 (lexptr, prev_lexptr): Don't declare.
9295 * parse.c (lexptr, prev_lexptr): Remove globals.
9296 (parse_exp_in_context): Update.
9297 * p-exp.y (yylex, yyerror): Update.
9298 * m2-exp.y (parse_number, yylex, yyerror): Update.
9299 * go-exp.y (lex_one_token, yyerror): Update.
9300 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9301 * d-exp.y (lex_one_token, yyerror): Update.
9302 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9303 (lex_one_token, yyerror): Update.
9304 * ada-lex.l (YY_INPUT): Update.
9305 (rewind_to_char): Update.
9306 * ada-exp.y (yyerror): Update.
9307
8621b685
TT
93082019-04-04 Tom Tromey <tom@tromey.com>
9309
9310 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9311 * parser-defs.h (struct parser_state) <parser_state>: Add new
9312 parameter.
9313 <comma_terminates>: New member.
9314 (comma_terminates): Don't declare global.
9315 * parse.c (comma_terminates): Remove global.
9316 (parse_exp_in_context): Update.
9317 * p-exp.y (yylex): Update.
9318 * m2-exp.y (yylex): Update.
9319 * go-exp.y (lex_one_token): Update.
9320 * f-exp.y (yylex): Update.
9321 * d-exp.y (lex_one_token): Update.
9322 * c-exp.y (lex_one_token): Update.
9323 * ada-lex.l: Update.
9324
28aaf3fd
TT
93252019-04-04 Tom Tromey <tom@tromey.com>
9326
9327 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9328 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9329 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9330 * parser-defs.h (paren_depth): Don't declare.
9331 * parse.c (paren_depth): Remove global.
9332 (parse_exp_in_context): Update.
9333 * p-exp.y (paren_depth): New global.
9334 (pascal_parse): Initialize it.
9335 * m2-exp.y (paren_depth): New global.
9336 (m2_parse): Initialize it.
9337 * go-exp.y (paren_depth): New global.
9338 (go_parse): Initialize it.
9339 * f-exp.y (paren_depth): New global.
9340 (f_parse): Initialize it.
9341 * d-exp.y (paren_depth): New global.
9342 (d_parse): Initialize it.
9343 * c-exp.y (paren_depth): New global.
9344 (c_parse): Initialize it.
9345 * ada-lex.l (paren_depth): New global.
9346 (lexer_init): Initialize it.
9347
1e58a4a4
TT
93482019-04-04 Tom Tromey <tom@tromey.com>
9349
9350 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9351 (rust_parser::convert_ast_to_type)
9352 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9353 * parser-defs.h (struct parser_state) <parser_state>: Add
9354 parameters. Initialize new members.
9355 <expression_context_block, expression_context_pc>: New members.
9356 * parse.c (expression_context_block, expression_context_pc):
9357 Remove globals.
9358 (parse_exp_in_context): Update.
9359 * p-exp.y: Update all rules.
9360 (yylex): Update.
9361 * m2-exp.y: Update all rules.
9362 (yylex): Update.
9363 * go-exp.y (yylex): Update.
9364 * f-exp.y (yylex): Update.
9365 * d-exp.y: Update all rules.
9366 (yylex): Update.
9367 * c-exp.y: Update all rules.
9368 (lex_one_token, classify_name, yylex, c_parse): Update.
9369 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9370
37eedb39
TT
93712019-04-04 Tom Tromey <tom@tromey.com>
9372
9373 * gdbarch.h, gdbarch.c: Rebuild.
9374 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9375 * stap-probe.h:
9376 (struct stap_parse_info): Replace "parser_state" with
9377 "expr_builder".
9378 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9379 (parser_state): New class.
9380 * parse.c (expr_builder): Rename.
9381 (expr_builder::release): Rename.
9382 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9383 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9384 (write_exp_elt_longcst, write_exp_elt_floatcst)
9385 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9386 (write_exp_string_vector, write_exp_bitstring)
9387 (write_exp_msymbol, mark_struct_expression)
9388 (write_dollar_variable)
9389 (insert_type_address_space, increase_expout_size): Replace
9390 "parser_state" with "expr_builder".
9391 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9392 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9393 "parser_state" with "expr_builder".
9394
73923d7e
TT
93952019-04-04 Tom Tromey <tom@tromey.com>
9396
9397 * rust-exp.y: Replace "parse_language" with method call.
9398 * p-exp.y:
9399 (yylex): Replace "parse_language" with method call.
9400 * m2-exp.y:
9401 (yylex): Replace "parse_language" with method call.
9402 * go-exp.y (classify_name): Replace "parse_language" with method
9403 call.
9404 * f-exp.y (yylex): Replace "parse_language" with method call.
9405 * d-exp.y (lex_one_token): Replace "parse_language" with method
9406 call.
9407 * c-exp.y:
9408 (lex_one_token, classify_name, yylex): Replace "parse_language"
9409 with method call.
9410 * ada-exp.y (find_primitive_type, type_char)
9411 (type_system_address): Replace "parse_language" with method call.
9412
fa9f5be6
TT
94132019-04-04 Tom Tromey <tom@tromey.com>
9414
9415 * rust-exp.y: Replace "parse_gdbarch" with method call.
9416 * parse.c (write_dollar_variable, insert_type_address_space):
9417 Replace "parse_gdbarch" with method call.
9418 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9419 call.
9420 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9421 call.
9422 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9423 "parse_gdbarch" with method call.
9424 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9425 with method call.
9426 * f-exp.y (parse_type, parse_f_type, yylex): Replace
9427 "parse_gdbarch" with method call.
9428 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9429 "parse_gdbarch" with method call.
9430 * c-exp.y (parse_type, parse_number, classify_name): Replace
9431 "parse_gdbarch" with method call.
9432 * ada-lex.l: Replace "parse_gdbarch" with method call.
9433 * ada-exp.y (parse_type, find_primitive_type, type_char)
9434 (type_system_address): Replace "parse_gdbarch" with method call.
9435
1201a264
TT
94362019-04-04 Tom Tromey <tom@tromey.com>
9437
9438 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9439 * stap-probe.c (stap_parse_argument): Update.
9440 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9441 initial_size parameter.
9442 * rust-exp.y (rust_lex_tests): Update.
9443 * parse.c (parser_state): Update.
9444 (parse_exp_in_context): Update.
9445 * parser-defs.h (struct parser_state) <parser_state>: Remove
9446 "initial_size" parameter.
9447
e3980ce2
TT
94482019-04-04 Tom Tromey <tom@tromey.com>
9449
9450 * parser-defs.h (increase_expout_size): Don't declare.
9451 * parse.c (increase_expout_size): Now static.
9452
e9f8e3f1
TS
94532019-04-04 Thomas Schwinge <thomas@codesourcery.com>
9454
9455 * gnu-nat.c (gnu_nat_target::wait): Fix
9456 target_waitstatus_to_string call.
9457
d7df6549
AB
94582019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9459
9460 * eval.c (evaluate_subexp_standard): Handle internal functions
9461 during Fortran function call handling.
9462
8bdc1658
AB
94632019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9464
9465 * NEWS: Mention new internal functions.
9466 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9467 (read_base_type): Use dwarf2_init_complex_target_type.
9468 * value.c (creal_internal_fn): New function.
9469 (cimag_internal_fn): New function.
9470 (_initialize_values): Register new internal functions.
9471
c29705b7
PW
94722019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9473
9474 * infrun.c (stop_all_threads): If debug_infrun, always
9475 trace the wait status after wait_one, using
9476 target_waitstatus_to_string and target_pid_to_str.
9477 (handle_inferior_event): Replace various trace of
9478 wait status kind by a single trace.
9479 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9480 wait status kind image by target_waitstatus_to_string.
9481 * target/waitstatus.c (target_waitstatus_to_string): Fix
9482 obsolete comment.
9483
05caa1d2
TT
94842019-04-01 Tom Tromey <tromey@adacore.com>
9485
9486 PR symtab/23331:
9487 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9488
9d1447e0
SDJ
94892019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9490 Pedro Alves <palves@redhat.com>
9491
9492 * top.c (quit_force): Call 'finalize_values'.
9493 * value.c (finalize_values): New function.
9494 * value.h (finalize_values): Declare.
9495
7734102d
EZ
94962019-03-30 Eli Zaretskii <eliz@gnu.org>
9497
9498 * NEWS: Announce $_gdb_major and $_gdb_minor.
9499
9500 * top.c (init_gdb_version_vars): New function.
9501 (gdb_init): Call init_gdb_version_vars.
9502
188e1fa9
TT
95032019-03-29 Tom Tromey <tromey@adacore.com>
9504
9505 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9506 help text. Remove dead code.
9507
2880242d
KS
95082019-03-29 Keith Seitz <keiths@redhat.com>
9509
9510 From Siddhesh Poyarekar:
9511 * f-lang.h (f77_get_upperbound): Return LONGEST.
9512 (f77_get_lowerbound): Likewise.
9513 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9514 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9515 print them.
9516 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9517 plongest to format print it.
9518 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9519 (f77_get_upperbound): Likewise.
9520 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9521 LOWER_BOUND to LONGEST.
9522 (f77_create_arrayprint_offset_tbl): Likewise.
9523
cc1defb1
KS
95242019-03-29 Keith Seitz <keiths@redhat.com>
9525
9526 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9527 %s/pulongest for TYPE_LENGTH instead of %d in format
9528 strings.
9529 * ada-typerint.c (ada_print_type): Likewise.
9530 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9531 * compile/compile-c-support.c (generate_register_struct): Likewise.
9532 * gdbtypes.c (recursive_dump_type): Likewise.
9533 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9534 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9535 instead of %d in format strings.
9536 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9537 to std::min to ULONGEST.
9538 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9539 instead of %d in format strings.
9540 * tracepoint.c (info_scope_command): Likewise.
9541 * typeprint.c (print_offset_data::update)
9542 (print_offset_data::finish): Likewise.
9543 * xtensa-tdep.c (xtensa_store_return_value)
9544 (xtensa_push_dummy_call): Likewise.
9545
e432ccf1
JT
95462019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9547
9548 * windows-nat.c (display_selector): Fixed format specifications
9549 for 64-bit Cygwin.
9550
65d2b333
PW
95512019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9552
9553 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9554
f489207e
SL
95552019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9556
9557 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9558 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9559 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9560 (nios2_linux_init_abi): Install it.
9561
bffa1015
AH
95622019-03-28 Alan Hayward <alan.hayward@arm.com>
9563
9564 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9565
fc96163a
AH
95662019-03-28 Alan Hayward <alan.hayward@arm.com>
9567
9568 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9569
20dc7e9b
PW
95702019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9571 Tom Tromey <tromey@adacore.com>
9572
9573 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9574
7f5331a8
JB
95752019-03-26 Joel Brobecker <brobecker@adacore.com>
9576
9577 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9578 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9579 method to compute the bounds of range types. Also print "[evaluated]"
9580 if the bounds' values come from a dynamic evaluation.
9581
18c77628
AB
95822019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9583
9584 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9585 whitespace when pretty printing is on.
9586
53c973f2
AH
95872019-03-26 Alan Hayward <alan.hayward@arm.com>
9588
e79be6e5 9589 * ppc-linux-nat.c: Add include.
53c973f2 9590
d851aa71
AH
95912019-03-26 Alan Hayward <alan.hayward@arm.com>
9592
e79be6e5 9593 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 9594
2fe7bab7
AH
95952019-03-26 Alan Hayward <alan.hayward@arm.com>
9596
e79be6e5 9597 * arm-linux-nat.c: Add include.
2fe7bab7 9598
068ef30e
SM
95992019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9600
9601 * source-cache.c (source_cache::get_source_lines): Re-read
9602 fullname after calling open_source_file.
9603
81a24d04
JB
96042019-03-25 John Baldwin <jhb@FreeBSD.org>
9605
9606 * NEWS: Mention TLS support for FreeBSD.
9607
79e7ae11
TT
96082019-03-25 Tom Tromey <tromey@adacore.com>
9609
9610 * minsyms.c (BUNCH_SIZE): Update comment.
9611 (~minimal_symbol_reader): Remove old comment.
9612 (compact_minimal_symbols): Update comment.
9613 (minimal_symbol_reader::install): Remove old comment. Update
9614 other comments.
9615
d45963c2
AH
96162019-03-25 Alan Hayward <alan.hayward@arm.com>
9617
9618 * s390-linux-nat.c: Add include.
9619
0f83012e
AH
96202019-03-25 Alan Hayward <alan.hayward@arm.com>
9621
9622 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9623 Call linux_get_hwcap.
9624 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9625 Likewise.
9626 (aarch64_linux_get_hwcap): Remove function.
9627 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9628 declaration.
9629 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9630 linux_get_hwcap.
9631 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9632 * linux-tdep.c (linux_get_hwcap): Add function.
9633 (linux_get_hwcap2): Likewise.
9634 * linux-tdep.h (linux_get_hwcap): Add declaration.
9635 (linux_get_hwcap2): Likewise.
9636 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9637 (ppc_linux_get_hwcap2): Likewise.
9638 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9639 linux_get_hwcap.
9640 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9641 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9642 (ppc_linux_nat_target::read_description): Likewise.
9643 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9644 * s390-linux-nat.c: Likewise.
9645 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9646
6640a367
TT
96472019-03-24 Tom Tromey <tom@tromey.com>
9648
9649 * ada-lang.c (standard_lookup): Simplify initialization.
9650 (ada_lookup_symbol_nonlocal): Simplify return.
9651 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9652 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9653 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9654 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9655 initialization.
9656 * solib.c (solib_global_lookup): Simplify.
9657 * symtab.c (null_block_symbol): Remove.
9658 (symbol_cache_lookup): Simplify returns.
9659 (lookup_language_this): Simplify returns.
9660 (lookup_symbol_aux): Simplify return.
9661 (lookup_local_symbol): Simplify returns.
9662 (lookup_global_symbol_from_objfile): Simplify return.
9663 (lookup_symbol_in_objfile_symtabs)
9664 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9665 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9666 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9667 * cp-namespace.c (cp_lookup_bare_symbol)
9668 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9669 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9670 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9671 (cp_lookup_symbol_via_imports): Simplify initialization.
9672 (find_symbol_in_baseclass): Likewise.
9673 * symtab.h (null_block_symbol): Remove.
9674 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9675 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9676 (d_lookup_symbol_module): Likewise.
9677 (find_symbol_in_baseclass): Simplify initialization.
9678
a930ebcd
TT
96792019-03-24 Tom Tromey <tom@tromey.com>
9680
9681 * expression.h: Don't include symtab.h.
9682 (struct block): Forward declare.
9683
582942f4
TT
96842019-03-24 Tom Tromey <tom@tromey.com>
9685
9686 * c-exp.y (typebase): Remove casts.
9687 * gdbtypes.c (lookup_unsigned_typename, )
9688 (lookup_signed_typename): Remove cast.
9689 * eval.c (parse_to_comma_and_eval): Remove cast.
9690 * parse.c (write_dollar_variable): Remove cast.
9691 * block.h (struct block) <superblock>: Now const.
9692 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9693 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9694 (map_block): Make "block" const.
9695 * symfile.h (struct quick_symbol_functions)
9696 <map_matching_symbols>: Constify block argument to "callback".
9697 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9698 const.
9699 (find_pc_sect_compunit_symtab): Make "b" const.
9700 (find_symbol_at_address): Likewise.
9701 (search_symbols): Likewise.
9702 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9703 (dw2_debug_names_lookup_symbol): Likewise.
9704 (dw2_map_matching_symbols): Update.
9705 * p-valprint.c (pascal_val_print): Remove "block".
9706 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9707 (aux_add_nonlocal_symbols): Make "block" const.
9708 (resolve_subexp): Remove cast.
9709 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9710 const.
9711 (iterate_over_file_blocks): Likewise.
9712 * f-exp.y (%union) <bval>: Remove.
9713 * coffread.c (patch_opaque_types): Make "b" const.
9714 * spu-tdep.c (spu_catch_start): Make "block" const.
9715 * c-valprint.c (print_unpacked_pointer): Remove "block".
9716 * symmisc.c (dump_symtab_1): Make "b" const.
9717 (block_depth): Make "block" const.
9718 * d-exp.y (%union) <bval>: Remove.
9719 * cp-support.h (cp_lookup_rtti_type): Update.
9720 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9721 * psymtab.c (psym_lookup_symbol): Make "block" const.
9722 (maintenance_check_psymtabs): Make "b" const.
9723 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9724 (enumerate_locals, enumerate_args): Update.
9725 * python/py-symtab.c (stpy_global_block): Make "block" const.
9726 (stpy_static_block): Likewise.
9727 * inline-frame.c (block_starting_point_at): Make "new_block"
9728 const.
9729 * block.c (find_block_in_blockvector): Make return type const.
9730 (blockvector_for_pc_sect): Make "b" const.
9731 (find_block_in_blockvector): Make "b" const.
9732
7ad417dd
TT
97332019-03-23 Tom Tromey <tom@tromey.com>
9734
9735 * varobj.c (varobj_create): Update.
9736 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9737 * printcmd.c (display_command, do_one_display): Don't reset
9738 innermost_block.
9739 * parser-defs.h (enum innermost_block_tracker_type): Move to
9740 expression.h.
9741 (innermost_block): Update comment.
9742 * parse.c (parse_exp_1): Add tracker_types parameter.
9743 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9744 tracker_types parameter. Reset innermost_block.
9745 (parse_exp_in_context): Remove.
9746 (parse_expression_for_completion): Update.
9747 * objfiles.c (~objfile): Don't reset expression_context_block or
9748 innermost_block.
9749 * expression.h (enum innermost_block_tracker_type): Move from
9750 parser-defs.h.
9751 (parse_exp_1): Add tracker_types parameter.
9752 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9753 reset innermost_block.
9754
b366c208
TT
97552019-03-23 Tom Tromey <tom@tromey.com>
9756
9757 * objfiles.h: Include bcache.h.
9758
9bb9b2f9
TT
97592019-03-23 Tom Tromey <tom@tromey.com>
9760
9761 * linespec.c (get_current_search_block): Use
9762 scoped_restore_current_language.
9763 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9764
59c28372
AH
97652019-03-22 Alan Hayward <alan.hayward@arm.com>
9766 Jiong Wang <jiong.wang@arm.com>
9767
9768 * aarch64-linux-tdep.c
9769 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9770 section.
9771 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9772
17e116a7
AH
97732019-03-22 Alan Hayward <alan.hayward@arm.com>
9774 Jiong Wang <jiong.wang@arm.com>
9775
9776 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9777 instructions.
9778 (aarch64_analyze_prologue_test): Add PACIASP test.
9779 (aarch64_prologue_prev_register): Unmask PC value.
9780
11e1b75f
AH
97812019-03-22 Alan Hayward <alan.hayward@arm.com>
9782 Jiong Wang <jiong.wang@arm.com>
9783
9784 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9785 (aarch64_dwarf2_prev_register): Unmask PC value.
9786 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9787 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9788 DW_CFA_AARCH64_negate_ra_state.
9789 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9790
34dcc7cf
AH
97912019-03-22 Alan Hayward <alan.hayward@arm.com>
9792 Jiong Wang <jiong.wang@arm.com>
9793
9794 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9795 registers.
9796 (aarch64_pseudo_register_name): Likewise.
9797 (aarch64_pseudo_register_type): Likewise.
9798 (aarch64_pseudo_register_reggroup_p): Likewise.
9799 (aarch64_gdbarch_init): Add pauth registers.
9800 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9801 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9802 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9803 (struct gdbarch_tdep): Add regnum for ra_state.
9804
1ef53e6b
AH
98052019-03-22 Alan Hayward <alan.hayward@arm.com>
9806 Jiong Wang <jiong.wang@arm.com>
9807
9808 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9809
76bed0fd
AH
98102019-03-22 Alan Hayward <alan.hayward@arm.com>
9811 Jiong Wang <jiong.wang@arm.com>
9812
9813 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9814 function.
9815 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9816 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9817 (aarch64_gdbarch_init): Add puth registers.
9818 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9819 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9820 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9821
ee4fbcfa
AH
98222019-03-22 Alan Hayward <alan.hayward@arm.com>
9823 Jiong Wang <jiong.wang@arm.com>
9824
9825 * aarch64-linux-nat.c
9826 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9827 * aarch64-linux-tdep.c
9828 (aarch64_linux_core_read_description): Likewise.
9829 (aarch64_linux_get_hwcap): New function.
9830 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9831 (aarch64_linux_get_hwcap): New declaration.
9832
6dc0ebde
AH
98332019-03-22 Alan Hayward <alan.hayward@arm.com>
9834 Jiong Wang <jiong.wang@arm.com>
9835
9836 * aarch64-linux-nat.c
9837 (aarch64_linux_nat_target::read_description): Add pauth param.
9838 * aarch64-linux-tdep.c
9839 (aarch64_linux_core_read_description): Likewise.
9840 * aarch64-tdep.c (struct target_desc): Add in pauth.
9841 (aarch64_read_description): Add pauth param.
9842 (aarch64_gdbarch_init): Likewise.
9843 * aarch64-tdep.h (aarch64_read_description): Likewise.
9844 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9845 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9846 * features/Makefile: Add new files.
9847 * features/aarch64-pauth.c: New file.
9848 * features/aarch64-pauth.xml: New file.
9849
595915c1
TT
98502019-03-20 Tom Tromey <tromey@adacore.com>
9851
9852 * infrun.c (handle_inferior_event): Rename from
9853 handle_inferior_event_1. Create a scoped_value_mark.
9854 (handle_inferior_event): Remove.
9855
4c7d57e7
TT
98562019-03-19 Tom Tromey <tromey@adacore.com>
9857
9858 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9859 * infrun.h (print_stop_event): Add "displays" parameter.
9860 * infrun.c (print_stop_event): Add "displays" parameter.
9861
cb246234
PA
98622019-03-19 Pedro Alves <palves@redhat.com>
9863
9864 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9865 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9866 to -1. Fix TABs vs spaces.
9867 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9868 * tui/tui-out.h (tui_ui_out) Add intro comments.
9869 <m_line, m_start_of_line>: In-class initialize, and add describing
9870 comment.
9871
3a0e45b2
AH
98722019-03-18 Alan Hayward <alan.hayward@arm.com>
9873
9874 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9875 variable names.
9876 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9877
5371b850
PA
98782019-03-18 Pedro Alves <palves@redhat.com>
9879 Eli Zaretskii <eliz@gnu.org>
9880
9881 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9882 m_line and m_start_of_line.
9883
b17c4cd0
EZ
98842019-03-18 Eli Zaretskii <eliz@gnu.org>
9885
9886 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9887 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9888 it returns a newline. This fixes a regression in TU mode, whereby
9889 the next line is output on the same screen line as the user input.
9890
4bd56d18
TT
98912019-03-18 Tom Tromey <tromey@adacore.com>
9892
9893 * minsyms.c (minimal_symbol_reader::install): Remove call to
9894 obstack_blank.
9895
55c10aca
PA
98962019-03-18 Pedro Alves <palves@redhat.com>
9897
9898 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9899 New globals.
9900 (apply_style): New, factored out from ...
9901 (apply_ansi_escape): ... this. Handle reverse video mode.
9902 (tui_set_reverse_mode): New function.
9903 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9904 * tui/tui-winsource.c (tui_show_source_line): Use
9905 tui_set_reverse_mode instead of setting A_STANDOUT.
9906 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9907 New setter methods.
9908
647bb750
HD
99092019-03-18 Hannes Domani <ssbssa@yahoo.de>
9910
9911 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9912 Handle tabs.
9913
bff8c71f
TT
99142019-03-18 Tom Tromey <tromey@adacore.com>
9915
9916 * ada-lang.c (empty_array): Add "high" parameter.
9917 (ada_evaluate_subexp): Update.
9918
58785d98
ST
99192019-03-17 Sergei Trofimovich <siarheit@google.com>
9920
9921 * unittests/string_view-selftests.c: Define
9922 _initialize_string_view_selftests unconditionally.
9923
d4cbef22
ВМ
99242019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9925
9926 PR gdb/24350
9927 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9928
fce4c071
ВМ
99292019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9930
9931 PR gdb/24351
9932 * windows-nat.c (display_selector): Fix format specifiers.
9933
f7f0a123
EZ
99342019-03-17 Eli Zaretskii <eliz@gnu.org>
9935
9936 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9937 tui_refill_source_window instead of tui_refresh_win, to update the
9938 current execution line. This fixes redisplay of the current line
9939 when stepping through the code with "next" or "step".
9940
ab42892f
EZ
99412019-03-16 Eli Zaretskii <eliz@gnu.org>
9942
9943 * source-cache.c (source_cache::get_source_lines): Call
9944 find_source_lines to initialize s->nlines. This fixes vertical
9945 scrolling of TUI source window when the DOWN arrow is pressed.
9946
8d8c087f
PW
99472019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9948
9949 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9950 linux-thread-db.c (_initialize_thread_db): Likewise.
9951
798e1c30
EZ
99522019-03-16 Eli Zaretskii <eliz@gnu.org>
9953
9954 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9955 wclrtoeol in tui_show_source_line". This reverts changes made in
9956 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9957
eefba3da
TT
99582019-03-15 Tom Tromey <tom@tromey.com>
9959
9960 * symtab.h (struct minimal_symbol): Derive from
9961 general_symbol_info.
9962 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9963 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9964 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9965 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9966 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9967 (MSYMBOL_SEARCH_NAME): Update.
9968 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9969 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9970 * minsyms.c (minimal_symbol_reader::record_full): Update.
9971
0de2420c
TT
99722019-03-15 Tom Tromey <tom@tromey.com>
9973
9974 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9975
042d75e4
TT
99762019-03-15 Tom Tromey <tom@tromey.com>
9977
9978 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9979 unique_xmalloc_ptr.
9980 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9981 Update.
9982 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9983 (build_minimal_symbol_hash_tables)
9984 (minimal_symbol_reader::install): Update.
9985
db92718b
TT
99862019-03-15 Tom Tromey <tom@tromey.com>
9987
9988 * symtab.c (create_demangled_names_hash): Update.
9989 (symbol_set_names): Update.
9990 * objfiles.h (struct objfile_per_bfd_storage)
9991 <demangled_names_hash>: Now an htab_up.
9992 * objfiles.c (objfile_per_bfd_storage): Simplify.
9993
d6797f46
TT
99942019-03-15 Tom Tromey <tom@tromey.com>
9995
9996 * objfiles.h (struct objfile_per_bfd_storage): Declare
9997 destructor.
9998 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9999 New.
10000 (get_objfile_bfd_data): Use new. Don't initialize
10001 language_of_main.
10002 (free_objfile_per_bfd_storage): Remove.
10003 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10004
741d7538
TT
100052019-03-15 Tom Tromey <tom@tromey.com>
10006
10007 * symfile.c (reread_symbols): Update.
10008 * objfiles.c (objfile::objfile): Update.
10009 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10010 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10011 comment.
10012 (minimal_symbol_reader::install): Update.
10013 (terminate_minimal_symbol_table): Remove.
10014 * jit.c (jit_object_close_impl): Update.
10015
788c80d1
TT
100162019-03-15 Tom Tromey <tom@tromey.com>
10017
10018 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10019 initializations.
10020
1b7a07cb
TT
100212019-03-15 Tom Tromey <tom@tromey.com>
10022
10023 * objfiles.h (struct objfile_per_bfd_storage)
10024 <demangled_hash_languages>: Now a bitset.
10025 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10026 (lookup_minimal_symbol): Update.
10027
3db066bc
TT
100282019-03-15 Tom Tromey <tom@tromey.com>
10029
10030 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10031 Don't return the symbol.
10032 * coffread.c (record_minimal_symbol): Use record_full.
10033
3fff2c37
EZ
100342019-03-14 Eli Zaretskii <eliz@gnu.org>
10035
10036 The MS-Windows port of ncurses fails to switch to a color pair if
10037 one or both of the colors are the implicit default colors. This
10038 change records the default colors when TUI is initialized, and
10039 then specifies them explicitly when a color pair uses the default
10040 colors. This allows color styling in TUI mode on MS-Windows.
10041
10042 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10043 ncurses_norm_attr.
10044 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10045 colors in ncurses_norm_attr.
10046 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10047 "none", replace it with the default color recorded in
10048 ncurses_norm_attr.
10049
3b336828
TT
100502019-03-14 Tom Tromey <tromey@adacore.com>
10051
10052 * source-cache.h (class source_cache) <get_source_lines>: Return
10053 std::string.
10054 * source-cache.c (source_cache::extract_lines): Handle case where
10055 first_pos==npos. Return std::string.
10056 (source_cache::get_source_lines): Update.
10057
d085f989
TT
100582019-03-14 Tom Tromey <tromey@adacore.com>
10059
10060 * NEWS: Add item for "style sources" commands.
10061 * source-cache.c (source_cache::get_source_lines): Check
10062 source_styling.
10063 * cli/cli-style.c (source_styling): New global.
10064 (_initialize_cli_style): Add "style sources" commands.
10065 (show_style_sources): New function.
10066 * cli/cli-style.h (source_styling): Declare.
10067
6f11e682
TT
100682019-03-14 Pedro Alves <palves@redhat.com>
10069 Tom Tromey <tromey@adacore.com>
10070
10071 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10072 * tui/tui-winsource.c (tui_refill_source_window): New function,
10073 from...
10074 (tui_horizontal_source_scroll): ... here. Move some logic.
10075 * cli/cli-style.c (set_style_enabled): Notify new observable.
10076 * tui/tui-hooks.c (tui_redisplay_source): New function.
10077 (tui_attach_detach_observers): Attach or detach
10078 tui_redisplay_source.
10079 * observable.h (source_styling_changed): New observable.
10080 * observable.c: Define source_styling_changed observable.
10081
a068643d
TT
100822019-03-13 Tom Tromey <tromey@adacore.com>
10083
10084 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10085 (i386_gnu_nat_target::store_registers): Update.
10086 * target-debug.h (target_debug_print_std_string): New macro.
10087 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10088 * windows-tdep.c (display_one_tib): Update.
10089 * tui/tui-stack.c (tui_make_status_line): Update.
10090 * top.c (print_inferior_quit_action): Update.
10091 * thread.c (thr_try_catch_cmd): Update.
10092 (add_thread_with_info): Update.
10093 (thread_target_id_str): Update.
10094 (thr_try_catch_cmd): Update.
10095 (thread_command): Update.
10096 (thread_find_command): Update.
10097 * record-btrace.c (record_btrace_target::info_record)
10098 (record_btrace_resume_thread, record_btrace_target::resume)
10099 (record_btrace_cancel_resume, record_btrace_step_thread)
10100 (record_btrace_target::wait, record_btrace_target::wait)
10101 (record_btrace_target::wait, record_btrace_target::stop): Update.
10102 * progspace.c (print_program_space): Update.
10103 * process-stratum-target.c
10104 (process_stratum_target::thread_address_space): Update.
10105 * linux-fork.c (linux_fork_mourn_inferior)
10106 (detach_checkpoint_command, info_checkpoints_command)
10107 (linux_fork_context): Update.
10108 (linux_fork_detach): Update.
10109 (class scoped_switch_fork_info): Update.
10110 (delete_checkpoint_command): Update.
10111 * infrun.c (follow_fork_inferior): Update.
10112 (follow_fork_inferior): Update.
10113 (proceed_after_vfork_done): Update.
10114 (handle_vfork_child_exec_or_exit): Update.
10115 (follow_exec): Update.
10116 (displaced_step_prepare_throw): Update.
10117 (displaced_step_restore): Update.
10118 (start_step_over): Update.
10119 (resume_1): Update.
10120 (clear_proceed_status_thread): Update.
10121 (proceed): Update.
10122 (print_target_wait_results): Update.
10123 (do_target_wait): Update.
10124 (context_switch): Update.
10125 (stop_all_threads): Update.
10126 (restart_threads): Update.
10127 (finish_step_over): Update.
10128 (handle_signal_stop): Update.
10129 (switch_back_to_stepped_thread): Update.
10130 (keep_going_pass_signal): Update.
10131 (print_exited_reason): Update.
10132 (normal_stop): Update.
10133 * inferior.c (inferior_pid_to_str): Change return type.
10134 (print_selected_inferior): Update.
10135 (add_inferior): Update.
10136 (detach_inferior): Update.
10137 * dummy-frame.c (fprint_dummy_frames): Update.
10138 * dcache.c (dcache_info_1): Update.
10139 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10140 (btrace_fetch, btrace_clear): Update.
10141 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10142 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10143 type.
10144 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10145 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10146 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10147 * gdbarch.c, gdbarch.h: Rebuild.
10148 * gdbarch.sh (core_pid_to_str): Change return type.
10149 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10150 return type.
10151 (windows_nat_target::pid_to_str): Change return type.
10152 (windows_delete_thread): Update.
10153 (windows_nat_target::attach): Update.
10154 (windows_nat_target::files_info): Update.
10155 * target-delegates.c: Rebuild.
10156 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10157 return type.
10158 (sol_thread_target::pid_to_str): Change return type.
10159 * remote.c (class remote_target) <pid_to_str>: Change return
10160 type.
10161 (remote_target::pid_to_str): Change return type.
10162 (extended_remote_target::attach, remote_target::remote_stop_ns)
10163 (remote_target::remote_notif_remove_queued_reply)
10164 (remote_target::push_stop_reply, remote_target::disable_btrace):
10165 Update.
10166 (extended_remote_target::attach): Update.
10167 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10168 type.
10169 (gdbsim_target::pid_to_str): Change return type.
10170 * ravenscar-thread.c (struct ravenscar_thread_target)
10171 <pid_to_str>: Change return type.
10172 (ravenscar_thread_target::pid_to_str): Change return type.
10173 * procfs.c (class procfs_target) <pid_to_str>: Change return
10174 type.
10175 (procfs_target::pid_to_str): Change return type.
10176 (procfs_target::attach): Update.
10177 (procfs_target::detach): Update.
10178 (procfs_target::fetch_registers): Update.
10179 (procfs_target::store_registers): Update.
10180 (procfs_target::wait): Update.
10181 (procfs_target::files_info): Update.
10182 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10183 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10184 return type.
10185 (nto_procfs_target::pid_to_str): Change return type.
10186 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10187 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10188 return type.
10189 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10190 (exit_lwp): Update.
10191 (attach_proc_task_lwp_callback, get_detach_signal)
10192 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10193 (linux_nat_target::resume, wait_lwp, stop_callback)
10194 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10195 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10196 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10197 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10198 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10199 type.
10200 (inf_ptrace_target::attach): Update.
10201 (inf_ptrace_target::files_info): Update.
10202 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10203 type.
10204 (go32_nat_target::pid_to_str): Change return type.
10205 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10206 (gnu_nat_target::wait): Update.
10207 (gnu_nat_target::wait): Update.
10208 (gnu_nat_target::resume): Update.
10209 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10210 (fbsd_nat_target::wait): Update.
10211 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10212 type.
10213 (darwin_nat_target::attach): Update.
10214 * corelow.c (class core_target) <pid_to_str>: Change return type.
10215 (core_target::pid_to_str): Change return type.
10216 * target.c (normal_pid_to_str): Change return type.
10217 (default_pid_to_str): Likewise.
10218 (target_pid_to_str): Change return type.
10219 (target_translate_tls_address): Update.
10220 (target_announce_detach): Update.
10221 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10222 return type.
10223 (bsd_uthread_target::pid_to_str): Change return type.
10224 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10225 type.
10226 (bsd_kvm_target::pid_to_str): Change return type.
10227 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10228 return type.
10229 (aix_thread_target::pid_to_str): Change return type.
10230 * target.h (struct target_ops) <pid_to_str>: Change return type.
10231 (target_pid_to_str, normal_pid_to_str): Likewise.
10232 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10233 type.
10234 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10235 type.
10236 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10237 return type.
10238 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10239 type.
10240 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10241 type.
10242 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10243 return type.
10244
b4be1b06
SM
102452019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10246
10247 * NEWS: Mention that the new default MI version is 3. Mention
10248 changes to the output of commands and events that deal with
10249 multi-location breakpoints.
10250 * breakpoint.c: Include "mi/mi-out.h".
10251 (print_one_breakpoint): Change output syntax if using MI version
10252 >= 3.
10253 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10254 New.
10255 (mi_multi_location_breakpoint_output_fixed): New.
10256 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10257 (mi_cmd_fix_multi_location_breakpoint_output): New.
10258 (mi_multi_location_breakpoint_output_fixed): New.
10259 * mi/mi-cmds.c (mi_cmds): Register command
10260 -fix-multi-location-breakpoint-output.
10261 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10262 interpreter "mi".
10263
8e5e5494
SM
102642019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10265
10266 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10267 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10268 instantiate mi_ui_out based on interpreter name.
10269 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10270 * mi/mi-main.c (mi_load_progress): Likewise.
10271
197df35e
JB
102722019-03-12 John Baldwin <jhb@FreeBSD.org>
10273
10274 * NEWS: Combine separate "New targets" sections for 8.3.
10275
8399425f
JB
102762019-03-12 John Baldwin <jhb@FreeBSD.org>
10277
10278 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10279 (ppcfbsd_init_abi): Install gdbarch
10280 "fetch_tls_load_module_address" and "get_thread_local_address"
10281 methods.
10282
b0f87ed0
JB
102832019-03-12 John Baldwin <jhb@FreeBSD.org>
10284
10285 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10286 (riscv_fbsd_init_abi): Install gdbarch
10287 "fetch_tls_load_module_address" and "get_thread_local_address"
10288 methods.
10289
ce25aa57
JB
102902019-03-12 John Baldwin <jhb@FreeBSD.org>
10291
10292 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10293 (i386fbsd_init_abi): Install gdbarch
10294 "fetch_tls_load_module_address" and "get_thread_local_address"
10295 methods.
10296
f5424cfa
JB
102972019-03-12 John Baldwin <jhb@FreeBSD.org>
10298
10299 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10300 (amd64fbsd_init_abi): Install gdbarch
10301 "fetch_tls_load_module_address" and "get_thread_local_address"
10302 methods.
10303
945f3901
JB
103042019-03-12 John Baldwin <jhb@FreeBSD.org>
10305
10306 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10307 (struct fbsd_pspace_data): New type.
10308 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10309 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10310 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10311 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10312 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10313
ef0bd204
JB
103142019-03-12 John Baldwin <jhb@FreeBSD.org>
10315
10316 * gdbtypes.c (lookup_struct_elt): New function.
10317 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10318 * gdbtypes.h (struct struct_elt): New type.
10319 (lookup_struct_elt): New prototype.
10320
36c53a02
JB
103212019-03-12 John Baldwin <jhb@FreeBSD.org>
10322
10323 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10324 remove disabled code block.
10325
6e056c81
JB
103262019-03-12 John Baldwin <jhb@FreeBSD.org>
10327
10328 * gdbarch.sh (get_thread_local_address): New method.
10329 * gdbarch.h, gdbarch.c: Regenerate.
10330 * target.c (target_translate_tls_address): Use
10331 gdbarch_get_thread_local_address if present instead of
10332 target::get_thread_local_address.
10333
cd250a18
JB
103342019-03-12 John Baldwin <jhb@FreeBSD.org>
10335
10336 * target.h (target::get_thread_local_address): Update comment.
10337
df22c1e5
JB
103382019-03-12 John Baldwin <jhb@FreeBSD.org>
10339
10340 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10341 objfile->separate_debug_objfile_backlink if not NULL.
10342
dd6876c9
JB
103432019-03-12 John Baldwin <jhb@FreeBSD.org>
10344
10345 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10346 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10347 (amd64bsd_store_inferior_registers): Likewise.
10348 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10349 Enable segment base registers.
10350 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10351 PT_GETFSBASE and PT_GETGSBASE.
10352 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10353 PT_SETGSBASE.
10354 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10355 segment base registers.
10356 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10357
1163a4b7
JB
103582019-03-12 John Baldwin <jhb@FreeBSD.org>
10359
10360 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10361 Update calls to i386_target_description to add 'segments'
10362 parameter.
10363 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10364 add segment base registers.
10365 * arch/i386.c (i386_create_target_description): Add 'segments'
10366 parameter to enable segment base registers.
10367 * arch/i386.h (i386_create_target_description): Likewise.
10368 * features/i386/32bit-segments.xml: New file.
10369 * features/i386/32bit-segments.c: Generate.
10370 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10371 call to i386_target_description to add 'segments' parameter.
10372 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10373 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10374 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10375 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10376 if feature is present.
10377 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10378 Add 'segments' parameter to call to i386_target_description.
10379 (i386_target_description): Add 'segments' parameter to enable
10380 segment base registers.
10381 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10382 to call to i386_target_description.
10383 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10384 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10385 Define I386_NUM_REGS.
10386 (i386_target_description): Add 'segments' parameter to enable
10387 segment base registers.
10388
3a350822
EZ
103892019-03-12 Eli Zaretskii <eliz@gnu.org>
10390
10391 PR/24325
10392 * source-cache.c: #undef open and close, to avoid unresolved
10393 externals during linking.
10394
ffdd69cf
TT
103952019-03-12 Tom Tromey <tromey@adacore.com>
10396
10397 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10398 const. Add initializers.
10399 (_initialize_remote): Don't initialize ptid globals.
10400
ec148c57
PA
104012019-03-12 Pedro Alves <palves@redhat.com>
10402
10403 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10404
32764270
PA
104052019-03-12 Pedro Alves <palves@redhat.com>
10406
10407 * cp-name-parser.y (main): Remove unused 'len' variable.
10408
17547186
TT
104092019-03-12 Tom Tromey <tromey@adacore.com>
10410
10411 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10412 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10413
d3a70e03
TT
104142019-03-12 Tom Tromey <tromey@adacore.com>
10415
10416 * linux-nat.c (iterate_over_lwps): Update.
10417 (stop_callback): Remove parameter.
10418 (stop_wait_callback, detach_callback, resume_set_callback)
10419 (select_singlestep_lwp_callback, set_ignore_sigint)
10420 (status_callback, resumed_callback, resume_clear_callback)
10421 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10422 data parameter.
10423 (linux_nat_target::detach, linux_nat_target::resume)
10424 (linux_stop_and_wait_all_lwps, select_event_lwp)
10425 (linux_nat_filter_event, linux_nat_wait_1)
10426 (linux_nat_target::kill, linux_nat_target::stop)
10427 (linux_nat_target::stop): Update.
10428 (linux_nat_resume_callback): Change type.
10429 (resume_stopped_resumed_lwps, count_events_callback)
10430 (select_event_lwp_callback): Likewise.
10431 (linux_stop_lwp, linux_nat_stop_lwp): Update.
10432 * arm-linux-nat.c (struct update_registers_data): Remove.
10433 (update_registers_callback): Change type.
10434 (arm_linux_insert_hw_breakpoint1): Update.
10435 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10436 parameter.
10437 (x86_linux_dr_set_addr): Update.
10438 (x86_linux_dr_set_control): Update.
10439 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10440 (iterate_over_lwps): Use gdb::function_view.
10441 * nat/aarch64-linux-hw-point.c (struct
10442 aarch64_dr_update_callback_param): Remove.
10443 (debug_reg_change_callback): Change type.
10444 (aarch64_notify_debug_reg_change): Update.
10445 * s390-linux-nat.c (s390_refresh_per_info): Update.
10446
82cb27ff
TT
104472019-03-11 Tom Tromey <tromey@adacore.com>
10448
10449 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10450 redundant assignment to "this_cu".
10451
568c0683
SM
104522019-03-08 Simon Marchi <simon.marchi@efficios.com>
10453
10454 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10455
f09ce22d
SM
104562019-03-08 Simon Marchi <simon.marchi@efficios.com>
10457
10458 * gdbtypes.c (rank_one_type_parm_set): New function extracted
10459 from...
10460 (rank_one_type): ... this.
10461
595f96a9
SM
104622019-03-08 Simon Marchi <simon.marchi@efficios.com>
10463
10464 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10465 from...
10466 (rank_one_type): ... this.
10467
2598a94b
SM
104682019-03-08 Simon Marchi <simon.marchi@efficios.com>
10469
10470 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10471 from...
10472 (rank_one_type): ... this.
10473
7f17b20d
SM
104742019-03-08 Simon Marchi <simon.marchi@efficios.com>
10475
10476 * gdbtypes.c (rank_one_type_parm_float): New function extracted
10477 from...
10478 (rank_one_type): ... this.
10479
2c509035
SM
104802019-03-08 Simon Marchi <simon.marchi@efficios.com>
10481
10482 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10483 from...
10484 (rank_one_type): ... this.
10485
0dd322dc
SM
104862019-03-08 Simon Marchi <simon.marchi@efficios.com>
10487
10488 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10489 from...
10490 (rank_one_type): ... this.
10491
41ea4728
SM
104922019-03-08 Simon Marchi <simon.marchi@efficios.com>
10493
10494 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10495 from...
10496 (rank_one_type): ... this.
10497
793cd1d2
SM
104982019-03-08 Simon Marchi <simon.marchi@efficios.com>
10499
10500 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10501 from...
10502 (rank_one_type): ... this.
10503
34910087
SM
105042019-03-08 Simon Marchi <simon.marchi@efficios.com>
10505
10506 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10507 from...
10508 (rank_one_type): ... this.
10509
f1f832d6
SM
105102019-03-08 Simon Marchi <simon.marchi@efficios.com>
10511
10512 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10513 from...
10514 (rank_one_type): ... this.
10515
b9f4512f
SM
105162019-03-08 Simon Marchi <simon.marchi@efficios.com>
10517
10518 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10519 from...
10520 (rank_one_type): ... this.
10521
9293fc63
SM
105222019-03-08 Simon Marchi <simon.marchi@efficios.com>
10523
10524 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10525 from...
10526 (rank_one_type): ... this.
10527
e3abbe7e
PW
105282019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10529
10530 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10531 inferior-events' shows the example events.
10532
e4adb939
EZ
105332019-03-08 Eli Zaretskii <eliz@gnu.org>
10534
10535 Support styling on native MS-Windows console
10536
10537 PR/24315
10538 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10539 on MS-Windows if $TERM is not defined.
10540
10541 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10542
10543 * posix-hdep.c (gdb_console_fputs):
10544 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10545 functions.
10546 * ui-file.h (gdb_console_fputs): Add prototype.
10547
10548 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10549 back to fputs only if the former returns zero.
10550
25629dfd
TT
105512019-03-07 Tom Tromey <tom@tromey.com>
10552
10553 * symmisc.c (print_symbol_bcache_statistics): Update.
10554 (print_objfile_statistics): Update.
10555 * symfile.c (allocate_symtab): Update.
10556 * stabsread.c: Don't include bcache.h.
10557 * psymtab.h (struct psymbol_bcache): Don't declare.
10558 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10559 (psymbol_bcache_init, psymbol_bcache_free)
10560 (psymbol_bcache_get_bcache): Don't declare.
10561 * psymtab.c (struct psymbol_bcache): Remove.
10562 (psymtab_storage::psymtab_storage): Update.
10563 (psymtab_storage::~psymtab_storage): Update.
10564 (psymbol_bcache_init, psymbol_bcache_free)
10565 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10566 (add_psymbol_to_bcache): Update.
10567 (allocate_psymtab): Update.
10568 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10569 macro_cache>: No longer pointers.
10570 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10571 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10572 * macrotab.c (macro_bcache): Update.
10573 * macroexp.c: Don't include bcache.h.
10574 * gdbtypes.c (check_types_worklist): Update.
10575 (types_deeply_equal): Remove TRY/CATCH. Update.
10576 * elfread.c (elf_symtab_read): Update.
10577 * dwarf2read.c: Don't include bcache.h.
10578 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10579 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10580 (print_bcache_statistics, bcache_memory_used): Don't declare.
10581 (struct bcache): Move from bcache.c. Add constructor, destructor,
10582 methods. Rename all data members.
10583 * bcache.c (struct bcache): Move to bcache.h.
10584 (bcache::expand_hash_table): Rename from expand_hash_table.
10585 (bcache): Remove.
10586 (bcache::insert): Rename from bcache_full.
10587 (bcache::compare): Rename from bcache_compare.
10588 (bcache_xmalloc): Remove.
10589 (bcache::~bcache): Rename from bcache_xfree.
10590 (bcache::print_statistics): Rename from print_bcache_statistics.
10591 (bcache::memory_used): Rename from bcache_memory_used.
10592
fe726667
PA
105932019-03-07 Pedro Alves <palves@redhat.com>
10594
10595 * infrun.c (normal_stop): Also check for
10596 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10597
7584bb30
AB
105982019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10599
10600 * f-lang.c (value_from_host_double): Moved to...
10601 * value.c (value_from_host_double): ...here.
10602 * value.h (value_from_host_double): Declare.
10603 * guile/scm-math.c (vlscm_convert_typed_number): Use
10604 value_from_host_double.
10605 (vlscm_convert_number): Likewise.
10606 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10607 * python/py-value.c (convert_value_from_python): Likewise.
10608
a7b1986e
TT
106092019-03-06 Tom Tromey <tom@tromey.com>
10610
10611 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10612
0ccf4211
TT
106132019-03-06 Tom Tromey <tom@tromey.com>
10614
10615 * utils.h (free_current_contents): Don't declare.
10616 * utils.c (free_current_contents): Remove.
10617
fe7b42e5
TT
106182019-03-06 Tom Tromey <tom@tromey.com>
10619
10620 * top.c (quit_force): Update.
10621 * main.c (captured_command_loop): Update.
10622 * common/new-op.c (operator new): Update.
10623 * common/common-exceptions.c (struct catcher)
10624 <save_cleanup_chain>: Remove member.
10625 (exceptions_state_mc_init): Update.
10626 (exception_try_scope_entry): Return nullptr.
10627 (exception_try_scope_exit, exception_rethrow)
10628 (throw_exception_sjlj, throw_exception_cxx): Update.
10629 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10630 (all_cleanups, do_cleanups, discard_cleanups)
10631 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10632 (restore_cleanups, restore_final_cleanups): Don't declare.
10633 (do_final_cleanups): Remove parameter.
10634 * common/cleanups.c (cleanup_chain, make_cleanup)
10635 (make_cleanup_dtor, all_cleanups, do_cleanups)
10636 (discard_my_cleanups, discard_cleanups)
10637 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10638 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10639 (null_cleanup): Remove.
10640 (do_final_cleanups): Remove parameter.
10641
c6321f19
TT
106422019-03-06 Tom Tromey <tom@tromey.com>
10643
10644 * remote.c (remote_target::remote_parse_stop_reply): Use
10645 unique_xmalloc_ptr.
10646
61b30099
TT
106472019-03-06 Tom Tromey <tom@tromey.com>
10648
10649 * stabsread.c (struct stabs_field_info): Rename from field_info.
10650 <list, fnlist>: Add initializers.
10651 <obstack>: New member.
10652 (read_member_functions, read_struct_fields, read_baseclasses):
10653 Allocate on obstack. Don't use cleanups.
10654 (read_one_struct_field, read_member_functions, read_struct_fields)
10655 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10656 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10657 (read_struct_type): Update.
10658
6cceac94
TT
106592019-03-06 Tom Tromey <tom@tromey.com>
10660
10661 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10662 * common/filestuff.h (make_cleanup_close): Don't declare.
10663 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10664 Remove.
10665
72412762
TT
106662019-03-06 Tom Tromey <tom@tromey.com>
10667
10668 * solib-aix.c: Use make_scope_exit.
10669
2b6ff1c0
TT
106702019-03-06 Tom Tromey <tom@tromey.com>
10671
10672 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10673 Use make_scope_exit.
10674
d01c5877
TT
106752019-03-06 Tom Tromey <tom@tromey.com>
10676
10677 * solib-svr4.c (disable_probes_interface): Remove parameter.
10678 (svr4_handle_solib_event): Use make_scope_exit.
10679
32603266
TT
106802019-03-06 Tom Tromey <tom@tromey.com>
10681
10682 * remote.c (struct stop_reply_deleter): Remove.
10683 (stop_reply_up): Update.
10684 (struct stop_reply): Derive from notif_event. Don't typedef.
10685 <regcache>: Now a std::vector.
10686 (stop_reply_xfree): Remove.
10687 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10688 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10689 (remote_target::discard_pending_stop_replies): Use delete.
10690 (remote_target::remote_parse_stop_reply): Update.
10691 (remote_target::process_stop_reply): Update.
10692 * remote-notif.h (struct notif_event): Add virtual destructor.
10693 Remove "dtr" member.
10694 (struct notif_client) <alloc_event>: Return a unique_ptr.
10695 (notif_event_xfree): Don't declare.
10696 (notif_event_up): New typedef.
10697 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10698 (notif_event_xfree, do_notif_event_xfree): Remove.
10699 (remote_notif_state_xfree): Update.
10700
9799571e
TT
107012019-03-06 Tom Tromey <tom@tromey.com>
10702
10703 * infrun.c (displaced_step_clear_cleanup): Now a
10704 forward_scope_exit type.
10705 (displaced_step_prepare_throw): Update.
10706 (displaced_step_fixup): Update.
10707
09e3c4ca
TT
107082019-03-06 Tom Tromey <tom@tromey.com>
10709
10710 * inferior.h (class inferior): Update comment.
10711 * gdbthread.h (class thread_info): Update comment.
10712
e2a03548
TT
107132019-03-06 Joel Brobecker <brobecker@adacore.com>
10714 Tom Tromey <tom@tromey.com>
10715
10716 * stabsread.h (struct stab_section_list): Remove.
10717 (coffstab_build_psymtabs): Update.
10718 * dbxread.c (symbuf_sections): Now a std::vector.
10719 (sect_idx): New global.
10720 (fill_symbuf): Update.
10721 (coffstab_build_psymtabs): Change type of stabsects parameter.
10722 Update.
10723 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10724 std::vector.
10725 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10726 (coff_locate_sections): Update.
10727 (coff_symfile_read): Remove cleanups. Update.
10728 (init_stringtab): Add storage parameter.
10729 (free_stringtab, free_stringtab_cleanup): Remove.
10730 (init_lineno): Add storage parameter.
10731 (free_linetab, free_linetab_cleanup): Remove.
10732
b7e60d85
PA
107332019-03-06 Pedro Alves <palves@redhat.com>
10734
10735 * linux-fork.c (fork_info::clobber_regs): Delete.
10736 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10737 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10738 comment. Adjust.
10739 (scoped_switch_fork_info::scoped_switch_fork_info)
10740 (checkpoint_command, linux_fork_context): Adjust
10741 fork_save_infrun_state calls.
10742
e52c971f
PA
107432019-03-06 Pedro Alves <palves@redhat.com>
10744
10745 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10746 (inf_has_multiple_threads): Return 'bool' and rewrite using
10747 inferior_info::threads().
10748
06974e6c
PA
107492019-03-06 Pedro Alves <palves@redhat.com>
10750
10751 * linux-fork.c: Include <list>.
10752 (fork_list): Now a std::list instance.
10753 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10754 (forks_exist_p, find_last_fork): Adjust.
10755 (new_fork): Delete.
10756 (one_fork_p): New.
10757 (add_fork): Adjust.
10758 (free_fork): Delete, folded into fork_info::~fork_info().
10759 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10760 Adjust.
10761 (init_fork_list): Delete.
10762 (linux_fork_killall, linux_fork_mourn_inferior)
10763 (linux_fork_detach, info_checkpoints_command): Adjust.
10764 (_initialize_linux_fork): No longer call init_fork_list.
10765
72f31aea
PA
107662019-03-06 Pedro Alves <palves@redhat.com>
10767
10768 * linux-fork.c (new_fork): New, split out of ...
10769 (add_fork): ... this. Return void. Move "first fork" special
10770 case from here, to ...
10771 (checkpoint_command): ... here.
10772 * linux-linux.h (add_fork): Return void.
10773
efbecbc1
AB
107742019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10775
10776 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10777
0841c79a
AB
107782019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10779 Chris January <chris.january@arm.com>
10780 David Lecomber <david.lecomber@arm.com>
10781
10782 * f-exp.y: New token, UNOP_INTRINSIC.
10783 (exp): New pattern using UNOP_INTRINSIC token.
10784 (f77_keywords): Add 'abs' keyword.
10785 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10786 (value_from_host_double): New function.
10787 (evaluate_subexp_f): Support UNOP_ABS.
10788
4a270568
AB
107892019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10790
10791 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10792 types.
10793
067630bd
AB
107942019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10795
10796 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10797 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10798 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10799
3be47f7a
AB
108002019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10801
10802 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10803
4d00f5d8
AB
108042019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10805 Chris January <chris.january@arm.com>
10806
10807 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10808 * f-exp.y: Define 'KIND' token.
10809 (exp): New pattern for KIND expressions.
10810 (ptype): Handle types with a kind extension.
10811 (direct_abs_decl): Extend to spot kind extensions.
10812 (f77_keywords): Add 'kind' to the list.
10813 (push_kind_type): New function.
10814 (convert_to_kind_type): New function.
10815 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10816 * parse.c (operator_length_standard): Likewise.
10817 * parser-defs.h (enum type_pieces): Add tp_kind.
10818 * std-operator.def: Add UNOP_KIND.
10819
e454224f
AB
108202019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10821
10822 * f-exp.y (f_parse): Set yydebug.
10823
9dad4a58
AB
108242019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10825
10826 * f-lang.c (evaluate_subexp_f): New function.
10827 (exp_descriptor_f): New global.
10828 (f_language_defn): Use exp_descriptor_f instead of
10829 exp_descriptor_standard.
10830
c8f91604
AB
108312019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10832
10833 * f-exp.y (struct token): Add comments.
10834 (dot_ops): Remove uppercase versions and the end marker.
10835 (f77_keywords): Likewise.
10836 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10837 entries in the dot_ops array are case insensitive, and use
10838 strncasecmp to compare strings. Also some whitespace cleanup in
10839 this area. Similar for the f77_keywords array, except entries in
10840 this list might be case sensitive.
10841
dd9f2c76
AB
108422019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10843
10844 * f-exp.y (struct f77_boolean_val): Add comments.
10845 (boolean_values): Remove uppercase versions, and end marker.
10846 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10847 and use strncasecmp to achieve case insensitivity. Additionally,
10848 perform whitespace cleanup around this code.
10849
67a3048c
TT
108502019-03-06 Tom Tromey <tromey@adacore.com>
10851
10852 * remote-sim.c (gdbsim_target_open): Use result of
10853 gdb_argv::release.
10854
aa3cfbda
RB
108552019-03-06 Richard Bunt <richard.bunt@arm.com>
10856 Dirk Schubert <dirk.schubert@arm.com>
10857 Chris January <chris.january@arm.com>
10858
10859 * eval.c (evaluate_subexp_standard): Call Fortran argument
10860 wrapping logic.
10861 * f-lang.c (struct value): A value which can be passed into a
10862 Fortran function call.
10863 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10864 where appropriate.
10865 (struct type): Value ready for a Fortran function call.
10866 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10867 is needed.
10868 * f-lang.h (fortran_argument_convert): Declaration.
10869 (fortran_preserve_arg_pointer): Declaration.
10870 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10871
ea38e5df
TT
108722019-03-05 Tom Tromey <tromey@adacore.com>
10873
10874 * python/py-prettyprint.c (print_string_repr): Remove #if.
10875 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10876
06b5b831
TT
108772019-03-05 Tom Tromey <tromey@adacore.com>
10878
10879 * target.c (the_dummy_target): Move later. Change type to
10880 "dummy_target".
10881 (initialize_targets): Don't initialize the_dummy_target.
10882
edbd9e45
TT
108832019-03-05 Tom Tromey <tromey@adacore.com>
10884
10885 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10886 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10887
c119e040
TT
108882019-03-05 Tom Tromey <tromey@adacore.com>
10889
10890 * windows-nat.c (windows_nat_target::attach)
10891 (windows_nat_target::detach): Don't call gdb_flush.
10892 * valprint.c (generic_val_print, val_print, val_print_string):
10893 Don't call gdb_flush.
10894 * utils.c (defaulted_query): Don't call gdb_flush.
10895 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10896 * target.c (target_announce_detach): Don't call gdb_flush.
10897 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10898 * remote.c (extended_remote_target::attach): Don't call
10899 gdb_flush.
10900 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10901 * printcmd.c (do_examine): Don't call gdb_flush.
10902 (info_display_command): Don't call gdb_flush.
10903 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10904 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10905 * memattr.c (info_mem_command): Don't call gdb_flush.
10906 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10907 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10908 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10909 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10910 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10911 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10912 (gnu_nat_target::detach): Don't call gdb_flush.
10913 * f-valprint.c (f_val_print): Don't call gdb_flush.
10914 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10915 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10916 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10917 gdb_flush.
10918 * c-valprint.c (c_val_print): Don't call gdb_flush.
10919 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10920
895dafa6
TT
109212019-03-05 Tom Tromey <tromey@adacore.com>
10922
10923 * varobj.c (update_dynamic_varobj_children): Update.
10924 (install_default_visualizer): Use reset, not release.
10925 * value.c (set_internalvar): Update.
10926 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10927 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10928 ATTRIBUTE_UNUSED_RESULT.
10929
88a774b9
TT
109302019-03-05 Tom Tromey <tromey@adacore.com>
10931
10932 * remote.c (class scoped_remote_fd) <release>: Add
10933 ATTRIBUTE_UNUSED_RESULT.
10934
4e4a8b93
TT
109352019-03-05 Tom Tromey <tromey@adacore.com>
10936
10937 * macroexp.c (struct macro_buffer) <release>: Add
10938 ATTRIBUTE_UNUSED_RESULT.
10939
083eef1f
TT
109402019-03-05 Tom Tromey <tromey@adacore.com>
10941
10942 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10943 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10944 ATTRIBUTE_UNUSED_RESULT.
10945
3cabd438
TT
109462019-03-05 Tom Tromey <tromey@adacore.com>
10947
10948 * common/scoped_fd.h (class scoped_fd) <release>: Add
10949 ATTRIBUTE_UNUSED_RESULT.
10950
41e3300a
TT
109512019-03-05 Tom Tromey <tromey@adacore.com>
10952
10953 * parser-defs.h (struct parser_state) <release>: Add
10954 ATTRIBUTE_UNUSED_RESULT.
10955
18cb7c9f
TT
109562019-03-05 Tom Tromey <tromey@adacore.com>
10957
10958 * utils.h (class gdb_argv) <release>: Add
10959 ATTRIBUTE_UNUSED_RESULT.
10960 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10961
41fa577f
EZ
109622019-03-02 Eli Zaretskii <eliz@gnu.org>
10963
a6a4b2c6
EZ
10964 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10965 for-loop range, to avoid compiler warnings.
10966
10967 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10968 avoid compiler warnings about unused variables.
10969
742a7df5
EZ
10970 * NEWS: Mention end of support for native debugging on MS-Windows
10971 before XP.
10972
41fa577f
EZ
10973 PR gdb/24292
10974 * common/netstuff.c:
10975 * gdbserver/gdbreplay.c
10976 * gdbserver/remote-utils.c:
10977 * ser-tcp.c:
10978 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10979 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10980 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10981 'getaddrinfo' and 'freeaddrinfo' were not available before
10982 Windows XP, and mingw.org's MinGW headers by default define
10983 _WIN32_WINNT to 0x500.
10984
827f438f
GB
109852019-03-01 Gary Benson <gbenson@redhat.com>
10986
10987 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10988
92137da0
RO
109892019-02-28 Brian Vandenberg <phantall@gmail.com>
10990 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10991
10992 PR gdb/8527
10993 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10994 set_sigint_trap, clear_sigint_trap.
10995
799efbe8
PW
109962019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10997
10998 * target.c (target_detach): Clear the regcache and the
10999 frame cache.
11000
8ed25214
PA
110012019-02-27 Pedro Alves <palves@redhat.com>
11002
11003 * utils.c (set_screen_size): When we cap the height/width sizes,
11004 tweak the corresponding command variable to show "unlimited":
11005
23031e31
SJ
110062019-02-27 Saagar Jha <saagar@saagarjha.com>
11007 Pedro Alves <palves@redhat.com>
11008
11009 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11010 before calling rl_set_screen_size.
11011
6c28e44a
TT
110122019-02-27 Tom Tromey <tromey@adacore.com>
11013
11014 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11015 define.
11016 * python/py-value.c: Remove Python 2.4 workaround.
11017 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11018 workaround.
11019 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11020 Python 2.4 workaround.
11021 * python/python-internal.h: Remove Python 2.4 comment.
11022 (Py_ssize_t): Don't define.
11023 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11024 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11025 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11026 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11027 * python/python.c (do_start_initialization): Remove Python 2.4
11028 workaround.
11029 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11030 (print_children): Remove Python 2.4 workaround.
11031 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11032 workaround.
11033 (CHARBUFFERPROC_NAME): Remove.
11034 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11035 Python 2.4 workaround.
11036
2c3fc25d 110372019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 11038
2c3fc25d
KB
11039 * NEWS: Note minimum Python version.
11040
6ca62222
KB
110412019-02-27 Kevin Buettner <kevinb@redhat.com>
11042
11043 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11044 code from these functions. Remove corresponding ifdefs. Use
11045 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11046 Remove gotos and target of gotos.
11047 (infpy_search_memory): Likewise.
11048
f4bc7d2c
AB
110492019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11050
11051 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11052 (hppa_gdbarch_init): Don't register deleted functions with
11053 gdbarch.
11054
9734a586
AB
110552019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11056
11057 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11058 (h8300_unwind_sp): Delete.
11059 (h8300_dummy_id): Delete.
11060 (h8300_gdbarch_init): Don't register deleted functions with
11061 gdbarch.
11062
68b867f3
AB
110632019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11064
11065 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11066 (ft32_unwind_pc): Delete.
11067 (ft32_unwind_sp): Delete.
11068 (ft32_gdbarch_init): Don't register deleted functions with
11069 gdbarch.
11070
2fbe7ad0
AB
110712019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11072
11073 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11074 (frv_unwind_pc): Delete.
11075 (frv_unwind_sp): Delete.
11076 (frv_gdbarch_init): Don't register deleted functions with
11077 gdbarch.
11078
76055cbe
AB
110792019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11080
11081 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11082 (riscv_unwind_pc): Delete.
11083 (riscv_unwind_sp): Delete.
11084 (riscv_gdbarch_init): Don't register deleted functions with
11085 gdbarch.
11086
4133e5a1
AB
110872019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11088
11089 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11090 (csky_unwind_pc): Delete.
11091 (csky_unwind_sp): Delete.
11092 (csky_gdbarch_init): Don't register deleted functions with
11093 gdbarch.
11094
8010f576
AB
110952019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11096
11097 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11098 (cris_unwind_pc): Delete.
11099 (cris_unwind_sp): Delete.
11100 (cris_gdbarch_init): Don't register deleted functions with
11101 gdbarch.
11102
b56bf084
AB
111032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11104
11105 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11106 (bfin_unwind_pc): Delete.
11107 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11108
a19a650f
AB
111092019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11110
11111 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11112 (arm_unwind_pc): Delete.
11113 (arm_unwind_sp): Delete.
11114 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11115
f8278c3c
AB
111162019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11117
11118 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11119 (arc_unwind_pc): Delete.
11120 (arc_unwind_sp): Delete.
11121 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11122
480e46cf
AB
111232019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11124
11125 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11126 (alpha_unwind_pc): Delete.
11127 (alpha_gdbarch_init): Don't register deleted functions with
11128 gdbarch.
11129
7a995095
AB
111302019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11131
11132 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11133 (aarch64_unwind_pc): Delete.
11134 (aarch64_unwind_sp): Delete.
11135 (aarch64_gdbarch_init): Don't register deleted functions with
11136 gdbarch.
11137
bf9a735e
AB
111382019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11139
11140 * gdbtypes.c (type_align): Don't consider static members when
11141 computing structure alignment.
11142
5561fc30
AB
111432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11144
11145 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11146 return 0 for other types.
11147 * arch-utils.c (default_type_align): Always return 0.
11148 * gdbarch.h: Regenerate.
11149 * gdbarch.sh (type_align): Extend comment.
11150 * gdbtypes.c (type_align): Add additional comments, always call
11151 gdbarch_type_align before applying the default rules.
11152 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11153 generic code will then apply a suitable default.
11154 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11155 types, return 0 for other types.
11156
9335e75a
JB
111572019-02-27 Joel Brobecker <brobecker@adacore.com>
11158
11159 * NEWS: Create a new section for the next release branch.
11160 Rename the section of the current branch, now that it has
11161 been cut.
11162
3d34d8de
JB
111632019-02-27 Joel Brobecker <brobecker@adacore.com>
11164
11165 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11166 * version.in: Bump version to 8.3.50.DATE-git.
11167
143420fb
SM
111682019-02-26 Simon Marchi <simon.marchi@efficios.com>
11169
11170 * aix-thread.c (ptid_cmp): Remove unused variable.
11171 (get_signaled_thread): Likewise.
11172 (store_regs_user_thread): Likewise.
11173 (store_regs_kernel_thread): Likewise.
11174 (fetch_regs_kernel_thread): Remove shadowed variable.
11175
172fb711
AB
111762019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11177
11178 * features/riscv/32bit-cpu.xml: Add register numbers.
11179 * features/riscv/32bit-fpu.c: Regenerate.
11180 * features/riscv/32bit-fpu.xml: Add register numbers.
11181 * features/riscv/64bit-cpu.xml: Add register numbers.
11182 * features/riscv/64bit-fpu.c: Regenerate.
11183 * features/riscv/64bit-fpu.xml: Add register numbers.
11184
26c89782
KB
111852019-02-26 Kevin Buettner <kevinb@redhat.com>
11186
af54ade9 11187 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
11188 * python/py-value.c (convert_buffer_and_type_to_value): New
11189 function.
11190 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11191 Add support for handling an optional second argument. Call
11192 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
11193 * python/python-internal.h (Py_buffer_deleter): New struct.
11194 (Py_buffer_up): New typedef.
11195
0f58c9e8
JB
111962019-02-25 John Baldwin <jhb@FreeBSD.org>
11197
11198 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11199 instead of releasing ownership.
11200
0a0f4c01
JR
112012019-02-25 Jordan Rupprecht <rupprecht@google.com>
11202
11203 * dwarf2read.c (open_and_init_dwp_file): Call
11204 elf_numsections instead of bfd_count_sections to initialize
11205 dwp_file->num_sections.
11206
cd5a152c
TT
112072019-02-25 Tom Tromey <tromey@adacore.com>
11208
11209 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11210
8a6a8513
SDJ
112112019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11212
11213 * gcore.in: Add '--readnever' option when invoking GDB.
11214
04dcda9c
SM
112152019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11216
11217 * MAINTAINERS: Update my email address.
11218
07bc701d
SM
112192019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11220
11221 * build-id.c (build_id_to_debug_bfd_1): New function.
11222 (build_id_to_debug_bfd): Look for separate debug file in
11223 sysroot.
11224
c6f4a5d0
AB
112252019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11226
11227 * gdbarch.sh: Update the copyright year range that is placed into
11228 generated files.
11229
9600246d
KS
112302019-02-22 Keith Seitz <keiths@redhat.com>
11231
11232 PR symtab/23853
11233 * linespec.c (create_sals_line_offset): Search for the default
11234 symtab's filename instead of its fullname.
11235
7557a514
AH
112362019-02-21 Alan Hayward <alan.hayward@arm.com>
11237
11238 * NEWS: Update style defaults.
11239
ee2bcb0c
AH
112402019-02-21 Alan Hayward <alan.hayward@arm.com>
11241
11242 * main.c (captured_main_1): Disable styling in batch mode.
11243
0c95f9ed
TT
112442019-02-20 Tom Tromey <tom@tromey.com>
11245
11246 * symtab.c (symtab_symbol_info): Fix typos.
11247
c763b894
TT
112482019-02-20 Tom Tromey <tromey@adacore.com>
11249
11250 * findcmd.c (_initialize_mem_search): Use upper case for
11251 metasyntactic variables.
11252
0ef8a082
AH
112532019-02-20 Alan Hayward <alan.hayward@arm.com>
11254
11255 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11256 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11257
6caa91b6
SM
112582019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11259
11260 * top.h (source_file_name): Change to std::string.
11261 * top.c (source_file_name): Likewise.
11262 (command_line_input): Adjust.
11263 * cli/cli-script.c (script_from_file): Adjust.
11264
98814c6c
TT
112652019-02-19 Tom Tromey <tromey@adacore.com>
11266
11267 * ravenscar-thread.c
11268 (ravenscar_thread_target::update_thread_list): Don't call
11269 ada_build_task_list.
11270 * ada-lang.h (ada_build_task_list): Don't declare.
11271 * ada-tasks.c (struct ada_tasks_inferior_data)
11272 <task_list_valid_p>: Now bool.
11273 (read_known_tasks, ada_task_list_changed)
11274 (ada_tasks_invalidate_inferior_data): Update.
11275 (read_known_tasks_array): Return bool.
11276 (read_known_tasks_list): Likewise.
11277 (read_known_tasks): Return void.
11278 (ada_build_task_list): Now static.
11279
70cd633e
AB
112802019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11281
11282 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11283 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11284
040b3e95
PW
112852019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11286
11287 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11288 variant for ada_tasks_pspace_data_handle and
11289 ada_tasks_inferior_data_handle.
11290 (ada_tasks_pspace_data_cleanup): New function.
11291 (ada_tasks_inferior_data_cleanup): New function.
11292
9409233b
TT
112932019-02-17 Tom Tromey <tom@tromey.com>
11294
11295 * macrotab.h (macro_source_fullname): Return a std::string.
11296 * macrotab.c (macro_include, check_for_redefinition)
11297 (macro_undef, macro_lookup_definition, foreach_macro)
11298 (foreach_macro_in_scope): Update.
11299 (macro_source_fullname): Return a std::string.
11300 * macrocmd.c (show_pp_source_pos): Update.
11301
6506371f
TT
113022019-02-17 Tom Tromey <tom@tromey.com>
11303
11304 * macrocmd.c (show_pp_source_pos): Style the file names.
11305
0c820d67
TT
113062019-02-17 Tom Tromey <tom@tromey.com>
11307
11308 PR tui/24197:
11309 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11310
a0087920
TT
113112019-02-17 Tom Tromey <tom@tromey.com>
11312
11313 * ada-lang.c (user_select_syms): Use filtered printing.
11314 * utils.c (wrap_style): New global.
11315 (desired_style): Remove.
11316 (emit_style_escape): Add stream parameter.
11317 (set_output_style, reset_terminal_style, prompt_for_continue):
11318 Update.
11319 (flush_wrap_buffer): Only flush gdb_stdout.
11320 (wrap_here): Set wrap_style.
11321 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11322 treat escape sequences as a character. Change when wrap buffer is
11323 flushed.
11324 (fputs_styled): Do not set the output style when the default is
11325 requested.
11326 * ui-style.h (struct ui_file_style) <is_default>: New method.
11327 * source.c (print_source_lines_base): Emit escape sequences in one
11328 piece.
11329
75ba10dc
JB
113302019-02-17 Joel Brobecker <brobecker@adacore.com>
11331
11332 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11333 integers and enumeration types.
11334
a2cd4f14
JB
113352019-02-17 Joel Brobecker <brobecker@adacore.com>
11336
11337 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11338 instead of lookup_symbol_in_language
11339 (do_exact_match): New function.
11340 (ada_get_symbol_name_matcher): Return do_exact_match when
11341 doing a verbatim match.
11342
485b851b
TT
113432019-02-15 Tom Tromey <tromey@adacore.com>
11344
11345 * ravenscar-thread.c (ravenscar_thread_target::resume)
11346 (ravenscar_thread_target::wait): Special case wildcard requests.
11347
0b790b1e
TT
113482019-02-15 Tom Tromey <tromey@adacore.com>
11349
11350 * ravenscar-thread.c (base_ptid): Remove.
11351 (struct ravenscar_thread_target) <close>: New method.
11352 <m_base_ptid>: New member.
11353 <update_inferior_ptid, active_task, task_is_currently_active,
11354 runtime_initialized>: Declare methods.
11355 <ravenscar_thread_target>: Add constructor.
11356 (ravenscar_thread_target::task_is_currently_active)
11357 (ravenscar_thread_target::update_inferior_ptid)
11358 (ravenscar_runtime_initialized): Rename. Now methods.
11359 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11360 (ravenscar_thread_target::update_thread_list): Update.
11361 (ravenscar_thread_target::active_task): Now method.
11362 (ravenscar_thread_target::store_registers)
11363 (ravenscar_thread_target::prepare_to_store)
11364 (ravenscar_thread_target::prepare_to_store)
11365 (ravenscar_thread_target::mourn_inferior): Update.
11366 (ravenscar_inferior_created): Use "new" to create target.
11367 (ravenscar_thread_target::get_ada_task_ptid): Update.
11368 (_initialize_ravenscar): Don't initialize base_ptid.
11369 (ravenscar_ops): Remove global.
11370
dea57a62
TT
113712019-02-15 Tom Tromey <tromey@adacore.com>
11372
11373 * target.h (push_target): Declare new overload.
11374 * target.c (push_target): New overload, taking an rvalue reference.
11375 * remote.c (remote_target::open_1): Use push_target overload.
11376 * corelow.c (core_target_open): Use push_target overload.
11377
989f3c58
TT
113782019-02-15 Tom Tromey <tromey@adacore.com>
11379
11380 * ravenscar-thread.c (is_ravenscar_task)
11381 (ravenscar_task_is_currently_active): Return bool.
11382 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11383 (_initialize_ravenscar): Remove "(void)".
11384 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11385 Return bool.
11386
6cbcc006
TT
113872019-02-15 Tom Tromey <tromey@adacore.com>
11388
11389 * ravenscar-thread.c (ravenscar_runtime_initializer)
11390 (has_ravenscar_runtime, get_running_thread_id)
11391 (ravenscar_thread_target::resume): Fix indentation.
11392
7657f14d
TT
113932019-02-15 Tom Tromey <tromey@adacore.com>
11394
11395 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11396 from ravenscar_arch_ops.
11397 (sparc_ravenscar_ops::fetch_registers)
11398 (sparc_ravenscar_ops::store_registers): Now methods.
11399 (sparc_ravenscar_prepare_to_store): Remove.
11400 (sparc_ravenscar_ops): Redefine.
11401 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11402 methods and destructor. Remove members.
11403 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11404 (ravenscar_thread_target::store_registers)
11405 (ravenscar_thread_target::prepare_to_store): Update.
11406 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11407 Remove.
11408 (struct ppc_ravenscar_powerpc_ops): Derive from
11409 ravenscar_arch_ops.
11410 (ppc_ravenscar_powerpc_ops::fetch_registers)
11411 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11412 (ppc_ravenscar_powerpc_ops): Redefine.
11413 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11414 (ppc_ravenscar_e500_ops::fetch_registers)
11415 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11416 (ppc_ravenscar_e500_ops): Redefine.
11417 * aarch64-ravenscar-thread.c
11418 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11419 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11420 (aarch64_ravenscar_fetch_registers)
11421 (aarch64_ravenscar_store_registers): Now methods.
11422 (aarch64_ravenscar_ops): Redefine.
11423
5b6ea500
TT
114242019-02-15 Tom Tromey <tromey@adacore.com>
11425
11426 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11427 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11428 (ravenscar_thread_target::stopped_by_watchpoint)
11429 (ravenscar_thread_target::stopped_data_address)
11430 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11431
e397fd39
TT
114322019-02-15 Tom Tromey <tromey@adacore.com>
11433
11434 * ravenscar-thread.c: Fix some typos.
11435
cc12f4a8
TT
114362019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11437 Tom Tromey <tromey@adacore.com>
11438
11439 * ada-lang.c (ada_exception_sal): Change addr_string to a
11440 std::string.
11441 (create_ada_exception_catchpoint): Update.
11442
5f486660
TT
114432019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11444 Tom Tromey <tromey@adacore.com>
11445
11446 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11447 (bp_location_ops): Remove.
11448 (base_breakpoint_allocate_location): Update.
11449 (free_bp_location): Update.
11450 * ada-lang.c (class ada_catchpoint_location)
11451 <ada_catchpoint_location>: Remove ops parameter.
11452 (ada_catchpoint_location_dtor): Remove.
11453 (ada_catchpoint_location_ops): Remove.
11454 (allocate_location_exception): Update.
11455 * breakpoint.h (struct bp_location_ops): Remove.
11456 (class bp_location) <bp_location>: Remove bp_location_ops
11457 parameter.
11458 <~bp_location>: Add destructor.
11459 <ops>: Remove.
11460
b671c7fb
TS
114612019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11462 Pedro Alves <palves@redhat.com>
11463
11464 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11465 'PATH_MAX'.
11466
8071c5ce
DM
114672019-02-14 David Michael <fedora.dm0@gmail.com>
11468 Samuel Thibault <samuel.thibault@gnu.org>
11469 Thomas Schwinge <thomas@codesourcery.com>
11470
11471 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11472 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11473
b1041ae0
TS
114742019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11475
924514e1
TS
11476 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11477 (check_empty): Use "const char *".
11478
c29ee8d4
TS
11479 * gnu-nat.c (gnu_nat_target::detach): Instead of
11480 'detach_inferior (pid)' call
11481 'detach_inferior (find_inferior_pid (pid))'.
11482
6c6ef69f
TS
11483 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11484 'nat/fork-inferior.o'.
11485 * gnu-nat.c: #include "nat/fork-inferior.h".
11486
2d0a338c
TS
11487 * gnu-nat.c (gnu_nat_target::detach): Instead of
11488 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11489 * gnu-nat.h: #include "inf-child.h".
11490 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11491 'i386_gnu_nat_target::fetch_registers'.
11492 (gnu_store_registers): Rename/move to
11493 'i386_gnu_nat_target::store_registers'.
11494
cabb5f06
TS
11495 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11496 * gnu-nat.h (mach_thread_info): New function.
11497 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11498
b1041ae0
TS
11499 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11500
2988d01e
KF
115012019-02-14 Frederic Konrad <konrad@adacore.com>
11502
11503 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11504
c559d709
JB
115052019-02-14 Joel Brobecker <brobecker@adacore.com>
11506
11507 * windows-nat.c (windows_add_thread): Add new parameter
11508 "main_thread_p" with default value set to false. Update
11509 function documentation as well as all callers.
11510 (windows_delete_thread): Likewise.
11511 (fake_create_process): Update call to windows_add_thread.
11512 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11513 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11514 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11515 call to windows_delete_thread.
11516
007024cc
SM
115172019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11518
11519 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11520
f62318e9
JB
115212019-02-12 John Baldwin <jhb@FreeBSD.org>
11522
11523 * symfile.c (find_separate_debug_file): Use canonical path of
11524 sysroot with child_path instead of gdb_sysroot if it is valid.
11525
cd4b7848
JB
115262019-02-12 John Baldwin <jhb@FreeBSD.org>
11527
11528 * symfile.c (find_separate_debug_file): Use child_path to
11529 determine if an object file is under a sysroot.
11530
efac4bfe
JB
115312019-02-12 John Baldwin <jhb@FreeBSD.org>
11532
11533 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11534 unittests/child-path-selftests.c.
11535 * common/pathstuff.c (child_path): New function.
11536 * common/pathstuff.h (child_path): New prototype.
11537 * unittests/child-path-selftests.c: New file.
11538
402d2bfe
JB
115392019-02-12 John Baldwin <jhb@FreeBSD.org>
11540
11541 * symfile.c (find_separate_debug_file): Look for separate debug
11542 files in debug directories under the sysroot.
11543
1ed9f74e
PW
115442019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11545
11546 * symtab.h (struct minimal_symbol data_p): New const method.
11547 (struct minimal_symbol text_p): Likewise.
11548 * symtab.c (output_source_filename): Use file name style
11549 to print file name.
11550 (print_symbol_info): Likewise.
11551 (print_msymbol_info): Use address style to print addresses.
11552 Use function name style to print executable text symbols.
11553 (expand_symtab_containing_pc): Use data_p.
11554 (find_pc_sect_compunit_symtab): Likewise.
11555
2636d81d
PW
115562019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11557
11558 * breakpoint.c (describe_other_breakpoints): Use address style
11559 to print addresses.
11560 (say_where): Likewise.
11561
ac8c53cc
PW
115622019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11563
11564 * ada-typeprint.c (print_func_type): Print function name
11565 style to print function name.
11566 * c-typeprint.c (c_print_type_1): Likewise.
11567
ea638c43
AH
115682019-02-11 Alan Hayward <alan.hayward@arm.com>
11569
11570 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11571 for execve.
11572
ab759ca8
PW
115732019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11574
11575 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11576 type_stack.
11577
aff29d1c
JB
115782019-02-10 Joel Brobecker <brobecker@adacore.com>
11579
11580 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11581 TYPE_CODE_REF types.
11582
617126bc
JW
115832019-02-08 Jim Wilson <jimw@sifive.com>
11584
11585 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11586 (riscv_linux_fregset): New.
11587 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11588
46e3ed7f
TT
115892019-02-07 Tom Tromey <tom@tromey.com>
11590
11591 * thread.c (thread_cancel_execution_command): Update.
11592 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11593 methods.
11594 (struct thread_fsm_ops): Remove.
11595 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11596 (thread_fsm_should_stop, thread_fsm_return_value)
11597 (thread_fsm_set_finished, thread_fsm_finished_p)
11598 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11599 Don't declare.
11600 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11601 * infrun.c (clear_proceed_status_thread)
11602 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11603 (print_stop_event): Update.
11604 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11605 Add constructor.
11606 (step_command_fsm_ops): Remove.
11607 (new_step_command_fsm): Remove.
11608 (step_1): Update.
11609 (step_command_fsm::should_stop): Rename from
11610 step_command_fsm_should_stop.
11611 (step_command_fsm::clean_up): Rename from
11612 step_command_fsm_clean_up.
11613 (step_command_fsm::do_async_reply_reason): Rename from
11614 step_command_fsm_async_reply_reason.
11615 (struct until_next_fsm): Inherit from thread_fsm. Add
11616 constructor.
11617 (until_next_fsm_ops): Remove.
11618 (new_until_next_fsm): Remove.
11619 (until_next_fsm::should_stop): Rename from
11620 until_next_fsm_should_stop.
11621 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11622 (until_next_fsm::do_async_reply_reason): Rename from
11623 until_next_fsm_async_reply_reason.
11624 (struct finish_command_fsm): Inherit from thread_fsm. Add
11625 constructor. Change type of breakpoint.
11626 (finish_command_fsm_ops): Remove.
11627 (new_finish_command_fsm): Remove.
11628 (finish_command_fsm::should_stop): Rename from
11629 finish_command_fsm_should_stop.
11630 (finish_command_fsm::clean_up): Rename from
11631 finish_command_fsm_clean_up.
11632 (finish_command_fsm::return_value): Rename from
11633 finish_command_fsm_return_value.
11634 (finish_command_fsm::do_async_reply_reason): Rename from
11635 finish_command_fsm_async_reply_reason.
11636 (finish_command): Update.
11637 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11638 Add constructor.
11639 (call_thread_fsm_ops): Remove.
11640 (call_thread_fsm::call_thread_fsm): Rename from
11641 new_call_thread_fsm.
11642 (call_thread_fsm::should_stop): Rename from
11643 call_thread_fsm_should_stop.
11644 (call_thread_fsm::should_notify_stop): Rename from
11645 call_thread_fsm_should_notify_stop.
11646 (run_inferior_call, call_function_by_hand_dummy): Update.
11647 * cli/cli-interp.c (should_print_stop_to_console): Update.
11648 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11649 Add constructor. Change type of location_breakpoint,
11650 caller_breakpoint.
11651 (until_break_fsm_ops): Remove.
11652 (new_until_break_fsm): Remove.
11653 (until_break_fsm::should_stop): Rename from
11654 until_break_fsm_should_stop.
11655 (until_break_fsm::clean_up): Rename from
11656 until_break_fsm_clean_up.
11657 (until_break_fsm::do_async_reply_reason): Rename from
11658 until_break_fsm_async_reply_reason.
11659 (until_break_command): Update.
11660 * thread-fsm.c: Remove.
11661 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11662
1a5c2598
TT
116632019-02-07 Tom Tromey <tom@tromey.com>
11664
11665 * yy-remap.h: Add include guard.
11666 * xtensa-tdep.h: Add include guard.
11667 * xcoffread.h: Rename include guard.
11668 * varobj-iter.h: Add include guard.
11669 * tui/tui.h: Rename include guard.
11670 * tui/tui-winsource.h: Rename include guard.
11671 * tui/tui-wingeneral.h: Rename include guard.
11672 * tui/tui-windata.h: Rename include guard.
11673 * tui/tui-win.h: Rename include guard.
11674 * tui/tui-stack.h: Rename include guard.
11675 * tui/tui-source.h: Rename include guard.
11676 * tui/tui-regs.h: Rename include guard.
11677 * tui/tui-out.h: Rename include guard.
11678 * tui/tui-layout.h: Rename include guard.
11679 * tui/tui-io.h: Rename include guard.
11680 * tui/tui-hooks.h: Rename include guard.
11681 * tui/tui-file.h: Rename include guard.
11682 * tui/tui-disasm.h: Rename include guard.
11683 * tui/tui-data.h: Rename include guard.
11684 * tui/tui-command.h: Rename include guard.
11685 * tic6x-tdep.h: Add include guard.
11686 * target/waitstatus.h: Rename include guard.
11687 * target/wait.h: Rename include guard.
11688 * target/target.h: Rename include guard.
11689 * target/resume.h: Rename include guard.
11690 * target-float.h: Rename include guard.
11691 * stabsread.h: Add include guard.
11692 * rs6000-tdep.h: Add include guard.
11693 * riscv-fbsd-tdep.h: Add include guard.
11694 * regformats/regdef.h: Rename include guard.
11695 * record.h: Rename include guard.
11696 * python/python.h: Rename include guard.
11697 * python/python-internal.h: Rename include guard.
11698 * python/py-stopevent.h: Rename include guard.
11699 * python/py-ref.h: Rename include guard.
11700 * python/py-record.h: Rename include guard.
11701 * python/py-record-full.h: Rename include guard.
11702 * python/py-record-btrace.h: Rename include guard.
11703 * python/py-instruction.h: Rename include guard.
11704 * python/py-events.h: Rename include guard.
11705 * python/py-event.h: Rename include guard.
11706 * procfs.h: Add include guard.
11707 * proc-utils.h: Add include guard.
11708 * p-lang.h: Add include guard.
11709 * or1k-tdep.h: Rename include guard.
11710 * observable.h: Rename include guard.
11711 * nto-tdep.h: Rename include guard.
11712 * nat/x86-linux.h: Rename include guard.
11713 * nat/x86-linux-dregs.h: Rename include guard.
11714 * nat/x86-gcc-cpuid.h: Add include guard.
11715 * nat/x86-dregs.h: Rename include guard.
11716 * nat/x86-cpuid.h: Rename include guard.
11717 * nat/ppc-linux.h: Rename include guard.
11718 * nat/mips-linux-watch.h: Rename include guard.
11719 * nat/linux-waitpid.h: Rename include guard.
11720 * nat/linux-ptrace.h: Rename include guard.
11721 * nat/linux-procfs.h: Rename include guard.
11722 * nat/linux-osdata.h: Rename include guard.
11723 * nat/linux-nat.h: Rename include guard.
11724 * nat/linux-namespaces.h: Rename include guard.
11725 * nat/linux-btrace.h: Rename include guard.
11726 * nat/glibc_thread_db.h: Rename include guard.
11727 * nat/gdb_thread_db.h: Rename include guard.
11728 * nat/gdb_ptrace.h: Rename include guard.
11729 * nat/fork-inferior.h: Rename include guard.
11730 * nat/amd64-linux-siginfo.h: Rename include guard.
11731 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11732 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11733 * nat/aarch64-linux.h: Rename include guard.
11734 * nat/aarch64-linux-hw-point.h: Rename include guard.
11735 * mn10300-tdep.h: Add include guard.
11736 * mips-linux-tdep.h: Add include guard.
11737 * mi/mi-parse.h: Rename include guard.
11738 * mi/mi-out.h: Rename include guard.
11739 * mi/mi-main.h: Rename include guard.
11740 * mi/mi-interp.h: Rename include guard.
11741 * mi/mi-getopt.h: Rename include guard.
11742 * mi/mi-console.h: Rename include guard.
11743 * mi/mi-common.h: Rename include guard.
11744 * mi/mi-cmds.h: Rename include guard.
11745 * mi/mi-cmd-break.h: Rename include guard.
11746 * m2-lang.h: Add include guard.
11747 * location.h: Rename include guard.
11748 * linux-record.h: Rename include guard.
11749 * linux-nat.h: Add include guard.
11750 * linux-fork.h: Add include guard.
11751 * i386-darwin-tdep.h: Rename include guard.
11752 * hppa-linux-offsets.h: Add include guard.
11753 * guile/guile.h: Rename include guard.
11754 * guile/guile-internal.h: Rename include guard.
11755 * gnu-nat.h: Rename include guard.
11756 * gdb-stabs.h: Rename include guard.
11757 * frv-tdep.h: Add include guard.
11758 * f-lang.h: Add include guard.
11759 * event-loop.h: Add include guard.
11760 * darwin-nat.h: Rename include guard.
11761 * cp-abi.h: Rename include guard.
11762 * config/sparc/nm-sol2.h: Rename include guard.
11763 * config/nm-nto.h: Rename include guard.
11764 * config/nm-linux.h: Add include guard.
11765 * config/i386/nm-i386gnu.h: Rename include guard.
11766 * config/djgpp/nl_types.h: Rename include guard.
11767 * config/djgpp/langinfo.h: Rename include guard.
11768 * compile/gcc-cp-plugin.h: Add include guard.
11769 * compile/gcc-c-plugin.h: Add include guard.
11770 * compile/compile.h: Rename include guard.
11771 * compile/compile-object-run.h: Rename include guard.
11772 * compile/compile-object-load.h: Rename include guard.
11773 * compile/compile-internal.h: Rename include guard.
11774 * compile/compile-cplus.h: Rename include guard.
11775 * compile/compile-c.h: Rename include guard.
11776 * common/xml-utils.h: Rename include guard.
11777 * common/x86-xstate.h: Rename include guard.
11778 * common/version.h: Rename include guard.
11779 * common/vec.h: Rename include guard.
11780 * common/tdesc.h: Rename include guard.
11781 * common/selftest.h: Rename include guard.
11782 * common/scoped_restore.h: Rename include guard.
11783 * common/scoped_mmap.h: Rename include guard.
11784 * common/scoped_fd.h: Rename include guard.
11785 * common/safe-iterator.h: Rename include guard.
11786 * common/run-time-clock.h: Rename include guard.
11787 * common/refcounted-object.h: Rename include guard.
11788 * common/queue.h: Rename include guard.
11789 * common/ptid.h: Rename include guard.
11790 * common/print-utils.h: Rename include guard.
11791 * common/preprocessor.h: Rename include guard.
11792 * common/pathstuff.h: Rename include guard.
11793 * common/observable.h: Rename include guard.
11794 * common/netstuff.h: Rename include guard.
11795 * common/job-control.h: Rename include guard.
11796 * common/host-defs.h: Rename include guard.
11797 * common/gdb_wait.h: Rename include guard.
11798 * common/gdb_vecs.h: Rename include guard.
11799 * common/gdb_unlinker.h: Rename include guard.
11800 * common/gdb_unique_ptr.h: Rename include guard.
11801 * common/gdb_tilde_expand.h: Rename include guard.
11802 * common/gdb_sys_time.h: Rename include guard.
11803 * common/gdb_string_view.h: Rename include guard.
11804 * common/gdb_splay_tree.h: Rename include guard.
11805 * common/gdb_setjmp.h: Rename include guard.
11806 * common/gdb_ref_ptr.h: Rename include guard.
11807 * common/gdb_optional.h: Rename include guard.
11808 * common/gdb_locale.h: Rename include guard.
11809 * common/gdb_assert.h: Rename include guard.
11810 * common/filtered-iterator.h: Rename include guard.
11811 * common/filestuff.h: Rename include guard.
11812 * common/fileio.h: Rename include guard.
11813 * common/environ.h: Rename include guard.
11814 * common/common-utils.h: Rename include guard.
11815 * common/common-types.h: Rename include guard.
11816 * common/common-regcache.h: Rename include guard.
11817 * common/common-inferior.h: Rename include guard.
11818 * common/common-gdbthread.h: Rename include guard.
11819 * common/common-exceptions.h: Rename include guard.
11820 * common/common-defs.h: Rename include guard.
11821 * common/common-debug.h: Rename include guard.
11822 * common/cleanups.h: Rename include guard.
11823 * common/buffer.h: Rename include guard.
11824 * common/btrace-common.h: Rename include guard.
11825 * common/break-common.h: Rename include guard.
11826 * cli/cli-utils.h: Rename include guard.
11827 * cli/cli-style.h: Rename include guard.
11828 * cli/cli-setshow.h: Rename include guard.
11829 * cli/cli-script.h: Rename include guard.
11830 * cli/cli-interp.h: Rename include guard.
11831 * cli/cli-decode.h: Rename include guard.
11832 * cli/cli-cmds.h: Rename include guard.
11833 * charset-list.h: Add include guard.
11834 * buildsym-legacy.h: Rename include guard.
11835 * bfin-tdep.h: Add include guard.
11836 * ax.h: Rename include guard.
11837 * arm-linux-tdep.h: Add include guard.
11838 * arm-fbsd-tdep.h: Add include guard.
11839 * arch/xtensa.h: Rename include guard.
11840 * arch/tic6x.h: Add include guard.
11841 * arch/i386.h: Add include guard.
11842 * arch/arm.h: Rename include guard.
11843 * arch/arm-linux.h: Rename include guard.
11844 * arch/arm-get-next-pcs.h: Rename include guard.
11845 * arch/amd64.h: Add include guard.
11846 * arch/aarch64-insn.h: Rename include guard.
11847 * arch-utils.h: Rename include guard.
11848 * annotate.h: Add include guard.
11849 * amd64-darwin-tdep.h: Rename include guard.
11850 * aarch64-linux-tdep.h: Add include guard.
11851 * aarch64-fbsd-tdep.h: Add include guard.
11852 * aarch32-linux-nat.h: Add include guard.
11853
ab9268d2
PW
118542019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11855
11856 * macrotab.c (macro_define_internal): New function that
11857 factorizes macro_define_object_internal and macro_define_function
11858 code.
11859 (macro_define_object_internal): Use macro_define_internal.
11860 (macro_define_function): Likewise.
11861
bb0da2b4
PW
118622019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11863
11864 * macrocmd.c (extract_identifier): Return
11865 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11866 callers.
11867
424eb552
JB
118682019-02-06 John Baldwin <jhb@FreeBSD.org>
11869
11870 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11871
1688cb29
TT
118722019-02-05 Tom Tromey <tom@tromey.com>
11873
11874 * target.c (target_stack::unpush): Move assertion earlier.
11875
b5eba2d8
TT
118762019-01-30 Tom Tromey <tom@tromey.com>
11877
11878 PR python/23615:
11879 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11880 (gdbpy_parse_and_eval): Likewise.
11881 * python/python-internal.h (gdbpy_allow_threads): New class.
11882
7054e2ff
JB
118832019-01-28 John Baldwin <jhb@FreeBSD.org>
11884
11885 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11886 (aarch64_fbsd_fpregmap): Move earlier.
11887 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11888 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11889 instead of individual calls to trad_frame_set_reg_addr.
11890 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11891 earlier.
11892 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11893 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11894 instead of individual calls to trad_frame_set_reg_addr.
11895
36c25ffa
AH
118962019-01-28 Alan Hayward <alan.hayward@arm.com>
11897
11898 * CONTRIBUTE: Replace contribution list with wiki link.
11899
a0707f3c
TT
119002019-01-25 Tom Tromey <tom@tromey.com>
11901
11902 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11903
0747795c
TT
119042019-01-25 Tom Tromey <tom@tromey.com>
11905
11906 * xtensa-linux-nat.c: Fix common/ includes.
11907 * xml-support.h: Fix common/ includes.
11908 * xml-support.c: Fix common/ includes.
11909 * x86-linux-nat.c: Fix common/ includes.
11910 * windows-nat.c: Fix common/ includes.
11911 * varobj.h: Fix common/ includes.
11912 * varobj.c: Fix common/ includes.
11913 * value.c: Fix common/ includes.
11914 * valops.c: Fix common/ includes.
11915 * utils.c: Fix common/ includes.
11916 * unittests/xml-utils-selftests.c: Fix common/ includes.
11917 * unittests/utils-selftests.c: Fix common/ includes.
11918 * unittests/unpack-selftests.c: Fix common/ includes.
11919 * unittests/tracepoint-selftests.c: Fix common/ includes.
11920 * unittests/style-selftests.c: Fix common/ includes.
11921 * unittests/string_view-selftests.c: Fix common/ includes.
11922 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11923 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11924 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11925 * unittests/rsp-low-selftests.c: Fix common/ includes.
11926 * unittests/parse-connection-spec-selftests.c: Fix common/
11927 includes.
11928 * unittests/optional-selftests.c: Fix common/ includes.
11929 * unittests/offset-type-selftests.c: Fix common/ includes.
11930 * unittests/observable-selftests.c: Fix common/ includes.
11931 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11932 * unittests/memrange-selftests.c: Fix common/ includes.
11933 * unittests/memory-map-selftests.c: Fix common/ includes.
11934 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11935 * unittests/function-view-selftests.c: Fix common/ includes.
11936 * unittests/environ-selftests.c: Fix common/ includes.
11937 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11938 * unittests/common-utils-selftests.c: Fix common/ includes.
11939 * unittests/cli-utils-selftests.c: Fix common/ includes.
11940 * unittests/array-view-selftests.c: Fix common/ includes.
11941 * ui-file.c: Fix common/ includes.
11942 * tui/tui-io.c: Fix common/ includes.
11943 * tracepoint.h: Fix common/ includes.
11944 * tracepoint.c: Fix common/ includes.
11945 * tracefile-tfile.c: Fix common/ includes.
11946 * top.h: Fix common/ includes.
11947 * top.c: Fix common/ includes.
11948 * thread.c: Fix common/ includes.
11949 * target/waitstatus.h: Fix common/ includes.
11950 * target/waitstatus.c: Fix common/ includes.
11951 * target.h: Fix common/ includes.
11952 * target.c: Fix common/ includes.
11953 * target-memory.c: Fix common/ includes.
11954 * target-descriptions.c: Fix common/ includes.
11955 * symtab.h: Fix common/ includes.
11956 * symfile.c: Fix common/ includes.
11957 * stap-probe.c: Fix common/ includes.
11958 * spu-linux-nat.c: Fix common/ includes.
11959 * sparc-nat.c: Fix common/ includes.
11960 * source.c: Fix common/ includes.
11961 * solib.c: Fix common/ includes.
11962 * solib-target.c: Fix common/ includes.
11963 * ser-unix.c: Fix common/ includes.
11964 * ser-tcp.c: Fix common/ includes.
11965 * ser-pipe.c: Fix common/ includes.
11966 * ser-base.c: Fix common/ includes.
11967 * selftest-arch.c: Fix common/ includes.
11968 * s12z-tdep.c: Fix common/ includes.
11969 * rust-exp.y: Fix common/ includes.
11970 * rs6000-aix-tdep.c: Fix common/ includes.
11971 * riscv-tdep.c: Fix common/ includes.
11972 * remote.c: Fix common/ includes.
11973 * remote-notif.h: Fix common/ includes.
11974 * remote-fileio.h: Fix common/ includes.
11975 * remote-fileio.c: Fix common/ includes.
11976 * regcache.h: Fix common/ includes.
11977 * regcache.c: Fix common/ includes.
11978 * record-btrace.c: Fix common/ includes.
11979 * python/python.c: Fix common/ includes.
11980 * python/py-type.c: Fix common/ includes.
11981 * python/py-inferior.c: Fix common/ includes.
11982 * progspace.h: Fix common/ includes.
11983 * producer.c: Fix common/ includes.
11984 * procfs.c: Fix common/ includes.
11985 * proc-api.c: Fix common/ includes.
11986 * printcmd.c: Fix common/ includes.
11987 * ppc-linux-nat.c: Fix common/ includes.
11988 * parser-defs.h: Fix common/ includes.
11989 * osdata.c: Fix common/ includes.
11990 * obsd-nat.c: Fix common/ includes.
11991 * nat/x86-linux.c: Fix common/ includes.
11992 * nat/x86-linux-dregs.c: Fix common/ includes.
11993 * nat/x86-dregs.h: Fix common/ includes.
11994 * nat/x86-dregs.c: Fix common/ includes.
11995 * nat/ppc-linux.c: Fix common/ includes.
11996 * nat/mips-linux-watch.h: Fix common/ includes.
11997 * nat/mips-linux-watch.c: Fix common/ includes.
11998 * nat/linux-waitpid.c: Fix common/ includes.
11999 * nat/linux-ptrace.h: Fix common/ includes.
12000 * nat/linux-ptrace.c: Fix common/ includes.
12001 * nat/linux-procfs.c: Fix common/ includes.
12002 * nat/linux-personality.c: Fix common/ includes.
12003 * nat/linux-osdata.c: Fix common/ includes.
12004 * nat/linux-namespaces.c: Fix common/ includes.
12005 * nat/linux-btrace.h: Fix common/ includes.
12006 * nat/linux-btrace.c: Fix common/ includes.
12007 * nat/fork-inferior.c: Fix common/ includes.
12008 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12009 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12010 * nat/aarch64-linux.c: Fix common/ includes.
12011 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12012 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12013 * namespace.h: Fix common/ includes.
12014 * mips-linux-tdep.c: Fix common/ includes.
12015 * minsyms.c: Fix common/ includes.
12016 * mi/mi-parse.h: Fix common/ includes.
12017 * mi/mi-main.c: Fix common/ includes.
12018 * mi/mi-cmd-env.c: Fix common/ includes.
12019 * memrange.h: Fix common/ includes.
12020 * memattr.c: Fix common/ includes.
12021 * maint.h: Fix common/ includes.
12022 * maint.c: Fix common/ includes.
12023 * main.c: Fix common/ includes.
12024 * machoread.c: Fix common/ includes.
12025 * location.c: Fix common/ includes.
12026 * linux-thread-db.c: Fix common/ includes.
12027 * linux-nat.c: Fix common/ includes.
12028 * linux-fork.c: Fix common/ includes.
12029 * inline-frame.c: Fix common/ includes.
12030 * infrun.c: Fix common/ includes.
12031 * inflow.c: Fix common/ includes.
12032 * inferior.h: Fix common/ includes.
12033 * inferior.c: Fix common/ includes.
12034 * infcmd.c: Fix common/ includes.
12035 * inf-ptrace.c: Fix common/ includes.
12036 * inf-child.c: Fix common/ includes.
12037 * ia64-linux-nat.c: Fix common/ includes.
12038 * i387-tdep.c: Fix common/ includes.
12039 * i386-tdep.c: Fix common/ includes.
12040 * i386-linux-tdep.c: Fix common/ includes.
12041 * i386-linux-nat.c: Fix common/ includes.
12042 * i386-go32-tdep.c: Fix common/ includes.
12043 * i386-fbsd-tdep.c: Fix common/ includes.
12044 * i386-fbsd-nat.c: Fix common/ includes.
12045 * guile/scm-type.c: Fix common/ includes.
12046 * guile/guile.c: Fix common/ includes.
12047 * go32-nat.c: Fix common/ includes.
12048 * gnu-nat.c: Fix common/ includes.
12049 * gdbthread.h: Fix common/ includes.
12050 * gdbarch-selftests.c: Fix common/ includes.
12051 * gdb_usleep.c: Fix common/ includes.
12052 * gdb_select.h: Fix common/ includes.
12053 * gdb_bfd.c: Fix common/ includes.
12054 * gcore.c: Fix common/ includes.
12055 * fork-child.c: Fix common/ includes.
12056 * findvar.c: Fix common/ includes.
12057 * fbsd-nat.c: Fix common/ includes.
12058 * event-top.c: Fix common/ includes.
12059 * event-loop.c: Fix common/ includes.
12060 * dwarf2read.c: Fix common/ includes.
12061 * dwarf2loc.c: Fix common/ includes.
12062 * dwarf2-frame.c: Fix common/ includes.
12063 * dwarf-index-cache.c: Fix common/ includes.
12064 * dtrace-probe.c: Fix common/ includes.
12065 * disasm-selftests.c: Fix common/ includes.
12066 * defs.h: Fix common/ includes.
12067 * csky-tdep.c: Fix common/ includes.
12068 * cp-valprint.c: Fix common/ includes.
12069 * cp-support.h: Fix common/ includes.
12070 * cp-support.c: Fix common/ includes.
12071 * corelow.c: Fix common/ includes.
12072 * completer.h: Fix common/ includes.
12073 * completer.c: Fix common/ includes.
12074 * compile/compile.c: Fix common/ includes.
12075 * compile/compile-loc2c.c: Fix common/ includes.
12076 * compile/compile-cplus-types.c: Fix common/ includes.
12077 * compile/compile-cplus-symbols.c: Fix common/ includes.
12078 * command.h: Fix common/ includes.
12079 * cli/cli-dump.c: Fix common/ includes.
12080 * cli/cli-cmds.c: Fix common/ includes.
12081 * charset.c: Fix common/ includes.
12082 * build-id.c: Fix common/ includes.
12083 * btrace.h: Fix common/ includes.
12084 * btrace.c: Fix common/ includes.
12085 * breakpoint.h: Fix common/ includes.
12086 * breakpoint.c: Fix common/ includes.
12087 * ax.h:
12088 (enum agent_op): Fix common/ includes.
12089 * ax-general.c (struct aop_map): Fix common/ includes.
12090 * ax-gdb.c: Fix common/ includes.
12091 * auxv.c: Fix common/ includes.
12092 * auto-load.c: Fix common/ includes.
12093 * arm-tdep.c: Fix common/ includes.
12094 * arch/riscv.c: Fix common/ includes.
12095 * arch/ppc-linux-common.c: Fix common/ includes.
12096 * arch/i386.c: Fix common/ includes.
12097 * arch/arm.c: Fix common/ includes.
12098 * arch/arm-linux.c: Fix common/ includes.
12099 * arch/arm-get-next-pcs.c: Fix common/ includes.
12100 * arch/amd64.c: Fix common/ includes.
12101 * arch/aarch64.c: Fix common/ includes.
12102 * arch/aarch64-insn.c: Fix common/ includes.
12103 * arch-utils.c: Fix common/ includes.
12104 * amd64-windows-tdep.c: Fix common/ includes.
12105 * amd64-tdep.c: Fix common/ includes.
12106 * amd64-sol2-tdep.c: Fix common/ includes.
12107 * amd64-obsd-tdep.c: Fix common/ includes.
12108 * amd64-nbsd-tdep.c: Fix common/ includes.
12109 * amd64-linux-tdep.c: Fix common/ includes.
12110 * amd64-linux-nat.c: Fix common/ includes.
12111 * amd64-fbsd-tdep.c: Fix common/ includes.
12112 * amd64-fbsd-nat.c: Fix common/ includes.
12113 * amd64-dicos-tdep.c: Fix common/ includes.
12114 * amd64-darwin-tdep.c: Fix common/ includes.
12115 * agent.c: Fix common/ includes.
12116 * ada-lang.h: Fix common/ includes.
12117 * ada-lang.c: Fix common/ includes.
12118 * aarch64-tdep.c: Fix common/ includes.
12119
2f5c153e
TT
121202019-01-25 Tom Tromey <tom@tromey.com>
12121
12122 * common/create-version.sh: Use common/version.h.
12123
adc6a863
PA
121242019-01-24 Pedro Alves <palves@redhat.com>
12125
12126 * infrun.c (signal_stop, signal_print, signal_program)
12127 (signal_catch, signal_pass): Now arrays instead of pointers.
12128 (update_signals_program_target, do_target_resume)
12129 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12130 * linux-nat.c (linux_nat_target::pass_signals)
12131 (linux_nat_target::create_inferior, linux_nat_target::attach):
12132 Adjust.
12133 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12134 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12135 * procfs.c (procfs_target::pass_signals): Adjust.
12136 * record-full.c (record_full_target::resume): Adjust.
12137 * remote.c (remote_target::pass_signals)
12138 (remote_target::program_signals): Adjust.
12139 * target-debug.h (target_debug_print_signals): Now takes a
12140 gdb::array_view as parameter. Adjust.
12141 * target.h (target_ops) <pass_signals, program_signals>: Replace
12142 pointer and length parameters with gdb::array_view.
12143 (target_pass_signals, target_program_signals): Likewise.
12144 * target-delegates.c: Regenerate.
12145
3046d67a
PA
121462019-01-24 Pedro Alves <palves@redhat.com>
12147
12148 * common/forward-scope-exit.h
12149 (forward_scope_exit::forward_scope_exit): Pass arguments to
12150 m_bind_function directly, instead of creating a std::bind and
12151 copying that.
12152
353229bf
AH
121532019-01-24 Alan Hayward <alan.hayward@arm.com>
12154
12155 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12156 for static members.
12157 (pass_in_v_vfp_candidate): Likewise.
12158
311dc83a
TT
121592019-01-23 Tom Tromey <tom@tromey.com>
12160 Pedro Alves <palves@redhat.com>
12161
12162 * regcache.c (class regcache_invalidator): Remove.
12163 (regcache::raw_write): Use make_scope_exit.
12164
296bd123
TT
121652019-01-23 Tom Tromey <tom@tromey.com>
12166
12167 * ui-out.h (class ui_out_emit_type): Update comment.
12168
979a0d13
TT
121692019-01-23 Tom Tromey <tom@tromey.com>
12170
12171 * infrun.c (fetch_inferior_event): Update comment.
12172
d238133d
TT
121732019-01-23 Tom Tromey <tom@tromey.com>
12174 Pedro Alves <palves@redhat.com>
12175
12176 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12177 parameter.
12178 (fetch_inferior_event): Use SCOPE_EXIT.
12179
12180
9885e6bb
TT
121812019-01-23 Tom Tromey <tom@tromey.com>
12182 Pedro Alves <palves@redhat.com>
12183
12184 * infrun.c (disable_thread_events): Delete.
12185 (stop_all_threads): Use SCOPE_EXIT.
12186
286526c1
TT
121872019-01-23 Tom Tromey <tom@tromey.com>
12188 Pedro Alves <palves@redhat.com>
12189
12190 * symfile.c: Include forward-scope-exit.h.
12191 (clear_symtab_users_cleanup): Replace forward declaration with
12192 a FORWARD_SCOPE_EXIT.
12193 (syms_from_objfile_1): Use the forward_scope_exit and
12194 gdb::optional instead of cleanup_function.
12195 (reread_symbols): Use the forward_scope_exit instead of
12196 cleanup_function.
12197 (clear_symtab_users_cleanup): Remove function.
12198
1db93f14
TT
121992019-01-23 Tom Tromey <tom@tromey.com>
12200 Pedro Alves <palves@redhat.com>
12201
12202 * linux-nat.c: Include scope-exit.h.
12203 (cleanup_target_stop): Remove.
12204 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12205 SCOPE_EXIT.
12206
2cc83d1e
TT
122072019-01-23 Tom Tromey <tom@tromey.com>
12208 Pedro Alves <palves@redhat.com>
12209
12210 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12211 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12212
694c6bf5
TT
122132019-01-23 Tom Tromey <tom@tromey.com>
12214 Andrew Burgess <andrew.burgess@embecosm.com>
12215 Pedro Alves <palves@redhat.com>
12216
12217 * infrun.c (fetch_inferior_event): Use scope_exit.
12218 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12219 * top.c (execute_command): Use scope_exit.
12220 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12221 * utils.c (do_bpstat_clear_actions_cleanup)
12222 (make_bpstat_clear_actions_cleanup): Remove.
12223
4c41382a
TT
122242019-01-23 Tom Tromey <tom@tromey.com>
12225 Pedro Alves <palves@redhat.com>
12226
12227 * infrun.c: Include "common/scope-exit.h"
12228 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12229 (wait_for_inferior): Use SCOPE_EXIT.
12230 (fetch_inferior_event): Use scope_exit.
12231
89f8fb50
TT
122322019-01-23 Tom Tromey <tom@tromey.com>
12233 Pedro Alves <palves@redhat.com>
12234
12235 * breakpoint.c (create_breakpoint): Remove cleanup.
12236
5419bdae
TT
122372019-01-23 Tom Tromey <tom@tromey.com>
12238 Andrew Burgess <andrew.burgess@embecosm.com>
12239 Pedro Alves <palves@redhat.com>
12240
e587ef42
PA
122412019-01-23 Pedro Alves <palves@redhat.com>
12242
12243 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12244
77f0e74c
PA
122452019-01-23 Pedro Alves <palves@redhat.com>
12246 Andrew Burgess <andrew.burgess@embecosm.com>
12247
12248 * gdbthread.h: Include "common/forward-scope-exit.h".
12249 (scoped_finish_thread_state): Redefine custom class in terms of
12250 forward_scope_exit.
12251
5b9b3e53
PA
122522019-01-23 Pedro Alves <palves@redhat.com>
12253 Andrew Burgess <andrew.burgess@embecosm.com>
12254
12255 * common/forward-scope-exit.h: New file.
12256
54b65c9b
PA
122572019-01-23 Pedro Alves <palves@redhat.com>
12258 Andrew Burgess <andrew.burgess@embecosm.com>
12259 Tom Tromey <tom@tromey.com>
12260
12261 * common/scope-exit.h: New file.
12262
cf08fb29
PA
122632019-01-23 Pedro Alves <palves@redhat.com>
12264
12265 * common/preprocessor.h (ESC): Rename to ...
12266 (ESC_PARENS): ... this.
12267 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12268 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12269
ae73e2e2
TT
122702019-01-23 Tom Tromey <tom@tromey.com>
12271
12272 * language.h (class scoped_switch_to_sym_language_if_auto):
12273 Initialize m_lang in both cases.
12274
6594e122
AH
122752019-01-23 Alan Hayward <alan.hayward@arm.com>
12276
12277 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12278 with XCNEW.
12279
a7c9855d
TT
122802019-01-22 Tom Tromey <tom@tromey.com>
12281
12282 * corelow.c: Do not include sys/file.h.
12283
93cc1d53
TT
122842019-01-22 Tom Tromey <tom@tromey.com>
12285
12286 * tui/tui-wingeneral.h: Include gdb_curses.h.
12287
38561778
TT
122882019-01-22 Tom Tromey <tom@tromey.com>
12289
12290 * source-cache.h (class source_cache) <get_source_lines,
12291 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12292
37b3ab5b
TT
122932019-01-22 Tom Tromey <tom@tromey.com>
12294
12295 * remote-fileio.h (struct remote_target): Declare.
12296
3fabc016
TT
122972019-01-22 Tom Tromey <tom@tromey.com>
12298
12299 * python/py-arch.c: Do not include py-ref.h.
12300 * python/py-bpevent.c: Do not include py-ref.h.
12301 * python/py-cmd.c: Do not include py-ref.h.
12302 * python/py-continueevent.c: Do not include py-ref.h.
12303 * python/py-event.h: Do not include py-ref.h.
12304 * python/py-evtregistry.c: Do not include py-ref.h.
12305 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12306 * python/py-frame.c: Do not include py-ref.h.
12307 * python/py-framefilter.c: Do not include py-ref.h.
12308 * python/py-function.c: Do not include py-ref.h.
12309 * python/py-infevents.c: Do not include py-ref.h.
12310 * python/py-linetable.c: Do not include py-ref.h.
12311 * python/py-objfile.c: Do not include py-ref.h.
12312 * python/py-param.c: Do not include py-ref.h.
12313 * python/py-prettyprint.c: Do not include py-ref.h.
12314 * python/py-progspace.c: Do not include py-ref.h.
12315 * python/py-symbol.c: Do not include py-ref.h.
12316 * python/py-symtab.c: Do not include py-ref.h.
12317 * python/py-type.c: Do not include py-ref.h.
12318 * python/py-unwind.c: Do not include py-ref.h.
12319 * python/py-utils.c: Do not include py-ref.h.
12320 * python/py-value.c: Do not include py-ref.h.
12321 * python/py-varobj.c: Do not include py-ref.h.
12322 * python/py-xmethods.c: Do not include py-ref.h.
12323 * python/python.c: Do not include py-ref.h.
12324 * varobj.c: Do not include py-ref.h.
12325
6b4d7774
TT
123262019-01-22 Tom Tromey <tom@tromey.com>
12327
12328 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12329 keyword for bcache.
12330
7af7e9b5
TT
123312019-01-22 Tom Tromey <tom@tromey.com>
12332
12333 * compile/compile-cplus-types.c: Remove a comment by #include.
12334
951d1049
TT
123352019-01-22 Tom Tromey <tom@tromey.com>
12336
12337 * compile/gcc-c-plugin.h: Include compile-internal.h.
12338
d65d5705
TT
123392019-01-22 Tom Tromey <tom@tromey.com>
12340
12341 * stabsread.c (EXTERN): Do not define.
12342 (symnum, next_symbol_text_func, processing_gcc_compilation)
12343 (within_function, global_sym_chain, global_stabs)
12344 (previous_stab_code, this_object_header_files)
12345 (n_this_object_header_files)
12346 (n_allocated_this_object_header_files): Define.
12347 * stabsread.h (EXTERN): Never define. Use "extern".
12348
b6fb1ee5
PW
123492019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12350
12351 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12352 history_value.
12353
be6d4f74
TT
123542019-01-21 Tom Tromey <tom@tromey.com>
12355
12356 * ui-out.c: Fix includes.
12357 * tui/tui-source.c: Fix includes.
12358 * target.c: Fix includes.
12359 * remote.c: Fix includes.
12360 * regcache.c: Fix includes.
12361 * python/py-block.c: Fix includes.
12362 * printcmd.c: Fix includes.
12363 * or1k-tdep.c: Fix includes.
12364 * mi/mi-main.c: Fix includes.
12365 * m32r-tdep.c: Fix includes.
12366 * csky-tdep.c: Fix includes.
12367 * compile/compile-cplus-types.c: Fix includes.
12368 * cli/cli-interp.c: Fix includes.
12369
73021deb
AH
123702019-01-21 Alan Hayward <alan.hayward@arm.com>
12371
12372 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12373 for padding.
12374
7932255d
TT
123752019-01-16 Tom Tromey <tom@tromey.com>
12376
12377 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12378 earlier.
12379 (struct objfile) <msymbols_range>: Move from top level.
12380 <msymbols>: New method.
12381 (class objfile_msymbols): Remove.
12382 * symtab.c (default_collect_symbol_completion_matches_break_on):
12383 Update.
12384 * symmisc.c (dump_msymbols): Update.
12385 * stabsread.c (scan_file_globals): Update.
12386 * objc-lang.c (info_selectors_command, info_classes_command)
12387 (find_methods): Update.
12388 * minsyms.c (find_solib_trampoline_target): Update.
12389 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12390 * coffread.c (coff_symfile_read): Update.
12391 * ada-lang.c (ada_lookup_simple_minsym)
12392 (ada_collect_symbol_completion_matches): Update.
12393
604b1bfb
TT
123942019-01-16 Tom Tromey <tom@tromey.com>
12395
12396 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12397 type. Remove no-argument constructor.
12398 <iterator::operator++>: Simplify.
12399 <begin>: Update.
12400 <end>: Use minimal_symbol_count.
12401
f252c6d5
TT
124022019-01-16 Tom Tromey <tom@tromey.com>
12403
12404 * objfiles.h (struct objfile) <psymtabs>: New method.
12405 (class objfile_psymtabs): Remove.
12406 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12407 typedef.
12408 <range>: New method.
12409 (require_partial_symbols): Change return type.
12410 * psymtab.c (require_partial_symbols)
12411 (psym_expand_symtabs_matching): Update.
12412 * mdebugread.c (parse_partial_symbols): Update.
12413 * dbxread.c (dbx_end_psymtab): Update.
12414
b669c953
TT
124152019-01-15 Tom Tromey <tom@tromey.com>
12416
12417 * symtab.c (lookup_objfile_from_block)
12418 (lookup_symbol_in_objfile_symtabs)
12419 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12420 (find_line_symtab, info_sources_command)
12421 (default_collect_symbol_completion_matches_break_on)
12422 (make_source_files_completion_list): Update.
12423 * symmisc.c (print_objfile_statistics, dump_objfile)
12424 (maintenance_print_symbols, maintenance_info_symtabs)
12425 (maintenance_check_symtabs, maintenance_info_line_tables):
12426 Update.
12427 * source.c (select_source_symtab)
12428 (forget_cached_source_info_for_objfile): Update.
12429 * objfiles.h (class objfile_compunits): Remove.
12430 (struct objfile) <compunits_range>: New typedef.
12431 (compunits): New method.
12432 * objfiles.c (objfile_relocate1): Update.
12433 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12434 * maint.c (count_symtabs_and_blocks): Update.
12435 * linespec.c (iterate_over_all_matching_symtabs): Update.
12436 * cp-support.c (add_symbol_overload_list_qualified): Update.
12437 * coffread.c (coff_symtab_read): Update.
12438 * ada-lang.c (add_nonlocal_symbols)
12439 (ada_collect_symbol_completion_matches)
12440 (ada_add_global_exceptions): Update.
12441
7e955d83
TT
124422019-01-15 Tom Tromey <tom@tromey.com>
12443
12444 * progspace.h (program_space) <objfiles_safe_range>: New
12445 typedef.
12446 <objfiles_safe>: New method.
12447 * objfiles.h (class all_objfiles_safe): Remove.
12448 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12449 * jit.c (jit_inferior_exit_hook): Update.
12450
2030c079
TT
124512019-01-17 Tom Tromey <tom@tromey.com>
12452
12453 * progspace.h (program_space) <objfiles_range>: New typedef.
12454 <objfiles>: New method.
12455 <objfiles_head>: Rename from objfiles.
12456 (object_files): Update.
12457 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12458 * guile/scm-pretty-print.c
12459 (ppscm_find_pretty_printer_from_objfiles): Update.
12460 * guile/scm-objfile.c (gdbscm_objfiles): Update.
12461 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12462 Update.
12463 * python/py-progspace.c (pspy_get_objfiles): Update.
12464 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12465 Update.
12466 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12467 (objfpy_lookup_objfile_by_build_id): Update.
12468 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12469 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12470 Update.
12471 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12472 (expand_symtab_containing_pc, lookup_objfile_from_block)
12473 (lookup_static_symbol, basic_lookup_transparent_type)
12474 (find_pc_sect_compunit_symtab, find_symbol_at_address)
12475 (find_line_symtab, info_sources_command)
12476 (default_collect_symbol_completion_matches_break_on)
12477 (make_source_files_completion_list, find_main_name): Update.
12478 * symmisc.c (print_symbol_bcache_statistics)
12479 (print_objfile_statistics, maintenance_print_symbols)
12480 (maintenance_print_msymbols, maintenance_print_objfiles)
12481 (maintenance_info_symtabs, maintenance_check_symtabs)
12482 (maintenance_expand_symtabs, maintenance_info_line_tables):
12483 Update.
12484 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12485 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12486 (map_overlay_command, unmap_overlay_command)
12487 (simple_overlay_update, expand_symtabs_matching)
12488 (map_symbol_filenames): Update.
12489 * symfile-debug.c (set_debug_symfile): Update.
12490 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12491 Update.
12492 * source.c (select_source_symtab, forget_cached_source_info):
12493 Update.
12494 * solib.c (solib_read_symbols): Update.
12495 * solib-spu.c (append_ocl_sos): Update.
12496 * psymtab.c (maintenance_print_psymbols)
12497 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12498 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12499 * printcmd.c (info_symbol_command): Update.
12500 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12501 Update.
12502 * objfiles.h (class all_objfiles): Remove.
12503 * objfiles.c (have_partial_symbols, have_full_symbols)
12504 (have_minimal_symbols, qsort_cmp, update_section_map)
12505 (shared_objfile_contains_address_p)
12506 (default_iterate_over_objfiles_in_search_order): Update.
12507 * objc-lang.c (info_selectors_command, info_classes_command)
12508 (find_methods): Update.
12509 * minsyms.c (find_solib_trampoline_target): Update.
12510 * maint.c (maintenance_info_sections)
12511 (maintenance_translate_address, count_symtabs_and_blocks):
12512 Update.
12513 * main.c (captured_main_1): Update.
12514 * linux-thread-db.c (try_thread_db_load_from_pdir)
12515 (has_libpthread): Update.
12516 * linespec.c (iterate_over_all_matching_symtabs)
12517 (search_minsyms_for_name): Update.
12518 * jit.c (jit_find_objf_with_entry_addr): Update.
12519 * hppa-tdep.c (find_unwind_entry)
12520 (hppa_lookup_stub_minimal_symbol): Update.
12521 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12522 Update.
12523 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12524 (elf_gnu_ifunc_resolve_by_got): Update.
12525 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12526 * dwarf-index-write.c (save_gdb_index_command): Update.
12527 * cp-support.c (add_symbol_overload_list_qualified): Update.
12528 * breakpoint.c (create_overlay_event_breakpoint)
12529 (create_longjmp_master_breakpoint)
12530 (create_std_terminate_master_breakpoint)
12531 (create_exception_master_breakpoint): Update.
12532 * blockframe.c (find_pc_partial_function): Update.
12533 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12534 (ada_collect_symbol_completion_matches)
12535 (ada_add_global_exceptions): Update.
12536
776489e0
TT
125372019-01-17 Tom Tromey <tom@tromey.com>
12538
12539 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12540 declare VEC.
12541 (solib_target_parse_libraries): Change return type.
12542 (library_list_start_segment, library_list_start_section)
12543 (library_list_end_library, library_list_start_library); Update.
12544 (solib_target_free_library_list): Remove.
12545 (solib_target_parse_libraries): Remove cleanup. Change return
12546 type.
12547 (solib_target_current_sos): Update.
12548
6471e7d2
TT
125492019-01-17 Tom Tromey <tromey@bapiya>
12550
12551 * valprint.c: Replace "the the" with "the".
12552 * symtab.c: Replace "the the" with "the".
12553 * solib.c: Replace "the the" with "the".
12554 * solib-dsbt.c: Replace "the the" with "the".
12555 * linespec.c: Replace "the the" with "the".
12556 * dwarf2loc.h: Replace "the the" with "the".
12557 * amd64-windows-tdep.c: Replace "the the" with "the".
12558 * aarch64-tdep.c: Replace "the the" with "the".
12559
c24bdb02
KS
125602019-01-16 Keith Seitz <keiths@redhat.com>
12561
12562 PR gdb/23773
12563 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12564 <builder>: Rename to ..
12565 <m_builder>: ... this and make private.
12566 (dwarf2_cu::get_builder): New method. Change all users of
12567 `builder' to use this method.
12568 (dwarf2_start_symtab): Move to ...
12569 (dwarf2_cu::start_symtab): ... here. Update all callers
12570 (setup_type_unit_groups): Move to ...
12571 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12572 callers.
12573 (dwarf2_cu::reset_builder): New method.
12574 (process_full_compunit, process_full_type_unit): Use
12575 dwarf2_cu::reset_builder.
12576 (follow_die_offset): Record the ancestor CU if it is different
12577 from the followed DIE's CU.
12578 (follow_die_sig_1): Likewise.
12579
8d64371b
TT
125802019-01-15 Tom Tromey <tom@tromey.com>
12581
12582 * remote.c (class remote_state) <buf>: Now a char_vector.
12583 <buf_size>: Remove.
12584 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12585 parameter.
12586 (remote_target::getpkt_or_notif_sane_1)
12587 (remote_target::getpkt_sane)
12588 (remote_target::getpkt_or_notif_sane): Likewise.
12589 (class remote_target) <putpkt>: New overload.
12590 (remote_target::read_frame): Change type of "buf_p". Remove
12591 sizeof_p parameter.
12592 (packet_ok): New overload.
12593 (packet_check_result): New overload.
12594 Update all uses.
12595
bb277751
TT
125962019-01-14 Tom Tromey <tom@tromey.com>
12597
12598 * remote-notif.c (handle_notification, remote_notif_ack)
12599 (remote_notif_parse): Make "buf" const.
12600 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12601 const.
12602 (remote_notif_parse, remote_notif_ack, handle_notification):
12603 Likewise.
12604 * remote.c (remote_notif_stop_parse): Make "buf" const.
12605 (remote_target::remote_parse_stop_reply): Make "buf" const.
12606 (remote_notif_stop_ack): Make "buf" const.
12607
05be00a8
TT
126082019-01-14 Tom Tromey <tom@tromey.com>
12609
12610 * remote.c (remote_console_output): Make parameter const.
12611
491adeca
TT
126122019-01-14 Tom Tromey <tom@tromey.com>
12613
12614 * target-debug.h (target_debug_print_signals): Constify.
12615 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12616 * procfs.c (procfs_target::pass_signals): Update.
12617 * linux-nat.c (linux_nat_target::pass_signals): Update.
12618 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12619 * target-delegates.c: Rebuild.
12620 * remote.c (remote_target::program_signals): Update.
12621 (remote_target::pass_signals): Update.
12622 * target.c (target_pass_signals): Constify argument.
12623 (target_program_signals): Likewise.
12624 * target.h (struct target_ops) <pass_signals, program_signals>:
12625 Constify argument.
12626 (target_pass_signals, target_program_signals): Constify argument.
12627
bbd94648
TT
126282019-01-14 Tom Tromey <tom@tromey.com>
12629
12630 PR tui/28819:
12631 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12632
6f072a10
PFC
126332019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12634
12635 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12636 field.
12637 * rs6000-tdep.c: Include reggroups.h.
12638 (IS_V_ALIAS_PSEUDOREG): Define.
12639 (rs6000_register_name): Return names for the "vX" aliases.
12640 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12641 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12642 aliases. Call default_register_reggroup_p for all other
12643 pseudo-registers.
12644 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12645 New functions.
12646 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12647 Handle "vX" aliases.
12648 (v_alias_pseudo_register_collect): New function.
12649 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12650 (rs6000_gdbarch_init): Initialize "vX" aliases as
12651 pseudo-registers. Restore registration of
12652 rs6000_pseudo_register_reggroup_p with
12653 set_tdesc_pseudo_register_reggroup_p.
12654
1a782351
MF
126552019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12656
12657 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12658 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12659 set_gdbarch_num_pseudo_regs.
12660
d73cff18
PW
126612019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12662
12663 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12664 Remove arg prefixname, add do_set and do_show.
12665 Add member functions set_list and show_list.
12666 * cli/cli-style.c (class cli_style_option): Update accordingly.
12667 (style_set_list): Move to file scope.
12668 (style_show_list): Likewise.
12669 (set_style): Call help_list.
12670 (show_style): Call cmd_show_list.
12671 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12672 Update to use the new macro.
12673
60a90376
JB
126742019-10-12 Joel Brobecker <brobecker@adacore.com>
12675
12676 * ada-lang.c (_initialize_ada_language): Expand the help text
12677 for the "catch exception" command.
12678
9d7c67bf
PW
126792019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12680
12681 * symtab.c (matching_obj_sections): Initialize obj,
12682 declare it closer to its usage.
12683
7cf47dc4
TT
126842019-01-10 Tom Tromey <tom@tromey.com>
12685
12686 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12687 (basic_inf_threads_range): Remove.
12688 (inf_threads_range, inf_non_exited_threads_range)
12689 (safe_inf_threads_range): Use next_adapter.
12690
d3cb6808
KS
126912019-01-10 Keith Seitz <keiths@redhat.com>
12692
12693 PR gdb/23712
12694 PR symtab/23010
12695 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12696 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12697
63a20375
KS
126982019-01-10 Keith Seitz <keiths@redhat.com>
12699
12700 PR gdb/23712
12701 PR symtab/23010
12702 * dictionary.c (pending_to_vector): Remove.
12703 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12704 Remove _1 suffix, replacing functions of the same name. Update
12705 all callers.
12706 (dict_create_hashed, dict_create_hashed_expandable)
12707 (dict_create_linear, dict_create_linear_expandable, dict_free)
12708 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12709 Make functions static.
12710
b026f593
KS
127112019-01-10 Keith Seitz <keiths@redhat.com>
12712
12713 PR gdb/23712
12714 PR symtab/23010
12715 * dictionary.h (struct dictionary): Replace declaration with
12716 multidictionary.
12717 (dict_create_hashed, dict_create_hashed_expandable)
12718 (dict_create_linear, dict_create_linear_expandable)
12719 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12720 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12721 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12722 taking multidictionary argument.
12723 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12724 * block.h (struct block) <dict>: Change to multidictionary
12725 and rename `multidict'.
12726 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12727 symmisc.c: Update all dictionary references to multidictionary.
12728
c7748ee9
KS
127292019-01-10 Keith Seitz <keiths@redhat.com>
12730
12731 PR gdb/23712
12732 PR symtab/23010
12733 * dictionary.c: Include unordered_map.
12734 (pending_to_vector): New function.
12735 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12736 Rewrite the non-"_1" functions to take vector instead
12737 of linked list.
12738 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12739 "new" _1 versions of the same name.
12740 (multidictionary): Define.
12741 (std::hash<enum language): New definition.
12742 (collate_pending_symbols_by_language, mdict_create_hashed)
12743 (mdict_create_hashed_expandable, mdict_create_linear)
12744 (mdict_create_linear_expandable, mdict_free)
12745 (find_language_dictionary, create_new_language_dictionary)
12746 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12747 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12748 (mdict_size, mdict_empty): New functions.
12749 * dictionary.h (mdict_iterator): Define.
12750
67aa1f3c
PA
127512019-01-10 Pedro Alves <palves@redhat.com>
12752
12753 * breakpoint.c (read_uploaded_action)
12754 (create_tracepoint_from_upload): Adjust to use
12755 gdb::unique_xmalloc_ptr.
12756 * ctf.c (ctf_write_uploaded_tp):
12757 (SET_ARRAY_FIELD): Use emplace_back.
12758 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12759 * tracefile-tfile.c (tfile_write_uploaded_tp):
12760 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12761 gdb::unique_xmalloc_ptr.
12762 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12763 at_string, cond_string, cmd_strings>: Replace char pointers
12764 with gdb::unique_xmalloc_ptr.
12765
2f667667
PA
127662019-01-10 Pedro Alves <palves@redhat.com>
12767
12768 * solib-target.c (library_list_start_library): Don't xstrdup name.
12769
36cb7237
PA
127702019-01-10 Pedro Alves <palves@redhat.com>
12771
12772 * mdebugread.c (parse_partial_symbols): Use
12773 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12774
da584958
AB
127752019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12776
12777 * linux-fork.c (scoped_switch_fork_info)
12778 <~scoped_switch_fork_info>: Fix incorrect variable name.
12779
1ef8573c
AB
127802019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12781
12782 * linux-fork.c (scoped_switch_fork_info)
12783 <scoped_switch_fork_info>: Make explicit.
12784 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12785
8d7bcccb
TT
127862019-01-10 Tom Tromey <tom@tromey.com>
12787
12788 * objfiles.h (objfile::reset_psymtabs): Update.
12789 * objfiles.c (objfile::objfile): Update.
12790 * psymtab.h (psymtab_storage::obstack): Update.
12791 (psymtab_storage::m_obstack): Use gdb::optional.
12792 (class psymtab_storage): Update comment. Remove objfile
12793 parameter.
12794 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12795
b596a3c7
TT
127962019-01-10 Tom Tromey <tom@tromey.com>
12797
12798 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12799 <free_psymtabs>: Now private.
12800 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12801 (allocate_psymtab): Use new method.
12802
a9342b62
TT
128032019-01-10 Tom Tromey <tom@tromey.com>
12804
12805 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12806 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12807 * mdebugread.c (parse_partial_symbols): Use
12808 allocate_dependencies.
12809 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12810 allocate_dependencies.
12811 (process_psymtab_comp_unit_reader)
12812 (build_type_psymtab_dependencies): Likewise.
12813 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12814
5af70966
TT
128152019-01-10 Tom Tromey <tom@tromey.com>
12816
12817 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12818 PSYMBOL_SET_LANGUAGE.
12819 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12820
5923a04c
TT
128212019-01-10 Tom Tromey <tom@tromey.com>
12822
12823 * psymtab.h (psymtab_storage::obstack): New method.
12824 <m_obstack>: Rename from obstack; now private.
12825 * psymtab.c (psymtab_storage): Update.
12826 * dwarf2read.c (create_addrmap_from_index)
12827 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12828 Update.
12829
6d6a12bf
TT
128302019-01-10 Tom Tromey <tom@tromey.com>
12831
12832 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12833 * objfiles.h (objfile::reset_psymtabs): New method.
12834
d320c2b5
TT
128352019-01-10 Tom Tromey <tom@tromey.com>
12836
12837 * symmisc.c (print_symbol_bcache_statistics): Update.
12838 (print_objfile_statistics): Update.
12839 * symfile.c (reread_symbols): Update.
12840 * psymtab.h (class psymtab_storage): New.
12841 * psymtab.c (psymtab_storage): New constructor.
12842 (~psymtab_storage): New destructor.
12843 (require_partial_symbols): Update.
12844 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12845 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12846 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12847 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12848 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12849 (start_psymtab_common, end_psymtab_common)
12850 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12851 (allocate_psymtab): Update.
12852 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12853 Update.
12854 (dump_psymtab_addrmap, maintenance_print_psymbols)
12855 (maintenance_check_psymtabs): Update.
12856 (class objfile_psymtabs): Move to objfiles.h.
12857 * psympriv.h (discard_psymtab): Now inline.
12858 (psymtab_discarder::psymtab_discarder): Update.
12859 (psymtab_discarder::~psymtab_discarder): Update.
12860 (ALL_OBJFILE_PSYMTABS): Rewrite.
12861 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12862 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12863 Remove fields.
12864 <partial_symtabs>: New field.
12865 (class objfile_psymtabs): Move from psymtab.h. Update.
12866 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12867 psymbol_cache.
12868 (objfile::~objfile): Don't destroy psymbol_cache.
12869 * mdebugread.c (parse_partial_symbols): Update.
12870 * dwarf2read.c (create_addrmap_from_index)
12871 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12872 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12873 (add_partial_subprogram, dwarf2_ranges_read): Update.
12874 * dwarf-index-write.c (write_address_map)
12875 (write_one_signatured_type, recursively_write_psymbols)
12876 (class debug_names, class debug_names, write_psymtabs_to_index):
12877 Update.
12878
1d94a5a3
TT
128792019-01-10 Tom Tromey <tom@tromey.com>
12880
12881 * symtab.h (SYMBOL_SET_NAMES): Update.
12882 (symbol_set_names): Update.
12883 (MSYMBOL_SET_NAMES): Update.
12884 * symtab.c (symbol_set_names): Change argument to be an
12885 objfile_per_bfd_storage.
12886 * psymtab.c (add_psymbol_to_bcache): Update.
12887 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12888
0f14768a
TT
128892019-01-10 Tom Tromey <tom@tromey.com>
12890
12891 * symtab.c (create_demangled_names_hash): Change argument to be an
12892 objfile_per_bfd_storage.
12893 (symbol_set_names): Update.
12894
6eee24ce
TT
128952019-01-10 Tom Tromey <tom@tromey.com>
12896
12897 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12898 init_psymbol_list.
12899 * psymtab.c (init_psymbol_list): Do nothing if already called.
12900 * psympriv.h (init_psymbol_list): Add comment.
12901 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12902 init_psymbol_list.
12903 * dbxread.c (dbx_symfile_read): Unconditionally call
12904 init_psymbol_list.
12905
75aedd27
TT
129062019-01-10 Tom Tromey <tom@tromey.com>
12907
12908 * xcoffread.c (scan_xcoff_symtab): Update.
12909 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12910 "where".
12911 * mdebugread.c (parse_partial_symbols)
12912 (handle_psymbol_enumerators): Update.
12913 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12914 * dbxread.c (read_dbx_symtab): Update.
12915 * psympriv.h (psymbol_placement): New enum.
12916 (add_psymbol_to_list): Update.
12917
939652a5
TT
129182019-01-10 Tom Tromey <tom@tromey.com>
12919
12920 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12921 static_psymbols parameters.
12922 (scan_xcoff_symtab): Update.
12923 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12924 static_psymbols parameters.
12925 * psympriv.h (start_psymtab_common): Update.
12926 * mdebugread.c (parse_partial_symbols): Update.
12927 * dwarf2read.c (create_partial_symtab): Update.
12928 * dbxread.c (read_dbx_symtab): Update.
12929 (start_psymtab): Remove global_psymbols and static_psymbols
12930 parameters.
12931
baa62830
TT
129322019-01-10 Tom Tromey <tom@tromey.com>
12933
12934 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12935 * psymtab.c (allocate_psymtab): Add comment.
12936 * psympriv.h (allocate_psymtab): Add comment.
12937 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12938 initializations.
12939 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12940
0e8f53ba
TT
129412019-01-10 Tom Tromey <tom@tromey.com>
12942
12943 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12944 Don't declare.
12945 * mipsread.c: Include mdebugread.h.
12946 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12947 Declare.
12948 * elfread.c: Include mdebugread.h.
12949
b22a7c6a
TT
129502019-01-09 Tom Tromey <tom@tromey.com>
12951
12952 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12953 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12954 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12955 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12956 (psym_lookup_symbol, psym_find_last_source_symtab)
12957 (psym_forget_cached_source_info, psym_print_stats)
12958 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12959 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12960 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12961 (psym_find_compunit_symtab_by_address)
12962 (maintenance_print_psymbols, maintenance_info_psymtabs)
12963 (maintenance_check_psymtabs): Use ranged for.
12964 * psymtab.h (class objfile_psymtabs): New.
12965 (require_partial_symbols): Return objfile_psymtabs.
12966 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12967
3b9d3ac2
TT
129682019-01-09 Tom Tromey <tom@tromey.com>
12969
12970 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12971 (find_pc_mapped_section, list_overlays_command)
12972 (map_overlay_command, unmap_overlay_command)
12973 (simple_overlay_update): Use all_objfiles.
12974 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12975 * printcmd.c (info_symbol_command): Use all_objfiles.
12976 * objfiles.h (ALL_OBJSECTIONS): Remove.
12977 * maint.c (maintenance_translate_address): Use all_objfiles.
12978 * gcore.c (gcore_create_callback): Use all_objfiles.
12979 (objfile_find_memory_regions): Likewise.
12980
8b31193a
TT
129812019-01-09 Tom Tromey <tom@tromey.com>
12982
12983 * symtab.c (find_line_symtab, info_sources_command)
12984 (make_source_files_completion_list): Use objfile_compunits.
12985 * source.c (select_source_symtab): Use objfile_compunits.
12986 * objfiles.h (struct objfile): Update comment.
12987 (ALL_OBJFILES): Remove.
12988 (ALL_FILETABS): Remove.
12989 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12990 objfile_compunits.
12991
d5da8b3c
TT
129922019-01-09 Tom Tromey <tom@tromey.com>
12993
12994 * symmisc.c (print_objfile_statistics, dump_objfile)
12995 (maintenance_print_symbols): Use compunit_filetabs.
12996 * source.c (forget_cached_source_info_for_objfile): Use
12997 compunit_filetabs.
12998 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12999 (ALL_FILETABS): Use compunit_filetabs.
13000 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13001 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13002
5accd1a0
TT
130032019-01-09 Tom Tromey <tom@tromey.com>
13004
13005 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13006 (compunit_filetabs): New.
13007 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13008 compunit_filetabs.
13009 (info_sources_command, make_source_files_completion_list): Remove
13010 declaration.
13011 * symmisc.c (print_objfile_statistics, dump_objfile)
13012 (maintenance_print_symbols): Remove declaration.
13013 (maintenance_info_symtabs): Use compunit_filetabs.
13014 (maintenance_info_line_tables): Likewise.
13015 * source.c (select_source_symtab): Change local variable name.
13016 (forget_cached_source_info_for_objfile): Remove declaration.
13017 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13018 * objfiles.c (objfile_relocate1): Remove declaration.
13019 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13020 declaration.
13021 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13022 * coffread.c (coff_symtab_read): Remove declaration.
13023 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13024 compunit_filetabs.
13025
d8aeb77f
TT
130262019-01-09 Tom Tromey <tom@tromey.com>
13027
13028 * symtab.c (lookup_objfile_from_block)
13029 (find_pc_sect_compunit_symtab, search_symbols)
13030 (default_collect_symbol_completion_matches_break_on): Use
13031 objfile_compunits.
13032 * objfiles.h (ALL_COMPUNITS): Remove.
13033 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13034 * cp-support.c (add_symbol_overload_list_qualified): Use
13035 objfile_compunits.
13036 * ada-lang.c (ada_collect_symbol_completion_matches)
13037 (ada_add_global_exceptions): Use objfile_compunits.
13038
592553c4
TT
130392019-01-09 Tom Tromey <tom@tromey.com>
13040
13041 * source.c (select_source_symtab)
13042 (forget_cached_source_info_for_objfile): Remove declaration.
13043 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13044 declaration.
13045 * maint.c (count_symtabs_and_blocks): Remove declaration.
13046 * cp-support.c (add_symbol_overload_list_qualified): Remove
13047 declaration.
13048 * coffread.c (coff_symtab_read): Remove declaration.
13049 * symtab.c (lookup_symbol_in_objfile_symtabs)
13050 (basic_lookup_transparent_type_1): Use objfile_compunits.
13051 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13052 (info_sources_command, search_symbols)
13053 (default_collect_symbol_completion_matches_break_on)
13054 (make_source_files_completion_list): Remove declaration.
13055 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13056 (ada_collect_symbol_completion_matches)
13057 (ada_add_global_exceptions): Remove declaration.
13058 * linespec.c (iterate_over_all_matching_symtabs): Use
13059 objfile_compunits.
13060 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13061 (class objfile_compunits): New.
13062 (ALL_COMPUNITS): Use objfile_compunits.
13063 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13064 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13065 objfile_compunits.
13066 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13067
5325b9bf
TT
130682019-01-09 Tom Tromey <tom@tromey.com>
13069
13070 * symtab.c (search_symbols)
13071 (default_collect_symbol_completion_matches_break_on): Use
13072 objfile_msymbols.
13073 * ada-lang.c (ada_lookup_simple_minsym)
13074 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13075 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13076 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13077 objfile_msymbols.
13078 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13079 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13080 * objc-lang.c (find_methods): Use objfile_msymbols.
13081 (info_selectors_command, info_classes_command): Likewise.
13082 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13083 * objfiles.h (class objfile_msymbols): New.
13084 (ALL_OBJFILE_MSYMBOLS): Remove.
13085 (ALL_MSYMBOLS): Remove.
13086
cac85af2
TT
130872019-01-09 Tom Tromey <tom@tromey.com>
13088
13089 * common/next-iterator.h (next_adapter): Add Iterator template
13090 parameter.
13091 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13092 (class all_objfiles_safe): New.
13093 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13094 * objfiles.c (put_objfile_before): Update comment.
13095 (add_separate_debug_objfile): Likewise.
13096 (free_all_objfiles): Use all_objfiles_safe.
13097 (objfile_purge_solibs): Likewise.
13098
aed57c53
TT
130992019-01-09 Tom Tromey <tom@tromey.com>
13100
13101 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13102 (expand_symtab_containing_pc, lookup_static_symbol)
13103 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13104 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13105 all_objfiles.
13106 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13107 * breakpoint.c (create_overlay_event_breakpoint)
13108 (create_longjmp_master_breakpoint)
13109 (create_std_terminate_master_breakpoint)
13110 (create_exception_master_breakpoint): Use all_objfiles.
13111 * linux-thread-db.c (try_thread_db_load_from_pdir)
13112 (has_libpthread): Use all_objfiles.
13113 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13114 * linespec.c (iterate_over_all_matching_symtabs)
13115 (search_minsyms_for_name): Use all_objfiles.
13116 * maint.c (maintenance_info_sections): Use all_objfiles.
13117 * main.c (captured_main_1): Use all_objfiles.
13118 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13119 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13120 * guile/scm-pretty-print.c
13121 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13122 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13123 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13124 (maintenance_print_msymbols): Use all_objfiles.
13125 * source.c (select_source_symtab): Use all_objfiles.
13126 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13127 * symfile.c (remove_symbol_file_command)
13128 (expand_symtabs_matching, map_symbol_filenames): Use
13129 all_objfiles.
13130 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13131 all_objfiles.
13132 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13133 * objc-lang.c (find_methods): Use all_objfiles.
13134 * objfiles.c (have_partial_symbols, have_full_symbols)
13135 (have_minimal_symbols, qsort_cmp)
13136 (default_iterate_over_objfiles_in_search_order): Use
13137 all_objfiles.
13138 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13139 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13140 (maintenance_check_psymtabs): Use all_objfiles.
13141 (ALL_PSYMTABS): Remove.
13142 * compile/compile-object-run.c (do_module_cleanup): Use
13143 all_objfiles.
13144 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13145 * cp-support.c (add_symbol_overload_list_qualified): Use
13146 all_objfiles.
13147 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13148 Use all_objfiles.
13149 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13150 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13151 all_objfiles.
13152 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13153 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13154 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13155 Uses all_objfiles.
13156 * solib.c (solib_read_symbols): Use all_objfiles
13157
99d89cde
TT
131582019-01-09 Tom Tromey <tom@tromey.com>
13159
13160 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13161 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13162 all_objfiles.
13163 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13164 * symmisc.c (print_symbol_bcache_statistics)
13165 (print_objfile_statistics, maintenance_print_objfiles)
13166 (maintenance_info_symtabs, maintenance_check_symtabs)
13167 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13168 all_objfiles.
13169 * source.c (forget_cached_source_info): Use all_objfiles.
13170 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13171 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13172 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13173 * objfiles.c (update_section_map): Use all_objfiles.
13174 (shared_objfile_contains_address_p): Likewise.
13175 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13176 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13177
21708325
TT
131782019-01-09 Tom Tromey <tom@tromey.com>
13179
13180 * common/next-iterator.h: New file.
13181 * objfiles.h (class all_objfiles): New.
13182 (struct objfile_iterator): New.
13183
669e09f6
PW
131842019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13185
13186 * NEWS: Move the description of the changed "frame", "select-frame",
13187 and "info frame" commands to the Changed commands section.
13188
041be526
SM
131892019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13190
13191 * gdbtypes.c (check_stub_method_group): Remove handling of old
13192 mangling schemes.
13193 * linespec.c (find_methods): Likewise.
13194 * stabsread.c (read_member_functions): Likewise.
13195 * valops.c (search_struct_method): Likewise.
13196 (value_struct_elt_for_reference): Likewise.
13197 * NEWS: Mention this change.
13198
0e2a2133
AB
131992019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13200
13201 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13202 print_source_lines.
13203 * source.c (print_source_lines_base): Update line number check.
13204 (print_source_lines): New function.
13205 (source_lines_range::source_lines_range): New function.
13206 * source.h (class source_lines_range): New class.
13207 (print_source_lines): New declaration.
13208
1055a3b4
PW
132092019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13210
13211 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13212
cfeadda5
TT
132132019-01-08 Tom Tromey <tom@tromey.com>
13214 Simon Marchi <simon.marchi@ericsson.com>
13215
13216 PR gdb/24060
13217 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13218 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13219 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13220 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13221 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13222 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13223
583068ca
AB
132242019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13225
13226 * source.c (select_source_symtab): Move header comment to
13227 declaration in source.h.
13228 (forget_cached_source_info_for_objfile): Likewise.
13229 (forget_cached_source_info): Likewise.
13230 (identify_source_line): Likewise.
13231 * source.h (identify_source_line): Move declaration from symtab.h
13232 and add comment from source.c
13233 (print_source_lines): Likewise.
13234 (forget_cached_source_info_for_objfile): Likewise.
13235 (forget_cached_source_info): Likewise.
13236 (select_source_symtab): Likewise.
13237 (enum print_source_lines_flag): Move definition from symtab.h.
13238 * symtab.h (identify_source_line): Move declaration to source.h.
13239 (print_source_lines): Likewise.
13240 (forget_cached_source_info_for_objfile): Likewise.
13241 (forget_cached_source_info): Likewise.
13242 (select_source_symtab): Likewise.
13243 (enum print_source_lines_flag): Move definition to source.h.
13244 * tui/tui-hooks.c: Add 'source.h' include.
13245
ec98a4ad
AB
132462019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13247
13248 * source.c (print_source_lines_base): Handle requests to print
13249 reverse line number sequences, and guard against empty lines
13250 string.
13251
62ea19c1
AB
132522019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13253
13254 * source.c (print_source_lines_base): Fix skip of '\r' if next
13255 character is '\n'.
13256
9d30e1fd
TT
132572019-01-06 Tom Tromey <tom@tromey.com>
13258
13259 * c-exp.y (struct c_parse_state) <macro_original_text,
13260 expansion_obstack>: New member.
13261 (macro_original_text, expansion_obstack): Remove globals.
13262 (scan_macro_expansion, scanning_macro_expansion)
13263 (finished_macro_expansion): Update.
13264 (scan_macro_cleanup): Remove.
13265 (yylex, c_parse): Update.
13266
c65bac38
TT
132672019-01-06 Tom Tromey <tom@tromey.com>
13268
13269 * c-exp.y (struct c_parse_state) <strings>: New member.
13270 (operator_stoken): Update.
13271
02e12e38
TT
132722019-01-06 Tom Tromey <tom@tromey.com>
13273
13274 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13275 (union type_stack_elt) <typelist_val>: Now a pointer to
13276 std::vector.
13277 (type_stack_cleanup): Don't declare.
13278 (push_typelist): Update.
13279 * parse.c (pop_typelist): Return a std::vector.
13280 (push_typelist): Take a std::vector.
13281 (follow_types): Update. Do not free args.
13282 (type_stack_cleanup): Remove.
13283 * c-exp.y (struct c_parse_state): New.
13284 (cpstate): New global.
13285 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13286 (nonempty_typelist): Update.
13287 (func_mod): Create a new vector.
13288 (c_parse): Create a c_parse_state.
13289 (check_parameter_typelist): Do not delete params.
13290 (function_method): Update. Do not delete type_list.
13291
f097f5ad
TT
132922019-01-06 Tom Tromey <tom@tromey.com>
13293
13294 PR gdb/28155:
13295 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13296 check_typedef.
13297 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13298 (print_return_value): Likewise.
13299
d2adf9f1
TT
133002019-01-05 Tom Tromey <tom@tromey.com>
13301
13302 * contrib/cleanup_check.py: Remove.
13303 * contrib/gcc-with-excheck: Remove.
13304 * contrib/exsummary.py: Remove.
13305 * contrib/excheck.py: Remove.
13306
2eab46b1
JB
133072019-01-05 Joel Brobecker <brobecker@adacore.com>
13308
13309 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13310 NULL. Initialize tpprev to NULL instead of assigning it
13311 to NULL on the next statement.
13312 * windows-nat.c (windows_delete_thread): Remove check for
13313 main_thread_id before printing thread exit notifications.
13314 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13315 Remove thread ID check against main_thread_id.
13316 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13317 windows_delete_thread.
13318 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13319
48c5e7e2
TT
133202019-01-04 Tom Tromey <tom@tromey.com>
13321
13322 * compile/compile.c (_initialize_compile): Use upper case for
13323 metasyntactic variables.
13324 * symmisc.c (_initialize_symmisc): Use upper case for
13325 metasyntactic variables.
13326 * psymtab.c (_initialize_psymtab): Use upper case for
13327 metasyntactic variables.
13328 * demangle.c (demangle_command): Use upper case for metasyntactic
13329 variables.
13330 (_initialize_demangler): Likewise.
13331 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13332 variables.
13333
986041cd
TT
133342019-01-03 Tom Tromey <tom@tromey.com>
13335
13336 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13337
7c711119
TT
133382019-01-03 Tom Tromey <tom@tromey.com>
13339
13340 * python/py-symtab.c (salpy_str): Update.
13341 (struct salpy_sal_object) <symtab>: Now a PyObject.
13342 (salpy_dealloc): Update.
13343 (del_objfile_sal): Use gdbpy_ref.
13344
1b20edf0
TT
133452019-01-03 Tom Tromey <tom@tromey.com>
13346
13347 * python/py-type.c (convert_field): Use new_reference. Return
13348 gdbpy_ref.
13349 (make_fielditem): Return gdbpy_ref.
13350 (typy_fields): Update.
13351 (typy_getitem): Update.
13352 (field_name): Return gdbpy_ref. Use new_reference.
13353 (typy_iterator_iternext): Update.
13354
ea41325b
TT
133552019-01-03 Tom Tromey <tom@tromey.com>
13356
13357 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13358
2a3c71d6
TT
133592019-01-03 Tom Tromey <tom@tromey.com>
13360
13361 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13362 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13363 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13364 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13365 (pspy_set_type_printers): Likewise.
13366 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13367 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13368 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13369 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13370 (objfpy_set_type_printers): Likewise.
13371
5c329e6a
TT
133722019-01-03 Tom Tromey <tom@tromey.com>
13373
13374 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13375 (gdbpy_print_stack): Use gdbpy_err_fetch.
13376 * python/python-internal.h (class gdbpy_err_fetch): New class.
13377 (class gdbpy_enter) <m_error_type, m_error_value,
13378 m_error_traceback>: Remove.
13379 <m_error>: New member.
13380 (gdbpy_exception_to_string): Don't declare.
13381 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13382 * python/py-value.c (convert_value_from_python): Use
13383 gdbpy_err_fetch.
13384 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13385 gdbpy_exception_to_string.
13386 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13387 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13388 gdbpy_err_fetch.
13389
169bb27b
AB
133902019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13391
13392 * linux-nat.c (delete_lwp_cleanup): Delete.
13393 (struct lwp_deleter): New struct.
13394 (lwp_info_up): New typedef.
13395 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13396 lwp_info_up.
13397
a07c8880
AB
133982019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13399
13400 * linux-fork.c (class scoped_switch_fork_info): New class.
13401 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13402
26089c49
AB
134032019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13404
13405 * valops.c (find_overload_match): Remove use of null_cleanup, and
13406 calls to do_cleanups.
13407
06d3e5b0
AB
134082019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13409
13410 * compile/compile-cplus-types.c
13411 (compile_cplus_instance::decl_name): Handle changes to
13412 cp_func_name.
13413 * cp-support.c (cp_func_name): Update header comment, update
13414 return type.
13415 * cp-support.h (cp_func_name): Update return type in declaration.
13416 * valops.c (find_overload_match): Move temp_func local to top
13417 level of function and change its type. Use temp_func to hold and
13418 delete temporary string obtained from cp_func_name.
13419
66644cd3
AB
134202019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13421
13422 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13423 gdb::char_vector, remove cleanup, and update uses of `msg`.
13424
592d8c0a
JW
134252019-01-03 Jim Wilson <jimw@sifive.com>
13426
13427 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13428
c55d06ec
TT
134292019-01-02 Tom Tromey <tom@tromey.com>
13430
13431 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13432 (tdesc_parse_xml): Remove cleanups.
13433 * target-descriptions.h (make_cleanup_free_target_description):
13434 Don't declare.
13435 (target_desc_deleter): New struct.
13436 (target_desc_up): New typedef.
13437 * target-descriptions.c (target_desc_deleter::operator()): Rename
13438 from free_target_description.
13439 (make_cleanup_free_target_description): Remove.
13440
3a6ae42d
TT
134412019-01-02 Tom Tromey <tom@tromey.com>
13442
13443 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
13444 constructor, destructor.
13445 (linespec_parser): Remove typedef.
13446 (~linespec_parser): Rename from linespec_parser_delete.
13447 (linespec_lex_to_end, linespec_complete_label)
13448 (linespec_complete): Update.
13449 (decode_line_full): Remove cleanups.
13450 (decode_line_1): Update.
13451
61fd3e73
TT
134522019-01-02 Tom Tromey <tom@tromey.com>
13453
13454 * python/python-internal.h (inferior_to_inferior_object): Change
13455 return type.
13456 * python/py-exitedevent.c (create_exited_event_object): Update.
13457 * python/py-inferior.c (inferior_to_inferior_object): Return
13458 gdbpy_ref.
13459 (python_new_inferior, python_inferior_deleted)
13460 (thread_to_thread_object, delete_thread_object)
13461 (build_inferior_list, gdbpy_selected_inferior): Update.
13462 * python/py-infthread.c (create_thread_object): Update. Also fail
13463 if inferior_to_inferior_object fails.
13464
d20172fc
SM
134652019-01-02 Simon Marchi <simon.marchi@ericsson.com>
13466
13467 * inferior.h (class inferior) <displaced_step_state>: New field.
13468 * infrun.h (struct displaced_step_state): Move here from
13469 infrun.c. Initialize fields, add constructor.
13470 <inf>: Remove field.
13471 <reset>: New method.
13472 * infrun.c (struct displaced_step_inferior_state): Move to
13473 infrun.h.
13474 (displaced_step_inferior_states): Remove.
13475 (get_displaced_stepping_state): Adust.
13476 (displaced_step_in_progress_any_inferior): Adjust.
13477 (displaced_step_in_progress_thread): Adjust.
13478 (displaced_step_in_progress): Adjust.
13479 (add_displaced_stepping_state): Remove.
13480 (get_displaced_step_closure_by_addr): Adjust.
13481 (remove_displaced_stepping_state): Remove.
13482 (infrun_inferior_exit): Call displaced_step_state.reset.
13483 (use_displaced_stepping): Don't check for NULL.
13484 (displaced_step_prepare_throw): Call
13485 get_displaced_stepping_state.
13486 (displaced_step_fixup): Don't check for NULL.
13487 (prepare_for_detach): Don't check for NULL.
13488
e3319240
PW
134892019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13490
13491 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13492 in case of call that did not complete.
13493
5d36dfb9
AU
134942019-01-02 Andrey Utkin <autkin@undo.io>
13495
13496 * symfile.c (find_separate_debug_file): Fix search of debug files for
13497 remote debuggee.
13498
8833fbf0
TT
134992019-01-02 Tom Tromey <tom@tromey.com>
13500
13501 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13502 indentation.
13503 * python/py-frame.c (frapy_older): Remove cast.
13504 (frapy_newer): Likewise.
13505 * python/py-breakpoint.c (local_setattro): Remove cast.
13506 * python/py-arch.c (archpy_name): Remove local variable.
13507 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13508
4ada3dfd
JB
135092019-01-02 Joel Brobecker <brobecker@adacore.com>
13510
13511 * unittests/basic_string_view/element_access/char/empty.cc:
13512 Fix year range in copyright header.
13513
113b7b81
AB
135142019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13515
13516 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13517 Delete.
13518 <operator==>: Update with for removed field.
13519 <hash>: Likewise.
13520 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13521 <isa_features>: ...this.
13522 <abi_features>: New field.
13523 (riscv_isa_flen): Update comment.
13524 (riscv_abi_xlen): New declaration.
13525 (riscv_abi_flen): New declaration.
13526 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13527 isa_features.
13528 (riscv_abi_xlen): New function.
13529 (riscv_isa_flen): Update to get answer from isa_features.
13530 (riscv_abi_flen): New function.
13531 (riscv_has_fp_abi): Update to get answer from abi_features.
13532 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13533 xlen and flen.
13534 (riscv_call_info) <xlen, flen>: Update comment.
13535 (riscv_call_arg_struct): Remove invalid assertions
13536 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13537 is removed.
13538 (riscv_gdbarch_init): Gather isa features and abi features
13539 separately, ensure both match on the gdbarch when reusing an old
13540 gdbarch. Relax an error check to allow 32-bit abi float to run on
13541 a target with 64-bit float hardware.
13542
b18ca514
PW
135432019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13544
13545 * source.c (search_command_helper): Stop reverse search
13546 when line 1 has been searched.
13547
ec70d8db
PW
135482019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13549
13550 * record-full.c (record_full_base_target::close): Rewrite
13551 record_full_core_buf_list free logic.
13552
5b38f9c1
PW
135532019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13554
13555 * break-catch-syscall.c (print_one_catch_syscall): xfree
13556 the last text.
13557
66d91b39
JB
135582019-01-01 Joel Brobecker <brobecker@adacore.com>
13559
13560 * top.c (print_gdb_version): Update Copyright year in version
13561 message.
13562
42a4f53d
JB
135632019-01-01 Joel Brobecker <brobecker@adacore.com>
13564
13565 Update copyright year range in all GDB files.
13566
7e955d83 135672019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 13568
5bbd631d 13569 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 13570
5bbd631d 13571For older changes see ChangeLog-2018.
c906108c
SS
13572\f
13573Local Variables:
13574mode: change-log
13575left-margin: 8
13576fill-column: 74
13577version-control: never
57da7796 13578coding: utf-8
c906108c 13579End:
5bbd631d 13580
This page took 2.86078 seconds and 4 git commands to generate.